dsh-worktree-switch 0.0.0-stage → 0.2.1

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/lib/index.d.ts ADDED
@@ -0,0 +1,25 @@
1
+ import Schema from "@deepseek-ai/schemastery";
2
+ import { Context } from "@deepseek-ai/cordis";
3
+ /** Plugin id: package name, bundle row id, browser module id. */
4
+ export declare const name = "dsh-worktree-switch";
5
+ /**
6
+ * Services this plugin cannot work without.
7
+ *
8
+ * `worktrees` is provided by the row this bundle's patch inserts next to its
9
+ * own, so Cordis holds this plugin until that row has mounted.
10
+ */
11
+ export declare const inject: string[];
12
+ /** Row config accepted from `cordis.patch.yml`. */
13
+ export interface Config {
14
+ /** Default for a project the user has never switched either way. */
15
+ defaultEnabled: boolean;
16
+ }
17
+ /** Schemastery schema for {@link Config}. */
18
+ export declare const Config: Schema<Config>;
19
+ /**
20
+ * Mount the host half.
21
+ * @param ctx - Host context.
22
+ * @param config - validated row config.
23
+ */
24
+ export declare function apply(ctx: Context, config: Config): void;
25
+ //# sourceMappingURL=index.d.ts.map