pantheon-cli 0.2.9 → 0.2.10
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 +43 -2
- package/package.json +1 -1
package/dist/pantheon.mjs
CHANGED
|
@@ -23275,7 +23275,7 @@ ${GUIDE}` }]
|
|
|
23275
23275
|
registerTool(
|
|
23276
23276
|
server,
|
|
23277
23277
|
"pantheon_resume",
|
|
23278
|
-
"Pull the vault, then load a Pantheon conscience: the latest handoff packet, durable memory, packets from earlier handoffs (story), every archived session with its turn count (sessions), and stored artifact names. Trigger: /pantheon-resume <space>. If the space name is missing or empty, this tool lists live spaces \u2014 show that list and ask which conscience. The packet is a summary of the session that ended last, not the space: when the human asks about anything it does not cover, call pantheon_search before saying you lack context, and read detail with pantheon_get_turns or pantheon_get_session using any id from sessions. Fetch files with pantheon_get_artifact. Never call a generic resume tool for this. Do not run pantheon sync.",
|
|
23278
|
+
"Pull the vault, then load a Pantheon conscience: the latest handoff packet, durable memory, packets from earlier handoffs (story), every archived session with its turn count (sessions), and stored artifact names. Trigger: /pantheon-resume <space>. If the space name is missing or empty, this tool lists live spaces \u2014 show that list and ask which conscience. The packet is a summary of the session that ended last, not the space: when the human asks about anything it does not cover, call pantheon_search before saying you lack context, and read detail with pantheon_get_turns or pantheon_get_session using any id from sessions. Fetch files with pantheon_get_artifact. Never call a generic resume tool for this. Do not run pantheon sync. REPORT THE RESULT as a two-column table \u2014 space, sessions (with total turns), earlier handoffs, memory facts, artifacts, skills (live and awaiting review), pulled \u2014 and then, outside the table, two or three sentences on where the work actually stood, any open threads, and the available skills by name and trigger. The table proves the load worked; it does not tell the human where the work was, so never collapse that prose into cells.",
|
|
23279
23279
|
{ space: external_exports.string().optional() },
|
|
23280
23280
|
async ({ space }) => safe(async () => {
|
|
23281
23281
|
const sync2 = await vault.pull(home);
|
|
@@ -23310,7 +23310,7 @@ ${GUIDE}` }]
|
|
|
23310
23310
|
registerTool(
|
|
23311
23311
|
server,
|
|
23312
23312
|
"pantheon_handoff",
|
|
23313
|
-
`Archive this chat into a Pantheon space. 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. LEAVE transcript EMPTY: Pantheon reads the complete conversation, including tool calls, straight from this app's own history on disk, so nothing is lost and you do not spend tokens retyping it. Pass cwd when the project folder is not the server's working directory. Only send transcript yourself when capture cannot see this chat (a hosted or web-only agent) \u2014 then it must be the real thread, one object per message, role user = what the human typed, role assistant = what you replied, verbatim and never narrated. Handing off the same chat again appends only the new turns to the same archive. artifacts is still required for files you generated or the human uploaded that do not live in this repo \u2014 pass { name, content: base64, encoding: "base64" }.`,
|
|
23313
|
+
`Archive this chat into a Pantheon space. 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. LEAVE transcript EMPTY: Pantheon reads the complete conversation, including tool calls, straight from this app's own history on disk, so nothing is lost and you do not spend tokens retyping it. Pass cwd when the project folder is not the server's working directory. Only send transcript yourself when capture cannot see this chat (a hosted or web-only agent) \u2014 then it must be the real thread, one object per message, role user = what the human typed, role assistant = what you replied, verbatim and never narrated. Handing off the same chat again appends only the new turns to the same archive. artifacts is still required for files you generated or the human uploaded that do not live in this repo \u2014 pass { name, content: base64, encoding: "base64" }. REPORT THE RESULT as a two-column table and nothing else: space, session, captured from, turns added, already archived, total turns, artifact count (the number, never the names), skill candidates, and committed/pulled/pushed. Do not restate the summary you just wrote. Two things belong outside the table because they are not receipts: say plainly what broke if sync failed, and if skillCandidates is non-empty ask the human whether to write a skill for each one.`,
|
|
23314
23314
|
{
|
|
23315
23315
|
space: external_exports.string(),
|
|
23316
23316
|
source: external_exports.string().optional(),
|
|
@@ -23703,6 +23703,47 @@ Grounding: the only space list is the \`pantheon_list_spaces\` tool result. Neve
|
|
|
23703
23703
|
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.
|
|
23704
23704
|
|
|
23705
23705
|
For handoff, send the real thread: role user = what the human typed, role assistant = what you replied. Copy the words. Never write a third-person recap. Never label your replies as user. Attach every file you generated (PDFs, letters, CVs) as base64 artifacts \u2014 not just code fences. On resume, fetch listed artifacts with \`pantheon_get_artifact\`. Handoff commits and pushes; resume pulls. Do not run \`pantheon sync\` or \`pantheon handoff\` in a shell.
|
|
23706
|
+
|
|
23707
|
+
## Reporting a result
|
|
23708
|
+
|
|
23709
|
+
Report \`pantheon_handoff\` as this table and nothing else. No prose summary of
|
|
23710
|
+
what was archived, no list of artifact names, no restating the summary you just
|
|
23711
|
+
wrote. The tool result is long; the human wants the receipt.
|
|
23712
|
+
|
|
23713
|
+
| | |
|
|
23714
|
+
|---|---|
|
|
23715
|
+
| Space | the slug |
|
|
23716
|
+
| Session | the session id |
|
|
23717
|
+
| Captured from | source, e.g. cursor |
|
|
23718
|
+
| Turns added | added |
|
|
23719
|
+
| Already archived | alreadyArchived |
|
|
23720
|
+
| Total turns | turns |
|
|
23721
|
+
| Artifacts | count, not names |
|
|
23722
|
+
| Skill candidates | titles, or "none" |
|
|
23723
|
+
| Committed / Pulled / Pushed | yes/no each |
|
|
23724
|
+
|
|
23725
|
+
Two things go outside that table, because they are not receipts: if \`sync\`
|
|
23726
|
+
reports a failure, say what broke and what it means; and if \`skillCandidates\`
|
|
23727
|
+
is non-empty, ask whether to write a skill for each one, since that decision is
|
|
23728
|
+
the human's and the tool result alone will not prompt them.
|
|
23729
|
+
|
|
23730
|
+
Report \`pantheon_resume\` as this table, and then keep going.
|
|
23731
|
+
|
|
23732
|
+
| | |
|
|
23733
|
+
|---|---|
|
|
23734
|
+
| Space | the slug |
|
|
23735
|
+
| Sessions | count, with total turns |
|
|
23736
|
+
| Earlier handoffs | length of story |
|
|
23737
|
+
| Memory | fact count |
|
|
23738
|
+
| Artifacts | count |
|
|
23739
|
+
| Skills | N live, M awaiting review |
|
|
23740
|
+
| Pulled | yes/no |
|
|
23741
|
+
|
|
23742
|
+
After the table, in prose: where the work actually stood, in two or three
|
|
23743
|
+
sentences drawn from the packet; any open threads; and the available skills by
|
|
23744
|
+
name and trigger. The table only proves the load worked. It says nothing about
|
|
23745
|
+
where the work was, which is the part the human asked for, so never fold that
|
|
23746
|
+
into cells.
|
|
23706
23747
|
`;
|
|
23707
23748
|
for (const dir of dirs2) {
|
|
23708
23749
|
mkdirSync5(dir, { recursive: true });
|
package/package.json
CHANGED