pantheon-cli 0.2.112 → 0.2.114

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 +28 -23
  2. package/package.json +1 -1
package/dist/pantheon.mjs CHANGED
@@ -43182,6 +43182,26 @@ function uniqueStateItems(items, limit) {
43182
43182
  return true;
43183
43183
  }).slice(0, limit);
43184
43184
  }
43185
+ function architectureFromTurns(newest) {
43186
+ const architecture = [];
43187
+ for (const technology of PROJECT_TECHNOLOGIES) {
43188
+ const escaped = technology.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
43189
+ const hit = newest.find(
43190
+ ({ turn }) => new RegExp(`\\b${escaped}\\b`, "i").test(turn.text)
43191
+ );
43192
+ if (hit) {
43193
+ architecture.push(
43194
+ stateItem(
43195
+ hit.sessionId,
43196
+ hit.turn,
43197
+ technology,
43198
+ `The technology is named in ${hit.sessionId}#${hit.turn.id}.`
43199
+ )
43200
+ );
43201
+ }
43202
+ }
43203
+ return architecture;
43204
+ }
43185
43205
  function projectStateFromRoot(root) {
43186
43206
  const sessions = sessionDirs(root).map((session) => ({
43187
43207
  id: session.id,
@@ -43231,23 +43251,7 @@ function projectStateFromRoot(root) {
43231
43251
  "The cited assistant turn reports a concrete project change."
43232
43252
  )
43233
43253
  );
43234
- const architecture = [];
43235
- for (const technology of PROJECT_TECHNOLOGIES) {
43236
- const escaped = technology.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
43237
- const hit = newest.find(
43238
- ({ turn }) => new RegExp(`\\b${escaped}\\b`, "i").test(turn.text)
43239
- );
43240
- if (hit) {
43241
- architecture.push(
43242
- stateItem(
43243
- hit.sessionId,
43244
- hit.turn,
43245
- technology,
43246
- `The technology is named in ${hit.sessionId}#${hit.turn.id}.`
43247
- )
43248
- );
43249
- }
43250
- }
43254
+ const architecture = architectureFromTurns(newest);
43251
43255
  return {
43252
43256
  goal: goalTurn ? stateItem(
43253
43257
  goalTurn.sessionId,
@@ -44294,9 +44298,10 @@ Tutorial
44294
44298
  A handoff with new turns also returns recurring signals for the agent to
44295
44299
  review. It reads citations and batch-saves justified drafts without asking;
44296
44300
  the UI is the approval step.
44297
- End with the handoffQuality receipt: complete/incomplete, captured turns,
44298
- tool calls, artifacts, potential decision and unresolved-issue signals,
44299
- destination, integrity, and ready-for-resume status.
44301
+ End with the HANDOFF RESULTS receipt: complete/incomplete status, captured
44302
+ turns, tool calls captured, artifacts, potential decision and
44303
+ unresolved-issue signals, destination, integrity, and ready-for-resume
44304
+ status.
44300
44305
  4. Continue later: /pantheon-resume <space> \u2192 pantheon_resume
44301
44306
  If they omit <space>, call pantheon_resume with their full request as task.
44302
44307
  It chooses only when one owned space exists. Otherwise task wording only
@@ -46265,12 +46270,12 @@ function handoffQualityReceipt(written, sync2) {
46265
46270
  ];
46266
46271
  return {
46267
46272
  status: incomplete ? "incomplete" : "complete",
46268
- heading: incomplete ? "HANDOFF INCOMPLETE" : "HANDOFF COMPLETE",
46273
+ heading: "HANDOFF RESULTS",
46269
46274
  captured: {
46270
46275
  conversationTurns: written.turns,
46271
46276
  turnsAdded: written.added,
46272
46277
  alreadyArchived: written.alreadyArchived,
46273
- toolCalls: written.toolCalls,
46278
+ toolCallsCaptured: written.toolCalls,
46274
46279
  artifacts: written.artifacts.length,
46275
46280
  potentialDecisionsIdentified: written.decisions.length,
46276
46281
  potentialUnresolvedIssuesIdentified: written.unresolvedIssues.length
@@ -46571,7 +46576,7 @@ ${GUIDE}` }]
46571
46576
  registerTool(
46572
46577
  server,
46573
46578
  "pantheon_handoff",
46574
- "Archive this chat into a Pantheon space. Trigger: /pantheon-handoff <space>. If the human typed a slug, call this even when it is new \u2014 first handoff creates the space. UNIVERSAL FIRST CALL: always omit transcript, transcriptFile, and transcriptFallback. Pantheon safely attempts automatic 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 the fullest transcript available in the current context: one ordered object per real user or assistant message, copied verbatim rather than narrated or summarized. Do not report the intermediate response and never ask the human to export data, locate a file, copy messages, or perform another manual step. Set truncated:true when earlier turns are no longer visible instead of inventing them. If status is capture_first_required, retry once without transcript fields, then follow transcript_required if returned. Repeating the same supplied chat should pass append:true so only its new tail is added to the latest session. transcriptFile is an optional fallback only when a file already exists; never require or request one. Attach every existing generated or uploaded file not already captured and repeat those attachments on a fallback call. Prefer { name, path } locally, { name, url } remotely, and inline base64 only as a fallback. Never create or rewrite a file merely for handoff. When a successful handoff adds turns, process its skill review and submit up to five justified drafts without asking. REPORT THE FINAL handoffQuality receipt after that follow-up. Lead with HANDOFF COMPLETE or HANDOFF INCOMPLETE, show the captured conversation turns, tool calls, artifacts, identified decisions and unresolved issues, capture integrity, destination, and whether it is ready for resume. If incomplete, state every issue and explicitly say whether the conversation itself is safe; offer Retry and View issue. Never hide a skipped artifact or replace an unknown integrity percentage with a made-up number.",
46579
+ "Archive this chat into a Pantheon space. Trigger: /pantheon-handoff <space>. If the human typed a slug, call this even when it is new \u2014 first handoff creates the space. UNIVERSAL FIRST CALL: always omit transcript, transcriptFile, and transcriptFallback. Pantheon safely attempts automatic 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 the fullest transcript available in the current context: one ordered object per real user or assistant message, copied verbatim rather than narrated or summarized. Do not report the intermediate response and never ask the human to export data, locate a file, copy messages, or perform another manual step. Set truncated:true when earlier turns are no longer visible instead of inventing them. If status is capture_first_required, retry once without transcript fields, then follow transcript_required if returned. Repeating the same supplied chat should pass append:true so only its new tail is added to the latest session. transcriptFile is an optional fallback only when a file already exists; never require or request one. Attach every existing generated or uploaded file not already captured and repeat those attachments on a fallback call. Prefer { name, path } locally, { name, url } remotely, and inline base64 only as a fallback. Never create or rewrite a file merely for handoff. When a successful handoff adds turns, process its skill review and submit up to five justified drafts without asking. REPORT THE FINAL handoffQuality receipt after that follow-up. Lead with HANDOFF RESULTS, show status as complete or incomplete, and label the archived invocation count Tool calls captured. Also show captured conversation turns, artifacts, identified decisions and unresolved issues, capture integrity, destination, and whether it is ready for resume. If incomplete, state every issue and explicitly say whether the conversation itself is safe; offer Retry and View issue. Never hide a skipped artifact or replace an unknown integrity percentage with a made-up number.",
46575
46580
  {
46576
46581
  space: external_exports.string(),
46577
46582
  source: external_exports.string().optional(),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pantheon-cli",
3
- "version": "0.2.112",
3
+ "version": "0.2.114",
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",