@evandu/super-pi 0.1.218 → 0.1.220
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/project-leader.md +1 -1
- package/agents/super-pi-task/core.ts +1 -1
- package/agents/super-pi-task/index.ts +4 -2
- package/dist/client/.super-pi-client-sources.json +6 -6
- package/dist/client/assets/{CodeMirrorEditor-CyESWKhO.js → CodeMirrorEditor-DLESYIdU.js} +2 -2
- package/dist/client/assets/{dist-xAE0Sxu_.js → dist-2Gv721yB.js} +1 -1
- package/dist/client/assets/{dist-CWLwzCNI.js → dist-B-63MNT9.js} +1 -1
- package/dist/client/assets/{dist-BQ5yUYGI.js → dist-B-ydE4PJ.js} +1 -1
- package/dist/client/assets/{dist-BfAB10-T.js → dist-B6UYFWUo.js} +1 -1
- package/dist/client/assets/{dist-GMozZ-IZ.js → dist-BG1xVEUu.js} +1 -1
- package/dist/client/assets/{dist-C6tiomV0.js → dist-BTUuXAFG.js} +1 -1
- package/dist/client/assets/{dist-Zl8KoipB.js → dist-Bz37bm03.js} +1 -1
- package/dist/client/assets/{dist-BwQiVXeZ.js → dist-CQAWuaHA.js} +1 -1
- package/dist/client/assets/{dist-XNj0UVAT.js → dist-CYEoLBJJ.js} +1 -1
- package/dist/client/assets/{dist-CkjmcyTq.js → dist-CbixgvA8.js} +1 -1
- package/dist/client/assets/{dist-DHh4-Br1.js → dist-CoC8iHD1.js} +1 -1
- package/dist/client/assets/{dist-DtyV497P.js → dist-CrtcsyOg.js} +1 -1
- package/dist/client/assets/{dist-BlALlifb.js → dist-D0Mff5_O.js} +1 -1
- package/dist/client/assets/{dist-BXMYNRiG.js → dist-DKRxalqK.js} +1 -1
- package/dist/client/assets/{dist-Cgclz1Km.js → dist-DPvgTEV_.js} +1 -1
- package/dist/client/assets/{dist-C9qNY2Kp.js → dist-DhCNXN4F.js} +1 -1
- package/dist/client/assets/{dist-BXq9HMCd.js → dist-DmraLEb2.js} +1 -1
- package/dist/client/assets/{dist-B33BwR-8.js → dist-DvJTvgiN.js} +1 -1
- package/dist/client/assets/{dist-C7y8W3IU.js → dist-YSB8UKj7.js} +1 -1
- package/dist/client/assets/{dist-1djw1Aua.js → dist-aDKso4tk.js} +1 -1
- package/dist/client/assets/{dist-DH6F4kKv.js → dist-h8QFV1py.js} +1 -1
- package/dist/client/assets/{dist-DZGY_CNU.js → dist-hyn4QSU9.js} +1 -1
- package/dist/client/assets/index-B-h_KnC5.css +1 -0
- package/dist/client/assets/{index-2k9h0zMt.js → index-BMuvJCSx.js} +11 -11
- package/dist/client/index.html +2 -2
- package/dist/server/application/conversation-service.d.ts +7 -2
- package/dist/server/application/conversation-service.js +45 -5
- package/dist/server/application/project-service.d.ts +53 -5
- package/dist/server/application/project-service.js +167 -36
- package/dist/server/application/run-service.d.ts +3 -1
- package/dist/server/application/run-service.js +22 -5
- package/dist/server/application/session-orchestrator-service.d.ts +65 -0
- package/dist/server/application/session-orchestrator-service.js +175 -22
- package/dist/server/application/session-reminder-service.js +1 -2
- package/dist/server/command-handler.d.ts +3 -1
- package/dist/server/command-handler.js +21 -1
- package/dist/server/index.js +2 -2
- package/dist/server/runtime.js +2 -2
- package/dist/server/store.d.ts +17 -4
- package/dist/server/store.js +93 -28
- package/dist/server/types.d.ts +24 -1
- package/dist/server/upload.d.ts +2 -0
- package/dist/server/upload.js +19 -2
- package/dist/shared/project-overview.d.ts +21 -0
- package/dist/shared/project-overview.js +36 -7
- package/dist/shared/project-presentation.d.ts +3 -0
- package/dist/shared/project-presentation.js +13 -5
- package/dist/shared/session-reporting.d.ts +32 -0
- package/dist/shared/session-reporting.js +29 -0
- package/dist/shared/team-context.d.ts +1 -1
- package/package.json +5 -1
- package/dist/client/assets/index-CwfAN5Vw.css +0 -1
|
@@ -8,6 +8,16 @@
|
|
|
8
8
|
//
|
|
9
9
|
// 规则在 `docs/DESIGN-PRINCIPLES.md` 第二节「汇报线逐级转述:Boss 只有一个联络线」。
|
|
10
10
|
import { isChildSession } from "./child-session-lock.js";
|
|
11
|
+
/**
|
|
12
|
+
* 从会话载荷上读出例外的 audience。
|
|
13
|
+
*
|
|
14
|
+
* 客户端的会话类型是自己的一份镜像(`src/client/types.ts`),不在本次改动的文件清单里,
|
|
15
|
+
* 所以这个字段不通过类型系统读,而是只从这里这一个门口读一次。
|
|
16
|
+
*/
|
|
17
|
+
export function escalationAudienceOf(conversation) {
|
|
18
|
+
const value = conversation?.escalationAudience;
|
|
19
|
+
return value === "supervisor" || value === "boss" ? value : undefined;
|
|
20
|
+
}
|
|
11
21
|
export function deriveReportingState(params) {
|
|
12
22
|
const { conversation, parent, directChildren, isTopLevelUnread = false } = params;
|
|
13
23
|
// 1. 如果自己有未决的升级例外:等上面拍板
|
|
@@ -41,6 +51,25 @@ export function deriveReportingState(params) {
|
|
|
41
51
|
}
|
|
42
52
|
return null;
|
|
43
53
|
}
|
|
54
|
+
/**
|
|
55
|
+
* 给用户看的那一套推导:内部升级不算「等上面拍板」。
|
|
56
|
+
*
|
|
57
|
+
* `deriveReportingState` 说的是这个会话在汇报线上的位置,那条内部规则(自己有待拍板的例外)
|
|
58
|
+
* 对团队内部是对的 —— 但它被原样搬到用户面前时读作「用户被叫来开会了」,而用户根本不在那场
|
|
59
|
+
* 会里。所以用户这一侧单独走这一个出口:`audience` 是 `supervisor` 的未决例外不参与
|
|
60
|
+
* `awaiting_decision` 的判定,于是这个会话显示它真正在做的事(运行中就显示运行中),
|
|
61
|
+
* 而不是被一条内部升级盖住。
|
|
62
|
+
*
|
|
63
|
+
* 判据本体在 `deriveReportingState` 里没有动:服务端的推导(项目面板的会话行)走的是那一条,
|
|
64
|
+
* 客户端走的是这一条,两边各有一套派生,谁也不用为了另一边的语义让步。
|
|
65
|
+
*/
|
|
66
|
+
export function deriveUserReportingState(params) {
|
|
67
|
+
const { conversation, ...rest } = params;
|
|
68
|
+
if (escalationAudienceOf(conversation) !== "supervisor") {
|
|
69
|
+
return deriveReportingState({ conversation, ...rest });
|
|
70
|
+
}
|
|
71
|
+
return deriveReportingState({ ...rest, conversation: { ...conversation, hasOpenEscalation: false } });
|
|
72
|
+
}
|
|
44
73
|
export const SESSION_STATE_WORD = {
|
|
45
74
|
waiting: "等待 LLM",
|
|
46
75
|
running: "进行中",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export type TeamContextKind = "finding" | "decision" | "pitfall" | "hypothesis";
|
|
2
2
|
export type CoordinationHint = {
|
|
3
|
-
action: "dispatch" | "message" | "request_review" | "resolve_escalation" | "
|
|
3
|
+
action: "dispatch" | "message" | "request_review" | "resolve_escalation" | "deliver";
|
|
4
4
|
taskId?: string;
|
|
5
5
|
escalationId?: string;
|
|
6
6
|
targetConversationId?: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@evandu/super-pi",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.220",
|
|
4
4
|
"description": "Web control plane and companion for Pi",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -101,6 +101,7 @@
|
|
|
101
101
|
"scripts/session-orchestrator-auth.test.mjs",
|
|
102
102
|
"scripts/session-result-callback.test.mjs",
|
|
103
103
|
"scripts/session-result-callback-e2e.test.mjs",
|
|
104
|
+
"scripts/child-completion-wakes-parent.test.mjs",
|
|
104
105
|
"scripts/session-orchestrator-tools.test.mjs",
|
|
105
106
|
"scripts/project-service.test.mjs",
|
|
106
107
|
"scripts/project-ceremony-free.test.mjs",
|
|
@@ -111,6 +112,7 @@
|
|
|
111
112
|
"scripts/project-report-decision-layout.test.mjs",
|
|
112
113
|
"scripts/project-api-scope.test.mjs",
|
|
113
114
|
"scripts/project-report-chain.test.mjs",
|
|
115
|
+
"scripts/supervisor-message-resolves-escalation.test.mjs",
|
|
114
116
|
"scripts/project-tool-surface-parity.test.mjs",
|
|
115
117
|
"scripts/tool-surface-parity-all.test.mjs",
|
|
116
118
|
"scripts/session-tree-collapse.test.mjs",
|
|
@@ -280,6 +282,7 @@
|
|
|
280
282
|
"scripts/session-reporting.test.mjs",
|
|
281
283
|
"scripts/project-panel-reporting.test.mjs",
|
|
282
284
|
"scripts/session-row-escalation.test.mjs",
|
|
285
|
+
"scripts/team-level-notification.test.mjs",
|
|
283
286
|
"scripts/mutation-lock-coverage.test.mjs",
|
|
284
287
|
"scripts/real-context-window.test.mjs",
|
|
285
288
|
"scripts/session-reminder-pmo-rights.test.mjs"
|
|
@@ -335,6 +338,7 @@
|
|
|
335
338
|
"scripts/builtin-agents-project-browser.test.mjs",
|
|
336
339
|
"scripts/tool-runtime-browser.test.mjs",
|
|
337
340
|
"scripts/session-context-menu-browser.test.mjs",
|
|
341
|
+
"scripts/session-reminder-browser.test.mjs",
|
|
338
342
|
"scripts/archive-cascade-browser.test.mjs",
|
|
339
343
|
"scripts/archive-restore-race-browser.test.mjs",
|
|
340
344
|
"scripts/tool-call-blocks-browser.test.mjs",
|