@opencode-ai/schema 0.0.0-dev-18534 → 0.0.0-dev-18539
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/session-revert.d.ts +192 -0
- package/package.json +2 -2
package/dist/session-revert.d.ts
CHANGED
|
@@ -477,4 +477,196 @@ export declare const PersistedRevert: Schema.decodeTo<Schema.toType<Schema.Struc
|
|
|
477
477
|
};
|
|
478
478
|
}) => Cases[keyof Cases] extends (value: any) => infer R ? import("effect/Unify").Unify<R> : never;
|
|
479
479
|
};
|
|
480
|
+
readonly matchOrElse: {
|
|
481
|
+
<Cases extends {
|
|
482
|
+
current?: ((value: {
|
|
483
|
+
readonly source: "current";
|
|
484
|
+
readonly revert: {
|
|
485
|
+
readonly messageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
486
|
+
readonly files?: readonly {
|
|
487
|
+
readonly file: string;
|
|
488
|
+
readonly patch: string;
|
|
489
|
+
readonly additions: number;
|
|
490
|
+
readonly deletions: number;
|
|
491
|
+
readonly status: "added" | "deleted" | "modified";
|
|
492
|
+
}[] | undefined;
|
|
493
|
+
readonly snapshot?: (string & import("effect/Brand").Brand<"Snapshot.ID">) | undefined;
|
|
494
|
+
readonly partID?: string | undefined;
|
|
495
|
+
};
|
|
496
|
+
}) => any) | undefined;
|
|
497
|
+
legacy?: ((value: {
|
|
498
|
+
readonly source: "legacy";
|
|
499
|
+
readonly revert: {
|
|
500
|
+
readonly messageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
501
|
+
readonly files?: readonly {
|
|
502
|
+
readonly path: string;
|
|
503
|
+
readonly status: "added" | "deleted" | "modified";
|
|
504
|
+
readonly additions: number;
|
|
505
|
+
readonly deletions: number;
|
|
506
|
+
readonly patch: string;
|
|
507
|
+
}[] | undefined;
|
|
508
|
+
readonly snapshot?: string | undefined;
|
|
509
|
+
readonly partID?: string | undefined;
|
|
510
|
+
readonly diff?: string | undefined;
|
|
511
|
+
};
|
|
512
|
+
}) => any) | undefined;
|
|
513
|
+
} & { [K in Exclude<keyof Cases, "current" | "legacy">]: never; }, OrElse extends (value: Exclude<{
|
|
514
|
+
readonly source: "current";
|
|
515
|
+
readonly revert: {
|
|
516
|
+
readonly messageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
517
|
+
readonly files?: readonly {
|
|
518
|
+
readonly file: string;
|
|
519
|
+
readonly patch: string;
|
|
520
|
+
readonly additions: number;
|
|
521
|
+
readonly deletions: number;
|
|
522
|
+
readonly status: "added" | "deleted" | "modified";
|
|
523
|
+
}[] | undefined;
|
|
524
|
+
readonly snapshot?: (string & import("effect/Brand").Brand<"Snapshot.ID">) | undefined;
|
|
525
|
+
readonly partID?: string | undefined;
|
|
526
|
+
};
|
|
527
|
+
}, {
|
|
528
|
+
readonly source: keyof Cases;
|
|
529
|
+
}> | Exclude<{
|
|
530
|
+
readonly source: "legacy";
|
|
531
|
+
readonly revert: {
|
|
532
|
+
readonly messageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
533
|
+
readonly files?: readonly {
|
|
534
|
+
readonly path: string;
|
|
535
|
+
readonly status: "added" | "deleted" | "modified";
|
|
536
|
+
readonly additions: number;
|
|
537
|
+
readonly deletions: number;
|
|
538
|
+
readonly patch: string;
|
|
539
|
+
}[] | undefined;
|
|
540
|
+
readonly snapshot?: string | undefined;
|
|
541
|
+
readonly partID?: string | undefined;
|
|
542
|
+
readonly diff?: string | undefined;
|
|
543
|
+
};
|
|
544
|
+
}, {
|
|
545
|
+
readonly source: keyof Cases;
|
|
546
|
+
}>) => any>(value: {
|
|
547
|
+
readonly source: "current";
|
|
548
|
+
readonly revert: {
|
|
549
|
+
readonly messageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
550
|
+
readonly files?: readonly {
|
|
551
|
+
readonly file: string;
|
|
552
|
+
readonly patch: string;
|
|
553
|
+
readonly additions: number;
|
|
554
|
+
readonly deletions: number;
|
|
555
|
+
readonly status: "added" | "deleted" | "modified";
|
|
556
|
+
}[] | undefined;
|
|
557
|
+
readonly snapshot?: (string & import("effect/Brand").Brand<"Snapshot.ID">) | undefined;
|
|
558
|
+
readonly partID?: string | undefined;
|
|
559
|
+
};
|
|
560
|
+
} | {
|
|
561
|
+
readonly source: "legacy";
|
|
562
|
+
readonly revert: {
|
|
563
|
+
readonly messageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
564
|
+
readonly files?: readonly {
|
|
565
|
+
readonly path: string;
|
|
566
|
+
readonly status: "added" | "deleted" | "modified";
|
|
567
|
+
readonly additions: number;
|
|
568
|
+
readonly deletions: number;
|
|
569
|
+
readonly patch: string;
|
|
570
|
+
}[] | undefined;
|
|
571
|
+
readonly snapshot?: string | undefined;
|
|
572
|
+
readonly partID?: string | undefined;
|
|
573
|
+
readonly diff?: string | undefined;
|
|
574
|
+
};
|
|
575
|
+
}, cases: Cases, orElse: OrElse): import("effect/Unify").Unify<{ [K_1 in keyof Cases]-?: NonNullable<Cases[K_1]> extends (...args: Array<any>) => infer R ? R : never; }[keyof Cases] | ReturnType<OrElse>>;
|
|
576
|
+
<Cases extends {
|
|
577
|
+
current?: ((value: {
|
|
578
|
+
readonly source: "current";
|
|
579
|
+
readonly revert: {
|
|
580
|
+
readonly messageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
581
|
+
readonly files?: readonly {
|
|
582
|
+
readonly file: string;
|
|
583
|
+
readonly patch: string;
|
|
584
|
+
readonly additions: number;
|
|
585
|
+
readonly deletions: number;
|
|
586
|
+
readonly status: "added" | "deleted" | "modified";
|
|
587
|
+
}[] | undefined;
|
|
588
|
+
readonly snapshot?: (string & import("effect/Brand").Brand<"Snapshot.ID">) | undefined;
|
|
589
|
+
readonly partID?: string | undefined;
|
|
590
|
+
};
|
|
591
|
+
}) => any) | undefined;
|
|
592
|
+
legacy?: ((value: {
|
|
593
|
+
readonly source: "legacy";
|
|
594
|
+
readonly revert: {
|
|
595
|
+
readonly messageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
596
|
+
readonly files?: readonly {
|
|
597
|
+
readonly path: string;
|
|
598
|
+
readonly status: "added" | "deleted" | "modified";
|
|
599
|
+
readonly additions: number;
|
|
600
|
+
readonly deletions: number;
|
|
601
|
+
readonly patch: string;
|
|
602
|
+
}[] | undefined;
|
|
603
|
+
readonly snapshot?: string | undefined;
|
|
604
|
+
readonly partID?: string | undefined;
|
|
605
|
+
readonly diff?: string | undefined;
|
|
606
|
+
};
|
|
607
|
+
}) => any) | undefined;
|
|
608
|
+
} & { [K in Exclude<keyof Cases, "current" | "legacy">]: never; }, OrElse extends (value: Exclude<{
|
|
609
|
+
readonly source: "current";
|
|
610
|
+
readonly revert: {
|
|
611
|
+
readonly messageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
612
|
+
readonly files?: readonly {
|
|
613
|
+
readonly file: string;
|
|
614
|
+
readonly patch: string;
|
|
615
|
+
readonly additions: number;
|
|
616
|
+
readonly deletions: number;
|
|
617
|
+
readonly status: "added" | "deleted" | "modified";
|
|
618
|
+
}[] | undefined;
|
|
619
|
+
readonly snapshot?: (string & import("effect/Brand").Brand<"Snapshot.ID">) | undefined;
|
|
620
|
+
readonly partID?: string | undefined;
|
|
621
|
+
};
|
|
622
|
+
}, {
|
|
623
|
+
readonly source: keyof Cases;
|
|
624
|
+
}> | Exclude<{
|
|
625
|
+
readonly source: "legacy";
|
|
626
|
+
readonly revert: {
|
|
627
|
+
readonly messageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
628
|
+
readonly files?: readonly {
|
|
629
|
+
readonly path: string;
|
|
630
|
+
readonly status: "added" | "deleted" | "modified";
|
|
631
|
+
readonly additions: number;
|
|
632
|
+
readonly deletions: number;
|
|
633
|
+
readonly patch: string;
|
|
634
|
+
}[] | undefined;
|
|
635
|
+
readonly snapshot?: string | undefined;
|
|
636
|
+
readonly partID?: string | undefined;
|
|
637
|
+
readonly diff?: string | undefined;
|
|
638
|
+
};
|
|
639
|
+
}, {
|
|
640
|
+
readonly source: keyof Cases;
|
|
641
|
+
}>) => any>(cases: Cases, orElse: OrElse): (value: {
|
|
642
|
+
readonly source: "current";
|
|
643
|
+
readonly revert: {
|
|
644
|
+
readonly messageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
645
|
+
readonly files?: readonly {
|
|
646
|
+
readonly file: string;
|
|
647
|
+
readonly patch: string;
|
|
648
|
+
readonly additions: number;
|
|
649
|
+
readonly deletions: number;
|
|
650
|
+
readonly status: "added" | "deleted" | "modified";
|
|
651
|
+
}[] | undefined;
|
|
652
|
+
readonly snapshot?: (string & import("effect/Brand").Brand<"Snapshot.ID">) | undefined;
|
|
653
|
+
readonly partID?: string | undefined;
|
|
654
|
+
};
|
|
655
|
+
} | {
|
|
656
|
+
readonly source: "legacy";
|
|
657
|
+
readonly revert: {
|
|
658
|
+
readonly messageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
659
|
+
readonly files?: readonly {
|
|
660
|
+
readonly path: string;
|
|
661
|
+
readonly status: "added" | "deleted" | "modified";
|
|
662
|
+
readonly additions: number;
|
|
663
|
+
readonly deletions: number;
|
|
664
|
+
readonly patch: string;
|
|
665
|
+
}[] | undefined;
|
|
666
|
+
readonly snapshot?: string | undefined;
|
|
667
|
+
readonly partID?: string | undefined;
|
|
668
|
+
readonly diff?: string | undefined;
|
|
669
|
+
};
|
|
670
|
+
}) => import("effect/Unify").Unify<{ [K_1 in keyof Cases]-?: NonNullable<Cases[K_1]> extends (...args: Array<any>) => infer R ? R : never; }[keyof Cases] | ReturnType<OrElse>>;
|
|
671
|
+
};
|
|
480
672
|
}, never, never>;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://json.schemastore.org/package.json",
|
|
3
3
|
"name": "@opencode-ai/schema",
|
|
4
|
-
"version": "0.0.0-dev-
|
|
4
|
+
"version": "0.0.0-dev-18539",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"repository": {
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
},
|
|
32
32
|
"dependencies": {
|
|
33
33
|
"@standard-schema/spec": "1.1.0",
|
|
34
|
-
"effect": "4.0.0-rc.
|
|
34
|
+
"effect": "4.0.0-rc.112"
|
|
35
35
|
},
|
|
36
36
|
"devDependencies": {
|
|
37
37
|
"@tsconfig/bun": "1.0.9",
|