dsh-worktree-switch 0.3.1 → 0.5.0
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/README.md +104 -21
- package/lib/client.js +1274 -487
- package/lib/index.d.ts +13 -0
- package/lib/index.js +601 -106
- package/lib/index.js.map +1 -1
- package/package.json +1 -1
package/lib/index.d.ts
CHANGED
|
@@ -1,5 +1,15 @@
|
|
|
1
1
|
import Schema from "@deepseek-ai/schemastery";
|
|
2
2
|
import { Context } from "@deepseek-ai/cordis";
|
|
3
|
+
/**
|
|
4
|
+
* Wire vocabulary shared by the host half, the browser half, and the tests.
|
|
5
|
+
*
|
|
6
|
+
* Both halves are built separately; these are the only values that cross
|
|
7
|
+
* between them, so they live in one module and nothing here imports Node or
|
|
8
|
+
* React.
|
|
9
|
+
* @module dsh-worktree-switch/types
|
|
10
|
+
*/
|
|
11
|
+
/** The two configured base points: fetch the remote default branch, or use local HEAD. */
|
|
12
|
+
type BaseRef = 'fresh' | 'head';
|
|
3
13
|
/** Plugin id: package name, bundle row id, browser module id. */
|
|
4
14
|
export declare const name = "dsh-worktree-switch";
|
|
5
15
|
/**
|
|
@@ -15,6 +25,8 @@ export interface Config {
|
|
|
15
25
|
defaultEnabled: boolean;
|
|
16
26
|
/** Refuse shell commands that run Git against the project checkout while the session is in a copy. */
|
|
17
27
|
guardSourceCheckout: boolean;
|
|
28
|
+
/** Commit a new copy starts from: the fetched remote default branch, or local HEAD. */
|
|
29
|
+
baseRef: BaseRef;
|
|
18
30
|
}
|
|
19
31
|
/** Schemastery schema for {@link Config}. */
|
|
20
32
|
export declare const Config: Schema<Config>;
|
|
@@ -24,4 +36,5 @@ export declare const Config: Schema<Config>;
|
|
|
24
36
|
* @param config - validated row config.
|
|
25
37
|
*/
|
|
26
38
|
export declare function apply(ctx: Context, config: Config): void;
|
|
39
|
+
export type { BaseRef };
|
|
27
40
|
//# sourceMappingURL=index.d.ts.map
|