@jmanuelcorral/openteam 0.19.0 → 0.20.0

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 (71) hide show
  1. package/README.es.md +10 -2
  2. package/README.md +9 -2
  3. package/dist/certificates/graph-release-certificate.json +2 -2
  4. package/dist/certificates/graph-shadow-certificate.json +2 -2
  5. package/dist/cli/consoleServe.d.ts +16 -0
  6. package/dist/cli/consoleServe.d.ts.map +1 -1
  7. package/dist/cli/graphOperator.d.ts +10 -1
  8. package/dist/cli/graphOperator.d.ts.map +1 -1
  9. package/dist/cli/lifecycleHistoryProvider.d.ts +21 -0
  10. package/dist/cli/lifecycleHistoryProvider.d.ts.map +1 -0
  11. package/dist/cli.d.ts +3 -1
  12. package/dist/cli.d.ts.map +1 -1
  13. package/dist/cli.js +6163 -1632
  14. package/dist/config/errors.d.ts.map +1 -1
  15. package/dist/config/schema.d.ts +31 -1
  16. package/dist/config/schema.d.ts.map +1 -1
  17. package/dist/console/assets.d.ts +22 -1
  18. package/dist/console/assets.d.ts.map +1 -1
  19. package/dist/console/render.d.ts +12 -0
  20. package/dist/console/render.d.ts.map +1 -1
  21. package/dist/index.d.ts.map +1 -1
  22. package/dist/index.js +2849 -261
  23. package/dist/lifecycle/contracts.d.ts +618 -0
  24. package/dist/lifecycle/contracts.d.ts.map +1 -0
  25. package/dist/lifecycle/historyReader.d.ts +11 -0
  26. package/dist/lifecycle/historyReader.d.ts.map +1 -0
  27. package/dist/lifecycle/historySourceError.d.ts +7 -0
  28. package/dist/lifecycle/historySourceError.d.ts.map +1 -0
  29. package/dist/lifecycle/project.d.ts +3 -0
  30. package/dist/lifecycle/project.d.ts.map +1 -0
  31. package/dist/lifecycle/root.d.ts +3 -0
  32. package/dist/lifecycle/root.d.ts.map +1 -0
  33. package/dist/lifecycle/runtimeRecorder.d.ts +6 -0
  34. package/dist/lifecycle/runtimeRecorder.d.ts.map +1 -0
  35. package/dist/lifecycle/schema.d.ts +487 -0
  36. package/dist/lifecycle/schema.d.ts.map +1 -0
  37. package/dist/messages/index.d.ts +1 -0
  38. package/dist/messages/index.d.ts.map +1 -1
  39. package/dist/messages/lifecycle.d.ts +95 -0
  40. package/dist/messages/lifecycle.d.ts.map +1 -0
  41. package/dist/messages/lifecycleRuntime.d.ts +4 -0
  42. package/dist/messages/lifecycleRuntime.d.ts.map +1 -0
  43. package/dist/messages/lifecycleStorage.d.ts +4 -0
  44. package/dist/messages/lifecycleStorage.d.ts.map +1 -0
  45. package/dist/orchestrator/coordinator.d.ts +11 -1
  46. package/dist/orchestrator/coordinator.d.ts.map +1 -1
  47. package/dist/orchestrator/graphIngress.d.ts +5 -0
  48. package/dist/orchestrator/graphIngress.d.ts.map +1 -1
  49. package/dist/orchestrator/graphRuntime.d.ts +13 -1
  50. package/dist/orchestrator/graphRuntime.d.ts.map +1 -1
  51. package/dist/orchestrator/subsessions.d.ts +3 -0
  52. package/dist/orchestrator/subsessions.d.ts.map +1 -1
  53. package/dist/plugin/orchestrateTool.d.ts +3 -0
  54. package/dist/plugin/orchestrateTool.d.ts.map +1 -1
  55. package/dist/storage/lifecycle/codec.d.ts +19 -0
  56. package/dist/storage/lifecycle/codec.d.ts.map +1 -0
  57. package/dist/storage/lifecycle/fsLifecycleJournal.d.ts +3 -0
  58. package/dist/storage/lifecycle/fsLifecycleJournal.d.ts.map +1 -0
  59. package/dist/storage/lifecycle/fsLifecycleSupport.d.ts +17 -0
  60. package/dist/storage/lifecycle/fsLifecycleSupport.d.ts.map +1 -0
  61. package/dist/storage/lifecycle/fsLifecycleWriterLivenessProbe.d.ts +3 -0
  62. package/dist/storage/lifecycle/fsLifecycleWriterLivenessProbe.d.ts.map +1 -0
  63. package/dist/web/graphRoute.d.ts +39 -1
  64. package/dist/web/graphRoute.d.ts.map +1 -1
  65. package/dist/web/server.d.ts +19 -0
  66. package/dist/web/server.d.ts.map +1 -1
  67. package/dist/web/start.d.ts +11 -0
  68. package/dist/web/start.d.ts.map +1 -1
  69. package/dist/web/watch.d.ts +17 -2
  70. package/dist/web/watch.d.ts.map +1 -1
  71. package/package.json +1 -1
@@ -0,0 +1,7 @@
1
+ import type { LifecycleHistoryErrorCode } from "./contracts";
2
+ /** Internal read-boundary failure; never carries a filesystem error or cause. */
3
+ export declare class LifecycleHistorySourceError extends Error {
4
+ readonly code: Extract<LifecycleHistoryErrorCode, "journal-corrupt" | "history-unavailable">;
5
+ constructor(code: Extract<LifecycleHistoryErrorCode, "journal-corrupt" | "history-unavailable">);
6
+ }
7
+ //# sourceMappingURL=historySourceError.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"historySourceError.d.ts","sourceRoot":"","sources":["../../src/lifecycle/historySourceError.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,aAAa,CAAC;AAE7D,iFAAiF;AACjF,qBAAa,2BAA4B,SAAQ,KAAK;IAElD,QAAQ,CAAC,IAAI,EAAE,OAAO,CACpB,yBAAyB,EACzB,iBAAiB,GAAG,qBAAqB,CAC1C;IAJH,YACW,IAAI,EAAE,OAAO,CACpB,yBAAyB,EACzB,iBAAiB,GAAG,qBAAqB,CAC1C,EAIF;CACF"}
@@ -0,0 +1,3 @@
1
+ import type { ProjectLifecyclePrefix } from "./contracts";
2
+ export declare const projectLifecyclePrefix: ProjectLifecyclePrefix;
3
+ //# sourceMappingURL=project.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"project.d.ts","sourceRoot":"","sources":["../../src/lifecycle/project.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAQV,sBAAsB,EACvB,MAAM,aAAa,CAAC;AA0ErB,eAAO,MAAM,sBAAsB,EAAE,sBAkOpC,CAAC"}
@@ -0,0 +1,3 @@
1
+ import type { ResolveLifecycleRoot } from "./contracts";
2
+ export declare const resolveLifecycleRoot: ResolveLifecycleRoot;
3
+ //# sourceMappingURL=root.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"root.d.ts","sourceRoot":"","sources":["../../src/lifecycle/root.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAEV,oBAAoB,EACrB,MAAM,aAAa,CAAC;AAErB,eAAO,MAAM,oBAAoB,EAAE,oBAmBlC,CAAC"}
@@ -0,0 +1,6 @@
1
+ import type { CreateNodeLifecycleHeartbeatScheduler, CreateRuntimeLifecycleRecorder } from "./contracts";
2
+ export declare const DEFAULT_LIFECYCLE_HEARTBEAT_INTERVAL_MS = 5000;
3
+ export declare const DEFAULT_LIFECYCLE_WRITER_LEASE_MS = 30000;
4
+ export declare const createNodeLifecycleHeartbeatScheduler: CreateNodeLifecycleHeartbeatScheduler;
5
+ export declare const createRuntimeLifecycleRecorder: CreateRuntimeLifecycleRecorder;
6
+ //# sourceMappingURL=runtimeRecorder.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"runtimeRecorder.d.ts","sourceRoot":"","sources":["../../src/lifecycle/runtimeRecorder.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,qCAAqC,EACrC,8BAA8B,EAe/B,MAAM,aAAa,CAAC;AAGrB,eAAO,MAAM,uCAAuC,OAAQ,CAAC;AAC7D,eAAO,MAAM,iCAAiC,QAAS,CAAC;AAExD,eAAO,MAAM,qCAAqC,EAAE,qCAkChD,CAAC;AAySL,eAAO,MAAM,8BAA8B,EAAE,8BAuL5C,CAAC"}
@@ -0,0 +1,487 @@
1
+ import { z } from "zod";
2
+ import type { LifecycleAppendEventV1, LifecycleEventV1, LifecycleRunMetadataV1, LifecycleRunStartInput, LifecycleWriterLeaseInput, LifecycleWriterLeaseV1 } from "./contracts";
3
+ export declare const LifecycleRunMetadataSchema: z.ZodObject<{
4
+ runID: z.ZodString;
5
+ source: z.ZodEnum<{
6
+ cli: "cli";
7
+ plugin: "plugin";
8
+ }>;
9
+ executionAuthority: z.ZodEnum<{
10
+ coordinator: "coordinator";
11
+ graph: "graph";
12
+ }>;
13
+ root: z.ZodObject<{
14
+ operationID: z.ZodString;
15
+ taskID: z.ZodString;
16
+ kind: z.ZodEnum<{
17
+ coordinator: "coordinator";
18
+ "graph-node": "graph-node";
19
+ }>;
20
+ roleID: z.ZodString;
21
+ agentID: z.ZodOptional<z.ZodString>;
22
+ sessionID: z.ZodOptional<z.ZodString>;
23
+ }, z.core.$strict>;
24
+ version: z.ZodLiteral<1>;
25
+ createdAt: z.ZodNumber;
26
+ }, z.core.$strict>;
27
+ export declare const LifecycleAppendEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
28
+ type: z.ZodLiteral<"operation.queued">;
29
+ operationID: z.ZodString;
30
+ taskID: z.ZodString;
31
+ kind: z.ZodEnum<{
32
+ "graph-node": "graph-node";
33
+ role: "role";
34
+ }>;
35
+ roleID: z.ZodString;
36
+ agentID: z.ZodOptional<z.ZodString>;
37
+ parentOperationID: z.ZodString;
38
+ dependsOnOperationIDs: z.ZodReadonly<z.ZodArray<z.ZodString>>;
39
+ }, z.core.$strict>, z.ZodObject<{
40
+ operationID: z.ZodString;
41
+ taskID: z.ZodString;
42
+ attemptID: z.ZodString;
43
+ attempt: z.ZodNumber;
44
+ modelIndex: z.ZodNumber;
45
+ retryIndex: z.ZodNumber;
46
+ type: z.ZodLiteral<"attempt.model-selected">;
47
+ decisionID: z.ZodString;
48
+ model: z.ZodObject<{
49
+ providerID: z.ZodString;
50
+ modelID: z.ZodString;
51
+ }, z.core.$strict>;
52
+ routeKind: z.ZodEnum<{
53
+ frontier: "frontier";
54
+ local: "local";
55
+ }>;
56
+ selectionCause: z.ZodEnum<{
57
+ "fallback-incomplete": "fallback-incomplete";
58
+ "fallback-transport": "fallback-transport";
59
+ initial: "initial";
60
+ "retry-incomplete": "retry-incomplete";
61
+ "retry-transport": "retry-transport";
62
+ }>;
63
+ runtimeID: z.ZodOptional<z.ZodString>;
64
+ }, z.core.$strict>, z.ZodObject<{
65
+ operationID: z.ZodString;
66
+ taskID: z.ZodString;
67
+ attemptID: z.ZodString;
68
+ attempt: z.ZodNumber;
69
+ modelIndex: z.ZodNumber;
70
+ retryIndex: z.ZodNumber;
71
+ type: z.ZodLiteral<"attempt.queued">;
72
+ runtimeID: z.ZodOptional<z.ZodString>;
73
+ }, z.core.$strict>, z.ZodObject<{
74
+ operationID: z.ZodString;
75
+ taskID: z.ZodString;
76
+ attemptID: z.ZodString;
77
+ attempt: z.ZodNumber;
78
+ modelIndex: z.ZodNumber;
79
+ retryIndex: z.ZodNumber;
80
+ type: z.ZodLiteral<"attempt.started">;
81
+ }, z.core.$strict>, z.ZodObject<{
82
+ operationID: z.ZodString;
83
+ taskID: z.ZodString;
84
+ attemptID: z.ZodString;
85
+ attempt: z.ZodNumber;
86
+ modelIndex: z.ZodNumber;
87
+ retryIndex: z.ZodNumber;
88
+ type: z.ZodLiteral<"session.created">;
89
+ sessionID: z.ZodString;
90
+ parentSessionID: z.ZodOptional<z.ZodString>;
91
+ }, z.core.$strict>, z.ZodObject<{
92
+ operationID: z.ZodString;
93
+ taskID: z.ZodString;
94
+ attemptID: z.ZodString;
95
+ attempt: z.ZodNumber;
96
+ modelIndex: z.ZodNumber;
97
+ retryIndex: z.ZodNumber;
98
+ type: z.ZodLiteral<"attempt.terminal">;
99
+ outcome: z.ZodEnum<{
100
+ cancelled: "cancelled";
101
+ failed: "failed";
102
+ interrupted: "interrupted";
103
+ succeeded: "succeeded";
104
+ unknown: "unknown";
105
+ }>;
106
+ continuation: z.ZodEnum<{
107
+ "fallback-next-model": "fallback-next-model";
108
+ none: "none";
109
+ "retry-same-effect": "retry-same-effect";
110
+ "retry-same-model": "retry-same-model";
111
+ }>;
112
+ sessionID: z.ZodOptional<z.ZodString>;
113
+ failure: z.ZodOptional<z.ZodObject<{
114
+ class: z.ZodEnum<{
115
+ "budget-exhausted": "budget-exhausted";
116
+ cancelled: "cancelled";
117
+ "create-no-id": "create-no-id";
118
+ "create-rejected": "create-rejected";
119
+ "dependency-failed": "dependency-failed";
120
+ interrupted: "interrupted";
121
+ "prompt-auth": "prompt-auth";
122
+ "prompt-connection": "prompt-connection";
123
+ "prompt-content-filter": "prompt-content-filter";
124
+ "prompt-context-length": "prompt-context-length";
125
+ "prompt-rate-limited": "prompt-rate-limited";
126
+ "prompt-rejected": "prompt-rejected";
127
+ "prompt-server": "prompt-server";
128
+ "prompt-stop-unconfirmed": "prompt-stop-unconfirmed";
129
+ "prompt-timeout": "prompt-timeout";
130
+ "prompt-validation": "prompt-validation";
131
+ "report-incomplete": "report-incomplete";
132
+ "report-not-durable": "report-not-durable";
133
+ "routing-blocked": "routing-blocked";
134
+ unknown: "unknown";
135
+ }>;
136
+ statusCode: z.ZodOptional<z.ZodNumber>;
137
+ retryable: z.ZodOptional<z.ZodBoolean>;
138
+ }, z.core.$strict>>;
139
+ }, z.core.$strict>, z.ZodObject<{
140
+ type: z.ZodLiteral<"operation.terminal">;
141
+ operationID: z.ZodString;
142
+ taskID: z.ZodString;
143
+ outcome: z.ZodEnum<{
144
+ blocked: "blocked";
145
+ cancelled: "cancelled";
146
+ failed: "failed";
147
+ interrupted: "interrupted";
148
+ succeeded: "succeeded";
149
+ unknown: "unknown";
150
+ }>;
151
+ attemptCount: z.ZodNumber;
152
+ finalSessionID: z.ZodOptional<z.ZodString>;
153
+ failure: z.ZodOptional<z.ZodObject<{
154
+ class: z.ZodEnum<{
155
+ "budget-exhausted": "budget-exhausted";
156
+ cancelled: "cancelled";
157
+ "create-no-id": "create-no-id";
158
+ "create-rejected": "create-rejected";
159
+ "dependency-failed": "dependency-failed";
160
+ interrupted: "interrupted";
161
+ "prompt-auth": "prompt-auth";
162
+ "prompt-connection": "prompt-connection";
163
+ "prompt-content-filter": "prompt-content-filter";
164
+ "prompt-context-length": "prompt-context-length";
165
+ "prompt-rate-limited": "prompt-rate-limited";
166
+ "prompt-rejected": "prompt-rejected";
167
+ "prompt-server": "prompt-server";
168
+ "prompt-stop-unconfirmed": "prompt-stop-unconfirmed";
169
+ "prompt-timeout": "prompt-timeout";
170
+ "prompt-validation": "prompt-validation";
171
+ "report-incomplete": "report-incomplete";
172
+ "report-not-durable": "report-not-durable";
173
+ "routing-blocked": "routing-blocked";
174
+ unknown: "unknown";
175
+ }>;
176
+ statusCode: z.ZodOptional<z.ZodNumber>;
177
+ retryable: z.ZodOptional<z.ZodBoolean>;
178
+ }, z.core.$strict>>;
179
+ }, z.core.$strict>, z.ZodObject<{
180
+ type: z.ZodLiteral<"run.terminal">;
181
+ outcome: z.ZodEnum<{
182
+ cancelled: "cancelled";
183
+ failed: "failed";
184
+ interrupted: "interrupted";
185
+ succeeded: "succeeded";
186
+ unknown: "unknown";
187
+ }>;
188
+ operationCount: z.ZodNumber;
189
+ failure: z.ZodOptional<z.ZodObject<{
190
+ class: z.ZodEnum<{
191
+ "budget-exhausted": "budget-exhausted";
192
+ cancelled: "cancelled";
193
+ "create-no-id": "create-no-id";
194
+ "create-rejected": "create-rejected";
195
+ "dependency-failed": "dependency-failed";
196
+ interrupted: "interrupted";
197
+ "prompt-auth": "prompt-auth";
198
+ "prompt-connection": "prompt-connection";
199
+ "prompt-content-filter": "prompt-content-filter";
200
+ "prompt-context-length": "prompt-context-length";
201
+ "prompt-rate-limited": "prompt-rate-limited";
202
+ "prompt-rejected": "prompt-rejected";
203
+ "prompt-server": "prompt-server";
204
+ "prompt-stop-unconfirmed": "prompt-stop-unconfirmed";
205
+ "prompt-timeout": "prompt-timeout";
206
+ "prompt-validation": "prompt-validation";
207
+ "report-incomplete": "report-incomplete";
208
+ "report-not-durable": "report-not-durable";
209
+ "routing-blocked": "routing-blocked";
210
+ unknown: "unknown";
211
+ }>;
212
+ statusCode: z.ZodOptional<z.ZodNumber>;
213
+ retryable: z.ZodOptional<z.ZodBoolean>;
214
+ }, z.core.$strict>>;
215
+ }, z.core.$strict>], "type">;
216
+ export declare const LifecycleEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
217
+ v: z.ZodLiteral<1>;
218
+ seq: z.ZodNumber;
219
+ runID: z.ZodString;
220
+ at: z.ZodNumber;
221
+ type: z.ZodLiteral<"run.started">;
222
+ source: z.ZodEnum<{
223
+ cli: "cli";
224
+ plugin: "plugin";
225
+ }>;
226
+ executionAuthority: z.ZodEnum<{
227
+ coordinator: "coordinator";
228
+ graph: "graph";
229
+ }>;
230
+ root: z.ZodObject<{
231
+ operationID: z.ZodString;
232
+ taskID: z.ZodString;
233
+ kind: z.ZodEnum<{
234
+ coordinator: "coordinator";
235
+ "graph-node": "graph-node";
236
+ }>;
237
+ roleID: z.ZodString;
238
+ agentID: z.ZodOptional<z.ZodString>;
239
+ sessionID: z.ZodOptional<z.ZodString>;
240
+ }, z.core.$strict>;
241
+ }, z.core.$strict>, z.ZodObject<{
242
+ v: z.ZodLiteral<1>;
243
+ seq: z.ZodNumber;
244
+ runID: z.ZodString;
245
+ at: z.ZodNumber;
246
+ type: z.ZodLiteral<"operation.queued">;
247
+ operationID: z.ZodString;
248
+ taskID: z.ZodString;
249
+ kind: z.ZodEnum<{
250
+ "graph-node": "graph-node";
251
+ role: "role";
252
+ }>;
253
+ roleID: z.ZodString;
254
+ agentID: z.ZodOptional<z.ZodString>;
255
+ parentOperationID: z.ZodString;
256
+ dependsOnOperationIDs: z.ZodReadonly<z.ZodArray<z.ZodString>>;
257
+ }, z.core.$strict>, z.ZodObject<{
258
+ operationID: z.ZodString;
259
+ taskID: z.ZodString;
260
+ attemptID: z.ZodString;
261
+ attempt: z.ZodNumber;
262
+ modelIndex: z.ZodNumber;
263
+ retryIndex: z.ZodNumber;
264
+ v: z.ZodLiteral<1>;
265
+ seq: z.ZodNumber;
266
+ runID: z.ZodString;
267
+ at: z.ZodNumber;
268
+ type: z.ZodLiteral<"attempt.model-selected">;
269
+ decisionID: z.ZodString;
270
+ model: z.ZodObject<{
271
+ providerID: z.ZodString;
272
+ modelID: z.ZodString;
273
+ }, z.core.$strict>;
274
+ routeKind: z.ZodEnum<{
275
+ frontier: "frontier";
276
+ local: "local";
277
+ }>;
278
+ selectionCause: z.ZodEnum<{
279
+ "fallback-incomplete": "fallback-incomplete";
280
+ "fallback-transport": "fallback-transport";
281
+ initial: "initial";
282
+ "retry-incomplete": "retry-incomplete";
283
+ "retry-transport": "retry-transport";
284
+ }>;
285
+ runtimeID: z.ZodOptional<z.ZodString>;
286
+ }, z.core.$strict>, z.ZodObject<{
287
+ operationID: z.ZodString;
288
+ taskID: z.ZodString;
289
+ attemptID: z.ZodString;
290
+ attempt: z.ZodNumber;
291
+ modelIndex: z.ZodNumber;
292
+ retryIndex: z.ZodNumber;
293
+ v: z.ZodLiteral<1>;
294
+ seq: z.ZodNumber;
295
+ runID: z.ZodString;
296
+ at: z.ZodNumber;
297
+ type: z.ZodLiteral<"attempt.queued">;
298
+ runtimeID: z.ZodOptional<z.ZodString>;
299
+ }, z.core.$strict>, z.ZodObject<{
300
+ operationID: z.ZodString;
301
+ taskID: z.ZodString;
302
+ attemptID: z.ZodString;
303
+ attempt: z.ZodNumber;
304
+ modelIndex: z.ZodNumber;
305
+ retryIndex: z.ZodNumber;
306
+ v: z.ZodLiteral<1>;
307
+ seq: z.ZodNumber;
308
+ runID: z.ZodString;
309
+ at: z.ZodNumber;
310
+ type: z.ZodLiteral<"attempt.started">;
311
+ }, z.core.$strict>, z.ZodObject<{
312
+ operationID: z.ZodString;
313
+ taskID: z.ZodString;
314
+ attemptID: z.ZodString;
315
+ attempt: z.ZodNumber;
316
+ modelIndex: z.ZodNumber;
317
+ retryIndex: z.ZodNumber;
318
+ v: z.ZodLiteral<1>;
319
+ seq: z.ZodNumber;
320
+ runID: z.ZodString;
321
+ at: z.ZodNumber;
322
+ type: z.ZodLiteral<"session.created">;
323
+ sessionID: z.ZodString;
324
+ parentSessionID: z.ZodOptional<z.ZodString>;
325
+ }, z.core.$strict>, z.ZodObject<{
326
+ operationID: z.ZodString;
327
+ taskID: z.ZodString;
328
+ attemptID: z.ZodString;
329
+ attempt: z.ZodNumber;
330
+ modelIndex: z.ZodNumber;
331
+ retryIndex: z.ZodNumber;
332
+ v: z.ZodLiteral<1>;
333
+ seq: z.ZodNumber;
334
+ runID: z.ZodString;
335
+ at: z.ZodNumber;
336
+ type: z.ZodLiteral<"attempt.terminal">;
337
+ outcome: z.ZodEnum<{
338
+ cancelled: "cancelled";
339
+ failed: "failed";
340
+ interrupted: "interrupted";
341
+ succeeded: "succeeded";
342
+ unknown: "unknown";
343
+ }>;
344
+ continuation: z.ZodEnum<{
345
+ "fallback-next-model": "fallback-next-model";
346
+ none: "none";
347
+ "retry-same-effect": "retry-same-effect";
348
+ "retry-same-model": "retry-same-model";
349
+ }>;
350
+ sessionID: z.ZodOptional<z.ZodString>;
351
+ failure: z.ZodOptional<z.ZodObject<{
352
+ class: z.ZodEnum<{
353
+ "budget-exhausted": "budget-exhausted";
354
+ cancelled: "cancelled";
355
+ "create-no-id": "create-no-id";
356
+ "create-rejected": "create-rejected";
357
+ "dependency-failed": "dependency-failed";
358
+ interrupted: "interrupted";
359
+ "prompt-auth": "prompt-auth";
360
+ "prompt-connection": "prompt-connection";
361
+ "prompt-content-filter": "prompt-content-filter";
362
+ "prompt-context-length": "prompt-context-length";
363
+ "prompt-rate-limited": "prompt-rate-limited";
364
+ "prompt-rejected": "prompt-rejected";
365
+ "prompt-server": "prompt-server";
366
+ "prompt-stop-unconfirmed": "prompt-stop-unconfirmed";
367
+ "prompt-timeout": "prompt-timeout";
368
+ "prompt-validation": "prompt-validation";
369
+ "report-incomplete": "report-incomplete";
370
+ "report-not-durable": "report-not-durable";
371
+ "routing-blocked": "routing-blocked";
372
+ unknown: "unknown";
373
+ }>;
374
+ statusCode: z.ZodOptional<z.ZodNumber>;
375
+ retryable: z.ZodOptional<z.ZodBoolean>;
376
+ }, z.core.$strict>>;
377
+ }, z.core.$strict>, z.ZodObject<{
378
+ v: z.ZodLiteral<1>;
379
+ seq: z.ZodNumber;
380
+ runID: z.ZodString;
381
+ at: z.ZodNumber;
382
+ type: z.ZodLiteral<"operation.terminal">;
383
+ operationID: z.ZodString;
384
+ taskID: z.ZodString;
385
+ outcome: z.ZodEnum<{
386
+ blocked: "blocked";
387
+ cancelled: "cancelled";
388
+ failed: "failed";
389
+ interrupted: "interrupted";
390
+ succeeded: "succeeded";
391
+ unknown: "unknown";
392
+ }>;
393
+ attemptCount: z.ZodNumber;
394
+ finalSessionID: z.ZodOptional<z.ZodString>;
395
+ failure: z.ZodOptional<z.ZodObject<{
396
+ class: z.ZodEnum<{
397
+ "budget-exhausted": "budget-exhausted";
398
+ cancelled: "cancelled";
399
+ "create-no-id": "create-no-id";
400
+ "create-rejected": "create-rejected";
401
+ "dependency-failed": "dependency-failed";
402
+ interrupted: "interrupted";
403
+ "prompt-auth": "prompt-auth";
404
+ "prompt-connection": "prompt-connection";
405
+ "prompt-content-filter": "prompt-content-filter";
406
+ "prompt-context-length": "prompt-context-length";
407
+ "prompt-rate-limited": "prompt-rate-limited";
408
+ "prompt-rejected": "prompt-rejected";
409
+ "prompt-server": "prompt-server";
410
+ "prompt-stop-unconfirmed": "prompt-stop-unconfirmed";
411
+ "prompt-timeout": "prompt-timeout";
412
+ "prompt-validation": "prompt-validation";
413
+ "report-incomplete": "report-incomplete";
414
+ "report-not-durable": "report-not-durable";
415
+ "routing-blocked": "routing-blocked";
416
+ unknown: "unknown";
417
+ }>;
418
+ statusCode: z.ZodOptional<z.ZodNumber>;
419
+ retryable: z.ZodOptional<z.ZodBoolean>;
420
+ }, z.core.$strict>>;
421
+ }, z.core.$strict>, z.ZodObject<{
422
+ v: z.ZodLiteral<1>;
423
+ seq: z.ZodNumber;
424
+ runID: z.ZodString;
425
+ at: z.ZodNumber;
426
+ type: z.ZodLiteral<"run.terminal">;
427
+ outcome: z.ZodEnum<{
428
+ cancelled: "cancelled";
429
+ failed: "failed";
430
+ interrupted: "interrupted";
431
+ succeeded: "succeeded";
432
+ unknown: "unknown";
433
+ }>;
434
+ operationCount: z.ZodNumber;
435
+ failure: z.ZodOptional<z.ZodObject<{
436
+ class: z.ZodEnum<{
437
+ "budget-exhausted": "budget-exhausted";
438
+ cancelled: "cancelled";
439
+ "create-no-id": "create-no-id";
440
+ "create-rejected": "create-rejected";
441
+ "dependency-failed": "dependency-failed";
442
+ interrupted: "interrupted";
443
+ "prompt-auth": "prompt-auth";
444
+ "prompt-connection": "prompt-connection";
445
+ "prompt-content-filter": "prompt-content-filter";
446
+ "prompt-context-length": "prompt-context-length";
447
+ "prompt-rate-limited": "prompt-rate-limited";
448
+ "prompt-rejected": "prompt-rejected";
449
+ "prompt-server": "prompt-server";
450
+ "prompt-stop-unconfirmed": "prompt-stop-unconfirmed";
451
+ "prompt-timeout": "prompt-timeout";
452
+ "prompt-validation": "prompt-validation";
453
+ "report-incomplete": "report-incomplete";
454
+ "report-not-durable": "report-not-durable";
455
+ "routing-blocked": "routing-blocked";
456
+ unknown: "unknown";
457
+ }>;
458
+ statusCode: z.ZodOptional<z.ZodNumber>;
459
+ retryable: z.ZodOptional<z.ZodBoolean>;
460
+ }, z.core.$strict>>;
461
+ }, z.core.$strict>], "type">;
462
+ export declare const LifecycleWriterLeaseInputSchema: z.ZodObject<{
463
+ writer: z.ZodObject<{
464
+ processID: z.ZodNumber;
465
+ processInstanceID: z.ZodString;
466
+ }, z.core.$strict>;
467
+ now: z.ZodNumber;
468
+ leaseDurationMs: z.ZodNumber;
469
+ }, z.core.$strict>;
470
+ export declare const LifecycleWriterLeaseSchema: z.ZodObject<{
471
+ version: z.ZodLiteral<1>;
472
+ runID: z.ZodString;
473
+ writerToken: z.ZodString;
474
+ processID: z.ZodNumber;
475
+ processInstanceID: z.ZodString;
476
+ acquiredAt: z.ZodNumber;
477
+ heartbeatAt: z.ZodNumber;
478
+ expiresAt: z.ZodNumber;
479
+ }, z.core.$strict>;
480
+ export declare function assertLifecycleReferenceOnly(value: unknown): void;
481
+ export declare function parseLifecycleRunStartInput(value: unknown): LifecycleRunStartInput;
482
+ export declare function parseLifecycleRunMetadata(value: unknown): LifecycleRunMetadataV1;
483
+ export declare function parseLifecycleAppendEvent(value: unknown): LifecycleAppendEventV1;
484
+ export declare function parseLifecycleEvent(value: unknown): LifecycleEventV1;
485
+ export declare function parseLifecycleWriterLeaseInput(value: unknown): LifecycleWriterLeaseInput;
486
+ export declare function parseLifecycleWriterLease(value: unknown): LifecycleWriterLeaseV1;
487
+ //# sourceMappingURL=schema.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../src/lifecycle/schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,OAAO,KAAK,EACV,sBAAsB,EACtB,gBAAgB,EAChB,sBAAsB,EACtB,sBAAsB,EACtB,yBAAyB,EACzB,sBAAsB,EACvB,MAAM,aAAa,CAAC;AA8DrB,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;;;;;;;;;kBAK5B,CAAC;AA+IZ,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4BAGtC,CAAC;AAEF,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4BAU/B,CAAC;AAEH,eAAO,MAAM,+BAA+B;;;;;;;kBAWjC,CAAC;AAEZ,eAAO,MAAM,0BAA0B;;;;;;;;;kBA2BnC,CAAC;AAwBL,wBAAgB,4BAA4B,CAAC,KAAK,EAAE,OAAO,GAAG,IAAI,CAEjE;AAED,wBAAgB,2BAA2B,CACzC,KAAK,EAAE,OAAO,GACb,sBAAsB,CAIxB;AAED,wBAAgB,yBAAyB,CACvC,KAAK,EAAE,OAAO,GACb,sBAAsB,CAIxB;AAED,wBAAgB,yBAAyB,CACvC,KAAK,EAAE,OAAO,GACb,sBAAsB,CAIxB;AAED,wBAAgB,mBAAmB,CAAC,KAAK,EAAE,OAAO,GAAG,gBAAgB,CAIpE;AAED,wBAAgB,8BAA8B,CAC5C,KAAK,EAAE,OAAO,GACb,yBAAyB,CAE3B;AAED,wBAAgB,yBAAyB,CACvC,KAAK,EAAE,OAAO,GACb,sBAAsB,CAIxB"}
@@ -44,4 +44,5 @@
44
44
  */
45
45
  export * from "./commands";
46
46
  export * from "./executionSetup";
47
+ export * from "./lifecycle";
47
48
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/messages/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2CG;AAEH,cAAc,YAAY,CAAC;AAC3B,cAAc,kBAAkB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/messages/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2CG;AAEH,cAAc,YAAY,CAAC;AAC3B,cAAc,kBAAkB,CAAC;AACjC,cAAc,aAAa,CAAC"}
@@ -0,0 +1,95 @@
1
+ /**
2
+ * User-facing messages for the lifecycle history timeline UI.
3
+ * Pure catalog — no I/O, no runtime, no locale loader.
4
+ */
5
+ export declare const lifecycleMessages: {
6
+ readonly screenLabel: "Lifecycle operation tree";
7
+ readonly screenHeading: "Agent timeline";
8
+ readonly screenHeadingLive: "Agent timeline · live";
9
+ readonly screenHeadingHistorical: "Agent timeline · historical";
10
+ readonly screenHeadingCompleted: "Agent timeline · completed";
11
+ readonly screenDescription: "Committed runtime hierarchy for the selected lifecycle run.";
12
+ readonly screenDescriptionLive: "Following committed lifecycle events from the active writer.";
13
+ readonly screenDescriptionHistorical: "Historical hierarchy at the selected exclusive event cursor.";
14
+ readonly screenDescriptionCompleted: "Final committed runtime hierarchy for the completed run.";
15
+ readonly screenDescriptionUnavailable: "Lifecycle history is not available for the current selection.";
16
+ readonly panelEyebrow: "Lifecycle run";
17
+ readonly hierarchyTitle: "Execution hierarchy";
18
+ readonly hierarchyAriaLabel: "Lifecycle operation hierarchy";
19
+ readonly cursorCountTemplate: "{cursor} of {head} events";
20
+ readonly cursorCountSingleTemplate: "{cursor} of {head} event";
21
+ readonly latestEventLabel: "Latest event";
22
+ readonly noEventTimestamp: "No event timestamp in this prefix";
23
+ readonly noRunsYet: "No lifecycle runs yet. The timeline fills when the orchestrator begins a run.";
24
+ readonly runSelectorLabel: "Select run";
25
+ readonly runSelectorAriaLabel: "Lifecycle run selector";
26
+ readonly sliderLabel: "Event cursor";
27
+ readonly sliderAriaLabel: "Timeline cursor — drag to scrub through lifecycle events";
28
+ readonly returnToLive: "Return to live";
29
+ readonly returnToLiveAriaLabel: "Return to live — follow the latest events";
30
+ readonly pausedLabel: "Paused";
31
+ readonly latestLabel: "Latest";
32
+ readonly followingHeadLabel: "Following head";
33
+ readonly live: "Live";
34
+ readonly liveAriaLabel: "Live — following the latest events";
35
+ readonly writerActive: "Writer active";
36
+ readonly writerUnknown: "Writer unknown";
37
+ readonly terminal: "Completed";
38
+ readonly historicalPrefix: "Historical snapshot";
39
+ readonly legacySnapshot: "Legacy snapshot";
40
+ readonly operationLabel: "Operation";
41
+ readonly taskLabel: "Task";
42
+ readonly roleLabel: "Role";
43
+ readonly kindLabel: "Kind";
44
+ readonly agentLabel: "Agent";
45
+ readonly attemptsLabel: "Attempts";
46
+ readonly noAttempts: "No attempts in this prefix";
47
+ readonly attemptLabelTemplate: "Attempt {n}";
48
+ readonly retryLabel: "Retry";
49
+ readonly retryLabelTemplate: "Retry {n}";
50
+ readonly stateLabel: "State";
51
+ readonly modelLabel: "Model";
52
+ readonly noModel: "No model recorded";
53
+ readonly routeLabel: "Route";
54
+ readonly noRoute: "No route recorded";
55
+ readonly selectionLabel: "Selection";
56
+ readonly runtimeLabel: "Runtime";
57
+ readonly sessionLabel: "Session";
58
+ readonly noSession: "No session recorded";
59
+ readonly parentSessionLabel: "Parent session";
60
+ readonly dependsOnLabel: "Depends on";
61
+ readonly missingOperation: "missing operation";
62
+ readonly parentReferenceLabel: "Parent reference";
63
+ readonly unlinkedOperationsLabel: "Unlinked operations";
64
+ readonly unlinkedOperationsNote: "These operations are not connected to the selected root in this prefix.";
65
+ readonly rootOperationMissing: "The selected root operation is not available in this prefix.";
66
+ readonly noOperationsAtCursor: "No operations exist at this cursor.";
67
+ readonly selectedAtLabel: "Selected";
68
+ readonly queuedAtLabel: "Queued";
69
+ readonly startedAtLabel: "Started";
70
+ readonly terminalAtLabel: "Finished";
71
+ readonly failureLabel: "Failure";
72
+ readonly statusCodeLabel: "Status";
73
+ readonly retryableLabel: "Retryable";
74
+ readonly yesLabel: "yes";
75
+ readonly noLabel: "no";
76
+ readonly graphSupplementTitle: "Graph execution snapshot";
77
+ readonly graphSupplementSummary: "Show the separate Graph projection and conversation drill-down";
78
+ readonly legacyIncomplete: "Legacy artifact — chronology, retry history, and session tree unavailable.";
79
+ readonly partialTail: "Recording degraded — the tree shows only the committed prefix returned by history.";
80
+ readonly errorRunNotFound: "Run not found.";
81
+ readonly errorCursorAhead: "Cursor is ahead of current head.";
82
+ readonly errorHistoryIncomplete: "Cursor scrubbing is unavailable for legacy artifacts.";
83
+ readonly errorJournalCorrupt: "Journal is corrupt — history unavailable.";
84
+ readonly errorHistoryUnavailable: "History storage unavailable.";
85
+ readonly errorInvalidCursor: "Invalid cursor value.";
86
+ readonly errorLoading: "Could not load lifecycle history.";
87
+ readonly graphDisabledHistory: "Lifecycle history is unavailable because the graph engine is off.";
88
+ readonly historyDisabled: "Lifecycle history is disabled. Enable it in .opencode/openteam.json.";
89
+ readonly timelineRegionLabel: "Lifecycle timeline";
90
+ readonly runDetailsLabel: "Run details";
91
+ readonly controlsLabel: "Timeline controls";
92
+ readonly eventsCountLabel: (count: number) => string;
93
+ readonly incomingCountLabel: (count: number) => string;
94
+ };
95
+ //# sourceMappingURL=lifecycle.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"lifecycle.d.ts","sourceRoot":"","sources":["../../src/messages/lifecycle.ts"],"names":[],"mappings":"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"}
@@ -0,0 +1,4 @@
1
+ import type { BoundedNormalizedSessionFailure, LifecycleRecordingStatus } from "../lifecycle/contracts";
2
+ export declare function normalizedSessionFailureMessage(failure: BoundedNormalizedSessionFailure): string;
3
+ export declare function lifecycleRecordingAdvisory(status: LifecycleRecordingStatus): string | undefined;
4
+ //# sourceMappingURL=lifecycleRuntime.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"lifecycleRuntime.d.ts","sourceRoot":"","sources":["../../src/messages/lifecycleRuntime.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,+BAA+B,EAC/B,wBAAwB,EACzB,MAAM,wBAAwB,CAAC;AAEhC,wBAAgB,+BAA+B,CAC7C,OAAO,EAAE,+BAA+B,GACvC,MAAM,CAER;AAED,wBAAgB,0BAA0B,CACxC,MAAM,EAAE,wBAAwB,GAC/B,MAAM,GAAG,SAAS,CAOpB"}
@@ -0,0 +1,4 @@
1
+ export declare const lifecycleStorageMessages: {
2
+ readonly configuredRootEscapesWorkspace: "Configured lifecycle root must remain beneath the workspace root.";
3
+ };
4
+ //# sourceMappingURL=lifecycleStorage.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"lifecycleStorage.d.ts","sourceRoot":"","sources":["../../src/messages/lifecycleStorage.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,wBAAwB;aACnC,8BAA8B,EAC5B,mEAAmE;CAC7D,CAAC"}