@giovannijecha/jecode 0.1.6 → 0.1.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -1
- package/dist/batch.js +2 -9
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -202,7 +202,8 @@ printf "explain this project\n" | jecode --root .
|
|
|
202
202
|
~~~
|
|
203
203
|
|
|
204
204
|
Dangerous tools stay denied in batch mode unless **--auto-approve** is supplied
|
|
205
|
-
explicitly.
|
|
205
|
+
explicitly. A terminal batch failure is written to stderr and exits non-zero,
|
|
206
|
+
so shell pipelines can stop reliably.
|
|
206
207
|
|
|
207
208
|
## Safety model
|
|
208
209
|
|
package/dist/batch.js
CHANGED
|
@@ -32,15 +32,8 @@ export async function runBatch(session, environment = {}) {
|
|
|
32
32
|
write(`> ${terminalText(line)}\n`);
|
|
33
33
|
session.history.push({ role: "user", content: [{ kind: "text", text: line }] });
|
|
34
34
|
const turn = events(emit, session);
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
}
|
|
38
|
-
catch (error) {
|
|
39
|
-
emit({ kind: "notice", text: error.message, tone: "error" });
|
|
40
|
-
}
|
|
41
|
-
finally {
|
|
42
|
-
turn.flush();
|
|
43
|
-
}
|
|
35
|
+
await runTurn(session.history, options(session), turn);
|
|
36
|
+
turn.flush();
|
|
44
37
|
}
|
|
45
38
|
}
|
|
46
39
|
finally {
|