@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.
@@ -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 GroupSummary = {
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 = GroupSummary & {
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 {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@evandu/super-pi",
3
- "version": "0.1.243",
3
+ "version": "0.1.244",
4
4
  "description": "Web control plane and companion for Pi",
5
5
  "license": "MIT",
6
6
  "type": "module",