@chipschat/acp 1.0.13 → 1.0.14

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/acp 1.0.13 carries these packages, bundled in. Each one's
3
+ `dist/main.js` in @chipschat/acp 1.0.14 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
@@ -28380,13 +28380,18 @@ function configPathOf(word, home = homedir5()) {
28380
28380
  }
28381
28381
  function foldersPathOf(path, home = homedir5()) {
28382
28382
  const places = placesOf2(home);
28383
- return nowAt(resolve2(fromHome(path, home)), places.oldAgents, places.agents);
28383
+ const whole2 = resolve2(fromHome(path, home));
28384
+ const under = inside2(places.agents, whole2);
28385
+ const old = under === void 0 ? void 0 : join8(places.oldAgents, under);
28386
+ if (old !== void 0 && existsSync7(old) && !existsSync7(whole2)) return old;
28387
+ return nowAt(whole2, places.oldAgents, places.agents);
28384
28388
  }
28385
28389
 
28386
28390
  // src/keep.ts
28387
28391
  var flags = process.argv.slice(2);
28388
28392
  var words3 = flags.filter((word) => !word.startsWith("--"));
28389
- var whole = (word) => configPathOf(word);
28393
+ var handsOver = flags.includes("--keep");
28394
+ var whole = (word) => configTargetOf(word);
28390
28395
  var here = fileURLToPath2(new URL("..", import.meta.url)).replace(/\/$/, "");
28391
28396
  var self = fileURLToPath2(import.meta.url);
28392
28397
  var run = self.endsWith(".js") ? [self] : ["--import", "tsx", "src/main.ts"];
@@ -28683,7 +28688,7 @@ var LABEL = `chat.chips.acp.${basename6(configTargetOf(words3[0]), ".json")}`;
28683
28688
  stopIfAsked(LABEL);
28684
28689
  var log = (line) => process.stdout.write(`${(/* @__PURE__ */ new Date()).toISOString()} ${line}
28685
28690
  `);
28686
- moveOld(configTargetOf(words3[0]), log);
28691
+ if (!handsOver) moveOld(configTargetOf(words3[0]), log);
28687
28692
  var configPath = configPathOf(words3[0]);
28688
28693
  var kind;
28689
28694
  try {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@chipschat/acp",
3
- "version": "1.0.13",
3
+ "version": "1.0.14",
4
4
  "description": "An agent that speaks the Agent Client Protocol, as a Chips harness of its kind: agents made from Chips, each in a folder of its own, each room a session.",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {