@fleettools/events 0.1.0 → 0.1.1
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/src/types/base.d.ts +2 -2
- package/dist/src/types/checkpoints.d.ts +8 -8
- package/dist/src/types/coordination.d.ts +24 -24
- package/dist/src/types/index.d.ts +76 -76
- package/dist/src/types/messages.d.ts +10 -10
- package/dist/src/types/missions.d.ts +8 -8
- package/dist/src/types/pilots.d.ts +6 -6
- package/dist/src/types/reservations.d.ts +8 -8
- package/dist/src/types/sorties.d.ts +12 -12
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
package/dist/src/types/base.d.ts
CHANGED
|
@@ -15,15 +15,15 @@ export declare const BaseEventSchema: z.ZodObject<{
|
|
|
15
15
|
sequence: z.ZodNumber;
|
|
16
16
|
data: z.ZodUnknown;
|
|
17
17
|
}, "strip", z.ZodTypeAny, {
|
|
18
|
-
id: string;
|
|
19
18
|
type: string;
|
|
19
|
+
id: string;
|
|
20
20
|
project_key: string;
|
|
21
21
|
timestamp: string;
|
|
22
22
|
sequence: number;
|
|
23
23
|
data?: unknown;
|
|
24
24
|
}, {
|
|
25
|
-
id: string;
|
|
26
25
|
type: string;
|
|
26
|
+
id: string;
|
|
27
27
|
project_key: string;
|
|
28
28
|
timestamp: string;
|
|
29
29
|
sequence: number;
|
|
@@ -43,8 +43,8 @@ export declare const CheckpointCreatedSchema: z.ZodObject<{
|
|
|
43
43
|
context_data?: Record<string, unknown> | undefined;
|
|
44
44
|
}>;
|
|
45
45
|
}, "strip", z.ZodTypeAny, {
|
|
46
|
-
id: string;
|
|
47
46
|
type: "checkpoint_created";
|
|
47
|
+
id: string;
|
|
48
48
|
project_key: string;
|
|
49
49
|
timestamp: string;
|
|
50
50
|
sequence: number;
|
|
@@ -59,8 +59,8 @@ export declare const CheckpointCreatedSchema: z.ZodObject<{
|
|
|
59
59
|
context_data?: Record<string, unknown> | undefined;
|
|
60
60
|
};
|
|
61
61
|
}, {
|
|
62
|
-
id: string;
|
|
63
62
|
type: "checkpoint_created";
|
|
63
|
+
id: string;
|
|
64
64
|
project_key: string;
|
|
65
65
|
timestamp: string;
|
|
66
66
|
sequence: number;
|
|
@@ -108,8 +108,8 @@ export declare const ContextCompactedSchema: z.ZodObject<{
|
|
|
108
108
|
compacted_at: string;
|
|
109
109
|
}>;
|
|
110
110
|
}, "strip", z.ZodTypeAny, {
|
|
111
|
-
id: string;
|
|
112
111
|
type: "context_compacted";
|
|
112
|
+
id: string;
|
|
113
113
|
project_key: string;
|
|
114
114
|
timestamp: string;
|
|
115
115
|
sequence: number;
|
|
@@ -122,8 +122,8 @@ export declare const ContextCompactedSchema: z.ZodObject<{
|
|
|
122
122
|
compacted_at: string;
|
|
123
123
|
};
|
|
124
124
|
}, {
|
|
125
|
-
id: string;
|
|
126
125
|
type: "context_compacted";
|
|
126
|
+
id: string;
|
|
127
127
|
project_key: string;
|
|
128
128
|
timestamp: string;
|
|
129
129
|
sequence: number;
|
|
@@ -169,8 +169,8 @@ export declare const CheckpointRestoredSchema: z.ZodObject<{
|
|
|
169
169
|
notes?: string | undefined;
|
|
170
170
|
}>;
|
|
171
171
|
}, "strip", z.ZodTypeAny, {
|
|
172
|
-
id: string;
|
|
173
172
|
type: "checkpoint_restored";
|
|
173
|
+
id: string;
|
|
174
174
|
project_key: string;
|
|
175
175
|
timestamp: string;
|
|
176
176
|
sequence: number;
|
|
@@ -183,8 +183,8 @@ export declare const CheckpointRestoredSchema: z.ZodObject<{
|
|
|
183
183
|
notes?: string | undefined;
|
|
184
184
|
};
|
|
185
185
|
}, {
|
|
186
|
-
id: string;
|
|
187
186
|
type: "checkpoint_restored";
|
|
187
|
+
id: string;
|
|
188
188
|
project_key: string;
|
|
189
189
|
timestamp: string;
|
|
190
190
|
sequence: number;
|
|
@@ -224,8 +224,8 @@ export declare const CheckpointDeletedSchema: z.ZodObject<{
|
|
|
224
224
|
deleted_at: string;
|
|
225
225
|
}>;
|
|
226
226
|
}, "strip", z.ZodTypeAny, {
|
|
227
|
-
id: string;
|
|
228
227
|
type: "checkpoint_deleted";
|
|
228
|
+
id: string;
|
|
229
229
|
project_key: string;
|
|
230
230
|
timestamp: string;
|
|
231
231
|
sequence: number;
|
|
@@ -236,8 +236,8 @@ export declare const CheckpointDeletedSchema: z.ZodObject<{
|
|
|
236
236
|
deleted_at: string;
|
|
237
237
|
};
|
|
238
238
|
}, {
|
|
239
|
-
id: string;
|
|
240
239
|
type: "checkpoint_deleted";
|
|
240
|
+
id: string;
|
|
241
241
|
project_key: string;
|
|
242
242
|
timestamp: string;
|
|
243
243
|
sequence: number;
|
|
@@ -40,8 +40,8 @@ export declare const CoordinatorDecisionSchema: z.ZodObject<{
|
|
|
40
40
|
reasoning?: string | undefined;
|
|
41
41
|
}>;
|
|
42
42
|
}, "strip", z.ZodTypeAny, {
|
|
43
|
-
id: string;
|
|
44
43
|
type: "coordinator_decision";
|
|
44
|
+
id: string;
|
|
45
45
|
project_key: string;
|
|
46
46
|
timestamp: string;
|
|
47
47
|
sequence: number;
|
|
@@ -55,8 +55,8 @@ export declare const CoordinatorDecisionSchema: z.ZodObject<{
|
|
|
55
55
|
reasoning?: string | undefined;
|
|
56
56
|
};
|
|
57
57
|
}, {
|
|
58
|
-
id: string;
|
|
59
58
|
type: "coordinator_decision";
|
|
59
|
+
id: string;
|
|
60
60
|
project_key: string;
|
|
61
61
|
timestamp: string;
|
|
62
62
|
sequence: number;
|
|
@@ -100,8 +100,8 @@ export declare const PilotSpawnedSchema: z.ZodObject<{
|
|
|
100
100
|
config?: Record<string, unknown> | undefined;
|
|
101
101
|
}>;
|
|
102
102
|
}, "strip", z.ZodTypeAny, {
|
|
103
|
-
id: string;
|
|
104
103
|
type: "pilot_spawned";
|
|
104
|
+
id: string;
|
|
105
105
|
project_key: string;
|
|
106
106
|
timestamp: string;
|
|
107
107
|
sequence: number;
|
|
@@ -113,8 +113,8 @@ export declare const PilotSpawnedSchema: z.ZodObject<{
|
|
|
113
113
|
config?: Record<string, unknown> | undefined;
|
|
114
114
|
};
|
|
115
115
|
}, {
|
|
116
|
-
id: string;
|
|
117
116
|
type: "pilot_spawned";
|
|
117
|
+
id: string;
|
|
118
118
|
project_key: string;
|
|
119
119
|
timestamp: string;
|
|
120
120
|
sequence: number;
|
|
@@ -144,40 +144,40 @@ export declare const PilotTerminatedSchema: z.ZodObject<{
|
|
|
144
144
|
final_state: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
145
145
|
}, "strip", z.ZodTypeAny, {
|
|
146
146
|
callsign: string;
|
|
147
|
-
terminated_by: string;
|
|
148
147
|
reason: "completed" | "error" | "timeout" | "manual" | "resource_limit";
|
|
148
|
+
terminated_by: string;
|
|
149
149
|
exit_code?: number | undefined;
|
|
150
150
|
final_state?: Record<string, unknown> | undefined;
|
|
151
151
|
}, {
|
|
152
152
|
callsign: string;
|
|
153
|
-
terminated_by: string;
|
|
154
153
|
reason: "completed" | "error" | "timeout" | "manual" | "resource_limit";
|
|
154
|
+
terminated_by: string;
|
|
155
155
|
exit_code?: number | undefined;
|
|
156
156
|
final_state?: Record<string, unknown> | undefined;
|
|
157
157
|
}>;
|
|
158
158
|
}, "strip", z.ZodTypeAny, {
|
|
159
|
-
id: string;
|
|
160
159
|
type: "pilot_terminated";
|
|
160
|
+
id: string;
|
|
161
161
|
project_key: string;
|
|
162
162
|
timestamp: string;
|
|
163
163
|
sequence: number;
|
|
164
164
|
data: {
|
|
165
165
|
callsign: string;
|
|
166
|
-
terminated_by: string;
|
|
167
166
|
reason: "completed" | "error" | "timeout" | "manual" | "resource_limit";
|
|
167
|
+
terminated_by: string;
|
|
168
168
|
exit_code?: number | undefined;
|
|
169
169
|
final_state?: Record<string, unknown> | undefined;
|
|
170
170
|
};
|
|
171
171
|
}, {
|
|
172
|
-
id: string;
|
|
173
172
|
type: "pilot_terminated";
|
|
173
|
+
id: string;
|
|
174
174
|
project_key: string;
|
|
175
175
|
timestamp: string;
|
|
176
176
|
sequence: number;
|
|
177
177
|
data: {
|
|
178
178
|
callsign: string;
|
|
179
|
-
terminated_by: string;
|
|
180
179
|
reason: "completed" | "error" | "timeout" | "manual" | "resource_limit";
|
|
180
|
+
terminated_by: string;
|
|
181
181
|
exit_code?: number | undefined;
|
|
182
182
|
final_state?: Record<string, unknown> | undefined;
|
|
183
183
|
};
|
|
@@ -199,42 +199,42 @@ export declare const LockAcquiredSchema: z.ZodObject<{
|
|
|
199
199
|
ttl_seconds: z.ZodNumber;
|
|
200
200
|
acquired_at: z.ZodString;
|
|
201
201
|
}, "strip", z.ZodTypeAny, {
|
|
202
|
+
ttl_seconds: number;
|
|
202
203
|
lock_key: string;
|
|
203
204
|
holder_id: string;
|
|
204
205
|
lock_type: "exclusive" | "shared";
|
|
205
|
-
ttl_seconds: number;
|
|
206
206
|
acquired_at: string;
|
|
207
207
|
}, {
|
|
208
|
+
ttl_seconds: number;
|
|
208
209
|
lock_key: string;
|
|
209
210
|
holder_id: string;
|
|
210
211
|
lock_type: "exclusive" | "shared";
|
|
211
|
-
ttl_seconds: number;
|
|
212
212
|
acquired_at: string;
|
|
213
213
|
}>;
|
|
214
214
|
}, "strip", z.ZodTypeAny, {
|
|
215
|
-
id: string;
|
|
216
215
|
type: "lock_acquired";
|
|
216
|
+
id: string;
|
|
217
217
|
project_key: string;
|
|
218
218
|
timestamp: string;
|
|
219
219
|
sequence: number;
|
|
220
220
|
data: {
|
|
221
|
+
ttl_seconds: number;
|
|
221
222
|
lock_key: string;
|
|
222
223
|
holder_id: string;
|
|
223
224
|
lock_type: "exclusive" | "shared";
|
|
224
|
-
ttl_seconds: number;
|
|
225
225
|
acquired_at: string;
|
|
226
226
|
};
|
|
227
227
|
}, {
|
|
228
|
-
id: string;
|
|
229
228
|
type: "lock_acquired";
|
|
229
|
+
id: string;
|
|
230
230
|
project_key: string;
|
|
231
231
|
timestamp: string;
|
|
232
232
|
sequence: number;
|
|
233
233
|
data: {
|
|
234
|
+
ttl_seconds: number;
|
|
234
235
|
lock_key: string;
|
|
235
236
|
holder_id: string;
|
|
236
237
|
lock_type: "exclusive" | "shared";
|
|
237
|
-
ttl_seconds: number;
|
|
238
238
|
acquired_at: string;
|
|
239
239
|
};
|
|
240
240
|
}>;
|
|
@@ -255,41 +255,41 @@ export declare const LockReleasedSchema: z.ZodObject<{
|
|
|
255
255
|
released_at: z.ZodString;
|
|
256
256
|
held_duration_ms: z.ZodNumber;
|
|
257
257
|
}, "strip", z.ZodTypeAny, {
|
|
258
|
+
released_by: string;
|
|
258
259
|
lock_key: string;
|
|
259
260
|
holder_id: string;
|
|
260
|
-
released_by: string;
|
|
261
261
|
released_at: string;
|
|
262
262
|
held_duration_ms: number;
|
|
263
263
|
}, {
|
|
264
|
+
released_by: string;
|
|
264
265
|
lock_key: string;
|
|
265
266
|
holder_id: string;
|
|
266
|
-
released_by: string;
|
|
267
267
|
released_at: string;
|
|
268
268
|
held_duration_ms: number;
|
|
269
269
|
}>;
|
|
270
270
|
}, "strip", z.ZodTypeAny, {
|
|
271
|
-
id: string;
|
|
272
271
|
type: "lock_released";
|
|
272
|
+
id: string;
|
|
273
273
|
project_key: string;
|
|
274
274
|
timestamp: string;
|
|
275
275
|
sequence: number;
|
|
276
276
|
data: {
|
|
277
|
+
released_by: string;
|
|
277
278
|
lock_key: string;
|
|
278
279
|
holder_id: string;
|
|
279
|
-
released_by: string;
|
|
280
280
|
released_at: string;
|
|
281
281
|
held_duration_ms: number;
|
|
282
282
|
};
|
|
283
283
|
}, {
|
|
284
|
-
id: string;
|
|
285
284
|
type: "lock_released";
|
|
285
|
+
id: string;
|
|
286
286
|
project_key: string;
|
|
287
287
|
timestamp: string;
|
|
288
288
|
sequence: number;
|
|
289
289
|
data: {
|
|
290
|
+
released_by: string;
|
|
290
291
|
lock_key: string;
|
|
291
292
|
holder_id: string;
|
|
292
|
-
released_by: string;
|
|
293
293
|
released_at: string;
|
|
294
294
|
held_duration_ms: number;
|
|
295
295
|
};
|
|
@@ -327,8 +327,8 @@ export declare const CursorMovedSchema: z.ZodObject<{
|
|
|
327
327
|
batch_size?: number | undefined;
|
|
328
328
|
}>;
|
|
329
329
|
}, "strip", z.ZodTypeAny, {
|
|
330
|
-
id: string;
|
|
331
330
|
type: "cursor_moved";
|
|
331
|
+
id: string;
|
|
332
332
|
project_key: string;
|
|
333
333
|
timestamp: string;
|
|
334
334
|
sequence: number;
|
|
@@ -341,8 +341,8 @@ export declare const CursorMovedSchema: z.ZodObject<{
|
|
|
341
341
|
batch_size?: number | undefined;
|
|
342
342
|
};
|
|
343
343
|
}, {
|
|
344
|
-
id: string;
|
|
345
344
|
type: "cursor_moved";
|
|
345
|
+
id: string;
|
|
346
346
|
project_key: string;
|
|
347
347
|
timestamp: string;
|
|
348
348
|
sequence: number;
|