@chipschat/hermes 1.0.17 → 1.0.18

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/hermes 1.0.17 carries these packages, bundled in. Each one's
3
+ `dist/main.js` in @chipschat/hermes 1.0.18 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
@@ -28891,13 +28891,18 @@ function configPathOf(word, home = homedir6()) {
28891
28891
  }
28892
28892
  function folderPathOf(path, home = homedir6()) {
28893
28893
  const places = placesOf(home);
28894
- return nowAt(resolve4(fromHome(path, home)), places.oldAgents, places.agents);
28894
+ const whole2 = resolve4(fromHome(path, home));
28895
+ const under = inside2(places.agents, whole2);
28896
+ const old = under === void 0 ? void 0 : join11(places.oldAgents, under);
28897
+ if (old !== void 0 && existsSync10(old) && !existsSync10(whole2)) return old;
28898
+ return nowAt(whole2, places.oldAgents, places.agents);
28895
28899
  }
28896
28900
 
28897
28901
  // src/keep.ts
28898
28902
  var flags = process.argv.slice(2);
28899
28903
  var words3 = flags.filter((word) => !word.startsWith("--"));
28900
- var whole = (word) => configPathOf(word);
28904
+ var handsOver = flags.includes("--keep");
28905
+ var whole = (word) => configTargetOf(word);
28901
28906
  var here = fileURLToPath2(new URL("..", import.meta.url)).replace(/\/$/, "");
28902
28907
  var self = fileURLToPath2(import.meta.url);
28903
28908
  var run = self.endsWith(".js") ? [self] : ["--import", "tsx", "src/main.ts"];
@@ -29176,7 +29181,7 @@ function readConfig(path, env = process.env) {
29176
29181
  return {
29177
29182
  ...typeof raw.name === "string" ? { name: raw.name } : {},
29178
29183
  agents,
29179
- folders: folderOf(raw.folders) ?? placesOf().agents,
29184
+ folders: folderOf(raw.folders) ?? folderPathOf(placesOf().agents),
29180
29185
  ...typeof hookPort === "number" && Number.isInteger(hookPort) && hookPort > 0 && hookPort < 65536 ? { hookPort } : {}
29181
29186
  };
29182
29187
  }
@@ -29217,7 +29222,7 @@ var LABEL = "chat.chips.hermes";
29217
29222
  stopIfAsked(LABEL);
29218
29223
  var log = (line2) => process.stdout.write(`${(/* @__PURE__ */ new Date()).toISOString()} ${line2}
29219
29224
  `);
29220
- moveOld(configTargetOf(words3[0]), log);
29225
+ if (!handsOver) moveOld(configTargetOf(words3[0]), log);
29221
29226
  var configPath = configPathOf(words3[0]);
29222
29227
  var folder = dirname7(configPath);
29223
29228
  var statePath = join14(folder, "sessions.json");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@chipschat/hermes",
3
- "version": "1.0.17",
3
+ "version": "1.0.18",
4
4
  "description": "Hermes Agent as a Chips harness, on its Runs API: each profile a Chips agent, each room a Hermes session.",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {