@signetai/connector-forge 0.152.2 → 0.154.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.
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +17 -12
- package/package.json +3 -3
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAaA,OAAO,EACN,aAAa,EACb,KAAK,aAAa,EAClB,KAAK,eAAe,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAaA,OAAO,EACN,aAAa,EACb,KAAK,aAAa,EAClB,KAAK,eAAe,EAMpB,MAAM,wBAAwB,CAAC;AAwFhC,qBAAa,cAAe,SAAQ,aAAa;IAChD,QAAQ,CAAC,IAAI,eAAe;IAC5B,QAAQ,CAAC,SAAS,WAAW;IAE7B,SAAS,CAAC,YAAY,IAAI,MAAM;IAUhC,aAAa,IAAI,MAAM;IAIjB,OAAO,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,aAAa,CAAC;IA4EjD,SAAS,IAAI,OAAO,CAAC,eAAe,CAAC;IAiD3C,WAAW,IAAI,OAAO;IAStB,MAAM,CAAC,kBAAkB,IAAI,OAAO;IAWpC,OAAO,CAAC,aAAa;IAIrB,OAAO,CAAC,aAAa;IAIrB,OAAO,CAAC,gBAAgB;IAIxB,OAAO,CAAC,gBAAgB;IAcxB,OAAO,CAAC,iBAAiB;IAMzB,OAAO,CAAC,eAAe;IAYvB,OAAO,CAAC,iBAAiB;IAWzB,OAAO,CAAC,mBAAmB;CAgC3B;AAED,eAAO,MAAM,cAAc,gBAAuB,CAAC;AACnD,eAAe,cAAc,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -11138,6 +11138,21 @@ function atomicWriteJson(path, data, indent = 2) {
|
|
|
11138
11138
|
atomicWriteText(path, `${JSON.stringify(data, null, indent)}
|
|
11139
11139
|
`);
|
|
11140
11140
|
}
|
|
11141
|
+
function resolvePackagedSignetCommand(bareCommand, scriptDirectory, scriptName, warnOnFallback) {
|
|
11142
|
+
if (process.platform !== "win32")
|
|
11143
|
+
return { command: bareCommand, args: [] };
|
|
11144
|
+
const cliEntry = process.argv[1] ?? "";
|
|
11145
|
+
const scriptPath = join3(cliEntry, "..", "..", scriptDirectory, scriptName);
|
|
11146
|
+
if (cliEntry && existsSync(scriptPath))
|
|
11147
|
+
return { command: process.execPath, args: [scriptPath] };
|
|
11148
|
+
if (warnOnFallback) {
|
|
11149
|
+
console.warn(`[signet] Warning: could not resolve ${scriptName} from argv[1]="${cliEntry}". ` + `MCP server config will use "${bareCommand}" which may fail on Windows without shell:true.`);
|
|
11150
|
+
}
|
|
11151
|
+
return { command: bareCommand, args: [] };
|
|
11152
|
+
}
|
|
11153
|
+
function resolveSignetMcpCommand() {
|
|
11154
|
+
return resolvePackagedSignetCommand("signet-mcp", "dist", "mcp-stdio.js", true);
|
|
11155
|
+
}
|
|
11141
11156
|
function readManagedTrimmedEnv(name) {
|
|
11142
11157
|
const value = process.env[name];
|
|
11143
11158
|
if (typeof value !== "string")
|
|
@@ -22294,16 +22309,6 @@ function signetRuntimeEnv(basePath) {
|
|
|
22294
22309
|
function resolveRemoteDaemonUrl() {
|
|
22295
22310
|
return readTrimmedEnv("SIGNET_DAEMON_URL") ? resolveSignetDaemonUrl() : null;
|
|
22296
22311
|
}
|
|
22297
|
-
function resolveSignetMcp() {
|
|
22298
|
-
if (process.platform !== "win32")
|
|
22299
|
-
return { command: "signet-mcp", args: [] };
|
|
22300
|
-
const cliEntry = process.argv[1] || "";
|
|
22301
|
-
const mcpJs = join6(cliEntry, "..", "..", "dist", "mcp-stdio.js");
|
|
22302
|
-
if (existsSync2(mcpJs))
|
|
22303
|
-
return { command: process.execPath, args: [mcpJs] };
|
|
22304
|
-
console.warn(`[signet] Warning: could not resolve mcp-stdio.js from argv[1]="${cliEntry}". ` + `MCP server config will use "signet-mcp" which may fail on Windows without shell:true.`);
|
|
22305
|
-
return { command: "signet-mcp", args: [] };
|
|
22306
|
-
}
|
|
22307
22312
|
function buildMcpServer(basePath) {
|
|
22308
22313
|
const remoteDaemonUrl = resolveRemoteDaemonUrl();
|
|
22309
22314
|
if (remoteDaemonUrl) {
|
|
@@ -22313,7 +22318,7 @@ function buildMcpServer(basePath) {
|
|
|
22313
22318
|
...apiKey ? { headers: { Authorization: `Bearer ${apiKey}` } } : {}
|
|
22314
22319
|
};
|
|
22315
22320
|
}
|
|
22316
|
-
const mcp =
|
|
22321
|
+
const mcp = resolveSignetMcpCommand();
|
|
22317
22322
|
return {
|
|
22318
22323
|
command: mcp.command,
|
|
22319
22324
|
...mcp.args && mcp.args.length > 0 ? { args: mcp.args } : {},
|
|
@@ -22494,7 +22499,7 @@ ${header}${body}
|
|
|
22494
22499
|
return false;
|
|
22495
22500
|
const { signet: _, ...rest } = servers;
|
|
22496
22501
|
if (Object.keys(rest).length === 0) {
|
|
22497
|
-
|
|
22502
|
+
Reflect.deleteProperty(config, "mcpServers");
|
|
22498
22503
|
} else {
|
|
22499
22504
|
config.mcpServers = rest;
|
|
22500
22505
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@signetai/connector-forge",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.154.0",
|
|
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.
|
|
28
|
-
"@signetai/core": "0.
|
|
27
|
+
"@signetai/connector-base": "0.154.0",
|
|
28
|
+
"@signetai/core": "0.154.0"
|
|
29
29
|
},
|
|
30
30
|
"devDependencies": {
|
|
31
31
|
"@types/node": "^22.0.0",
|