@evandu/super-pi 0.1.243 → 0.1.244
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/dist/client/.super-pi-client-sources.json +9 -8
- package/dist/client/assets/{CodeMirrorEditor-B7eDr7dY.js → CodeMirrorEditor-B1T8wU12.js} +1 -1
- package/dist/client/assets/{GitDiffEditor-pYaHOM0Q.js → GitDiffEditor-LCXbSvsh.js} +1 -1
- package/dist/client/assets/{index-D0Po7xmY.js → index-DDrbcKk9.js} +18 -18
- package/dist/client/assets/index-DltiyYgr.css +1 -0
- package/dist/client/index.html +2 -2
- package/dist/server/application/group-chat-service.d.ts +14 -2
- package/dist/server/application/group-chat-service.js +183 -26
- package/dist/server/application/group-execution.d.ts +15 -0
- package/dist/server/application/group-execution.js +77 -0
- package/dist/server/http-server.js +19 -4
- package/dist/server/index.js +1 -1
- package/dist/server/runtime.d.ts +10 -0
- package/dist/server/runtime.js +25 -0
- package/dist/server/types.d.ts +4 -1
- package/dist/shared/group-chat.d.ts +47 -2
- package/package.json +1 -1
- package/dist/client/assets/index-CfAcuYba.css +0 -1
|
@@ -14,6 +14,36 @@ export type GroupMember = {
|
|
|
14
14
|
description: string;
|
|
15
15
|
};
|
|
16
16
|
export type GroupStatus = "queued" | "running" | "completed" | "failed" | "cancelled" | "interrupted";
|
|
17
|
+
export type GroupExecutionActivity = {
|
|
18
|
+
kind: "thinking";
|
|
19
|
+
} | {
|
|
20
|
+
kind: "tool";
|
|
21
|
+
name: string;
|
|
22
|
+
detail?: string;
|
|
23
|
+
};
|
|
24
|
+
type GroupExecutionStepBase = {
|
|
25
|
+
id: string;
|
|
26
|
+
startedAt: string;
|
|
27
|
+
status: "running" | "completed" | "failed" | "interrupted";
|
|
28
|
+
};
|
|
29
|
+
export type GroupExecutionStep = GroupExecutionStepBase & ({
|
|
30
|
+
kind: "thinking";
|
|
31
|
+
text: string;
|
|
32
|
+
} | {
|
|
33
|
+
kind: "tool";
|
|
34
|
+
name: string;
|
|
35
|
+
detail?: string;
|
|
36
|
+
lastUpdateAt?: string;
|
|
37
|
+
durationMs?: number;
|
|
38
|
+
});
|
|
39
|
+
export type GroupExecutionTrace = {
|
|
40
|
+
steps: GroupExecutionStep[];
|
|
41
|
+
truncated?: true;
|
|
42
|
+
};
|
|
43
|
+
export type GroupExecutionSnapshot = GroupExecutionTrace & {
|
|
44
|
+
status: GroupStatus;
|
|
45
|
+
revision: string;
|
|
46
|
+
};
|
|
17
47
|
type GroupPost = {
|
|
18
48
|
id: string;
|
|
19
49
|
content: string;
|
|
@@ -43,19 +73,33 @@ export type GroupReply = GroupPost & {
|
|
|
43
73
|
routeReason?: string;
|
|
44
74
|
background?: boolean;
|
|
45
75
|
settledAt?: string;
|
|
76
|
+
executionActivity?: GroupExecutionActivity;
|
|
46
77
|
handoff?: {
|
|
47
78
|
memberId: string;
|
|
48
79
|
assignment: string;
|
|
49
80
|
};
|
|
50
81
|
};
|
|
51
82
|
export type GroupMessage = GroupUserPost | GroupReply;
|
|
52
|
-
export type
|
|
83
|
+
export type GroupActivity = {
|
|
84
|
+
status: "idle" | "running" | "awaiting_background" | "completed" | "failed";
|
|
85
|
+
revision: number;
|
|
86
|
+
};
|
|
87
|
+
export type GroupActivityUpdate = {
|
|
88
|
+
id: string;
|
|
89
|
+
workspaceId: string;
|
|
90
|
+
activity: GroupActivity;
|
|
91
|
+
};
|
|
92
|
+
type GroupIdentity = {
|
|
53
93
|
id: string;
|
|
54
94
|
workspaceId: string;
|
|
55
95
|
title: string;
|
|
56
96
|
updatedAt: string;
|
|
97
|
+
archivedAt?: string;
|
|
98
|
+
};
|
|
99
|
+
export type GroupSummary = GroupIdentity & {
|
|
100
|
+
activity: GroupActivity;
|
|
57
101
|
};
|
|
58
|
-
export type GroupRoom =
|
|
102
|
+
export type GroupRoom = GroupIdentity & {
|
|
59
103
|
members: GroupMember[];
|
|
60
104
|
moderator: GroupModerator;
|
|
61
105
|
revision: number;
|
|
@@ -63,5 +107,6 @@ export type GroupRoom = GroupSummary & {
|
|
|
63
107
|
};
|
|
64
108
|
export type GroupSnapshot = Omit<GroupRoom, "revision"> & {
|
|
65
109
|
revision: string;
|
|
110
|
+
activity: GroupActivity;
|
|
66
111
|
};
|
|
67
112
|
export {};
|