@modootoday/pmcp 0.30.1 → 0.31.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.
Files changed (72) hide show
  1. package/.agents/plugins/marketplace.json +1 -1
  2. package/.claude-plugin/marketplace.json +1 -1
  3. package/.claude-plugin/plugin.json +1 -1
  4. package/.mcp.json +1 -1
  5. package/dist/{apply-P2POBHIU.js → apply-O36MB3Q5.js} +7 -7
  6. package/dist/{chunk-YP55H3V6.js → chunk-2UKP5A7F.js} +3 -3
  7. package/dist/chunk-3QW5KA52.js +7 -0
  8. package/dist/{chunk-ADIAVEVZ.js → chunk-54FOQB2E.js} +2 -2
  9. package/dist/{chunk-MWEE5HCH.js → chunk-5SMF2OKY.js} +2 -2
  10. package/dist/{chunk-NHQ5BWMO.js → chunk-6FOP5S63.js} +4 -4
  11. package/dist/{chunk-RC7JRUM5.js → chunk-KFIKI44F.js} +2 -2
  12. package/dist/{chunk-I5BKHSVY.js → chunk-NPLTVGBP.js} +5 -5
  13. package/dist/{chunk-E5OBYCMP.js → chunk-NZTZHTW3.js} +3 -3
  14. package/dist/{chunk-N5RB4HU6.js → chunk-O7OYOL64.js} +3 -3
  15. package/dist/{chunk-7YBS5S3F.js → chunk-OF42VZRG.js} +2 -2
  16. package/dist/{chunk-LESRSUYY.js → chunk-PTD3YQIT.js} +5 -5
  17. package/dist/{chunk-XMCP4SGT.js → chunk-QEH7WOBC.js} +2 -2
  18. package/dist/{chunk-UCTZ7LB2.js → chunk-RQQHZEVM.js} +2 -2
  19. package/dist/{chunk-CO5DP2RP.js → chunk-RQWJGNS6.js} +2 -2
  20. package/dist/{chunk-EINSPZVE.js → chunk-S6QMSCFS.js} +2 -2
  21. package/dist/{chunk-G5OL7NQS.js → chunk-SLWE4SGW.js} +108 -27
  22. package/dist/{chunk-HV43X72U.js → chunk-V5ZOISWG.js} +2 -2
  23. package/dist/{chunk-5GFNEL6I.js → chunk-VEXPKCAC.js} +12 -12
  24. package/dist/{chunk-4NR6F2G5.js → chunk-VLY6AGVN.js} +2 -2
  25. package/dist/cli.js +3 -3
  26. package/dist/{completion-NLC6EB7Q.js → completion-7QNGLW4X.js} +2 -2
  27. package/dist/{diagnostics-5JG4WLRI.js → diagnostics-4FUIW53N.js} +5 -5
  28. package/dist/{doctor-RLSWHJ2A.js → doctor-3XJJBENL.js} +9 -9
  29. package/dist/{entry-FAVK7RKI.js → entry-E65VAN5N.js} +9 -9
  30. package/dist/{exec-mcp-7RZP3J3L.js → exec-mcp-VYS4FTKF.js} +5 -5
  31. package/dist/{harness-BB6DSAVZ.js → harness-2MCF2ZWN.js} +3 -3
  32. package/dist/harness-launch-gate.js +3 -3
  33. package/dist/harness-worker.js +5 -5
  34. package/dist/hook-body.js +131 -50
  35. package/dist/{hooks-Y22ODBFZ.js → hooks-SEC6WIP5.js} +3 -3
  36. package/dist/{host-5PO6OXNR.js → host-2CKQ6H6W.js} +2 -2
  37. package/dist/{host-HG5BH2G6.js → host-33YTCKQK.js} +7 -7
  38. package/dist/{host-RO54NJCQ.js → host-VPSNIHRO.js} +6 -6
  39. package/dist/{host-run-6NMZUNPQ.js → host-run-AVJRPDL6.js} +4 -4
  40. package/dist/http.js +1 -1
  41. package/dist/{import-mcp-QV3QQA7S.js → import-mcp-NCOFK75O.js} +4 -4
  42. package/dist/index.d.ts +1 -1
  43. package/dist/index.js +8 -8
  44. package/dist/{init-7YCITJBT.js → init-VHCYXPTG.js} +2 -2
  45. package/dist/{invoke-PWCH3QTK.js → invoke-XY5FIQZB.js} +7 -7
  46. package/dist/{list-ZBIXGLKJ.js → list-M6MMCCNY.js} +6 -6
  47. package/dist/{logout-NWOB6FYU.js → logout-WJDFPQCF.js} +5 -5
  48. package/dist/{mcp-6I5I6VGZ.js → mcp-DGNTEMHQ.js} +2 -2
  49. package/dist/{measure-XD5UDZMJ.js → measure-BR6R5ZGJ.js} +2 -2
  50. package/dist/{project-IKIRR3ZN.js → project-UQQLPD4K.js} +4 -4
  51. package/dist/{run-VWETBSCC.js → run-I7425NVX.js} +4 -4
  52. package/dist/{run-U2NQLEEM.js → run-UKTQKE5X.js} +4 -4
  53. package/dist/{serve-EYRBNRYW.js → serve-EAYEISOY.js} +3 -3
  54. package/dist/{start-login-S7TSV6U7.js → start-login-OYS26DEB.js} +5 -5
  55. package/dist/{status-PXSKFHAJ.js → status-K5SO4Q5K.js} +5 -5
  56. package/dist/{status-FL3BR362.js → status-NI4TJ56E.js} +6 -6
  57. package/dist/stdio.js +2 -2
  58. package/dist/{test-PWBXC2D5.js → test-72IQFIXF.js} +5 -5
  59. package/dist/{tui-BNBDMV2M.js → tui-O6AP46M3.js} +4 -4
  60. package/dist/{worker-6OGOG6E4.js → worker-UUYKNLVW.js} +7 -7
  61. package/docs/hooks.md +2 -1
  62. package/docs/project-configuration.md +2 -0
  63. package/gemini-extension.json +2 -2
  64. package/mcp.json +1 -1
  65. package/package.json +5 -5
  66. package/plugin.json +1 -1
  67. package/plugins/pmcp/.claude-plugin/plugin.json +1 -1
  68. package/plugins/pmcp/.mcp.json +1 -1
  69. package/plugins/pmcp/gemini-extension.json +2 -2
  70. package/plugins/pmcp/mcp.json +1 -1
  71. package/plugins/pmcp/plugin.json +1 -1
  72. package/dist/chunk-YPK3ZMDX.js +0 -7
@@ -77,7 +77,7 @@ import {
77
77
  readHost,
78
78
  readLock,
79
79
  readLockFile
80
- } from "./chunk-RC7JRUM5.js";
80
+ } from "./chunk-KFIKI44F.js";
81
81
  import {
82
82
  DISABLE_ENV,
83
83
  readLeaseSettings
@@ -2033,7 +2033,7 @@ function readMcp(path, value) {
2033
2033
  return servers;
2034
2034
  }
2035
2035
 
2036
- // src/hooks/policies/git/forced-branch-move.ts
2036
+ // src/hooks/policies/git/discard-work.ts
2037
2037
  import { resolve as resolve3 } from "path";
2038
2038
 
2039
2039
  // src/hooks/shell/commands.ts
@@ -3299,7 +3299,87 @@ function onlyKeys(raw, keys) {
3299
3299
  if (unknown) throw new Error(`unknown option ${unknown}`);
3300
3300
  }
3301
3301
 
3302
+ // src/hooks/policies/git/discard-work.ts
3303
+ var STASH_READS = /* @__PURE__ */ new Set(["list", "show"]);
3304
+ var STASH_SHARED = ", and the stash is shared by every worktree of this repository";
3305
+ function shortFlag(args, letter) {
3306
+ return args.some((arg) => /^-[a-zA-Z]+$/u.test(arg) && arg.includes(letter));
3307
+ }
3308
+ function checkoutDiscards(args) {
3309
+ if (args.includes("-f") || args.includes("--force")) return true;
3310
+ const paths = args.indexOf("--");
3311
+ if (paths >= 0) return paths < args.length - 1;
3312
+ return args.filter((arg) => !arg.startsWith("-")).includes(".");
3313
+ }
3314
+ function restoreDiscards(args) {
3315
+ const staged = args.includes("--staged") || shortFlag(args, "S");
3316
+ const worktree = args.includes("--worktree") || shortFlag(args, "W");
3317
+ return worktree || !staged;
3318
+ }
3319
+ function discardingCommand(argv) {
3320
+ if (program(argv[0]) !== "git") return null;
3321
+ const call = gitCall(argv);
3322
+ const args = argv.slice(call.at + 1);
3323
+ const named2 = (command) => ({ command, dir: call.dir });
3324
+ if (call.sub === "reset" && args.includes("--hard"))
3325
+ return named2("git reset --hard");
3326
+ if (call.sub === "checkout" && checkoutDiscards(args))
3327
+ return named2("git checkout of paths");
3328
+ if (call.sub === "restore" && restoreDiscards(args))
3329
+ return named2("git restore of the working tree");
3330
+ if (call.sub === "clean" && (args.includes("--force") || shortFlag(args, "f")))
3331
+ return named2("git clean -f");
3332
+ if (call.sub === "stash" && !STASH_READS.has(call.next))
3333
+ return named2("git stash");
3334
+ return null;
3335
+ }
3336
+ function placeOf(git, sessionCwd, target) {
3337
+ const top = git.toplevel(target);
3338
+ if (!top) return null;
3339
+ const trees = git.worktrees(target);
3340
+ if (trees.length < 2) return "own";
3341
+ if (top === trees[0]?.path) return "shared";
3342
+ return top === git.toplevel(sessionCwd) ? "own" : "other";
3343
+ }
3344
+ var WHERE = {
3345
+ shared: "the shared checkout, which other sessions read and land from",
3346
+ other: "another session's worktree"
3347
+ };
3348
+ var discardWork = {
3349
+ id: "git.discard_work",
3350
+ events: ["before_tool"],
3351
+ tools: ["shell"],
3352
+ fail: "closed",
3353
+ defaultMode: "graded",
3354
+ options: noOptions,
3355
+ evaluate(input, ctx) {
3356
+ const call = shellCall(input);
3357
+ if (!call) return pass;
3358
+ for (const step of realSteps(call.steps)) {
3359
+ const found2 = discardingCommand(step.argv);
3360
+ if (!found2) continue;
3361
+ const target = resolve3(input.cwd, step.dir, found2.dir);
3362
+ const place = placeOf(ctx.git, input.cwd, target);
3363
+ if (!place) continue;
3364
+ if (place === "own") {
3365
+ const shared2 = found2.command === "git stash" ? STASH_SHARED : "";
3366
+ return {
3367
+ context: [
3368
+ `pmcp git.discard_work: ${found2.command} throws away uncommitted work in this worktree; commit it first, or name the paths you mean${shared2}.`
3369
+ ]
3370
+ };
3371
+ }
3372
+ return {
3373
+ verdict: "deny",
3374
+ reason: `${found2.command} in ${WHERE[place]} throws away work that is not yours. Work in your own worktree, or ask its owner.`
3375
+ };
3376
+ }
3377
+ return pass;
3378
+ }
3379
+ };
3380
+
3302
3381
  // src/hooks/policies/git/forced-branch-move.ts
3382
+ import { resolve as resolve4 } from "path";
3303
3383
  var FORCE = /* @__PURE__ */ new Set(["-f", "-M", "--force"]);
3304
3384
  function forcedTarget(argv) {
3305
3385
  if (program(argv[0]) !== "git") return null;
@@ -3328,7 +3408,7 @@ var forcedBranchMove = {
3328
3408
  for (const step of realSteps(call.steps)) {
3329
3409
  const target = forcedTarget(step.argv);
3330
3410
  if (!target) continue;
3331
- const cwd = resolve3(input.cwd, step.dir, target.dir);
3411
+ const cwd = resolve4(input.cwd, step.dir, target.dir);
3332
3412
  if (!checkedOutElsewhere(ctx.git, cwd, target.branch)) continue;
3333
3413
  return {
3334
3414
  verdict: "deny",
@@ -3545,7 +3625,7 @@ function stopOptions(raw) {
3545
3625
 
3546
3626
  // src/hooks/checks/validators.ts
3547
3627
  import { globSync, realpathSync as realpathSync2, statSync as statSync2 } from "fs";
3548
- import { dirname as dirname2, isAbsolute as isAbsolute6, relative as relative4, resolve as resolve4, sep } from "path";
3628
+ import { dirname as dirname2, isAbsolute as isAbsolute6, relative as relative4, resolve as resolve5, sep } from "path";
3549
3629
  function contains(root, target) {
3550
3630
  const rest = relative4(root, target);
3551
3631
  return !isAbsolute6(rest) && rest !== ".." && !rest.startsWith(`..${sep}`);
@@ -3557,14 +3637,14 @@ function owner(validator) {
3557
3637
  }
3558
3638
  function validators(root, pattern, paths) {
3559
3639
  const realRoot = realpathSync2(root);
3560
- const edits = paths.map((path) => resolve4(path)).filter((path) => contains(root, path));
3640
+ const edits = paths.map((path) => resolve5(path)).filter((path) => contains(root, path));
3561
3641
  if (edits.length === 0) return [];
3562
3642
  const candidates = [
3563
3643
  ...globSync(pattern, {
3564
3644
  cwd: root,
3565
3645
  exclude: ["**/node_modules/**", "**/.git/**"]
3566
3646
  })
3567
- ].map((path) => resolve4(root, path)).filter((path) => {
3647
+ ].map((path) => resolve5(root, path)).filter((path) => {
3568
3648
  if (!contains(realRoot, realpathSync2(path)) || !statSync2(path).isFile())
3569
3649
  return false;
3570
3650
  return edits.some((edit) => contains(owner(path), edit));
@@ -4901,12 +4981,12 @@ function claimantNotice(root, names4) {
4901
4981
 
4902
4982
  // src/hooks/policies/workspace/leftovers.ts
4903
4983
  import { spawnSync as spawnSync4 } from "child_process";
4904
- import { isAbsolute as isAbsolute7, relative as relative6, resolve as resolve5 } from "path";
4984
+ import { isAbsolute as isAbsolute7, relative as relative6, resolve as resolve6 } from "path";
4905
4985
  var TOUCHED_KEPT = 50;
4906
4986
  function addTouched(touched, root, target) {
4907
4987
  const path = relative6(
4908
4988
  root,
4909
- isAbsolute7(target) ? target : resolve5(root, target)
4989
+ isAbsolute7(target) ? target : resolve6(root, target)
4910
4990
  );
4911
4991
  if (!path || path.startsWith("..") || touched.some((entry) => entry.path === path))
4912
4992
  return [...touched];
@@ -5046,7 +5126,7 @@ var sharedCheckout = {
5046
5126
 
5047
5127
  // src/hooks/policies/workspace/mainline-deliver.ts
5048
5128
  import { spawnSync as spawnSync5 } from "child_process";
5049
- import { resolve as resolve6 } from "path";
5129
+ import { resolve as resolve7 } from "path";
5050
5130
  var REASON7 = "This repository's mainline moves only through pmcp git deliver, which replays, gates and pushes one delivery at a time. Commit, then run pmcp git deliver; other branches, other remotes and other repositories push as usual.";
5051
5131
  var UNRESOLVED = "This push runs in a directory named by a variable the hook cannot resolve (one set by read, a substitution or a loop over computed items), so it is taken as this repository's. Name the directory literally, or loop over literal words (for h in a b; do ...), and pushes to other repositories pass.";
5052
5132
  var VALUE_OPTIONS = /* @__PURE__ */ new Set([
@@ -5148,7 +5228,7 @@ var mainlineDeliver = {
5148
5228
  if (program(step.argv[0]) !== "git") continue;
5149
5229
  const git = gitCall(step.argv);
5150
5230
  if (git.sub !== "push") continue;
5151
- const dir = resolve6(input.cwd, step.dir, git.dir);
5231
+ const dir = resolve7(input.cwd, step.dir, git.dir);
5152
5232
  if (!sameRepository(dir, project.commonDir)) continue;
5153
5233
  if (movesMainline(dir, step.argv.slice(git.at + 1), ctx.options))
5154
5234
  return {
@@ -5162,7 +5242,7 @@ var mainlineDeliver = {
5162
5242
 
5163
5243
  // src/hooks/policies/workspace/worktree-sync.ts
5164
5244
  import { spawn } from "child_process";
5165
- import { relative as relative7, resolve as resolve7 } from "path";
5245
+ import { relative as relative7, resolve as resolve8 } from "path";
5166
5246
  function options(raw) {
5167
5247
  if (typeof raw["root"] !== "string") throw new Error("root must be a string");
5168
5248
  return raw;
@@ -5170,7 +5250,7 @@ function options(raw) {
5170
5250
  function desk(input, opts) {
5171
5251
  const checkout = checkoutOf(input.cwd);
5172
5252
  if (!checkout || checkout.main) return null;
5173
- const desks = resolve7(checkout.commonDir, "..", opts.root);
5253
+ const desks = resolve8(checkout.commonDir, "..", opts.root);
5174
5254
  const inside2 = relative7(desks, checkout.root);
5175
5255
  if (!inside2 || inside2.startsWith("..")) return null;
5176
5256
  return detect(checkout.root, {
@@ -5270,11 +5350,11 @@ var worktreeSync = {
5270
5350
  };
5271
5351
 
5272
5352
  // src/hooks/policies/workspace/owners.ts
5273
- import { isAbsolute as isAbsolute8, relative as relative8, resolve as resolve8 } from "path";
5353
+ import { isAbsolute as isAbsolute8, relative as relative8, resolve as resolve9 } from "path";
5274
5354
  function projectPaths(input) {
5275
5355
  const found2 = [];
5276
5356
  for (const path of input.tool?.paths ?? []) {
5277
- const rest = relative8(input.projectRoot, resolve8(input.cwd, path));
5357
+ const rest = relative8(input.projectRoot, resolve9(input.cwd, path));
5278
5358
  if (rest === "" || rest.startsWith("..") || isAbsolute8(rest)) continue;
5279
5359
  found2.push(rest.split("\\").join("/"));
5280
5360
  }
@@ -5441,7 +5521,7 @@ var operatorVerbs = {
5441
5521
  import { spawnSync as spawnSync6 } from "child_process";
5442
5522
  import { createHash as createHash5 } from "crypto";
5443
5523
  import { existsSync as existsSync9, readFileSync as readFileSync9, realpathSync as realpathSync3 } from "fs";
5444
- import { isAbsolute as isAbsolute9, relative as relative9, resolve as resolve9 } from "path";
5524
+ import { isAbsolute as isAbsolute9, relative as relative9, resolve as resolve10 } from "path";
5445
5525
  var FAILED = "Guard failed validation or execution";
5446
5526
  var GUARD_PROTOCOL = "pmcp.guard.v1";
5447
5527
  var MAX_FINDINGS = 20;
@@ -5476,12 +5556,12 @@ function guardScript(root, command) {
5476
5556
  "Hook command must execute a script under .agents/guards/, or name an installed program with version"
5477
5557
  );
5478
5558
  }
5479
- const base = resolve9(root, ".agents/guards");
5480
- if (!inside(base, resolve9(root, script)))
5559
+ const base = resolve10(root, ".agents/guards");
5560
+ if (!inside(base, resolve10(root, script)))
5481
5561
  throw new Error("Hook guard must stay under .agents/guards/");
5482
- if (!existsSync9(resolve9(root, script)))
5562
+ if (!existsSync9(resolve10(root, script)))
5483
5563
  throw new Error("Hook guard script must exist");
5484
- const real = realpathSync3(resolve9(root, script));
5564
+ const real = realpathSync3(resolve10(root, script));
5485
5565
  if (!inside(realpathSync3(base), real))
5486
5566
  throw new Error("Hook guard cannot resolve outside .agents/guards/");
5487
5567
  return real;
@@ -5561,7 +5641,7 @@ function run2(entry, input, log) {
5561
5641
  };
5562
5642
  }
5563
5643
  const args = entry.command.map(
5564
- (part) => part.startsWith(".agents/guards/") ? resolve9(root, part) : part
5644
+ (part) => part.startsWith(".agents/guards/") ? resolve10(root, part) : part
5565
5645
  );
5566
5646
  const result = spawnSync6(args[0], args.slice(1), {
5567
5647
  cwd: root,
@@ -5616,7 +5696,7 @@ function customPolicy(entry) {
5616
5696
  // src/hooks/policies/external.ts
5617
5697
  import { spawnSync as spawnSync7 } from "child_process";
5618
5698
  import { readFileSync as readFileSync10 } from "fs";
5619
- import { isAbsolute as isAbsolute10, relative as relative10, resolve as resolve10 } from "path";
5699
+ import { isAbsolute as isAbsolute10, relative as relative10, resolve as resolve11 } from "path";
5620
5700
  var MAX_LINES = 20;
5621
5701
  var MAX_REASON2 = 2e3;
5622
5702
  var MAX_OUTPUT = 1 << 20;
@@ -5624,7 +5704,7 @@ function externalId(entry) {
5624
5704
  return `external.${entry.name}`;
5625
5705
  }
5626
5706
  function inProject(input, path) {
5627
- const rest = relative10(input.projectRoot, resolve10(input.cwd, path));
5707
+ const rest = relative10(input.projectRoot, resolve11(input.cwd, path));
5628
5708
  if (rest === "" || rest.startsWith("..") || isAbsolute10(rest)) return null;
5629
5709
  return rest.split("\\").join("/");
5630
5710
  }
@@ -5643,7 +5723,7 @@ function previewText(edit, cwd) {
5643
5723
  if (!edit.replacements) return null;
5644
5724
  let text;
5645
5725
  try {
5646
- text = readFileSync10(resolve10(cwd, edit.path), "utf8");
5726
+ text = readFileSync10(resolve11(cwd, edit.path), "utf8");
5647
5727
  } catch {
5648
5728
  return null;
5649
5729
  }
@@ -5712,7 +5792,7 @@ function bodies(entry, input, paths) {
5712
5792
  continue;
5713
5793
  }
5714
5794
  try {
5715
- found2.set(path, readFileSync10(resolve10(input.projectRoot, path), "utf8"));
5795
+ found2.set(path, readFileSync10(resolve11(input.projectRoot, path), "utf8"));
5716
5796
  } catch {
5717
5797
  }
5718
5798
  }
@@ -5792,6 +5872,7 @@ var GUARDS = byId([
5792
5872
  selfMatchingWait,
5793
5873
  pushWithoutVerify,
5794
5874
  forcedBranchMove,
5875
+ discardWork,
5795
5876
  gateBypassEnv,
5796
5877
  stageAll,
5797
5878
  operatorVerbs
@@ -6184,7 +6265,7 @@ function readChecks(raw) {
6184
6265
  }
6185
6266
 
6186
6267
  // src/hooks/dispatch/failure.ts
6187
- import { isAbsolute as isAbsolute11, relative as relative11, resolve as resolve11 } from "path";
6268
+ import { isAbsolute as isAbsolute11, relative as relative11, resolve as resolve12 } from "path";
6188
6269
  var PASS_KINDS = ["read", "edit-own-worktree"];
6189
6270
  function readFailure(value) {
6190
6271
  if (value === void 0) return void 0;
@@ -6218,7 +6299,7 @@ function ownWorktree(input) {
6218
6299
  if (!checkout || checkout.main) return false;
6219
6300
  const paths = input.tool?.paths ?? [];
6220
6301
  return paths.length > 0 && paths.every((path) => {
6221
- const rest = relative11(checkout.root, resolve11(input.cwd, path));
6302
+ const rest = relative11(checkout.root, resolve12(input.cwd, path));
6222
6303
  return rest !== "" && !rest.startsWith("..") && !isAbsolute11(rest);
6223
6304
  });
6224
6305
  }
@@ -6910,4 +6991,4 @@ export {
6910
6991
  checkBudget,
6911
6992
  readSpec
6912
6993
  };
6913
- //# sourceMappingURL=chunk-G5OL7NQS.js.map
6994
+ //# sourceMappingURL=chunk-SLWE4SGW.js.map
@@ -1190,7 +1190,7 @@ function registerReadTool(server, tools) {
1190
1190
 
1191
1191
  // src/mcp.ts
1192
1192
  var SERVER_NAME = "pmcp";
1193
- var SERVER_VERSION = "0.30.1";
1193
+ var SERVER_VERSION = "0.31.0";
1194
1194
  var MAX_TOOL_INPUT_ELEMENTS = 1e4;
1195
1195
  function registerSkillTools(server, tools) {
1196
1196
  registerCatalogTool(server, tools);
@@ -1247,4 +1247,4 @@ export {
1247
1247
  registerSkillTools,
1248
1248
  createSkillServer
1249
1249
  };
1250
- //# sourceMappingURL=chunk-HV43X72U.js.map
1250
+ //# sourceMappingURL=chunk-V5ZOISWG.js.map
@@ -75,11 +75,11 @@ var completionSpec = {
75
75
  var COMMANDS = [
76
76
  {
77
77
  ...statusSpec,
78
- load: async () => (await import("./status-FL3BR362.js")).statusCommand
78
+ load: async () => (await import("./status-NI4TJ56E.js")).statusCommand
79
79
  },
80
- { ...initSpec, load: async () => (await import("./init-7YCITJBT.js")).initCommand },
81
- { ...hooksSpec, load: async () => (await import("./hooks-Y22ODBFZ.js")).hooksCommand },
82
- { ...serveSpec, load: async () => (await import("./serve-EYRBNRYW.js")).serveCommand },
80
+ { ...initSpec, load: async () => (await import("./init-VHCYXPTG.js")).initCommand },
81
+ { ...hooksSpec, load: async () => (await import("./hooks-SEC6WIP5.js")).hooksCommand },
82
+ { ...serveSpec, load: async () => (await import("./serve-EAYEISOY.js")).serveCommand },
83
83
  { ...listSpec, load: async () => (await import("./list-LV5EKCF6.js")).listCommand },
84
84
  {
85
85
  ...indexSpec,
@@ -116,11 +116,11 @@ var COMMANDS = [
116
116
  { ...syncSpec, load: async () => (await import("./install-5JH4DSFF.js")).syncCommand },
117
117
  {
118
118
  ...projectSpec,
119
- load: async () => (await import("./project-IKIRR3ZN.js")).projectCommand
119
+ load: async () => (await import("./project-UQQLPD4K.js")).projectCommand
120
120
  },
121
121
  {
122
122
  ...doctorSpec,
123
- load: async () => (await import("./doctor-RLSWHJ2A.js")).doctorCommand
123
+ load: async () => (await import("./doctor-3XJJBENL.js")).doctorCommand
124
124
  },
125
125
  {
126
126
  ...sessionsSpec,
@@ -132,13 +132,13 @@ var COMMANDS = [
132
132
  ...heavySpec,
133
133
  load: async () => (await import("./heavy-AZSP6VEW.js")).heavyCommand
134
134
  },
135
- { ...hostSpec, load: async () => (await import("./host-5PO6OXNR.js")).hostCommand },
135
+ { ...hostSpec, load: async () => (await import("./host-2CKQ6H6W.js")).hostCommand },
136
136
  { ...waitSpec, load: async () => (await import("./wait-HEODT7KV.js")).waitCommand },
137
137
  {
138
138
  ...ownersSpec,
139
139
  load: async () => (await import("./owners-MPI22SFU.js")).ownersCommand
140
140
  },
141
- { ...mcpSpec, load: async () => (await import("./mcp-6I5I6VGZ.js")).mcpCommand },
141
+ { ...mcpSpec, load: async () => (await import("./mcp-DGNTEMHQ.js")).mcpCommand },
142
142
  {
143
143
  ...validateSpec,
144
144
  load: async () => (await import("./validate-YXR7FJJX.js")).validateCommand
@@ -149,16 +149,16 @@ var COMMANDS = [
149
149
  },
150
150
  {
151
151
  ...harnessSpec,
152
- load: async () => (await import("./harness-BB6DSAVZ.js")).harnessCommand
152
+ load: async () => (await import("./harness-2MCF2ZWN.js")).harnessCommand
153
153
  },
154
- { ...tuiSpec, load: async () => (await import("./tui-BNBDMV2M.js")).tuiCommand },
154
+ { ...tuiSpec, load: async () => (await import("./tui-O6AP46M3.js")).tuiCommand },
155
155
  {
156
156
  ...marketplaceSpec,
157
157
  load: async () => (await import("./marketplace-2X3OOEPW.js")).marketplaceCommand
158
158
  },
159
159
  {
160
160
  ...completionSpec,
161
- load: async () => (await import("./completion-NLC6EB7Q.js")).completionCommand
161
+ load: async () => (await import("./completion-7QNGLW4X.js")).completionCommand
162
162
  }
163
163
  ];
164
164
  var PLANNED = [];
@@ -172,4 +172,4 @@ export {
172
172
  PLANNED,
173
173
  commandNamed
174
174
  };
175
- //# sourceMappingURL=chunk-5GFNEL6I.js.map
175
+ //# sourceMappingURL=chunk-VEXPKCAC.js.map
@@ -7,7 +7,7 @@ import {
7
7
  customPolicy,
8
8
  externalId,
9
9
  externalPolicy
10
- } from "./chunk-G5OL7NQS.js";
10
+ } from "./chunk-SLWE4SGW.js";
11
11
  import {
12
12
  RUNTIMES
13
13
  } from "./chunk-GQRDEIQA.js";
@@ -50,4 +50,4 @@ function policyRows(compiled) {
50
50
  export {
51
51
  policyRows
52
52
  };
53
- //# sourceMappingURL=chunk-4NR6F2G5.js.map
53
+ //# sourceMappingURL=chunk-VLY6AGVN.js.map
package/dist/cli.js CHANGED
@@ -6,7 +6,7 @@ import {
6
6
  COMMANDS,
7
7
  PLANNED,
8
8
  commandNamed
9
- } from "./chunk-5GFNEL6I.js";
9
+ } from "./chunk-VEXPKCAC.js";
10
10
  import "./chunk-JANBBPKP.js";
11
11
  import "./chunk-2HL2MFNI.js";
12
12
  import "./chunk-QR6A3TYP.js";
@@ -45,7 +45,7 @@ import {
45
45
  } from "./chunk-Y6NFETNG.js";
46
46
  import {
47
47
  VERSION
48
- } from "./chunk-YPK3ZMDX.js";
48
+ } from "./chunk-3QW5KA52.js";
49
49
 
50
50
  // src/cli/envelope.ts
51
51
  var CODE_NAMES = {
@@ -444,7 +444,7 @@ async function defaultEntry(options, context) {
444
444
  });
445
445
  if (mode === "server") return run(required("serve"), [], context);
446
446
  if (mode === "terminal") {
447
- const { terminalSupport } = await import("./host-RO54NJCQ.js");
447
+ const { terminalSupport } = await import("./host-VPSNIHRO.js");
448
448
  const support = terminalSupport();
449
449
  if (support.supported) return run(required("tui"), [], context);
450
450
  context.ui.info(`Terminal workspace unavailable: ${support.reason}`);
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  COMMANDS,
3
3
  completionSpec
4
- } from "./chunk-5GFNEL6I.js";
4
+ } from "./chunk-VEXPKCAC.js";
5
5
  import "./chunk-JANBBPKP.js";
6
6
  import "./chunk-2HL2MFNI.js";
7
7
  import "./chunk-QR6A3TYP.js";
@@ -144,4 +144,4 @@ var completionCommand = {
144
144
  export {
145
145
  completionCommand
146
146
  };
147
- //# sourceMappingURL=completion-NLC6EB7Q.js.map
147
+ //# sourceMappingURL=completion-7QNGLW4X.js.map
@@ -1,16 +1,16 @@
1
1
  import {
2
2
  dependencies
3
- } from "./chunk-UCTZ7LB2.js";
3
+ } from "./chunk-RQQHZEVM.js";
4
4
  import {
5
5
  assertNativeHost
6
- } from "./chunk-XMCP4SGT.js";
6
+ } from "./chunk-QEH7WOBC.js";
7
7
  import {
8
8
  locateExecutable
9
9
  } from "./chunk-R2GPCZUX.js";
10
10
  import "./chunk-34DECPVC.js";
11
11
  import {
12
12
  missingBinary
13
- } from "./chunk-RC7JRUM5.js";
13
+ } from "./chunk-KFIKI44F.js";
14
14
  import "./chunk-LVCASOV4.js";
15
15
  import "./chunk-N7ANFMA5.js";
16
16
  import "./chunk-TYY5TYHF.js";
@@ -21,7 +21,7 @@ import "./chunk-IJBSOWHK.js";
21
21
  import "./chunk-XWLMZKH2.js";
22
22
  import {
23
23
  VERSION
24
- } from "./chunk-YPK3ZMDX.js";
24
+ } from "./chunk-3QW5KA52.js";
25
25
  import "./chunk-GJXOFDJT.js";
26
26
  import "./chunk-PMJG2CXF.js";
27
27
  import {
@@ -96,4 +96,4 @@ function inspectTerminalHost() {
96
96
  export {
97
97
  inspectTerminalHost
98
98
  };
99
- //# sourceMappingURL=diagnostics-5JG4WLRI.js.map
99
+ //# sourceMappingURL=diagnostics-4FUIW53N.js.map
@@ -1,24 +1,24 @@
1
1
  import {
2
2
  specFrom
3
- } from "./chunk-7YBS5S3F.js";
3
+ } from "./chunk-OF42VZRG.js";
4
4
  import "./chunk-7CHUMF3E.js";
5
5
  import {
6
6
  doctor,
7
7
  spawnRunner
8
- } from "./chunk-LESRSUYY.js";
9
- import "./chunk-CO5DP2RP.js";
8
+ } from "./chunk-PTD3YQIT.js";
9
+ import "./chunk-RQWJGNS6.js";
10
10
  import "./chunk-JQVSDPFL.js";
11
11
  import "./chunk-VJFEN6DJ.js";
12
12
  import "./chunk-NHUMPEPV.js";
13
13
  import "./chunk-TIA4SPU2.js";
14
- import "./chunk-NHQ5BWMO.js";
14
+ import "./chunk-6FOP5S63.js";
15
15
  import "./chunk-ANJMLKBR.js";
16
- import "./chunk-E5OBYCMP.js";
16
+ import "./chunk-NZTZHTW3.js";
17
17
  import {
18
18
  FEATURES,
19
19
  GUARDS,
20
20
  customEvent
21
- } from "./chunk-G5OL7NQS.js";
21
+ } from "./chunk-SLWE4SGW.js";
22
22
  import "./chunk-YEO6I6XN.js";
23
23
  import "./chunk-FLG7VRTC.js";
24
24
  import "./chunk-2GD7PQ7J.js";
@@ -57,7 +57,7 @@ import {
57
57
  ArgumentError,
58
58
  many
59
59
  } from "./chunk-Y6NFETNG.js";
60
- import "./chunk-RC7JRUM5.js";
60
+ import "./chunk-KFIKI44F.js";
61
61
  import "./chunk-LVCASOV4.js";
62
62
  import "./chunk-N7ANFMA5.js";
63
63
  import "./chunk-TYY5TYHF.js";
@@ -66,7 +66,7 @@ import "./chunk-KLIYFD3W.js";
66
66
  import "./chunk-GUHOEIHP.js";
67
67
  import "./chunk-IJBSOWHK.js";
68
68
  import "./chunk-XWLMZKH2.js";
69
- import "./chunk-YPK3ZMDX.js";
69
+ import "./chunk-3QW5KA52.js";
70
70
  import "./chunk-GJXOFDJT.js";
71
71
  import "./chunk-PMJG2CXF.js";
72
72
  import "./chunk-J6KL3COD.js";
@@ -560,4 +560,4 @@ var doctorCommand = {
560
560
  export {
561
561
  doctorCommand
562
562
  };
563
- //# sourceMappingURL=doctor-RLSWHJ2A.js.map
563
+ //# sourceMappingURL=doctor-3XJJBENL.js.map
@@ -7,26 +7,26 @@ import {
7
7
  } from "./chunk-C3G75JH7.js";
8
8
  import {
9
9
  requireTerminal
10
- } from "./chunk-YP55H3V6.js";
10
+ } from "./chunk-2UKP5A7F.js";
11
11
  import {
12
12
  invoke
13
- } from "./chunk-I5BKHSVY.js";
13
+ } from "./chunk-NPLTVGBP.js";
14
14
  import "./chunk-5ZABTVSW.js";
15
15
  import {
16
16
  runTui
17
- } from "./chunk-UCTZ7LB2.js";
17
+ } from "./chunk-RQQHZEVM.js";
18
18
  import {
19
19
  lockFile
20
20
  } from "./chunk-DZ2MRTYT.js";
21
21
  import "./chunk-LMT3PPXJ.js";
22
- import "./chunk-N5RB4HU6.js";
23
- import "./chunk-XMCP4SGT.js";
22
+ import "./chunk-O7OYOL64.js";
23
+ import "./chunk-QEH7WOBC.js";
24
24
  import {
25
25
  locateExecutable
26
26
  } from "./chunk-R2GPCZUX.js";
27
- import "./chunk-EINSPZVE.js";
27
+ import "./chunk-S6QMSCFS.js";
28
28
  import "./chunk-34DECPVC.js";
29
- import "./chunk-RC7JRUM5.js";
29
+ import "./chunk-KFIKI44F.js";
30
30
  import "./chunk-LVCASOV4.js";
31
31
  import "./chunk-N7ANFMA5.js";
32
32
  import "./chunk-TYY5TYHF.js";
@@ -35,7 +35,7 @@ import "./chunk-KLIYFD3W.js";
35
35
  import "./chunk-GUHOEIHP.js";
36
36
  import "./chunk-IJBSOWHK.js";
37
37
  import "./chunk-XWLMZKH2.js";
38
- import "./chunk-YPK3ZMDX.js";
38
+ import "./chunk-3QW5KA52.js";
39
39
  import "./chunk-GJXOFDJT.js";
40
40
  import "./chunk-PMJG2CXF.js";
41
41
  import {
@@ -308,4 +308,4 @@ export {
308
308
  launchStartup,
309
309
  planStartup
310
310
  };
311
- //# sourceMappingURL=entry-FAVK7RKI.js.map
311
+ //# sourceMappingURL=entry-E65VAN5N.js.map
@@ -8,11 +8,11 @@ import {
8
8
  } from "./chunk-UPQTAHUK.js";
9
9
  import {
10
10
  specFrom
11
- } from "./chunk-7YBS5S3F.js";
11
+ } from "./chunk-OF42VZRG.js";
12
12
  import "./chunk-7CHUMF3E.js";
13
13
  import {
14
14
  launch
15
- } from "./chunk-G5OL7NQS.js";
15
+ } from "./chunk-SLWE4SGW.js";
16
16
  import "./chunk-YEO6I6XN.js";
17
17
  import "./chunk-FLG7VRTC.js";
18
18
  import "./chunk-2GD7PQ7J.js";
@@ -36,7 +36,7 @@ import {
36
36
  import "./chunk-GQRDEIQA.js";
37
37
  import "./chunk-V4NPDK6X.js";
38
38
  import "./chunk-Y6NFETNG.js";
39
- import "./chunk-RC7JRUM5.js";
39
+ import "./chunk-KFIKI44F.js";
40
40
  import "./chunk-LVCASOV4.js";
41
41
  import "./chunk-N7ANFMA5.js";
42
42
  import {
@@ -47,7 +47,7 @@ import "./chunk-KLIYFD3W.js";
47
47
  import "./chunk-GUHOEIHP.js";
48
48
  import "./chunk-IJBSOWHK.js";
49
49
  import "./chunk-XWLMZKH2.js";
50
- import "./chunk-YPK3ZMDX.js";
50
+ import "./chunk-3QW5KA52.js";
51
51
  import "./chunk-GJXOFDJT.js";
52
52
  import "./chunk-PMJG2CXF.js";
53
53
  import "./chunk-J6KL3COD.js";
@@ -373,4 +373,4 @@ function runExecMcp(context, name) {
373
373
  export {
374
374
  runExecMcp
375
375
  };
376
- //# sourceMappingURL=exec-mcp-7RZP3J3L.js.map
376
+ //# sourceMappingURL=exec-mcp-VYS4FTKF.js.map
@@ -133,12 +133,12 @@ var harnessCommand = {
133
133
  return runPtyMcp(context);
134
134
  }
135
135
  if (context.args.positional[0] === "host") {
136
- const { runHost } = await import("./host-HG5BH2G6.js");
136
+ const { runHost } = await import("./host-33YTCKQK.js");
137
137
  return runHost(context);
138
138
  }
139
139
  try {
140
140
  const operation = parseInvocation(context);
141
- const { invoke } = await import("./invoke-PWCH3QTK.js");
141
+ const { invoke } = await import("./invoke-XY5FIQZB.js");
142
142
  const receipt = await invoke(operation);
143
143
  context.ui.data(`${JSON.stringify(receipt)}
144
144
  `);
@@ -156,4 +156,4 @@ var harnessCommand = {
156
156
  export {
157
157
  harnessCommand
158
158
  };
159
- //# sourceMappingURL=harness-BB6DSAVZ.js.map
159
+ //# sourceMappingURL=harness-2MCF2ZWN.js.map
@@ -7,9 +7,9 @@ import {
7
7
  assertProof,
8
8
  assertResourceFresh,
9
9
  createProof
10
- } from "./chunk-EINSPZVE.js";
10
+ } from "./chunk-S6QMSCFS.js";
11
11
  import "./chunk-34DECPVC.js";
12
- import "./chunk-RC7JRUM5.js";
12
+ import "./chunk-KFIKI44F.js";
13
13
  import "./chunk-LVCASOV4.js";
14
14
  import "./chunk-N7ANFMA5.js";
15
15
  import "./chunk-TYY5TYHF.js";
@@ -18,7 +18,7 @@ import "./chunk-KLIYFD3W.js";
18
18
  import "./chunk-GUHOEIHP.js";
19
19
  import "./chunk-IJBSOWHK.js";
20
20
  import "./chunk-XWLMZKH2.js";
21
- import "./chunk-YPK3ZMDX.js";
21
+ import "./chunk-3QW5KA52.js";
22
22
  import "./chunk-GJXOFDJT.js";
23
23
  import "./chunk-PMJG2CXF.js";
24
24
  import {