@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 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
- try {
36
- await runTurn(session.history, options(session), turn);
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 {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@giovannijecha/jecode",
3
- "version": "0.1.6",
3
+ "version": "0.1.7",
4
4
  "description": "An owned coding agent with zero external runtime dependencies.",
5
5
  "license": "MIT",
6
6
  "repository": {