@evandu/super-pi 0.1.184 → 0.1.187

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 (59) hide show
  1. package/agents/coder.md +1 -1
  2. package/agents/planner.md +1 -1
  3. package/agents/project-leader.md +2 -2
  4. package/agents/reviewer.md +1 -1
  5. package/agents/super-pi-task/core.ts +164 -7
  6. package/agents/super-pi-task/index.ts +41 -5
  7. package/dist/client/.super-pi-client-sources.json +7 -7
  8. package/dist/client/assets/{CodeMirrorEditor-v8j7qM-5.js → CodeMirrorEditor-Cmx7-z0f.js} +2 -2
  9. package/dist/client/assets/{dist-DFpSLAtp.js → dist-B8CAEuXW.js} +1 -1
  10. package/dist/client/assets/{dist-1PSYOzSn.js → dist-BKx3CpQJ.js} +1 -1
  11. package/dist/client/assets/{dist-XrYkL2Xu.js → dist-BMSVWA_A.js} +1 -1
  12. package/dist/client/assets/{dist-BtRpNdOI.js → dist-BdiInYmk.js} +1 -1
  13. package/dist/client/assets/{dist-Bvl-DsMt.js → dist-Bq7p17eF.js} +1 -1
  14. package/dist/client/assets/{dist-CJ4rSQ4N.js → dist-BzqUlzAf.js} +1 -1
  15. package/dist/client/assets/{dist-DF3hHXYK.js → dist-C0PMHwdm.js} +1 -1
  16. package/dist/client/assets/{dist-Bc6s4uHe.js → dist-C2ltv_8u.js} +1 -1
  17. package/dist/client/assets/{dist-BoSFlin7.js → dist-CDSDxXju.js} +1 -1
  18. package/dist/client/assets/{dist-BUHFKfEO.js → dist-CKZOnuRU.js} +1 -1
  19. package/dist/client/assets/{dist-BS72C5ep.js → dist-CWlI6qO0.js} +1 -1
  20. package/dist/client/assets/{dist-cgEoGcO1.js → dist-CXDhHY7N.js} +1 -1
  21. package/dist/client/assets/{dist-BKj3_VBI.js → dist-Cblc22Ag.js} +1 -1
  22. package/dist/client/assets/{dist-DsUX6SY5.js → dist-CcuBp_Kn.js} +1 -1
  23. package/dist/client/assets/{dist-D-MqsRQM.js → dist-DHFt0Hvo.js} +1 -1
  24. package/dist/client/assets/{dist-Bcw21qWX.js → dist-D_7x3oZt.js} +1 -1
  25. package/dist/client/assets/{dist-CIxW4sg_.js → dist-RHYiODih.js} +1 -1
  26. package/dist/client/assets/{dist-Bta_JEiJ.js → dist-V27Fcf8p.js} +1 -1
  27. package/dist/client/assets/{dist-CvM_6f5G.js → dist-WfagMkC4.js} +1 -1
  28. package/dist/client/assets/{dist-CPEKtCMg.js → dist-akJoBtjs.js} +1 -1
  29. package/dist/client/assets/{dist-Bpfwpwk8.js → dist-frBiV55p.js} +1 -1
  30. package/dist/client/assets/{dist-D4SHQTo9.js → dist-ibsGPa_S.js} +1 -1
  31. package/dist/client/assets/{index-DeTEc54b.css → index-BXQjUHV_.css} +1 -1
  32. package/dist/client/assets/{index-D_XU8eXm.js → index-Dx7HAZ5j.js} +14 -13
  33. package/dist/client/index.html +2 -2
  34. package/dist/server/agents.d.ts +1 -1
  35. package/dist/server/agents.js +1 -1
  36. package/dist/server/application/conversation-service.d.ts +13 -0
  37. package/dist/server/application/conversation-service.js +21 -0
  38. package/dist/server/application/project-service.d.ts +3 -71
  39. package/dist/server/application/project-service.js +36 -195
  40. package/dist/server/application/run-service.d.ts +39 -3
  41. package/dist/server/application/run-service.js +166 -18
  42. package/dist/server/application/session-orchestrator-service.d.ts +38 -5
  43. package/dist/server/application/session-orchestrator-service.js +167 -5
  44. package/dist/server/command-handler.js +5 -1
  45. package/dist/server/http-server.js +45 -18
  46. package/dist/server/index.js +1 -1
  47. package/dist/server/pi-session.d.ts +3 -2
  48. package/dist/server/runtime.js +9 -6
  49. package/dist/server/session-tree-scope.d.ts +1 -1
  50. package/dist/server/store.d.ts +24 -0
  51. package/dist/server/store.js +229 -4
  52. package/dist/server/task-tool.d.ts +5 -2
  53. package/dist/server/task-tool.js +25 -2
  54. package/dist/server/types.d.ts +36 -13
  55. package/dist/server/upload.d.ts +2 -6
  56. package/dist/server/upload.js +7 -5
  57. package/dist/shared/session-reporting.d.ts +2 -0
  58. package/dist/shared/session-reporting.js +9 -9
  59. package/package.json +8 -3
@@ -812,7 +812,16 @@ export class Store {
812
812
  /** Read one detached conversation for lifecycle operations. */
813
813
  conversation(conversationId) {
814
814
  const conversation = this.state.conversations.find((item) => item.id === conversationId);
815
- return conversation ? structuredClone(conversation) : undefined;
815
+ if (!conversation)
816
+ return undefined;
817
+ const clone = structuredClone(conversation);
818
+ if (this.openEscalationConversationIds().has(conversation.id)) {
819
+ clone.hasOpenEscalation = true;
820
+ }
821
+ if (this.pendingResultConversationIds().has(conversation.id)) {
822
+ clone.hasPendingResult = true;
823
+ }
824
+ return clone;
816
825
  }
817
826
  /** Return every pending question in one conversation without cloning unrelated history. */
818
827
  pendingQuestions(conversationId) {
@@ -847,6 +856,41 @@ export class Store {
847
856
  }
848
857
  projects() { return structuredClone(this.state.projects ?? []); }
849
858
  project(projectId) { const project = this.state.projects?.find((item) => item.id === projectId); return project ? structuredClone(project) : undefined; }
859
+ /** Conversation IDs that currently have an unresolved escalation requested. */
860
+ openEscalationConversationIds() {
861
+ const set = new Set();
862
+ for (const project of this.state.projects ?? []) {
863
+ for (const e of project.escalations ?? []) {
864
+ if ((e.status === "open" || e.status === "pending") && e.requestedByConversationId) {
865
+ set.add(e.requestedByConversationId);
866
+ }
867
+ }
868
+ }
869
+ return set;
870
+ }
871
+ /** Child conversation IDs whose enqueued session result is still waiting or sending on a non-archived parent. */
872
+ pendingResultConversationIds() {
873
+ const set = new Set();
874
+ for (const parent of this.state.conversations) {
875
+ if (parent.archivedAt)
876
+ continue;
877
+ for (const message of parent.messages) {
878
+ if (message.role !== "tool" || !message.delivery)
879
+ continue;
880
+ const tagMatch = /^<task\b([^>]*)>/.exec(message.content);
881
+ if (!tagMatch)
882
+ continue;
883
+ const attrs = tagMatch[1];
884
+ if (!/\bkind="session"/.test(attrs))
885
+ continue;
886
+ const idMatch = /\bid="([^"]+)"/.exec(attrs);
887
+ if (idMatch?.[1]) {
888
+ set.add(idMatch[1]);
889
+ }
890
+ }
891
+ }
892
+ return set;
893
+ }
850
894
  async setProject(project) {
851
895
  if (!this.state.projects)
852
896
  this.state.projects = [];
@@ -877,7 +921,19 @@ export class Store {
877
921
  }
878
922
  /** Clone only one workspace's transcripts, never unrelated workspaces or app state. */
879
923
  conversationsForWorkspace(workspaceId) {
880
- return structuredClone(this.state.conversations.filter((item) => item.workspaceId === workspaceId));
924
+ const openEscalations = this.openEscalationConversationIds();
925
+ const pendingResults = this.pendingResultConversationIds();
926
+ return structuredClone(this.state.conversations.filter((item) => item.workspaceId === workspaceId)).map((c) => {
927
+ const hasOpenEscalation = openEscalations.has(c.id);
928
+ const hasPendingResult = pendingResults.has(c.id);
929
+ if (!hasOpenEscalation && !hasPendingResult)
930
+ return c;
931
+ return {
932
+ ...c,
933
+ ...(hasOpenEscalation ? { hasOpenEscalation: true } : {}),
934
+ ...(hasPendingResult ? { hasPendingResult: true } : {}),
935
+ };
936
+ });
881
937
  }
882
938
  async setModelFilterRules(rules) {
883
939
  if (!Array.isArray(rules) || rules.some(rule => !rule || typeof rule.id !== "string" || typeof rule.workspacePattern !== "string" || typeof rule.modelPattern !== "string" || (rule.label !== undefined && typeof rule.label !== "string")))
@@ -934,6 +990,16 @@ export class Store {
934
990
  snapshot() {
935
991
  const startedAt = process.env.SUPER_PI_TRACE_LATENCY === "1" ? performance.now() : 0;
936
992
  const value = structuredClone(this.state);
993
+ const openEscalations = this.openEscalationConversationIds();
994
+ const pendingResults = this.pendingResultConversationIds();
995
+ for (const conv of value.conversations) {
996
+ if (openEscalations.has(conv.id)) {
997
+ conv.hasOpenEscalation = true;
998
+ }
999
+ if (pendingResults.has(conv.id)) {
1000
+ conv.hasPendingResult = true;
1001
+ }
1002
+ }
937
1003
  // Do not stringify here just to count bytes: that makes tracing add a second full serialization
938
1004
  // and mislabels that extra work as clone time. The broadcaster measures the actual JSON payload.
939
1005
  if (startedAt)
@@ -1134,15 +1200,35 @@ export class Store {
1134
1200
  const closed = new Set(this.state.workspaces.filter((item) => item.closedAt).map((item) => item.id));
1135
1201
  const workspaces = this.state.workspaces.filter((item) => !closed.has(item.id));
1136
1202
  const visible = this.state.conversations.filter((item) => !closed.has(item.workspaceId));
1203
+ const openEscalations = this.openEscalationConversationIds();
1204
+ const pendingResults = this.pendingResultConversationIds();
1137
1205
  // Legacy sockets still receive complete visible transcripts. Project before cloning so a closed
1138
1206
  // workspace's retained history is never copied just to discard it afterwards.
1139
- if (scope === undefined)
1140
- return structuredClone({ ...publicState, workspaces, conversations: visible, serverTimeZone: serverTimeZone() });
1207
+ if (scope === undefined) {
1208
+ return structuredClone({
1209
+ ...publicState,
1210
+ workspaces,
1211
+ conversations: visible.map((c) => {
1212
+ const hasOpenEscalation = openEscalations.has(c.id);
1213
+ const hasPendingResult = pendingResults.has(c.id);
1214
+ if (!hasOpenEscalation && !hasPendingResult)
1215
+ return c;
1216
+ return {
1217
+ ...c,
1218
+ ...(hasOpenEscalation ? { hasOpenEscalation: true } : {}),
1219
+ ...(hasPendingResult ? { hasPendingResult: true } : {}),
1220
+ };
1221
+ }),
1222
+ serverTimeZone: serverTimeZone(),
1223
+ });
1224
+ }
1141
1225
  // A focused socket keeps every sidebar row, but owns only the selected transcript. An empty scope
1142
1226
  // deliberately loads none; a missing/closed selection must not expose retained workspace history.
1143
1227
  const selectedId = visible.find((item) => item.id === scope.conversationId)?.id;
1144
1228
  const conversations = visible.map(({ messages, ...metadata }) => ({
1145
1229
  ...metadata,
1230
+ ...(openEscalations.has(metadata.id) ? { hasOpenEscalation: true } : {}),
1231
+ ...(pendingResults.has(metadata.id) ? { hasPendingResult: true } : {}),
1146
1232
  messages: metadata.id === selectedId ? messages : [],
1147
1233
  messagesLoaded: metadata.id === selectedId,
1148
1234
  hasPendingQuestion: messages.some((message) => message.toolCalls?.some((call) => call.question?.status === "pending")),
@@ -1456,6 +1542,145 @@ export class Store {
1456
1542
  delete conversation.archivedAt;
1457
1543
  await this.persist();
1458
1544
  }
1545
+ /**
1546
+ * Lists the conversation IDs in a session's subtree (root first, pre-order).
1547
+ * Returns `[]` when the conversation does not exist.
1548
+ */
1549
+ conversationSubtreeIds(conversationId) {
1550
+ const root = this.state.conversations.find((item) => item.id === conversationId);
1551
+ if (!root)
1552
+ return [];
1553
+ return this.conversationSubtree(root).map((item) => item.id);
1554
+ }
1555
+ /**
1556
+ * Permanently destroys a child conversation and its entire descendant subtree along with all
1557
+ * conversation-scoped store records (messages, tool calls, sub-agent runs, background tasks,
1558
+ * workflows, todos, UI locks/collapse markers, and open escalations raised by the destroyed
1559
+ * sessions). Refuses top-level sessions and refuses if any session in the subtree is running.
1560
+ */
1561
+ async deleteConversationSubtree(conversationId) {
1562
+ const root = this.state.conversations.find((item) => item.id === conversationId);
1563
+ if (!root)
1564
+ return { destroyed: [] };
1565
+ if (!root.parentConversationId) {
1566
+ throw new Error("顶层会话不能销毁,只能由用户归档。");
1567
+ }
1568
+ const subtree = this.conversationSubtree(root);
1569
+ const running = subtree.find((item) => item.status === "running" || item.status === "awaiting_background");
1570
+ if (running) {
1571
+ throw new Error(`会话「${running.title}」仍在运行,无法销毁,请先停止运行。`);
1572
+ }
1573
+ const destroyed = subtree.map((item) => ({
1574
+ id: item.id,
1575
+ title: item.title,
1576
+ workspaceId: item.workspaceId,
1577
+ ...(item.piSessionFile ? { piSessionFile: item.piSessionFile } : {}),
1578
+ messageIds: item.messages.map((message) => message.id),
1579
+ }));
1580
+ const destroyedIds = new Set(destroyed.map((item) => item.id));
1581
+ const previousConversations = this.state.conversations;
1582
+ const previousSubagentRuns = this.state.subagentRuns;
1583
+ const previousBackgroundTasks = this.state.backgroundTasks;
1584
+ const previousTodos = this.state.todosByConversation;
1585
+ const previousWorkflows = this.state.workflows;
1586
+ const previousScheduledTasks = this.state.scheduledTasks;
1587
+ const previousCollapsed = this.state.collapsedConversationIds;
1588
+ const previousUnlocked = this.state.unlockedChildConversationIds;
1589
+ const previousProjects = this.state.projects;
1590
+ this.state.conversations = this.state.conversations.filter((item) => !destroyedIds.has(item.id));
1591
+ this.state.subagentRuns = this.state.subagentRuns.filter((run) => !destroyedIds.has(run.conversationId));
1592
+ this.state.backgroundTasks = this.state.backgroundTasks.filter((task) => !destroyedIds.has(task.conversationId));
1593
+ if (this.state.todosByConversation) {
1594
+ const nextTodos = { ...this.state.todosByConversation };
1595
+ for (const id of destroyedIds)
1596
+ delete nextTodos[id];
1597
+ if (Object.keys(nextTodos).length === 0)
1598
+ delete this.state.todosByConversation;
1599
+ else
1600
+ this.state.todosByConversation = nextTodos;
1601
+ }
1602
+ if (this.state.workflows) {
1603
+ const nextWorkflows = this.state.workflows.filter((workflow) => !workflow?.conversationId || !destroyedIds.has(workflow.conversationId));
1604
+ if (nextWorkflows.length === 0)
1605
+ delete this.state.workflows;
1606
+ else
1607
+ this.state.workflows = nextWorkflows;
1608
+ }
1609
+ if (this.state.scheduledTasks) {
1610
+ this.state.scheduledTasks = this.state.scheduledTasks.map((task) => {
1611
+ if (!task?.conversationId || !destroyedIds.has(task.conversationId))
1612
+ return task;
1613
+ const copy = { ...task };
1614
+ delete copy.conversationId;
1615
+ return copy;
1616
+ });
1617
+ }
1618
+ if (this.state.collapsedConversationIds) {
1619
+ const nextCollapsed = this.state.collapsedConversationIds.filter((id) => !destroyedIds.has(id));
1620
+ if (nextCollapsed.length === 0)
1621
+ delete this.state.collapsedConversationIds;
1622
+ else
1623
+ this.state.collapsedConversationIds = nextCollapsed;
1624
+ }
1625
+ if (this.state.unlockedChildConversationIds) {
1626
+ const nextUnlocked = this.state.unlockedChildConversationIds.filter((id) => !destroyedIds.has(id));
1627
+ if (nextUnlocked.length === 0)
1628
+ delete this.state.unlockedChildConversationIds;
1629
+ else
1630
+ this.state.unlockedChildConversationIds = nextUnlocked;
1631
+ }
1632
+ if (this.state.projects) {
1633
+ this.state.projects = this.state.projects.map((project) => {
1634
+ if (!project.escalations?.length)
1635
+ return project;
1636
+ const nextEscalations = project.escalations.filter((escalation) => {
1637
+ const isOpen = escalation.status === "open" || escalation.status === "pending";
1638
+ if (!isOpen)
1639
+ return true;
1640
+ const requestedByDestroyed = Boolean(escalation.requestedByConversationId && destroyedIds.has(escalation.requestedByConversationId));
1641
+ const targetsDestroyed = Boolean(escalation.targetConversationId && destroyedIds.has(escalation.targetConversationId));
1642
+ return !requestedByDestroyed && !targetsDestroyed;
1643
+ });
1644
+ if (nextEscalations.length === project.escalations.length)
1645
+ return project;
1646
+ return { ...project, escalations: nextEscalations };
1647
+ });
1648
+ }
1649
+ try {
1650
+ await this.persist();
1651
+ }
1652
+ catch (error) {
1653
+ this.state.conversations = previousConversations;
1654
+ this.state.subagentRuns = previousSubagentRuns;
1655
+ this.state.backgroundTasks = previousBackgroundTasks;
1656
+ if (previousTodos === undefined)
1657
+ delete this.state.todosByConversation;
1658
+ else
1659
+ this.state.todosByConversation = previousTodos;
1660
+ if (previousWorkflows === undefined)
1661
+ delete this.state.workflows;
1662
+ else
1663
+ this.state.workflows = previousWorkflows;
1664
+ if (previousScheduledTasks === undefined)
1665
+ delete this.state.scheduledTasks;
1666
+ else
1667
+ this.state.scheduledTasks = previousScheduledTasks;
1668
+ if (previousCollapsed === undefined)
1669
+ delete this.state.collapsedConversationIds;
1670
+ else
1671
+ this.state.collapsedConversationIds = previousCollapsed;
1672
+ if (previousUnlocked === undefined)
1673
+ delete this.state.unlockedChildConversationIds;
1674
+ else
1675
+ this.state.unlockedChildConversationIds = previousUnlocked;
1676
+ if (previousProjects === undefined)
1677
+ delete this.state.projects;
1678
+ else
1679
+ this.state.projects = previousProjects;
1680
+ throw error;
1681
+ }
1682
+ return { destroyed };
1683
+ }
1459
1684
  /** Pre-order traversal with cycle protection; archived nodes are traversed, not treated as leaves. */
1460
1685
  conversationSubtree(root) {
1461
1686
  const byParent = new Map();
@@ -261,15 +261,18 @@ export declare const SESSION_DISPATCH_TOOL_NAME = "session_dispatch";
261
261
  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
+ export declare const SESSION_REMOVE_TOOL_NAME = "session_remove";
264
265
  /** Model-facing description for session_spawn. */
265
266
  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.";
266
267
  /** Model-facing description for session_status. */
267
268
  export declare const SESSION_STATUS_DESCRIPTION = "Inspect the progress, run state, and latest activity of sibling conversations created by the orchestrator.\n\nWHEN TO USE THIS:\n- To check whether a spawned sibling conversation is still running, has finished (idle), is stopped, or encountered an error.\n- To read the latest assistant progress snippet without bloating your context with the session's entire raw message transcript.\n- To list all sibling conversations under your coordination when conversationId is omitted.\n\nUsage notes:\n1. When 'conversationId' is provided: returns a compact summary for that specific session, including its run status ('idle', 'running', 'waiting', 'stopped', 'failed'), messageCount, turnCount, lastAssistantSnippet, lastUserSnippet, activeTool, and error (if any).\n2. When 'conversationId' is omitted: returns a summary list of sibling conversations whose direct parent is 'parentConversationId' (the calling session by default).\n3. By default it never returns full transcripts; concise summaries keep your context window lean. Set 'includeOutput' with a conversationId to read the final output from its result file, capped to the last 64Ki characters with an explicit truncation notice.";
268
269
  /** Model-facing description for session_dispatch. */
269
- export declare const SESSION_DISPATCH_DESCRIPTION = "Send a message, follow-up instructions, or steering guidance to an existing sibling conversation.\n\nWHEN TO USE THIS:\n- To follow up with a sibling session after reading its progress with session_status.\n- To give feedback, provide additional requirements, or answer a question from a sibling session.\n- To kick off a new turn on an idle or stopped sibling session.\n\nUsage notes:\n1. 'conversationId' is required and must identify an existing sibling conversation.\n2. 'content' is the text instruction sent to that session, just as if typed by a user in that session's chat.\n3. Dispatch is ASYNCHRONOUS by default: it enqueues the message into the session's queue and returns immediately.\n4. If the sibling session is currently busy running a turn, the dispatched message is placed in its waiting queue and processed when the active turn completes.";
270
+ export declare const SESSION_DISPATCH_DESCRIPTION = "Send a message, follow-up instructions, or steering guidance to an existing sibling conversation.\n\nWHEN TO USE THIS:\n- To follow up with a sibling session after reading its progress with session_status.\n- To give feedback, provide additional requirements, or answer a question from a sibling session.\n- To kick off a new turn on an idle or stopped sibling session.\n\nUsage notes:\n1. 'conversationId' is required and must identify an existing sibling conversation.\n2. 'content' is the text instruction sent to that session, just as if typed by a user in that session's chat.\n3. Dispatch is ASYNCHRONOUS by default: it enqueues the message into the session's queue and returns immediately.\n4. If the sibling session is currently busy running a turn, the dispatched message is placed in its waiting queue and processed when the active turn completes.\n5. 'mode' controls delivery when the target session is busy:\n - 'queue' (default): waits until the active turn and earlier queued messages finish (delivered via follow-up queue / subsequent turn; multiple queued messages wait in order).\n - 'steer': delivers at the NEXT turn boundary (after the current tool-call batch completes) ahead of queued follow-up messages. It does NOT kill or abort an in-flight tool call mid-execution. Multiple steered messages arriving before the next boundary may be delivered together at that boundary; when the session is idle, it starts a turn immediately.\n - Invalid 'mode' values are rejected with an error (never silently fall back to 'queue').";
270
271
  /** Model-facing description for session_stop. */
271
- export declare const SESSION_STOP_DESCRIPTION = "Stop execution in a sibling conversation.\n\nWHEN TO USE THIS:\n- When a sibling session has gone down the wrong path, is stuck in an unwanted loop, or when the overall goal has changed and remaining work should be aborted.\n- To clear pending queued messages before they start running.\n\nUsage notes:\n1. 'mode' controls what to stop:\n - 'all' (default): stops the currently running turn and cancels all pending queued messages in the session.\n - 'active': only interrupts the active running turn; leaves any pending queued messages untouched.\n - 'queued': only cancels pending queued messages; lets the currently running turn complete naturally.\n2. Use 'messageId' if you want to cancel or interrupt one specific queued message instead of all queued messages.";
272
+ export declare const SESSION_STOP_DESCRIPTION = "Stop execution in a sibling conversation.\n\nWHEN TO USE THIS:\n- When a sibling session has gone down the wrong path, is stuck in an unwanted loop, or when the overall goal has changed and remaining work should be aborted.\n- To clear pending queued messages before they start running.\n\nUsage notes:\n1. 'mode' controls what to stop:\n - 'all' (default): stops the currently running turn and cancels all pending queued messages in the session.\n - 'active': only interrupts the active running turn; leaves any pending queued messages untouched.\n - 'queued': only cancels pending queued messages; lets the currently running turn complete naturally.\n2. Use 'messageId' if you want to cancel or interrupt one specific queued message instead of all queued messages.\n3. Use 'messageIds' (an array of queued message IDs from session_status or session_dispatch) to selectively withdraw only those queued messages while keeping the running turn, other queued messages, and unrelated steered messages intact.";
272
273
  /** Model-facing description for session_report. */
273
274
  export declare const SESSION_REPORT_DESCRIPTION = "Report progress from THIS session to the parent session that spawned it.\n\nWHEN TO USE THIS:\n- You are a spawned sibling session, and the parent is waiting to hear from you: a milestone is done, a roadblock appeared, or the task is finished.\n- The parent set a watchdog (session_spawn's 'watchdogTimeoutSeconds'): a report is what restarts that clock, and silence is what triggers the reminder.\n- The task is over and the parent needs the outcome NOW rather than after the automatic end-of-turn result.\n\nWHEN NOT TO USE THIS:\n- This session has no parent (the user opened it directly): there is nobody to report to, and the server refuses the call.\n- You want to ASK the parent something or send it new instructions: that is session_dispatch, and only the parent can send it. A report is one-way - the parent receives it as a message.\n\nUsage notes:\n1. 'content' is required: it is the text the parent receives. Write it for the parent - what is done, what is left, what you need.\n2. 'status' says what the report MEANS:\n - 'in_progress' (default): an interim update. The task continues, and the parent's watchdog clock restarts.\n - 'completed': the task is finished and this is your final word.\n - 'failed': the task could not be finished, and this says why.\n3. A 'completed' or 'failed' report tells the server the work is over, so the parent is NOT also sent the automatic end-of-turn result. Send it once, at the end, with the final answer in 'content'.\n4. Reporting does NOT end your turn. If the task is not done, keep working afterwards - the parent is waiting on the work, not on the report.\n5. The report reaches your DIRECT parent only. A sibling, a cousin, and the user's own session are all out of reach, and the server refuses those.";
274
275
  /** Model-facing description for session_stop_subtree. */
275
276
  export declare const SESSION_STOP_SUBTREE_DESCRIPTION = "Stop a sibling session AND every session underneath it.\n\nWHEN TO USE THIS:\n- The session has children of its own and you are stopping it: those children would otherwise keep running with a dead parent - zombies that burn tokens, keep writing files, and report results nobody is left to read.\n- The whole branch should go: stopping only the top leaves the work underneath it alive.\n- A child went wrong and everything it started has to go down with it.\n\nWHEN NOT TO USE THIS:\n- The session has no children: session_stop does the same thing to one session and says less.\n- The session is only misbehaving at the top and its children are doing work you still want: stop it alone with session_stop.\n- You want to cancel one queued message: session_stop's 'messageId'.\n\nUsage notes:\n1. 'conversationId' must be your own DIRECT child, exactly as for session_stop. You are not reaching across levels to manage anybody.\n2. Everything under that session goes down with it - children, grandchildren, the whole tree - deepest first, so nothing is left running under a session that is already gone.\n3. The descendants are stopped AS A CONSEQUENCE of stopping the root. They cannot be spared, because a session cannot outlive the one that owns it.\n4. The answer says how many sessions were stopped in total, including the one you named.";
277
+ /** Model-facing description for session_remove. */
278
+ export declare const SESSION_REMOVE_DESCRIPTION = "Permanently destroy a direct child session (and any descendant sessions under it) from the current working group.\n\nWHEN TO USE THIS:\n- A child session's work is finished and you no longer need its session, transcript, or saved output.\n- A child session is stuck and no longer needed, or was spawned by mistake / as a duplicate.\n\nWHEN NOT TO USE THIS:\n- You still plan to send follow-up instructions to it later, or still need its transcript, messages, or saved result file.\n- You want to delete yourself, a top-level user session (top-level projects are archived by the user, not destroyed by agents), or any session that is not your direct child.\n\nUsage notes:\n1. Destroying is PERMANENT, NOT archiving: the child session and its entire descendant subtree are permanently deleted from the store along with their messages, tool calls, sub-agent runs, todos, and saved output artifacts.\n2. Once destroyed, the session and its branch disappear from your active child list, session_status queries, and reporting wait state.\n3. If the child session or any of its descendants is still running or has queued work, session_remove stops the subtree first; if stopping any session fails, the destruction is refused.\n4. Only your DIRECT child can be targeted (top-level user sessions and non-direct-child sessions are refused). Deleting a direct child that has subordinates destroys that whole branch together.\n5. Destroying a session that is already gone is idempotent and succeeds without error.";
@@ -366,6 +366,7 @@ export const SESSION_DISPATCH_TOOL_NAME = "session_dispatch";
366
366
  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
+ export const SESSION_REMOVE_TOOL_NAME = "session_remove";
369
370
  /** Model-facing description for session_spawn. */
370
371
  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.
371
372
 
@@ -416,7 +417,11 @@ Usage notes:
416
417
  1. 'conversationId' is required and must identify an existing sibling conversation.
417
418
  2. 'content' is the text instruction sent to that session, just as if typed by a user in that session's chat.
418
419
  3. Dispatch is ASYNCHRONOUS by default: it enqueues the message into the session's queue and returns immediately.
419
- 4. If the sibling session is currently busy running a turn, the dispatched message is placed in its waiting queue and processed when the active turn completes.`;
420
+ 4. If the sibling session is currently busy running a turn, the dispatched message is placed in its waiting queue and processed when the active turn completes.
421
+ 5. 'mode' controls delivery when the target session is busy:
422
+ - 'queue' (default): waits until the active turn and earlier queued messages finish (delivered via follow-up queue / subsequent turn; multiple queued messages wait in order).
423
+ - 'steer': delivers at the NEXT turn boundary (after the current tool-call batch completes) ahead of queued follow-up messages. It does NOT kill or abort an in-flight tool call mid-execution. Multiple steered messages arriving before the next boundary may be delivered together at that boundary; when the session is idle, it starts a turn immediately.
424
+ - Invalid 'mode' values are rejected with an error (never silently fall back to 'queue').`;
420
425
  /** Model-facing description for session_stop. */
421
426
  export const SESSION_STOP_DESCRIPTION = `Stop execution in a sibling conversation.
422
427
 
@@ -429,7 +434,8 @@ Usage notes:
429
434
  - 'all' (default): stops the currently running turn and cancels all pending queued messages in the session.
430
435
  - 'active': only interrupts the active running turn; leaves any pending queued messages untouched.
431
436
  - 'queued': only cancels pending queued messages; lets the currently running turn complete naturally.
432
- 2. Use 'messageId' if you want to cancel or interrupt one specific queued message instead of all queued messages.`;
437
+ 2. Use 'messageId' if you want to cancel or interrupt one specific queued message instead of all queued messages.
438
+ 3. Use 'messageIds' (an array of queued message IDs from session_status or session_dispatch) to selectively withdraw only those queued messages while keeping the running turn, other queued messages, and unrelated steered messages intact.`;
433
439
  /** Model-facing description for session_report. */
434
440
  export const SESSION_REPORT_DESCRIPTION = `Report progress from THIS session to the parent session that spawned it.
435
441
 
@@ -469,3 +475,20 @@ Usage notes:
469
475
  2. Everything under that session goes down with it - children, grandchildren, the whole tree - deepest first, so nothing is left running under a session that is already gone.
470
476
  3. The descendants are stopped AS A CONSEQUENCE of stopping the root. They cannot be spared, because a session cannot outlive the one that owns it.
471
477
  4. The answer says how many sessions were stopped in total, including the one you named.`;
478
+ /** Model-facing description for session_remove. */
479
+ export const SESSION_REMOVE_DESCRIPTION = `Permanently destroy a direct child session (and any descendant sessions under it) from the current working group.
480
+
481
+ WHEN TO USE THIS:
482
+ - A child session's work is finished and you no longer need its session, transcript, or saved output.
483
+ - A child session is stuck and no longer needed, or was spawned by mistake / as a duplicate.
484
+
485
+ WHEN NOT TO USE THIS:
486
+ - You still plan to send follow-up instructions to it later, or still need its transcript, messages, or saved result file.
487
+ - You want to delete yourself, a top-level user session (top-level projects are archived by the user, not destroyed by agents), or any session that is not your direct child.
488
+
489
+ Usage notes:
490
+ 1. Destroying is PERMANENT, NOT archiving: the child session and its entire descendant subtree are permanently deleted from the store along with their messages, tool calls, sub-agent runs, todos, and saved output artifacts.
491
+ 2. Once destroyed, the session and its branch disappear from your active child list, session_status queries, and reporting wait state.
492
+ 3. If the child session or any of its descendants is still running or has queued work, session_remove stops the subtree first; if stopping any session fails, the destruction is refused.
493
+ 4. Only your DIRECT child can be targeted (top-level user sessions and non-direct-child sessions are refused). Deleting a direct child that has subordinates destroys that whole branch together.
494
+ 5. Destroying a session that is already gone is idempotent and succeeds without error.`;
@@ -68,6 +68,15 @@ export type MessageImage = {
68
68
  width?: number;
69
69
  height?: number;
70
70
  };
71
+ /**
72
+ * Base64 image payload passed to Pi's session/RPC APIs (never persisted in state.json).
73
+ * Kept distinct from `MessageImage` so file references cannot be handed to Pi unhydrated.
74
+ */
75
+ export type PiImageContent = {
76
+ type: "image";
77
+ data: string;
78
+ mimeType: string;
79
+ };
71
80
  /** ONE QUESTION AS THE TOOL ASKED IT, before any answer exists.
72
81
  * Mirrors OpenCode's `QuestionV2.Prompt`: a stable id so the answer pairs by identity rather than by
73
82
  * position, a short header for a dock, and options with their own text. */
@@ -567,6 +576,8 @@ export type Conversation = {
567
576
  reportedToParentAt?: string;
568
577
  /** 该会话是否存在未决的例外升级(等待上级处理)。 */
569
578
  hasOpenEscalation?: boolean;
579
+ /** Read-only projection: whether this child session still has an undelivered result in its parent's waiting queue. */
580
+ hasPendingResult?: boolean;
570
581
  /**
571
582
  * 用户上次点击阅读该会话的时间戳(ISO 字符串)。
572
583
  * 顶层会话退回到根据这个判断未读;子会话不看这个。
@@ -1096,10 +1107,6 @@ export type Project = {
1096
1107
  /** The session that created the project - the Boss's own conversation, which may register the
1097
1108
  * top-level tasks and is the one the project answers to. */
1098
1109
  initiatorConversationId?: string;
1099
- budget?: {
1100
- maxTokens?: number;
1101
- maxConcurrent?: number;
1102
- };
1103
1110
  defaultLeaderProfile?: SessionProfile;
1104
1111
  defaultExecutorProfile?: SessionProfile;
1105
1112
  defaultReviewerProfile?: SessionProfile;
@@ -1155,15 +1162,6 @@ export type Project = {
1155
1162
  memoryScope?: "project" | "shared";
1156
1163
  }[];
1157
1164
  };
1158
- /**
1159
- * THE CAP THE ONE-CLICK PATH OFFERS, COMPUTED BY THE SERVER.
1160
- *
1161
- * It is `max(current cap + 1, spent tokens * 2)`, and it is a READ-ONLY projection: it is
1162
- * never stored, so it can never disagree with the budget the project actually runs on. The
1163
- * panel shows this number on the button instead of computing one of its own - a suggestion the
1164
- * client invents is a suggestion the Boss cannot check.
1165
- */
1166
- suggestedMaxTokens?: number;
1167
1165
  tasks: ProjectTask[];
1168
1166
  reports: ProjectReport[];
1169
1167
  escalations: ProjectEscalation[];
@@ -1322,6 +1320,7 @@ export type ExtensionUiAnswer = {
1322
1320
  confirmed?: boolean;
1323
1321
  cancelled?: true;
1324
1322
  };
1323
+ export type MessageDeliveryMode = "queue" | "steer";
1325
1324
  export type ClientCommand = ClientCommandBody & {
1326
1325
  operationRequestId?: string;
1327
1326
  };
@@ -1674,6 +1673,7 @@ export type ClientCommandBody =
1674
1673
  images?: MessageImage[];
1675
1674
  attachments?: MessageAttachments;
1676
1675
  clientId?: string;
1676
+ mode?: MessageDeliveryMode;
1677
1677
  }
1678
1678
  /**
1679
1679
  * Revert the conversation to the state right AFTER one message: every message after it is removed from
@@ -1708,6 +1708,15 @@ export type ClientCommandBody =
1708
1708
  conversationId: string;
1709
1709
  messageId: string;
1710
1710
  }
1711
+ /**
1712
+ * Withdraws a specific set of waiting messages by id while leaving remaining queued and steered
1713
+ * messages intact.
1714
+ */
1715
+ | {
1716
+ type: "message.cancelMany";
1717
+ conversationId: string;
1718
+ messageIds: string[];
1719
+ }
1711
1720
  /**
1712
1721
  * Rewrites the text of ONE waiting message that has not been given to Pi yet.
1713
1722
  *
@@ -2171,6 +2180,20 @@ export type ServerEvent = {
2171
2180
  type: "pi.queue";
2172
2181
  conversationId: string;
2173
2182
  } & PiQueueSnapshot)
2183
+ /**
2184
+ * Announces that one or more queued messages were withdrawn, along with their ids and text previews,
2185
+ * so both user-initiated and agent-initiated withdrawals remain visible rather than silent.
2186
+ */
2187
+ | {
2188
+ type: "queue.withdrawn";
2189
+ conversationId: string;
2190
+ withdrawn: {
2191
+ id: string;
2192
+ content: string;
2193
+ role: "user" | "tool";
2194
+ }[];
2195
+ actor: "user" | "agent";
2196
+ }
2174
2197
  /**
2175
2198
  * Bytes from a terminal shell, as ONE event per coalescing window rather than one per `onData` call.
2176
2199
  *
@@ -1,4 +1,4 @@
1
- import type { MessageImage } from "./types.js";
1
+ import type { MessageImage, PiImageContent } from "./types.js";
2
2
  /** 5MB maximum decoded image payload, matching the source-file size ceiling in files.ts. */
3
3
  export declare const MAX_UPLOAD_BYTES: number;
4
4
  /** 10MB maximum HTTP request body to safely handle base64 overhead before JSON parsing. */
@@ -30,8 +30,4 @@ export declare function findUploadFile(uploadsDir: string, conversationId: strin
30
30
  size: number;
31
31
  } | null>;
32
32
  export declare function deleteConversationUploads(uploadsDir: string, conversationId: string): Promise<void>;
33
- export declare function loadConversationImages(uploadsDir: string, conversationId: string, images: MessageImage[]): Promise<Array<{
34
- type: "image";
35
- data: string;
36
- mimeType: string;
37
- }>>;
33
+ export declare function loadConversationImages(uploadsDir: string, conversationId: string, images: MessageImage[]): Promise<PiImageContent[]>;
@@ -147,11 +147,13 @@ export async function loadConversationImages(uploadsDir, conversationId, images)
147
147
  const found = await findUploadFile(uploadsDir, conversationId, img.id);
148
148
  if (found) {
149
149
  const buf = await readFile(found.filePath);
150
- result.push({
151
- type: "image",
152
- data: buf.toString("base64"),
153
- mimeType: img.mimeType || found.mimeType,
154
- });
150
+ if (buf.length > 0) {
151
+ result.push({
152
+ type: "image",
153
+ data: buf.toString("base64"),
154
+ mimeType: img.mimeType || found.mimeType,
155
+ });
156
+ }
155
157
  }
156
158
  }
157
159
  return result;
@@ -6,6 +6,7 @@ export type SessionReportingSnapshot = {
6
6
  reportedToParentAt?: string;
7
7
  archivedAt?: string;
8
8
  hasOpenEscalation?: boolean;
9
+ hasPendingResult?: boolean;
9
10
  };
10
11
  export type ReportingAxisState = "pending_report" | "awaiting_subordinates" | "awaiting_decision" | "unread";
11
12
  export declare function deriveReportingState(params: {
@@ -21,4 +22,5 @@ export declare function deriveSessionState(params: {
21
22
  status?: string;
22
23
  reportingState?: ReportingAxisState | null;
23
24
  awaitingQuestion?: boolean;
25
+ quietWhenRead?: boolean;
24
26
  }): SessionDisplayState;
@@ -2,8 +2,8 @@
2
2
  //
3
3
  // 状态在回答什么问题:
4
4
  // - 自己有升级例外:等上面拍板(awaiting_decision)。
5
- // - 父会话:下级是不是都在消停状态?不是就是等待下级(awaiting_subordinates)。
6
- // - 子会话:有没有向上汇报?没有就是待汇报(pending_report),报过了就消停了(null)。
5
+ // - 父会话:是否有直接下级还在进行中或有未决升级?是就是等待下级(awaiting_subordinates)。
6
+ // - 子会话:自己的结果是不是还在父会话的待收队列里?在就是待汇报(pending_report),收走或没有就消停了(null)。
7
7
  // - 顶层会话:自己有没有未读?有就是未读(unread)。
8
8
  //
9
9
  // 规则在 `docs/DESIGN-PRINCIPLES.md` 第二节「汇报线逐级转述:Boss 只有一个联络线」。
@@ -14,27 +14,25 @@ export function deriveReportingState(params) {
14
14
  if (conversation.hasOpenEscalation) {
15
15
  return "awaiting_decision";
16
16
  }
17
- // 2. 如果自己有未结束、未汇报或未决升级的直接子会话:等待下级
17
+ // 2. 如果自己有正在进行中或存在未决升级的直接子会话:等待下级
18
18
  const hasPendingChild = directChildren.some((child) => {
19
19
  if (child.archivedAt)
20
20
  return false;
21
21
  const isRunning = child.status === "running" ||
22
22
  child.status === "waiting" ||
23
23
  child.status === "awaiting_background";
24
- const hasNotReported = !child.reportedToParentAt;
25
24
  const hasEscalation = Boolean(child.hasOpenEscalation);
26
- return isRunning || hasNotReported || hasEscalation;
25
+ return isRunning || hasEscalation;
27
26
  });
28
27
  if (hasPendingChild) {
29
28
  return "awaiting_subordinates";
30
29
  }
31
30
  // 3. 如果自己是子会话(按 isChildSession 判据,父会话存在且未归档)
32
31
  if (isChildSession(conversation.parentConversationId, parent)) {
33
- // 还没汇报过 -> 待汇报
34
- if (!conversation.reportedToParentAt) {
32
+ // Only pending_report while a delivered result is still queued on its parent.
33
+ if (conversation.hasPendingResult) {
35
34
  return "pending_report";
36
35
  }
37
- // 已经汇报过 -> 在汇报轴上完成,不显示任何汇报标记
38
36
  return null;
39
37
  }
40
38
  // 4. 顶层会话退回到原有的「未读」逻辑
@@ -60,7 +58,7 @@ export function sessionStateWord(state) {
60
58
  return SESSION_STATE_WORD[state ?? ""] ?? state ?? "未知状态";
61
59
  }
62
60
  export function deriveSessionState(params) {
63
- const { status, reportingState, awaitingQuestion } = params;
61
+ const { status, reportingState, awaitingQuestion, quietWhenRead = false } = params;
64
62
  if (awaitingQuestion)
65
63
  return "question";
66
64
  if (status === "failed")
@@ -82,5 +80,7 @@ export function deriveSessionState(params) {
82
80
  return "completed";
83
81
  return "unread";
84
82
  }
83
+ if (quietWhenRead)
84
+ return "idle";
85
85
  return status === "completed" ? "completed" : "idle";
86
86
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@evandu/super-pi",
3
- "version": "0.1.184",
3
+ "version": "0.1.187",
4
4
  "description": "Web control plane and companion for Pi",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -94,6 +94,7 @@
94
94
  "scripts/session-result-callback-e2e.test.mjs",
95
95
  "scripts/session-orchestrator-tools.test.mjs",
96
96
  "scripts/project-service.test.mjs",
97
+ "scripts/project-ceremony-free.test.mjs",
97
98
  "scripts/dead-end-decision.test.mjs",
98
99
  "scripts/project-report-exception-title.test.mjs",
99
100
  "scripts/project-report-decision-layout.test.mjs",
@@ -101,7 +102,6 @@
101
102
  "scripts/project-report-chain.test.mjs",
102
103
  "scripts/project-tool-surface-parity.test.mjs",
103
104
  "scripts/tool-surface-parity-all.test.mjs",
104
- "scripts/budget-sizing.test.mjs",
105
105
  "scripts/session-tree-collapse.test.mjs",
106
106
  "scripts/sidebar-session-order.test.mjs",
107
107
  "scripts/archive-cascade.test.mjs",
@@ -229,7 +229,9 @@
229
229
  "scripts/scheduled-task-model-clear.test.mjs",
230
230
  "scripts/scheduled-task-scope.test.mjs",
231
231
  "scripts/scheduled-task-tool.test.mjs",
232
+ "scripts/agile-project-orchestration.test.mjs",
232
233
  "scripts/run-state-sync.test.mjs",
234
+ "scripts/message-delivery-modes.test.mjs",
233
235
  "scripts/performance-architecture.test.mjs",
234
236
  "scripts/upgrade-from-138-browser.test.mjs",
235
237
  "scripts/session-orchestrator-role-prompt.test.mjs",
@@ -250,6 +252,7 @@
250
252
  "scripts/session-report-watchdog.test.mjs",
251
253
  "scripts/session-report-tool.test.mjs",
252
254
  "scripts/session-stop-subtree.test.mjs",
255
+ "scripts/session-remove.test.mjs",
253
256
  "scripts/session-tool-behaviour.test.mjs",
254
257
  "scripts/awaiting-background-status.test.mjs",
255
258
  "scripts/project-lifecycle-e2e.test.mjs",
@@ -261,6 +264,7 @@
261
264
  "scripts/child-question-lock.test.mjs",
262
265
  "scripts/session-reporting.test.mjs",
263
266
  "scripts/project-panel-reporting.test.mjs",
267
+ "scripts/session-row-escalation.test.mjs",
264
268
  "scripts/mutation-lock-coverage.test.mjs"
265
269
  ],
266
270
  "check:browser": [
@@ -361,7 +365,8 @@
361
365
  "scripts/session-landing-browser.test.mjs",
362
366
  "scripts/responsive-rail-drawer-browser.test.mjs",
363
367
  "scripts/interrupted-task-recovery-browser.test.mjs",
364
- "scripts/child-session-lock-browser.test.mjs"
368
+ "scripts/child-session-lock-browser.test.mjs",
369
+ "scripts/session-row-escalation-browser.test.mjs"
365
370
  ],
366
371
  "dependencies": {
367
372
  "@codemirror/commands": "^6.11.1",