@dsh-electron/dsh-plugin-multi-root-workspace 0.1.13 → 0.1.15

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.
Files changed (84) hide show
  1. package/CHANGELOG.en.md +36 -1
  2. package/CHANGELOG.md +36 -1
  3. package/README.en.md +27 -10
  4. package/README.md +27 -10
  5. package/cordis.patch.yml +5 -1
  6. package/detail/DETAIL.en.md +1 -0
  7. package/detail/DETAIL.md +1 -0
  8. package/detail/preview.svg +1 -0
  9. package/detail/preview.zh.svg +1 -0
  10. package/lib/{llm-message-fYORacvh.js → agent-instructions-BXuKhOzr.js} +1 -84
  11. package/lib/auto-review.js +2 -2
  12. package/lib/client.js +584 -73
  13. package/lib/client.js.map +1 -1
  14. package/lib/{command-B9855H7y.js → command-y5tfcAeC.js} +45 -12
  15. package/lib/command.js +1 -1
  16. package/lib/compat-CTJbpCxu.js +267 -0
  17. package/lib/compat.js +1 -1
  18. package/lib/{dialects-Dr4rDR-H.js → dialects-CdlG3RF9.js} +1 -1
  19. package/lib/{compat-Bg2HFVMX.js → dsh-version-DCwF7REk.js} +5 -265
  20. package/lib/{fs-CfzJq2wd.js → fs-Uws0ZpmV.js} +38 -0
  21. package/lib/fs.js +1 -1
  22. package/lib/index.js +11 -9
  23. package/lib/{instructions-KsUwUFE0.js → instructions-Ck9wp4J4.js} +695 -26
  24. package/lib/instructions.js +1 -1
  25. package/lib/llm-message-CepyzEBQ.js +84 -0
  26. package/lib/lsp.js +3 -3
  27. package/lib/{metadata-DgqSdVX_.js → metadata-99jgViHQ.js} +1 -1
  28. package/lib/{method-wrapper-CFY3p3j2.js → method-wrapper-D4oUCsEF.js} +22 -2
  29. package/lib/{native-win32-2waCRkPI.js → native-win32-C5oMtt7f.js} +2 -1
  30. package/lib/ops-compatibility.js +58 -0
  31. package/lib/ops-settings-UN2oOKEp.js +40 -0
  32. package/lib/ops-tools-k4JYaOrM.js +152 -0
  33. package/lib/process-fence.js +100 -24
  34. package/lib/{protocol-CJOvAvOS.js → protocol-CwDnFEyK.js} +54 -8
  35. package/lib/{registry-Bv431TfO.js → registry-DyDNDSJZ.js} +235 -79
  36. package/lib/{registry-lease-win32-DVTq9d4D.js → registry-lease-win32-r4puac9m.js} +2 -1
  37. package/lib/registry.js +2 -2
  38. package/lib/{review-context-NDpKeMCc.js → review-context-B-oHkU6a.js} +24 -7
  39. package/lib/review-context.js +1 -1
  40. package/lib/{roots-Ca_W1S9n.js → roots-CmaWxRVy.js} +112 -22
  41. package/lib/{sandbox-C-vCJCp3.js → sandbox-CZElTNPz.js} +1 -1
  42. package/lib/sandbox.js +1 -1
  43. package/lib/scope.js +72 -9
  44. package/lib/skills-utyuvmwr.js +104 -0
  45. package/lib/skills.js +4 -105
  46. package/lib/{tool-context-CpgIFcCB.js → tool-context-CCeY3mrK.js} +1 -1
  47. package/lib/types/authority/protocol.d.ts +5 -1
  48. package/lib/types/client/RootSwitcher.d.ts +2 -0
  49. package/lib/types/client/auto-review-settings.d.ts +18 -0
  50. package/lib/types/client/files-tree/FilesTree.d.ts +4 -1
  51. package/lib/types/client/files-tree/locales.d.ts +1 -1
  52. package/lib/types/client/locales.d.ts +40 -0
  53. package/lib/types/client/open-in-app/locales.d.ts +1 -1
  54. package/lib/types/client/ops-settings.d.ts +6 -0
  55. package/lib/types/client/skills-settings.d.ts +13 -0
  56. package/lib/types/client/styles.d.ts +1 -1
  57. package/lib/types/command.d.ts +3 -3
  58. package/lib/types/compat/auto-review-client.d.ts +58 -0
  59. package/lib/types/compat/connection-rpc.d.ts +12 -0
  60. package/lib/types/compat/dsh-version.d.ts +1 -1
  61. package/lib/types/compat/files-tree.d.ts +36 -0
  62. package/lib/types/compat/fs-patch.d.ts +6 -0
  63. package/lib/types/compat/instruction-activity.d.ts +32 -1
  64. package/lib/types/compat/koffi.d.ts +2 -0
  65. package/lib/types/compat/ops-confirmation.d.ts +17 -0
  66. package/lib/types/compat/ops-settings.d.ts +11 -0
  67. package/lib/types/compat/ops-tools.d.ts +25 -0
  68. package/lib/types/compat/skills-client.d.ts +1 -0
  69. package/lib/types/compat/tool-context.d.ts +4 -0
  70. package/lib/types/compat.d.ts +2 -2
  71. package/lib/types/fs.d.ts +3 -1
  72. package/lib/types/instructions.d.ts +6 -1
  73. package/lib/types/ops-compatibility.d.ts +34 -0
  74. package/lib/types/registry.d.ts +67 -8
  75. package/lib/types/review-context.d.ts +2 -0
  76. package/lib/types/roots.d.ts +114 -20
  77. package/lib/types/scope.d.ts +28 -2
  78. package/lib/workspace-files.js +3 -3
  79. package/lib/{workspace-routing-YPxaQ4V3.js → workspace-routing-D_qwMUh-.js} +4 -4
  80. package/locale/en.json +7 -0
  81. package/locale/zh.json +7 -0
  82. package/package.json +93 -82
  83. package/src/auto-review/README.en.md +1 -1
  84. package/src/auto-review/README.md +1 -1
@@ -1,7 +1,6 @@
1
1
  import { createRequire } from "node:module";
2
- import { existsSync, readFileSync, readdirSync } from "node:fs";
2
+ import { existsSync, readFileSync } from "node:fs";
3
3
  import { dirname, join, sep } from "node:path";
4
- import { Service } from "@deepseek-ai/cordis";
5
4
  import { fileURLToPath } from "node:url";
6
5
  //#region src/compat/dsh-version.ts
7
6
  /**
@@ -54,7 +53,9 @@ const SUPPORTED_DSH_RELEASES = [
54
53
  "0.2.1-rc.3",
55
54
  "0.2.1-rc.4",
56
55
  "0.2.1-rc.5",
57
- "0.2.2-alpha.2"
56
+ "0.2.2-alpha.2",
57
+ "0.2.2-alpha.3",
58
+ "0.2.2-rc.1"
58
59
  ];
59
60
  /**
60
61
  * Packages whose absence means this plugin cannot function at all: every one of
@@ -352,265 +353,4 @@ function report(verdict, release, packages, lines) {
352
353
  };
353
354
  }
354
355
  //#endregion
355
- //#region src/compat/pty-marker.ts
356
- /**
357
- * Boot-time probe for the agent-PTY marker contract.
358
- *
359
- * `multi-root-process-fence` tells an agent terminal from the user's own by
360
- * one env fact: every supported `dsh-terminal-bash` backend stamps
361
- * `DSH_PTY_SESSION_ID` (alongside `DSH_SESSION_ID`) into the PTY spawn spec,
362
- * while the panel's terminal controller stamps only `DSH_SESSION_ID`. That
363
- * marker is the ONLY discriminator — a backend that ever stops stamping it
364
- * would reclassify agent PTYs as user terminals and pass them through
365
- * unconfined under a restricted `danger-full-access`, which is a silent
366
- * fail-open on a security boundary.
367
- *
368
- * The marker is an env key inside upstream's emitted code, not an exported
369
- * symbol, so the honest structural probe is content: the installed backend
370
- * package must still write the marker. This module is called from the
371
- * `multi-root-compat` gate (`src/compat.ts`) BEFORE the service registers —
372
- * like the version verdict it is a precondition, not a diagnostic, and a
373
- * breach refuses the composition the same way `mixed`/`incomplete` do: it is
374
- * not relaxable by `DSH_MULTI_ROOT_COMPAT=warn`.
375
- *
376
- * Resolution follows the optional-peer precedent (`agent-instructions.ts`):
377
- * the backend is not a peer of this plugin, so the plugin anchor is tried
378
- * first (flat layouts) and the `@deepseek-ai/dsh` host anchor second — the
379
- * same host-anchor fallback pattern as `dsh-version.ts` — because the
380
- * backend rides inside the harness meta package's own dependency tree.
381
- *
382
- * @module @dsh-electron/dsh-plugin-multi-root-workspace/compat/pty-marker
383
- */
384
- /** The env key that identifies an agent-launched PTY spawn spec. */
385
- const AGENT_PTY_MARKER = "DSH_PTY_SESSION_ID";
386
- /** The upstream package whose backend owns the marker stamp. */
387
- const TERMINAL_BACKEND = "@deepseek-ai/dsh-terminal-bash";
388
- /** The harness meta package the backend rides inside (its dependency). */
389
- const HOST_ANCHOR = "@deepseek-ai/dsh/package.json";
390
- /** Scan budget: enough for any plausible backend layout, bounded forever. */
391
- const MAX_SOURCE_FILES = 256;
392
- const MAX_TOTAL_BYTES = 8388608;
393
- /**
394
- * Raised when the installed terminal backend does not uphold the marker
395
- * contract. Thrown from `apply` like `DshCompatUnsupportedError`, so it
396
- * surfaces as a plugin load failure with the diagnosis attached.
397
- */
398
- var PtyMarkerContractError = class extends Error {
399
- /** The resolved backend path when one was found. */
400
- backend;
401
- constructor(message, backend) {
402
- super(message);
403
- this.name = "PtyMarkerContractError";
404
- this.backend = backend;
405
- }
406
- };
407
- /**
408
- * Resolve the backend package root through the two anchors the contract can
409
- * reach: this module first (flat layouts where the backend is a direct
410
- * install), then the `@deepseek-ai/dsh` host manifest (pnpm-style layouts
411
- * where it is the meta package's own dependency — the
412
- * host-anchor fallback pattern in `dsh-version.ts`). A resolution failure that is not a
413
- * genuine NOT_FOUND propagates: a resolvable-but-broken specifier is not
414
- * evidence of absence.
415
- */
416
- function resolveBackendRoot() {
417
- const self = createRequire(import.meta.url);
418
- const anchors = [self];
419
- try {
420
- anchors.push(createRequire(self.resolve(HOST_ANCHOR)));
421
- } catch (error) {
422
- if (!isNotFound(error)) throw error;
423
- }
424
- for (const anchor of anchors) try {
425
- return dirname(anchor.resolve(`${TERMINAL_BACKEND}/package.json`));
426
- } catch (error) {
427
- if (!isNotFound(error)) throw error;
428
- }
429
- }
430
- function isNotFound(error) {
431
- const code = error?.code;
432
- return code === "MODULE_NOT_FOUND" || code === "ERR_MODULE_NOT_FOUND";
433
- }
434
- /** Recursively collect `.js` sources under the package root, within budget. */
435
- function listSources(root) {
436
- const files = [];
437
- const visit = (dir) => {
438
- for (const entry of readdirSync(dir, { withFileTypes: true })) {
439
- if (files.length >= MAX_SOURCE_FILES) return;
440
- const path = join(dir, entry.name);
441
- if (entry.isDirectory() && entry.name !== "node_modules") visit(path);
442
- else if (entry.isFile() && entry.name.endsWith(".js")) files.push(path);
443
- }
444
- };
445
- visit(root);
446
- return files;
447
- }
448
- const defaultIo = {
449
- resolveBackendRoot,
450
- listSources,
451
- read: (path) => readFileSync(path, "utf8")
452
- };
453
- /**
454
- * Judge the installed terminal backend against the marker contract.
455
- *
456
- * Never throws: every outcome — absent package, unreadable source, missing
457
- * marker — is folded into the verdict so the caller's reaction is a policy
458
- * decision in one place.
459
- * @param io - filesystem seams; tests inject them, production uses real fs.
460
- * @returns the verdict.
461
- */
462
- function agentPtyMarkerVerdict(io = defaultIo) {
463
- let root;
464
- try {
465
- root = io.resolveBackendRoot();
466
- } catch {
467
- return "unverifiable";
468
- }
469
- if (root === void 0) return "uninstalled";
470
- let files;
471
- try {
472
- files = io.listSources(root);
473
- } catch {
474
- return "unverifiable";
475
- }
476
- let remaining = MAX_TOTAL_BYTES;
477
- for (const file of files) {
478
- let content;
479
- try {
480
- content = io.read(file);
481
- } catch {
482
- return "unverifiable";
483
- }
484
- if (content.length > remaining) return "unverifiable";
485
- if (content.includes("DSH_PTY_SESSION_ID")) return "stamped";
486
- remaining -= content.length;
487
- }
488
- return "unverifiable";
489
- }
490
- /**
491
- * Enforce the contract: refuse when the marker cannot be confirmed.
492
- *
493
- * @param io - filesystem seams; tests inject them.
494
- * @throws {PtyMarkerContractError} on `unverifiable`.
495
- */
496
- function assertAgentPtyMarker(io = defaultIo) {
497
- if (agentPtyMarkerVerdict(io) !== "unverifiable") return;
498
- let backend;
499
- try {
500
- backend = io.resolveBackendRoot();
501
- } catch {}
502
- throw new PtyMarkerContractError(`multi-root workspace: the installed ${TERMINAL_BACKEND} does not stamp ${AGENT_PTY_MARKER} on agent PTY spawns, or its sources cannot be verified. That marker is the only fact that separates an agent terminal from the user's own — without it the process fence cannot confine a restricted danger-full-access agent PTY without confining the user's terminal too. The plugin refuses to run rather than let agent terminals pass unconfined. See docs/decisions/ADR-0017-three-state-root-access-and-sandbox-modes.md.`, backend);
503
- }
504
- //#endregion
505
- //#region src/compat.ts
506
- /**
507
- * `multi-root-compat`: the startup gate that turns the DSH compatibility
508
- * contract from documentation into a precondition.
509
- *
510
- * Every widened-authority row of this bundle — `multi-root-providers`,
511
- * `multi-root-registry`, `multi-root-instructions`, `multi-root-lsp`,
512
- * `multi-root-workspace-files`, `multi-root-process-fence` — injects
513
- * `multiRootCompat`. Cordis will not start a plugin whose injected service is
514
- * absent, so this row is what decides whether they run at all:
515
- *
516
- * ```text
517
- * compat check passes → ctx.multiRootCompat exists → the gated rows start
518
- * compat check fails → the row throws → they never start
519
- * ```
520
- *
521
- * The two PROVIDER rows (`multi-root-fs`, `multi-root-sandbox`) deliberately
522
- * do NOT inject the gate: their widening is scope-driven, and the gated
523
- * registry can never populate the scope on a refused installation — so they
524
- * degenerate to the upstream providers. That is what keeps a refused gate a
525
- * loud degradation (the plugin's features absent, the profile intact) instead
526
- * of a dead profile: upstream `fs-sandbox`/`sandbox` are already disabled by
527
- * the patch, so holding `ctx.fs`/`ctx.sandbox` back would take `ctx.shell`,
528
- * `permissionPresets` and every confining tool down with them.
529
- *
530
- * That is why the gate is a plain `apply` and not a `Service` subclass mounted
531
- * directly: the check has to be able to fail BEFORE the service exists. A
532
- * `Service` constructor has already run `super(ctx, name)` — and therefore
533
- * already claimed the service key — by the time it could inspect anything.
534
- *
535
- * The verdict itself, and the allowlist it is judged against, live in
536
- * `./compat/dsh-version.ts`. This module owns only the reaction to it.
537
- *
538
- * @module @dsh-electron/dsh-plugin-multi-root-workspace/compat
539
- */
540
- /**
541
- * Raised when the installed DSH release is not one this plugin is verified
542
- * against. It is thrown from `apply`, so it surfaces as a plugin load failure
543
- * with the full diagnosis attached — never as a silently degraded sandbox.
544
- */
545
- var DshCompatUnsupportedError = class extends Error {
546
- /** The report that produced the refusal. */
547
- report;
548
- constructor(report) {
549
- super(report.message);
550
- this.name = "DshCompatUnsupportedError";
551
- this.report = report;
552
- }
553
- };
554
- /**
555
- * The `ctx.multiRootCompat` service: the resolved compatibility verdict, held
556
- * where the gated providers can read it.
557
- *
558
- * It intentionally exposes no per-version capability flags. The adapters under
559
- * `./compat/` detect the shape they need STRUCTURALLY — whether a return value
560
- * is a thenable, which export name a module carries — because a structural
561
- * probe also survives upstream reshaping something within one release, while a
562
- * version comparison does not. The release string here is for the gate and for
563
- * diagnostics.
564
- */
565
- var MultiRootCompatService = class extends Service {
566
- /** The verdict this composition started under. */
567
- report;
568
- constructor(ctx, report) {
569
- super(ctx, "multiRootCompat");
570
- this.report = report;
571
- }
572
- /** The single DSH release every inspected core package agreed on. */
573
- get release() {
574
- return this.report.release;
575
- }
576
- /** Whether the installation is on the allowlist. */
577
- get supported() {
578
- return this.report.verdict === "supported";
579
- }
580
- };
581
- /** This row needs nothing: it is the thing everything else waits for. */
582
- const inject = [];
583
- /**
584
- * Apply the gate policy to one report.
585
- *
586
- * Under `DSH_MULTI_ROOT_COMPAT=warn` exactly one verdict is relaxed: an
587
- * `unsupported` release that every inspected package agrees on. That is the
588
- * only shape the upgrade smoke probes — a coherent tree on a release the
589
- * allowlist does not name yet, which is how a release earns its place there.
590
- * `mixed` and `incomplete` describe an installation the contract cannot judge
591
- * at all, so they are refused in either mode; production deployments leave the
592
- * variable unset and get the refusal for everything.
593
- * @param report - the verdict to act on.
594
- * @param enforcement - how to react to a non-`supported` verdict.
595
- * @returns the warning to log, or `undefined` when there is nothing to say.
596
- * @throws {DshCompatUnsupportedError} when refusing to run.
597
- */
598
- function assertSupportedInstallation(report, enforcement) {
599
- if (report.verdict === "supported") return void 0;
600
- if (enforcement === "enforce" || report.verdict !== "unsupported") throw new DshCompatUnsupportedError(report);
601
- return `${report.message}\n\nProceeding anyway because ${COMPAT_ENFORCEMENT_ENV}=warn. This is an upgrade-smoke mode: additional workspace roots are about to be granted through a sandbox profile shape that has not been verified on this release. Supported releases: ${SUPPORTED_DSH_RELEASES.join(", ")}.`;
602
- }
603
- /**
604
- * Judge the installation, then either refuse to provide the service or provide
605
- * it.
606
- * @param ctx - the row's context.
607
- */
608
- function apply(ctx) {
609
- const report = classifyInstallation();
610
- const warning = assertSupportedInstallation(report, compatEnforcement());
611
- if (warning !== void 0) ctx.logger.warn(warning);
612
- assertAgentPtyMarker();
613
- ctx.plugin(MultiRootCompatService, report);
614
- }
615
- //#endregion
616
- export { classifyInstallation as _, inject as a, agentPtyMarkerVerdict as c, HOST_SERVICE_PACKAGES as d, OPTIONAL_CORE_PACKAGES as f, SUPPORTED_DSH_RELEASES as g, RUNTIME_OPTIONAL_PACKAGES as h, assertSupportedInstallation as i, assertAgentPtyMarker as l, RUNNER_ANCHORED_PACKAGES as m, MultiRootCompatService as n, AGENT_PTY_MARKER as o, REQUIRED_CORE_PACKAGES as p, apply as r, PtyMarkerContractError as s, DshCompatUnsupportedError as t, CORE_PACKAGES as u, compatEnforcement as v, readInstalledVersion as y };
356
+ export { REQUIRED_CORE_PACKAGES as a, SUPPORTED_DSH_RELEASES as c, readInstalledVersion as d, OPTIONAL_CORE_PACKAGES as i, classifyInstallation as l, CORE_PACKAGES as n, RUNNER_ANCHORED_PACKAGES as o, HOST_SERVICE_PACKAGES as r, RUNTIME_OPTIONAL_PACKAGES as s, COMPAT_ENFORCEMENT_ENV as t, compatEnforcement as u };
@@ -5,6 +5,30 @@ import { canonicalPath, writableRoots } from "@deepseek-ai/dsh-sandbox";
5
5
  import { stat } from "node:fs/promises";
6
6
  import { FsError } from "@deepseek-ai/dsh-fs";
7
7
  import { LocalFileSystem } from "@deepseek-ai/dsh-fs-local";
8
+ //#region src/compat/fs-patch.ts
9
+ /**
10
+ * Adapt the mutation methods introduced by newer filesystem backends.
11
+ * Older supported backends do not expose these methods at all.
12
+ */
13
+ /** Install only methods present on the actual backend, preserving the caller as `this`. */
14
+ function installAdditionalMutations(prototype, fence) {
15
+ for (const method of [
16
+ "patchText",
17
+ "deleteFile",
18
+ "moveFile"
19
+ ]) {
20
+ const inherited = Reflect.get(LocalFileSystem.prototype, method);
21
+ if (typeof inherited !== "function") continue;
22
+ Object.defineProperty(prototype, method, {
23
+ configurable: true,
24
+ writable: true,
25
+ value: function(...args) {
26
+ return fence(this, method, args, (next) => Reflect.apply(inherited, this, next));
27
+ }
28
+ });
29
+ }
30
+ }
31
+ //#endregion
8
32
  //#region src/containment.ts
9
33
  const MISSING_CODES = /* @__PURE__ */ new Set(["ENOENT", "ENOTDIR"]);
10
34
  function isMissing(error) {
@@ -67,6 +91,9 @@ async function isPathUnder(path, root, caseSensitive = process.platform !== "win
67
91
  */
68
92
  var MultiRootFileSystem = class extends LocalFileSystem {
69
93
  static inject = ["sandboxPolicy", "multiRootScope"];
94
+ static {
95
+ installAdditionalMutations(this.prototype, (receiver, method, args, invoke) => receiver.additionalMutation(method, args, invoke));
96
+ }
70
97
  defaultMode;
71
98
  constructor(ctx, config) {
72
99
  super(ctx, config);
@@ -107,6 +134,17 @@ var MultiRootFileSystem = class extends LocalFileSystem {
107
134
  const policy = structuredClone(sandboxPolicy ?? this.ctx.sandboxPolicy.resolve());
108
135
  return this.withOperation(policy, "fs-edit", async (scope) => super.editText(await this.checkedTarget(target, policy, scope), edit, expected, signal));
109
136
  }
137
+ /** Fence every endpoint of a patch, delete, or move under one admission. */
138
+ async additionalMutation(method, args, invoke) {
139
+ const policyIndex = method === "deleteFile" ? 3 : 4;
140
+ const policy = structuredClone(args[policyIndex] ?? this.ctx.sandboxPolicy.resolve());
141
+ return this.withOperation(policy, method === "patchText" ? "fs-edit" : "fs-write", async (scope) => {
142
+ const checked = [...args];
143
+ checked[0] = await this.checkedTarget(args[0], policy, scope);
144
+ if (method === "moveFile") checked[1] = await this.checkedTarget(args[1], policy, scope);
145
+ return await invoke(checked);
146
+ });
147
+ }
110
148
  /** The provider must also work without the gated registry (ADR-0009). */
111
149
  async withOperation(policy, kind, body) {
112
150
  const registry = this.ctx.get("multiRootRegistry");
package/lib/fs.js CHANGED
@@ -1,3 +1,3 @@
1
1
  import "./providers.js";
2
- import { t as MultiRootFileSystem } from "./fs-CfzJq2wd.js";
2
+ import { t as MultiRootFileSystem } from "./fs-Uws0ZpmV.js";
3
3
  export { MultiRootFileSystem, MultiRootFileSystem as default };
package/lib/index.js CHANGED
@@ -1,15 +1,17 @@
1
- import { i as renderInstructions, n as instructionsApi, t as createInstructionMessage } from "./llm-message-fYORacvh.js";
2
- import { a as composeInstructionMessage, r as PLUGIN_SOURCE, t as DEFAULT_MAX_BYTES } from "./instructions-KsUwUFE0.js";
3
- import { a as classifyStoredRoots, c as indexedStatuses, i as canonicalRoot, l as isCanonicallyUnder, m as validateRootCandidate, n as additionalRootId, p as resolveRootRef, r as availableRoots, s as expandRootInput, t as RootValidationError, u as removeStatusAt } from "./roots-Ca_W1S9n.js";
4
- import { _ as classifyInstallation, c as agentPtyMarkerVerdict, d as HOST_SERVICE_PACKAGES, f as OPTIONAL_CORE_PACKAGES, g as SUPPORTED_DSH_RELEASES, h as RUNTIME_OPTIONAL_PACKAGES, i as assertSupportedInstallation, l as assertAgentPtyMarker, m as RUNNER_ANCHORED_PACKAGES, n as MultiRootCompatService, o as AGENT_PTY_MARKER, p as REQUIRED_CORE_PACKAGES, s as PtyMarkerContractError, t as DshCompatUnsupportedError, u as CORE_PACKAGES, v as compatEnforcement, y as readInstalledVersion } from "./compat-Bg2HFVMX.js";
5
- import { l as widenConfined } from "./dialects-Dr4rDR-H.js";
1
+ import { r as renderInstructions, t as instructionsApi } from "./agent-instructions-BXuKhOzr.js";
2
+ import { t as createInstructionMessage } from "./llm-message-CepyzEBQ.js";
3
+ import { a as composeInstructionMessage, r as PLUGIN_SOURCE, t as DEFAULT_MAX_BYTES } from "./instructions-Ck9wp4J4.js";
4
+ import { a as REQUIRED_CORE_PACKAGES, c as SUPPORTED_DSH_RELEASES, d as readInstalledVersion, i as OPTIONAL_CORE_PACKAGES, l as classifyInstallation, n as CORE_PACKAGES, o as RUNNER_ANCHORED_PACKAGES, r as HOST_SERVICE_PACKAGES, s as RUNTIME_OPTIONAL_PACKAGES, u as compatEnforcement } from "./dsh-version-DCwF7REk.js";
5
+ import { a as classifyStoredRoots, c as indexedStatuses, g as resolveRootRef, i as canonicalRoot, l as isCanonicallyUnder, n as additionalRootId, p as removeStatusAt, r as availableRoots, s as expandRootInput, t as RootValidationError, y as validateRootCandidate } from "./roots-CmaWxRVy.js";
6
+ import { c as agentPtyMarkerVerdict, i as assertSupportedInstallation, l as assertAgentPtyMarker, n as MultiRootCompatService, o as AGENT_PTY_MARKER, s as PtyMarkerContractError, t as DshCompatUnsupportedError } from "./compat-CTJbpCxu.js";
7
+ import { l as widenConfined } from "./dialects-CdlG3RF9.js";
6
8
  import { MULTI_ROOT_PROVIDER_BRAND, MultiRootProviders, brandMultiRootProvider, isMultiRootProvider } from "./providers.js";
7
- import { t as MultiRootFileSystem } from "./fs-CfzJq2wd.js";
8
- import { t as MultiRootSandboxProvider } from "./sandbox-C-vCJCp3.js";
9
+ import { t as MultiRootFileSystem } from "./fs-Uws0ZpmV.js";
10
+ import { t as MultiRootSandboxProvider } from "./sandbox-CZElTNPz.js";
9
11
  import { a as parseRevealedView, i as parsePanelCall, n as PANEL_ENDPOINTS, o as parseRootsView, t as PANEL_CHANNEL } from "./contract-CStSEOcK.js";
10
12
  import { MultiRootScopeService, renderWorkspaceRootsContext, sanitizeAdditionalRoots } from "./scope.js";
11
- import { a as MultiRootRegistry, c as multiRootDomainSpec, i as MAX_ALIAS_LENGTH, l as RegistryAuthorityLease, n as DOMAIN_NAME, o as REGISTRY_CONTENDED_MESSAGE, r as MAX_ADDITIONAL_ROOTS_CEILING, t as DEFAULT_MAX_ADDITIONAL_ROOTS, u as RegistryLeaseContendedError } from "./registry-Bv431TfO.js";
12
- import { a as renderRootsReport, c as revealArgv, i as parseFoldersCommand, o as resolvePanelPrimaryRoot, t as COMMAND_NAME } from "./command-B9855H7y.js";
13
+ import { a as MultiRootRegistry, c as multiRootDomainSpec, i as MAX_ALIAS_LENGTH, l as RegistryAuthorityLease, n as DOMAIN_NAME, o as REGISTRY_CONTENDED_MESSAGE, r as MAX_ADDITIONAL_ROOTS_CEILING, t as DEFAULT_MAX_ADDITIONAL_ROOTS, u as RegistryLeaseContendedError } from "./registry-DyDNDSJZ.js";
14
+ import { a as renderRootsReport, c as revealArgv, i as parseFoldersCommand, o as resolvePanelPrimaryRoot, t as COMMAND_NAME } from "./command-y5tfcAeC.js";
13
15
  //#region src/index.ts
14
16
  /**
15
17
  * Carrier plugin face for the bare-package-name loader row (see the module