@opencode-ai/schema 0.0.0-dev-18280 → 0.0.0-dev-18283
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 +4 -4
- package/dist/project.d.ts +6 -6
- package/dist/project.js +3 -1
- package/package.json +1 -1
package/dist/event-manifest.d.ts
CHANGED
|
@@ -4148,7 +4148,7 @@ export declare const ServerDefinitions: readonly [Schema.Struct<{
|
|
|
4148
4148
|
global: string & import("effect/Brand").Brand<"Project.ID">;
|
|
4149
4149
|
};
|
|
4150
4150
|
readonly canonical: Schema.brand<Schema.String, "AbsolutePath">;
|
|
4151
|
-
readonly vcs: Schema.decodeTo<Schema.optional<Schema.toType<Schema.
|
|
4151
|
+
readonly vcs: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
4152
4152
|
readonly name: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
4153
4153
|
readonly icon: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
4154
4154
|
readonly url: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
@@ -4180,7 +4180,7 @@ export declare const ServerDefinitions: readonly [Schema.Struct<{
|
|
|
4180
4180
|
global: string & import("effect/Brand").Brand<"Project.ID">;
|
|
4181
4181
|
};
|
|
4182
4182
|
readonly canonical: Schema.brand<Schema.String, "AbsolutePath">;
|
|
4183
|
-
readonly vcs: Schema.decodeTo<Schema.optional<Schema.toType<Schema.
|
|
4183
|
+
readonly vcs: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
4184
4184
|
readonly name: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
4185
4185
|
readonly icon: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
4186
4186
|
readonly url: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
@@ -9996,7 +9996,7 @@ export declare const Definitions: readonly [Schema.Struct<{
|
|
|
9996
9996
|
global: string & import("effect/Brand").Brand<"Project.ID">;
|
|
9997
9997
|
};
|
|
9998
9998
|
readonly canonical: Schema.brand<Schema.String, "AbsolutePath">;
|
|
9999
|
-
readonly vcs: Schema.decodeTo<Schema.optional<Schema.toType<Schema.
|
|
9999
|
+
readonly vcs: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
10000
10000
|
readonly name: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
10001
10001
|
readonly icon: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
10002
10002
|
readonly url: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
@@ -10028,7 +10028,7 @@ export declare const Definitions: readonly [Schema.Struct<{
|
|
|
10028
10028
|
global: string & import("effect/Brand").Brand<"Project.ID">;
|
|
10029
10029
|
};
|
|
10030
10030
|
readonly canonical: Schema.brand<Schema.String, "AbsolutePath">;
|
|
10031
|
-
readonly vcs: Schema.decodeTo<Schema.optional<Schema.toType<Schema.
|
|
10031
|
+
readonly vcs: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
10032
10032
|
readonly name: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
10033
10033
|
readonly icon: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
10034
10034
|
readonly url: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<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.String;
|
|
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">;
|
|
@@ -38,7 +38,7 @@ export declare const Info: Schema.Struct<{
|
|
|
38
38
|
global: string & import("effect/Brand").Brand<"Project.ID">;
|
|
39
39
|
};
|
|
40
40
|
readonly canonical: Schema.brand<Schema.String, "AbsolutePath">;
|
|
41
|
-
readonly vcs: Schema.decodeTo<Schema.optional<Schema.toType<Schema.
|
|
41
|
+
readonly vcs: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
42
42
|
readonly name: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
43
43
|
readonly icon: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
44
44
|
readonly url: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
@@ -117,7 +117,7 @@ export declare const Event: {
|
|
|
117
117
|
global: string & import("effect/Brand").Brand<"Project.ID">;
|
|
118
118
|
};
|
|
119
119
|
readonly canonical: Schema.brand<Schema.String, "AbsolutePath">;
|
|
120
|
-
readonly vcs: Schema.decodeTo<Schema.optional<Schema.toType<Schema.
|
|
120
|
+
readonly vcs: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
121
121
|
readonly name: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
122
122
|
readonly icon: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
123
123
|
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 canonical: Schema.brand<Schema.String, "AbsolutePath">;
|
|
152
|
-
readonly vcs: Schema.decodeTo<Schema.optional<Schema.toType<Schema.
|
|
152
|
+
readonly vcs: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, 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>;
|
|
@@ -204,7 +204,7 @@ export declare const Event: {
|
|
|
204
204
|
global: string & import("effect/Brand").Brand<"Project.ID">;
|
|
205
205
|
};
|
|
206
206
|
readonly canonical: Schema.brand<Schema.String, "AbsolutePath">;
|
|
207
|
-
readonly vcs: Schema.decodeTo<Schema.optional<Schema.toType<Schema.
|
|
207
|
+
readonly vcs: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
208
208
|
readonly name: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
209
209
|
readonly icon: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
210
210
|
readonly url: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
@@ -236,7 +236,7 @@ export declare const Event: {
|
|
|
236
236
|
global: string & import("effect/Brand").Brand<"Project.ID">;
|
|
237
237
|
};
|
|
238
238
|
readonly canonical: Schema.brand<Schema.String, "AbsolutePath">;
|
|
239
|
-
readonly vcs: Schema.decodeTo<Schema.optional<Schema.toType<Schema.
|
|
239
|
+
readonly vcs: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
240
240
|
readonly name: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
241
241
|
readonly icon: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
242
242
|
readonly url: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
package/dist/project.js
CHANGED
|
@@ -4,7 +4,9 @@ import { ephemeral, 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.String.check(Schema.isPattern(/^[a-z][a-z0-9._-]*$/)).annotate({
|
|
8
|
+
identifier: "Project.Vcs",
|
|
9
|
+
});
|
|
8
10
|
export const Current = Schema.Struct({
|
|
9
11
|
id: ID,
|
|
10
12
|
directory: AbsolutePath,
|