@chipschat/hermes 1.0.18 → 1.0.19

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.18 carries these packages, bundled in. Each one's
3
+ `dist/main.js` in @chipschat/hermes 1.0.19 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
@@ -11,7 +11,7 @@ var __export = (target, all) => {
11
11
  import { randomBytes as randomBytes3 } from "node:crypto";
12
12
  import { existsSync as existsSync12, mkdirSync as mkdirSync7, readFileSync as readFileSync13, writeFileSync as writeFileSync6 } from "node:fs";
13
13
  import { createServer as createServer2 } from "node:net";
14
- import { dirname as dirname7, join as join14 } from "node:path";
14
+ import { dirname as dirname8, join as join14 } from "node:path";
15
15
 
16
16
  // node_modules/zod/v4/classic/external.js
17
17
  var external_exports = {};
@@ -28855,7 +28855,7 @@ import { fileURLToPath as fileURLToPath2 } from "node:url";
28855
28855
  // src/places.ts
28856
28856
  import { existsSync as existsSync10 } from "node:fs";
28857
28857
  import { homedir as homedir6 } from "node:os";
28858
- import { isAbsolute as isAbsolute2, join as join11, relative, resolve as resolve4, sep as sep2 } from "node:path";
28858
+ import { dirname as dirname6, isAbsolute as isAbsolute2, join as join11, relative, resolve as resolve4, sep as sep2 } from "node:path";
28859
28859
  function placesOf(home = homedir6()) {
28860
28860
  return {
28861
28861
  settings: join11(home, "Chips", ".bridges", "hermes"),
@@ -28887,7 +28887,7 @@ function configPathOf(word, home = homedir6()) {
28887
28887
  const target = configTargetOf(word, home);
28888
28888
  const under = inside2(places.settings, target);
28889
28889
  const old = under === void 0 ? void 0 : join11(places.oldSettings, under);
28890
- return old !== void 0 && existsSync10(old) && !existsSync10(target) ? old : target;
28890
+ return old !== void 0 && existsSync10(dirname6(old)) && !existsSync10(dirname6(target)) ? old : target;
28891
28891
  }
28892
28892
  function folderPathOf(path, home = homedir6()) {
28893
28893
  const places = placesOf(home);
@@ -28950,7 +28950,7 @@ function keepIfAsked(label2, url2, names, log2, before = () => void 0) {
28950
28950
  // src/move.ts
28951
28951
  import { lstatSync as lstatSync2, mkdirSync as mkdirSync6, readdirSync, readFileSync as readFileSync10, renameSync as renameSync3, rmdirSync, writeFileSync as writeFileSync5 } from "node:fs";
28952
28952
  import { homedir as homedir7 } from "node:os";
28953
- import { dirname as dirname6, join as join12, resolve as resolve5 } from "node:path";
28953
+ import { dirname as dirname7, join as join12, resolve as resolve5 } from "node:path";
28954
28954
  var there = (path) => {
28955
28955
  try {
28956
28956
  lstatSync2(path);
@@ -28965,7 +28965,7 @@ function merge2(from, to, log2, home = homedir7(), quiet = false) {
28965
28965
  if (!there(from)) return;
28966
28966
  try {
28967
28967
  if (!there(to)) {
28968
- mkdirSync6(dirname6(to), { recursive: true });
28968
+ mkdirSync6(dirname7(to), { recursive: true });
28969
28969
  renameSync3(from, to);
28970
28970
  if (!quiet) log2(`moved ${shown(from, home)} to ${shown(to, home)}`);
28971
28971
  return;
@@ -29015,11 +29015,11 @@ function movedWords(said2, places, home) {
29015
29015
  }
29016
29016
  function moveOld(configPath2, log2, home = homedir7()) {
29017
29017
  const places = placesOf(home);
29018
- const settings = dirname6(configPath2);
29018
+ const settings = dirname7(configPath2);
29019
29019
  const under = inside2(places.settings, settings);
29020
29020
  if (under !== void 0) {
29021
- mkdirSync6(dirname6(dirname6(places.settings)), { recursive: true });
29022
- mkdirSync6(dirname6(places.settings), { recursive: true, mode: 448 });
29021
+ mkdirSync6(dirname7(dirname7(places.settings)), { recursive: true });
29022
+ mkdirSync6(dirname7(places.settings), { recursive: true, mode: 448 });
29023
29023
  merge2(join12(places.oldSettings, under), settings, log2, home);
29024
29024
  }
29025
29025
  const config3 = readJson(configPath2);
@@ -29064,7 +29064,7 @@ function moveOld(configPath2, log2, home = homedir7()) {
29064
29064
  }
29065
29065
  removeIfEmpty(places.oldSettings);
29066
29066
  removeIfEmpty(places.oldAgents);
29067
- removeIfEmpty(dirname6(places.oldAgents));
29067
+ removeIfEmpty(dirname7(places.oldAgents));
29068
29068
  }
29069
29069
 
29070
29070
  // src/setup.ts
@@ -29224,7 +29224,7 @@ var log = (line2) => process.stdout.write(`${(/* @__PURE__ */ new Date()).toISOS
29224
29224
  `);
29225
29225
  if (!handsOver) moveOld(configTargetOf(words3[0]), log);
29226
29226
  var configPath = configPathOf(words3[0]);
29227
- var folder = dirname7(configPath);
29227
+ var folder = dirname8(configPath);
29228
29228
  var statePath = join14(folder, "sessions.json");
29229
29229
  var state = existsSync12(statePath) ? JSON.parse(readFileSync13(statePath, "utf8")) : { sessions: {} };
29230
29230
  var saveState = (next) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@chipschat/hermes",
3
- "version": "1.0.18",
3
+ "version": "1.0.19",
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": {