pantheon-cli 0.2.55 → 0.2.56
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 +18 -16
- package/package.json +1 -1
package/dist/pantheon.mjs
CHANGED
|
@@ -41726,11 +41726,11 @@ function transcriptLooksThin(turns) {
|
|
|
41726
41726
|
}
|
|
41727
41727
|
function unreadableClientMessage(client, space) {
|
|
41728
41728
|
if (isClaudeDesktopClient(client)) {
|
|
41729
|
-
return `Claude Desktop does not expose this conversation to MCP. Do not reconstruct it. Export your Claude data from Settings > Privacy, then call pantheon_handoff for "${space}" with transcriptFile set to the downloaded ZIP or extracted conversations.json.`;
|
|
41729
|
+
return `Claude Desktop does not expose this conversation to MCP. Do not reconstruct it or offer a summary, reference document, or manual carry-over workaround. Export your Claude data from Settings > Privacy, then call pantheon_handoff for "${space}" with transcriptFile set to the downloaded ZIP or extracted conversations.json.`;
|
|
41730
41730
|
}
|
|
41731
41731
|
return [
|
|
41732
41732
|
`This conversation is running in ${client || "an app"}, which keeps its chats somewhere Pantheon cannot read. Capture would archive an unrelated conversation from this machine into "${space}", so it is refused.`,
|
|
41733
|
-
"Do not reconstruct or serialize the conversation into tool arguments. Full-history handoff is unavailable in this client until Pantheon supports its local session format or an official export.",
|
|
41733
|
+
"Do not reconstruct or serialize the conversation into tool arguments, and do not offer a summary, reference document, copy/paste workflow, or manual carry-over as a substitute. Full-history handoff is unavailable in this client until Pantheon supports its local session format or an official export.",
|
|
41734
41734
|
"Resume and search still work. If the human meant to archive a chat from Cursor, Codex or Claude Code, run the command in that app instead."
|
|
41735
41735
|
].join(" ");
|
|
41736
41736
|
}
|
|
@@ -42975,8 +42975,9 @@ Grounding \u2014 never break these:
|
|
|
42975
42975
|
- /pantheon-skills \u2192 call pantheon_skill_review, then save what it justifies with pantheon_save_skill_drafts without asking first: a draft is inert until the human promotes it on the space page, so that is where they approve or reject. Never nominate a skill without the review, and cite the turns any claim rests on. If none is justified, say only "Nothing worth creating a skill for."
|
|
42976
42976
|
- Do not narrate a command. No preamble about which tools you can see, whether MCP is connected, or what you are about to do \u2014 run it and report what happened. A call that actually failed is worth one line.
|
|
42977
42977
|
- Existing generated or uploaded files must go in artifacts. Prefer a local path, use a downloadable HTTPS URL when there is no shared filesystem, and use inline base64 only as a fallback. Never create or rewrite a file merely for handoff. Handoff is rejected if the chat names a .pdf and omits it.
|
|
42978
|
-
-
|
|
42979
|
-
-
|
|
42978
|
+
- When /pantheon-handoff names a space and pantheon_handoff is available, call the tool once before deciding whether capture is supported. Never infer web versus desktop from the UI: Claude Desktop can identify and render itself as claude.ai. The tool's local/remote check is authoritative.
|
|
42979
|
+
- Handoff is full-history only. Never reconstruct, summarize, copy, or serialize a conversation into MCP arguments. Cursor, Codex, ChatGPT.app and Claude Code use local capture; Claude Desktop uses local export import. Remote MCP and unsupported clients remain resume/search-only. Never offer a summary, reference document, copy/paste workflow, or manual carry-over as a substitute.
|
|
42980
|
+
- Claude Desktop is local export-import only. Never reconstruct its conversation into tool arguments. Remote MCP cannot read the file, so use the local setup. Ask the human for Anthropic's data-export ZIP or extracted conversations.json, then pass its local path as transcriptFile. Do not offer any summary or manual workaround.
|
|
42980
42981
|
- After resume, the packet covers the whole space but is still a summary of it. Before you tell the human something was not carried over, call pantheon_search (it reads tool calls too) and pantheon_get_turns on any id from the sessions list.
|
|
42981
42982
|
- Shared spaces belong to someone else and are read-only. Resume, search and the get_* tools work on them exactly as on your own. Handoff, park, remember and skill saves are refused \u2014 do not retry with a different spelling, tell the human it is read-only and offer to write to a space they own. A bare name is enough when only one space matches; write owner/space when two do.
|
|
42982
42983
|
`;
|
|
@@ -44024,10 +44025,10 @@ function fail(error2) {
|
|
|
44024
44025
|
function hint(message) {
|
|
44025
44026
|
const text2 = message.toLowerCase();
|
|
44026
44027
|
if (text2.includes("full-history handoff is unavailable through remote mcp")) {
|
|
44027
|
-
return "Use Pantheon's local MCP in Cursor, Claude Code, Codex or ChatGPT.app. Remote MCP remains available for resume and search.";
|
|
44028
|
+
return "Use Pantheon's local MCP in Cursor, Claude Code, Codex or ChatGPT.app. Remote MCP remains available for resume and search only; do not offer a summary or manual carry-over workaround.";
|
|
44028
44029
|
}
|
|
44029
|
-
if (text2.includes("does not
|
|
44030
|
-
return "
|
|
44030
|
+
if (text2.includes("does not match a supported conversation record")) {
|
|
44031
|
+
return "Pantheon is connected locally, but this client identity is unrecognized. Do not call it a browser connection or retype the conversation; report the identity so support can be added safely.";
|
|
44031
44032
|
}
|
|
44032
44033
|
if (text2.includes("claude desktop") && text2.includes("local pantheon mcp")) {
|
|
44033
44034
|
return "Use Pantheon's local Claude Desktop setup, then fully quit and reopen Claude Desktop. Remote MCP cannot read a local export file.";
|
|
@@ -44209,7 +44210,7 @@ ${GUIDE}` }]
|
|
|
44209
44210
|
registerTool(
|
|
44210
44211
|
server,
|
|
44211
44212
|
"pantheon_handoff",
|
|
44212
|
-
"Archive this chat into a Pantheon space with its complete history. Trigger: /pantheon-handoff <space>. If the human typed a slug, call this even when that slug is not in pantheon_list_spaces \u2014 first handoff creates the space. Do not ask them to create it first. Pantheon never accepts a model-reconstructed or summary-only transcript. LOCAL CURSOR, CODEX, CHATGPT.APP AND CLAUDE CODE: do not ask which conversation to use. Pantheon selects the session whose latest human turn invokes this handoff and reads its complete history including tool calls. Pass cwd when the project folder is not the server's working directory. CLAUDE DESKTOP: local export-import only. Never reconstruct, summarize, copy, or serialize its conversation.
|
|
44213
|
+
"Archive this chat into a Pantheon space with its complete history. Trigger: /pantheon-handoff <space>. ALWAYS CALL THIS TOOL ONCE when the command is triggered. Never infer the host from how its UI looks: Claude Desktop can identify and render itself as claude.ai. This server's local/remote transport check is the authority. If the human typed a slug, call this even when that slug is not in pantheon_list_spaces \u2014 first handoff creates the space. Do not ask them to create it first. Pantheon never accepts a model-reconstructed or summary-only transcript. LOCAL CURSOR, CODEX, CHATGPT.APP AND CLAUDE CODE: do not ask which conversation to use. Pantheon selects the session whose latest human turn invokes this handoff and reads its complete history including tool calls. Pass cwd when the project folder is not the server's working directory. CLAUDE DESKTOP: local export-import only. Never reconstruct, summarize, copy, or serialize its conversation. Call this tool with the space even when transcriptFile is not yet available; the server will identify Claude Desktop and return exact export instructions. Then ask the human to open Settings > Privacy, export their Claude data, download the ZIP, and provide its local path. Retry with transcriptFile set to that ZIP or its extracted conversations.json. If the export contains multiple conversations, show the tool's list, ask which one, and retry with transcriptConversation set to its UUID. REMOTE MCP, WINDSURF, REPLIT AND WEB CLIENTS: full-history handoff is unavailable because they expose neither a supported local session nor a supported export to this process. Never retype the chat. Never offer a summary, reference document, copy/paste workflow, or manual carry-over as a substitute; say only that resume and search remain available. Repeating a captured or imported handoff appends only new turns. Attach every existing generated or uploaded file that is not already captured from the workspace. Prefer { name, path } with local desktop MCP. Never generate or rewrite a file merely for handoff. When a successful handoff adds turns, process its post-handoff skill review and submit up to five justified drafts without asking; drafts are inert until approved in the UI. REPORT THE FINAL RESULT after that follow-up as a two-column table and nothing else: space, session, captured from, turns added, already archived, total turns, artifact count, skill drafts saved, and committed/pulled/pushed. Only a sync or tool failure belongs outside the table.",
|
|
44213
44214
|
{
|
|
44214
44215
|
space: external_exports.string(),
|
|
44215
44216
|
source: external_exports.string().optional(),
|
|
@@ -44235,7 +44236,7 @@ ${GUIDE}` }]
|
|
|
44235
44236
|
const captureClient = clientCapture(clientName);
|
|
44236
44237
|
if (!allowCapture) {
|
|
44237
44238
|
throw new Error(
|
|
44238
|
-
"Full-history handoff is unavailable through remote MCP. Install Pantheon's local MCP in a supported desktop agent. Do not reconstruct or summarize the conversation
|
|
44239
|
+
"Full-history handoff is unavailable through remote MCP. Install Pantheon's local MCP in a supported desktop agent. Do not reconstruct or summarize the conversation, and do not offer a reference document, copy/paste workflow, or manual carry-over as a substitute. Resume and search remain available remotely."
|
|
44239
44240
|
);
|
|
44240
44241
|
}
|
|
44241
44242
|
if (claudeDesktop && !request.transcriptFile) {
|
|
@@ -44245,7 +44246,7 @@ ${GUIDE}` }]
|
|
|
44245
44246
|
}
|
|
44246
44247
|
if (!request.transcriptFile && (!captureClient.readable || !captureClient.source)) {
|
|
44247
44248
|
throw new Error(
|
|
44248
|
-
|
|
44249
|
+
`Pantheon is running through local MCP, but ${clientName || "the reported client identity"} does not match a supported conversation record. Do not describe this as a web or remote connection, and do not reconstruct the chat. Update Pantheon or report the client identity; resume and search remain available.`
|
|
44249
44250
|
);
|
|
44250
44251
|
}
|
|
44251
44252
|
const needsClientRoots = Boolean(request.transcriptFile) || Boolean(request.artifacts?.some((item) => "path" in item));
|
|
@@ -44623,12 +44624,12 @@ ${GUIDE}` }]
|
|
|
44623
44624
|
const client = clientCapture(clientName);
|
|
44624
44625
|
if (!allowCapture) {
|
|
44625
44626
|
return promptText(
|
|
44626
|
-
"Do not reconstruct, summarize, or serialize this conversation. Remote MCP is resume/search-only because it cannot read a complete local history. Tell the human to use Pantheon's local setup in a supported desktop agent."
|
|
44627
|
+
"Do not reconstruct, summarize, or serialize this conversation. Remote MCP is resume/search-only because it cannot read a complete local history. Do not offer a summary, reference document, copy/paste workflow, or manual carry-over as a substitute. Tell the human to use Pantheon's local setup in a supported desktop agent."
|
|
44627
44628
|
);
|
|
44628
44629
|
}
|
|
44629
44630
|
if (isClaudeDesktopClient(clientName)) {
|
|
44630
44631
|
return promptText(
|
|
44631
|
-
`Claude Desktop handoff is export-import only. Do not reconstruct or summarize this chat. Ask the human to export their Claude data from Settings > Privacy and provide the downloaded ZIP path, then call pantheon_handoff for "${space}" with transcriptFile. If Pantheon lists several conversations, ask which UUID to import.`
|
|
44632
|
+
`Claude Desktop handoff is export-import only. Do not reconstruct or summarize this chat, and do not offer a reference document or manual carry-over workaround. Ask the human to export their Claude data from Settings > Privacy and provide the downloaded ZIP path, then call pantheon_handoff for "${space}" with transcriptFile. If Pantheon lists several conversations, ask which UUID to import.`
|
|
44632
44633
|
);
|
|
44633
44634
|
}
|
|
44634
44635
|
if (!client.readable || !client.source) {
|
|
@@ -44859,15 +44860,16 @@ ${block2}`);
|
|
|
44859
44860
|
var spaceGate = 'A space is the short name the human chose for a conscience (preorders, auth-refactor). The argument is: $ARGUMENTS\n\nIf that arrived blank, or as an unexpanded placeholder rather than a name, ask: "What should this conscience be named?" and wait. Never invent a name. Otherwise use it exactly as typed \u2014 any single short slug counts, including one that is not in the vault yet.';
|
|
44860
44861
|
var quiet = "Do not narrate. No preamble about which tools you can see, whether Pantheon MCP is connected, or what you are about to do. Run it and report what happened, briefly. If a call fails, say what failed in one line.";
|
|
44861
44862
|
var autoSkillReview = "When a successful handoff adds new turns, immediately process its skillReview result. If that field is missing even though turns were added, call pantheon_skill_review for the same space. Read the turns cited by any promising signal, compare against existing live and draft triggers, then submit at most five genuinely recurring lessons together with pantheon_save_skill_drafts. Do not ask permission: every save is an inert draft until the human approves or rejects it in the UI. Save none when nothing is justified. Only report the handoff after this review and any saves are complete.";
|
|
44862
|
-
var claudeDesktopImport = "Claude Desktop is local export-import only. NEVER reconstruct, summarize, copy, or serialize its conversation into transcript. If Pantheon is configured as a remote server, tell the human to install the local Pantheon MCP first. If no export path is available, ask the human to open Settings > Privacy, export their Claude data, download the ZIP, and provide its local path; stop until they do. Call pantheon_handoff with transcriptFile set to that ZIP or its extracted conversations.json. If Pantheon lists multiple conversations, show the list, ask which one, and retry with transcriptConversation set to its UUID. Do not offer
|
|
44863
|
-
var fullHistoryOnly = "Pantheon handoff is full-history only. NEVER reconstruct, summarize, copy, or serialize a conversation into MCP arguments. Local Cursor, Codex, ChatGPT.app and Claude Code use automatic disk capture. Remote MCP, Windsurf, Replit and browser-only agents are resume/search-only until Pantheon supports a complete local record or official export for them.";
|
|
44863
|
+
var claudeDesktopImport = "Claude Desktop is local export-import only. NEVER reconstruct, summarize, copy, or serialize its conversation into transcript. If Pantheon is configured as a remote server, tell the human to install the local Pantheon MCP first. If no export path is available, ask the human to open Settings > Privacy, export their Claude data, download the ZIP, and provide its local path; stop until they do. Call pantheon_handoff with transcriptFile set to that ZIP or its extracted conversations.json. If Pantheon lists multiple conversations, show the list, ask which one, and retry with transcriptConversation set to its UUID. Do not offer any summary, reference document, copy/paste workflow, or manual workaround.";
|
|
44864
|
+
var fullHistoryOnly = "Pantheon handoff is full-history only. NEVER reconstruct, summarize, copy, or serialize a conversation into MCP arguments. Local Cursor, Codex, ChatGPT.app and Claude Code use automatic disk capture. Remote MCP, Windsurf, Replit and browser-only agents are resume/search-only until Pantheon supports a complete local record or official export for them. Never offer a summary, reference document, copy/paste workflow, or manual carry-over as a substitute.";
|
|
44865
|
+
var handoffToolDecides = "If pantheon_handoff is available, ALWAYS call it once with the human's space before deciding whether handoff is supported. Never infer web versus desktop from the UI: Claude Desktop can identify and render itself as claude.ai. The tool's local/remote check is authoritative. Relay only the export instructions or refusal the tool actually returns.";
|
|
44864
44866
|
var slashCommands = [
|
|
44865
44867
|
{
|
|
44866
44868
|
name: "pantheon-handoff",
|
|
44867
44869
|
description: "Leave a Pantheon conscience for the next agent",
|
|
44868
44870
|
body: `${spaceGate}
|
|
44869
44871
|
|
|
44870
|
-
Only after you have a real space name, call pantheon_handoff even if that name is not in pantheon_list_spaces. First handoff creates the space. Do not refuse. Do not tell the human to create it first. ${fullHistoryOnly} In Cursor, Codex, ChatGPT.app and Claude Code, do not ask which conversation to use: Pantheon selects the session whose latest human turn invokes this handoff and reads its complete history from disk, including tool calls. ${claudeDesktopImport} Attach every EXISTING file you generated \u2014 PDFs, letters, CVs, spreadsheets \u2014 and every file the human uploaded. Prefer { name, path } when local desktop MCP can read it. Use { name, url } for an existing downloadable HTTPS file. Use { name, content: "<base64>", encoding: "base64" } only when neither is available. Never create, regenerate, convert, or rewrite a file merely to complete the handoff. A chat that names a .pdf without attaching it is rejected. Named code fences are stored automatically. The tool commits and pushes \u2014 do not run pantheon sync.
|
|
44872
|
+
Only after you have a real space name, call pantheon_handoff even if that name is not in pantheon_list_spaces. First handoff creates the space. Do not refuse. Do not tell the human to create it first. ${handoffToolDecides} ${fullHistoryOnly} In Cursor, Codex, ChatGPT.app and Claude Code, do not ask which conversation to use: Pantheon selects the session whose latest human turn invokes this handoff and reads its complete history from disk, including tool calls. ${claudeDesktopImport} Attach every EXISTING file you generated \u2014 PDFs, letters, CVs, spreadsheets \u2014 and every file the human uploaded. Prefer { name, path } when local desktop MCP can read it. Use { name, url } for an existing downloadable HTTPS file. Use { name, content: "<base64>", encoding: "base64" } only when neither is available. Never create, regenerate, convert, or rewrite a file merely to complete the handoff. A chat that names a .pdf without attaching it is rejected. Named code fences are stored automatically. The tool commits and pushes \u2014 do not run pantheon sync.
|
|
44871
44873
|
|
|
44872
44874
|
${autoSkillReview}
|
|
44873
44875
|
|
|
@@ -44955,7 +44957,7 @@ Grounding: the only space list is the \`pantheon_list_spaces\` tool result. Neve
|
|
|
44955
44957
|
|
|
44956
44958
|
A **space** is the short name the human chose for a conscience. For handoff, park, or remember: if they did not give one, ask: "What should this conscience be named?" Do not invent a name. If they typed a new slug for handoff, call \`pantheon_handoff\` \u2014 that creates the space. For resume with no name, call \`pantheon_resume\` anyway \u2014 it lists live spaces. Show that list and ask which one.
|
|
44957
44959
|
|
|
44958
|
-
${fullHistoryOnly} For handoff in Cursor, Codex, ChatGPT.app or Claude Code, do not ask which conversation to use: Pantheon identifies the current handoff command and reads the complete local session. ${claudeDesktopImport} Attach every existing generated or uploaded file \u2014 not just code fences. Prefer \`{ name, path }\` for local files, use \`{ name, url }\` for downloadable HTTPS files, and use inline base64 only as a fallback. Never create or rewrite an artifact merely for handoff. On resume, fetch only needed files with \`pantheon_get_artifact\`; use \`save_to\` to restore the actual file into a local workspace. Handoff commits and pushes; resume pulls. Do not run \`pantheon sync\` or \`pantheon handoff\` in a shell.
|
|
44960
|
+
${handoffToolDecides} ${fullHistoryOnly} For handoff in Cursor, Codex, ChatGPT.app or Claude Code, do not ask which conversation to use: Pantheon identifies the current handoff command and reads the complete local session. ${claudeDesktopImport} Attach every existing generated or uploaded file \u2014 not just code fences. Prefer \`{ name, path }\` for local files, use \`{ name, url }\` for downloadable HTTPS files, and use inline base64 only as a fallback. Never create or rewrite an artifact merely for handoff. On resume, fetch only needed files with \`pantheon_get_artifact\`; use \`save_to\` to restore the actual file into a local workspace. Handoff commits and pushes; resume pulls. Do not run \`pantheon sync\` or \`pantheon handoff\` in a shell.
|
|
44959
44961
|
|
|
44960
44962
|
${autoSkillReview}
|
|
44961
44963
|
|
package/package.json
CHANGED