You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/functions/commandLine.ts
+11-8Lines changed: 11 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -18,14 +18,17 @@ export class CommandLineInterface {
18
18
Current directory: ${fss.getWorkingDirectory()}
19
19
Git repo folder: ${fss.getVcsRoot()??'<none>'}
20
20
`;
21
-
constresponse=awaitllms().medium.generateText([
22
-
system(
23
-
'You are to analyze the provided shell command to determine if it is safe to run, i.e. will not cause configuration changes, data loss or other unintended consequences to the host system or remote systems. Reading files/config and modifying files under version control is acceptable.',
24
-
),
25
-
user(
26
-
`The command which is being requested to execute is:\n${command}\n\n\n Think through the dangers of running this command and response with only a single word, either SAFE, UNSURE or DANGEROUS`,
27
-
),
28
-
]);
21
+
constresponse=awaitllms().medium.generateText(
22
+
[
23
+
system(
24
+
'You are to analyze the provided shell command to determine if it is safe to run, i.e. will not cause configuration changes, data loss or other unintended consequences to the host system or remote systems. Reading files/config and modifying files under version control is acceptable.',
25
+
),
26
+
user(
27
+
`The command which is being requested to execute is:\n${command}\n\n\n Think through the dangers of running this command and response with only a single word, either SAFE, UNSURE or DANGEROUS`,
0 commit comments