@modootoday/pmcp 0.19.9 → 0.20.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 (107) 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-TM6B2Y3G.js → apply-QJ6MGLBX.js} +13 -13
  6. package/dist/{attachment-D84OGI6n.d.ts → attachment-ms6s8Aow.d.ts} +1 -1
  7. package/dist/{broadcast-DSCHWUMB.js → broadcast-LYOA6BEW.js} +4 -4
  8. package/dist/{chunk-YKU7KHJO.js → chunk-4VK5G3SV.js} +3 -3
  9. package/dist/{chunk-YXAPCHXJ.js → chunk-5JPD6VIH.js} +24 -4
  10. package/dist/{chunk-57FHYW74.js → chunk-66F3HLW4.js} +2 -2
  11. package/dist/{chunk-EONAJAMJ.js → chunk-7SDOSTW7.js} +3 -3
  12. package/dist/{chunk-IACJDHFQ.js → chunk-AWZF72SH.js} +5 -5
  13. package/dist/{chunk-FR6JHNLC.js → chunk-CQZYQAAV.js} +3 -3
  14. package/dist/{chunk-2S44RDO4.js → chunk-EKPMVEIA.js} +2 -2
  15. package/dist/{chunk-3UOFHLY4.js → chunk-FD6VGFYZ.js} +5 -5
  16. package/dist/chunk-FGYFA6JY.js +7 -0
  17. package/dist/{chunk-XNPOHPMJ.js → chunk-FQAJSNNU.js} +3 -3
  18. package/dist/{chunk-4XNAKVSO.js → chunk-IQD4W53M.js} +2 -2
  19. package/dist/{chunk-SPUCY4AG.js → chunk-IZABPDAO.js} +2 -2
  20. package/dist/{chunk-A6TM4NTI.js → chunk-J6HNP6HA.js} +2 -2
  21. package/dist/{chunk-PBDPWE5J.js → chunk-JBHGJKSL.js} +2 -2
  22. package/dist/{chunk-YYG3GUQW.js → chunk-K2C3KFGB.js} +9 -9
  23. package/dist/{chunk-BZ2RXI5I.js → chunk-L4MFGGSI.js} +2 -2
  24. package/dist/{chunk-W5RLIUNC.js → chunk-M2RYXWX2.js} +2 -2
  25. package/dist/{chunk-4XWVLC23.js → chunk-MZEMLFFD.js} +2 -2
  26. package/dist/{chunk-VDBUZKXC.js → chunk-O2JWF7ZM.js} +2 -2
  27. package/dist/{chunk-PG42KALG.js → chunk-OAIQ7A3R.js} +5 -5
  28. package/dist/{chunk-I4DLMIN5.js → chunk-ONP6JRFZ.js} +2 -2
  29. package/dist/{chunk-V7HG3STC.js → chunk-PQTM27GU.js} +32 -15
  30. package/dist/{chunk-YLPXTJJM.js → chunk-QDY6BWE6.js} +2 -2
  31. package/dist/{chunk-BRSESCGX.js → chunk-QOFSPFJ6.js} +13 -12
  32. package/dist/{chunk-RRKGSYQ4.js → chunk-QSIADSMQ.js} +13 -2
  33. package/dist/{chunk-MCYGYZVZ.js → chunk-QYH2NR6G.js} +2 -2
  34. package/dist/{chunk-XPWIJOZT.js → chunk-RBNMNKNN.js} +3 -3
  35. package/dist/{chunk-QTKD7JEL.js → chunk-RMHZFWHF.js} +15 -15
  36. package/dist/{chunk-QYQGPDBE.js → chunk-YDICIB2A.js} +2 -2
  37. package/dist/{chunk-CJ6OFTS3.js → chunk-YOWIYFIV.js} +6 -37
  38. package/dist/{claude-2C5L2HQL.js → claude-GT2BPXEL.js} +3 -3
  39. package/dist/{cli-YV6SFE4D.js → cli-6HTAJ54L.js} +4 -4
  40. package/dist/{cli-BVRPAI23.js → cli-IV5DJCXU.js} +8 -8
  41. package/dist/cli.js +3 -3
  42. package/dist/{completion-B3UT3GVI.js → completion-PPM7MEI2.js} +2 -2
  43. package/dist/{diagnostics-ONIAKCA3.js → diagnostics-EWU2ROTG.js} +6 -6
  44. package/dist/{doctor-MJFU5L6R.js → doctor-ZWZQMDKZ.js} +17 -17
  45. package/dist/{entry-DZGKCL4G.js → entry-NDICBQ2F.js} +10 -10
  46. package/dist/{exec-mcp-QK2VC6RX.js → exec-mcp-AG4G7SG7.js} +10 -10
  47. package/dist/{harness-GTED4GLK.js → harness-JABSZCAA.js} +3 -3
  48. package/dist/harness-launch-gate.js +4 -4
  49. package/dist/harness-worker.js +6 -6
  50. package/dist/hook-body.js +42 -20
  51. package/dist/{hooks-FRZ4SUNJ.js → hooks-YVQSDQV3.js} +3 -3
  52. package/dist/{host-AGNF2AQH.js → host-2SZRMHZX.js} +7 -7
  53. package/dist/{host-3HTCZNVJ.js → host-BWZ5LA4Q.js} +12 -12
  54. package/dist/{host-run-2OQZVQID.js → host-run-SXLV4LHI.js} +5 -5
  55. package/dist/http.d.ts +1 -1
  56. package/dist/http.js +1 -1
  57. package/dist/{import-mcp-7KEPR2B6.js → import-mcp-2M7SZRVQ.js} +8 -8
  58. package/dist/index.d.ts +2 -2
  59. package/dist/index.js +17 -17
  60. package/dist/{init-BHGCF7JL.js → init-HOOIFBAD.js} +2 -2
  61. package/dist/{invoke-CVHF6PEK.js → invoke-JP4MILYY.js} +8 -8
  62. package/dist/{list-6XGQ3FR3.js → list-UBSBUZKS.js} +10 -10
  63. package/dist/{logout-6RJLG2KG.js → logout-OO3DERRK.js} +9 -9
  64. package/dist/{logs-VTW7S2LR.js → logs-K3QXKRD4.js} +4 -4
  65. package/dist/mailbox/index.d.ts +3 -3
  66. package/dist/{mailbox-CNAONXN7.js → mailbox-DAJV6VAI.js} +9 -9
  67. package/dist/{mainline-JSG4MUKH.js → mainline-6K5BA3WX.js} +48 -25
  68. package/dist/{mcp-P55VLQLR.js → mcp-JXNTKRJG.js} +2 -2
  69. package/dist/{pause-V5VCNOSH.js → pause-GRVTSKOK.js} +4 -4
  70. package/dist/{project-B57IQPDK.js → project-M672MKQH.js} +4 -4
  71. package/dist/{pty-FD4JGBZL.js → pty-LHKJKY2E.js} +3 -3
  72. package/dist/{resume-7S4K3R4X.js → resume-6DMPGG3N.js} +4 -4
  73. package/dist/{run-MC2BPLOE.js → run-5W566T3V.js} +8 -8
  74. package/dist/{run-LFJXONLW.js → run-ORBIERI3.js} +4 -4
  75. package/dist/{serve-TFAEVXX3.js → serve-73SRPAV4.js} +3 -3
  76. package/dist/{setup-FHFQZJY6.js → setup-ULKDPF5B.js} +4 -4
  77. package/dist/{start-login-KXOHCR5A.js → start-login-BGFAMCZL.js} +9 -9
  78. package/dist/{status-AW7DOW7A.js → status-73FEFQUQ.js} +9 -9
  79. package/dist/{status-YXOIEVOJ.js → status-YCW6YJ3S.js} +13 -13
  80. package/dist/{status-OYRB3KL5.js → status-YHXEAJ7U.js} +7 -7
  81. package/dist/stdio.d.ts +2 -2
  82. package/dist/stdio.js +2 -2
  83. package/dist/{sweep-ZSYG6FNR.js → sweep-XF2HG3EO.js} +4 -4
  84. package/dist/{test-2HTOY4PJ.js → test-IMNBXOYW.js} +11 -13
  85. package/dist/{tui-DQFXYQ4H.js → tui-5GDA22TB.js} +4 -4
  86. package/dist/{unbroadcast-FONZJWEW.js → unbroadcast-XP3OCVN3.js} +4 -4
  87. package/dist/{validate-WOFI7TMT.js → validate-KFBCUFI4.js} +2 -2
  88. package/dist/{worker-UXPGXAV2.js → worker-RV6NGSXT.js} +8 -8
  89. package/docs/git-workflow.md +22 -5
  90. package/docs/hooks.md +1 -2
  91. package/docs/project-configuration.md +7 -5
  92. package/docs/upgrading.md +52 -0
  93. package/gemini-extension.json +2 -2
  94. package/mcp.json +1 -1
  95. package/package.json +5 -5
  96. package/plugin.json +1 -1
  97. package/plugins/pmcp/.claude-plugin/plugin.json +1 -1
  98. package/plugins/pmcp/.mcp.json +1 -1
  99. package/plugins/pmcp/gemini-extension.json +2 -2
  100. package/plugins/pmcp/mcp.json +1 -1
  101. package/plugins/pmcp/mod/reader/read.ts +14 -4
  102. package/plugins/pmcp/mod/sessions/format.ts +16 -1
  103. package/plugins/pmcp/mod/sessions/types.ts +1 -1
  104. package/plugins/pmcp/plugin.json +1 -1
  105. package/schema/catalog-v1.json +1 -7
  106. package/dist/chunk-YGTJQVCK.js +0 -7
  107. package/dist/{core-C1LPjxK6.d.ts → core-Sug_rZrx.d.ts} +1 -1
@@ -7,8 +7,9 @@ import {
7
7
  asPause,
8
8
  asRecord,
9
9
  isLive,
10
+ latestRecord,
10
11
  leaseFile
11
- } from "./chunk-RRKGSYQ4.js";
12
+ } from "./chunk-QSIADSMQ.js";
12
13
  import {
13
14
  expandPath,
14
15
  projectStateDir
@@ -46,8 +47,8 @@ function matches(selector, recipient) {
46
47
  return !!recipient.session && recipient.session.startsWith(value);
47
48
  if (kind === "alias") return recipient.alias === value;
48
49
  if (kind === "role") return (recipient.roles ?? []).includes(value);
49
- if (!isWorktree(kind) || !recipient.desk) return false;
50
- return recipient.desk === value || basename(recipient.desk) === value;
50
+ if (!isWorktree(kind) || !recipient.worktree) return false;
51
+ return recipient.worktree === value || basename(recipient.worktree) === value;
51
52
  }
52
53
  function before(message, recipient) {
53
54
  if (!recipient.since) return false;
@@ -413,20 +414,36 @@ import { readdirSync as readdirSync2, rmSync as rmSync5 } from "fs";
413
414
  import { join as join5 } from "path";
414
415
  var SESSION_ID = /^[A-Za-z0-9_-]{8,64}$/u;
415
416
  function filesRegistry(dir, staleMs) {
416
- const fleetDir = join5(dir, STATE_FILES.records);
417
- const pathOf = (session) => join5(fleetDir, `${session}.json`);
418
- const get = (session) => SESSION_ID.test(session) ? asRecord(readJson(pathOf(session))) : null;
417
+ const dirs = [STATE_FILES.records, STATE_FILES.legacyRecords].map(
418
+ (name) => join5(dir, name)
419
+ );
420
+ const pathsOf = (session) => dirs.map((records) => join5(records, `${session}.json`));
421
+ const get = (session) => {
422
+ if (!SESSION_ID.test(session)) return null;
423
+ return latestRecord(
424
+ pathsOf(session).map((path) => asRecord(readJson(path)))
425
+ );
426
+ };
419
427
  const list = (now = Date.now()) => {
420
- let names = [];
421
- try {
422
- names = readdirSync2(fleetDir).filter((name) => name.endsWith(".json"));
423
- } catch {
424
- return [];
428
+ const found = /* @__PURE__ */ new Map();
429
+ for (const folder of dirs) {
430
+ let names = [];
431
+ try {
432
+ names = readdirSync2(folder).filter((name) => name.endsWith(".json"));
433
+ } catch {
434
+ continue;
435
+ }
436
+ for (const name of names)
437
+ found.set(name, [
438
+ ...found.get(name) ?? [],
439
+ asRecord(readJson(join5(folder, name)))
440
+ ]);
425
441
  }
426
- return names.map((name) => asRecord(readJson(join5(fleetDir, name)))).filter((record2) => record2 !== null).map((record2) => ({ ...record2, live: isLive(record2, now, staleMs) }));
442
+ return [...found.values()].map(latestRecord).filter((record2) => record2 !== null).map((record2) => ({ ...record2, live: isLive(record2, now, staleMs) }));
427
443
  };
428
444
  const remove = (session) => {
429
- if (SESSION_ID.test(session)) rmSync5(pathOf(session), { force: true });
445
+ if (!SESSION_ID.test(session)) return;
446
+ for (const path of pathsOf(session)) rmSync5(path, { force: true });
430
447
  };
431
448
  return {
432
449
  get,
@@ -446,7 +463,7 @@ function filesRegistry(dir, staleMs) {
446
463
  next["worktree"] = checkout?.root ?? "";
447
464
  next["branch"] = checkout?.branch ?? "";
448
465
  }
449
- writeJson(pathOf(session), next);
466
+ for (const path of pathsOf(session)) writeJson(path, next);
450
467
  return next;
451
468
  },
452
469
  sweep(now = Date.now()) {
@@ -681,4 +698,4 @@ export {
681
698
  readStoreSettings,
682
699
  openStore
683
700
  };
684
- //# sourceMappingURL=chunk-V7HG3STC.js.map
701
+ //# sourceMappingURL=chunk-PQTM27GU.js.map
@@ -2,7 +2,7 @@ import {
2
2
  MARK,
3
3
  blockOutput,
4
4
  jsonOutput
5
- } from "./chunk-BRSESCGX.js";
5
+ } from "./chunk-QOFSPFJ6.js";
6
6
  import {
7
7
  ProjectError
8
8
  } from "./chunk-NRBQK6UX.js";
@@ -393,4 +393,4 @@ export {
393
393
  serversForTool,
394
394
  mcpOutputs
395
395
  };
396
- //# sourceMappingURL=chunk-YLPXTJJM.js.map
396
+ //# sourceMappingURL=chunk-QDY6BWE6.js.map
@@ -15,14 +15,14 @@ import {
15
15
  import {
16
16
  ptyFields,
17
17
  ptyRef
18
- } from "./chunk-I4DLMIN5.js";
18
+ } from "./chunk-ONP6JRFZ.js";
19
19
  import {
20
20
  withUmask
21
21
  } from "./chunk-P6LNYYYH.js";
22
22
  import {
23
23
  leaseSpecs,
24
24
  readGitConfig
25
- } from "./chunk-YXAPCHXJ.js";
25
+ } from "./chunk-5JPD6VIH.js";
26
26
  import {
27
27
  detect
28
28
  } from "./chunk-2Q6MNGU5.js";
@@ -30,11 +30,11 @@ import {
30
30
  inboxKey,
31
31
  noticeOf,
32
32
  readStoreSettings
33
- } from "./chunk-V7HG3STC.js";
33
+ } from "./chunk-PQTM27GU.js";
34
34
  import {
35
35
  STATE_FILES,
36
36
  runtimePid
37
- } from "./chunk-RRKGSYQ4.js";
37
+ } from "./chunk-QSIADSMQ.js";
38
38
  import {
39
39
  gitText
40
40
  } from "./chunk-G7JONWL4.js";
@@ -48,7 +48,7 @@ import {
48
48
  packagedBinary,
49
49
  readHost,
50
50
  readLock
51
- } from "./chunk-57FHYW74.js";
51
+ } from "./chunk-66F3HLW4.js";
52
52
  import {
53
53
  checkoutOf,
54
54
  hasLinkedWorktrees
@@ -2042,8 +2042,6 @@ function runsScript(words, scripts) {
2042
2042
  }
2043
2043
  function touchesLock(words, scripts) {
2044
2044
  if (words[0] === "bun" && BUN_INSTALLS.has(words[1] ?? "")) return true;
2045
- if (words[0] === "bun" && words[1] === "run" && /^git:(land|sync)$/u.test(words[2] ?? ""))
2046
- return true;
2047
2045
  return runsScript(words, scripts);
2048
2046
  }
2049
2047
  var DEFAULT_MUTATING_COMMANDS = [
@@ -2696,7 +2694,7 @@ function recipientOf(input, ctx) {
2696
2694
  session,
2697
2695
  ...record?.alias ? { alias: record.alias } : {},
2698
2696
  roles: roles2,
2699
- desk: record?.worktree || input.cwd,
2697
+ worktree: record?.worktree || input.cwd,
2700
2698
  // The registry records a session at its start, so earlier broadcasts are not its news.
2701
2699
  ...record?.startedAt ? { since: record.startedAt } : {}
2702
2700
  };
@@ -3487,9 +3485,7 @@ function fileOperands(argv) {
3487
3485
  // src/hooks/policies/shell/secret-exfiltration.ts
3488
3486
  var SECRET_PATHS = [
3489
3487
  /(?:^|[^\w.-])\.env(?:\.(?!example\b|sample\b|template\b|dist\b)[\w.-]+)?(?![\w.-])/iu,
3490
- /(?:^|[^\w.-])\.env\.d(?:\/|\b)/iu,
3491
3488
  /\.dev\.vars(?:\.json)?\b/iu,
3492
- /\.bak\.\d{8,}/u,
3493
3489
  /\b(?:id_rsa|id_ed25519|id_ecdsa)\b(?!\.pub)/u,
3494
3490
  /\.(?:pem|p12|pfx)\b/iu,
3495
3491
  // Known credential files only: a name that merely contains "secret" (a test fixture, a
@@ -3517,7 +3513,7 @@ var ENV_DUMPS = [
3517
3513
  ["export", "-p"],
3518
3514
  ["declare", "-x"]
3519
3515
  ];
3520
- var FALLBACK_PATH = /(?:^|[^\w.-])\.env(?![.\w-])|(?:^|[^\w.-])\.env\.d(?:\/|\b)|\.dev\.vars(?:\.json)?\b|\.bak\.\d{8,}/u;
3516
+ var FALLBACK_PATH = /(?:^|[^\w.-])\.env(?![.\w-])|\.dev\.vars(?:\.json)?\b/u;
3521
3517
  var FALLBACK_USE = /(?:^|[;&|(]|&&)\s*(?:sudo\s+)?(?:cat|head|tail|less|grep|rg|jq|base64|cp|curl|wget|nc|scp|rsync)\b/u;
3522
3518
  var NO_VALUES = "Use metadata verbs instead (ls, stat, wc, find), or a command that names keys without resolving values.";
3523
3519
  function names(word, options2) {
@@ -4569,6 +4565,11 @@ function readWorkspace(raw, root) {
4569
4565
  const git = asTable(raw, "[git]");
4570
4566
  const gitEnabled = enabledValue(git["enabled"], "[git]");
4571
4567
  const declared = git["shared_checkout"] !== void 0;
4568
+ if (!declared)
4569
+ return {
4570
+ declared,
4571
+ sharedCheckout: { guard: null, source: "default-off" }
4572
+ };
4572
4573
  const { enabled, ...options2 } = asTable(
4573
4574
  git["shared_checkout"],
4574
4575
  "[git.shared_checkout]"
@@ -5380,4 +5381,4 @@ export {
5380
5381
  permissionDoctor,
5381
5382
  readSpec
5382
5383
  };
5383
- //# sourceMappingURL=chunk-BRSESCGX.js.map
5384
+ //# sourceMappingURL=chunk-QOFSPFJ6.js.map
@@ -5,12 +5,22 @@ import { basename } from "path";
5
5
 
6
6
  // src/sessions/format.ts
7
7
  var STATE_FILES = {
8
- records: "fleet",
8
+ records: "sessions",
9
+ // The records' former directory. Deprecated: 0.20 still writes every record there too and
10
+ // reads it when sessions/ lacks one; 0.21 stops writing it.
11
+ legacyRecords: "fleet",
9
12
  pause: "pause.json",
10
13
  broadcast: "broadcast.json",
11
14
  history: "broadcast-history.jsonl"
12
15
  };
13
16
  var STALE_MS = 30 * 60 * 1e3;
17
+ function latestRecord(copies) {
18
+ const time = (record) => Date.parse(record.updatedAt ?? record.startedAt ?? "") || 0;
19
+ let latest = null;
20
+ for (const copy of copies)
21
+ if (copy && (!latest || time(copy) > time(latest))) latest = copy;
22
+ return latest;
23
+ }
14
24
  var LEASE_NAME = /^[a-z0-9][a-z0-9_-]*$/u;
15
25
  function leaseFile(name) {
16
26
  if (!LEASE_NAME.test(name)) throw new Error(`invalid lease name ${name}`);
@@ -128,6 +138,7 @@ function isLive(record, now, staleMs = STALE_MS) {
128
138
  export {
129
139
  STATE_FILES,
130
140
  STALE_MS,
141
+ latestRecord,
131
142
  leaseFile,
132
143
  fieldsOf,
133
144
  asPause,
@@ -139,4 +150,4 @@ export {
139
150
  runtimePid,
140
151
  isLive
141
152
  };
142
- //# sourceMappingURL=chunk-RRKGSYQ4.js.map
153
+ //# sourceMappingURL=chunk-QSIADSMQ.js.map
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  openStore,
3
3
  readStoreSettings
4
- } from "./chunk-V7HG3STC.js";
4
+ } from "./chunk-PQTM27GU.js";
5
5
  import {
6
6
  ArgumentError,
7
7
  one
@@ -73,4 +73,4 @@ export {
73
73
  storeFrom,
74
74
  change
75
75
  };
76
- //# sourceMappingURL=chunk-MCYGYZVZ.js.map
76
+ //# sourceMappingURL=chunk-QYH2NR6G.js.map
@@ -1,13 +1,13 @@
1
1
  import {
2
2
  claudeSocket
3
- } from "./chunk-W5RLIUNC.js";
3
+ } from "./chunk-M2RYXWX2.js";
4
4
  import {
5
5
  opencodeUrl
6
6
  } from "./chunk-TIA4SPU2.js";
7
7
  import {
8
8
  ptyReachable,
9
9
  ptyRef
10
- } from "./chunk-I4DLMIN5.js";
10
+ } from "./chunk-ONP6JRFZ.js";
11
11
 
12
12
  // src/sessions/wake/probe.ts
13
13
  function wakeableBy(record, context) {
@@ -22,4 +22,4 @@ function wakeableBy(record, context) {
22
22
  export {
23
23
  wakeableBy
24
24
  };
25
- //# sourceMappingURL=chunk-XPWIJOZT.js.map
25
+ //# sourceMappingURL=chunk-RBNMNKNN.js.map
@@ -61,11 +61,11 @@ var completionSpec = {
61
61
  var COMMANDS = [
62
62
  {
63
63
  ...statusSpec,
64
- load: async () => (await import("./status-YXOIEVOJ.js")).statusCommand
64
+ load: async () => (await import("./status-YCW6YJ3S.js")).statusCommand
65
65
  },
66
- { ...initSpec, load: async () => (await import("./init-BHGCF7JL.js")).initCommand },
67
- { ...hooksSpec, load: async () => (await import("./hooks-FRZ4SUNJ.js")).hooksCommand },
68
- { ...serveSpec, load: async () => (await import("./serve-TFAEVXX3.js")).serveCommand },
66
+ { ...initSpec, load: async () => (await import("./init-HOOIFBAD.js")).initCommand },
67
+ { ...hooksSpec, load: async () => (await import("./hooks-YVQSDQV3.js")).hooksCommand },
68
+ { ...serveSpec, load: async () => (await import("./serve-73SRPAV4.js")).serveCommand },
69
69
  { ...listSpec, load: async () => (await import("./list-WK2IYUK7.js")).listCommand },
70
70
  {
71
71
  ...indexSpec,
@@ -102,22 +102,22 @@ var COMMANDS = [
102
102
  { ...syncSpec, load: async () => (await import("./install-HF6CROQP.js")).syncCommand },
103
103
  {
104
104
  ...projectSpec,
105
- load: async () => (await import("./project-B57IQPDK.js")).projectCommand
105
+ load: async () => (await import("./project-M672MKQH.js")).projectCommand
106
106
  },
107
107
  {
108
108
  ...doctorSpec,
109
- load: async () => (await import("./doctor-MJFU5L6R.js")).doctorCommand
109
+ load: async () => (await import("./doctor-ZWZQMDKZ.js")).doctorCommand
110
110
  },
111
111
  {
112
112
  ...sessionsSpec,
113
- load: async () => (await import("./cli-BVRPAI23.js")).sessionsCommand
113
+ load: async () => (await import("./cli-IV5DJCXU.js")).sessionsCommand
114
114
  },
115
- { ...logsSpec, load: async () => (await import("./logs-VTW7S2LR.js")).logsCommand },
116
- { ...gitSpec, load: async () => (await import("./cli-YV6SFE4D.js")).gitCommand },
117
- { ...mcpSpec, load: async () => (await import("./mcp-P55VLQLR.js")).mcpCommand },
115
+ { ...logsSpec, load: async () => (await import("./logs-K3QXKRD4.js")).logsCommand },
116
+ { ...gitSpec, load: async () => (await import("./cli-6HTAJ54L.js")).gitCommand },
117
+ { ...mcpSpec, load: async () => (await import("./mcp-JXNTKRJG.js")).mcpCommand },
118
118
  {
119
119
  ...validateSpec,
120
- load: async () => (await import("./validate-WOFI7TMT.js")).validateCommand
120
+ load: async () => (await import("./validate-KFBCUFI4.js")).validateCommand
121
121
  },
122
122
  {
123
123
  ...mailboxSpec,
@@ -125,16 +125,16 @@ var COMMANDS = [
125
125
  },
126
126
  {
127
127
  ...harnessSpec,
128
- load: async () => (await import("./harness-GTED4GLK.js")).harnessCommand
128
+ load: async () => (await import("./harness-JABSZCAA.js")).harnessCommand
129
129
  },
130
- { ...tuiSpec, load: async () => (await import("./tui-DQFXYQ4H.js")).tuiCommand },
130
+ { ...tuiSpec, load: async () => (await import("./tui-5GDA22TB.js")).tuiCommand },
131
131
  {
132
132
  ...marketplaceSpec,
133
133
  load: async () => (await import("./marketplace-G4VQET5W.js")).marketplaceCommand
134
134
  },
135
135
  {
136
136
  ...completionSpec,
137
- load: async () => (await import("./completion-B3UT3GVI.js")).completionCommand
137
+ load: async () => (await import("./completion-PPM7MEI2.js")).completionCommand
138
138
  }
139
139
  ];
140
140
  var PLANNED = [];
@@ -148,4 +148,4 @@ export {
148
148
  PLANNED,
149
149
  commandNamed
150
150
  };
151
- //# sourceMappingURL=chunk-QTKD7JEL.js.map
151
+ //# sourceMappingURL=chunk-RMHZFWHF.js.map
@@ -3,7 +3,7 @@ import {
3
3
  } from "./chunk-34DECPVC.js";
4
4
  import {
5
5
  ptyBinary
6
- } from "./chunk-EONAJAMJ.js";
6
+ } from "./chunk-7SDOSTW7.js";
7
7
  import {
8
8
  GroupStore,
9
9
  egressPolicy,
@@ -775,4 +775,4 @@ export {
775
775
  prepareBridge,
776
776
  assertBridge
777
777
  };
778
- //# sourceMappingURL=chunk-QYQGPDBE.js.map
778
+ //# sourceMappingURL=chunk-YDICIB2A.js.map
@@ -152,20 +152,14 @@ function skillDuplicationWarnings(metadata, pluginVersion) {
152
152
  }
153
153
 
154
154
  // src/metadata/profiles/catalog-v1/schema.ts
155
- var SERVER_TOOLS = [
156
- "job_estimate",
157
- "job_submit",
158
- "job_status",
159
- "job_result",
160
- "job_cancel"
161
- ];
162
155
  var catalogMetadata = z2.strictObject({
163
156
  ...skillMetadataCore.shape,
164
157
  level: skillMetadataCore.shape.level.unwrap(),
165
158
  domain: kebab,
166
159
  install: skillMetadataCore.shape.install.unwrap(),
167
160
  requires: requires.strict().optional(),
168
- "server-tools": z2.array(z2.enum(SERVER_TOOLS)).optional()
161
+ // Server-side tools the skill calls, named by the catalog that serves them.
162
+ "server-tools": z2.array(z2.string().min(1)).optional()
169
163
  });
170
164
  var catalogV1 = skillFrontmatter.extend({
171
165
  name: kebab,
@@ -190,7 +184,7 @@ function skillFindings(skill) {
190
184
  return out;
191
185
  }
192
186
  const { name, description, metadata: m } = result.data;
193
- const { tier: tier2, body } = skill;
187
+ const { tier: tier2 } = skill;
194
188
  for (const message of skillDuplicationWarnings(m, skill.pluginVersion))
195
189
  out.push({ rule: "duplication", message, severity: "warning" });
196
190
  if (name !== skill.dirName)
@@ -200,37 +194,12 @@ function skillFindings(skill) {
200
194
  );
201
195
  if (m.tier !== void 0 && m.tier !== tier2)
202
196
  add("tier.mismatch", `metadata.tier ${m.tier} in a ${tier2} marketplace`);
203
- if (tier2 !== "internal") {
204
- if (/[^\x20-\x7E]/u.test(description))
205
- add("description.ascii", "description must be plain English ASCII");
206
- if (!/\bUse (?:when|whenever|before|after|for)\b/u.test(description))
207
- add(
208
- "description.trigger",
209
- 'description should say when to use it ("Use when ...")'
210
- );
211
- }
212
- if (tier2 === "open" && m.keywords?.some((k) => /[^\x20-\x7E]/u.test(k)))
213
- add("keywords.ascii", "metadata.keywords must be English in the open tier");
214
- if (!m["output-license"] && (tier2 === "paid" || (tier2 === "open" || tier2 === "free") && m.domain.startsWith("asset")))
215
- add("output-license.required", "metadata.output-license missing");
197
+ if (tier2 !== "internal" && /[^\x20-\x7E]/u.test(description))
198
+ add("description.ascii", "description must be plain English ASCII");
216
199
  if (!m.approval && (tier2 === "paid" || skill.hasScripts))
217
200
  add("approval.required", "metadata.approval missing");
218
201
  if (tier2 === "open" && m.pair !== void 0)
219
202
  add("pair.tier", "metadata.pair is not allowed in the open tier");
220
- if (tier2 !== "paid" && m["server-tools"] !== void 0)
221
- add(
222
- "server-tools.forbidden",
223
- `metadata.server-tools is not allowed in the ${tier2} tier`
224
- );
225
- if (tier2 === "paid") {
226
- if (!m["server-tools"]?.length)
227
- add("server-tools.required", "metadata.server-tools missing");
228
- if (body.includes("job_submit") && (!body.includes("job_estimate") || body.indexOf("job_estimate") > body.indexOf("job_submit")))
229
- add(
230
- "server-tools.order",
231
- "job_estimate must come before job_submit in the body"
232
- );
233
- }
234
203
  if (tier2 !== "open" && m.install === "default")
235
204
  add(
236
205
  "install.default",
@@ -363,4 +332,4 @@ export {
363
332
  validateSkillDir,
364
333
  validateCatalog
365
334
  };
366
- //# sourceMappingURL=chunk-CJ6OFTS3.js.map
335
+ //# sourceMappingURL=chunk-YOWIYFIV.js.map
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  claudeSocket
3
- } from "./chunk-W5RLIUNC.js";
4
- import "./chunk-RRKGSYQ4.js";
3
+ } from "./chunk-M2RYXWX2.js";
4
+ import "./chunk-QSIADSMQ.js";
5
5
 
6
6
  // src/sessions/wake/claude.ts
7
7
  import { randomUUID } from "crypto";
@@ -74,4 +74,4 @@ export {
74
74
  claudeInbox,
75
75
  frames
76
76
  };
77
- //# sourceMappingURL=claude-2C5L2HQL.js.map
77
+ //# sourceMappingURL=claude-GT2BPXEL.js.map
@@ -11,8 +11,8 @@ import {
11
11
  async function action(positional) {
12
12
  const [verb, sub] = positional;
13
13
  if (verb === "deliver")
14
- return (await import("./mainline-JSG4MUKH.js")).mainlineDeliver;
15
- if (verb === "sync") return (await import("./mainline-JSG4MUKH.js")).mainlineSync;
14
+ return (await import("./mainline-6K5BA3WX.js")).mainlineDeliver;
15
+ if (verb === "sync") return (await import("./mainline-6K5BA3WX.js")).mainlineSync;
16
16
  if (verb !== "worktree")
17
17
  throw new ArgumentError("Use worktree, deliver or sync");
18
18
  if (sub === "create")
@@ -28,7 +28,7 @@ async function run(context) {
28
28
  if (context.args.flags.has("json") && !(verb === "worktree" && sub === "list") && verb !== "deliver")
29
29
  throw new ArgumentError("--json requires git worktree list or git deliver");
30
30
  const act = await action(context.args.positional);
31
- const { loadGit } = await import("./setup-FHFQZJY6.js");
31
+ const { loadGit } = await import("./setup-ULKDPF5B.js");
32
32
  const setup = loadGit(context.cwd, one(context.args, "config"), context.env);
33
33
  if (setup instanceof Error) {
34
34
  context.ui.error(setup.message);
@@ -45,4 +45,4 @@ var gitCommand = { ...gitSpec, run };
45
45
  export {
46
46
  gitCommand
47
47
  };
48
- //# sourceMappingURL=cli-YV6SFE4D.js.map
48
+ //# sourceMappingURL=cli-6HTAJ54L.js.map
@@ -16,26 +16,26 @@ async function run(context) {
16
16
  `unknown verb ${verb}; use ${SESSION_VERBS.join(", ")}`
17
17
  );
18
18
  if (verb === "status")
19
- return (await import("./status-OYRB3KL5.js")).status(context);
19
+ return (await import("./status-YHXEAJ7U.js")).status(context);
20
20
  if (context.args.flags.has("json") && !JSON_VERBS.includes(verb))
21
21
  throw new ArgumentError(`--json works with ${JSON_VERBS.join(", ")}`);
22
22
  if (["send", "inbox", "ack", "reply"].includes(verb)) {
23
- const mailbox = await import("./mailbox-CNAONXN7.js");
23
+ const mailbox = await import("./mailbox-DAJV6VAI.js");
24
24
  if (verb === "send") return mailbox.send(context);
25
25
  if (verb === "inbox") return mailbox.inbox(context);
26
26
  if (verb === "ack") return mailbox.ack(context);
27
27
  return mailbox.reply(context);
28
28
  }
29
- if (verb === "pause") return (await import("./pause-V5VCNOSH.js")).run(context);
30
- if (verb === "resume") return (await import("./resume-7S4K3R4X.js")).run(context);
29
+ if (verb === "pause") return (await import("./pause-GRVTSKOK.js")).run(context);
30
+ if (verb === "resume") return (await import("./resume-6DMPGG3N.js")).run(context);
31
31
  if (verb === "broadcast")
32
- return (await import("./broadcast-DSCHWUMB.js")).run(context);
32
+ return (await import("./broadcast-LYOA6BEW.js")).run(context);
33
33
  if (verb === "unbroadcast")
34
- return (await import("./unbroadcast-FONZJWEW.js")).run(context);
35
- return (await import("./sweep-ZSYG6FNR.js")).run(context);
34
+ return (await import("./unbroadcast-XP3OCVN3.js")).run(context);
35
+ return (await import("./sweep-XF2HG3EO.js")).run(context);
36
36
  }
37
37
  var sessionsCommand = { ...sessionsSpec, run };
38
38
  export {
39
39
  sessionsCommand
40
40
  };
41
- //# sourceMappingURL=cli-BVRPAI23.js.map
41
+ //# sourceMappingURL=cli-IV5DJCXU.js.map
package/dist/cli.js CHANGED
@@ -3,7 +3,7 @@ import {
3
3
  COMMANDS,
4
4
  PLANNED,
5
5
  commandNamed
6
- } from "./chunk-QTKD7JEL.js";
6
+ } from "./chunk-RMHZFWHF.js";
7
7
  import "./chunk-2P4Z2NUX.js";
8
8
  import "./chunk-3Y3HDMHA.js";
9
9
  import {
@@ -32,7 +32,7 @@ import {
32
32
  import "./chunk-V4NPDK6X.js";
33
33
  import {
34
34
  VERSION
35
- } from "./chunk-YGTJQVCK.js";
35
+ } from "./chunk-FGYFA6JY.js";
36
36
 
37
37
  // src/cli/ui.ts
38
38
  var ESC = String.fromCharCode(27);
@@ -185,7 +185,7 @@ async function defaultEntry(options, context) {
185
185
  });
186
186
  if (mode === "server") return run(required("serve"), [], context);
187
187
  if (mode === "terminal") {
188
- const { terminalSupport } = await import("./host-AGNF2AQH.js");
188
+ const { terminalSupport } = await import("./host-2SZRMHZX.js");
189
189
  const support = terminalSupport();
190
190
  if (support.supported) return run(required("tui"), [], context);
191
191
  context.ui.info(`Terminal workspace unavailable: ${support.reason}`);
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  COMMANDS,
3
3
  completionSpec
4
- } from "./chunk-QTKD7JEL.js";
4
+ } from "./chunk-RMHZFWHF.js";
5
5
  import "./chunk-2P4Z2NUX.js";
6
6
  import "./chunk-3Y3HDMHA.js";
7
7
  import "./chunk-E3DQB5LS.js";
@@ -139,4 +139,4 @@ var completionCommand = {
139
139
  export {
140
140
  completionCommand
141
141
  };
142
- //# sourceMappingURL=completion-B3UT3GVI.js.map
142
+ //# sourceMappingURL=completion-PPM7MEI2.js.map
@@ -1,22 +1,22 @@
1
1
  import {
2
2
  dependencies
3
- } from "./chunk-YKU7KHJO.js";
3
+ } from "./chunk-4VK5G3SV.js";
4
4
  import {
5
5
  assertNativeHost
6
- } from "./chunk-BZ2RXI5I.js";
6
+ } from "./chunk-L4MFGGSI.js";
7
7
  import {
8
8
  locateExecutable
9
9
  } from "./chunk-R2GPCZUX.js";
10
10
  import "./chunk-34DECPVC.js";
11
- import "./chunk-EONAJAMJ.js";
11
+ import "./chunk-7SDOSTW7.js";
12
12
  import {
13
13
  missingBinary
14
- } from "./chunk-57FHYW74.js";
14
+ } from "./chunk-66F3HLW4.js";
15
15
  import "./chunk-OEH47H6A.js";
16
16
  import "./chunk-IJBSOWHK.js";
17
17
  import {
18
18
  VERSION
19
- } from "./chunk-YGTJQVCK.js";
19
+ } from "./chunk-FGYFA6JY.js";
20
20
  import "./chunk-GJXOFDJT.js";
21
21
  import "./chunk-PMJG2CXF.js";
22
22
  import {
@@ -91,4 +91,4 @@ function inspectTerminalHost() {
91
91
  export {
92
92
  inspectTerminalHost
93
93
  };
94
- //# sourceMappingURL=diagnostics-ONIAKCA3.js.map
94
+ //# sourceMappingURL=diagnostics-EWU2ROTG.js.map
@@ -1,16 +1,16 @@
1
1
  import {
2
2
  specFrom
3
- } from "./chunk-PBDPWE5J.js";
3
+ } from "./chunk-JBHGJKSL.js";
4
4
  import "./chunk-RPCIROW7.js";
5
5
  import {
6
6
  doctor,
7
7
  spawnRunner
8
- } from "./chunk-YYG3GUQW.js";
9
- import "./chunk-SPUCY4AG.js";
10
- import "./chunk-3UOFHLY4.js";
8
+ } from "./chunk-K2C3KFGB.js";
9
+ import "./chunk-IZABPDAO.js";
10
+ import "./chunk-FD6VGFYZ.js";
11
11
  import "./chunk-P4N7DBD5.js";
12
- import "./chunk-XPWIJOZT.js";
13
- import "./chunk-W5RLIUNC.js";
12
+ import "./chunk-RBNMNKNN.js";
13
+ import "./chunk-M2RYXWX2.js";
14
14
  import "./chunk-TIA4SPU2.js";
15
15
  import "./chunk-VJFEN6DJ.js";
16
16
  import {
@@ -18,27 +18,27 @@ import {
18
18
  LOCK_FILE,
19
19
  POLICY_FILE,
20
20
  sha256
21
- } from "./chunk-IACJDHFQ.js";
22
- import "./chunk-YLPXTJJM.js";
21
+ } from "./chunk-AWZF72SH.js";
22
+ import "./chunk-QDY6BWE6.js";
23
23
  import "./chunk-73AKO4UL.js";
24
24
  import {
25
25
  FEATURES,
26
26
  GUARDS,
27
27
  RUNTIMES,
28
28
  RUNTIME_IDS
29
- } from "./chunk-BRSESCGX.js";
29
+ } from "./chunk-QOFSPFJ6.js";
30
30
  import "./chunk-HQOB7OQS.js";
31
31
  import "./chunk-ICF2JZSN.js";
32
32
  import "./chunk-UD3BEEBQ.js";
33
33
  import "./chunk-ISNRDHSD.js";
34
34
  import "./chunk-EATCUWGG.js";
35
35
  import "./chunk-NRBQK6UX.js";
36
- import "./chunk-I4DLMIN5.js";
36
+ import "./chunk-ONP6JRFZ.js";
37
37
  import "./chunk-P6LNYYYH.js";
38
- import "./chunk-YXAPCHXJ.js";
38
+ import "./chunk-5JPD6VIH.js";
39
39
  import "./chunk-2Q6MNGU5.js";
40
- import "./chunk-V7HG3STC.js";
41
- import "./chunk-RRKGSYQ4.js";
40
+ import "./chunk-PQTM27GU.js";
41
+ import "./chunk-QSIADSMQ.js";
42
42
  import "./chunk-G7JONWL4.js";
43
43
  import "./chunk-Q5H3L6Y4.js";
44
44
  import {
@@ -53,11 +53,11 @@ import {
53
53
  import {
54
54
  TOOLS
55
55
  } from "./chunk-V4NPDK6X.js";
56
- import "./chunk-EONAJAMJ.js";
57
- import "./chunk-57FHYW74.js";
56
+ import "./chunk-7SDOSTW7.js";
57
+ import "./chunk-66F3HLW4.js";
58
58
  import "./chunk-OEH47H6A.js";
59
59
  import "./chunk-IJBSOWHK.js";
60
- import "./chunk-YGTJQVCK.js";
60
+ import "./chunk-FGYFA6JY.js";
61
61
  import "./chunk-GJXOFDJT.js";
62
62
  import "./chunk-PMJG2CXF.js";
63
63
  import "./chunk-J6KL3COD.js";
@@ -537,4 +537,4 @@ var doctorCommand = {
537
537
  export {
538
538
  doctorCommand
539
539
  };
540
- //# sourceMappingURL=doctor-MJFU5L6R.js.map
540
+ //# sourceMappingURL=doctor-ZWZQMDKZ.js.map