@opencode-ai/schema 0.0.0-next-15090 → 0.0.0-next-15092

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/revert.d.ts DELETED
@@ -1,35 +0,0 @@
1
- export * as Revert from "./revert.js";
2
- import { Schema } from "effect";
3
- export declare const FileDiff: Schema.Struct<{
4
- readonly path: Schema.brand<Schema.String, "RelativePath">;
5
- readonly status: Schema.Literals<readonly ["added", "modified", "deleted"]>;
6
- readonly additions: Schema.Int;
7
- readonly deletions: Schema.Int;
8
- readonly patch: Schema.String;
9
- }>;
10
- export interface FileDiff extends Schema.Schema.Type<typeof FileDiff> {
11
- }
12
- export declare const State: Schema.Struct<{
13
- readonly messageID: Schema.brand<Schema.String, "Session.Message.ID"> & {
14
- create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
15
- fromEvent: (eventID: import("./event.js").ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
16
- };
17
- readonly partID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
18
- readonly snapshot: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
19
- readonly diff: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
20
- readonly files: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.Struct<{
21
- readonly path: Schema.brand<Schema.String, "RelativePath">;
22
- readonly status: Schema.Literals<readonly ["added", "modified", "deleted"]>;
23
- readonly additions: Schema.Int;
24
- readonly deletions: Schema.Int;
25
- readonly patch: Schema.String;
26
- }>>>>, Schema.optionalKey<Schema.$Array<Schema.Struct<{
27
- readonly path: Schema.brand<Schema.String, "RelativePath">;
28
- readonly status: Schema.Literals<readonly ["added", "modified", "deleted"]>;
29
- readonly additions: Schema.Int;
30
- readonly deletions: Schema.Int;
31
- readonly patch: Schema.String;
32
- }>>>, never, never>;
33
- }>;
34
- export interface State extends Schema.Schema.Type<typeof State> {
35
- }
package/dist/revert.js DELETED
@@ -1,19 +0,0 @@
1
- export * as Revert from "./revert.js";
2
- import { Schema } from "effect";
3
- import { optional } from "./schema.js";
4
- import { NonNegativeInt, RelativePath } from "./schema.js";
5
- import { SessionMessage } from "./session-message.js";
6
- export const FileDiff = Schema.Struct({
7
- path: RelativePath,
8
- status: Schema.Literals(["added", "modified", "deleted"]),
9
- additions: NonNegativeInt,
10
- deletions: NonNegativeInt,
11
- patch: Schema.String,
12
- }).annotate({ identifier: "File.Diff" });
13
- export const State = Schema.Struct({
14
- messageID: SessionMessage.ID,
15
- partID: Schema.String.pipe(optional),
16
- snapshot: Schema.String.pipe(optional),
17
- diff: Schema.String.pipe(optional),
18
- files: Schema.Array(FileDiff).pipe(optional),
19
- }).annotate({ identifier: "Revert.State" });