@signetai/connector-forge 0.231.1 → 0.231.2

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 +17 -3
  2. package/package.json +3 -3
package/dist/index.js CHANGED
@@ -17,7 +17,7 @@ import { join as join5, resolve as resolve4 } from "node:path";
17
17
  import { randomBytes } from "node:crypto";
18
18
  import { existsSync, readFileSync, realpathSync, renameSync, statSync, unlinkSync, writeFileSync } from "node:fs";
19
19
  import { homedir } from "node:os";
20
- import { dirname as dirname2, isAbsolute, join as join3, relative, sep } from "node:path";
20
+ import { basename as basename2, dirname as dirname2, isAbsolute, join as join3, relative, sep } from "node:path";
21
21
  import { createRequire } from "node:module";
22
22
  import { dirname, join, resolve } from "node:path";
23
23
  import { fileURLToPath } from "node:url";
@@ -17981,6 +17981,17 @@ function atomicWriteJson(path, data, indent = 2) {
17981
17981
  atomicWriteText(path, `${JSON.stringify(data, null, indent)}
17982
17982
  `);
17983
17983
  }
17984
+ var SIGNET_MCP_STDIO_WORKER_ENV = "SIGNET_MCP_STDIO_WORKER";
17985
+ function resolveRunningNativeSignetBinary() {
17986
+ const executable = process.execPath;
17987
+ if (!/^signet(?:\.exe)?$/i.test(basename2(executable)))
17988
+ return null;
17989
+ try {
17990
+ return statSync(executable).isFile() ? executable : null;
17991
+ } catch {
17992
+ return null;
17993
+ }
17994
+ }
17984
17995
  function resolvePackagedSignetCommand(bareCommand, scriptDirectory, scriptName, warnOnFallback) {
17985
17996
  if (process.platform !== "win32")
17986
17997
  return { command: bareCommand, args: [] };
@@ -17994,6 +18005,9 @@ function resolvePackagedSignetCommand(bareCommand, scriptDirectory, scriptName,
17994
18005
  return { command: bareCommand, args: [] };
17995
18006
  }
17996
18007
  function resolveSignetMcpCommand() {
18008
+ const nativeBinary = resolveRunningNativeSignetBinary();
18009
+ if (nativeBinary)
18010
+ return { command: nativeBinary, args: [], env: { [SIGNET_MCP_STDIO_WORKER_ENV]: "1" } };
17997
18011
  return resolvePackagedSignetCommand("signet-mcp", "dist", "mcp-stdio.js", true);
17998
18012
  }
17999
18013
  function isJsonObject(value) {
@@ -18061,7 +18075,7 @@ import { createRequire as createRequire22 } from "node:module";
18061
18075
  import { homedir as homedir52 } from "node:os";
18062
18076
  import { dirname as dirname62, join as join142, resolve as resolve82 } from "node:path";
18063
18077
  import { homedir as homedir62, platform as platform22 } from "node:os";
18064
- import { basename as basename2, dirname as dirname72, resolve as resolve92 } from "node:path";
18078
+ import { basename as basename3, dirname as dirname72, resolve as resolve92 } from "node:path";
18065
18079
  import { existsSync as existsSync16, readFileSync as readFileSync13, realpathSync as realpathSync2, statSync as statSync8 } from "node:fs";
18066
18080
  import { dirname as dirname8, join as join16 } from "node:path";
18067
18081
  import { homedir as homedir82 } from "node:os";
@@ -35766,7 +35780,7 @@ function buildMcpServer(basePath) {
35766
35780
  return {
35767
35781
  command: mcp.command,
35768
35782
  ...mcp.args && mcp.args.length > 0 ? { args: mcp.args } : {},
35769
- env: buildSignetRuntimeEnv({ basePath })
35783
+ env: { ...buildSignetRuntimeEnv({ basePath }), ...mcp.env }
35770
35784
  };
35771
35785
  }
35772
35786
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@signetai/connector-forge",
3
- "version": "0.231.1",
3
+ "version": "0.231.2",
4
4
  "description": "Signet connector for ForgeCode - installs MCP, identity, and skills integration",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -24,8 +24,8 @@
24
24
  "typecheck": "tsc --noEmit"
25
25
  },
26
26
  "dependencies": {
27
- "@signetai/connector-base": "0.231.1",
28
- "@signetai/core": "0.231.1"
27
+ "@signetai/connector-base": "0.231.2",
28
+ "@signetai/core": "0.231.2"
29
29
  },
30
30
  "devDependencies": {
31
31
  "@types/node": "^22.0.0",