pantheon-cli 0.2.8 → 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.
Files changed (2) hide show
  1. package/dist/pantheon.mjs +48 -3
  2. package/package.json +3 -3
package/dist/pantheon.mjs CHANGED
@@ -22636,7 +22636,11 @@ function sessionSummaries(root) {
22636
22636
  var SKILL_SCAN_SESSIONS = 20;
22637
22637
  function projectDocs(cwd) {
22638
22638
  try {
22639
- return ["AGENTS.md", "README.md", "CONTRIBUTING.md"].map((name) => readText(join3(cwd, name))).join("\n").slice(0, 4e4);
22639
+ return ["AGENTS.md", "README.md", "CONTRIBUTING.md"].map((name) => readText(join3(
22640
+ /* turbopackIgnore: true */
22641
+ cwd,
22642
+ name
22643
+ ))).join("\n").slice(0, 4e4);
22640
22644
  } catch {
22641
22645
  return "";
22642
22646
  }
@@ -23271,7 +23275,7 @@ ${GUIDE}` }]
23271
23275
  registerTool(
23272
23276
  server,
23273
23277
  "pantheon_resume",
23274
- "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.",
23275
23279
  { space: external_exports.string().optional() },
23276
23280
  async ({ space }) => safe(async () => {
23277
23281
  const sync2 = await vault.pull(home);
@@ -23306,7 +23310,7 @@ ${GUIDE}` }]
23306
23310
  registerTool(
23307
23311
  server,
23308
23312
  "pantheon_handoff",
23309
- `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.`,
23310
23314
  {
23311
23315
  space: external_exports.string(),
23312
23316
  source: external_exports.string().optional(),
@@ -23699,6 +23703,47 @@ Grounding: the only space list is the \`pantheon_list_spaces\` tool result. Neve
23699
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.
23700
23704
 
23701
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.
23702
23747
  `;
23703
23748
  for (const dir of dirs2) {
23704
23749
  mkdirSync5(dir, { recursive: true });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pantheon-cli",
3
- "version": "0.2.8",
3
+ "version": "0.2.10",
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",
@@ -30,8 +30,8 @@
30
30
  "tsx": "^4.20.3",
31
31
  "typescript": "^5",
32
32
  "zod": "^3.25.67",
33
- "@pantheon/mcp": "0.1.0",
34
- "@pantheon/core": "0.1.0"
33
+ "@pantheon/core": "0.1.0",
34
+ "@pantheon/mcp": "0.1.0"
35
35
  },
36
36
  "scripts": {
37
37
  "start": "tsx src/index.ts",