@opencode-ai/schema 0.0.0-dev-19118 → 0.0.0-dev-19120

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.
@@ -9,7 +9,7 @@ export declare const CreateInput: Schema.Struct<{
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
11
  readonly branch: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Trim>>, Schema.optionalKey<Schema.Trim>, never, never>;
12
- readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
12
+ readonly directory: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "AbsolutePath">>>, Schema.optionalKey<Schema.brand<Schema.String, "AbsolutePath">>, never, never>;
13
13
  readonly name: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
14
14
  }>;
15
15
  export interface CreateInput extends Schema.Schema.Type<typeof CreateInput> {
package/dist/worktree.js CHANGED
@@ -10,7 +10,9 @@ export const CreateInput = Schema.Struct({
10
10
  strategy: StrategyID,
11
11
  from: optional(AbsolutePath),
12
12
  branch: optional(Schema.Trim.pipe(Schema.check(Schema.isNonEmpty()))),
13
- directory: AbsolutePath,
13
+ directory: optional(AbsolutePath).annotate({
14
+ description: "Parent directory for the new worktree. Defaults to the server's data directory under worktree/<first six project ID characters>.",
15
+ }),
14
16
  name: optional(Schema.String),
15
17
  }).annotate({ identifier: "Worktree.CreateInput" });
16
18
  export const RemoveInput = Schema.Struct({
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-19118",
4
+ "version": "0.0.0-dev-19120",
5
5
  "type": "module",
6
6
  "license": "MIT",
7
7
  "repository": {