pantheon-cli 0.2.131 → 0.2.132
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/pantheon.mjs +21 -0
- package/package.json +3 -3
package/dist/pantheon.mjs
CHANGED
|
@@ -55545,8 +55545,29 @@ ${GUIDE}` }]
|
|
|
55545
55545
|
},
|
|
55546
55546
|
async () => promptText("Call pantheon_help and follow that guide.")
|
|
55547
55547
|
);
|
|
55548
|
+
omitSchemaDialect(server);
|
|
55548
55549
|
return server;
|
|
55549
55550
|
}
|
|
55551
|
+
function omitSchemaDialect(server) {
|
|
55552
|
+
const handlers = server.server._requestHandlers;
|
|
55553
|
+
const list = handlers?.get("tools/list");
|
|
55554
|
+
if (!list) throw new Error("Pantheon could not find the tools/list handler to normalize.");
|
|
55555
|
+
handlers.set("tools/list", async (request, extra) => {
|
|
55556
|
+
const result = await list(request, extra);
|
|
55557
|
+
return {
|
|
55558
|
+
...result,
|
|
55559
|
+
tools: result.tools?.map((tool) => ({
|
|
55560
|
+
...tool,
|
|
55561
|
+
...tool.inputSchema ? { inputSchema: withoutDialect(tool.inputSchema) } : {},
|
|
55562
|
+
...tool.outputSchema ? { outputSchema: withoutDialect(tool.outputSchema) } : {}
|
|
55563
|
+
}))
|
|
55564
|
+
};
|
|
55565
|
+
});
|
|
55566
|
+
}
|
|
55567
|
+
function withoutDialect(schema) {
|
|
55568
|
+
const { $schema: _dialect, ...rest2 } = schema;
|
|
55569
|
+
return rest2;
|
|
55570
|
+
}
|
|
55550
55571
|
async function startMcpServer(home = defaultHome()) {
|
|
55551
55572
|
const server = createPantheonServer(home);
|
|
55552
55573
|
const transport = new StdioServerTransport();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pantheon-cli",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.132",
|
|
4
4
|
"description": "Carry agent conscience between AI coding agents. Hand off a conversation in one agent, resume it in another.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -31,8 +31,8 @@
|
|
|
31
31
|
"tsx": "^4.20.3",
|
|
32
32
|
"typescript": "^5",
|
|
33
33
|
"zod": "^3.25.67",
|
|
34
|
-
"@pantheon/
|
|
35
|
-
"@pantheon/
|
|
34
|
+
"@pantheon/mcp": "0.1.0",
|
|
35
|
+
"@pantheon/core": "0.1.0"
|
|
36
36
|
},
|
|
37
37
|
"scripts": {
|
|
38
38
|
"start": "tsx src/index.ts",
|