forge-delegate 1.0.1 → 1.0.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.
- package/package.json +2 -2
- package/server.mjs +2 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "forge-delegate",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.2",
|
|
4
4
|
"description": "MCP server that relays coding work to other AI models (DeepSeek, Gemini, OpenAI, Ollama) so Claude Code saves tokens",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
"scripts": {
|
|
10
10
|
"setup": "node cli.mjs setup",
|
|
11
11
|
"start": "node cli.mjs serve",
|
|
12
|
-
"prepublishOnly": "node --check cli.mjs && node --check server.mjs && node --check lib.mjs"
|
|
12
|
+
"prepublishOnly": "node --check cli.mjs && node --check server.mjs && node --check lib.mjs && node test-handshake.mjs"
|
|
13
13
|
},
|
|
14
14
|
"files": [
|
|
15
15
|
"cli.mjs",
|
package/server.mjs
CHANGED
|
@@ -229,7 +229,7 @@ server.tool(
|
|
|
229
229
|
const { profiles, ...rest } = cfg;
|
|
230
230
|
const lines = Object.entries(rest).map(([k, v]) => ` ${k}: ${v ?? "(unset)"}`);
|
|
231
231
|
const prof = Object.entries(profiles).map(([k, v]) => ` ${k}: ${JSON.stringify(v)}`).join("\n") || " (none)";
|
|
232
|
-
return `config: ${configPath()}\n${lines.join("\n")}\nprofiles:\n${prof}
|
|
232
|
+
return { content: [{ type: "text", text: `config: ${configPath()}\n${lines.join("\n")}\nprofiles:\n${prof}` }] };
|
|
233
233
|
}
|
|
234
234
|
);
|
|
235
235
|
|
|
@@ -249,7 +249,7 @@ server.tool(
|
|
|
249
249
|
try {
|
|
250
250
|
saveConfig(patch);
|
|
251
251
|
const cfg = loadConfig();
|
|
252
|
-
return `Updated. defaultModel=${cfg.defaultModel ?? "(unset)"}, autoApprove=${cfg.autoApprove}, defaultDirectory=${cfg.defaultDirectory ?? "(unset)"}, profiles=${Object.keys(cfg.profiles).join(",") || "none"}
|
|
252
|
+
return { content: [{ type: "text", text: `Updated. defaultModel=${cfg.defaultModel ?? "(unset)"}, autoApprove=${cfg.autoApprove}, defaultDirectory=${cfg.defaultDirectory ?? "(unset)"}, profiles=${Object.keys(cfg.profiles).join(",") || "none"}` }] };
|
|
253
253
|
} catch (e) {
|
|
254
254
|
return { content: [{ type: "text", text: `ERROR: ${e.message}` }], isError: true };
|
|
255
255
|
}
|