@signetai/connector-hermes-agent 0.182.5 → 0.182.7

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 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,aAAa,EAAE,KAAK,aAAa,EAAE,KAAK,eAAe,EAAuB,MAAM,wBAAwB,CAAC;AAoDtH,MAAM,WAAW,qBAAqB;IACrC,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,EAAE,EAAE,OAAO,CAAC;IACrB,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,GAAG,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,MAAM,WAAW,kBAAkB;IAClC,QAAQ,CAAC,EAAE,EAAE,OAAO,CAAC;IACrB,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;IAC5B,QAAQ,CAAC,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;IACnC,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;IAC5B,QAAQ,CAAC,aAAa,EAAE,MAAM,CAAC;IAC/B,QAAQ,CAAC,aAAa,EAAE,MAAM,GAAG,IAAI,CAAC;IACtC,QAAQ,CAAC,SAAS,EAAE,SAAS,MAAM,EAAE,CAAC;IACtC,QAAQ,CAAC,MAAM,EAAE,SAAS,qBAAqB,EAAE,CAAC;IAClD,QAAQ,CAAC,QAAQ,EAAE,SAAS,MAAM,EAAE,CAAC;CACrC;AAkqBD,qBAAa,oBAAqB,SAAQ,aAAa;IACtD,QAAQ,CAAC,IAAI,kBAAkB;IAC/B,QAAQ,CAAC,SAAS,kBAAkB;IAEpC,OAAO,CAAC,aAAa;IAIrB,OAAO,CAAC,aAAa;IAIrB,aAAa,IAAI,MAAM;IAIjB,OAAO,CAAC,Q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,CAAC,SAAS,EAAE,SAAS,MAAM,EAAE,CAAC;IACtC,QAAQ,CAAC,MAAM,EAAE,SAAS,qBAAqB,EAAE,CAAC;IAClD,QAAQ,CAAC,QAAQ,EAAE,SAAS,MAAM,EAAE,CAAC;CACrC;AAsrBD,qBAAa,oBAAqB,SAAQ,aAAa;IACtD,QAAQ,CAAC,IAAI,kBAAkB;IAC/B,QAAQ,CAAC,SAAS,kBAAkB;IAEpC,OAAO,CAAC,aAAa;IAIrB,OAAO,CAAC,aAAa;IAIrB,aAAa,IAAI,MAAM;IAIjB,OAAO,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,aAAa,CAAC;IAgMjD,SAAS,IAAI,OAAO,CAAC,eAAe,CAAC;IAuD3C,WAAW,IAAI,OAAO;IAQhB,QAAQ,IAAI,OAAO,CAAC,kBAAkB,CAAC;CAS7C;AAED,wBAAsB,yBAAyB,CAAC,IAAI,CAAC,EAAE;IACtD,QAAQ,CAAC,UAAU,CAAC,EAAE,MAAM,CAAC;IAC7B,QAAQ,CAAC,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACpC,QAAQ,CAAC,SAAS,CAAC,EAAE,MAAM,CAAC;CAC5B,GAAG,OAAO,CAAC,kBAAkB,CAAC,CAuG9B;AAED,wBAAgB,eAAe,IAAI,oBAAoB,CAEtD;AAED,eAAe,oBAAoB,CAAC"}
package/dist/index.js CHANGED
@@ -23643,33 +23643,47 @@ function probeHermesProvider(hermesRepo) {
23643
23643
  "print(json.dumps({'toolNames': names, 'missing': [name for name in required if name not in names]}))"
23644
23644
  ].join(`
23645
23645
  `);
23646
- const python = process.env.PYTHON?.trim() || "python";
23647
- const result = spawnSync(python, ["-c", script], {
23648
- cwd: hermesRepo,
23649
- env: { ...process.env, PYTHONPATH: hermesRepo },
23650
- encoding: "utf-8",
23651
- timeout: 5000
23652
- });
23653
- if (result.error) {
23654
- return { ok: false, toolNames: [], error: result.error.message };
23655
- }
23656
- if (result.status !== 0) {
23657
- const err = `${result.stderr || result.stdout || `python exited ${result.status}`}`.trim();
23658
- return { ok: false, toolNames: [], error: err };
23659
- }
23660
- try {
23661
- const parsed = JSON.parse(result.stdout.trim());
23662
- const toolNames = Array.isArray(parsed.toolNames) ? parsed.toolNames.filter((name) => typeof name === "string") : [];
23663
- const missing = Array.isArray(parsed.missing) ? parsed.missing.filter((name) => typeof name === "string") : [];
23664
- return {
23665
- ok: missing.length === 0,
23666
- toolNames,
23667
- error: missing.length > 0 ? `Missing tools: ${missing.join(", ")}` : null
23668
- };
23669
- } catch (e) {
23670
- const msg = e instanceof Error ? e.message : String(e);
23671
- return { ok: false, toolNames: [], error: `Could not parse Hermes provider probe output: ${msg}` };
23646
+ const configuredPython = process.env.PYTHON?.trim();
23647
+ const candidates = configuredPython ? [{ command: configuredPython, args: [] }] : process.platform === "win32" ? [
23648
+ { command: "py", args: ["-3"] },
23649
+ { command: "python", args: [] },
23650
+ { command: "python3", args: [] }
23651
+ ] : [
23652
+ { command: "python3", args: [] },
23653
+ { command: "python", args: [] }
23654
+ ];
23655
+ const errors = [];
23656
+ for (const candidate of candidates) {
23657
+ const result = spawnSync(candidate.command, [...candidate.args, "-c", script], {
23658
+ cwd: hermesRepo,
23659
+ env: { ...process.env, PYTHONPATH: hermesRepo },
23660
+ encoding: "utf-8",
23661
+ timeout: 5000
23662
+ });
23663
+ if (result.error) {
23664
+ errors.push(`${candidate.command}: ${result.error.message}`);
23665
+ continue;
23666
+ }
23667
+ if (result.status !== 0) {
23668
+ const err = `${result.stderr || result.stdout || `${candidate.command} exited ${result.status}`}`.trim();
23669
+ errors.push(`${candidate.command}: ${err}`);
23670
+ continue;
23671
+ }
23672
+ try {
23673
+ const parsed = JSON.parse(result.stdout.trim());
23674
+ const toolNames = Array.isArray(parsed.toolNames) ? parsed.toolNames.filter((name) => typeof name === "string") : [];
23675
+ const missing = Array.isArray(parsed.missing) ? parsed.missing.filter((name) => typeof name === "string") : [];
23676
+ return {
23677
+ ok: missing.length === 0,
23678
+ toolNames,
23679
+ error: missing.length > 0 ? `Missing tools: ${missing.join(", ")}` : null
23680
+ };
23681
+ } catch (e) {
23682
+ const msg = e instanceof Error ? e.message : String(e);
23683
+ errors.push(`${candidate.command}: Could not parse Hermes provider probe output: ${msg}`);
23684
+ }
23672
23685
  }
23686
+ return { ok: false, toolNames: [], error: errors.join("; ") || "No Python interpreter found" };
23673
23687
  }
23674
23688
  async function checkDaemon(daemonUrl) {
23675
23689
  const baseUrl = trimTrailingSlashes(daemonUrl);
@@ -30,6 +30,7 @@ Environment variables:
30
30
  - `SIGNET_AGENT_WORKSPACE` — Optional named-agent workspace path (for example `~/.agents/agents/dot`)
31
31
  - `SIGNET_AGENT_READ_POLICY` — Optional named-agent memory policy for first registration: `shared` (default), `isolated`, or `group`
32
32
  - `SIGNET_AGENT_POLICY_GROUP` — Required when `SIGNET_AGENT_READ_POLICY=group`
33
+ - `PYTHON` — Optional Python interpreter command or path for connector probes; defaults to `python3` then `python` on Unix and `py -3`, `python`, then `python3` on Windows
33
34
 
34
35
  ## Tools
35
36
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@signetai/connector-hermes-agent",
3
- "version": "0.182.5",
3
+ "version": "0.182.7",
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.182.5",
29
- "@signetai/core": "0.182.5"
28
+ "@signetai/connector-base": "0.182.7",
29
+ "@signetai/core": "0.182.7"
30
30
  },
31
31
  "devDependencies": {
32
32
  "@types/node": "^22.0.0",