@signetai/connector-hermes-agent 0.178.0 → 0.179.0

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/dist/index.js +27 -21
  2. package/package.json +3 -3
package/dist/index.js CHANGED
@@ -3,20 +3,22 @@ import { spawnSync } from "node:child_process";
3
3
  import { createHash } from "node:crypto";
4
4
  import { existsSync as existsSync2, mkdirSync, readFileSync as readFileSync2, rmSync, writeFileSync as writeFileSync2 } from "node:fs";
5
5
  import { homedir } from "node:os";
6
- import { dirname as dirname5, join as join4 } from "node:path";
6
+ import { dirname as dirname6, join as join4 } from "node:path";
7
7
  import { fileURLToPath as fileURLToPath3 } from "node:url";
8
8
 
9
9
  // ../../../libs/connector-base/dist/index.js
10
10
  import { randomBytes } from "node:crypto";
11
11
  import { existsSync, readFileSync, renameSync, statSync as statSync2, unlinkSync as unlinkSync2, writeFileSync } from "node:fs";
12
- import { dirname as dirname3, isAbsolute, join as join3, relative, sep } from "node:path";
12
+ import { dirname as dirname5, isAbsolute, join as join3, relative, sep } from "node:path";
13
13
  import { createRequire } from "node:module";
14
14
  import { dirname, join } from "node:path";
15
15
  import { fileURLToPath } from "node:url";
16
16
  import { createRequire as createRequire2 } from "node:module";
17
- import { homedir as homedir4, platform as platform2 } from "node:os";
17
+ import { homedir as homedir4 } from "node:os";
18
+ import { dirname as dirname3, join as join6, resolve as resolve2 } from "node:path";
19
+ import { homedir as homedir5, platform as platform2 } from "node:os";
18
20
  import { basename, dirname as dirname4, resolve as resolve4 } from "node:path";
19
- import { homedir as homedir8 } from "node:os";
21
+ import { homedir as homedir9 } from "node:os";
20
22
  import { existsSync as existsSync13, lstatSync, mkdirSync as mkdirSync9, readdirSync as readdirSync6, symlinkSync, unlinkSync } from "node:fs";
21
23
  import { join as join13 } from "node:path";
22
24
  var __create2 = Object.create;
@@ -11300,6 +11302,7 @@ try {
11300
11302
  const esmRequire = createRequire2(import.meta.url);
11301
11303
  native = esmRequire("@signet/native");
11302
11304
  } catch {}
11305
+ var GRAPHIQ_DEFAULT_INSTALL_DIR = join6(homedir4(), ".local", "bin");
11303
11306
  var SIGNET_SOURCE_CHECKOUT_DIRNAME = "signetai";
11304
11307
  var SIGNET_GIT_ALLOWED_DIRECTORIES = ["skills", "tools", "dreaming"];
11305
11308
  var SIGNET_GIT_PROTECTED_PATHS = [
@@ -11369,11 +11372,11 @@ var VALID_GITHUB_RESOURCE_TYPES = new Set(DEFAULT_GITHUB_RESOURCE_TYPES);
11369
11372
  function defaultDiscordDesktopCachePath() {
11370
11373
  switch (platform2()) {
11371
11374
  case "darwin":
11372
- return resolve4(homedir4(), "Library", "Application Support", "discord");
11375
+ return resolve4(homedir5(), "Library", "Application Support", "discord");
11373
11376
  case "win32":
11374
- return resolve4(process.env.APPDATA || resolve4(homedir4(), "AppData", "Roaming"), "discord");
11377
+ return resolve4(process.env.APPDATA || resolve4(homedir5(), "AppData", "Roaming"), "discord");
11375
11378
  default:
11376
- return resolve4(process.env.XDG_CONFIG_HOME || resolve4(homedir4(), ".config"), "discord");
11379
+ return resolve4(process.env.XDG_CONFIG_HOME || resolve4(homedir5(), ".config"), "discord");
11377
11380
  }
11378
11381
  }
11379
11382
  var IDENTITY_FILES = {
@@ -11504,7 +11507,7 @@ function symlinkSkills(sourceDir, targetDir, options = {}) {
11504
11507
  }
11505
11508
  return result;
11506
11509
  }
11507
- var home = homedir8();
11510
+ var home = homedir9();
11508
11511
  var SIGNET_BLOCK_START = "<!-- SIGNET:START -->";
11509
11512
  var SIGNET_BLOCK_END = "<!-- SIGNET:END -->";
11510
11513
  function stripSignetBlock(content) {
@@ -11545,7 +11548,7 @@ class BaseConnector {
11545
11548
  generateHeader(sourcePath, targetName) {
11546
11549
  const name = targetName || this.name;
11547
11550
  const safe = (p) => p.replace(/[\n\r]/g, "");
11548
- const root = dirname3(sourcePath);
11551
+ const root = dirname5(sourcePath);
11549
11552
  return `# Auto-generated from ${safe(sourcePath)}
11550
11553
  # Source: ${safe(sourcePath)}
11551
11554
  # Generated: ${new Date().toISOString()}
@@ -11597,13 +11600,15 @@ import { fileURLToPath as fileURLToPath2 } from "node:url";
11597
11600
  import { homedir as homedir2 } from "os";
11598
11601
  import { join as join22 } from "path";
11599
11602
  import { createRequire as createRequire22 } from "node:module";
11600
- import { homedir as homedir42, platform as platform22 } from "node:os";
11603
+ import { homedir as homedir42 } from "node:os";
11604
+ import { dirname as dirname32, join as join62, resolve as resolve22 } from "node:path";
11605
+ import { homedir as homedir52, platform as platform22 } from "node:os";
11601
11606
  import { basename as basename2, dirname as dirname42, resolve as resolve42 } from "node:path";
11602
11607
  import { execFileSync } from "node:child_process";
11603
11608
  import { existsSync as existsSync11, readFileSync as readFileSync9, readdirSync as readdirSync4, realpathSync, statSync as statSync5 } from "node:fs";
11604
- import { homedir as homedir7 } from "node:os";
11609
+ import { homedir as homedir8 } from "node:os";
11605
11610
  import { dirname as dirname7, join as join11 } from "node:path";
11606
- import { homedir as homedir82 } from "node:os";
11611
+ import { homedir as homedir92 } from "node:os";
11607
11612
  var __create = Object.create;
11608
11613
  var __getProtoOf = Object.getPrototypeOf;
11609
11614
  var __defProp = Object.defineProperty;
@@ -22892,6 +22897,7 @@ try {
22892
22897
  const esmRequire = createRequire22(import.meta.url);
22893
22898
  native2 = esmRequire("@signet/native");
22894
22899
  } catch {}
22900
+ var GRAPHIQ_DEFAULT_INSTALL_DIR2 = join62(homedir42(), ".local", "bin");
22895
22901
  var SIGNET_SOURCE_CHECKOUT_DIRNAME2 = "signetai";
22896
22902
  var SIGNET_GIT_ALLOWED_DIRECTORIES2 = ["skills", "tools", "dreaming"];
22897
22903
  var SIGNET_GIT_PROTECTED_PATHS2 = [
@@ -22961,11 +22967,11 @@ var VALID_GITHUB_RESOURCE_TYPES2 = new Set(DEFAULT_GITHUB_RESOURCE_TYPES2);
22961
22967
  function defaultDiscordDesktopCachePath2() {
22962
22968
  switch (platform22()) {
22963
22969
  case "darwin":
22964
- return resolve42(homedir42(), "Library", "Application Support", "discord");
22970
+ return resolve42(homedir52(), "Library", "Application Support", "discord");
22965
22971
  case "win32":
22966
- return resolve42(process.env.APPDATA || resolve42(homedir42(), "AppData", "Roaming"), "discord");
22972
+ return resolve42(process.env.APPDATA || resolve42(homedir52(), "AppData", "Roaming"), "discord");
22967
22973
  default:
22968
- return resolve42(process.env.XDG_CONFIG_HOME || resolve42(homedir42(), ".config"), "discord");
22974
+ return resolve42(process.env.XDG_CONFIG_HOME || resolve42(homedir52(), ".config"), "discord");
22969
22975
  }
22970
22976
  }
22971
22977
  var IDENTITY_FILES2 = {
@@ -23024,7 +23030,7 @@ var IDENTITY_FILES2 = {
23024
23030
  var REQUIRED_IDENTITY_KEYS2 = Object.entries(IDENTITY_FILES2).filter(([, spec]) => !spec.optional).map(([key]) => key);
23025
23031
  var OPTIONAL_IDENTITY_KEYS2 = Object.entries(IDENTITY_FILES2).filter(([, spec]) => spec.optional).map(([key]) => key);
23026
23032
  function userHome() {
23027
- return process.env.HOME?.trim() || homedir7();
23033
+ return process.env.HOME?.trim() || homedir8();
23028
23034
  }
23029
23035
  function resolveHermesHomePath() {
23030
23036
  const hermesHome = process.env.HERMES_HOME?.trim();
@@ -23065,10 +23071,10 @@ function resolveHermesRepoPath() {
23065
23071
  } catch {}
23066
23072
  return null;
23067
23073
  }
23068
- var home2 = homedir82();
23074
+ var home2 = homedir92();
23069
23075
 
23070
23076
  // src/index.ts
23071
- var __dirname3 = dirname5(fileURLToPath3(import.meta.url));
23077
+ var __dirname3 = dirname6(fileURLToPath3(import.meta.url));
23072
23078
  function getPluginSourceDir() {
23073
23079
  const fromDist = join4(__dirname3, "..", "hermes-plugin");
23074
23080
  if (existsSync2(fromDist))
@@ -23266,7 +23272,7 @@ function writeProviderBackup(hermesHome, configPath, providerKind, previousProvi
23266
23272
  previousProvider,
23267
23273
  createdAt: new Date().toISOString()
23268
23274
  };
23269
- mkdirSync(dirname5(backupPath), { recursive: true });
23275
+ mkdirSync(dirname6(backupPath), { recursive: true });
23270
23276
  writeFileSync2(backupPath, `${JSON.stringify(backup, null, 2)}
23271
23277
  `);
23272
23278
  return backupPath;
@@ -23349,7 +23355,7 @@ function configureProvider(hermesHome, warnings) {
23349
23355
  }
23350
23356
  if (!changed)
23351
23357
  return { configPath: null, backupPath: null };
23352
- mkdirSync(dirname5(configPath), { recursive: true });
23358
+ mkdirSync(dirname6(configPath), { recursive: true });
23353
23359
  writeFileSync2(configPath, `${lines.join(`
23354
23360
  `).replace(/\n+$/g, "")}
23355
23361
  `);
@@ -23371,7 +23377,7 @@ function configureProvider(hermesHome, warnings) {
23371
23377
  lines.push("");
23372
23378
  lines.push("memory:", " provider: signet");
23373
23379
  }
23374
- mkdirSync(dirname5(configPath), { recursive: true });
23380
+ mkdirSync(dirname6(configPath), { recursive: true });
23375
23381
  writeFileSync2(configPath, `${lines.join(`
23376
23382
  `).replace(/\n+$/g, "")}
23377
23383
  `);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@signetai/connector-hermes-agent",
3
- "version": "0.178.0",
3
+ "version": "0.179.0",
4
4
  "description": "Signet connector for Hermes Agent — installs Signet as a pluggable memory provider",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -25,8 +25,8 @@
25
25
  "typecheck": "tsc --noEmit"
26
26
  },
27
27
  "dependencies": {
28
- "@signetai/connector-base": "0.178.0",
29
- "@signetai/core": "0.178.0"
28
+ "@signetai/connector-base": "0.179.0",
29
+ "@signetai/core": "0.179.0"
30
30
  },
31
31
  "devDependencies": {
32
32
  "@types/node": "^22.0.0",