@opencode-ai/schema 0.0.0-next-14771 → 0.0.0-next-14777
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 +1 -0
- package/dist/index.js +1 -0
- package/dist/vcs.d.ts +12 -0
- package/dist/vcs.js +10 -0
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -17,6 +17,7 @@ export { Provider } from "./provider.js";
|
|
|
17
17
|
export { Reference } from "./reference.js";
|
|
18
18
|
export { Revert } from "./revert.js";
|
|
19
19
|
export { Session } from "./session.js";
|
|
20
|
+
export { Vcs } from "./vcs.js";
|
|
20
21
|
export { SessionInput } from "./session-input.js";
|
|
21
22
|
export { SessionMessage } from "./session-message.js";
|
|
22
23
|
export { Shell } from "./shell.js";
|
package/dist/index.js
CHANGED
|
@@ -17,6 +17,7 @@ export { Provider } from "./provider.js";
|
|
|
17
17
|
export { Reference } from "./reference.js";
|
|
18
18
|
export { Revert } from "./revert.js";
|
|
19
19
|
export { Session } from "./session.js";
|
|
20
|
+
export { Vcs } from "./vcs.js";
|
|
20
21
|
export { SessionInput } from "./session-input.js";
|
|
21
22
|
export { SessionMessage } from "./session-message.js";
|
|
22
23
|
export { Shell } from "./shell.js";
|
package/dist/vcs.d.ts
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export * as Vcs from "./vcs.js";
|
|
2
|
+
import { Schema } from "effect";
|
|
3
|
+
export declare const Mode: Schema.Literals<readonly ["working", "branch"]>;
|
|
4
|
+
export type Mode = typeof Mode.Type;
|
|
5
|
+
export declare const FileStatus: Schema.Struct<{
|
|
6
|
+
readonly file: Schema.String;
|
|
7
|
+
readonly additions: Schema.Int;
|
|
8
|
+
readonly deletions: Schema.Int;
|
|
9
|
+
readonly status: Schema.Literals<readonly ["added", "deleted", "modified"]>;
|
|
10
|
+
}>;
|
|
11
|
+
export interface FileStatus extends Schema.Schema.Type<typeof FileStatus> {
|
|
12
|
+
}
|
package/dist/vcs.js
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export * as Vcs from "./vcs.js";
|
|
2
|
+
import { Schema } from "effect";
|
|
3
|
+
import { NonNegativeInt } from "./schema.js";
|
|
4
|
+
export const Mode = Schema.Literals(["working", "branch"]).annotate({ identifier: "Vcs.Mode" });
|
|
5
|
+
export const FileStatus = Schema.Struct({
|
|
6
|
+
file: Schema.String,
|
|
7
|
+
additions: NonNegativeInt,
|
|
8
|
+
deletions: NonNegativeInt,
|
|
9
|
+
status: Schema.Literals(["added", "deleted", "modified"]),
|
|
10
|
+
}).annotate({ identifier: "Vcs.FileStatus" });
|