@opencode-ai/schema 0.0.0-beta-18269 → 0.0.0-beta-18311

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/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.Literals<readonly ["git", "hg"]>;
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.Literals<readonly ["git", "hg"]>>>, Schema.optionalKey<Schema.Literals<readonly ["git", "hg"]>>, never, never>;
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.Literals<readonly ["git", "hg"]>>>, Schema.optionalKey<Schema.Literals<readonly ["git", "hg"]>>, never, never>;
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.Literals<readonly ["git", "hg"]>>>, Schema.optionalKey<Schema.Literals<readonly ["git", "hg"]>>, never, never>;
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.Literals<readonly ["git", "hg"]>>>, Schema.optionalKey<Schema.Literals<readonly ["git", "hg"]>>, never, never>;
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.Literals<readonly ["git", "hg"]>>>, Schema.optionalKey<Schema.Literals<readonly ["git", "hg"]>>, never, never>;
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.Literals(["git", "hg"]).annotate({ identifier: "Project.Vcs" });
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,