@opencode-ai/schema 0.0.0-dev-18188 → 0.0.0-dev-18190

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/vcs.d.ts CHANGED
@@ -14,6 +14,8 @@ export declare const Info: Schema.Struct<{
14
14
  }>;
15
15
  export interface Info extends Schema.Schema.Type<typeof Info> {
16
16
  }
17
+ export declare const BranchList: Schema.$Array<Schema.String>;
18
+ export type BranchList = typeof BranchList.Type;
17
19
  export declare const Mode: Schema.Literals<readonly ["working", "branch"]>;
18
20
  export type Mode = typeof Mode.Type;
19
21
  export declare const FileStatus: Schema.Struct<{
package/dist/vcs.js CHANGED
@@ -8,6 +8,7 @@ export const Branch = Schema.Struct({
8
8
  export const Info = Schema.Struct({
9
9
  branch: Branch,
10
10
  }).annotate({ identifier: "Vcs.Info" });
11
+ export const BranchList = Schema.Array(Schema.String).annotate({ identifier: "Vcs.BranchList" });
11
12
  export const Mode = Schema.Literals(["working", "branch"]).annotate({ identifier: "Vcs.Mode" });
12
13
  export const FileStatus = Schema.Struct({
13
14
  file: Schema.String,
@@ -8,6 +8,7 @@ export declare const CreateInput: Schema.Struct<{
8
8
  };
9
9
  readonly strategy: Schema.brand<Schema.Trim, "Worktree.StrategyID">;
10
10
  readonly from: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "AbsolutePath">>>, Schema.optionalKey<Schema.brand<Schema.String, "AbsolutePath">>, never, never>;
11
+ readonly branch: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Trim>>, Schema.optionalKey<Schema.Trim>, never, never>;
11
12
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
12
13
  readonly name: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
13
14
  }>;
package/dist/worktree.js CHANGED
@@ -9,6 +9,7 @@ export const CreateInput = Schema.Struct({
9
9
  projectID: ProjectID,
10
10
  strategy: StrategyID,
11
11
  from: optional(AbsolutePath),
12
+ branch: optional(Schema.Trim.pipe(Schema.check(Schema.isNonEmpty()))),
12
13
  directory: AbsolutePath,
13
14
  name: optional(Schema.String),
14
15
  }).annotate({ identifier: "Worktree.CreateInput" });
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json.schemastore.org/package.json",
3
3
  "name": "@opencode-ai/schema",
4
- "version": "0.0.0-dev-18188",
4
+ "version": "0.0.0-dev-18190",
5
5
  "type": "module",
6
6
  "license": "MIT",
7
7
  "repository": {