@oooooooooo/ch0de 1.9.58 → 1.9.59

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.
Files changed (2) hide show
  1. package/chode.js +7 -1
  2. package/package.json +2 -2
package/chode.js CHANGED
@@ -3840,7 +3840,12 @@ async function runAgentLoop(prompt, sessionId, force, callOptions, aiCall, onToo
3840
3840
  mutating.push(executable[mi].args.file);
3841
3841
  }
3842
3842
  }
3843
- if (mutating.length) takeSnapshot('agent turn ' + steps, mutating, sessionId);
3843
+ if (mutating.length) {
3844
+ // Auto-commit checkpoint before mutating agent turn so work can be rolled back.
3845
+ try { run('git add -A', { silent: true, cwd: ROOT }); } catch (e) {}
3846
+ try { run('git commit --allow-empty -m "chode checkpoint: agent turn ' + steps + '"', { silent: true, cwd: ROOT }); } catch (e) {}
3847
+ takeSnapshot('agent turn ' + steps, mutating, sessionId);
3848
+ }
3844
3849
  var toolCtx = { yolo:callOptions.yolo===true,onChildAuthors:ids=>{for(const id of ids)draftAuthors.add(String(id).toLowerCase());},taskGroup,mode:callOptions.mode,acceptanceTest:callOptions.acceptanceTest,sessionId: sessionId, actions: actions, aiCall: aiCall, onTool: onTool, onAsk: onAsk, planTargets: effTargets, overwriteTargets: effOverwrites, scopeTargets: callOptions.scopeTargets || null, inspectedUrls: taskContext.inspectedUrls };
3845
3850
  var acceptanceChangedThisTurn=false;
3846
3851
  async function execOne(call) {
@@ -7485,6 +7490,7 @@ function cmdServe(argv) {
7485
7490
  });
7486
7491
  } catch(e) {}
7487
7492
  json(res, 200, {ok: true, providers: out});
7493
+ return;
7488
7494
  }
7489
7495
 
7490
7496
  var keyM = pathname.match(/^\/api\/provider\/([^\/]+)\/key(\/test)?$/);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oooooooooo/ch0de",
3
- "version": "1.9.58",
3
+ "version": "1.9.59",
4
4
  "description": "The self-healing AI coding harness. Free tiers. HEMO auto-provisioning. Zero lock-in. Canonical brand: ch0de.",
5
5
  "main": "chode.js",
6
6
  "bin": {
@@ -151,7 +151,7 @@
151
151
  },
152
152
  "dependencies": {
153
153
  "@modelcontextprotocol/sdk": "1.32.2",
154
- "@oooooooooo/ch0de": "^1.9.56",
154
+ "@oooooooooo/ch0de": "^1.9.58",
155
155
  "lean": "^0.1.1"
156
156
  },
157
157
  "devDependencies": {