@chipschat/opencode 1.0.15 → 1.0.16

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.
@@ -1,6 +1,6 @@
1
1
  # Third-party notices
2
2
 
3
- `dist/main.js` in @chipschat/opencode 1.0.15 carries these packages, bundled in. Each one's
3
+ `dist/main.js` in @chipschat/opencode 1.0.16 carries these packages, bundled in. Each one's
4
4
  licence follows.
5
5
 
6
6
  ## @chipschat/harness 1.0.2 (Apache-2.0)
package/dist/main.js CHANGED
@@ -28092,13 +28092,18 @@ function configPathOf(word, home = homedir5()) {
28092
28092
  }
28093
28093
  function foldersPathOf(path, home = homedir5()) {
28094
28094
  const places = placesOf2(home);
28095
- return nowAt(resolve2(fromHome(path, home)), places.oldAgents, places.agents);
28095
+ const whole2 = resolve2(fromHome(path, home));
28096
+ const under = inside2(places.agents, whole2);
28097
+ const old = under === void 0 ? void 0 : join7(places.oldAgents, under);
28098
+ if (old !== void 0 && existsSync5(old) && !existsSync5(whole2)) return old;
28099
+ return nowAt(whole2, places.oldAgents, places.agents);
28096
28100
  }
28097
28101
 
28098
28102
  // src/keep.ts
28099
28103
  var flags = process.argv.slice(2);
28100
28104
  var words3 = flags.filter((word) => !word.startsWith("--"));
28101
- var whole = (word) => configPathOf(word);
28105
+ var handsOver = flags.includes("--keep");
28106
+ var whole = (word) => configTargetOf(word);
28102
28107
  var here = fileURLToPath2(new URL("..", import.meta.url)).replace(/\/$/, "");
28103
28108
  var self = fileURLToPath2(import.meta.url);
28104
28109
  var run = self.endsWith(".js") ? [self] : ["--import", "tsx", "src/main.ts"];
@@ -28570,7 +28575,7 @@ var LABEL = "chat.chips.opencode";
28570
28575
  stopIfAsked(LABEL);
28571
28576
  var log = (line) => process.stdout.write(`${(/* @__PURE__ */ new Date()).toISOString()} ${line}
28572
28577
  `);
28573
- moveOld(configTargetOf(words3[0]), log);
28578
+ if (!handsOver) moveOld(configTargetOf(words3[0]), log);
28574
28579
  var configPath = configPathOf(words3[0]);
28575
28580
  var stop = (error62) => {
28576
28581
  if (!(error62 instanceof SetupError)) throw error62;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@chipschat/opencode",
3
- "version": "1.0.15",
3
+ "version": "1.0.16",
4
4
  "description": "OpenCode as a Chips harness, on its V2 server (opencode serve): each OpenCode agent a Chips agent, each room an OpenCode session.",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {