@opencode-ai/schema 0.0.0-next-14779 → 0.0.0-next-14781
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/event-manifest.d.ts +2 -2
- package/dist/project.d.ts +6 -6
- package/dist/project.js +1 -1
- package/package.json +1 -1
package/dist/event-manifest.d.ts
CHANGED
|
@@ -16513,7 +16513,7 @@ export declare const Definitions: readonly [import("effect/Schema").Struct<{
|
|
|
16513
16513
|
global: string & import("effect/Brand").Brand<"Project.ID">;
|
|
16514
16514
|
};
|
|
16515
16515
|
readonly worktree: import("effect/Schema").String;
|
|
16516
|
-
readonly vcs: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").
|
|
16516
|
+
readonly vcs: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").Literals<readonly ["git", "hg"]>>>, import("effect/Schema").optionalKey<import("effect/Schema").Literals<readonly ["git", "hg"]>>, never, never>;
|
|
16517
16517
|
readonly name: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").String>>, import("effect/Schema").optionalKey<import("effect/Schema").String>, never, never>;
|
|
16518
16518
|
readonly icon: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").Struct<{
|
|
16519
16519
|
readonly url: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").String>>, import("effect/Schema").optionalKey<import("effect/Schema").String>, never, never>;
|
|
@@ -16542,7 +16542,7 @@ export declare const Definitions: readonly [import("effect/Schema").Struct<{
|
|
|
16542
16542
|
global: string & import("effect/Brand").Brand<"Project.ID">;
|
|
16543
16543
|
};
|
|
16544
16544
|
readonly worktree: import("effect/Schema").String;
|
|
16545
|
-
readonly vcs: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").
|
|
16545
|
+
readonly vcs: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").Literals<readonly ["git", "hg"]>>>, import("effect/Schema").optionalKey<import("effect/Schema").Literals<readonly ["git", "hg"]>>, never, never>;
|
|
16546
16546
|
readonly name: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").String>>, import("effect/Schema").optionalKey<import("effect/Schema").String>, never, never>;
|
|
16547
16547
|
readonly icon: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").Struct<{
|
|
16548
16548
|
readonly url: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").String>>, import("effect/Schema").optionalKey<import("effect/Schema").String>, never, never>;
|
package/dist/project.d.ts
CHANGED
|
@@ -4,7 +4,7 @@ export declare const ID: Schema.brand<Schema.String, "Project.ID"> & {
|
|
|
4
4
|
global: string & import("effect/Brand").Brand<"Project.ID">;
|
|
5
5
|
};
|
|
6
6
|
export type ID = typeof ID.Type;
|
|
7
|
-
export declare const Vcs: Schema.
|
|
7
|
+
export declare const Vcs: Schema.Literals<readonly ["git", "hg"]>;
|
|
8
8
|
export declare const Current: Schema.Struct<{
|
|
9
9
|
readonly id: Schema.brand<Schema.String, "Project.ID"> & {
|
|
10
10
|
global: string & import("effect/Brand").Brand<"Project.ID">;
|
|
@@ -55,7 +55,7 @@ export declare const Info: Schema.Struct<{
|
|
|
55
55
|
global: string & import("effect/Brand").Brand<"Project.ID">;
|
|
56
56
|
};
|
|
57
57
|
readonly worktree: Schema.String;
|
|
58
|
-
readonly vcs: Schema.decodeTo<Schema.optional<Schema.toType<Schema.
|
|
58
|
+
readonly vcs: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Literals<readonly ["git", "hg"]>>>, Schema.optionalKey<Schema.Literals<readonly ["git", "hg"]>>, never, never>;
|
|
59
59
|
readonly name: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
60
60
|
readonly icon: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
61
61
|
readonly url: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
@@ -120,7 +120,7 @@ export declare const Event: {
|
|
|
120
120
|
global: string & import("effect/Brand").Brand<"Project.ID">;
|
|
121
121
|
};
|
|
122
122
|
readonly worktree: Schema.String;
|
|
123
|
-
readonly vcs: Schema.decodeTo<Schema.optional<Schema.toType<Schema.
|
|
123
|
+
readonly vcs: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Literals<readonly ["git", "hg"]>>>, Schema.optionalKey<Schema.Literals<readonly ["git", "hg"]>>, never, never>;
|
|
124
124
|
readonly name: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
125
125
|
readonly icon: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
126
126
|
readonly url: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
@@ -149,7 +149,7 @@ export declare const Event: {
|
|
|
149
149
|
global: string & import("effect/Brand").Brand<"Project.ID">;
|
|
150
150
|
};
|
|
151
151
|
readonly worktree: Schema.String;
|
|
152
|
-
readonly vcs: Schema.decodeTo<Schema.optional<Schema.toType<Schema.
|
|
152
|
+
readonly vcs: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Literals<readonly ["git", "hg"]>>>, Schema.optionalKey<Schema.Literals<readonly ["git", "hg"]>>, never, never>;
|
|
153
153
|
readonly name: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
154
154
|
readonly icon: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
155
155
|
readonly url: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
@@ -217,7 +217,7 @@ export declare const Event: {
|
|
|
217
217
|
global: string & import("effect/Brand").Brand<"Project.ID">;
|
|
218
218
|
};
|
|
219
219
|
readonly worktree: Schema.String;
|
|
220
|
-
readonly vcs: Schema.decodeTo<Schema.optional<Schema.toType<Schema.
|
|
220
|
+
readonly vcs: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Literals<readonly ["git", "hg"]>>>, Schema.optionalKey<Schema.Literals<readonly ["git", "hg"]>>, never, never>;
|
|
221
221
|
readonly name: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
222
222
|
readonly icon: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
223
223
|
readonly url: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
@@ -246,7 +246,7 @@ export declare const Event: {
|
|
|
246
246
|
global: string & import("effect/Brand").Brand<"Project.ID">;
|
|
247
247
|
};
|
|
248
248
|
readonly worktree: Schema.String;
|
|
249
|
-
readonly vcs: Schema.decodeTo<Schema.optional<Schema.toType<Schema.
|
|
249
|
+
readonly vcs: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Literals<readonly ["git", "hg"]>>>, Schema.optionalKey<Schema.Literals<readonly ["git", "hg"]>>, never, never>;
|
|
250
250
|
readonly name: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
251
251
|
readonly icon: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
252
252
|
readonly url: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
package/dist/project.js
CHANGED
|
@@ -4,7 +4,7 @@ import { define, inventory } from "./event.js";
|
|
|
4
4
|
import { AbsolutePath, NonNegativeInt, optional } from "./schema.js";
|
|
5
5
|
import { ProjectID } from "./project-id.js";
|
|
6
6
|
export const ID = ProjectID;
|
|
7
|
-
export const Vcs = Schema.
|
|
7
|
+
export const Vcs = Schema.Literals(["git", "hg"]).annotate({ identifier: "Project.Vcs" });
|
|
8
8
|
export const Current = Schema.Struct({
|
|
9
9
|
id: ID,
|
|
10
10
|
directory: AbsolutePath,
|