@signetai/connector-opencode 0.153.0 → 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 +18 -11
- 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;;;;;;;;;;;;;;;;;;;GAmBG;AAKH,OAAO,EACN,aAAa,EACb,KAAK,aAAa,EAClB,KAAK,eAAe,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAKH,OAAO,EACN,aAAa,EACb,KAAK,aAAa,EAClB,KAAK,eAAe,EAKpB,MAAM,wBAAwB,CAAC;AAmGhC;;;;;GAKG;AACH,qBAAa,iBAAkB,SAAQ,aAAa;IACnD,QAAQ,CAAC,IAAI,cAAc;IAC3B,QAAQ,CAAC,SAAS,cAAc;IAEhC,SAAS,CAAC,eAAe,IAAI,MAAM;IAInC,aAAa,IAAI,MAAM;IAUvB,OAAO,CAAC,cAAc;IAItB,OAAO,CAAC,iBAAiB;IAIzB,OAAO,CAAC,iBAAiB;IAIzB,OAAO,CAAC,oBAAoB;IAI5B;;;;;;;;OAQG;IACG,OAAO,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,aAAa,CAAC;IAyGvD;;OAEG;IACG,SAAS,IAAI,OAAO,CAAC,eAAe,CAAC;IAqC3C;;OAEG;IACH,WAAW,IAAI,OAAO;IAItB;;OAEG;IACH,MAAM,CAAC,kBAAkB,IAAI,OAAO;IAqBpC;;OAEG;IACH,OAAO,CAAC,iBAAiB;IAmBzB,OAAO,CAAC,UAAU;IASlB,OAAO,CAAC,wBAAwB;IAMhC,OAAO,CAAC,oBAAoB;IAS5B,OAAO,CAAC,mBAAmB;IAM3B,OAAO,CAAC,eAAe;IAMvB,OAAO,CAAC,kBAAkB;IAW1B,OAAO,CAAC,cAAc;IAatB,OAAO,CAAC,YAAY;IAWpB,OAAO,CAAC,iBAAiB;IA8BzB,OAAO,CAAC,eAAe;IAavB,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAC,qBAAqB,CAM3C;IAEF,OAAO,CAAC,qBAAqB;IAS7B,OAAO,CAAC,mBAAmB;IAa3B,OAAO,CAAC,gBAAgB;IAQxB,OAAO,CAAC,mBAAmB;IAW3B;;OAEG;YACW,gBAAgB;CAmB9B;AAMD,eAAO,MAAM,iBAAiB,mBAA0B,CAAC;AACzD,eAAe,iBAAiB,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -11118,6 +11118,21 @@ function atomicWriteJson(path, data, indent = 2) {
|
|
|
11118
11118
|
atomicWriteText(path, `${JSON.stringify(data, null, indent)}
|
|
11119
11119
|
`);
|
|
11120
11120
|
}
|
|
11121
|
+
function resolvePackagedSignetCommand(bareCommand, scriptDirectory, scriptName, warnOnFallback) {
|
|
11122
|
+
if (process.platform !== "win32")
|
|
11123
|
+
return { command: bareCommand, args: [] };
|
|
11124
|
+
const cliEntry = process.argv[1] ?? "";
|
|
11125
|
+
const scriptPath = join3(cliEntry, "..", "..", scriptDirectory, scriptName);
|
|
11126
|
+
if (cliEntry && existsSync(scriptPath))
|
|
11127
|
+
return { command: process.execPath, args: [scriptPath] };
|
|
11128
|
+
if (warnOnFallback) {
|
|
11129
|
+
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.`);
|
|
11130
|
+
}
|
|
11131
|
+
return { command: bareCommand, args: [] };
|
|
11132
|
+
}
|
|
11133
|
+
function resolveSignetMcpCommand() {
|
|
11134
|
+
return resolvePackagedSignetCommand("signet-mcp", "dist", "mcp-stdio.js", true);
|
|
11135
|
+
}
|
|
11121
11136
|
|
|
11122
11137
|
// ../../../platform/core/dist/index.js
|
|
11123
11138
|
import { createRequire as createRequire3 } from "node:module";
|
|
@@ -25826,7 +25841,7 @@ function signetRuntimeEnv() {
|
|
|
25826
25841
|
function buildPluginBundle(apiKeyFilePath) {
|
|
25827
25842
|
const env = signetRuntimeEnv();
|
|
25828
25843
|
if (apiKeyFilePath)
|
|
25829
|
-
|
|
25844
|
+
Reflect.deleteProperty(env, "SIGNET_API_KEY");
|
|
25830
25845
|
const assignments = Object.entries(env).map(([key, value]) => `process.env[${JSON.stringify(key)}] = ${JSON.stringify(value)};`);
|
|
25831
25846
|
if (apiKeyFilePath) {
|
|
25832
25847
|
assignments.unshift('import { readFileSync as __signetReadFileSync } from "node:fs";');
|
|
@@ -26120,16 +26135,8 @@ class OpenCodeConnector extends BaseConnector {
|
|
|
26120
26135
|
});
|
|
26121
26136
|
return;
|
|
26122
26137
|
}
|
|
26123
|
-
|
|
26124
|
-
|
|
26125
|
-
const cliEntry = process.argv[1] || "";
|
|
26126
|
-
const mcpJs = join4(cliEntry, "..", "..", "dist", "mcp-stdio.js");
|
|
26127
|
-
if (existsSync2(mcpJs)) {
|
|
26128
|
-
mcpCommand = [process.execPath, mcpJs];
|
|
26129
|
-
} else {
|
|
26130
|
-
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.`);
|
|
26131
|
-
}
|
|
26132
|
-
}
|
|
26138
|
+
const resolvedMcp = resolveSignetMcpCommand();
|
|
26139
|
+
const mcpCommand = [resolvedMcp.command, ...resolvedMcp.args];
|
|
26133
26140
|
const environment = signetRuntimeEnv();
|
|
26134
26141
|
if (apiKeyFile)
|
|
26135
26142
|
environment.SIGNET_API_KEY = `{file:${apiKeyFile}}`;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@signetai/connector-opencode",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.154.0",
|
|
4
4
|
"description": "Signet connector for OpenCode - installs hooks and generates config",
|
|
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.
|
|
29
|
-
"@signetai/core": "0.
|
|
28
|
+
"@signetai/connector-base": "0.154.0",
|
|
29
|
+
"@signetai/core": "0.154.0",
|
|
30
30
|
"jsonc-parser": "3.3.1"
|
|
31
31
|
},
|
|
32
32
|
"devDependencies": {
|