@modootoday/pmcp 0.24.1 → 0.25.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 (93) 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-CDJQJAZH.js → apply-6XLLYLJT.js} +9 -8
  6. package/dist/{broadcast-VKZY7WSD.js → broadcast-34CEG2NQ.js} +5 -2
  7. package/dist/{chunk-264DIB5U.js → chunk-2TXVOHRS.js} +3 -3
  8. package/dist/{chunk-X3RUXLAV.js → chunk-3P6Y2BAO.js} +3 -3
  9. package/dist/{chunk-7CGGDX7X.js → chunk-5MUD7FHP.js} +2 -2
  10. package/dist/{chunk-2GZKA33O.js → chunk-A4P3IIPE.js} +2 -2
  11. package/dist/{chunk-GEDRPMBH.js → chunk-BG6TONJO.js} +2 -2
  12. package/dist/{chunk-HES44LTA.js → chunk-C3KRMTIZ.js} +28 -4
  13. package/dist/{chunk-QY2P54Z2.js → chunk-DITIXBFB.js} +61 -8
  14. package/dist/{chunk-LNKAR3IS.js → chunk-DWHM5BAY.js} +2 -2
  15. package/dist/{chunk-VBWB2T3C.js → chunk-EC5QLEZD.js} +2 -2
  16. package/dist/{chunk-MZ52S4YJ.js → chunk-ISWR2XIU.js} +2 -2
  17. package/dist/{chunk-D4FIBB2G.js → chunk-LZVHFPN6.js} +5 -5
  18. package/dist/{chunk-3SEJNT6F.js → chunk-MBHI2TKQ.js} +4 -4
  19. package/dist/{chunk-43MXRTKH.js → chunk-NAHAESFV.js} +9 -4
  20. package/dist/chunk-NQCAKDRY.js +156 -0
  21. package/dist/chunk-OIKT4SYO.js +42 -0
  22. package/dist/{chunk-3O3JZTUU.js → chunk-PECS47OL.js} +3 -3
  23. package/dist/{chunk-AQM2JZMB.js → chunk-PGZZI42O.js} +2 -2
  24. package/dist/{chunk-5NQZGNKT.js → chunk-QYHM6554.js} +2 -2
  25. package/dist/{chunk-DLIO2D7S.js → chunk-RF6RDJYH.js} +16 -16
  26. package/dist/chunk-SMBU3QLE.js +7 -0
  27. package/dist/{chunk-V5PXMLLL.js → chunk-SRSKCFFS.js} +3 -3
  28. package/dist/{chunk-DGXZBQCA.js → chunk-SSQ6EWNA.js} +5 -5
  29. package/dist/{chunk-MOKZPZZO.js → chunk-TJW4DP26.js} +2 -2
  30. package/dist/{chunk-2ZH77O2D.js → chunk-TOR6SKRB.js} +141 -58
  31. package/dist/{chunk-PG62GOPU.js → chunk-UQHJUTDW.js} +2 -2
  32. package/dist/{cli-GFDT4YXM.js → cli-5G2OYTIL.js} +9 -9
  33. package/dist/{cli-OV5LSSGE.js → cli-QDQYUHAP.js} +4 -4
  34. package/dist/cli.js +38 -5
  35. package/dist/{completion-QNDCU4MF.js → completion-3GVNPLZY.js} +4 -4
  36. package/dist/{diagnostics-TPK3VC5F.js → diagnostics-2W7QDQNG.js} +6 -6
  37. package/dist/{doctor-K2LADSW2.js → doctor-3TDO5LJ5.js} +11 -10
  38. package/dist/{entry-HFQHKL5L.js → entry-E62DZQJF.js} +10 -10
  39. package/dist/{exec-mcp-I2YGGWY4.js → exec-mcp-4N7FLY52.js} +7 -6
  40. package/dist/{harness-BMWGAXCF.js → harness-E2AUZDLV.js} +3 -3
  41. package/dist/harness-launch-gate.js +4 -4
  42. package/dist/harness-worker.js +6 -6
  43. package/dist/{heavy-G6CYQQ7O.js → heavy-HZQVFI6P.js} +150 -36
  44. package/dist/hook-body.js +116 -45
  45. package/dist/{hooks-R7AYQXHY.js → hooks-VAEAK2FY.js} +4 -4
  46. package/dist/{host-PLE2T55E.js → host-4GJDGTLW.js} +7 -7
  47. package/dist/{host-EUD6GLWV.js → host-I2EMQ7UE.js} +12 -59
  48. package/dist/{host-run-QFNGIDL5.js → host-run-DDMKD3BU.js} +5 -5
  49. package/dist/http.js +1 -1
  50. package/dist/{import-mcp-DVKJOEOE.js → import-mcp-TNSAMJXI.js} +6 -5
  51. package/dist/index.d.ts +1 -1
  52. package/dist/index.js +10 -9
  53. package/dist/{init-DKWNL62M.js → init-UA7MDNTZ.js} +2 -2
  54. package/dist/{invoke-U6JTPTXT.js → invoke-HW7NBPGP.js} +8 -8
  55. package/dist/{list-YKQFJN3G.js → list-A7VQJXE5.js} +8 -7
  56. package/dist/{logout-5YSKC46N.js → logout-HNPLUKJY.js} +7 -6
  57. package/dist/{mailbox-5FVFMQ2J.js → mailbox-MR6TPD3P.js} +20 -6
  58. package/dist/{mainline-D3PSR6AJ.js → mainline-MSLW3UFD.js} +8 -2
  59. package/dist/{mcp-CHKKXHBB.js → mcp-6C23GX2E.js} +2 -2
  60. package/dist/{pause-CMZOIHTJ.js → pause-H6ZYZF7C.js} +5 -2
  61. package/dist/{project-QEYXISHC.js → project-BX6NCGKB.js} +4 -4
  62. package/dist/{report-UB7MXAUB.js → report-43SFNNCF.js} +2 -2
  63. package/dist/{resume-PAKIT4TT.js → resume-2BWGSTCN.js} +5 -2
  64. package/dist/{run-HKMYYEZJ.js → run-2UVAWBAF.js} +6 -5
  65. package/dist/{run-FYKDIW4C.js → run-7TRWZFEZ.js} +4 -4
  66. package/dist/{serve-QZNG5UUV.js → serve-4XZ5SKJJ.js} +3 -3
  67. package/dist/{start-login-4GPM32RA.js → start-login-AR7ITWNV.js} +7 -6
  68. package/dist/{status-4PYPTYUB.js → status-2GDYLIR3.js} +6 -3
  69. package/dist/{status-55CD352M.js → status-VQCMJFVE.js} +25 -22
  70. package/dist/{status-W6SCF2GF.js → status-ZY6LDQSF.js} +7 -6
  71. package/dist/stdio.js +2 -2
  72. package/dist/{sweep-VURZU6DI.js → sweep-76BUOGEI.js} +5 -2
  73. package/dist/{test-XYEMYZ2P.js → test-VWGNFSH5.js} +9 -7
  74. package/dist/{tui-FXSWN2PV.js → tui-TUMOQBE7.js} +4 -4
  75. package/dist/{unbroadcast-7AMLURCG.js → unbroadcast-HJHYUHZL.js} +5 -2
  76. package/dist/{worker-Q4I4EIAJ.js → worker-NEEPJRVV.js} +8 -8
  77. package/dist/{worktree-list-2HV6ODBS.js → worktree-list-WZC75NLF.js} +8 -9
  78. package/docs/commands.md +8 -6
  79. package/docs/glossary.md +1 -1
  80. package/docs/hooks.md +20 -16
  81. package/docs/project-configuration.md +73 -36
  82. package/docs/sessions.md +9 -2
  83. package/docs/upgrading.md +58 -0
  84. package/gemini-extension.json +2 -2
  85. package/mcp.json +1 -1
  86. package/package.json +5 -5
  87. package/plugin.json +1 -1
  88. package/plugins/pmcp/.claude-plugin/plugin.json +1 -1
  89. package/plugins/pmcp/.mcp.json +1 -1
  90. package/plugins/pmcp/gemini-extension.json +2 -2
  91. package/plugins/pmcp/mcp.json +1 -1
  92. package/plugins/pmcp/plugin.json +1 -1
  93. package/dist/chunk-65H4PN33.js +0 -7
@@ -612,7 +612,7 @@
612
612
  },
613
613
  {
614
614
  "name": "pmcp",
615
- "version": "0.24.1",
615
+ "version": "0.25.0",
616
616
  "description": "Find package skills and use native runtime project configuration.",
617
617
  "source": { "source": "local", "path": "./plugins/pmcp" },
618
618
  "policy": { "installation": "AVAILABLE", "authentication": "ON_USE" },
@@ -445,7 +445,7 @@
445
445
  },
446
446
  {
447
447
  "name": "pmcp",
448
- "version": "0.24.1",
448
+ "version": "0.25.0",
449
449
  "description": "Find package skills and use native runtime project configuration.",
450
450
  "source": "./plugins/pmcp"
451
451
  },
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pmcp",
3
- "version": "0.24.1",
3
+ "version": "0.25.0",
4
4
  "description": "Find package skills and use native runtime project configuration.",
5
5
  "author": { "name": "modootoday" },
6
6
  "license": "Elastic-2.0",
package/.mcp.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "pmcp": {
4
4
  "type": "stdio",
5
5
  "command": "npx",
6
- "args": ["-y", "@modootoday/pmcp@0.24.1", "serve"]
6
+ "args": ["-y", "@modootoday/pmcp@0.25.0", "serve"]
7
7
  }
8
8
  }
9
9
  }
@@ -3,7 +3,7 @@ import {
3
3
  } from "./chunk-2MX5C7B2.js";
4
4
  import {
5
5
  specFrom
6
- } from "./chunk-GEDRPMBH.js";
6
+ } from "./chunk-BG6TONJO.js";
7
7
  import {
8
8
  printSmoke,
9
9
  runSmoke
@@ -15,19 +15,20 @@ import {
15
15
  describeHookProblem,
16
16
  project,
17
17
  unmanagedHookProblems
18
- } from "./chunk-3SEJNT6F.js";
18
+ } from "./chunk-MBHI2TKQ.js";
19
19
  import "./chunk-ANJMLKBR.js";
20
- import "./chunk-V5PXMLLL.js";
20
+ import "./chunk-SRSKCFFS.js";
21
21
  import {
22
22
  checkBudget,
23
23
  renderFrontmatter,
24
24
  splitFrontmatter
25
- } from "./chunk-2ZH77O2D.js";
25
+ } from "./chunk-TOR6SKRB.js";
26
26
  import "./chunk-VYQJPT27.js";
27
27
  import "./chunk-UKR64U7J.js";
28
28
  import "./chunk-2GD7PQ7J.js";
29
29
  import "./chunk-EATCUWGG.js";
30
30
  import "./chunk-OFJIMBTL.js";
31
+ import "./chunk-NQCAKDRY.js";
31
32
  import "./chunk-LFFIQBNY.js";
32
33
  import "./chunk-HQOB7OQS.js";
33
34
  import "./chunk-73AKO4UL.js";
@@ -54,8 +55,8 @@ import {
54
55
  import "./chunk-YSAWTGNA.js";
55
56
  import {
56
57
  recordProjector
57
- } from "./chunk-264DIB5U.js";
58
- import "./chunk-QY2P54Z2.js";
58
+ } from "./chunk-2TXVOHRS.js";
59
+ import "./chunk-DITIXBFB.js";
59
60
  import "./chunk-N7ANFMA5.js";
60
61
  import {
61
62
  ProjectError
@@ -65,7 +66,7 @@ import "./chunk-FQLCD4HU.js";
65
66
  import "./chunk-GUHOEIHP.js";
66
67
  import "./chunk-IJBSOWHK.js";
67
68
  import "./chunk-XWLMZKH2.js";
68
- import "./chunk-65H4PN33.js";
69
+ import "./chunk-SMBU3QLE.js";
69
70
  import "./chunk-GJXOFDJT.js";
70
71
  import "./chunk-PMJG2CXF.js";
71
72
  import "./chunk-J6KL3COD.js";
@@ -280,4 +281,4 @@ export {
280
281
  projectOrCheck,
281
282
  removeAndProject
282
283
  };
283
- //# sourceMappingURL=apply-CDJQJAZH.js.map
284
+ //# sourceMappingURL=apply-6XLLYLJT.js.map
@@ -1,6 +1,9 @@
1
1
  import {
2
2
  change
3
- } from "./chunk-HES44LTA.js";
3
+ } from "./chunk-C3KRMTIZ.js";
4
+ import "./chunk-65BW7Y6O.js";
5
+ import "./chunk-OIKT4SYO.js";
6
+ import "./chunk-NQCAKDRY.js";
4
7
  import "./chunk-3V37OZQH.js";
5
8
  import "./chunk-Z6WRFOFT.js";
6
9
  import "./chunk-Y6NFETNG.js";
@@ -15,4 +18,4 @@ var run = (context) => change(context, "broadcast");
15
18
  export {
16
19
  run
17
20
  };
18
- //# sourceMappingURL=broadcast-VKZY7WSD.js.map
21
+ //# sourceMappingURL=broadcast-34CEG2NQ.js.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  readLeaseSettings
3
- } from "./chunk-QY2P54Z2.js";
3
+ } from "./chunk-DITIXBFB.js";
4
4
  import {
5
5
  ProjectError
6
6
  } from "./chunk-TYY5TYHF.js";
@@ -12,7 +12,7 @@ import {
12
12
  } from "./chunk-XWLMZKH2.js";
13
13
  import {
14
14
  VERSION
15
- } from "./chunk-65H4PN33.js";
15
+ } from "./chunk-SMBU3QLE.js";
16
16
  import {
17
17
  ConfigError
18
18
  } from "./chunk-GJXOFDJT.js";
@@ -610,4 +610,4 @@ export {
610
610
  hostEnvDoctor,
611
611
  hostDoctor
612
612
  };
613
- //# sourceMappingURL=chunk-264DIB5U.js.map
613
+ //# sourceMappingURL=chunk-2TXVOHRS.js.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  assertNativeHost
3
- } from "./chunk-MZ52S4YJ.js";
3
+ } from "./chunk-ISWR2XIU.js";
4
4
  import {
5
5
  locateExecutable
6
6
  } from "./chunk-R2GPCZUX.js";
@@ -33,7 +33,7 @@ import {
33
33
  resourceClaim,
34
34
  resourceRunning,
35
35
  runtimeUnit
36
- } from "./chunk-LNKAR3IS.js";
36
+ } from "./chunk-DWHM5BAY.js";
37
37
  import {
38
38
  command
39
39
  } from "./chunk-34DECPVC.js";
@@ -1981,4 +1981,4 @@ export {
1981
1981
  isReadOnly,
1982
1982
  runOperation
1983
1983
  };
1984
- //# sourceMappingURL=chunk-X3RUXLAV.js.map
1984
+ //# sourceMappingURL=chunk-3P6Y2BAO.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.24.1";
1193
+ var SERVER_VERSION = "0.25.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-7CGGDX7X.js.map
1250
+ //# sourceMappingURL=chunk-5MUD7FHP.js.map
@@ -122,7 +122,7 @@ var sessionsSpec = {
122
122
  nearestConfigOption,
123
123
  {
124
124
  name: "by",
125
- describe: "Who pauses, broadcasts or sends; that session is exempt. Default operator.",
125
+ describe: "Who pauses, broadcasts or sends; that session is exempt. Default: the agent session this runs in; operator only from the operator's terminal.",
126
126
  placeholder: "<name>"
127
127
  },
128
128
  {
@@ -170,4 +170,4 @@ export {
170
170
  JSON_VERBS,
171
171
  sessionsSpec
172
172
  };
173
- //# sourceMappingURL=chunk-2GZKA33O.js.map
173
+ //# sourceMappingURL=chunk-A4P3IIPE.js.map
@@ -3,7 +3,7 @@ import {
3
3
  } from "./chunk-7CHUMF3E.js";
4
4
  import {
5
5
  readSpec
6
- } from "./chunk-2ZH77O2D.js";
6
+ } from "./chunk-TOR6SKRB.js";
7
7
  import {
8
8
  ArgumentError,
9
9
  noConfig
@@ -27,4 +27,4 @@ function specFrom(context) {
27
27
  export {
28
28
  specFrom
29
29
  };
30
- //# sourceMappingURL=chunk-GEDRPMBH.js.map
30
+ //# sourceMappingURL=chunk-BG6TONJO.js.map
@@ -1,7 +1,17 @@
1
+ import {
2
+ inferSession
3
+ } from "./chunk-65BW7Y6O.js";
4
+ import {
5
+ isOperator,
6
+ requireOperatorFor
7
+ } from "./chunk-OIKT4SYO.js";
1
8
  import {
2
9
  openStore,
3
10
  readStoreSettings
4
11
  } from "./chunk-3V37OZQH.js";
12
+ import {
13
+ ancestors
14
+ } from "./chunk-Z6WRFOFT.js";
5
15
  import {
6
16
  ArgumentError,
7
17
  noConfig,
@@ -13,6 +23,7 @@ import {
13
23
  } from "./chunk-GJXOFDJT.js";
14
24
 
15
25
  // src/sessions/cli/verbs.ts
26
+ var OPERATOR = "operator";
16
27
  function storeFrom(context) {
17
28
  const path = one(context.args, "config") ?? findConfig(context.cwd);
18
29
  if (!path) throw noConfig();
@@ -37,12 +48,25 @@ function text(context, verb) {
37
48
  );
38
49
  return words;
39
50
  }
51
+ function actor(context, store) {
52
+ const given = one(context.args, "by");
53
+ if (given !== void 0 && given !== OPERATOR) return given;
54
+ if (given === void 0) {
55
+ const found = inferSession(context.env, store.registry.list(), ancestors());
56
+ if (found.session) return found.session;
57
+ }
58
+ if (isOperator(context)) return OPERATOR;
59
+ throw new ArgumentError(
60
+ given === OPERATOR ? "--by operator is for the operator's own terminal; name yourself with --by <name>" : "say who acts with --by <name>: no agent session or operator terminal was found"
61
+ );
62
+ }
40
63
  function change(context, verb) {
41
64
  const { store } = storeFrom(context);
42
- const by = one(context.args, "by") ?? "operator";
65
+ if (verb === "pause" || verb === "resume")
66
+ requireOperatorFor(context, `pmcp sessions ${verb}`);
43
67
  if (verb === "pause") {
44
68
  const reason = text(context, verb);
45
- store.pause.write({ by, reason });
69
+ store.pause.write({ by: one(context.args, "by") ?? OPERATOR, reason });
46
70
  context.ui.line(`paused: ${reason}`);
47
71
  return 0;
48
72
  }
@@ -53,7 +77,7 @@ function change(context, verb) {
53
77
  }
54
78
  if (verb === "broadcast") {
55
79
  const message = text(context, verb);
56
- store.broadcast.post({ by, text: message });
80
+ store.broadcast.post({ by: actor(context, store), text: message });
57
81
  context.ui.line(`broadcast: ${message}`);
58
82
  return 0;
59
83
  }
@@ -74,4 +98,4 @@ export {
74
98
  storeFrom,
75
99
  change
76
100
  };
77
- //# sourceMappingURL=chunk-HES44LTA.js.map
101
+ //# sourceMappingURL=chunk-C3KRMTIZ.js.map
@@ -17,6 +17,37 @@ import {
17
17
 
18
18
  // src/lease/config.ts
19
19
  import { availableParallelism } from "os";
20
+
21
+ // src/lease/heavy-preset.ts
22
+ var SCRIPTS = ["test", "build", "typecheck"];
23
+ function scripts(manager, direct) {
24
+ return [
25
+ ...direct.map((verb) => [manager, verb]),
26
+ ...SCRIPTS.map((script) => [manager, "run", script])
27
+ ];
28
+ }
29
+ var DEFAULT_HEAVY = [
30
+ ["npm", "install"],
31
+ ["npm", "i"],
32
+ ["npm", "ci"],
33
+ ["npm", "test"],
34
+ ...scripts("npm", []),
35
+ ["pnpm", "install"],
36
+ ["pnpm", "i"],
37
+ ...scripts("pnpm", SCRIPTS),
38
+ ["yarn", "install"],
39
+ ...scripts("yarn", SCRIPTS),
40
+ ["bun", "install"],
41
+ ["bun", "i"],
42
+ ["bun", "test"],
43
+ ...scripts("bun", []),
44
+ ["cargo", "build"],
45
+ ["cargo", "test"],
46
+ ["cargo", "check"]
47
+ ];
48
+ var HEAVY_PRESET = "default";
49
+
50
+ // src/lease/config.ts
20
51
  var DISABLE_ENV = "PMCP_HEAVY_DISABLE";
21
52
  var NOW_ENV = "PMCP_HEAVY_NOW";
22
53
  var BUSY_EXIT = 75;
@@ -49,7 +80,8 @@ var KEYS = [
49
80
  "io",
50
81
  "usage_cap",
51
82
  "settle_window",
52
- "skip_always"
83
+ "skip_always",
84
+ "skip_reasons"
53
85
  ];
54
86
  var SIZE = /^[1-9]\d*[KMGT]$/u;
55
87
  function fail(path, message) {
@@ -178,12 +210,31 @@ function ioSettings(path, raw) {
178
210
  }
179
211
  return { enabled, weights, max };
180
212
  }
181
- function reasons(path, value) {
213
+ var REASON = /^[a-z][a-z0-9_.:-]{0,63}$/u;
214
+ function reasons(path, key, value) {
182
215
  if (value === void 0) return [];
183
- if (!Array.isArray(value) || !value.every((item) => typeof item === "string" && item !== ""))
184
- fail(path, "[host.lease] skip_always must be a list of skip reasons");
216
+ if (!Array.isArray(value) || !value.every((item) => typeof item === "string" && REASON.test(item)))
217
+ fail(
218
+ path,
219
+ `[host.lease] ${key} must be a list of skip reasons: lower-case words such as "git-hook"`
220
+ );
185
221
  return value;
186
222
  }
223
+ function heavyList(path, value, declared) {
224
+ if (value === void 0) return declared ? [...DEFAULT_HEAVY] : [];
225
+ const items = value === HEAVY_PRESET ? [value] : value;
226
+ if (!Array.isArray(items))
227
+ fail(
228
+ path,
229
+ `[host.lease] heavy must be "${HEAVY_PRESET}" or a list of argv prefixes`
230
+ );
231
+ const preset = items.includes(HEAVY_PRESET);
232
+ const own = argvList(
233
+ path,
234
+ items.filter((item) => item !== HEAVY_PRESET)
235
+ );
236
+ return [...preset ? DEFAULT_HEAVY : [], ...own];
237
+ }
187
238
  function hardFactor(path, value) {
188
239
  if (value === void 0) return 2;
189
240
  if (typeof value !== "number" || !(value >= 1))
@@ -192,7 +243,8 @@ function hardFactor(path, value) {
192
243
  }
193
244
  function readLeaseSettings(path, dir, host) {
194
245
  const root = table(path, "host", host) ?? {};
195
- const raw = child(path, root, "host", "lease") ?? {};
246
+ const declared = child(path, root, "host", "lease");
247
+ const raw = declared ?? {};
196
248
  const read = new Reader(path, "host.lease", raw, KEYS);
197
249
  const memoryMax = memory(path, "host.lease", raw["memory_max"]);
198
250
  const base = {
@@ -211,7 +263,8 @@ function readLeaseSettings(path, dir, host) {
211
263
  markerEnv: read.envName("marker_env") ?? "PMCP_HEAVY_LEASE",
212
264
  ...legacyMarkerEnv ? { legacyMarkerEnv } : {},
213
265
  ...legacySkipEnv ? { legacySkipEnv } : {},
214
- skipAlways: reasons(path, raw["skip_always"]),
266
+ skipAlways: reasons(path, "skip_always", raw["skip_always"]),
267
+ skipReasons: reasons(path, "skip_reasons", raw["skip_reasons"]),
215
268
  maxLoad: read.positive("max_load") ?? availableParallelism(),
216
269
  maxIo: read.positive("max_io") ?? 8,
217
270
  ioWindow: read.oneOf("io_window", ["avg10", "avg60", "avg300"], "avg60"),
@@ -239,7 +292,7 @@ function readLeaseSettings(path, dir, host) {
239
292
  tiny: argvList(path, raw["tiny"]),
240
293
  perSession: whole(path, "host.lease", "per_session", raw["per_session"], 1),
241
294
  profiles: profiles(path, child(path, raw, "host.lease", "profiles"), base),
242
- heavy: argvList(path, raw["heavy"]),
295
+ heavy: heavyList(path, raw["heavy"], declared !== void 0),
243
296
  guard: read.oneOf("guard", ["observe", "warn", "deny", "off"], "observe"),
244
297
  io: ioSettings(path, child(path, raw, "host.lease", "io")),
245
298
  usageCap: read.int("usage_cap", 5e6),
@@ -266,4 +319,4 @@ export {
266
319
  readLeaseSettings,
267
320
  leaseSettingsFor
268
321
  };
269
- //# sourceMappingURL=chunk-QY2P54Z2.js.map
322
+ //# sourceMappingURL=chunk-DITIXBFB.js.map
@@ -3,7 +3,7 @@ import {
3
3
  } from "./chunk-34DECPVC.js";
4
4
  import {
5
5
  ptyBinary
6
- } from "./chunk-264DIB5U.js";
6
+ } from "./chunk-2TXVOHRS.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-LNKAR3IS.js.map
778
+ //# sourceMappingURL=chunk-DWHM5BAY.js.map
@@ -5,7 +5,7 @@ import {
5
5
  POLICIES,
6
6
  customMode,
7
7
  customPolicy
8
- } from "./chunk-2ZH77O2D.js";
8
+ } from "./chunk-TOR6SKRB.js";
9
9
  import {
10
10
  RUNTIMES
11
11
  } from "./chunk-ARXCYFFZ.js";
@@ -42,4 +42,4 @@ function policyRows(compiled) {
42
42
  export {
43
43
  policyRows
44
44
  };
45
- //# sourceMappingURL=chunk-VBWB2T3C.js.map
45
+ //# sourceMappingURL=chunk-EC5QLEZD.js.map
@@ -6,7 +6,7 @@ import {
6
6
  } from "./chunk-34DECPVC.js";
7
7
  import {
8
8
  ptyBinary
9
- } from "./chunk-264DIB5U.js";
9
+ } from "./chunk-2TXVOHRS.js";
10
10
 
11
11
  // src/harness/adapters/systemd/admission.ts
12
12
  var nativeHostTools = ["systemctl", "systemd-run"];
@@ -36,4 +36,4 @@ export {
36
36
  nativeHostTools,
37
37
  assertNativeHost
38
38
  };
39
- //# sourceMappingURL=chunk-MZ52S4YJ.js.map
39
+ //# sourceMappingURL=chunk-ISWR2XIU.js.map
@@ -7,20 +7,20 @@ import {
7
7
  observeSession,
8
8
  openGroup,
9
9
  runOperation
10
- } from "./chunk-X3RUXLAV.js";
10
+ } from "./chunk-3P6Y2BAO.js";
11
11
  import {
12
12
  nativeHostTools
13
- } from "./chunk-MZ52S4YJ.js";
13
+ } from "./chunk-ISWR2XIU.js";
14
14
  import {
15
15
  locateExecutable
16
16
  } from "./chunk-R2GPCZUX.js";
17
17
  import {
18
18
  artifact,
19
19
  stateDirectory
20
- } from "./chunk-LNKAR3IS.js";
20
+ } from "./chunk-DWHM5BAY.js";
21
21
  import {
22
22
  ptyBinary
23
- } from "./chunk-264DIB5U.js";
23
+ } from "./chunk-2TXVOHRS.js";
24
24
  import {
25
25
  GroupStore,
26
26
  privateJson
@@ -249,4 +249,4 @@ async function invoke(operation) {
249
249
  export {
250
250
  invoke
251
251
  };
252
- //# sourceMappingURL=chunk-D4FIBB2G.js.map
252
+ //# sourceMappingURL=chunk-LZVHFPN6.js.map
@@ -7,7 +7,7 @@ import {
7
7
  prepare,
8
8
  present,
9
9
  writeNative
10
- } from "./chunk-V5PXMLLL.js";
10
+ } from "./chunk-SRSKCFFS.js";
11
11
  import {
12
12
  ANTIGRAVITY_MCP_PLUGIN,
13
13
  BUNDLE_NATIVE_FILES,
@@ -21,7 +21,7 @@ import {
21
21
  same,
22
22
  splitKeyed,
23
23
  withoutBlock
24
- } from "./chunk-2ZH77O2D.js";
24
+ } from "./chunk-TOR6SKRB.js";
25
25
  import {
26
26
  HOOK_DIRECTORY
27
27
  } from "./chunk-ARXCYFFZ.js";
@@ -30,7 +30,7 @@ import {
30
30
  replaceFile,
31
31
  replaceLink,
32
32
  writeLock
33
- } from "./chunk-264DIB5U.js";
33
+ } from "./chunk-2TXVOHRS.js";
34
34
  import {
35
35
  RULES_DIR,
36
36
  legacyLinks
@@ -400,4 +400,4 @@ export {
400
400
  unmanagedHooks,
401
401
  describeHookProblem
402
402
  };
403
- //# sourceMappingURL=chunk-3SEJNT6F.js.map
403
+ //# sourceMappingURL=chunk-MBHI2TKQ.js.map
@@ -70,9 +70,9 @@ var heavySpec = {
70
70
  {
71
71
  name: "stats",
72
72
  describe: "Recorded run times and weights per command",
73
- usage: "pmcp heavy stats [--json]",
74
- options: ["config", "json"],
75
- examples: ["pmcp heavy stats"]
73
+ usage: "pmcp heavy stats [--top <n>] [--json]",
74
+ options: ["top", "config", "json"],
75
+ examples: ["pmcp heavy stats --top 10"]
76
76
  }
77
77
  ],
78
78
  describe: "Run a heavy command within the host-wide budget, by lane, once the host has room",
@@ -110,6 +110,11 @@ var heavySpec = {
110
110
  describe: "cancel: also stop a job that is already running.",
111
111
  boolean: true
112
112
  },
113
+ {
114
+ name: "top",
115
+ describe: "stats: only the n commands with the most runs.",
116
+ placeholder: "<n>"
117
+ },
113
118
  {
114
119
  name: "ticket",
115
120
  describe: "Internal: the submitted ticket this run belongs to.",
@@ -131,4 +136,4 @@ var heavySpec = {
131
136
  export {
132
137
  heavySpec
133
138
  };
134
- //# sourceMappingURL=chunk-43MXRTKH.js.map
139
+ //# sourceMappingURL=chunk-NAHAESFV.js.map