@evandu/super-pi 0.1.187 → 0.1.189
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/agents/super-pi-task/core.ts +129 -0
- package/agents/super-pi-task/index.ts +58 -3
- package/dist/client/.super-pi-client-sources.json +1 -1
- package/dist/server/agents.d.ts +1 -1
- package/dist/server/agents.js +1 -1
- package/dist/server/application/project-service.d.ts +25 -0
- package/dist/server/application/project-service.js +75 -0
- package/dist/server/application/session-orchestrator-service.js +8 -0
- package/dist/server/application/session-reminder-service.d.ts +55 -0
- package/dist/server/application/session-reminder-service.js +121 -0
- package/dist/server/conversation-usage.js +2 -2
- package/dist/server/http-server.js +111 -4
- package/dist/server/index.js +3 -0
- package/dist/server/json-comments.d.ts +14 -0
- package/dist/server/json-comments.js +71 -0
- package/dist/server/model-context-window.d.ts +34 -0
- package/dist/server/model-context-window.js +76 -0
- package/dist/server/models-store.d.ts +36 -0
- package/dist/server/models-store.js +132 -0
- package/dist/server/pi-session.js +3 -2
- package/dist/server/providers.js +10 -2
- package/dist/server/runtime.js +6 -2
- package/dist/server/server-context.d.ts +1 -0
- package/dist/server/task-tool.d.ts +3 -0
- package/dist/server/task-tool.js +12 -0
- package/package.json +1 -1
|
@@ -262,6 +262,9 @@ export declare const SESSION_STOP_TOOL_NAME = "session_stop";
|
|
|
262
262
|
export declare const SESSION_REPORT_TOOL_NAME = "session_report";
|
|
263
263
|
export declare const SESSION_STOP_SUBTREE_TOOL_NAME = "session_stop_subtree";
|
|
264
264
|
export declare const SESSION_REMOVE_TOOL_NAME = "session_remove";
|
|
265
|
+
export declare const SESSION_REMINDER_TOOL_NAME = "session_reminder";
|
|
266
|
+
/** Model-facing description for session_reminder. */
|
|
267
|
+
export declare const SESSION_REMINDER_DESCRIPTION = "Set an in-session timer that delivers a reminder note back to THIS conversation after a given number of seconds. Multiple reminders can run in parallel, and pending reminders can be cancelled or listed.\n\nWHEN TO USE THIS:\n- Self-reminders and time-based checkpoints (e.g. \"Check child session progress in 60 seconds\", \"Review test run in 120 seconds\").\n- Unlike scheduled_task which runs in a separate independent conversation, session_reminder sends the note back to THIS EXACT conversation as a new turn so you can follow up directly.\n\nActions:\n- \"create\" (default): Schedule a reminder. Requires delaySeconds (or seconds) and note. Returns reminderId.\n- \"cancel\": Cancel a pending reminder. Requires reminderId.\n- \"list\": List all active pending reminders for this conversation.";
|
|
265
268
|
/** Model-facing description for session_spawn. */
|
|
266
269
|
export declare const SESSION_SPAWN_DESCRIPTION = "Create a child conversation in the current workspace and immediately dispatch its initial task. You can specify a primary agent as the child's role.\n\nDIFFERENCE FROM THE 'task' TOOL:\n- The 'task' tool delegates to a transient, one-shot subagent process (scout, critic, patcher) that runs once, returns its final text, and terminates. It has no conversation history and does not appear in the workspace sidebar.\n- 'session_spawn' creates a real, persistent child CONVERSATION in Super Pi. It appears in the sidebar, retains multi-turn message history, can receive follow-up messages via session_dispatch, can be inspected via session_status, and can be stopped via session_stop. The user can also switch to it in the Web UI.\n\nWHEN TO USE THIS:\n- Long-running, multi-phase tracks of work that require ongoing context, multiple turns of dialogue, or independent user visibility.\n- Multi-phase or complex work where the user needs each step to be visible and available for inspection or intervention: create a child session with session_spawn.\n- Parallel work streams (e.g., Track A: backend refactor, Track B: frontend component update) where both need full conversational capabilities.\n- When the user asks you to act as an orchestrator/manager who delegates to multiple sessions.\n\nWHEN NOT TO USE THIS:\n- For one-off, focused delegation with a single answer: use 'task' (with scout/critic/patcher). It is faster, cheaper, and returns directly to your transcript.\n- For running shell commands or build watchers: use 'run_async'.\n- For a single one-off delegation with a single answer: use 'task'.\n\nUsage notes:\n1. Spawning is ASYNCHRONOUS by default: it creates the conversation, enqueues the initial task, and returns the new conversationId immediately. The sibling session runs in the background.\n2. The initial task should provide clear context and goals since the new session starts with a fresh conversation history.\n3. Use session_status with the returned conversationId to check progress, or session_dispatch to send further messages.\n4. The new session reports completion to its DIRECT parent automatically, and that parent is always the calling session. 'parentConversationId' may only repeat the calling session's own id - the server refuses (403) any other session as the parent and creates nothing.\n5. The new session always belongs to the calling session's workspace. Pass 'cwd' as a workspace-relative subdirectory (for example, 'packages/a') when it should work below the workspace root; absolute paths and traversal are rejected.\n6. Optionally pass 'model' to choose which model the NEW session runs on: {\"provider\":\"...\",\"modelId\":\"...\"} - the same \"provider/modelId\" pair the model picker shows, and BOTH halves are required. Leave 'model' out and the new session starts on the workspace default model.\n7. Optionally pass 'watchdogTimeoutSeconds' to declare how long YOU are willing to wait for a report before you want to be reminded: a positive number of seconds. If the new session stays silent that long, you receive a '[Watchdog \u63D0\u9192]' message naming it. A report from the child (session_report) restarts the clock; the watchdog never stops the child. Leave it out to run without a watchdog.";
|
|
267
270
|
/** Model-facing description for session_status. */
|
package/dist/server/task-tool.js
CHANGED
|
@@ -367,6 +367,18 @@ export const SESSION_STOP_TOOL_NAME = "session_stop";
|
|
|
367
367
|
export const SESSION_REPORT_TOOL_NAME = "session_report";
|
|
368
368
|
export const SESSION_STOP_SUBTREE_TOOL_NAME = "session_stop_subtree";
|
|
369
369
|
export const SESSION_REMOVE_TOOL_NAME = "session_remove";
|
|
370
|
+
export const SESSION_REMINDER_TOOL_NAME = "session_reminder";
|
|
371
|
+
/** Model-facing description for session_reminder. */
|
|
372
|
+
export const SESSION_REMINDER_DESCRIPTION = `Set an in-session timer that delivers a reminder note back to THIS conversation after a given number of seconds. Multiple reminders can run in parallel, and pending reminders can be cancelled or listed.
|
|
373
|
+
|
|
374
|
+
WHEN TO USE THIS:
|
|
375
|
+
- Self-reminders and time-based checkpoints (e.g. "Check child session progress in 60 seconds", "Review test run in 120 seconds").
|
|
376
|
+
- Unlike scheduled_task which runs in a separate independent conversation, session_reminder sends the note back to THIS EXACT conversation as a new turn so you can follow up directly.
|
|
377
|
+
|
|
378
|
+
Actions:
|
|
379
|
+
- "create" (default): Schedule a reminder. Requires delaySeconds (or seconds) and note. Returns reminderId.
|
|
380
|
+
- "cancel": Cancel a pending reminder. Requires reminderId.
|
|
381
|
+
- "list": List all active pending reminders for this conversation.`;
|
|
370
382
|
/** Model-facing description for session_spawn. */
|
|
371
383
|
export const SESSION_SPAWN_DESCRIPTION = `Create a child conversation in the current workspace and immediately dispatch its initial task. You can specify a primary agent as the child's role.
|
|
372
384
|
|