@opencode/schema 0.0.0-dev-19625 → 0.0.0-dev-19627
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/worktree.d.ts +6 -1
- package/dist/worktree.js +3 -2
- package/package.json +1 -1
package/dist/worktree.d.ts
CHANGED
|
@@ -3,7 +3,9 @@ import { Schema } from "effect";
|
|
|
3
3
|
export declare const StrategyID: Schema.brand<Schema.Trim, "Worktree.StrategyID">;
|
|
4
4
|
export type StrategyID = typeof StrategyID.Type;
|
|
5
5
|
export declare const CreateInput: Schema.Struct<{
|
|
6
|
-
readonly
|
|
6
|
+
readonly projectID: Schema.brand<Schema.String, "Project.ID"> & {
|
|
7
|
+
global: string & import("effect/Brand").Brand<"Project.ID">;
|
|
8
|
+
};
|
|
7
9
|
readonly from: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "AbsolutePath">>>, Schema.optionalKey<Schema.brand<Schema.String, "AbsolutePath">>, never, never>;
|
|
8
10
|
readonly branch: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Trim>>, Schema.optionalKey<Schema.Trim>, never, never>;
|
|
9
11
|
readonly directory: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "AbsolutePath">>>, Schema.optionalKey<Schema.brand<Schema.String, "AbsolutePath">>, never, never>;
|
|
@@ -12,6 +14,9 @@ export declare const CreateInput: Schema.Struct<{
|
|
|
12
14
|
export interface CreateInput extends Schema.Schema.Type<typeof CreateInput> {
|
|
13
15
|
}
|
|
14
16
|
export declare const RemoveInput: Schema.Struct<{
|
|
17
|
+
readonly projectID: Schema.brand<Schema.String, "Project.ID"> & {
|
|
18
|
+
global: string & import("effect/Brand").Brand<"Project.ID">;
|
|
19
|
+
};
|
|
15
20
|
readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
|
|
16
21
|
readonly force: Schema.Boolean;
|
|
17
22
|
}>;
|
package/dist/worktree.js
CHANGED
|
@@ -5,15 +5,16 @@ import { AbsolutePath, optional } from "./schema.js";
|
|
|
5
5
|
import { Project } from "./project.js";
|
|
6
6
|
export const StrategyID = Schema.Trim.pipe(Schema.check(Schema.isNonEmpty()), Schema.brand("Worktree.StrategyID"));
|
|
7
7
|
export const CreateInput = Schema.Struct({
|
|
8
|
-
|
|
8
|
+
projectID: Project.ID,
|
|
9
9
|
from: optional(AbsolutePath),
|
|
10
10
|
branch: optional(Schema.Trim.pipe(Schema.check(Schema.isNonEmpty()))),
|
|
11
11
|
directory: optional(AbsolutePath).annotate({
|
|
12
|
-
description: "Parent directory for the new worktree. Uses the
|
|
12
|
+
description: "Parent directory for the new worktree. Uses the project's canonical configuration, then defaults to the server's data directory under worktree/<first six project ID characters>.",
|
|
13
13
|
}),
|
|
14
14
|
name: optional(Schema.String),
|
|
15
15
|
}).annotate({ identifier: "Worktree.CreateInput" });
|
|
16
16
|
export const RemoveInput = Schema.Struct({
|
|
17
|
+
projectID: Project.ID,
|
|
17
18
|
directory: AbsolutePath,
|
|
18
19
|
force: Schema.Boolean,
|
|
19
20
|
}).annotate({ identifier: "Worktree.RemoveInput" });
|