pi-sessions 0.13.0 → 0.13.1

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.
@@ -31,6 +31,10 @@ import { buildHandoffLaunchSchema, buildHandoffPromptGuidelines } from "./tool-s
31
31
  import { buildHandoffToolView } from "./tool-view-model.ts";
32
32
  import { formatHandoffError } from "./ui.ts";
33
33
 
34
+ const SESSION_TOKEN_PROMPT_SECTION = "pi_sessions_session_token";
35
+ const SESSION_TOKEN_PROMPT =
36
+ "When the user references @session:<uuid>, treat it as a session token. If you call session_ask, pass only the UUID value, not the @session: prefix.";
37
+
34
38
  interface HandoffToolRendererState {
35
39
  callComponent?: HandoffToolComponent | undefined;
36
40
  }
@@ -196,11 +200,7 @@ export function installHandoff(
196
200
  (await splitBackend.identifyTerminalId(ctx.cwd)) ?? identifiedGhosttyTerminalId;
197
201
  }
198
202
 
199
- return {
200
- systemPrompt:
201
- event.systemPrompt +
202
- "\n\nWhen the user references @session:<uuid>, treat it as a session token. If you call session_ask, pass only the UUID value, not the @session: prefix.",
203
- };
203
+ event.systemPromptOptions.sections[SESSION_TOKEN_PROMPT_SECTION] = SESSION_TOKEN_PROMPT;
204
204
  });
205
205
 
206
206
  return {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pi-sessions",
3
- "version": "0.13.0",
3
+ "version": "0.13.1",
4
4
  "type": "module",
5
5
  "description": "Pi session search, ask, handoff, messaging, auto-titling, and indexing tools",
6
6
  "license": "MIT",