@slopus/happy-agent-client 0.0.75 → 0.0.77

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.
@@ -0,0 +1,304 @@
1
+ /** Tasks: bot-like conversations for one piece of work, with an owner and per-person lists. */
2
+ import { type Static } from "@sinclair/typebox";
3
+ /** A human display name: nonblank, bounded, and free of ASCII control characters. */
4
+ export declare const taskNameSchema: import("@sinclair/typebox").TString;
5
+ export type TaskName = Static<typeof taskNameSchema>;
6
+ /** The immutable local folder name chosen when a task is created. */
7
+ export declare const taskFolderNameSchema: import("@sinclair/typebox").TString;
8
+ export type TaskFolderName = Static<typeof taskFolderNameSchema>;
9
+ /** A task and its one independently versioned agent. Tasks have no avatar and no order. */
10
+ export declare const taskSchema: import("@sinclair/typebox").TObject<{
11
+ /** The task's one agent, embedded in full for list rendering. */
12
+ agent: import("@sinclair/typebox").TRecursive<import("@sinclair/typebox").TObject<{
13
+ archivedAt: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TInteger, import("@sinclair/typebox").TNull]>;
14
+ canSendMessages: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
15
+ createdAt: import("@sinclair/typebox").TInteger;
16
+ id: import("@sinclair/typebox").TString;
17
+ lastCursor: import("@sinclair/typebox").TString;
18
+ managedByAnotherAgent: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
19
+ orderKey: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>;
20
+ parentAgentId: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>;
21
+ pendingQuestionId: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>;
22
+ processes: import("@sinclair/typebox").TObject<{
23
+ running: import("@sinclair/typebox").TInteger;
24
+ }>;
25
+ status: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"idle">, import("@sinclair/typebox").TLiteral<"thinking">, import("@sinclair/typebox").TLiteral<"working">, import("@sinclair/typebox").TLiteral<"generating_tools">, import("@sinclair/typebox").TLiteral<"running_tools">]>;
26
+ subagents: import("@sinclair/typebox").TObject<{
27
+ running: import("@sinclair/typebox").TInteger;
28
+ total: import("@sinclair/typebox").TInteger;
29
+ }>;
30
+ subtask: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
31
+ subtasks: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TArray<import("@sinclair/typebox").TThis>>;
32
+ subtaskOrderKey: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>>;
33
+ title: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>;
34
+ titleStatus: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"idle">, import("@sinclair/typebox").TLiteral<"ready">]>;
35
+ unread: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TObject<{
36
+ reason: import("@sinclair/typebox").TString;
37
+ since: import("@sinclair/typebox").TInteger;
38
+ }>, import("@sinclair/typebox").TNull]>;
39
+ updatedAt: import("@sinclair/typebox").TInteger;
40
+ userVisible: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
41
+ version: import("@sinclair/typebox").TString;
42
+ workspaceId: import("@sinclair/typebox").TString;
43
+ }>>;
44
+ archivedAt: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TInteger, import("@sinclair/typebox").TNull]>;
45
+ /**
46
+ * Whether the caller may archive and unarchive the task. Caller-relative: absent from
47
+ * `task.created` events and from daemons older than task archival routes.
48
+ */
49
+ canArchive: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
50
+ /** Mirrors the dedicated workspace's compute. */
51
+ compute: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TObject<{
52
+ path: import("@sinclair/typebox").TString;
53
+ type: import("@sinclair/typebox").TLiteral<"host">;
54
+ }>, import("@sinclair/typebox").TObject<{
55
+ image: import("@sinclair/typebox").TString;
56
+ path: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
57
+ runnerId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
58
+ type: import("@sinclair/typebox").TLiteral<"docker">;
59
+ }>, import("@sinclair/typebox").TObject<{
60
+ path: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>;
61
+ runnerId: import("@sinclair/typebox").TString;
62
+ type: import("@sinclair/typebox").TLiteral<"runner">;
63
+ }>]>;
64
+ createdAt: import("@sinclair/typebox").TInteger;
65
+ /** The agent whose `create_task` call created the task. */
66
+ creatorAgentId: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>;
67
+ /** Immutable local snake_case folder name. */
68
+ folderName: import("@sinclair/typebox").TString;
69
+ id: import("@sinclair/typebox").TString;
70
+ name: import("@sinclair/typebox").TString;
71
+ /** The person the task belongs to; `null` in standalone mode or when nobody was identified. */
72
+ ownerUserId: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>;
73
+ status: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"active">, import("@sinclair/typebox").TLiteral<"archived">]>;
74
+ updatedAt: import("@sinclair/typebox").TInteger;
75
+ version: import("@sinclair/typebox").TString;
76
+ /** The task's dedicated workspace, distinct from the task and agent IDs. */
77
+ workspaceId: import("@sinclair/typebox").TString;
78
+ }>;
79
+ export type Task = Static<typeof taskSchema>;
80
+ /** One person's place in one task: joining puts the task in their own ordered list. */
81
+ export declare const taskMembershipSchema: import("@sinclair/typebox").TObject<{
82
+ joinedAt: import("@sinclair/typebox").TInteger;
83
+ /** An opaque sort key within this member's own list. */
84
+ orderKey: import("@sinclair/typebox").TString;
85
+ taskId: import("@sinclair/typebox").TString;
86
+ /** The member, or `null` for the one person of a standalone installation. */
87
+ userId: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>;
88
+ }>;
89
+ export type TaskMembership = Static<typeof taskMembershipSchema>;
90
+ /** `GET /v0/tasks` query: every task, or only the caller's joined tasks in the caller's order. */
91
+ export declare const taskListScopeSchema: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"all">, import("@sinclair/typebox").TLiteral<"joined">]>;
92
+ export type TaskListScope = Static<typeof taskListScopeSchema>;
93
+ /** `GET /v0/tasks` — `memberships` is always every membership of the caller, in their order. */
94
+ export declare const taskListResponseSchema: import("@sinclair/typebox").TObject<{
95
+ memberships: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TObject<{
96
+ joinedAt: import("@sinclair/typebox").TInteger;
97
+ /** An opaque sort key within this member's own list. */
98
+ orderKey: import("@sinclair/typebox").TString;
99
+ taskId: import("@sinclair/typebox").TString;
100
+ /** The member, or `null` for the one person of a standalone installation. */
101
+ userId: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>;
102
+ }>>;
103
+ tasks: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TObject<{
104
+ /** The task's one agent, embedded in full for list rendering. */
105
+ agent: import("@sinclair/typebox").TRecursive<import("@sinclair/typebox").TObject<{
106
+ archivedAt: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TInteger, import("@sinclair/typebox").TNull]>;
107
+ canSendMessages: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
108
+ createdAt: import("@sinclair/typebox").TInteger;
109
+ id: import("@sinclair/typebox").TString;
110
+ lastCursor: import("@sinclair/typebox").TString;
111
+ managedByAnotherAgent: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
112
+ orderKey: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>;
113
+ parentAgentId: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>;
114
+ pendingQuestionId: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>;
115
+ processes: import("@sinclair/typebox").TObject<{
116
+ running: import("@sinclair/typebox").TInteger;
117
+ }>;
118
+ status: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"idle">, import("@sinclair/typebox").TLiteral<"thinking">, import("@sinclair/typebox").TLiteral<"working">, import("@sinclair/typebox").TLiteral<"generating_tools">, import("@sinclair/typebox").TLiteral<"running_tools">]>;
119
+ subagents: import("@sinclair/typebox").TObject<{
120
+ running: import("@sinclair/typebox").TInteger;
121
+ total: import("@sinclair/typebox").TInteger;
122
+ }>;
123
+ subtask: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
124
+ subtasks: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TArray<import("@sinclair/typebox").TThis>>;
125
+ subtaskOrderKey: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>>;
126
+ title: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>;
127
+ titleStatus: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"idle">, import("@sinclair/typebox").TLiteral<"ready">]>;
128
+ unread: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TObject<{
129
+ reason: import("@sinclair/typebox").TString;
130
+ since: import("@sinclair/typebox").TInteger;
131
+ }>, import("@sinclair/typebox").TNull]>;
132
+ updatedAt: import("@sinclair/typebox").TInteger;
133
+ userVisible: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
134
+ version: import("@sinclair/typebox").TString;
135
+ workspaceId: import("@sinclair/typebox").TString;
136
+ }>>;
137
+ archivedAt: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TInteger, import("@sinclair/typebox").TNull]>;
138
+ /**
139
+ * Whether the caller may archive and unarchive the task. Caller-relative: absent from
140
+ * `task.created` events and from daemons older than task archival routes.
141
+ */
142
+ canArchive: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
143
+ /** Mirrors the dedicated workspace's compute. */
144
+ compute: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TObject<{
145
+ path: import("@sinclair/typebox").TString;
146
+ type: import("@sinclair/typebox").TLiteral<"host">;
147
+ }>, import("@sinclair/typebox").TObject<{
148
+ image: import("@sinclair/typebox").TString;
149
+ path: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
150
+ runnerId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
151
+ type: import("@sinclair/typebox").TLiteral<"docker">;
152
+ }>, import("@sinclair/typebox").TObject<{
153
+ path: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>;
154
+ runnerId: import("@sinclair/typebox").TString;
155
+ type: import("@sinclair/typebox").TLiteral<"runner">;
156
+ }>]>;
157
+ createdAt: import("@sinclair/typebox").TInteger;
158
+ /** The agent whose `create_task` call created the task. */
159
+ creatorAgentId: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>;
160
+ /** Immutable local snake_case folder name. */
161
+ folderName: import("@sinclair/typebox").TString;
162
+ id: import("@sinclair/typebox").TString;
163
+ name: import("@sinclair/typebox").TString;
164
+ /** The person the task belongs to; `null` in standalone mode or when nobody was identified. */
165
+ ownerUserId: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>;
166
+ status: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"active">, import("@sinclair/typebox").TLiteral<"archived">]>;
167
+ updatedAt: import("@sinclair/typebox").TInteger;
168
+ version: import("@sinclair/typebox").TString;
169
+ /** The task's dedicated workspace, distinct from the task and agent IDs. */
170
+ workspaceId: import("@sinclair/typebox").TString;
171
+ }>>;
172
+ }>;
173
+ export type TaskListResponse = Static<typeof taskListResponseSchema>;
174
+ /** Every single-task route answers with the task and the caller's membership in it. */
175
+ export declare const taskResponseSchema: import("@sinclair/typebox").TObject<{
176
+ membership: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TObject<{
177
+ joinedAt: import("@sinclair/typebox").TInteger;
178
+ /** An opaque sort key within this member's own list. */
179
+ orderKey: import("@sinclair/typebox").TString;
180
+ taskId: import("@sinclair/typebox").TString;
181
+ /** The member, or `null` for the one person of a standalone installation. */
182
+ userId: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>;
183
+ }>, import("@sinclair/typebox").TNull]>;
184
+ task: import("@sinclair/typebox").TObject<{
185
+ /** The task's one agent, embedded in full for list rendering. */
186
+ agent: import("@sinclair/typebox").TRecursive<import("@sinclair/typebox").TObject<{
187
+ archivedAt: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TInteger, import("@sinclair/typebox").TNull]>;
188
+ canSendMessages: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
189
+ createdAt: import("@sinclair/typebox").TInteger;
190
+ id: import("@sinclair/typebox").TString;
191
+ lastCursor: import("@sinclair/typebox").TString;
192
+ managedByAnotherAgent: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
193
+ orderKey: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>;
194
+ parentAgentId: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>;
195
+ pendingQuestionId: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>;
196
+ processes: import("@sinclair/typebox").TObject<{
197
+ running: import("@sinclair/typebox").TInteger;
198
+ }>;
199
+ status: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"idle">, import("@sinclair/typebox").TLiteral<"thinking">, import("@sinclair/typebox").TLiteral<"working">, import("@sinclair/typebox").TLiteral<"generating_tools">, import("@sinclair/typebox").TLiteral<"running_tools">]>;
200
+ subagents: import("@sinclair/typebox").TObject<{
201
+ running: import("@sinclair/typebox").TInteger;
202
+ total: import("@sinclair/typebox").TInteger;
203
+ }>;
204
+ subtask: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
205
+ subtasks: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TArray<import("@sinclair/typebox").TThis>>;
206
+ subtaskOrderKey: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>>;
207
+ title: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>;
208
+ titleStatus: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"idle">, import("@sinclair/typebox").TLiteral<"ready">]>;
209
+ unread: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TObject<{
210
+ reason: import("@sinclair/typebox").TString;
211
+ since: import("@sinclair/typebox").TInteger;
212
+ }>, import("@sinclair/typebox").TNull]>;
213
+ updatedAt: import("@sinclair/typebox").TInteger;
214
+ userVisible: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
215
+ version: import("@sinclair/typebox").TString;
216
+ workspaceId: import("@sinclair/typebox").TString;
217
+ }>>;
218
+ archivedAt: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TInteger, import("@sinclair/typebox").TNull]>;
219
+ /**
220
+ * Whether the caller may archive and unarchive the task. Caller-relative: absent from
221
+ * `task.created` events and from daemons older than task archival routes.
222
+ */
223
+ canArchive: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
224
+ /** Mirrors the dedicated workspace's compute. */
225
+ compute: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TObject<{
226
+ path: import("@sinclair/typebox").TString;
227
+ type: import("@sinclair/typebox").TLiteral<"host">;
228
+ }>, import("@sinclair/typebox").TObject<{
229
+ image: import("@sinclair/typebox").TString;
230
+ path: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
231
+ runnerId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
232
+ type: import("@sinclair/typebox").TLiteral<"docker">;
233
+ }>, import("@sinclair/typebox").TObject<{
234
+ path: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>;
235
+ runnerId: import("@sinclair/typebox").TString;
236
+ type: import("@sinclair/typebox").TLiteral<"runner">;
237
+ }>]>;
238
+ createdAt: import("@sinclair/typebox").TInteger;
239
+ /** The agent whose `create_task` call created the task. */
240
+ creatorAgentId: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>;
241
+ /** Immutable local snake_case folder name. */
242
+ folderName: import("@sinclair/typebox").TString;
243
+ id: import("@sinclair/typebox").TString;
244
+ name: import("@sinclair/typebox").TString;
245
+ /** The person the task belongs to; `null` in standalone mode or when nobody was identified. */
246
+ ownerUserId: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>;
247
+ status: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"active">, import("@sinclair/typebox").TLiteral<"archived">]>;
248
+ updatedAt: import("@sinclair/typebox").TInteger;
249
+ version: import("@sinclair/typebox").TString;
250
+ /** The task's dedicated workspace, distinct from the task and agent IDs. */
251
+ workspaceId: import("@sinclair/typebox").TString;
252
+ }>;
253
+ }>;
254
+ export type TaskResponse = Static<typeof taskResponseSchema>;
255
+ /** `POST /v0/tasks` — a person creates a task, which they own and join. */
256
+ export declare const createTaskRequestSchema: import("@sinclair/typebox").TObject<{
257
+ /** The workspace and agent IDs name the new task's own, not existing entities. */
258
+ agentId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
259
+ /** Omitted, the daemon derives a unique folder name from `name`, or from `task` without one. */
260
+ folderName: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
261
+ /** The retry key: repeating it returns the existing task unchanged. */
262
+ id: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
263
+ mutationId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
264
+ /** Omitted, the task is `New Task` until it names itself from its first message. */
265
+ name: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
266
+ workspaceId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
267
+ }>;
268
+ export type CreateTaskRequest = Static<typeof createTaskRequestSchema>;
269
+ /** `PATCH /v0/tasks/:taskId` — requires `If-Match`; the folder name never changes. */
270
+ export declare const renameTaskRequestSchema: import("@sinclair/typebox").TObject<{
271
+ /** Explicitly forbidden even though request objects tolerate future additive fields. */
272
+ folderName: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNever>;
273
+ mutationId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
274
+ name: import("@sinclair/typebox").TString;
275
+ }>;
276
+ export type RenameTaskRequest = Static<typeof renameTaskRequestSchema>;
277
+ /** `POST /v0/tasks/:taskId/join` */
278
+ export declare const joinTaskRequestSchema: import("@sinclair/typebox").TObject<{
279
+ mutationId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
280
+ }>;
281
+ export type JoinTaskRequest = Static<typeof joinTaskRequestSchema>;
282
+ /** `POST /v0/tasks/:taskId/leave` */
283
+ export declare const leaveTaskRequestSchema: import("@sinclair/typebox").TObject<{
284
+ mutationId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
285
+ }>;
286
+ export type LeaveTaskRequest = Static<typeof leaveTaskRequestSchema>;
287
+ /** `POST /v0/tasks/:taskId/reorder` — moves the task within the caller's own list only. */
288
+ export declare const reorderTaskRequestSchema: import("@sinclair/typebox").TObject<{
289
+ /** The joined task to place this one after, or `null` to move it first. */
290
+ afterId: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>;
291
+ mutationId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
292
+ }>;
293
+ export type ReorderTaskRequest = Static<typeof reorderTaskRequestSchema>;
294
+ /** `POST /v0/tasks/:taskId/archive` — requires `If-Match`; the owner or team owner only. */
295
+ export declare const archiveTaskRequestSchema: import("@sinclair/typebox").TObject<{
296
+ mutationId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
297
+ }>;
298
+ export type ArchiveTaskRequest = Static<typeof archiveTaskRequestSchema>;
299
+ /** `POST /v0/tasks/:taskId/unarchive` — requires `If-Match`; the owner or team owner only. */
300
+ export declare const unarchiveTaskRequestSchema: import("@sinclair/typebox").TObject<{
301
+ mutationId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
302
+ }>;
303
+ export type UnarchiveTaskRequest = Static<typeof unarchiveTaskRequestSchema>;
304
+ //# sourceMappingURL=tasks.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tasks.d.ts","sourceRoot":"","sources":["../../sources/protocol/tasks.ts"],"names":[],"mappings":"AAAA,+FAA+F;AAE/F,OAAO,EAAE,KAAK,MAAM,EAAQ,MAAM,mBAAmB,CAAC;AAatD,qFAAqF;AACrF,eAAO,MAAM,cAAc,qCAIzB,CAAC;AACH,MAAM,MAAM,QAAQ,GAAG,MAAM,CAAC,OAAO,cAAc,CAAC,CAAC;AAErD,qEAAqE;AACrE,eAAO,MAAM,oBAAoB,qCAI/B,CAAC;AACH,MAAM,MAAM,cAAc,GAAG,MAAM,CAAC,OAAO,oBAAoB,CAAC,CAAC;AAEjE,2FAA2F;AAC3F,eAAO,MAAM,UAAU;IACnB,iEAAiE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAGjE;;;OAGG;;IAEH,iDAAiD;;;;;;;;;;;;;;;IAGjD,2DAA2D;;IAE3D,8CAA8C;;;;IAI9C,+FAA+F;;;;;IAK/F,4EAA4E;;EAE9E,CAAC;AACH,M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sFAAsF;AACtF,eAAO,MAAM,uBAAuB;IAChC,wFAAwF;;;;EAI1F,CAAC;AACH,MAAM,MAAM,iBAAiB,GAAG,MAAM,CAAC,OAAO,uBAAuB,CAAC,CAAC;AAEvE,oCAAoC;AACpC,eAAO,MAAM,qBAAqB;;EAEhC,CAAC;AACH,MAAM,MAAM,eAAe,GAAG,MAAM,CAAC,OAAO,qBAAqB,CAAC,CAAC;AAEnE,qCAAqC;AACrC,eAAO,MAAM,sBAAsB;;EAEjC,CAAC;AACH,MAAM,MAAM,gBAAgB,GAAG,MAAM,CAAC,OAAO,sBAAsB,CAAC,CAAC;AAErE,2FAA2F;AAC3F,eAAO,MAAM,wBAAwB;IACjC,2EAA2E;;;EAG7E,CAAC;AACH,MAAM,MAAM,kBAAkB,GAAG,MAAM,CAAC,OAAO,wBAAwB,CAAC,CAAC;AAEzE,4FAA4F;AAC5F,eAAO,MAAM,wBAAwB;;EAEnC,CAAC;AACH,MAAM,MAAM,kBAAkB,GAAG,MAAM,CAAC,OAAO,wBAAwB,CAAC,CAAC;AAEzE,8FAA8F;AAC9F,eAAO,MAAM,0BAA0B;;EAErC,CAAC;AACH,MAAM,MAAM,oBAAoB,GAAG,MAAM,CAAC,OAAO,0BAA0B,CAAC,CAAC"}
@@ -0,0 +1,108 @@
1
+ /** Tasks: bot-like conversations for one piece of work, with an owner and per-person lists. */
2
+ import { Type } from "@sinclair/typebox";
3
+ import { agentSchema } from "./agents.js";
4
+ import { computeSchema, cuid2Schema, mutationIdSchema, Nullable, resourceVersionSchema, timestampSchema, } from "./common.js";
5
+ import { userIdSchema } from "./userId.js";
6
+ /** A human display name: nonblank, bounded, and free of ASCII control characters. */
7
+ export const taskNameSchema = Type.String({
8
+ maxLength: 256,
9
+ minLength: 1,
10
+ pattern: "^(?=.*\\S)[^\\x00-\\x1f\\x7f]+$",
11
+ });
12
+ /** The immutable local folder name chosen when a task is created. */
13
+ export const taskFolderNameSchema = Type.String({
14
+ maxLength: 64,
15
+ minLength: 1,
16
+ pattern: "^[a-z][a-z0-9_]{0,63}$",
17
+ });
18
+ /** A task and its one independently versioned agent. Tasks have no avatar and no order. */
19
+ export const taskSchema = Type.Object({
20
+ /** The task's one agent, embedded in full for list rendering. */
21
+ agent: agentSchema,
22
+ archivedAt: Nullable(timestampSchema),
23
+ /**
24
+ * Whether the caller may archive and unarchive the task. Caller-relative: absent from
25
+ * `task.created` events and from daemons older than task archival routes.
26
+ */
27
+ canArchive: Type.Optional(Type.Boolean()),
28
+ /** Mirrors the dedicated workspace's compute. */
29
+ compute: computeSchema,
30
+ createdAt: timestampSchema,
31
+ /** The agent whose `create_task` call created the task. */
32
+ creatorAgentId: Nullable(cuid2Schema),
33
+ /** Immutable local snake_case folder name. */
34
+ folderName: taskFolderNameSchema,
35
+ id: cuid2Schema,
36
+ name: taskNameSchema,
37
+ /** The person the task belongs to; `null` in standalone mode or when nobody was identified. */
38
+ ownerUserId: Nullable(userIdSchema),
39
+ status: Type.Union([Type.Literal("active"), Type.Literal("archived")]),
40
+ updatedAt: timestampSchema,
41
+ version: resourceVersionSchema,
42
+ /** The task's dedicated workspace, distinct from the task and agent IDs. */
43
+ workspaceId: cuid2Schema,
44
+ });
45
+ /** One person's place in one task: joining puts the task in their own ordered list. */
46
+ export const taskMembershipSchema = Type.Object({
47
+ joinedAt: timestampSchema,
48
+ /** An opaque sort key within this member's own list. */
49
+ orderKey: Type.String(),
50
+ taskId: cuid2Schema,
51
+ /** The member, or `null` for the one person of a standalone installation. */
52
+ userId: Nullable(userIdSchema),
53
+ });
54
+ /** `GET /v0/tasks` query: every task, or only the caller's joined tasks in the caller's order. */
55
+ export const taskListScopeSchema = Type.Union([Type.Literal("all"), Type.Literal("joined")]);
56
+ /** `GET /v0/tasks` — `memberships` is always every membership of the caller, in their order. */
57
+ export const taskListResponseSchema = Type.Object({
58
+ memberships: Type.Array(taskMembershipSchema),
59
+ tasks: Type.Array(taskSchema),
60
+ });
61
+ /** Every single-task route answers with the task and the caller's membership in it. */
62
+ export const taskResponseSchema = Type.Object({
63
+ membership: Nullable(taskMembershipSchema),
64
+ task: taskSchema,
65
+ });
66
+ /** `POST /v0/tasks` — a person creates a task, which they own and join. */
67
+ export const createTaskRequestSchema = Type.Object({
68
+ /** The workspace and agent IDs name the new task's own, not existing entities. */
69
+ agentId: Type.Optional(cuid2Schema),
70
+ /** Omitted, the daemon derives a unique folder name from `name`, or from `task` without one. */
71
+ folderName: Type.Optional(taskFolderNameSchema),
72
+ /** The retry key: repeating it returns the existing task unchanged. */
73
+ id: Type.Optional(cuid2Schema),
74
+ mutationId: Type.Optional(mutationIdSchema),
75
+ /** Omitted, the task is `New Task` until it names itself from its first message. */
76
+ name: Type.Optional(taskNameSchema),
77
+ workspaceId: Type.Optional(cuid2Schema),
78
+ });
79
+ /** `PATCH /v0/tasks/:taskId` — requires `If-Match`; the folder name never changes. */
80
+ export const renameTaskRequestSchema = Type.Object({
81
+ /** Explicitly forbidden even though request objects tolerate future additive fields. */
82
+ folderName: Type.Optional(Type.Never()),
83
+ mutationId: Type.Optional(mutationIdSchema),
84
+ name: taskNameSchema,
85
+ });
86
+ /** `POST /v0/tasks/:taskId/join` */
87
+ export const joinTaskRequestSchema = Type.Object({
88
+ mutationId: Type.Optional(mutationIdSchema),
89
+ });
90
+ /** `POST /v0/tasks/:taskId/leave` */
91
+ export const leaveTaskRequestSchema = Type.Object({
92
+ mutationId: Type.Optional(mutationIdSchema),
93
+ });
94
+ /** `POST /v0/tasks/:taskId/reorder` — moves the task within the caller's own list only. */
95
+ export const reorderTaskRequestSchema = Type.Object({
96
+ /** The joined task to place this one after, or `null` to move it first. */
97
+ afterId: Nullable(cuid2Schema),
98
+ mutationId: Type.Optional(mutationIdSchema),
99
+ });
100
+ /** `POST /v0/tasks/:taskId/archive` — requires `If-Match`; the owner or team owner only. */
101
+ export const archiveTaskRequestSchema = Type.Object({
102
+ mutationId: Type.Optional(mutationIdSchema),
103
+ });
104
+ /** `POST /v0/tasks/:taskId/unarchive` — requires `If-Match`; the owner or team owner only. */
105
+ export const unarchiveTaskRequestSchema = Type.Object({
106
+ mutationId: Type.Optional(mutationIdSchema),
107
+ });
108
+ //# sourceMappingURL=tasks.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tasks.js","sourceRoot":"","sources":["../../sources/protocol/tasks.ts"],"names":[],"mappings":"AAAA,+FAA+F;AAE/F,OAAO,EAAe,IAAI,EAAE,MAAM,mBAAmB,CAAC;AAEtD,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAC1C,OAAO,EACH,aAAa,EACb,WAAW,EACX,gBAAgB,EAChB,QAAQ,EACR,qBAAqB,EACrB,eAAe,GAClB,MAAM,aAAa,CAAC;AACrB,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAE3C,qFAAqF;AACrF,MAAM,CAAC,MAAM,cAAc,GAAG,IAAI,CAAC,MAAM,CAAC;IACtC,SAAS,EAAE,GAAG;IACd,SAAS,EAAE,CAAC;IACZ,OAAO,EAAE,iCAAiC;CAC7C,CAAC,CAAC;AAGH,qEAAqE;AACrE,MAAM,CAAC,MAAM,oBAAoB,GAAG,IAAI,CAAC,MAAM,CAAC;IAC5C,SAAS,EAAE,EAAE;IACb,SAAS,EAAE,CAAC;IACZ,OAAO,EAAE,wBAAwB;CACpC,CAAC,CAAC;AAGH,2FAA2F;AAC3F,MAAM,CAAC,MAAM,UAAU,GAAG,IAAI,CAAC,MAAM,CAAC;IAClC,iEAAiE;IACjE,KAAK,EAAE,WAAW;IAClB,UAAU,EAAE,QAAQ,CAAC,eAAe,CAAC;IACrC;;;OAGG;IACH,UAAU,EAAE,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,OAAO,EAAE,CAAC;IACzC,iDAAiD;IACjD,OAAO,EAAE,aAAa;IACtB,SAAS,EAAE,eAAe;IAC1B,2DAA2D;IAC3D,cAAc,EAAE,QAAQ,CAAC,WAAW,CAAC;IACrC,8CAA8C;IAC9C,UAAU,EAAE,oBAA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CAAC;AAGH,4FAA4F;AAC5F,MAAM,CAAC,MAAM,wBAAwB,GAAG,IAAI,CAAC,MAAM,CAAC;IAChD,UAAU,EAAE,IAAI,CAAC,QAAQ,CAAC,gBAAgB,CAAC;CAC9C,CAAC,CAAC;AAGH,8FAA8F;AAC9F,MAAM,CAAC,MAAM,0BAA0B,GAAG,IAAI,CAAC,MAAM,CAAC;IAClD,UAAU,EAAE,IAAI,CAAC,QAAQ,CAAC,gBAAgB,CAAC;CAC9C,CAAC,CAAC"}
@@ -84,15 +84,15 @@ export declare const workspaceSchema: import("@sinclair/typebox").TObject<{
84
84
  status: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"initializing">, import("@sinclair/typebox").TLiteral<"ready">, import("@sinclair/typebox").TLiteral<"failed">]>;
85
85
  }>;
86
86
  /** How the checkout was made. */
87
- kind: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"root">, import("@sinclair/typebox").TLiteral<"worktree">, import("@sinclair/typebox").TLiteral<"copy">, import("@sinclair/typebox").TLiteral<"bot">]>;
87
+ kind: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"root">, import("@sinclair/typebox").TLiteral<"worktree">, import("@sinclair/typebox").TLiteral<"copy">, import("@sinclair/typebox").TLiteral<"bot">, import("@sinclair/typebox").TLiteral<"task">]>;
88
88
  /** The display name, which is also the branch name behind the checkout. */
89
89
  name: import("@sinclair/typebox").TString;
90
90
  nameSource: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"user">, import("@sinclair/typebox").TLiteral<"generated">]>;
91
91
  /** Orders this workspace among the siblings sharing its parent. */
92
92
  orderKey: import("@sinclair/typebox").TString;
93
- /** `null` on a root workspace and on a bot workspace. */
93
+ /** `null` on a root workspace and on a bot or task workspace. */
94
94
  parentId: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>;
95
- /** The root of this workspace's tree; `null` on a bot workspace. */
95
+ /** The root of this workspace's tree; `null` on a bot or task workspace. */
96
96
  projectId: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>;
97
97
  /** Service shutdown barrier during archival; absent on older daemons. */
98
98
  serviceCleanup: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TObject<{
@@ -105,6 +105,8 @@ export declare const workspaceSchema: import("@sinclair/typebox").TObject<{
105
105
  }>, import("@sinclair/typebox").TNull]>>;
106
106
  /** `"archiving"` is the window where the decision is durable but cleanup runs. */
107
107
  status: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"active">, import("@sinclair/typebox").TLiteral<"archiving">, import("@sinclair/typebox").TLiteral<"archived">]>;
108
+ /** The owning task, present only on a task's dedicated workspace. */
109
+ taskId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
108
110
  /** The resident workspace-bound subtask; absent or null on other workspaces. */
109
111
  subtaskAgentId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>>;
110
112
  updatedAt: import("@sinclair/typebox").TInteger;
@@ -188,15 +190,15 @@ export declare const workspaceListResponseSchema: import("@sinclair/typebox").TO
188
190
  status: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"initializing">, import("@sinclair/typebox").TLiteral<"ready">, import("@sinclair/typebox").TLiteral<"failed">]>;
189
191
  }>;
190
192
  /** How the checkout was made. */
191
- kind: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"root">, import("@sinclair/typebox").TLiteral<"worktree">, import("@sinclair/typebox").TLiteral<"copy">, import("@sinclair/typebox").TLiteral<"bot">]>;
193
+ kind: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"root">, import("@sinclair/typebox").TLiteral<"worktree">, import("@sinclair/typebox").TLiteral<"copy">, import("@sinclair/typebox").TLiteral<"bot">, import("@sinclair/typebox").TLiteral<"task">]>;
192
194
  /** The display name, which is also the branch name behind the checkout. */
193
195
  name: import("@sinclair/typebox").TString;
194
196
  nameSource: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"user">, import("@sinclair/typebox").TLiteral<"generated">]>;
195
197
  /** Orders this workspace among the siblings sharing its parent. */
196
198
  orderKey: import("@sinclair/typebox").TString;
197
- /** `null` on a root workspace and on a bot workspace. */
199
+ /** `null` on a root workspace and on a bot or task workspace. */
198
200
  parentId: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>;
199
- /** The root of this workspace's tree; `null` on a bot workspace. */
201
+ /** The root of this workspace's tree; `null` on a bot or task workspace. */
200
202
  projectId: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>;
201
203
  /** Service shutdown barrier during archival; absent on older daemons. */
202
204
  serviceCleanup: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TObject<{
@@ -209,6 +211,8 @@ export declare const workspaceListResponseSchema: import("@sinclair/typebox").TO
209
211
  }>, import("@sinclair/typebox").TNull]>>;
210
212
  /** `"archiving"` is the window where the decision is durable but cleanup runs. */
211
213
  status: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"active">, import("@sinclair/typebox").TLiteral<"archiving">, import("@sinclair/typebox").TLiteral<"archived">]>;
214
+ /** The owning task, present only on a task's dedicated workspace. */
215
+ taskId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
212
216
  /** The resident workspace-bound subtask; absent or null on other workspaces. */
213
217
  subtaskAgentId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>>;
214
218
  updatedAt: import("@sinclair/typebox").TInteger;
@@ -293,15 +297,15 @@ export declare const workspaceResponseSchema: import("@sinclair/typebox").TObjec
293
297
  status: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"initializing">, import("@sinclair/typebox").TLiteral<"ready">, import("@sinclair/typebox").TLiteral<"failed">]>;
294
298
  }>;
295
299
  /** How the checkout was made. */
296
- kind: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"root">, import("@sinclair/typebox").TLiteral<"worktree">, import("@sinclair/typebox").TLiteral<"copy">, import("@sinclair/typebox").TLiteral<"bot">]>;
300
+ kind: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"root">, import("@sinclair/typebox").TLiteral<"worktree">, import("@sinclair/typebox").TLiteral<"copy">, import("@sinclair/typebox").TLiteral<"bot">, import("@sinclair/typebox").TLiteral<"task">]>;
297
301
  /** The display name, which is also the branch name behind the checkout. */
298
302
  name: import("@sinclair/typebox").TString;
299
303
  nameSource: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"user">, import("@sinclair/typebox").TLiteral<"generated">]>;
300
304
  /** Orders this workspace among the siblings sharing its parent. */
301
305
  orderKey: import("@sinclair/typebox").TString;
302
- /** `null` on a root workspace and on a bot workspace. */
306
+ /** `null` on a root workspace and on a bot or task workspace. */
303
307
  parentId: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>;
304
- /** The root of this workspace's tree; `null` on a bot workspace. */
308
+ /** The root of this workspace's tree; `null` on a bot or task workspace. */
305
309
  projectId: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>;
306
310
  /** Service shutdown barrier during archival; absent on older daemons. */
307
311
  serviceCleanup: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TObject<{
@@ -314,6 +318,8 @@ export declare const workspaceResponseSchema: import("@sinclair/typebox").TObjec
314
318
  }>, import("@sinclair/typebox").TNull]>>;
315
319
  /** `"archiving"` is the window where the decision is durable but cleanup runs. */
316
320
  status: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"active">, import("@sinclair/typebox").TLiteral<"archiving">, import("@sinclair/typebox").TLiteral<"archived">]>;
321
+ /** The owning task, present only on a task's dedicated workspace. */
322
+ taskId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
317
323
  /** The resident workspace-bound subtask; absent or null on other workspaces. */
318
324
  subtaskAgentId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>>;
319
325
  updatedAt: import("@sinclair/typebox").TInteger;
@@ -1 +1 @@
1
- {"version":3,"file":"workspaces.d.ts","sourceRoot":"","sources":["../../sources/protocol/workspaces.ts"],"names":[],"mappings":"AAAA,2FAA2F;AAE3F,OAAO,EAAE,KAAK,MAAM,EAAQ,MAAM,mBAAmB,CAAC;AAetD,2CAA2C;AAC3C,eAAO,MAAM,mBAAmB;IAC5B,uDAAuD;;IAEvD,gCAAgC;;EAElC,CAAC;AACH,MAAM,MAAM,aAAa,GAAG,MAAM,CAAC,OAAO,mBAAmB,CAAC,CAAC;AAE/D,gFAAgF;AAChF,eAAO,MAAM,eAAe;IACxB,kEAAkE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAGlE,wEAAwE;;QAZxE,uDAAuD;;QAEvD,gCAAgC;;;IAYhC,kFAAkF;;;;;;;;;;;;;;;;IAIlF,uEAAuE;;;;;;;;;;;;;;;;IAKvE,iCAAiC;;IAOjC,2EAA2E;;;IAG3E,mEAAmE;;IAEnE,yDAAyD;;IAEzD,oEAAoE;;IAEpE,yEAAyE;;;;;;;;;IAEzE,kFAAkF;;IAMlF,gFAAgF;;;;EAIlF,CAAC;AACH,MAAM,MAAM,SAAS,GAAG,MAAM,CAAC,OAAO,eAAe,CAAC,CAAC;AAEvD,mFAAmF;AACnF,eAAO,MAAM,2BAA2B;;QA9CpC,kEAAkE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;QAGlE,wEAAwE;;YAZxE,uDAAuD;;YAEvD,gCAAgC;;;QAY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M,CAAC,OAAO,4BAA4B,CAAC,CAAC;AAEjF,iDAAiD;AACjD,eAAO,MAAM,6BAA6B;;EAExC,CAAC;AACH,MAAM,MAAM,uBAAuB,GAAG,MAAM,CAAC,OAAO,6BAA6B,CAAC,CAAC;AAEnF,iDAAiD;AACjD,eAAO,MAAM,6BAA6B;IACtC,uEAAuE;;;EAGzE,CAAC;AACH,MAAM,MAAM,uBAAuB,GAAG,MAAM,CAAC,OAAO,6BAA6B,CAAC,CAAC"}
@@ -32,15 +32,16 @@ export const workspaceSchema = Type.Object({
32
32
  Type.Literal("worktree"),
33
33
  Type.Literal("copy"),
34
34
  Type.Literal("bot"),
35
+ Type.Literal("task"),
35
36
  ]),
36
37
  /** The display name, which is also the branch name behind the checkout. */
37
38
  name: Type.String(),
38
39
  nameSource: Type.Union([Type.Literal("user"), Type.Literal("generated")]),
39
40
  /** Orders this workspace among the siblings sharing its parent. */
40
41
  orderKey: Type.String(),
41
- /** `null` on a root workspace and on a bot workspace. */
42
+ /** `null` on a root workspace and on a bot or task workspace. */
42
43
  parentId: Nullable(cuid2Schema),
43
- /** The root of this workspace's tree; `null` on a bot workspace. */
44
+ /** The root of this workspace's tree; `null` on a bot or task workspace. */
44
45
  projectId: Nullable(cuid2Schema),
45
46
  /** Service shutdown barrier during archival; absent on older daemons. */
46
47
  serviceCleanup: Type.Optional(Nullable(workspaceServiceCleanupSchema)),
@@ -50,6 +51,8 @@ export const workspaceSchema = Type.Object({
50
51
  Type.Literal("archiving"),
51
52
  Type.Literal("archived"),
52
53
  ]),
54
+ /** The owning task, present only on a task's dedicated workspace. */
55
+ taskId: Type.Optional(cuid2Schema),
53
56
  /** The resident workspace-bound subtask; absent or null on other workspaces. */
54
57
  subtaskAgentId: Type.Optional(Nullable(cuid2Schema)),
55
58
  updatedAt: timestampSchema,
@@ -1 +1 @@
1
- {"version":3,"file":"workspaces.js","sourceRoot":"","sources":["../../sources/protocol/workspaces.ts"],"names":[],"mappings":"AAAA,2FAA2F;AAE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B,GAAG,IAAI,CAAC,MAAM,CAAC;IACrD,UAAU,EAAE,IAAI,CAAC,QAAQ,CAAC,gBAAgB,CAAC;CAC9C,CAAC,CAAC;AAGH,iDAAiD;AACjD,MAAM,CAAC,MAAM,6BAA6B,GAAG,IAAI,CAAC,MAAM,CAAC;IACrD,uEAAuE;IACvE,OAAO,EAAE,QAAQ,CAAC,WAAW,CAAC;IAC9B,UAAU,EAAE,IAAI,CAAC,QAAQ,CAAC,gBAAgB,CAAC;CAC9C,CAAC,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@slopus/happy-agent-client",
3
- "version": "0.0.75",
3
+ "version": "0.0.77",
4
4
  "description": "Typed client for the Happy agent HTTP API.",
5
5
  "license": "MIT",
6
6
  "repository": {