pantheon-cli 0.2.79 → 0.2.81
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 +17 -7
- package/package.json +1 -1
package/dist/pantheon.mjs
CHANGED
|
@@ -42969,7 +42969,8 @@ Grounding \u2014 never break these:
|
|
|
42969
42969
|
- Handoff / park / remember: if the human typed a valid slug (annotation-design, preorders), call the tool immediately. First handoff creates that space. Do not refuse because the name is not in pantheon_list_spaces. Do not tell them to create the space first. The tool creates it.
|
|
42970
42970
|
- When a successful handoff adds new turns, process its skill review, read the cited turns, and submit up to five justified lessons together with pantheon_save_skill_drafts. Never ask permission: they are inert drafts until the human approves or rejects them in the UI. Saving none is normal.
|
|
42971
42971
|
- Never invent a slug yourself. The human's typed name is the only new-space source.
|
|
42972
|
-
- If pantheon_* tools are missing or
|
|
42972
|
+
- If pantheon_* tools are missing or cannot start, say "Pantheon MCP is not connected" and stop. Do not guess.
|
|
42973
|
+
- If a write call ends with "Connection closed" or a timeout, do not claim Pantheon is disconnected and do not claim the write failed. Drive may still be uploading or may already have committed. Say the receipt was lost and the outcome is unconfirmed, ask the human to reload MCP, and repeat the same command; Pantheon deduplicates archived turns and files.
|
|
42973
42974
|
- /pantheon-spaces \u2192 call pantheon_list_spaces, then show only those slugs.
|
|
42974
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."
|
|
42975
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.
|
|
@@ -42990,6 +42991,9 @@ If you are an agent:
|
|
|
42990
42991
|
- Do not import @pantheon/core or write ~/pantheon yourself
|
|
42991
42992
|
- If pantheon_* tools are missing, tell the human to run
|
|
42992
42993
|
pantheon mcp-install and reload MCP. Do not invent spaces.
|
|
42994
|
+
- If a write loses its receipt to a closed connection or timeout, Drive may
|
|
42995
|
+
still be uploading. Say the outcome is unconfirmed, reload MCP, and repeat
|
|
42996
|
+
it; Pantheon deduplicates.
|
|
42993
42997
|
- The only space list is pantheon_list_spaces. Never answer /pantheon-spaces from memory.
|
|
42994
42998
|
|
|
42995
42999
|
Tutorial
|
|
@@ -43750,6 +43754,12 @@ var DriveWorkspaceHttpError = class extends Error {
|
|
|
43750
43754
|
status;
|
|
43751
43755
|
conflicts;
|
|
43752
43756
|
};
|
|
43757
|
+
function driveFailureMessage(error2, operation) {
|
|
43758
|
+
const message = error2 instanceof Error ? error2.message : String(error2);
|
|
43759
|
+
const timedOut = error2 instanceof Error && error2.name === "TimeoutError" || /timed? ?out|timeout|aborted due to timeout/i.test(message);
|
|
43760
|
+
if (!timedOut) return message;
|
|
43761
|
+
return operation === "persist" ? "Google Drive took too long to return confirmation. It may still be uploading or may already have committed some batches. The handoff is saved locally and remains queued; reload MCP and repeat it safely because already archived turns and uploaded files will not be duplicated." : "Google Drive took too long to refresh. Pantheon kept the local vault available and will retry on the next command.";
|
|
43762
|
+
}
|
|
43753
43763
|
function sha256(bytes) {
|
|
43754
43764
|
return createHash4("sha256").update(bytes).digest("hex");
|
|
43755
43765
|
}
|
|
@@ -44163,7 +44173,7 @@ function httpDriveWorkspaceHooks(config2, credentials, fetcher = fetch) {
|
|
|
44163
44173
|
}
|
|
44164
44174
|
result.pending = true;
|
|
44165
44175
|
result.stale = true;
|
|
44166
|
-
result.error = error2
|
|
44176
|
+
result.error = driveFailureMessage(error2, "refresh");
|
|
44167
44177
|
return result;
|
|
44168
44178
|
}
|
|
44169
44179
|
}
|
|
@@ -44180,7 +44190,7 @@ function httpDriveWorkspaceHooks(config2, credentials, fetcher = fetch) {
|
|
|
44180
44190
|
/* turbopackIgnore: true */
|
|
44181
44191
|
paths.ledger
|
|
44182
44192
|
);
|
|
44183
|
-
result.error = error2
|
|
44193
|
+
result.error = driveFailureMessage(error2, "refresh");
|
|
44184
44194
|
return result;
|
|
44185
44195
|
}
|
|
44186
44196
|
}
|
|
@@ -44241,7 +44251,7 @@ function httpDriveWorkspaceHooks(config2, credentials, fetcher = fetch) {
|
|
|
44241
44251
|
}
|
|
44242
44252
|
}
|
|
44243
44253
|
result.pending = Boolean(outbox);
|
|
44244
|
-
result.error = error2
|
|
44254
|
+
result.error = driveFailureMessage(error2, "persist");
|
|
44245
44255
|
return result;
|
|
44246
44256
|
}
|
|
44247
44257
|
}
|
|
@@ -45156,7 +45166,7 @@ ${GUIDE}` }]
|
|
|
45156
45166
|
saveTool: "pantheon_save_skill_drafts",
|
|
45157
45167
|
instruction: review ? AUTO_SKILL_REVIEW : `Call pantheon_skill_review for "${written.slug}". ${AUTO_SKILL_REVIEW}`
|
|
45158
45168
|
},
|
|
45159
|
-
note: sync2.ok === false ? `Saved locally (${written.turns} turns) but storage persistence failed: ${sync2.error || "unknown error"}. Tell the human it has not reached the configured vault storage yet.` : [
|
|
45169
|
+
note: sync2.ok === false ? sync2.pending ? `Saved locally (${written.turns} turns) and queued for another storage attempt: ${sync2.error || "storage did not return confirmation"}. Drive may still be uploading or may already have committed some batches. Tell the human the outcome is unconfirmed, reload MCP, and repeat the same handoff safely; already archived turns and uploaded files will not be duplicated. Do not say Pantheon MCP is not connected.` : `Saved locally (${written.turns} turns) but storage persistence failed: ${sync2.error || "unknown error"}. Tell the human it has not reached the configured vault storage yet.` : [
|
|
45160
45170
|
`Archived ${written.turns} turns${written.added !== written.turns ? ` (${written.added} new)` : ""} from ${written.capturedFrom || "the supplied transcript"}.`,
|
|
45161
45171
|
// Capture reads a chat off disk, so name what it read: if a
|
|
45162
45172
|
// second conversation was open, this is where that shows.
|
|
@@ -45705,7 +45715,7 @@ function upsertCodex(home) {
|
|
|
45705
45715
|
${block2}`);
|
|
45706
45716
|
}
|
|
45707
45717
|
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.';
|
|
45708
|
-
var quiet =
|
|
45718
|
+
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. If a write call ends with "Connection closed" or a timeout, do not say Pantheon is not connected and do not claim the write failed: Drive may still be uploading or may already have committed. Say the receipt was lost and the outcome is unconfirmed, tell the human to reload MCP, and repeat the same command safely; Pantheon deduplicates archived turns and files.';
|
|
45709
45719
|
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.";
|
|
45710
45720
|
var handoffToolDecides = "If pantheon_handoff is available, ALWAYS make the first call with the human's space while omitting transcript, transcriptFile, and transcriptFallback. This universal auto mode lets Pantheon attempt capture only through a verified adapter for the calling client. Never infer support from the platform yourself. If the response status is transcript_required, immediately retry with the same space and attachments, transcriptFallback:true, and every real user and assistant turn visible in your current context copied verbatim and in order. Set truncated:true if older turns are no longer visible. If status is capture_first_required, retry without transcript fields first. Never report these intermediate responses, send a recap, or ask the human to export, locate, or copy anything.";
|
|
45711
45721
|
var slashCommands = [
|
|
@@ -45790,7 +45800,7 @@ description: Use when the user types /pantheon-handoff, /pantheon-resume, /panth
|
|
|
45790
45800
|
|
|
45791
45801
|
Pantheon stores agent conscience in a private vault. Chat commands are namespaced.
|
|
45792
45802
|
|
|
45793
|
-
Grounding: the only space list is the \`pantheon_list_spaces\` tool result. Never answer a spaces question from memory, this chat, Knowledge Compiler, or other project names. If pantheon_* tools are missing, say "Pantheon MCP is not connected" and stop.
|
|
45803
|
+
Grounding: the only space list is the \`pantheon_list_spaces\` tool result. Never answer a spaces question from memory, this chat, Knowledge Compiler, or other project names. If pantheon_* tools are missing or cannot start, say "Pantheon MCP is not connected" and stop. A write call ending with "Connection closed" or a timeout is different: Drive may still be uploading or may already have committed. Say the receipt was lost and the outcome is unconfirmed, reload MCP, and repeat the same command safely because Pantheon deduplicates archived turns and files.
|
|
45794
45804
|
|
|
45795
45805
|
- \`/pantheon-handoff <space>\` \u2192 MCP tool \`pantheon_handoff\`
|
|
45796
45806
|
- \`/pantheon-resume [space]\` \u2192 MCP tool \`pantheon_resume\` (no name \u2192 lists spaces)
|
package/package.json
CHANGED