@opencode/schema 2.2.5 → 2.2.6
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/agent.d.ts +14 -0
- package/dist/config/experimental.d.ts +12 -9
- package/dist/config/experimental.js +11 -13
- package/dist/config/flag.d.ts +16 -0
- package/dist/config/flag.js +15 -0
- package/dist/config/policy.d.ts +4 -3
- package/dist/config/policy.js +2 -0
- package/dist/config/provider.d.ts +112 -0
- package/dist/config/warming.d.ts +1 -1
- package/dist/config/warming.js +4 -2
- package/dist/config.d.ts +4 -4
- package/dist/integration.d.ts +2 -0
- package/dist/integration.js +2 -0
- package/dist/job.d.ts +113 -0
- package/dist/job.js +41 -0
- package/dist/mcp.d.ts +2 -0
- package/dist/mcp.js +6 -0
- package/dist/model.d.ts +70 -0
- package/dist/provider.d.ts +97 -0
- package/dist/provider.js +12 -0
- package/dist/session-revert.d.ts +194 -302
- package/dist/tui-event.js +1 -1
- package/package.json +2 -2
package/dist/session-revert.d.ts
CHANGED
|
@@ -368,9 +368,34 @@ export declare const PersistedRevert: Schema.decodeTo<Schema.toType<Schema.Struc
|
|
|
368
368
|
};
|
|
369
369
|
};
|
|
370
370
|
readonly match: {
|
|
371
|
-
<
|
|
372
|
-
readonly
|
|
373
|
-
|
|
371
|
+
<Handlers extends { [K in "current" | "legacy"]: (value: {
|
|
372
|
+
readonly current: Schema.decodeTo<Schema.Struct<{
|
|
373
|
+
readonly source: Schema.tag<"current">;
|
|
374
|
+
readonly revert: Schema.toType<Schema.Struct<{
|
|
375
|
+
readonly messageID: Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
376
|
+
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
377
|
+
fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
378
|
+
};
|
|
379
|
+
/** Legacy V1 compatibility state. */
|
|
380
|
+
readonly partID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
381
|
+
readonly snapshot: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Snapshot.ID">>>, Schema.optionalKey<Schema.brand<Schema.String, "Snapshot.ID">>, never, never>;
|
|
382
|
+
readonly files: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.Struct<{
|
|
383
|
+
readonly file: Schema.String;
|
|
384
|
+
readonly patch: Schema.String;
|
|
385
|
+
readonly additions: Schema.Int;
|
|
386
|
+
readonly deletions: Schema.Int;
|
|
387
|
+
readonly status: Schema.Literals<readonly ["added", "deleted", "modified"]>;
|
|
388
|
+
readonly more: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Literal<true>>>, Schema.optionalKey<Schema.Literal<true>>, never, never>;
|
|
389
|
+
}>>>>, Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
390
|
+
readonly file: Schema.String;
|
|
391
|
+
readonly patch: Schema.String;
|
|
392
|
+
readonly additions: Schema.Int;
|
|
393
|
+
readonly deletions: Schema.Int;
|
|
394
|
+
readonly status: Schema.Literals<readonly ["added", "deleted", "modified"]>;
|
|
395
|
+
readonly more: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Literal<true>>>, Schema.optionalKey<Schema.Literal<true>>, never, never>;
|
|
396
|
+
}>>>, never, never>;
|
|
397
|
+
}>>;
|
|
398
|
+
}>, Schema.Struct<{
|
|
374
399
|
readonly messageID: Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
375
400
|
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
376
401
|
fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
@@ -393,33 +418,32 @@ export declare const PersistedRevert: Schema.decodeTo<Schema.toType<Schema.Struc
|
|
|
393
418
|
readonly status: Schema.Literals<readonly ["added", "deleted", "modified"]>;
|
|
394
419
|
readonly more: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Literal<true>>>, Schema.optionalKey<Schema.Literal<true>>, never, never>;
|
|
395
420
|
}>>>, never, never>;
|
|
396
|
-
}
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
readonly revert: Schema.toType<Schema.Struct<{
|
|
421
|
+
}>, never, never>;
|
|
422
|
+
readonly legacy: Schema.decodeTo<Schema.Struct<{
|
|
423
|
+
readonly source: Schema.tag<"legacy">;
|
|
424
|
+
readonly revert: Schema.toType<Schema.Struct<{
|
|
425
|
+
readonly messageID: Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
426
|
+
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
427
|
+
fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
428
|
+
};
|
|
429
|
+
readonly partID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
430
|
+
readonly snapshot: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
431
|
+
readonly diff: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
432
|
+
readonly files: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.Struct<{
|
|
433
|
+
readonly path: Schema.String;
|
|
434
|
+
readonly status: Schema.Literals<readonly ["added", "modified", "deleted"]>;
|
|
435
|
+
readonly additions: Schema.Finite;
|
|
436
|
+
readonly deletions: Schema.Finite;
|
|
437
|
+
readonly patch: Schema.String;
|
|
438
|
+
}>>>>, Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
439
|
+
readonly path: Schema.String;
|
|
440
|
+
readonly status: Schema.Literals<readonly ["added", "modified", "deleted"]>;
|
|
441
|
+
readonly additions: Schema.Finite;
|
|
442
|
+
readonly deletions: Schema.Finite;
|
|
443
|
+
readonly patch: Schema.String;
|
|
444
|
+
}>>>, never, never>;
|
|
445
|
+
}>>;
|
|
446
|
+
}>, Schema.Struct<{
|
|
423
447
|
readonly messageID: Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
424
448
|
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
425
449
|
fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
@@ -440,29 +464,8 @@ export declare const PersistedRevert: Schema.decodeTo<Schema.toType<Schema.Struc
|
|
|
440
464
|
readonly deletions: Schema.Finite;
|
|
441
465
|
readonly patch: Schema.String;
|
|
442
466
|
}>>>, never, never>;
|
|
443
|
-
}
|
|
444
|
-
}
|
|
445
|
-
readonly messageID: Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
446
|
-
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
447
|
-
fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
448
|
-
};
|
|
449
|
-
readonly partID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
450
|
-
readonly snapshot: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
451
|
-
readonly diff: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
452
|
-
readonly files: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.Struct<{
|
|
453
|
-
readonly path: Schema.String;
|
|
454
|
-
readonly status: Schema.Literals<readonly ["added", "modified", "deleted"]>;
|
|
455
|
-
readonly additions: Schema.Finite;
|
|
456
|
-
readonly deletions: Schema.Finite;
|
|
457
|
-
readonly patch: Schema.String;
|
|
458
|
-
}>>>>, Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
459
|
-
readonly path: Schema.String;
|
|
460
|
-
readonly status: Schema.Literals<readonly ["added", "modified", "deleted"]>;
|
|
461
|
-
readonly additions: Schema.Finite;
|
|
462
|
-
readonly deletions: Schema.Finite;
|
|
463
|
-
readonly patch: Schema.String;
|
|
464
|
-
}>>>, never, never>;
|
|
465
|
-
}>, never, never> as M["Type"]["source"]]: (value: M["Type"]) => any; }>(value: {
|
|
467
|
+
}>, never, never>;
|
|
468
|
+
}[K]["Type"]) => any; }>(value: {
|
|
466
469
|
readonly source: "current";
|
|
467
470
|
readonly revert: {
|
|
468
471
|
readonly messageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
@@ -492,10 +495,35 @@ export declare const PersistedRevert: Schema.decodeTo<Schema.toType<Schema.Struc
|
|
|
492
495
|
readonly patch: string;
|
|
493
496
|
}[] | undefined;
|
|
494
497
|
};
|
|
495
|
-
}, cases:
|
|
496
|
-
<
|
|
497
|
-
readonly
|
|
498
|
-
|
|
498
|
+
}, cases: Handlers): import("effect/Unify").Unify<ReturnType<Handlers["current" | "legacy"]>>;
|
|
499
|
+
<Handlers extends { [K in "current" | "legacy"]: (value: {
|
|
500
|
+
readonly current: Schema.decodeTo<Schema.Struct<{
|
|
501
|
+
readonly source: Schema.tag<"current">;
|
|
502
|
+
readonly revert: Schema.toType<Schema.Struct<{
|
|
503
|
+
readonly messageID: Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
504
|
+
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
505
|
+
fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
506
|
+
};
|
|
507
|
+
/** Legacy V1 compatibility state. */
|
|
508
|
+
readonly partID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
509
|
+
readonly snapshot: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Snapshot.ID">>>, Schema.optionalKey<Schema.brand<Schema.String, "Snapshot.ID">>, never, never>;
|
|
510
|
+
readonly files: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.Struct<{
|
|
511
|
+
readonly file: Schema.String;
|
|
512
|
+
readonly patch: Schema.String;
|
|
513
|
+
readonly additions: Schema.Int;
|
|
514
|
+
readonly deletions: Schema.Int;
|
|
515
|
+
readonly status: Schema.Literals<readonly ["added", "deleted", "modified"]>;
|
|
516
|
+
readonly more: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Literal<true>>>, Schema.optionalKey<Schema.Literal<true>>, never, never>;
|
|
517
|
+
}>>>>, Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
518
|
+
readonly file: Schema.String;
|
|
519
|
+
readonly patch: Schema.String;
|
|
520
|
+
readonly additions: Schema.Int;
|
|
521
|
+
readonly deletions: Schema.Int;
|
|
522
|
+
readonly status: Schema.Literals<readonly ["added", "deleted", "modified"]>;
|
|
523
|
+
readonly more: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Literal<true>>>, Schema.optionalKey<Schema.Literal<true>>, never, never>;
|
|
524
|
+
}>>>, never, never>;
|
|
525
|
+
}>>;
|
|
526
|
+
}>, Schema.Struct<{
|
|
499
527
|
readonly messageID: Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
500
528
|
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
501
529
|
fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
@@ -518,33 +546,32 @@ export declare const PersistedRevert: Schema.decodeTo<Schema.toType<Schema.Struc
|
|
|
518
546
|
readonly status: Schema.Literals<readonly ["added", "deleted", "modified"]>;
|
|
519
547
|
readonly more: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Literal<true>>>, Schema.optionalKey<Schema.Literal<true>>, never, never>;
|
|
520
548
|
}>>>, never, never>;
|
|
521
|
-
}
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
readonly revert: Schema.toType<Schema.Struct<{
|
|
549
|
+
}>, never, never>;
|
|
550
|
+
readonly legacy: Schema.decodeTo<Schema.Struct<{
|
|
551
|
+
readonly source: Schema.tag<"legacy">;
|
|
552
|
+
readonly revert: Schema.toType<Schema.Struct<{
|
|
553
|
+
readonly messageID: Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
554
|
+
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
555
|
+
fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
556
|
+
};
|
|
557
|
+
readonly partID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
558
|
+
readonly snapshot: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
559
|
+
readonly diff: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
560
|
+
readonly files: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.Struct<{
|
|
561
|
+
readonly path: Schema.String;
|
|
562
|
+
readonly status: Schema.Literals<readonly ["added", "modified", "deleted"]>;
|
|
563
|
+
readonly additions: Schema.Finite;
|
|
564
|
+
readonly deletions: Schema.Finite;
|
|
565
|
+
readonly patch: Schema.String;
|
|
566
|
+
}>>>>, Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
567
|
+
readonly path: Schema.String;
|
|
568
|
+
readonly status: Schema.Literals<readonly ["added", "modified", "deleted"]>;
|
|
569
|
+
readonly additions: Schema.Finite;
|
|
570
|
+
readonly deletions: Schema.Finite;
|
|
571
|
+
readonly patch: Schema.String;
|
|
572
|
+
}>>>, never, never>;
|
|
573
|
+
}>>;
|
|
574
|
+
}>, Schema.Struct<{
|
|
548
575
|
readonly messageID: Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
549
576
|
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
550
577
|
fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
@@ -565,29 +592,8 @@ export declare const PersistedRevert: Schema.decodeTo<Schema.toType<Schema.Struc
|
|
|
565
592
|
readonly deletions: Schema.Finite;
|
|
566
593
|
readonly patch: Schema.String;
|
|
567
594
|
}>>>, never, never>;
|
|
568
|
-
}
|
|
569
|
-
}
|
|
570
|
-
readonly messageID: Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
571
|
-
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
572
|
-
fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
573
|
-
};
|
|
574
|
-
readonly partID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
575
|
-
readonly snapshot: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
576
|
-
readonly diff: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
577
|
-
readonly files: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.Struct<{
|
|
578
|
-
readonly path: Schema.String;
|
|
579
|
-
readonly status: Schema.Literals<readonly ["added", "modified", "deleted"]>;
|
|
580
|
-
readonly additions: Schema.Finite;
|
|
581
|
-
readonly deletions: Schema.Finite;
|
|
582
|
-
readonly patch: Schema.String;
|
|
583
|
-
}>>>>, Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
584
|
-
readonly path: Schema.String;
|
|
585
|
-
readonly status: Schema.Literals<readonly ["added", "modified", "deleted"]>;
|
|
586
|
-
readonly additions: Schema.Finite;
|
|
587
|
-
readonly deletions: Schema.Finite;
|
|
588
|
-
readonly patch: Schema.String;
|
|
589
|
-
}>>>, never, never>;
|
|
590
|
-
}>, never, never> as M["Type"]["source"]]: (value: M["Type"]) => any; }>(cases: Cases): (value: {
|
|
595
|
+
}>, never, never>;
|
|
596
|
+
}[K]["Type"]) => any; }>(cases: Handlers): (value: {
|
|
591
597
|
readonly source: "current";
|
|
592
598
|
readonly revert: {
|
|
593
599
|
readonly messageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
@@ -617,104 +623,10 @@ export declare const PersistedRevert: Schema.decodeTo<Schema.toType<Schema.Struc
|
|
|
617
623
|
readonly patch: string;
|
|
618
624
|
}[] | undefined;
|
|
619
625
|
};
|
|
620
|
-
}) =>
|
|
626
|
+
}) => import("effect/Unify").Unify<ReturnType<Handlers["current" | "legacy"]>>;
|
|
621
627
|
};
|
|
622
628
|
readonly matchOrElse: {
|
|
623
|
-
<
|
|
624
|
-
readonly source: Schema.tag<"current">;
|
|
625
|
-
readonly revert: Schema.toType<Schema.Struct<{
|
|
626
|
-
readonly messageID: Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
627
|
-
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
628
|
-
fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
629
|
-
};
|
|
630
|
-
/** Legacy V1 compatibility state. */
|
|
631
|
-
readonly partID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
632
|
-
readonly snapshot: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Snapshot.ID">>>, Schema.optionalKey<Schema.brand<Schema.String, "Snapshot.ID">>, never, never>;
|
|
633
|
-
readonly files: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.Struct<{
|
|
634
|
-
readonly file: Schema.String;
|
|
635
|
-
readonly patch: Schema.String;
|
|
636
|
-
readonly additions: Schema.Int;
|
|
637
|
-
readonly deletions: Schema.Int;
|
|
638
|
-
readonly status: Schema.Literals<readonly ["added", "deleted", "modified"]>;
|
|
639
|
-
readonly more: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Literal<true>>>, Schema.optionalKey<Schema.Literal<true>>, never, never>;
|
|
640
|
-
}>>>>, Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
641
|
-
readonly file: Schema.String;
|
|
642
|
-
readonly patch: Schema.String;
|
|
643
|
-
readonly additions: Schema.Int;
|
|
644
|
-
readonly deletions: Schema.Int;
|
|
645
|
-
readonly status: Schema.Literals<readonly ["added", "deleted", "modified"]>;
|
|
646
|
-
readonly more: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Literal<true>>>, Schema.optionalKey<Schema.Literal<true>>, never, never>;
|
|
647
|
-
}>>>, never, never>;
|
|
648
|
-
}>>;
|
|
649
|
-
}>, Schema.Struct<{
|
|
650
|
-
readonly messageID: Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
651
|
-
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
652
|
-
fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
653
|
-
};
|
|
654
|
-
/** Legacy V1 compatibility state. */
|
|
655
|
-
readonly partID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
656
|
-
readonly snapshot: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Snapshot.ID">>>, Schema.optionalKey<Schema.brand<Schema.String, "Snapshot.ID">>, never, never>;
|
|
657
|
-
readonly files: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.Struct<{
|
|
658
|
-
readonly file: Schema.String;
|
|
659
|
-
readonly patch: Schema.String;
|
|
660
|
-
readonly additions: Schema.Int;
|
|
661
|
-
readonly deletions: Schema.Int;
|
|
662
|
-
readonly status: Schema.Literals<readonly ["added", "deleted", "modified"]>;
|
|
663
|
-
readonly more: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Literal<true>>>, Schema.optionalKey<Schema.Literal<true>>, never, never>;
|
|
664
|
-
}>>>>, Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
665
|
-
readonly file: Schema.String;
|
|
666
|
-
readonly patch: Schema.String;
|
|
667
|
-
readonly additions: Schema.Int;
|
|
668
|
-
readonly deletions: Schema.Int;
|
|
669
|
-
readonly status: Schema.Literals<readonly ["added", "deleted", "modified"]>;
|
|
670
|
-
readonly more: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Literal<true>>>, Schema.optionalKey<Schema.Literal<true>>, never, never>;
|
|
671
|
-
}>>>, never, never>;
|
|
672
|
-
}>, never, never> | Schema.decodeTo<Schema.Struct<{
|
|
673
|
-
readonly source: Schema.tag<"legacy">;
|
|
674
|
-
readonly revert: Schema.toType<Schema.Struct<{
|
|
675
|
-
readonly messageID: Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
676
|
-
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
677
|
-
fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
678
|
-
};
|
|
679
|
-
readonly partID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
680
|
-
readonly snapshot: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
681
|
-
readonly diff: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
682
|
-
readonly files: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.Struct<{
|
|
683
|
-
readonly path: Schema.String;
|
|
684
|
-
readonly status: Schema.Literals<readonly ["added", "modified", "deleted"]>;
|
|
685
|
-
readonly additions: Schema.Finite;
|
|
686
|
-
readonly deletions: Schema.Finite;
|
|
687
|
-
readonly patch: Schema.String;
|
|
688
|
-
}>>>>, Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
689
|
-
readonly path: Schema.String;
|
|
690
|
-
readonly status: Schema.Literals<readonly ["added", "modified", "deleted"]>;
|
|
691
|
-
readonly additions: Schema.Finite;
|
|
692
|
-
readonly deletions: Schema.Finite;
|
|
693
|
-
readonly patch: Schema.String;
|
|
694
|
-
}>>>, never, never>;
|
|
695
|
-
}>>;
|
|
696
|
-
}>, Schema.Struct<{
|
|
697
|
-
readonly messageID: Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
698
|
-
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
699
|
-
fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
700
|
-
};
|
|
701
|
-
readonly partID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
702
|
-
readonly snapshot: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
703
|
-
readonly diff: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
704
|
-
readonly files: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.Struct<{
|
|
705
|
-
readonly path: Schema.String;
|
|
706
|
-
readonly status: Schema.Literals<readonly ["added", "modified", "deleted"]>;
|
|
707
|
-
readonly additions: Schema.Finite;
|
|
708
|
-
readonly deletions: Schema.Finite;
|
|
709
|
-
readonly patch: Schema.String;
|
|
710
|
-
}>>>>, Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
711
|
-
readonly path: Schema.String;
|
|
712
|
-
readonly status: Schema.Literals<readonly ["added", "modified", "deleted"]>;
|
|
713
|
-
readonly additions: Schema.Finite;
|
|
714
|
-
readonly deletions: Schema.Finite;
|
|
715
|
-
readonly patch: Schema.String;
|
|
716
|
-
}>>>, never, never>;
|
|
717
|
-
}>, never, never> as M["Type"]["source"]]+?: (value: M["Type"]) => any; } & { [K in Exclude<keyof Cases, "current" | "legacy">]: never; }, OrElse extends (value: Exclude<{
|
|
629
|
+
<Handlers, OrElse>(value: {
|
|
718
630
|
readonly source: "current";
|
|
719
631
|
readonly revert: {
|
|
720
632
|
readonly messageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
@@ -744,7 +656,40 @@ export declare const PersistedRevert: Schema.decodeTo<Schema.toType<Schema.Struc
|
|
|
744
656
|
readonly patch: string;
|
|
745
657
|
}[] | undefined;
|
|
746
658
|
};
|
|
747
|
-
},
|
|
659
|
+
}, cases: Handlers & {
|
|
660
|
+
readonly current?: ((value: {
|
|
661
|
+
readonly source: "current";
|
|
662
|
+
readonly revert: {
|
|
663
|
+
readonly messageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
664
|
+
readonly partID?: string | undefined;
|
|
665
|
+
readonly snapshot?: (string & import("effect/Brand").Brand<"Snapshot.ID">) | undefined;
|
|
666
|
+
readonly files?: readonly {
|
|
667
|
+
readonly file: string;
|
|
668
|
+
readonly patch: string;
|
|
669
|
+
readonly additions: number;
|
|
670
|
+
readonly deletions: number;
|
|
671
|
+
readonly status: "added" | "deleted" | "modified";
|
|
672
|
+
readonly more?: true | undefined;
|
|
673
|
+
}[] | undefined;
|
|
674
|
+
};
|
|
675
|
+
}) => any) | undefined;
|
|
676
|
+
readonly legacy?: ((value: {
|
|
677
|
+
readonly source: "legacy";
|
|
678
|
+
readonly revert: {
|
|
679
|
+
readonly messageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
680
|
+
readonly partID?: string | undefined;
|
|
681
|
+
readonly snapshot?: string | undefined;
|
|
682
|
+
readonly diff?: string | undefined;
|
|
683
|
+
readonly files?: readonly {
|
|
684
|
+
readonly path: string;
|
|
685
|
+
readonly status: "added" | "deleted" | "modified";
|
|
686
|
+
readonly additions: number;
|
|
687
|
+
readonly deletions: number;
|
|
688
|
+
readonly patch: string;
|
|
689
|
+
}[] | undefined;
|
|
690
|
+
};
|
|
691
|
+
}) => any) | undefined;
|
|
692
|
+
} & (Exclude<keyof Handlers, "current" | "legacy"> extends never ? unknown : never), orElse: OrElse & ((value: Exclude<{
|
|
748
693
|
readonly source: "current";
|
|
749
694
|
readonly revert: {
|
|
750
695
|
readonly messageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
@@ -759,7 +704,9 @@ export declare const PersistedRevert: Schema.decodeTo<Schema.toType<Schema.Struc
|
|
|
759
704
|
readonly more?: true | undefined;
|
|
760
705
|
}[] | undefined;
|
|
761
706
|
};
|
|
762
|
-
}
|
|
707
|
+
}, {
|
|
708
|
+
readonly source: keyof Handlers;
|
|
709
|
+
}> | Exclude<{
|
|
763
710
|
readonly source: "legacy";
|
|
764
711
|
readonly revert: {
|
|
765
712
|
readonly messageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
@@ -774,102 +721,43 @@ export declare const PersistedRevert: Schema.decodeTo<Schema.toType<Schema.Struc
|
|
|
774
721
|
readonly patch: string;
|
|
775
722
|
}[] | undefined;
|
|
776
723
|
};
|
|
777
|
-
},
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
724
|
+
}, {
|
|
725
|
+
readonly source: keyof Handlers;
|
|
726
|
+
}>) => any)): import("effect/Unify").Unify<{ [K in keyof Handlers]-?: NonNullable<Handlers[K]> extends (...args: Array<any>) => infer R ? R : never; }[keyof Handlers] | (OrElse extends (...args: Array<any>) => infer R ? R : never)>;
|
|
727
|
+
<Handlers, OrElse>(cases: Handlers & {
|
|
728
|
+
readonly current?: ((value: {
|
|
729
|
+
readonly source: "current";
|
|
730
|
+
readonly revert: {
|
|
731
|
+
readonly messageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
732
|
+
readonly partID?: string | undefined;
|
|
733
|
+
readonly snapshot?: (string & import("effect/Brand").Brand<"Snapshot.ID">) | undefined;
|
|
734
|
+
readonly files?: readonly {
|
|
735
|
+
readonly file: string;
|
|
736
|
+
readonly patch: string;
|
|
737
|
+
readonly additions: number;
|
|
738
|
+
readonly deletions: number;
|
|
739
|
+
readonly status: "added" | "deleted" | "modified";
|
|
740
|
+
readonly more?: true | undefined;
|
|
741
|
+
}[] | undefined;
|
|
784
742
|
};
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
readonly
|
|
788
|
-
readonly
|
|
789
|
-
readonly
|
|
790
|
-
readonly
|
|
791
|
-
readonly
|
|
792
|
-
readonly
|
|
793
|
-
readonly
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
readonly status: Schema.Literals<readonly ["added", "deleted", "modified"]>;
|
|
801
|
-
readonly more: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Literal<true>>>, Schema.optionalKey<Schema.Literal<true>>, never, never>;
|
|
802
|
-
}>>>, never, never>;
|
|
803
|
-
}>>;
|
|
804
|
-
}>, Schema.Struct<{
|
|
805
|
-
readonly messageID: Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
806
|
-
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
807
|
-
fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
808
|
-
};
|
|
809
|
-
/** Legacy V1 compatibility state. */
|
|
810
|
-
readonly partID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
811
|
-
readonly snapshot: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Snapshot.ID">>>, Schema.optionalKey<Schema.brand<Schema.String, "Snapshot.ID">>, never, never>;
|
|
812
|
-
readonly files: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.Struct<{
|
|
813
|
-
readonly file: Schema.String;
|
|
814
|
-
readonly patch: Schema.String;
|
|
815
|
-
readonly additions: Schema.Int;
|
|
816
|
-
readonly deletions: Schema.Int;
|
|
817
|
-
readonly status: Schema.Literals<readonly ["added", "deleted", "modified"]>;
|
|
818
|
-
readonly more: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Literal<true>>>, Schema.optionalKey<Schema.Literal<true>>, never, never>;
|
|
819
|
-
}>>>>, Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
820
|
-
readonly file: Schema.String;
|
|
821
|
-
readonly patch: Schema.String;
|
|
822
|
-
readonly additions: Schema.Int;
|
|
823
|
-
readonly deletions: Schema.Int;
|
|
824
|
-
readonly status: Schema.Literals<readonly ["added", "deleted", "modified"]>;
|
|
825
|
-
readonly more: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Literal<true>>>, Schema.optionalKey<Schema.Literal<true>>, never, never>;
|
|
826
|
-
}>>>, never, never>;
|
|
827
|
-
}>, never, never> | Schema.decodeTo<Schema.Struct<{
|
|
828
|
-
readonly source: Schema.tag<"legacy">;
|
|
829
|
-
readonly revert: Schema.toType<Schema.Struct<{
|
|
830
|
-
readonly messageID: Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
831
|
-
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
832
|
-
fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
743
|
+
}) => any) | undefined;
|
|
744
|
+
readonly legacy?: ((value: {
|
|
745
|
+
readonly source: "legacy";
|
|
746
|
+
readonly revert: {
|
|
747
|
+
readonly messageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
748
|
+
readonly partID?: string | undefined;
|
|
749
|
+
readonly snapshot?: string | undefined;
|
|
750
|
+
readonly diff?: string | undefined;
|
|
751
|
+
readonly files?: readonly {
|
|
752
|
+
readonly path: string;
|
|
753
|
+
readonly status: "added" | "deleted" | "modified";
|
|
754
|
+
readonly additions: number;
|
|
755
|
+
readonly deletions: number;
|
|
756
|
+
readonly patch: string;
|
|
757
|
+
}[] | undefined;
|
|
833
758
|
};
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
readonly diff: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
837
|
-
readonly files: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.Struct<{
|
|
838
|
-
readonly path: Schema.String;
|
|
839
|
-
readonly status: Schema.Literals<readonly ["added", "modified", "deleted"]>;
|
|
840
|
-
readonly additions: Schema.Finite;
|
|
841
|
-
readonly deletions: Schema.Finite;
|
|
842
|
-
readonly patch: Schema.String;
|
|
843
|
-
}>>>>, Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
844
|
-
readonly path: Schema.String;
|
|
845
|
-
readonly status: Schema.Literals<readonly ["added", "modified", "deleted"]>;
|
|
846
|
-
readonly additions: Schema.Finite;
|
|
847
|
-
readonly deletions: Schema.Finite;
|
|
848
|
-
readonly patch: Schema.String;
|
|
849
|
-
}>>>, never, never>;
|
|
850
|
-
}>>;
|
|
851
|
-
}>, Schema.Struct<{
|
|
852
|
-
readonly messageID: Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
853
|
-
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
854
|
-
fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
855
|
-
};
|
|
856
|
-
readonly partID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
857
|
-
readonly snapshot: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
858
|
-
readonly diff: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
859
|
-
readonly files: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.Struct<{
|
|
860
|
-
readonly path: Schema.String;
|
|
861
|
-
readonly status: Schema.Literals<readonly ["added", "modified", "deleted"]>;
|
|
862
|
-
readonly additions: Schema.Finite;
|
|
863
|
-
readonly deletions: Schema.Finite;
|
|
864
|
-
readonly patch: Schema.String;
|
|
865
|
-
}>>>>, Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
866
|
-
readonly path: Schema.String;
|
|
867
|
-
readonly status: Schema.Literals<readonly ["added", "modified", "deleted"]>;
|
|
868
|
-
readonly additions: Schema.Finite;
|
|
869
|
-
readonly deletions: Schema.Finite;
|
|
870
|
-
readonly patch: Schema.String;
|
|
871
|
-
}>>>, never, never>;
|
|
872
|
-
}>, never, never> as M["Type"]["source"]]+?: (value: M["Type"]) => any; } & { [K in Exclude<keyof Cases, "current" | "legacy">]: never; }, OrElse extends (value: Exclude<{
|
|
759
|
+
}) => any) | undefined;
|
|
760
|
+
} & (Exclude<keyof Handlers, "current" | "legacy"> extends never ? unknown : never), orElse: OrElse & ((value: Exclude<{
|
|
873
761
|
readonly source: "current";
|
|
874
762
|
readonly revert: {
|
|
875
763
|
readonly messageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
@@ -884,7 +772,9 @@ export declare const PersistedRevert: Schema.decodeTo<Schema.toType<Schema.Struc
|
|
|
884
772
|
readonly more?: true | undefined;
|
|
885
773
|
}[] | undefined;
|
|
886
774
|
};
|
|
887
|
-
}
|
|
775
|
+
}, {
|
|
776
|
+
readonly source: keyof Handlers;
|
|
777
|
+
}> | Exclude<{
|
|
888
778
|
readonly source: "legacy";
|
|
889
779
|
readonly revert: {
|
|
890
780
|
readonly messageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
@@ -899,7 +789,9 @@ export declare const PersistedRevert: Schema.decodeTo<Schema.toType<Schema.Struc
|
|
|
899
789
|
readonly patch: string;
|
|
900
790
|
}[] | undefined;
|
|
901
791
|
};
|
|
902
|
-
}, {
|
|
792
|
+
}, {
|
|
793
|
+
readonly source: keyof Handlers;
|
|
794
|
+
}>) => any)): (value: {
|
|
903
795
|
readonly source: "current";
|
|
904
796
|
readonly revert: {
|
|
905
797
|
readonly messageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
@@ -929,6 +821,6 @@ export declare const PersistedRevert: Schema.decodeTo<Schema.toType<Schema.Struc
|
|
|
929
821
|
readonly patch: string;
|
|
930
822
|
}[] | undefined;
|
|
931
823
|
};
|
|
932
|
-
}) => import("effect/Unify").Unify<{ [K in keyof
|
|
824
|
+
}) => import("effect/Unify").Unify<{ [K in keyof Handlers]-?: NonNullable<Handlers[K]> extends (...args: Array<any>) => infer R ? R : never; }[keyof Handlers] | (OrElse extends (...args: Array<any>) => infer R ? R : never)>;
|
|
933
825
|
};
|
|
934
826
|
}, never, never>;
|
package/dist/tui-event.js
CHANGED
|
@@ -46,7 +46,7 @@ export const ToastShow = Event.ephemeral({
|
|
|
46
46
|
export const SessionSelect = Event.ephemeral({
|
|
47
47
|
type: "tui.session.select",
|
|
48
48
|
schema: {
|
|
49
|
-
sessionID: SessionID.
|
|
49
|
+
sessionID: SessionID.annotateKey({ description: "Session ID to navigate to" }),
|
|
50
50
|
},
|
|
51
51
|
});
|
|
52
52
|
export const Definitions = Event.inventory(PromptAppend, CommandExecute, ToastShow, SessionSelect);
|