@twinsearth/core-dsh-plugin 1.0.0 → 1.0.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/bin.js DELETED
@@ -1,254 +0,0 @@
1
- #!/usr/bin/env node
2
- import { StartupError, getDshRuntimeVersion, loadLayeredEnv } from "@twinsearth/dsh-app-boot";
3
- import { resolveDshHome } from "@twinsearth/dsh-home-paths";
4
- import { Command, CommanderError, InvalidArgumentError } from "commander";
5
- import { randomUUID } from "node:crypto";
6
- import { mkdir, writeFile } from "node:fs/promises";
7
- import { join } from "node:path";
8
- import { inspect } from "node:util";
9
- //#region lib/types/args.js
10
- /**
11
- * Commander adapter for the `dsh` command line.
12
- *
13
- * The launcher parses only what it owns — which profile to boot, which extra
14
- * patch overlays to apply, and the config dumps — and hands **everything after
15
- * its own flags** to the booted tree verbatim, where injected app plugins parse
16
- * their own flag families and print their own `--help` (see
17
- * `@twinsearth/dsh-cmdline`). Launcher flags therefore come first: the first
18
- * token this parser does not recognize starts the inner arguments, so
19
- * `dsh --profile tui --resume abc` boots the tui profile with `--resume abc`,
20
- * and `dsh --profile web -h` prints the web app's help, not this one's.
21
- *
22
- * `dsh <name>` abbreviates `dsh --profile <name>`; `plugin` manages a profile's
23
- * plugin dependencies by forwarding to pnpm.
24
- * @module @twinsearth/dsh/args
25
- */
26
- /**
27
- * Repeatable single-value collector: `--patch a.yml --patch b.yml`. Never
28
- * variadic — a variadic `--patch` would swallow the inner arguments.
29
- */
30
- const collect = (value, previous = []) => [...previous, value];
31
- function selectProfile(value, previous) {
32
- if (previous !== void 0) throw new InvalidArgumentError("select a profile only once");
33
- return value;
34
- }
35
- function rejectElectronProfile(program, profile) {
36
- if (profile.toLowerCase() === "desktop") program.error("error: profile \"desktop\" is managed exclusively by the Electron application");
37
- }
38
- /** The launcher's own help text; each app prints its own. */
39
- const HELP_EXAMPLES = `
40
- Examples:
41
- dsh web boot the web profile (same as: dsh --profile web)
42
- dsh rescue --from-default-profile web
43
- recreate rescue from the shipped web template, then boot it
44
- dsh headless "run the tests" answer one task, print the result, and exit
45
- dsh tui --patch ./extra.yml boot a custom profile with one extra overlay
46
- dsh tui --resume <session> arguments after the launcher flags reach the app
47
- dsh web --help the web app's own flags and help
48
- dsh plugin --profile tui add <package> install a plugin into the tui profile
49
- `;
50
- /**
51
- * Resolve a boot or dump invocation from the launcher flags and the leftover
52
- * inner arguments.
53
- * @param program - the command whose options were parsed.
54
- * @param profile - the profile these flags boot.
55
- * @param options - the launcher flags commander collected.
56
- * @param args - the leftover arguments, in argv order.
57
- * @returns the resolved invocation.
58
- */
59
- function resolveBoot(program, profile, options, args) {
60
- const patches = options.patch ?? [];
61
- if (patches.includes("")) program.error("error: --patch needs a path");
62
- if (options.fromDefaultProfile === "") program.error("error: --from-default-profile needs a name");
63
- const dumps = [
64
- options.dumpConfig,
65
- options.dumpDefaultConfig,
66
- options.dumpConfigSchema
67
- ].filter(Boolean);
68
- if (dumps.length === 0) return {
69
- mode: "profile",
70
- profile,
71
- fromDefaultProfile: options.fromDefaultProfile,
72
- patches,
73
- args
74
- };
75
- if (dumps.length > 1) program.error("error: --dump-config, --dump-default-config, and --dump-config-schema are mutually exclusive");
76
- if (args.length > 0) program.error(`error: config dumps take no app arguments, got ${args.map((argument) => JSON.stringify(argument)).join(" ")}`);
77
- if (options.dumpConfigSchema === true) return {
78
- mode: "dump-config-schema",
79
- profile,
80
- fromDefaultProfile: options.fromDefaultProfile,
81
- patches
82
- };
83
- const defaultOnly = options.dumpDefaultConfig === true;
84
- if (defaultOnly && patches.length > 0) program.error("error: --dump-default-config prints the bundle layers and takes no --patch");
85
- return {
86
- mode: "dump-config",
87
- profile,
88
- fromDefaultProfile: options.fromDefaultProfile,
89
- defaultOnly,
90
- patches
91
- };
92
- }
93
- /**
94
- * Resolve argv into one invocation, or print and exit for help, version, or an
95
- * error.
96
- * @param argv - arguments after the Node binary and script.
97
- * @param version - version string printed by `--version`.
98
- * @param manageDesktopProfile - permit Desktop's installed carrier to manage its reserved profile's plugins.
99
- * @returns the resolved invocation.
100
- */
101
- function parseDshArgs(argv, version, manageDesktopProfile = false) {
102
- const first = argv[0];
103
- let resolved;
104
- const program = new Command();
105
- program.name("dsh").version(version, "-V, --version", "output the version number").usage("[--profile] <name> [options] [app-args...]\n dsh plugin --profile <name> <pnpm-args...>").description("dsh: boot a DeepSeek Harness profile — an ordered stack of plugin-bundle patch layers under your own overrides.").addHelpText("after", HELP_EXAMPLES).exitOverride().helpOption(false).helpCommand(false).allowUnknownOption().passThroughOptions().enablePositionalOptions().argument("[args...]", "arguments for the booted profile's app (see: dsh --profile <name> --help)").option("--profile <name>", "the profile under $DSH_HOME/profiles to boot", selectProfile).option("--from-default-profile <name>", "replace a custom profile with a fresh copy of a shipped profile template").option("--patch <path>", "extra patch-list overlay applied after the profile layer (repeatable)", collect).option("--dump-config", "print the composed profile tree and exit").option("--dump-config-schema", "print JSON Schema for profile entries and patches without mounting").option("--dump-default-config", "print the profile tree without its user layer or --patch overlays and exit").action((args, options) => {
106
- if (options.profile === void 0) {
107
- if (args.some((argument) => argument === "-h" || argument === "--help")) program.help();
108
- program.error("error: --profile <name> is required");
109
- }
110
- const profile = options.profile;
111
- if (profile === "") program.error("error: --profile needs a name");
112
- rejectElectronProfile(program, profile);
113
- resolved = resolveBoot(program, profile, options, args);
114
- });
115
- if (first === "plugin") {
116
- const plugin = program.command("plugin").description("manage a profile's plugins by forwarding the remaining arguments to pnpm in the profile directory");
117
- plugin.helpOption("-h, --help", "show this help").passThroughOptions().requiredOption("--profile <name>", "the profile whose plugins to manage (initialized on first use)", selectProfile).allowUnknownOption().argument("[args...]", "pnpm arguments, forwarded verbatim (add <pkg>, remove <pkg>, why <pkg>, ...)").action((args, options) => {
118
- if (options.profile === "") program.error("error: --profile needs a name");
119
- if (!manageDesktopProfile) rejectElectronProfile(plugin, options.profile);
120
- if (args.length === 0) program.error("error: plugin needs pnpm arguments to forward (e.g. add <package>)");
121
- resolved = {
122
- mode: "plugin",
123
- profile: options.profile.toLowerCase() === "desktop" ? "desktop" : options.profile,
124
- args
125
- };
126
- });
127
- }
128
- try {
129
- const expanded = first !== void 0 && !first.startsWith("-") && first !== "plugin" ? ["--profile", ...argv] : argv;
130
- program.parse(expanded, { from: "user" });
131
- } catch (error) {
132
- return process.exit(error instanceof CommanderError ? error.exitCode : 1);
133
- }
134
- /* v8 ignore next -- an action resolves or Commander throws */
135
- if (resolved === void 0) throw new Error("dsh: no invocation resolved");
136
- return resolved;
137
- }
138
- //#endregion
139
- //#region lib/types/startup-diagnostics.js
140
- /** Save original startup diagnostics while keeping the terminal report concise. */
141
- /** Wait for stderr to finish the write before the failed process exits. */
142
- function writeStderr(text) {
143
- return new Promise((resolve, reject) => {
144
- process.stderr.write(text, (error) => {
145
- if (error) reject(error);
146
- else resolve();
147
- });
148
- });
149
- }
150
- /**
151
- * Print the startup summary and save a private, uniquely named report under DSH_HOME/logs.
152
- * Failed writes print the complete report to stderr instead of claiming a saved path.
153
- * @param error - startup audit failure retaining plugin metadata and original errors.
154
- * @param context - resolved Harness home, application version, and selected profile.
155
- * @param write - terminal output sink; awaited before returning, defaults to stderr.
156
- * @returns after saving or printing the report and completing terminal writes.
157
- */
158
- async function reportStartupFailure(error, context, write = writeStderr) {
159
- const now = (/* @__PURE__ */ new Date()).toISOString();
160
- const report = "WARNING: Raw diagnostics may contain configuration or credential values from plugin errors. Review before sharing.\n\n" + inspect({
161
- timestamp: now,
162
- dshVersion: context.version,
163
- nodeVersion: process.version,
164
- platform: process.platform,
165
- arch: process.arch,
166
- profile: context.profile,
167
- error
168
- }, {
169
- depth: null,
170
- maxArrayLength: null,
171
- maxStringLength: null,
172
- showHidden: true,
173
- customInspect: false,
174
- getters: false,
175
- colors: false
176
- }) + "\n";
177
- await write(`${error.message}\n`);
178
- const logDir = join(context.home, "logs");
179
- const logPath = join(logDir, `startup-${now.replaceAll(":", "-")}-${randomUUID()}.log`);
180
- try {
181
- await mkdir(logDir, {
182
- recursive: true,
183
- mode: 448
184
- });
185
- await writeFile(logPath, report, {
186
- flag: "wx",
187
- mode: 384
188
- });
189
- } catch (writeError) {
190
- await write(`\ndsh: warning: could not write startup diagnostics: ${String(writeError)}\nFull diagnostics:\n${report}`);
191
- return;
192
- }
193
- await write(`\nFull diagnostics: ${logPath}\n`);
194
- }
195
- //#endregion
196
- //#region lib/types/bin.js
197
- /**
198
- * Command-line entry for dsh.
199
- * @module @twinsearth/dsh/bin
200
- */
201
- /* v8 ignore file -- built-bin acceptance exercises this self-executing dispatch. */
202
- /**
203
- * Run the public dsh command-line interface.
204
- * @param options - Package runtime and Desktop profile access supplied by the installation.
205
- * @returns a promise that settles when the selected command mode finishes.
206
- */
207
- async function runCli(options = {}) {
208
- const version = getDshRuntimeVersion();
209
- const { manageDesktopProfile, ...profileOptions } = options;
210
- const invocation = parseDshArgs(process.argv.slice(2), version, manageDesktopProfile);
211
- switch (invocation.mode) {
212
- case "profile": {
213
- const { runProfile } = await import("./profile-boot.js");
214
- try {
215
- await runProfile({
216
- environment: loadLayeredEnv("dsh"),
217
- profile: invocation.profile,
218
- fromDefaultProfile: invocation.fromDefaultProfile,
219
- patchFiles: invocation.patches,
220
- args: invocation.args,
221
- ...profileOptions
222
- });
223
- } catch (error) {
224
- if (!(error instanceof StartupError)) throw error;
225
- await reportStartupFailure(error, {
226
- home: resolveDshHome(),
227
- version,
228
- profile: invocation.profile
229
- });
230
- process.exit(1);
231
- }
232
- break;
233
- }
234
- case "plugin": {
235
- const { runPlugin } = await import("./plugin-DscIHF4k.js");
236
- process.exit(await runPlugin(invocation.profile, invocation.args, options.packageManager));
237
- break;
238
- }
239
- case "dump-config": {
240
- const { runDumpConfig } = await import("./dump-config-DuXZcU0e.js");
241
- runDumpConfig(invocation.profile, invocation.defaultOnly, invocation.patches, invocation.fromDefaultProfile);
242
- break;
243
- }
244
- case "dump-config-schema": {
245
- const { runDumpConfigSchema } = await import("./dump-config-schema-r4V15-lg.js");
246
- await runDumpConfigSchema(invocation.profile, invocation.patches, invocation.fromDefaultProfile);
247
- break;
248
- }
249
- default: throw new Error(`dsh: unhandled invocation mode ${JSON.stringify(invocation)}`);
250
- }
251
- }
252
- if (import.meta.main) await runCli();
253
- //#endregion
254
- export { runCli };
@@ -1,64 +0,0 @@
1
- import { a as prepareProfile, n as PROFILE_ROOT_FILENAME, r as homePatchPath } from "./profile-boot-e2mS45fC.js";
2
- import { loadOptionalPatches, loadOverlayPatches, renderConfigDump } from "@twinsearth/dsh-app-boot";
3
- import { join, resolve } from "node:path";
4
- import { existsSync } from "node:fs";
5
- //#region lib/types/dump-config.js
6
- /**
7
- * Config-dump entry for `dsh --profile <name> --dump-config`: compose the
8
- * profile's patch layers through the include plugin's patch algorithm without
9
- * booting or evaluating `!!js`, with one source layer per bundle, the
10
- * profile's own patch file, and each `--patch` overlay.
11
- * @module @twinsearth/dsh/dump-config
12
- */
13
- const NAME = "dsh";
14
- /* v8 ignore start -- built-bin acceptance drives this boot-free dispatch */
15
- /**
16
- * Print a profile composition with comments naming each source file and patch layer.
17
- * @param profile - the profile name.
18
- * @param defaultOnly - omit the profile's user layer and `--patch` overlays
19
- * (the recovery diagnostic for a broken `cordis.patch.yml`, which is then
20
- * never parsed).
21
- * @param patches - `--patch` overlay paths, in argv order.
22
- * @param fromDefaultProfile - shipped template that replaces the profile before loading it.
23
- */
24
- function runDumpConfig(profile, defaultOnly, patches, fromDefaultProfile) {
25
- const loaded = prepareProfile(profile, !defaultOnly, fromDefaultProfile);
26
- const layers = collectConfigDumpLayers(loaded, defaultOnly, patches);
27
- process.stdout.write(renderConfigDump(NAME, join(loaded.dir, PROFILE_ROOT_FILENAME), layers));
28
- }
29
- /**
30
- * Read dump layers in bundle, profile, home, then argv order without composing them.
31
- * @param loaded - prepared profile and parsed bundle and profile patches.
32
- * @param defaultOnly - omit profile, home, and argv layers without reading their files.
33
- * @param patches - overlay paths relative to the invoking directory, in argv order.
34
- * @returns the labeled layers shared by YAML and schema dumps.
35
- */
36
- function collectConfigDumpLayers(loaded, defaultOnly, patches) {
37
- const layers = loaded.layers.map((layer) => ({
38
- label: layer.packageName,
39
- patches: layer.patches
40
- }));
41
- if (!defaultOnly) {
42
- if (existsSync(loaded.patchPath)) layers.push({
43
- label: loaded.patchPath,
44
- patches: loaded.patches
45
- });
46
- const homePatchFile = homePatchPath();
47
- const homePatches = loadOptionalPatches(NAME, homePatchFile);
48
- if (homePatches !== void 0) layers.push({
49
- label: homePatchFile,
50
- patches: homePatches
51
- });
52
- for (const file of patches) {
53
- const absolute = resolve(file);
54
- layers.push({
55
- label: absolute,
56
- patches: loadOverlayPatches(NAME, absolute)
57
- });
58
- }
59
- }
60
- return layers;
61
- }
62
- /* v8 ignore stop */
63
- //#endregion
64
- export { runDumpConfig as n, collectConfigDumpLayers as t };
@@ -1,2 +0,0 @@
1
- import { n as runDumpConfig } from "./dump-config-D97dwXdd.js";
2
- export { runDumpConfig };
@@ -1,41 +0,0 @@
1
- import { a as prepareProfile, t as INSTALL_ANCHOR } from "./profile-boot-e2mS45fC.js";
2
- import { t as collectConfigDumpLayers } from "./dump-config-D97dwXdd.js";
3
- import { generateConfigSchema } from "@twinsearth/dsh-app-boot";
4
- //#region lib/types/dump-config-schema.js
5
- /**
6
- * Schema-dump entry: inspect the composed profile without applying its plugins.
7
- * Imports and lazy schema builders execute trusted module code.
8
- * @module @twinsearth/dsh/dump-config-schema
9
- */
10
- /* v8 ignore file -- built-bin acceptance drives schema collection and output. */
11
- const NAME = "dsh";
12
- /**
13
- * Print one JSON Schema document; incomplete collection or projection sets exitCode to 1.
14
- * Profile initialization writes match the YAML dump. Plugin imports may execute
15
- * top-level code, but collection never applies plugins or evaluates `!!js`.
16
- * During schema generation, ordinary stdout writes are redirected to stderr.
17
- * @param profile - the profile name.
18
- * @param patches - overlay paths, in argv order.
19
- * @param fromDefaultProfile - shipped template that replaces the profile before loading it.
20
- * @returns after collection and output, with diagnostics also written to stderr.
21
- */
22
- async function runDumpConfigSchema(profile, patches, fromDefaultProfile) {
23
- const loaded = prepareProfile(profile, true, fromDefaultProfile);
24
- const layers = collectConfigDumpLayers(loaded, false, patches);
25
- const stdoutWrite = process.stdout.write;
26
- let dump;
27
- process.stdout.write = process.stderr.write.bind(process.stderr);
28
- try {
29
- dump = await generateConfigSchema(loaded, layers.map((layer) => layer.patches), INSTALL_ANCHOR);
30
- } finally {
31
- process.stdout.write = stdoutWrite;
32
- }
33
- process.stdout.write(`${JSON.stringify(dump, null, 2)}\n`);
34
- for (const diagnostic of dump["x-cordis"].diagnostics) {
35
- const location = diagnostic.path === void 0 ? "" : ` [${diagnostic.path}]`;
36
- process.stderr.write(`${NAME}: ${diagnostic.level}:${location} ${diagnostic.message}\n`);
37
- }
38
- if (!dump["x-cordis"].complete) process.exitCode = 1;
39
- }
40
- //#endregion
41
- export { runDumpConfigSchema };
@@ -1,102 +0,0 @@
1
- import { t as INSTALL_ANCHOR } from "./profile-boot-e2mS45fC.js";
2
- import { initProfile, readProfileCompatibility, resolveProfileDir } from "@twinsearth/dsh-app-boot";
3
- import { mkdir } from "node:fs/promises";
4
- import { join } from "node:path";
5
- import { existsSync } from "node:fs";
6
- import { DEFAULT_PROFILE_BUNDLES, PROFILE_TEMPLATES } from "@twinsearth/dsh-official-bundles";
7
- import { runPluginCommand, runProfilePnpm, setProfileVersionExemption } from "@twinsearth/dsh-plugin-manager/operations";
8
- import { withFileLock } from "@twinsearth/dsh-atomic-write";
9
- //#region lib/types/plugin.js
10
- /** Profile package management and explicit, exact-version compatibility approvals. */
11
- function requireDesktopProfile(dir) {
12
- if (!existsSync(join(dir, "package.json"))) throw new Error("Open DeepSeek Harness Desktop once to initialize its profile, then fully quit it before running dsh plugin --profile desktop.");
13
- }
14
- /** Parse only DSH-owned commands; all other arguments remain pnpm's responsibility. */
15
- async function versionCommand(profile, args) {
16
- const [command, ...rest] = args;
17
- if (command !== "allow-version" && command !== "revoke-version" && command !== "version-exemptions") return void 0;
18
- try {
19
- let packageVersion;
20
- let runtimeVersion;
21
- let acceptRisk = false;
22
- const argumentsIterator = rest.values();
23
- for (const argument of argumentsIterator) if (argument === "--accept-risk" && command === "allow-version" && !acceptRisk) acceptRisk = true;
24
- else if (argument === "--dsh-version" && runtimeVersion === void 0) runtimeVersion = argumentsIterator.next().value;
25
- else if (argument.startsWith("--dsh-version=") && runtimeVersion === void 0) runtimeVersion = argument.slice(14);
26
- else if (!argument.startsWith("-") && packageVersion === void 0) packageVersion = argument;
27
- else throw new Error(`unexpected argument ${JSON.stringify(argument)}`);
28
- if (command === "version-exemptions" && rest.length > 0) throw new Error("usage: dsh plugin version-exemptions");
29
- let request;
30
- if (command !== "version-exemptions") {
31
- if (packageVersion === void 0 || runtimeVersion === void 0) throw new Error(`usage: dsh plugin ${command} <package@version> --dsh-version <exact>${command === "allow-version" ? " --accept-risk" : ""}`);
32
- request = {
33
- packageVersion,
34
- runtimeVersion
35
- };
36
- }
37
- if (command === "allow-version") process.stderr.write("dsh: warning: allowing incompatible plugin versions can break the application or corrupt data. Approval applies only to the exact package and DSH versions.\n");
38
- const dir = resolveProfileDir(profile);
39
- if (profile !== "desktop") await mkdir(dir, { recursive: true });
40
- await withFileLock(join(dir, "package.json"), async () => {
41
- if (profile === "desktop") requireDesktopProfile(dir);
42
- else if (!existsSync(join(dir, "package.json"))) initProfile(dir, PROFILE_TEMPLATES[profile]?.bundles ?? DEFAULT_PROFILE_BUNDLES);
43
- if (request === void 0) {
44
- const { exemptions, warnings } = readProfileCompatibility(dir);
45
- for (const warning of warnings) process.stderr.write(`dsh: warning: ${warning}\n`);
46
- process.stdout.write(JSON.stringify(exemptions, void 0, 2) + "\n");
47
- } else {
48
- await setProfileVersionExemption(dir, request.packageVersion, request.runtimeVersion, command === "allow-version", acceptRisk);
49
- process.stdout.write(`dsh: ${command === "allow-version" ? "allowed" : "revoked"} ${request.packageVersion} for DSH ${request.runtimeVersion}\n`);
50
- }
51
- }, { waitMs: 12e4 });
52
- return 0;
53
- } catch (error) {
54
- process.stderr.write(`dsh: ${String(error)}\n`);
55
- return 1;
56
- }
57
- }
58
- /** Run package management for a profile.
59
- * @param profile Profile name; Desktop's reserved profile must already be initialized by the application.
60
- * @param args DSH exemption command or pnpm arguments relative to the invoking directory.
61
- * @param packageManager Installation-owned executable and environment for pnpm operations.
62
- * @returns Zero on success; nonzero on invalid approval or package-manager failure.
63
- */
64
- async function runPlugin(profile, args, packageManager) {
65
- if (profile === "desktop") try {
66
- requireDesktopProfile(resolveProfileDir(profile));
67
- } catch (error) {
68
- process.stderr.write(`dsh: ${String(error)}\n`);
69
- return 1;
70
- }
71
- const versionResult = await versionCommand(profile, args);
72
- if (versionResult !== void 0) return versionResult;
73
- const dir = resolveProfileDir(profile);
74
- if (existsSync(join(dir, "package.json"))) for (const warning of readProfileCompatibility(dir).warnings) process.stderr.write(`dsh: warning: ${warning}\n`);
75
- const context = {
76
- profile,
77
- dir,
78
- installAnchor: INSTALL_ANCHOR,
79
- cwd: process.cwd()
80
- };
81
- const options = {
82
- ...packageManager,
83
- execution: "cli",
84
- outputBytes: 16384,
85
- lockWaitMs: 12e4,
86
- lookupTimeoutMs: 12e4,
87
- onOutput: (text, stream) => {
88
- process[stream].write(text);
89
- }
90
- };
91
- const result = profile === "desktop" ? await withFileLock(join(dir, "package.json"), async () => {
92
- requireDesktopProfile(dir);
93
- return runProfilePnpm(context, args, options);
94
- }, { waitMs: 12e4 }) : await runPluginCommand(context, args, options);
95
- if (result.exitCode === 127) process.stderr.write("dsh: pnpm was not found; install pnpm and make it available on PATH.\n");
96
- for (const { name, version, runtimeVersion } of result.incompatible ?? []) process.stderr.write(`dsh: to accept the risk, run: dsh plugin --profile ${profile} allow-version ${name}@${version} --dsh-version ${runtimeVersion} --accept-risk\n`);
97
- if (result.exitCode !== 0) process.stderr.write(`dsh: plugin command failed; diagnostics: ${result.logPath}\n`);
98
- if (result.exitCode !== 0 && args.some((argument) => /^git\+|^github:|\.git(?:#|$)/.test(argument))) process.stderr.write(`dsh: git-hosted plugins build on install via their prepare script, which pnpm blocks until allowed — add the exact key pnpm printed above under allowBuilds in ${join(resolveProfileDir(profile), "pnpm-workspace.yaml")}, then re-run\n`);
99
- return result.exitCode;
100
- }
101
- //#endregion
102
- export { runPlugin };