@basou/core 0.30.0 → 0.31.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.
- package/dist/index.d.ts +99 -89
- package/dist/index.js +30 -19
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/schemas/approval.schema.json +3 -2
- package/schemas/event.schema.json +21 -21
- package/schemas/manifest.schema.json +2 -12
- package/schemas/session-import.schema.json +25 -23
- package/schemas/session.schema.json +13 -7
- package/schemas/status.schema.json +1 -1
- package/schemas/task.schema.json +5 -3
package/dist/index.d.ts
CHANGED
|
@@ -124,8 +124,8 @@ declare function findBasouStopHookCommand(settings: unknown): string | null;
|
|
|
124
124
|
* unrecognized top-level keys so preservation is not silent.
|
|
125
125
|
*/
|
|
126
126
|
declare const ManifestSchema: z.ZodObject<{
|
|
127
|
-
schema_version: z.
|
|
128
|
-
basou_version: z.
|
|
127
|
+
schema_version: z.ZodString;
|
|
128
|
+
basou_version: z.ZodString;
|
|
129
129
|
workspace: z.ZodObject<{
|
|
130
130
|
id: z.ZodString & z.ZodType<`ws_${string}`, string, z.core.$ZodTypeInternals<`ws_${string}`, string>>;
|
|
131
131
|
name: z.ZodString;
|
|
@@ -136,7 +136,6 @@ declare const ManifestSchema: z.ZodObject<{
|
|
|
136
136
|
project: z.ZodObject<{
|
|
137
137
|
name: z.ZodOptional<z.ZodString>;
|
|
138
138
|
description: z.ZodOptional<z.ZodString>;
|
|
139
|
-
repository_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
140
139
|
}, z.core.$loose>;
|
|
141
140
|
capabilities: z.ZodObject<{
|
|
142
141
|
enabled: z.ZodArray<z.ZodString>;
|
|
@@ -260,11 +259,11 @@ declare const SessionInnerImportSchema: z.ZodObject<{
|
|
|
260
259
|
active_intervals: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
261
260
|
start: z.ZodString;
|
|
262
261
|
end: z.ZodString;
|
|
263
|
-
}, z.core.$
|
|
262
|
+
}, z.core.$loose>>>;
|
|
264
263
|
active_gap_cap_ms: z.ZodOptional<z.ZodNumber>;
|
|
265
264
|
active_time_method: z.ZodOptional<z.ZodString>;
|
|
266
265
|
machine_active_time_ms: z.ZodOptional<z.ZodNumber>;
|
|
267
|
-
}, z.core.$
|
|
266
|
+
}, z.core.$loose>>;
|
|
268
267
|
integrity: z.ZodOptional<z.ZodObject<{
|
|
269
268
|
head_hash: z.ZodString;
|
|
270
269
|
event_count: z.ZodNumber;
|
|
@@ -326,18 +325,18 @@ declare const SessionImportPayloadSchema: z.ZodObject<{
|
|
|
326
325
|
active_intervals: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
327
326
|
start: z.ZodString;
|
|
328
327
|
end: z.ZodString;
|
|
329
|
-
}, z.core.$
|
|
328
|
+
}, z.core.$loose>>>;
|
|
330
329
|
active_gap_cap_ms: z.ZodOptional<z.ZodNumber>;
|
|
331
330
|
active_time_method: z.ZodOptional<z.ZodString>;
|
|
332
331
|
machine_active_time_ms: z.ZodOptional<z.ZodNumber>;
|
|
333
|
-
}, z.core.$
|
|
332
|
+
}, z.core.$loose>>;
|
|
334
333
|
integrity: z.ZodOptional<z.ZodObject<{
|
|
335
334
|
head_hash: z.ZodString;
|
|
336
335
|
event_count: z.ZodNumber;
|
|
337
336
|
}, z.core.$strict>>;
|
|
338
337
|
}, z.core.$strict>;
|
|
339
338
|
events: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
340
|
-
schema_version: z.
|
|
339
|
+
schema_version: z.ZodString;
|
|
341
340
|
id: z.ZodString & z.ZodType<`evt_${string}`, string, z.core.$ZodTypeInternals<`evt_${string}`, string>>;
|
|
342
341
|
session_id: z.ZodString & z.ZodType<`ses_${string}`, string, z.core.$ZodTypeInternals<`ses_${string}`, string>>;
|
|
343
342
|
occurred_at: z.ZodString;
|
|
@@ -345,7 +344,7 @@ declare const SessionImportPayloadSchema: z.ZodObject<{
|
|
|
345
344
|
prev_hash: z.ZodOptional<z.ZodString>;
|
|
346
345
|
type: z.ZodLiteral<"session_started">;
|
|
347
346
|
}, z.core.$strip>, z.ZodObject<{
|
|
348
|
-
schema_version: z.
|
|
347
|
+
schema_version: z.ZodString;
|
|
349
348
|
id: z.ZodString & z.ZodType<`evt_${string}`, string, z.core.$ZodTypeInternals<`evt_${string}`, string>>;
|
|
350
349
|
session_id: z.ZodString & z.ZodType<`ses_${string}`, string, z.core.$ZodTypeInternals<`ses_${string}`, string>>;
|
|
351
350
|
occurred_at: z.ZodString;
|
|
@@ -354,7 +353,7 @@ declare const SessionImportPayloadSchema: z.ZodObject<{
|
|
|
354
353
|
type: z.ZodLiteral<"session_ended">;
|
|
355
354
|
exit_code: z.ZodOptional<z.ZodNumber>;
|
|
356
355
|
}, z.core.$strip>, z.ZodObject<{
|
|
357
|
-
schema_version: z.
|
|
356
|
+
schema_version: z.ZodString;
|
|
358
357
|
id: z.ZodString & z.ZodType<`evt_${string}`, string, z.core.$ZodTypeInternals<`evt_${string}`, string>>;
|
|
359
358
|
session_id: z.ZodString & z.ZodType<`ses_${string}`, string, z.core.$ZodTypeInternals<`ses_${string}`, string>>;
|
|
360
359
|
occurred_at: z.ZodString;
|
|
@@ -364,7 +363,7 @@ declare const SessionImportPayloadSchema: z.ZodObject<{
|
|
|
364
363
|
from: z.ZodString;
|
|
365
364
|
to: z.ZodString;
|
|
366
365
|
}, z.core.$strip>, z.ZodObject<{
|
|
367
|
-
schema_version: z.
|
|
366
|
+
schema_version: z.ZodString;
|
|
368
367
|
id: z.ZodString & z.ZodType<`evt_${string}`, string, z.core.$ZodTypeInternals<`evt_${string}`, string>>;
|
|
369
368
|
session_id: z.ZodString & z.ZodType<`ses_${string}`, string, z.core.$ZodTypeInternals<`ses_${string}`, string>>;
|
|
370
369
|
occurred_at: z.ZodString;
|
|
@@ -385,7 +384,7 @@ declare const SessionImportPayloadSchema: z.ZodObject<{
|
|
|
385
384
|
reason: z.ZodString;
|
|
386
385
|
status: z.ZodLiteral<"pending">;
|
|
387
386
|
}, z.core.$strip>, z.ZodObject<{
|
|
388
|
-
schema_version: z.
|
|
387
|
+
schema_version: z.ZodString;
|
|
389
388
|
id: z.ZodString & z.ZodType<`evt_${string}`, string, z.core.$ZodTypeInternals<`evt_${string}`, string>>;
|
|
390
389
|
session_id: z.ZodString & z.ZodType<`ses_${string}`, string, z.core.$ZodTypeInternals<`ses_${string}`, string>>;
|
|
391
390
|
occurred_at: z.ZodString;
|
|
@@ -396,7 +395,7 @@ declare const SessionImportPayloadSchema: z.ZodObject<{
|
|
|
396
395
|
resolver: z.ZodOptional<z.ZodString>;
|
|
397
396
|
note: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
398
397
|
}, z.core.$strip>, z.ZodObject<{
|
|
399
|
-
schema_version: z.
|
|
398
|
+
schema_version: z.ZodString;
|
|
400
399
|
id: z.ZodString & z.ZodType<`evt_${string}`, string, z.core.$ZodTypeInternals<`evt_${string}`, string>>;
|
|
401
400
|
session_id: z.ZodString & z.ZodType<`ses_${string}`, string, z.core.$ZodTypeInternals<`ses_${string}`, string>>;
|
|
402
401
|
occurred_at: z.ZodString;
|
|
@@ -407,7 +406,7 @@ declare const SessionImportPayloadSchema: z.ZodObject<{
|
|
|
407
406
|
resolver: z.ZodOptional<z.ZodString>;
|
|
408
407
|
reason: z.ZodString;
|
|
409
408
|
}, z.core.$strip>, z.ZodObject<{
|
|
410
|
-
schema_version: z.
|
|
409
|
+
schema_version: z.ZodString;
|
|
411
410
|
id: z.ZodString & z.ZodType<`evt_${string}`, string, z.core.$ZodTypeInternals<`evt_${string}`, string>>;
|
|
412
411
|
session_id: z.ZodString & z.ZodType<`ses_${string}`, string, z.core.$ZodTypeInternals<`ses_${string}`, string>>;
|
|
413
412
|
occurred_at: z.ZodString;
|
|
@@ -416,7 +415,7 @@ declare const SessionImportPayloadSchema: z.ZodObject<{
|
|
|
416
415
|
type: z.ZodLiteral<"approval_expired">;
|
|
417
416
|
approval_id: z.ZodString & z.ZodType<`appr_${string}`, string, z.core.$ZodTypeInternals<`appr_${string}`, string>>;
|
|
418
417
|
}, z.core.$strip>, z.ZodObject<{
|
|
419
|
-
schema_version: z.
|
|
418
|
+
schema_version: z.ZodString;
|
|
420
419
|
id: z.ZodString & z.ZodType<`evt_${string}`, string, z.core.$ZodTypeInternals<`evt_${string}`, string>>;
|
|
421
420
|
session_id: z.ZodString & z.ZodType<`ses_${string}`, string, z.core.$ZodTypeInternals<`ses_${string}`, string>>;
|
|
422
421
|
occurred_at: z.ZodString;
|
|
@@ -431,7 +430,7 @@ declare const SessionImportPayloadSchema: z.ZodObject<{
|
|
|
431
430
|
received_signal: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
432
431
|
duration_ms: z.ZodNumber;
|
|
433
432
|
}, z.core.$strip>, z.ZodObject<{
|
|
434
|
-
schema_version: z.
|
|
433
|
+
schema_version: z.ZodString;
|
|
435
434
|
id: z.ZodString & z.ZodType<`evt_${string}`, string, z.core.$ZodTypeInternals<`evt_${string}`, string>>;
|
|
436
435
|
session_id: z.ZodString & z.ZodType<`ses_${string}`, string, z.core.$ZodTypeInternals<`ses_${string}`, string>>;
|
|
437
436
|
occurred_at: z.ZodString;
|
|
@@ -447,7 +446,7 @@ declare const SessionImportPayloadSchema: z.ZodObject<{
|
|
|
447
446
|
ahead: z.ZodOptional<z.ZodNumber>;
|
|
448
447
|
behind: z.ZodOptional<z.ZodNumber>;
|
|
449
448
|
}, z.core.$strip>, z.ZodObject<{
|
|
450
|
-
schema_version: z.
|
|
449
|
+
schema_version: z.ZodString;
|
|
451
450
|
id: z.ZodString & z.ZodType<`evt_${string}`, string, z.core.$ZodTypeInternals<`evt_${string}`, string>>;
|
|
452
451
|
session_id: z.ZodString & z.ZodType<`ses_${string}`, string, z.core.$ZodTypeInternals<`ses_${string}`, string>>;
|
|
453
452
|
occurred_at: z.ZodString;
|
|
@@ -463,7 +462,7 @@ declare const SessionImportPayloadSchema: z.ZodObject<{
|
|
|
463
462
|
}>;
|
|
464
463
|
old_path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
465
464
|
}, z.core.$strip>, z.ZodObject<{
|
|
466
|
-
schema_version: z.
|
|
465
|
+
schema_version: z.ZodString;
|
|
467
466
|
id: z.ZodString & z.ZodType<`evt_${string}`, string, z.core.$ZodTypeInternals<`evt_${string}`, string>>;
|
|
468
467
|
session_id: z.ZodString & z.ZodType<`ses_${string}`, string, z.core.$ZodTypeInternals<`ses_${string}`, string>>;
|
|
469
468
|
occurred_at: z.ZodString;
|
|
@@ -482,7 +481,7 @@ declare const SessionImportPayloadSchema: z.ZodObject<{
|
|
|
482
481
|
track: "track";
|
|
483
482
|
}>>;
|
|
484
483
|
}, z.core.$strip>, z.ZodObject<{
|
|
485
|
-
schema_version: z.
|
|
484
|
+
schema_version: z.ZodString;
|
|
486
485
|
id: z.ZodString & z.ZodType<`evt_${string}`, string, z.core.$ZodTypeInternals<`evt_${string}`, string>>;
|
|
487
486
|
session_id: z.ZodString & z.ZodType<`ses_${string}`, string, z.core.$ZodTypeInternals<`ses_${string}`, string>>;
|
|
488
487
|
occurred_at: z.ZodString;
|
|
@@ -493,7 +492,7 @@ declare const SessionImportPayloadSchema: z.ZodObject<{
|
|
|
493
492
|
reason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
494
493
|
superseded_by: z.ZodOptional<z.ZodString & z.ZodType<`decision_${string}`, string, z.core.$ZodTypeInternals<`decision_${string}`, string>>>;
|
|
495
494
|
}, z.core.$strip>, z.ZodObject<{
|
|
496
|
-
schema_version: z.
|
|
495
|
+
schema_version: z.ZodString;
|
|
497
496
|
id: z.ZodString & z.ZodType<`evt_${string}`, string, z.core.$ZodTypeInternals<`evt_${string}`, string>>;
|
|
498
497
|
session_id: z.ZodString & z.ZodType<`ses_${string}`, string, z.core.$ZodTypeInternals<`ses_${string}`, string>>;
|
|
499
498
|
occurred_at: z.ZodString;
|
|
@@ -503,7 +502,7 @@ declare const SessionImportPayloadSchema: z.ZodObject<{
|
|
|
503
502
|
task_id: z.ZodString & z.ZodType<`task_${string}`, string, z.core.$ZodTypeInternals<`task_${string}`, string>>;
|
|
504
503
|
title: z.ZodString;
|
|
505
504
|
}, z.core.$strip>, z.ZodObject<{
|
|
506
|
-
schema_version: z.
|
|
505
|
+
schema_version: z.ZodString;
|
|
507
506
|
id: z.ZodString & z.ZodType<`evt_${string}`, string, z.core.$ZodTypeInternals<`evt_${string}`, string>>;
|
|
508
507
|
session_id: z.ZodString & z.ZodType<`ses_${string}`, string, z.core.$ZodTypeInternals<`ses_${string}`, string>>;
|
|
509
508
|
occurred_at: z.ZodString;
|
|
@@ -514,7 +513,7 @@ declare const SessionImportPayloadSchema: z.ZodObject<{
|
|
|
514
513
|
from: z.ZodString;
|
|
515
514
|
to: z.ZodString;
|
|
516
515
|
}, z.core.$strip>, z.ZodObject<{
|
|
517
|
-
schema_version: z.
|
|
516
|
+
schema_version: z.ZodString;
|
|
518
517
|
id: z.ZodString & z.ZodType<`evt_${string}`, string, z.core.$ZodTypeInternals<`evt_${string}`, string>>;
|
|
519
518
|
session_id: z.ZodString & z.ZodType<`ses_${string}`, string, z.core.$ZodTypeInternals<`ses_${string}`, string>>;
|
|
520
519
|
occurred_at: z.ZodString;
|
|
@@ -526,7 +525,7 @@ declare const SessionImportPayloadSchema: z.ZodObject<{
|
|
|
526
525
|
created_in_session_replacement: z.ZodDefault<z.ZodNullable<z.ZodString & z.ZodType<`ses_${string}`, string, z.core.$ZodTypeInternals<`ses_${string}`, string>>>>;
|
|
527
526
|
removed_linked_sessions: z.ZodDefault<z.ZodArray<z.ZodString & z.ZodType<`ses_${string}`, string, z.core.$ZodTypeInternals<`ses_${string}`, string>>>>;
|
|
528
527
|
}, z.core.$strict>, z.ZodObject<{
|
|
529
|
-
schema_version: z.
|
|
528
|
+
schema_version: z.ZodString;
|
|
530
529
|
id: z.ZodString & z.ZodType<`evt_${string}`, string, z.core.$ZodTypeInternals<`evt_${string}`, string>>;
|
|
531
530
|
session_id: z.ZodString & z.ZodType<`ses_${string}`, string, z.core.$ZodTypeInternals<`ses_${string}`, string>>;
|
|
532
531
|
occurred_at: z.ZodString;
|
|
@@ -538,7 +537,7 @@ declare const SessionImportPayloadSchema: z.ZodObject<{
|
|
|
538
537
|
removed_linked_sessions: z.ZodDefault<z.ZodArray<z.ZodString & z.ZodType<`ses_${string}`, string, z.core.$ZodTypeInternals<`ses_${string}`, string>>>>;
|
|
539
538
|
final_count: z.ZodOptional<z.ZodNumber>;
|
|
540
539
|
}, z.core.$strict>, z.ZodObject<{
|
|
541
|
-
schema_version: z.
|
|
540
|
+
schema_version: z.ZodString;
|
|
542
541
|
id: z.ZodString & z.ZodType<`evt_${string}`, string, z.core.$ZodTypeInternals<`evt_${string}`, string>>;
|
|
543
542
|
session_id: z.ZodString & z.ZodType<`ses_${string}`, string, z.core.$ZodTypeInternals<`ses_${string}`, string>>;
|
|
544
543
|
occurred_at: z.ZodString;
|
|
@@ -548,7 +547,7 @@ declare const SessionImportPayloadSchema: z.ZodObject<{
|
|
|
548
547
|
task_id: z.ZodString & z.ZodType<`task_${string}`, string, z.core.$ZodTypeInternals<`task_${string}`, string>>;
|
|
549
548
|
title: z.ZodString;
|
|
550
549
|
}, z.core.$strict>, z.ZodObject<{
|
|
551
|
-
schema_version: z.
|
|
550
|
+
schema_version: z.ZodString;
|
|
552
551
|
id: z.ZodString & z.ZodType<`evt_${string}`, string, z.core.$ZodTypeInternals<`evt_${string}`, string>>;
|
|
553
552
|
session_id: z.ZodString & z.ZodType<`ses_${string}`, string, z.core.$ZodTypeInternals<`ses_${string}`, string>>;
|
|
554
553
|
occurred_at: z.ZodString;
|
|
@@ -558,7 +557,7 @@ declare const SessionImportPayloadSchema: z.ZodObject<{
|
|
|
558
557
|
task_id: z.ZodString & z.ZodType<`task_${string}`, string, z.core.$ZodTypeInternals<`task_${string}`, string>>;
|
|
559
558
|
title: z.ZodString;
|
|
560
559
|
}, z.core.$strict>, z.ZodObject<{
|
|
561
|
-
schema_version: z.
|
|
560
|
+
schema_version: z.ZodString;
|
|
562
561
|
id: z.ZodString & z.ZodType<`evt_${string}`, string, z.core.$ZodTypeInternals<`evt_${string}`, string>>;
|
|
563
562
|
session_id: z.ZodString & z.ZodType<`ses_${string}`, string, z.core.$ZodTypeInternals<`ses_${string}`, string>>;
|
|
564
563
|
occurred_at: z.ZodString;
|
|
@@ -571,7 +570,7 @@ declare const SessionImportPayloadSchema: z.ZodObject<{
|
|
|
571
570
|
next_step: "next_step";
|
|
572
571
|
}>>;
|
|
573
572
|
}, z.core.$strip>, z.ZodObject<{
|
|
574
|
-
schema_version: z.
|
|
573
|
+
schema_version: z.ZodString;
|
|
575
574
|
id: z.ZodString & z.ZodType<`evt_${string}`, string, z.core.$ZodTypeInternals<`evt_${string}`, string>>;
|
|
576
575
|
session_id: z.ZodString & z.ZodType<`ses_${string}`, string, z.core.$ZodTypeInternals<`ses_${string}`, string>>;
|
|
577
576
|
occurred_at: z.ZodString;
|
|
@@ -604,7 +603,7 @@ declare const SessionImportPayloadSchema: z.ZodObject<{
|
|
|
604
603
|
why: z.ZodOptional<z.ZodString>;
|
|
605
604
|
}, z.core.$strip>>>;
|
|
606
605
|
}, z.core.$strip>, z.ZodObject<{
|
|
607
|
-
schema_version: z.
|
|
606
|
+
schema_version: z.ZodString;
|
|
608
607
|
id: z.ZodString & z.ZodType<`evt_${string}`, string, z.core.$ZodTypeInternals<`evt_${string}`, string>>;
|
|
609
608
|
session_id: z.ZodString & z.ZodType<`ses_${string}`, string, z.core.$ZodTypeInternals<`ses_${string}`, string>>;
|
|
610
609
|
occurred_at: z.ZodString;
|
|
@@ -917,7 +916,7 @@ type ApprovalStatus = z.infer<typeof ApprovalStatusSchema>;
|
|
|
917
916
|
* event variant.
|
|
918
917
|
*/
|
|
919
918
|
declare const ApprovalSchema: z.ZodObject<{
|
|
920
|
-
schema_version: z.
|
|
919
|
+
schema_version: z.ZodString;
|
|
921
920
|
id: z.ZodString & z.ZodType<`appr_${string}`, string, z.core.$ZodTypeInternals<`appr_${string}`, string>>;
|
|
922
921
|
session_id: z.ZodString & z.ZodType<`ses_${string}`, string, z.core.$ZodTypeInternals<`ses_${string}`, string>>;
|
|
923
922
|
created_at: z.ZodString;
|
|
@@ -942,7 +941,7 @@ declare const ApprovalSchema: z.ZodObject<{
|
|
|
942
941
|
resolved_at: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
943
942
|
note: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
944
943
|
rejection_reason: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
945
|
-
}, z.core.$
|
|
944
|
+
}, z.core.$loose>;
|
|
946
945
|
/** Inferred runtime type for {@link ApprovalSchema}. */
|
|
947
946
|
type Approval = z.infer<typeof ApprovalSchema>;
|
|
948
947
|
|
|
@@ -1049,7 +1048,7 @@ declare function enumerateApprovals(paths: BasouPaths): Promise<{
|
|
|
1049
1048
|
declare function isLazyExpired(approval: Approval, now: Date): boolean;
|
|
1050
1049
|
|
|
1051
1050
|
declare const SessionStartedEventSchema: z.ZodObject<{
|
|
1052
|
-
schema_version: z.
|
|
1051
|
+
schema_version: z.ZodString;
|
|
1053
1052
|
id: z.ZodString & z.ZodType<`evt_${string}`, string, z.core.$ZodTypeInternals<`evt_${string}`, string>>;
|
|
1054
1053
|
session_id: z.ZodString & z.ZodType<`ses_${string}`, string, z.core.$ZodTypeInternals<`ses_${string}`, string>>;
|
|
1055
1054
|
occurred_at: z.ZodString;
|
|
@@ -1058,7 +1057,7 @@ declare const SessionStartedEventSchema: z.ZodObject<{
|
|
|
1058
1057
|
type: z.ZodLiteral<"session_started">;
|
|
1059
1058
|
}, z.core.$strip>;
|
|
1060
1059
|
declare const SessionEndedEventSchema: z.ZodObject<{
|
|
1061
|
-
schema_version: z.
|
|
1060
|
+
schema_version: z.ZodString;
|
|
1062
1061
|
id: z.ZodString & z.ZodType<`evt_${string}`, string, z.core.$ZodTypeInternals<`evt_${string}`, string>>;
|
|
1063
1062
|
session_id: z.ZodString & z.ZodType<`ses_${string}`, string, z.core.$ZodTypeInternals<`ses_${string}`, string>>;
|
|
1064
1063
|
occurred_at: z.ZodString;
|
|
@@ -1068,7 +1067,7 @@ declare const SessionEndedEventSchema: z.ZodObject<{
|
|
|
1068
1067
|
exit_code: z.ZodOptional<z.ZodNumber>;
|
|
1069
1068
|
}, z.core.$strip>;
|
|
1070
1069
|
declare const SessionStatusChangedEventSchema: z.ZodObject<{
|
|
1071
|
-
schema_version: z.
|
|
1070
|
+
schema_version: z.ZodString;
|
|
1072
1071
|
id: z.ZodString & z.ZodType<`evt_${string}`, string, z.core.$ZodTypeInternals<`evt_${string}`, string>>;
|
|
1073
1072
|
session_id: z.ZodString & z.ZodType<`ses_${string}`, string, z.core.$ZodTypeInternals<`ses_${string}`, string>>;
|
|
1074
1073
|
occurred_at: z.ZodString;
|
|
@@ -1079,7 +1078,7 @@ declare const SessionStatusChangedEventSchema: z.ZodObject<{
|
|
|
1079
1078
|
to: z.ZodString;
|
|
1080
1079
|
}, z.core.$strip>;
|
|
1081
1080
|
declare const ApprovalRequestedEventSchema: z.ZodObject<{
|
|
1082
|
-
schema_version: z.
|
|
1081
|
+
schema_version: z.ZodString;
|
|
1083
1082
|
id: z.ZodString & z.ZodType<`evt_${string}`, string, z.core.$ZodTypeInternals<`evt_${string}`, string>>;
|
|
1084
1083
|
session_id: z.ZodString & z.ZodType<`ses_${string}`, string, z.core.$ZodTypeInternals<`ses_${string}`, string>>;
|
|
1085
1084
|
occurred_at: z.ZodString;
|
|
@@ -1101,7 +1100,7 @@ declare const ApprovalRequestedEventSchema: z.ZodObject<{
|
|
|
1101
1100
|
status: z.ZodLiteral<"pending">;
|
|
1102
1101
|
}, z.core.$strip>;
|
|
1103
1102
|
declare const ApprovalApprovedEventSchema: z.ZodObject<{
|
|
1104
|
-
schema_version: z.
|
|
1103
|
+
schema_version: z.ZodString;
|
|
1105
1104
|
id: z.ZodString & z.ZodType<`evt_${string}`, string, z.core.$ZodTypeInternals<`evt_${string}`, string>>;
|
|
1106
1105
|
session_id: z.ZodString & z.ZodType<`ses_${string}`, string, z.core.$ZodTypeInternals<`ses_${string}`, string>>;
|
|
1107
1106
|
occurred_at: z.ZodString;
|
|
@@ -1113,7 +1112,7 @@ declare const ApprovalApprovedEventSchema: z.ZodObject<{
|
|
|
1113
1112
|
note: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1114
1113
|
}, z.core.$strip>;
|
|
1115
1114
|
declare const ApprovalRejectedEventSchema: z.ZodObject<{
|
|
1116
|
-
schema_version: z.
|
|
1115
|
+
schema_version: z.ZodString;
|
|
1117
1116
|
id: z.ZodString & z.ZodType<`evt_${string}`, string, z.core.$ZodTypeInternals<`evt_${string}`, string>>;
|
|
1118
1117
|
session_id: z.ZodString & z.ZodType<`ses_${string}`, string, z.core.$ZodTypeInternals<`ses_${string}`, string>>;
|
|
1119
1118
|
occurred_at: z.ZodString;
|
|
@@ -1125,7 +1124,7 @@ declare const ApprovalRejectedEventSchema: z.ZodObject<{
|
|
|
1125
1124
|
reason: z.ZodString;
|
|
1126
1125
|
}, z.core.$strip>;
|
|
1127
1126
|
declare const ApprovalExpiredEventSchema: z.ZodObject<{
|
|
1128
|
-
schema_version: z.
|
|
1127
|
+
schema_version: z.ZodString;
|
|
1129
1128
|
id: z.ZodString & z.ZodType<`evt_${string}`, string, z.core.$ZodTypeInternals<`evt_${string}`, string>>;
|
|
1130
1129
|
session_id: z.ZodString & z.ZodType<`ses_${string}`, string, z.core.$ZodTypeInternals<`ses_${string}`, string>>;
|
|
1131
1130
|
occurred_at: z.ZodString;
|
|
@@ -1135,7 +1134,7 @@ declare const ApprovalExpiredEventSchema: z.ZodObject<{
|
|
|
1135
1134
|
approval_id: z.ZodString & z.ZodType<`appr_${string}`, string, z.core.$ZodTypeInternals<`appr_${string}`, string>>;
|
|
1136
1135
|
}, z.core.$strip>;
|
|
1137
1136
|
declare const CommandExecutedEventSchema: z.ZodObject<{
|
|
1138
|
-
schema_version: z.
|
|
1137
|
+
schema_version: z.ZodString;
|
|
1139
1138
|
id: z.ZodString & z.ZodType<`evt_${string}`, string, z.core.$ZodTypeInternals<`evt_${string}`, string>>;
|
|
1140
1139
|
session_id: z.ZodString & z.ZodType<`ses_${string}`, string, z.core.$ZodTypeInternals<`ses_${string}`, string>>;
|
|
1141
1140
|
occurred_at: z.ZodString;
|
|
@@ -1151,7 +1150,7 @@ declare const CommandExecutedEventSchema: z.ZodObject<{
|
|
|
1151
1150
|
duration_ms: z.ZodNumber;
|
|
1152
1151
|
}, z.core.$strip>;
|
|
1153
1152
|
declare const GitSnapshotEventSchema: z.ZodObject<{
|
|
1154
|
-
schema_version: z.
|
|
1153
|
+
schema_version: z.ZodString;
|
|
1155
1154
|
id: z.ZodString & z.ZodType<`evt_${string}`, string, z.core.$ZodTypeInternals<`evt_${string}`, string>>;
|
|
1156
1155
|
session_id: z.ZodString & z.ZodType<`ses_${string}`, string, z.core.$ZodTypeInternals<`ses_${string}`, string>>;
|
|
1157
1156
|
occurred_at: z.ZodString;
|
|
@@ -1168,7 +1167,7 @@ declare const GitSnapshotEventSchema: z.ZodObject<{
|
|
|
1168
1167
|
behind: z.ZodOptional<z.ZodNumber>;
|
|
1169
1168
|
}, z.core.$strip>;
|
|
1170
1169
|
declare const FileChangedEventSchema: z.ZodObject<{
|
|
1171
|
-
schema_version: z.
|
|
1170
|
+
schema_version: z.ZodString;
|
|
1172
1171
|
id: z.ZodString & z.ZodType<`evt_${string}`, string, z.core.$ZodTypeInternals<`evt_${string}`, string>>;
|
|
1173
1172
|
session_id: z.ZodString & z.ZodType<`ses_${string}`, string, z.core.$ZodTypeInternals<`ses_${string}`, string>>;
|
|
1174
1173
|
occurred_at: z.ZodString;
|
|
@@ -1185,7 +1184,7 @@ declare const FileChangedEventSchema: z.ZodObject<{
|
|
|
1185
1184
|
old_path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1186
1185
|
}, z.core.$strip>;
|
|
1187
1186
|
declare const DecisionRecordedEventSchema: z.ZodObject<{
|
|
1188
|
-
schema_version: z.
|
|
1187
|
+
schema_version: z.ZodString;
|
|
1189
1188
|
id: z.ZodString & z.ZodType<`evt_${string}`, string, z.core.$ZodTypeInternals<`evt_${string}`, string>>;
|
|
1190
1189
|
session_id: z.ZodString & z.ZodType<`ses_${string}`, string, z.core.$ZodTypeInternals<`ses_${string}`, string>>;
|
|
1191
1190
|
occurred_at: z.ZodString;
|
|
@@ -1205,7 +1204,7 @@ declare const DecisionRecordedEventSchema: z.ZodObject<{
|
|
|
1205
1204
|
}>>;
|
|
1206
1205
|
}, z.core.$strip>;
|
|
1207
1206
|
declare const TaskCreatedEventSchema: z.ZodObject<{
|
|
1208
|
-
schema_version: z.
|
|
1207
|
+
schema_version: z.ZodString;
|
|
1209
1208
|
id: z.ZodString & z.ZodType<`evt_${string}`, string, z.core.$ZodTypeInternals<`evt_${string}`, string>>;
|
|
1210
1209
|
session_id: z.ZodString & z.ZodType<`ses_${string}`, string, z.core.$ZodTypeInternals<`ses_${string}`, string>>;
|
|
1211
1210
|
occurred_at: z.ZodString;
|
|
@@ -1216,7 +1215,7 @@ declare const TaskCreatedEventSchema: z.ZodObject<{
|
|
|
1216
1215
|
title: z.ZodString;
|
|
1217
1216
|
}, z.core.$strip>;
|
|
1218
1217
|
declare const TaskStatusChangedEventSchema: z.ZodObject<{
|
|
1219
|
-
schema_version: z.
|
|
1218
|
+
schema_version: z.ZodString;
|
|
1220
1219
|
id: z.ZodString & z.ZodType<`evt_${string}`, string, z.core.$ZodTypeInternals<`evt_${string}`, string>>;
|
|
1221
1220
|
session_id: z.ZodString & z.ZodType<`ses_${string}`, string, z.core.$ZodTypeInternals<`ses_${string}`, string>>;
|
|
1222
1221
|
occurred_at: z.ZodString;
|
|
@@ -1228,7 +1227,7 @@ declare const TaskStatusChangedEventSchema: z.ZodObject<{
|
|
|
1228
1227
|
to: z.ZodString;
|
|
1229
1228
|
}, z.core.$strip>;
|
|
1230
1229
|
declare const TaskReconciledEventSchema: z.ZodObject<{
|
|
1231
|
-
schema_version: z.
|
|
1230
|
+
schema_version: z.ZodString;
|
|
1232
1231
|
id: z.ZodString & z.ZodType<`evt_${string}`, string, z.core.$ZodTypeInternals<`evt_${string}`, string>>;
|
|
1233
1232
|
session_id: z.ZodString & z.ZodType<`ses_${string}`, string, z.core.$ZodTypeInternals<`ses_${string}`, string>>;
|
|
1234
1233
|
occurred_at: z.ZodString;
|
|
@@ -1241,7 +1240,7 @@ declare const TaskReconciledEventSchema: z.ZodObject<{
|
|
|
1241
1240
|
removed_linked_sessions: z.ZodDefault<z.ZodArray<z.ZodString & z.ZodType<`ses_${string}`, string, z.core.$ZodTypeInternals<`ses_${string}`, string>>>>;
|
|
1242
1241
|
}, z.core.$strict>;
|
|
1243
1242
|
declare const TaskLinkageRefreshedEventSchema: z.ZodObject<{
|
|
1244
|
-
schema_version: z.
|
|
1243
|
+
schema_version: z.ZodString;
|
|
1245
1244
|
id: z.ZodString & z.ZodType<`evt_${string}`, string, z.core.$ZodTypeInternals<`evt_${string}`, string>>;
|
|
1246
1245
|
session_id: z.ZodString & z.ZodType<`ses_${string}`, string, z.core.$ZodTypeInternals<`ses_${string}`, string>>;
|
|
1247
1246
|
occurred_at: z.ZodString;
|
|
@@ -1254,7 +1253,7 @@ declare const TaskLinkageRefreshedEventSchema: z.ZodObject<{
|
|
|
1254
1253
|
final_count: z.ZodOptional<z.ZodNumber>;
|
|
1255
1254
|
}, z.core.$strict>;
|
|
1256
1255
|
declare const TaskDeletedEventSchema: z.ZodObject<{
|
|
1257
|
-
schema_version: z.
|
|
1256
|
+
schema_version: z.ZodString;
|
|
1258
1257
|
id: z.ZodString & z.ZodType<`evt_${string}`, string, z.core.$ZodTypeInternals<`evt_${string}`, string>>;
|
|
1259
1258
|
session_id: z.ZodString & z.ZodType<`ses_${string}`, string, z.core.$ZodTypeInternals<`ses_${string}`, string>>;
|
|
1260
1259
|
occurred_at: z.ZodString;
|
|
@@ -1265,7 +1264,7 @@ declare const TaskDeletedEventSchema: z.ZodObject<{
|
|
|
1265
1264
|
title: z.ZodString;
|
|
1266
1265
|
}, z.core.$strict>;
|
|
1267
1266
|
declare const TaskArchivedEventSchema: z.ZodObject<{
|
|
1268
|
-
schema_version: z.
|
|
1267
|
+
schema_version: z.ZodString;
|
|
1269
1268
|
id: z.ZodString & z.ZodType<`evt_${string}`, string, z.core.$ZodTypeInternals<`evt_${string}`, string>>;
|
|
1270
1269
|
session_id: z.ZodString & z.ZodType<`ses_${string}`, string, z.core.$ZodTypeInternals<`ses_${string}`, string>>;
|
|
1271
1270
|
occurred_at: z.ZodString;
|
|
@@ -1276,7 +1275,7 @@ declare const TaskArchivedEventSchema: z.ZodObject<{
|
|
|
1276
1275
|
title: z.ZodString;
|
|
1277
1276
|
}, z.core.$strict>;
|
|
1278
1277
|
declare const NoteAddedEventSchema: z.ZodObject<{
|
|
1279
|
-
schema_version: z.
|
|
1278
|
+
schema_version: z.ZodString;
|
|
1280
1279
|
id: z.ZodString & z.ZodType<`evt_${string}`, string, z.core.$ZodTypeInternals<`evt_${string}`, string>>;
|
|
1281
1280
|
session_id: z.ZodString & z.ZodType<`ses_${string}`, string, z.core.$ZodTypeInternals<`ses_${string}`, string>>;
|
|
1282
1281
|
occurred_at: z.ZodString;
|
|
@@ -1308,7 +1307,7 @@ declare const ReviewBlockedSchema: z.ZodObject<{
|
|
|
1308
1307
|
why: z.ZodOptional<z.ZodString>;
|
|
1309
1308
|
}, z.core.$strip>;
|
|
1310
1309
|
declare const ReviewRecordedEventSchema: z.ZodObject<{
|
|
1311
|
-
schema_version: z.
|
|
1310
|
+
schema_version: z.ZodString;
|
|
1312
1311
|
id: z.ZodString & z.ZodType<`evt_${string}`, string, z.core.$ZodTypeInternals<`evt_${string}`, string>>;
|
|
1313
1312
|
session_id: z.ZodString & z.ZodType<`ses_${string}`, string, z.core.$ZodTypeInternals<`ses_${string}`, string>>;
|
|
1314
1313
|
occurred_at: z.ZodString;
|
|
@@ -1342,7 +1341,7 @@ declare const ReviewRecordedEventSchema: z.ZodObject<{
|
|
|
1342
1341
|
}, z.core.$strip>>>;
|
|
1343
1342
|
}, z.core.$strip>;
|
|
1344
1343
|
declare const AdapterOutputEventSchema: z.ZodObject<{
|
|
1345
|
-
schema_version: z.
|
|
1344
|
+
schema_version: z.ZodString;
|
|
1346
1345
|
id: z.ZodString & z.ZodType<`evt_${string}`, string, z.core.$ZodTypeInternals<`evt_${string}`, string>>;
|
|
1347
1346
|
session_id: z.ZodString & z.ZodType<`ses_${string}`, string, z.core.$ZodTypeInternals<`ses_${string}`, string>>;
|
|
1348
1347
|
occurred_at: z.ZodString;
|
|
@@ -1363,7 +1362,7 @@ declare const AdapterOutputEventSchema: z.ZodObject<{
|
|
|
1363
1362
|
* variant is uniquely strict to bar raw adapter bodies.
|
|
1364
1363
|
*/
|
|
1365
1364
|
declare const EventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1366
|
-
schema_version: z.
|
|
1365
|
+
schema_version: z.ZodString;
|
|
1367
1366
|
id: z.ZodString & z.ZodType<`evt_${string}`, string, z.core.$ZodTypeInternals<`evt_${string}`, string>>;
|
|
1368
1367
|
session_id: z.ZodString & z.ZodType<`ses_${string}`, string, z.core.$ZodTypeInternals<`ses_${string}`, string>>;
|
|
1369
1368
|
occurred_at: z.ZodString;
|
|
@@ -1371,7 +1370,7 @@ declare const EventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
1371
1370
|
prev_hash: z.ZodOptional<z.ZodString>;
|
|
1372
1371
|
type: z.ZodLiteral<"session_started">;
|
|
1373
1372
|
}, z.core.$strip>, z.ZodObject<{
|
|
1374
|
-
schema_version: z.
|
|
1373
|
+
schema_version: z.ZodString;
|
|
1375
1374
|
id: z.ZodString & z.ZodType<`evt_${string}`, string, z.core.$ZodTypeInternals<`evt_${string}`, string>>;
|
|
1376
1375
|
session_id: z.ZodString & z.ZodType<`ses_${string}`, string, z.core.$ZodTypeInternals<`ses_${string}`, string>>;
|
|
1377
1376
|
occurred_at: z.ZodString;
|
|
@@ -1380,7 +1379,7 @@ declare const EventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
1380
1379
|
type: z.ZodLiteral<"session_ended">;
|
|
1381
1380
|
exit_code: z.ZodOptional<z.ZodNumber>;
|
|
1382
1381
|
}, z.core.$strip>, z.ZodObject<{
|
|
1383
|
-
schema_version: z.
|
|
1382
|
+
schema_version: z.ZodString;
|
|
1384
1383
|
id: z.ZodString & z.ZodType<`evt_${string}`, string, z.core.$ZodTypeInternals<`evt_${string}`, string>>;
|
|
1385
1384
|
session_id: z.ZodString & z.ZodType<`ses_${string}`, string, z.core.$ZodTypeInternals<`ses_${string}`, string>>;
|
|
1386
1385
|
occurred_at: z.ZodString;
|
|
@@ -1390,7 +1389,7 @@ declare const EventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
1390
1389
|
from: z.ZodString;
|
|
1391
1390
|
to: z.ZodString;
|
|
1392
1391
|
}, z.core.$strip>, z.ZodObject<{
|
|
1393
|
-
schema_version: z.
|
|
1392
|
+
schema_version: z.ZodString;
|
|
1394
1393
|
id: z.ZodString & z.ZodType<`evt_${string}`, string, z.core.$ZodTypeInternals<`evt_${string}`, string>>;
|
|
1395
1394
|
session_id: z.ZodString & z.ZodType<`ses_${string}`, string, z.core.$ZodTypeInternals<`ses_${string}`, string>>;
|
|
1396
1395
|
occurred_at: z.ZodString;
|
|
@@ -1411,7 +1410,7 @@ declare const EventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
1411
1410
|
reason: z.ZodString;
|
|
1412
1411
|
status: z.ZodLiteral<"pending">;
|
|
1413
1412
|
}, z.core.$strip>, z.ZodObject<{
|
|
1414
|
-
schema_version: z.
|
|
1413
|
+
schema_version: z.ZodString;
|
|
1415
1414
|
id: z.ZodString & z.ZodType<`evt_${string}`, string, z.core.$ZodTypeInternals<`evt_${string}`, string>>;
|
|
1416
1415
|
session_id: z.ZodString & z.ZodType<`ses_${string}`, string, z.core.$ZodTypeInternals<`ses_${string}`, string>>;
|
|
1417
1416
|
occurred_at: z.ZodString;
|
|
@@ -1422,7 +1421,7 @@ declare const EventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
1422
1421
|
resolver: z.ZodOptional<z.ZodString>;
|
|
1423
1422
|
note: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1424
1423
|
}, z.core.$strip>, z.ZodObject<{
|
|
1425
|
-
schema_version: z.
|
|
1424
|
+
schema_version: z.ZodString;
|
|
1426
1425
|
id: z.ZodString & z.ZodType<`evt_${string}`, string, z.core.$ZodTypeInternals<`evt_${string}`, string>>;
|
|
1427
1426
|
session_id: z.ZodString & z.ZodType<`ses_${string}`, string, z.core.$ZodTypeInternals<`ses_${string}`, string>>;
|
|
1428
1427
|
occurred_at: z.ZodString;
|
|
@@ -1433,7 +1432,7 @@ declare const EventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
1433
1432
|
resolver: z.ZodOptional<z.ZodString>;
|
|
1434
1433
|
reason: z.ZodString;
|
|
1435
1434
|
}, z.core.$strip>, z.ZodObject<{
|
|
1436
|
-
schema_version: z.
|
|
1435
|
+
schema_version: z.ZodString;
|
|
1437
1436
|
id: z.ZodString & z.ZodType<`evt_${string}`, string, z.core.$ZodTypeInternals<`evt_${string}`, string>>;
|
|
1438
1437
|
session_id: z.ZodString & z.ZodType<`ses_${string}`, string, z.core.$ZodTypeInternals<`ses_${string}`, string>>;
|
|
1439
1438
|
occurred_at: z.ZodString;
|
|
@@ -1442,7 +1441,7 @@ declare const EventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
1442
1441
|
type: z.ZodLiteral<"approval_expired">;
|
|
1443
1442
|
approval_id: z.ZodString & z.ZodType<`appr_${string}`, string, z.core.$ZodTypeInternals<`appr_${string}`, string>>;
|
|
1444
1443
|
}, z.core.$strip>, z.ZodObject<{
|
|
1445
|
-
schema_version: z.
|
|
1444
|
+
schema_version: z.ZodString;
|
|
1446
1445
|
id: z.ZodString & z.ZodType<`evt_${string}`, string, z.core.$ZodTypeInternals<`evt_${string}`, string>>;
|
|
1447
1446
|
session_id: z.ZodString & z.ZodType<`ses_${string}`, string, z.core.$ZodTypeInternals<`ses_${string}`, string>>;
|
|
1448
1447
|
occurred_at: z.ZodString;
|
|
@@ -1457,7 +1456,7 @@ declare const EventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
1457
1456
|
received_signal: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1458
1457
|
duration_ms: z.ZodNumber;
|
|
1459
1458
|
}, z.core.$strip>, z.ZodObject<{
|
|
1460
|
-
schema_version: z.
|
|
1459
|
+
schema_version: z.ZodString;
|
|
1461
1460
|
id: z.ZodString & z.ZodType<`evt_${string}`, string, z.core.$ZodTypeInternals<`evt_${string}`, string>>;
|
|
1462
1461
|
session_id: z.ZodString & z.ZodType<`ses_${string}`, string, z.core.$ZodTypeInternals<`ses_${string}`, string>>;
|
|
1463
1462
|
occurred_at: z.ZodString;
|
|
@@ -1473,7 +1472,7 @@ declare const EventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
1473
1472
|
ahead: z.ZodOptional<z.ZodNumber>;
|
|
1474
1473
|
behind: z.ZodOptional<z.ZodNumber>;
|
|
1475
1474
|
}, z.core.$strip>, z.ZodObject<{
|
|
1476
|
-
schema_version: z.
|
|
1475
|
+
schema_version: z.ZodString;
|
|
1477
1476
|
id: z.ZodString & z.ZodType<`evt_${string}`, string, z.core.$ZodTypeInternals<`evt_${string}`, string>>;
|
|
1478
1477
|
session_id: z.ZodString & z.ZodType<`ses_${string}`, string, z.core.$ZodTypeInternals<`ses_${string}`, string>>;
|
|
1479
1478
|
occurred_at: z.ZodString;
|
|
@@ -1489,7 +1488,7 @@ declare const EventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
1489
1488
|
}>;
|
|
1490
1489
|
old_path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1491
1490
|
}, z.core.$strip>, z.ZodObject<{
|
|
1492
|
-
schema_version: z.
|
|
1491
|
+
schema_version: z.ZodString;
|
|
1493
1492
|
id: z.ZodString & z.ZodType<`evt_${string}`, string, z.core.$ZodTypeInternals<`evt_${string}`, string>>;
|
|
1494
1493
|
session_id: z.ZodString & z.ZodType<`ses_${string}`, string, z.core.$ZodTypeInternals<`ses_${string}`, string>>;
|
|
1495
1494
|
occurred_at: z.ZodString;
|
|
@@ -1508,7 +1507,7 @@ declare const EventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
1508
1507
|
track: "track";
|
|
1509
1508
|
}>>;
|
|
1510
1509
|
}, z.core.$strip>, z.ZodObject<{
|
|
1511
|
-
schema_version: z.
|
|
1510
|
+
schema_version: z.ZodString;
|
|
1512
1511
|
id: z.ZodString & z.ZodType<`evt_${string}`, string, z.core.$ZodTypeInternals<`evt_${string}`, string>>;
|
|
1513
1512
|
session_id: z.ZodString & z.ZodType<`ses_${string}`, string, z.core.$ZodTypeInternals<`ses_${string}`, string>>;
|
|
1514
1513
|
occurred_at: z.ZodString;
|
|
@@ -1519,7 +1518,7 @@ declare const EventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
1519
1518
|
reason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1520
1519
|
superseded_by: z.ZodOptional<z.ZodString & z.ZodType<`decision_${string}`, string, z.core.$ZodTypeInternals<`decision_${string}`, string>>>;
|
|
1521
1520
|
}, z.core.$strip>, z.ZodObject<{
|
|
1522
|
-
schema_version: z.
|
|
1521
|
+
schema_version: z.ZodString;
|
|
1523
1522
|
id: z.ZodString & z.ZodType<`evt_${string}`, string, z.core.$ZodTypeInternals<`evt_${string}`, string>>;
|
|
1524
1523
|
session_id: z.ZodString & z.ZodType<`ses_${string}`, string, z.core.$ZodTypeInternals<`ses_${string}`, string>>;
|
|
1525
1524
|
occurred_at: z.ZodString;
|
|
@@ -1529,7 +1528,7 @@ declare const EventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
1529
1528
|
task_id: z.ZodString & z.ZodType<`task_${string}`, string, z.core.$ZodTypeInternals<`task_${string}`, string>>;
|
|
1530
1529
|
title: z.ZodString;
|
|
1531
1530
|
}, z.core.$strip>, z.ZodObject<{
|
|
1532
|
-
schema_version: z.
|
|
1531
|
+
schema_version: z.ZodString;
|
|
1533
1532
|
id: z.ZodString & z.ZodType<`evt_${string}`, string, z.core.$ZodTypeInternals<`evt_${string}`, string>>;
|
|
1534
1533
|
session_id: z.ZodString & z.ZodType<`ses_${string}`, string, z.core.$ZodTypeInternals<`ses_${string}`, string>>;
|
|
1535
1534
|
occurred_at: z.ZodString;
|
|
@@ -1540,7 +1539,7 @@ declare const EventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
1540
1539
|
from: z.ZodString;
|
|
1541
1540
|
to: z.ZodString;
|
|
1542
1541
|
}, z.core.$strip>, z.ZodObject<{
|
|
1543
|
-
schema_version: z.
|
|
1542
|
+
schema_version: z.ZodString;
|
|
1544
1543
|
id: z.ZodString & z.ZodType<`evt_${string}`, string, z.core.$ZodTypeInternals<`evt_${string}`, string>>;
|
|
1545
1544
|
session_id: z.ZodString & z.ZodType<`ses_${string}`, string, z.core.$ZodTypeInternals<`ses_${string}`, string>>;
|
|
1546
1545
|
occurred_at: z.ZodString;
|
|
@@ -1552,7 +1551,7 @@ declare const EventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
1552
1551
|
created_in_session_replacement: z.ZodDefault<z.ZodNullable<z.ZodString & z.ZodType<`ses_${string}`, string, z.core.$ZodTypeInternals<`ses_${string}`, string>>>>;
|
|
1553
1552
|
removed_linked_sessions: z.ZodDefault<z.ZodArray<z.ZodString & z.ZodType<`ses_${string}`, string, z.core.$ZodTypeInternals<`ses_${string}`, string>>>>;
|
|
1554
1553
|
}, z.core.$strict>, z.ZodObject<{
|
|
1555
|
-
schema_version: z.
|
|
1554
|
+
schema_version: z.ZodString;
|
|
1556
1555
|
id: z.ZodString & z.ZodType<`evt_${string}`, string, z.core.$ZodTypeInternals<`evt_${string}`, string>>;
|
|
1557
1556
|
session_id: z.ZodString & z.ZodType<`ses_${string}`, string, z.core.$ZodTypeInternals<`ses_${string}`, string>>;
|
|
1558
1557
|
occurred_at: z.ZodString;
|
|
@@ -1564,7 +1563,7 @@ declare const EventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
1564
1563
|
removed_linked_sessions: z.ZodDefault<z.ZodArray<z.ZodString & z.ZodType<`ses_${string}`, string, z.core.$ZodTypeInternals<`ses_${string}`, string>>>>;
|
|
1565
1564
|
final_count: z.ZodOptional<z.ZodNumber>;
|
|
1566
1565
|
}, z.core.$strict>, z.ZodObject<{
|
|
1567
|
-
schema_version: z.
|
|
1566
|
+
schema_version: z.ZodString;
|
|
1568
1567
|
id: z.ZodString & z.ZodType<`evt_${string}`, string, z.core.$ZodTypeInternals<`evt_${string}`, string>>;
|
|
1569
1568
|
session_id: z.ZodString & z.ZodType<`ses_${string}`, string, z.core.$ZodTypeInternals<`ses_${string}`, string>>;
|
|
1570
1569
|
occurred_at: z.ZodString;
|
|
@@ -1574,7 +1573,7 @@ declare const EventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
1574
1573
|
task_id: z.ZodString & z.ZodType<`task_${string}`, string, z.core.$ZodTypeInternals<`task_${string}`, string>>;
|
|
1575
1574
|
title: z.ZodString;
|
|
1576
1575
|
}, z.core.$strict>, z.ZodObject<{
|
|
1577
|
-
schema_version: z.
|
|
1576
|
+
schema_version: z.ZodString;
|
|
1578
1577
|
id: z.ZodString & z.ZodType<`evt_${string}`, string, z.core.$ZodTypeInternals<`evt_${string}`, string>>;
|
|
1579
1578
|
session_id: z.ZodString & z.ZodType<`ses_${string}`, string, z.core.$ZodTypeInternals<`ses_${string}`, string>>;
|
|
1580
1579
|
occurred_at: z.ZodString;
|
|
@@ -1584,7 +1583,7 @@ declare const EventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
1584
1583
|
task_id: z.ZodString & z.ZodType<`task_${string}`, string, z.core.$ZodTypeInternals<`task_${string}`, string>>;
|
|
1585
1584
|
title: z.ZodString;
|
|
1586
1585
|
}, z.core.$strict>, z.ZodObject<{
|
|
1587
|
-
schema_version: z.
|
|
1586
|
+
schema_version: z.ZodString;
|
|
1588
1587
|
id: z.ZodString & z.ZodType<`evt_${string}`, string, z.core.$ZodTypeInternals<`evt_${string}`, string>>;
|
|
1589
1588
|
session_id: z.ZodString & z.ZodType<`ses_${string}`, string, z.core.$ZodTypeInternals<`ses_${string}`, string>>;
|
|
1590
1589
|
occurred_at: z.ZodString;
|
|
@@ -1597,7 +1596,7 @@ declare const EventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
1597
1596
|
next_step: "next_step";
|
|
1598
1597
|
}>>;
|
|
1599
1598
|
}, z.core.$strip>, z.ZodObject<{
|
|
1600
|
-
schema_version: z.
|
|
1599
|
+
schema_version: z.ZodString;
|
|
1601
1600
|
id: z.ZodString & z.ZodType<`evt_${string}`, string, z.core.$ZodTypeInternals<`evt_${string}`, string>>;
|
|
1602
1601
|
session_id: z.ZodString & z.ZodType<`ses_${string}`, string, z.core.$ZodTypeInternals<`ses_${string}`, string>>;
|
|
1603
1602
|
occurred_at: z.ZodString;
|
|
@@ -1630,7 +1629,7 @@ declare const EventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
1630
1629
|
why: z.ZodOptional<z.ZodString>;
|
|
1631
1630
|
}, z.core.$strip>>>;
|
|
1632
1631
|
}, z.core.$strip>, z.ZodObject<{
|
|
1633
|
-
schema_version: z.
|
|
1632
|
+
schema_version: z.ZodString;
|
|
1634
1633
|
id: z.ZodString & z.ZodType<`evt_${string}`, string, z.core.$ZodTypeInternals<`evt_${string}`, string>>;
|
|
1635
1634
|
session_id: z.ZodString & z.ZodType<`ses_${string}`, string, z.core.$ZodTypeInternals<`ses_${string}`, string>>;
|
|
1636
1635
|
occurred_at: z.ZodString;
|
|
@@ -1822,11 +1821,11 @@ declare const SessionMetricsSchema: z.ZodObject<{
|
|
|
1822
1821
|
active_intervals: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1823
1822
|
start: z.ZodString;
|
|
1824
1823
|
end: z.ZodString;
|
|
1825
|
-
}, z.core.$
|
|
1824
|
+
}, z.core.$loose>>>;
|
|
1826
1825
|
active_gap_cap_ms: z.ZodOptional<z.ZodNumber>;
|
|
1827
1826
|
active_time_method: z.ZodOptional<z.ZodString>;
|
|
1828
1827
|
machine_active_time_ms: z.ZodOptional<z.ZodNumber>;
|
|
1829
|
-
}, z.core.$
|
|
1828
|
+
}, z.core.$loose>;
|
|
1830
1829
|
/** Inferred runtime type for {@link SessionMetricsSchema}. */
|
|
1831
1830
|
type SessionMetrics = z.infer<typeof SessionMetricsSchema>;
|
|
1832
1831
|
/**
|
|
@@ -1851,7 +1850,7 @@ type SessionIntegrity = z.infer<typeof SessionIntegritySchema>;
|
|
|
1851
1850
|
* `session:` key.
|
|
1852
1851
|
*/
|
|
1853
1852
|
declare const SessionSchema: z.ZodObject<{
|
|
1854
|
-
schema_version: z.
|
|
1853
|
+
schema_version: z.ZodString;
|
|
1855
1854
|
session: z.ZodObject<{
|
|
1856
1855
|
id: z.ZodString & z.ZodType<`ses_${string}`, string, z.core.$ZodTypeInternals<`ses_${string}`, string>>;
|
|
1857
1856
|
label: z.ZodOptional<z.ZodString>;
|
|
@@ -1870,7 +1869,7 @@ declare const SessionSchema: z.ZodObject<{
|
|
|
1870
1869
|
version: z.ZodLiteral<"0.1.0">;
|
|
1871
1870
|
external_id: z.ZodOptional<z.ZodString>;
|
|
1872
1871
|
source_size_bytes: z.ZodOptional<z.ZodNumber>;
|
|
1873
|
-
}, z.core.$
|
|
1872
|
+
}, z.core.$loose>;
|
|
1874
1873
|
started_at: z.ZodString;
|
|
1875
1874
|
ended_at: z.ZodOptional<z.ZodString>;
|
|
1876
1875
|
status: z.ZodEnum<{
|
|
@@ -1888,7 +1887,7 @@ declare const SessionSchema: z.ZodObject<{
|
|
|
1888
1887
|
command: z.ZodString;
|
|
1889
1888
|
args: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
1890
1889
|
exit_code: z.ZodNullable<z.ZodNumber>;
|
|
1891
|
-
}, z.core.$
|
|
1890
|
+
}, z.core.$loose>;
|
|
1892
1891
|
related_files: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
1893
1892
|
events_log: z.ZodDefault<z.ZodString>;
|
|
1894
1893
|
summary: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -1901,17 +1900,17 @@ declare const SessionSchema: z.ZodObject<{
|
|
|
1901
1900
|
active_intervals: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1902
1901
|
start: z.ZodString;
|
|
1903
1902
|
end: z.ZodString;
|
|
1904
|
-
}, z.core.$
|
|
1903
|
+
}, z.core.$loose>>>;
|
|
1905
1904
|
active_gap_cap_ms: z.ZodOptional<z.ZodNumber>;
|
|
1906
1905
|
active_time_method: z.ZodOptional<z.ZodString>;
|
|
1907
1906
|
machine_active_time_ms: z.ZodOptional<z.ZodNumber>;
|
|
1908
|
-
}, z.core.$
|
|
1907
|
+
}, z.core.$loose>>;
|
|
1909
1908
|
integrity: z.ZodOptional<z.ZodObject<{
|
|
1910
1909
|
head_hash: z.ZodString;
|
|
1911
1910
|
event_count: z.ZodNumber;
|
|
1912
1911
|
}, z.core.$strict>>;
|
|
1913
|
-
}, z.core.$
|
|
1914
|
-
}, z.core.$
|
|
1912
|
+
}, z.core.$loose>;
|
|
1913
|
+
}, z.core.$loose>;
|
|
1915
1914
|
/** Inferred runtime type for {@link SessionSchema}. */
|
|
1916
1915
|
type Session = z.infer<typeof SessionSchema>;
|
|
1917
1916
|
|
|
@@ -2643,7 +2642,7 @@ type TaskStatus = z.infer<typeof TaskStatusSchema>;
|
|
|
2643
2642
|
* the file into `task` (this schema) and `body` (the trailing string).
|
|
2644
2643
|
*/
|
|
2645
2644
|
declare const TaskSchema: z.ZodObject<{
|
|
2646
|
-
schema_version: z.
|
|
2645
|
+
schema_version: z.ZodString;
|
|
2647
2646
|
task: z.ZodObject<{
|
|
2648
2647
|
id: z.ZodString & z.ZodType<`task_${string}`, string, z.core.$ZodTypeInternals<`task_${string}`, string>>;
|
|
2649
2648
|
title: z.ZodString;
|
|
@@ -2659,8 +2658,8 @@ declare const TaskSchema: z.ZodObject<{
|
|
|
2659
2658
|
workspace_id: z.ZodString & z.ZodType<`ws_${string}`, string, z.core.$ZodTypeInternals<`ws_${string}`, string>>;
|
|
2660
2659
|
created_in_session: z.ZodString & z.ZodType<`ses_${string}`, string, z.core.$ZodTypeInternals<`ses_${string}`, string>>;
|
|
2661
2660
|
linked_sessions: z.ZodDefault<z.ZodArray<z.ZodString & z.ZodType<`ses_${string}`, string, z.core.$ZodTypeInternals<`ses_${string}`, string>>>>;
|
|
2662
|
-
}, z.core.$
|
|
2663
|
-
}, z.core.$
|
|
2661
|
+
}, z.core.$loose>;
|
|
2662
|
+
}, z.core.$loose>;
|
|
2664
2663
|
/** Inferred runtime type for {@link TaskSchema}. */
|
|
2665
2664
|
type Task = z.infer<typeof TaskSchema>;
|
|
2666
2665
|
|
|
@@ -4965,10 +4964,22 @@ declare function buildJsonSchemas(): JsonSchemaArtifact[];
|
|
|
4965
4964
|
declare function serializeJsonSchema(schema: Record<string, unknown>): string;
|
|
4966
4965
|
|
|
4967
4966
|
/**
|
|
4968
|
-
*
|
|
4969
|
-
*
|
|
4967
|
+
* The `.basou` on-disk format version, of the form `MAJOR.MINOR.PATCH`.
|
|
4968
|
+
*
|
|
4969
|
+
* This basou reads format **major 0**: it accepts any `0.x.y` (a newer MINOR /
|
|
4970
|
+
* PATCH is additive and still parses, because the entity schemas are loose and
|
|
4971
|
+
* preserve unknown fields) and GATES a higher / unknown major with an explicit
|
|
4972
|
+
* "upgrade basou" error rather than a cryptic field-level parse failure. The
|
|
4973
|
+
* gate behavior is part of the frozen format contract, so it is defined before
|
|
4974
|
+
* the semver-1.0 freeze — it cannot be retrofitted onto a frozen `z.literal`.
|
|
4975
|
+
*
|
|
4976
|
+
* The format major is DECOUPLED from the npm / product version: shipping basou
|
|
4977
|
+
* product 1.0.0 does not bump this major — it stays `0` until the on-disk format
|
|
4978
|
+
* itself changes incompatibly. The regex (not a `.refine`) is the gate so it is
|
|
4979
|
+
* emitted faithfully into the published JSON Schema `pattern`, letting a
|
|
4980
|
+
* cross-language validator enforce the same major.
|
|
4970
4981
|
*/
|
|
4971
|
-
declare const SchemaVersionSchema: z.
|
|
4982
|
+
declare const SchemaVersionSchema: z.ZodString;
|
|
4972
4983
|
/**
|
|
4973
4984
|
* ISO 8601 timestamp with explicit timezone offset (e.g. `+09:00`).
|
|
4974
4985
|
*
|
|
@@ -5023,7 +5034,7 @@ declare const StatusSchema: z.ZodObject<{
|
|
|
5023
5034
|
workspace: z.ZodObject<{
|
|
5024
5035
|
id: z.ZodString & z.ZodType<`ws_${string}`, string, z.core.$ZodTypeInternals<`ws_${string}`, string>>;
|
|
5025
5036
|
name: z.ZodString;
|
|
5026
|
-
basou_version: z.
|
|
5037
|
+
basou_version: z.ZodString;
|
|
5027
5038
|
}, z.core.$strict>;
|
|
5028
5039
|
directories_present: z.ZodObject<{
|
|
5029
5040
|
sessions: z.ZodBoolean;
|
|
@@ -5767,13 +5778,12 @@ declare function acquireLock(paths: BasouPaths, scope: LockScope, resourceId: st
|
|
|
5767
5778
|
/**
|
|
5768
5779
|
* Inputs for {@link createManifest}. Optional fields drop out of the
|
|
5769
5780
|
* resulting Manifest entirely (they are not emitted as `null`/`undefined`
|
|
5770
|
-
* in YAML)
|
|
5781
|
+
* in YAML).
|
|
5771
5782
|
*/
|
|
5772
5783
|
type CreateManifestInput = {
|
|
5773
5784
|
workspaceName: string;
|
|
5774
5785
|
projectName?: string;
|
|
5775
5786
|
projectDescription?: string;
|
|
5776
|
-
repositoryUrl?: string | null;
|
|
5777
5787
|
/** Override for tests; defaults to `new Date()`. */
|
|
5778
5788
|
now?: Date;
|
|
5779
5789
|
/** Override for tests; defaults to a freshly generated `ws_<ULID>`. */
|