@modootoday/pmcp 0.22.11 → 0.22.13

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 (125) 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/affected-ZWO2F5EM.js +836 -0
  6. package/dist/{apply-DXM56NV3.js → apply-OIKQ5SIY.js} +21 -17
  7. package/dist/{available-BFXLII4A.js → available-Z5MIDFPH.js} +3 -3
  8. package/dist/{broadcast-DZGMSZRG.js → broadcast-BF2QL3O7.js} +6 -5
  9. package/dist/{chunk-TU2SG5BM.js → chunk-24L4MO7H.js} +2 -2
  10. package/dist/{chunk-7I7O7ZNT.js → chunk-3V37OZQH.js} +5 -3
  11. package/dist/{chunk-PEMMV5YQ.js → chunk-4O4ZOSBQ.js} +3 -3
  12. package/dist/{chunk-7ZWSCSZM.js → chunk-5IZFEVPW.js} +2 -2
  13. package/dist/{chunk-TQODDSIG.js → chunk-5KWDQFVY.js} +4 -4
  14. package/dist/{chunk-R5MT42JS.js → chunk-5OFQVW2K.js} +2 -2
  15. package/dist/{chunk-REFEJ4VJ.js → chunk-5PNS6V5C.js} +2 -2
  16. package/dist/chunk-65BW7Y6O.js +40 -0
  17. package/dist/{chunk-IATFWEAX.js → chunk-733WVP2R.js} +19 -7
  18. package/dist/{chunk-URCQLONP.js → chunk-737BENAU.js} +8 -8
  19. package/dist/{chunk-GFOQDLPL.js → chunk-74O7KZUH.js} +13 -3
  20. package/dist/{chunk-5ZUEPPFZ.js → chunk-7ZOQELXR.js} +9 -7
  21. package/dist/{chunk-ENOMRAFS.js → chunk-A6DARDQ4.js} +3 -3
  22. package/dist/{chunk-PUIWESU3.js → chunk-A7XCUR2C.js} +4 -4
  23. package/dist/{chunk-P4N7DBD5.js → chunk-ANJMLKBR.js} +2 -2
  24. package/dist/chunk-BN4XAXMQ.js +65 -0
  25. package/dist/chunk-FOLA4EUJ.js +261 -0
  26. package/dist/chunk-FQLCD4HU.js +24 -0
  27. package/dist/chunk-G4ATQPQI.js +35 -0
  28. package/dist/{chunk-TZWLT6FD.js → chunk-GNVME5AD.js} +2 -2
  29. package/dist/{chunk-OEH47H6A.js → chunk-GUHOEIHP.js} +3 -20
  30. package/dist/{chunk-PIVKGKMR.js → chunk-ISGBOJT7.js} +3 -3
  31. package/dist/{chunk-RPCIROW7.js → chunk-J3QUG6O5.js} +2 -2
  32. package/dist/{chunk-B2WRYGHJ.js → chunk-JW5NMQTU.js} +3 -3
  33. package/dist/{chunk-2GOR4ZKO.js → chunk-K2VU3B4W.js} +99 -27
  34. package/dist/{chunk-5QKXEWDB.js → chunk-MHKY6TNF.js} +6 -4
  35. package/dist/chunk-N7ANFMA5.js +171 -0
  36. package/dist/{chunk-URP3QIWI.js → chunk-NNGGNXF2.js} +2 -2
  37. package/dist/{chunk-7CSUKCU7.js → chunk-P5D6RKMT.js} +13 -94
  38. package/dist/{chunk-EA2OSLFJ.js → chunk-QBSJL3SP.js} +42 -31
  39. package/dist/chunk-SGFTHKKS.js +86 -0
  40. package/dist/{chunk-Z5RNKEHF.js → chunk-T4GVN7XO.js} +5 -5
  41. package/dist/chunk-T6C3TSTO.js +99 -0
  42. package/dist/{chunk-NRBQK6UX.js → chunk-TYY5TYHF.js} +14 -1
  43. package/dist/{chunk-VEOYGFEQ.js → chunk-UED3RH53.js} +2 -2
  44. package/dist/{chunk-37RGCHTK.js → chunk-VNZTULFD.js} +3 -3
  45. package/dist/chunk-VSTUKACC.js +7 -0
  46. package/dist/{chunk-A4PKLESO.js → chunk-WFY7ATSZ.js} +8 -4
  47. package/dist/{chunk-KPKMEUUH.js → chunk-XSWF7APE.js} +3 -3
  48. package/dist/{chunk-GIDKCJVZ.js → chunk-ZKB7ZNKY.js} +4 -4
  49. package/dist/{chunk-ZEERJLE5.js → chunk-ZS5IDQFJ.js} +6 -6
  50. package/dist/{cli-JXPJFHUA.js → cli-FSSYFCV3.js} +15 -9
  51. package/dist/{cli-34EDFXJA.js → cli-IHVNE3WL.js} +9 -9
  52. package/dist/cli.js +19 -13
  53. package/dist/{completion-25CHR7SR.js → completion-ZTTJVV4C.js} +8 -6
  54. package/dist/{diagnostics-4PQSTI2X.js → diagnostics-XC5L6Z3E.js} +11 -7
  55. package/dist/{doctor-MHFALEWR.js → doctor-FGDSUBR3.js} +21 -17
  56. package/dist/{entry-25VWXTCW.js → entry-NNB2CQLZ.js} +20 -16
  57. package/dist/{exec-mcp-OQP5OU26.js → exec-mcp-ZU3Z3XT6.js} +16 -12
  58. package/dist/{harness-DTXPIWKL.js → harness-B7ANLH5M.js} +5 -5
  59. package/dist/harness-launch-gate.js +9 -5
  60. package/dist/harness-worker.js +11 -7
  61. package/dist/heavy-IIZBO4YM.js +1909 -0
  62. package/dist/hook-body.js +69 -21
  63. package/dist/{hooks-E33GKFRS.js → hooks-IEJTW7BV.js} +5 -5
  64. package/dist/{host-4YG67ZQ2.js → host-5P4D7GSE.js} +18 -14
  65. package/dist/host-XXWQ23LD.js +28 -0
  66. package/dist/{host-run-AJR2THEY.js → host-run-AEWHFVQL.js} +11 -7
  67. package/dist/http.js +1 -1
  68. package/dist/{import-mcp-MGDRREMJ.js → import-mcp-BQM5DKYH.js} +16 -12
  69. package/dist/index.d.ts +1 -1
  70. package/dist/index.js +18 -14
  71. package/dist/{init-RMTFPDJQ.js → init-L6GUO3PW.js} +2 -2
  72. package/dist/{install-7V6NIA7W.js → install-OFVLR7TI.js} +3 -3
  73. package/dist/invoke-3BQ5NG3P.js +29 -0
  74. package/dist/{list-WJE6NS7Y.js → list-EU4MJOXA.js} +17 -13
  75. package/dist/{list-WK2IYUK7.js → list-WWYCGD3X.js} +4 -4
  76. package/dist/{logout-SZY5GBIH.js → logout-6DFDYJUI.js} +16 -12
  77. package/dist/{logs-UHJM7ZCL.js → logs-BRF6DBKG.js} +7 -6
  78. package/dist/{mailbox-YN6PG66A.js → mailbox-AQCTXO3H.js} +3 -3
  79. package/dist/{mailbox-NIMBOQPA.js → mailbox-QYA2LQSE.js} +9 -41
  80. package/dist/{mainline-74WCH4T4.js → mainline-O5AEHG3J.js} +69 -121
  81. package/dist/{marketplace-G4VQET5W.js → marketplace-TI5HFAHB.js} +2 -2
  82. package/dist/{mcp-AXHV547W.js → mcp-4R53HSGY.js} +2 -2
  83. package/dist/{mcp-BPTTJKWL.js → mcp-HR5JFUW7.js} +2 -2
  84. package/dist/{models-ISU4DCMA.js → models-63NQBSV3.js} +2 -2
  85. package/dist/{pause-CBZ3BTJL.js → pause-UF7FQDJX.js} +6 -5
  86. package/dist/{preview-DT7DWG5F.js → preview-WSESS2UN.js} +3 -3
  87. package/dist/{project-6GDQBLDC.js → project-JXXL24WN.js} +6 -6
  88. package/dist/{reindex-I7RYWCUR.js → reindex-3GPKAFBW.js} +5 -5
  89. package/dist/{report-ZHOHQ4PZ.js → report-JUSKQPAC.js} +7 -6
  90. package/dist/{resume-UJEWQ66P.js → resume-3WAROOQ3.js} +6 -5
  91. package/dist/{run-V4LBDW5O.js → run-VUUQS4WY.js} +5 -5
  92. package/dist/{run-5UM7WUTH.js → run-XRWU4L73.js} +14 -10
  93. package/dist/{serve-723OCAUT.js → serve-OEX5V5CD.js} +7 -7
  94. package/dist/{setup-SOUBEZ3H.js → setup-SWNAC2C7.js} +6 -4
  95. package/dist/{smoke-2FI5D74B.js → smoke-5BGJXAHX.js} +4 -4
  96. package/dist/{start-login-M425T4GS.js → start-login-MG26NDE3.js} +16 -12
  97. package/dist/{status-XAP66PLK.js → status-APADL7O2.js} +16 -12
  98. package/dist/{status-KN2ZE64O.js → status-GKCIVAAR.js} +6 -5
  99. package/dist/{status-QEFRBTOO.js → status-LH7Q255G.js} +18 -14
  100. package/dist/stdio.js +2 -2
  101. package/dist/{sweep-EPZCW63Q.js → sweep-VTVPDAPY.js} +6 -5
  102. package/dist/{test-TL7DRDMD.js → test-TK2J3IB7.js} +17 -13
  103. package/dist/{tui-DGGNATMI.js → tui-YTPHHKCW.js} +5 -5
  104. package/dist/{unbroadcast-N6LXHAMT.js → unbroadcast-CH7BAQ2G.js} +6 -5
  105. package/dist/{validate-KFBCUFI4.js → validate-5QVZBE6W.js} +4 -4
  106. package/dist/wait-4HYJJAWO.js +141 -0
  107. package/dist/{worker-N7EOJVI3.js → worker-RBXYAMR4.js} +13 -9
  108. package/dist/{worktree-create-KMXPQXIQ.js → worktree-create-FEZNQUQ6.js} +2 -2
  109. package/docs/commands.md +48 -12
  110. package/docs/git-workflow.md +51 -0
  111. package/docs/hooks.md +8 -1
  112. package/docs/project-configuration.md +134 -18
  113. package/docs/upgrading.md +11 -0
  114. package/gemini-extension.json +2 -2
  115. package/mcp.json +1 -1
  116. package/package.json +5 -5
  117. package/plugin.json +1 -1
  118. package/plugins/pmcp/.claude-plugin/plugin.json +1 -1
  119. package/plugins/pmcp/.mcp.json +1 -1
  120. package/plugins/pmcp/gemini-extension.json +2 -2
  121. package/plugins/pmcp/mcp.json +1 -1
  122. package/plugins/pmcp/plugin.json +1 -1
  123. package/dist/chunk-L7LQEVTE.js +0 -7
  124. package/dist/host-W6B2O44Q.js +0 -24
  125. package/dist/invoke-JRFOK374.js +0 -25
@@ -1,30 +1,30 @@
1
1
  import {
2
2
  catalogFrom
3
- } from "./chunk-PEMMV5YQ.js";
3
+ } from "./chunk-4O4ZOSBQ.js";
4
4
  import {
5
5
  specFrom
6
- } from "./chunk-TQODDSIG.js";
6
+ } from "./chunk-5KWDQFVY.js";
7
7
  import {
8
8
  printSmoke,
9
9
  runSmoke
10
- } from "./chunk-KPKMEUUH.js";
10
+ } from "./chunk-XSWF7APE.js";
11
11
  import {
12
12
  configFrom
13
- } from "./chunk-RPCIROW7.js";
13
+ } from "./chunk-J3QUG6O5.js";
14
14
  import {
15
15
  describeHookProblem,
16
16
  project,
17
17
  unmanagedHookProblems
18
- } from "./chunk-ZEERJLE5.js";
19
- import "./chunk-P4N7DBD5.js";
20
- import "./chunk-5ZUEPPFZ.js";
18
+ } from "./chunk-ZS5IDQFJ.js";
19
+ import "./chunk-ANJMLKBR.js";
20
+ import "./chunk-7ZOQELXR.js";
21
21
  import {
22
22
  checkBudget,
23
23
  renderFrontmatter,
24
24
  splitFrontmatter
25
- } from "./chunk-2GOR4ZKO.js";
26
- import "./chunk-UKR64U7J.js";
25
+ } from "./chunk-K2VU3B4W.js";
27
26
  import "./chunk-UYBWUOLR.js";
27
+ import "./chunk-UKR64U7J.js";
28
28
  import "./chunk-42SO7KYX.js";
29
29
  import "./chunk-EATCUWGG.js";
30
30
  import "./chunk-OFJIMBTL.js";
@@ -32,9 +32,9 @@ import "./chunk-LFFIQBNY.js";
32
32
  import "./chunk-HQOB7OQS.js";
33
33
  import "./chunk-73AKO4UL.js";
34
34
  import "./chunk-M6X6HVQK.js";
35
- import "./chunk-7CSUKCU7.js";
35
+ import "./chunk-P5D6RKMT.js";
36
36
  import "./chunk-SUDG7B6S.js";
37
- import "./chunk-7I7O7ZNT.js";
37
+ import "./chunk-3V37OZQH.js";
38
38
  import "./chunk-Z6WRFOFT.js";
39
39
  import "./chunk-B3OZ4GGO.js";
40
40
  import "./chunk-Q5H3L6Y4.js";
@@ -45,7 +45,7 @@ import {
45
45
  import "./chunk-JEL35P7S.js";
46
46
  import {
47
47
  ArgumentError
48
- } from "./chunk-A4PKLESO.js";
48
+ } from "./chunk-WFY7ATSZ.js";
49
49
  import "./chunk-V4NPDK6X.js";
50
50
  import {
51
51
  kindOf
@@ -53,14 +53,18 @@ import {
53
53
  import "./chunk-YSAWTGNA.js";
54
54
  import {
55
55
  recordProjector
56
- } from "./chunk-IATFWEAX.js";
56
+ } from "./chunk-733WVP2R.js";
57
+ import "./chunk-FOLA4EUJ.js";
58
+ import "./chunk-N7ANFMA5.js";
57
59
  import {
58
60
  ProjectError
59
- } from "./chunk-NRBQK6UX.js";
60
- import "./chunk-OEH47H6A.js";
61
+ } from "./chunk-TYY5TYHF.js";
62
+ import "./chunk-T6C3TSTO.js";
63
+ import "./chunk-FQLCD4HU.js";
64
+ import "./chunk-GUHOEIHP.js";
61
65
  import "./chunk-IJBSOWHK.js";
62
66
  import "./chunk-XWLMZKH2.js";
63
- import "./chunk-L7LQEVTE.js";
67
+ import "./chunk-VSTUKACC.js";
64
68
  import "./chunk-GJXOFDJT.js";
65
69
  import "./chunk-PMJG2CXF.js";
66
70
  import "./chunk-J6KL3COD.js";
@@ -275,4 +279,4 @@ export {
275
279
  projectOrCheck,
276
280
  removeAndProject
277
281
  };
278
- //# sourceMappingURL=apply-DXM56NV3.js.map
282
+ //# sourceMappingURL=apply-OIKQ5SIY.js.map
@@ -8,7 +8,7 @@ import {
8
8
  import {
9
9
  projectFrom,
10
10
  remoteCatalog
11
- } from "./chunk-R5MT42JS.js";
11
+ } from "./chunk-5OFQVW2K.js";
12
12
  import "./chunk-RMATE45Z.js";
13
13
  import {
14
14
  invocation
@@ -19,7 +19,7 @@ import {
19
19
  } from "./chunk-ABTJQ4QV.js";
20
20
  import {
21
21
  ArgumentError
22
- } from "./chunk-A4PKLESO.js";
22
+ } from "./chunk-WFY7ATSZ.js";
23
23
  import "./chunk-4CRRLDDS.js";
24
24
  import "./chunk-YSAWTGNA.js";
25
25
 
@@ -70,4 +70,4 @@ var availableCommand = {
70
70
  export {
71
71
  availableCommand
72
72
  };
73
- //# sourceMappingURL=available-BFXLII4A.js.map
73
+ //# sourceMappingURL=available-Z5MIDFPH.js.map
@@ -1,10 +1,11 @@
1
1
  import {
2
2
  change
3
- } from "./chunk-B2WRYGHJ.js";
4
- import "./chunk-7I7O7ZNT.js";
3
+ } from "./chunk-JW5NMQTU.js";
4
+ import "./chunk-3V37OZQH.js";
5
5
  import "./chunk-Z6WRFOFT.js";
6
- import "./chunk-A4PKLESO.js";
7
- import "./chunk-OEH47H6A.js";
6
+ import "./chunk-WFY7ATSZ.js";
7
+ import "./chunk-FQLCD4HU.js";
8
+ import "./chunk-GUHOEIHP.js";
8
9
  import "./chunk-IJBSOWHK.js";
9
10
  import "./chunk-GJXOFDJT.js";
10
11
  import "./chunk-PMJG2CXF.js";
@@ -14,4 +15,4 @@ var run = (context) => change(context, "broadcast");
14
15
  export {
15
16
  run
16
17
  };
17
- //# sourceMappingURL=broadcast-DZGMSZRG.js.map
18
+ //# sourceMappingURL=broadcast-BF2QL3O7.js.map
@@ -5,7 +5,7 @@ import {
5
5
  POLICIES,
6
6
  customMode,
7
7
  customPolicy
8
- } from "./chunk-2GOR4ZKO.js";
8
+ } from "./chunk-K2VU3B4W.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-TU2SG5BM.js.map
45
+ //# sourceMappingURL=chunk-24L4MO7H.js.map
@@ -11,9 +11,11 @@ import {
11
11
  leaseFile
12
12
  } from "./chunk-Z6WRFOFT.js";
13
13
  import {
14
- expandPath,
15
14
  projectStateDir
16
- } from "./chunk-OEH47H6A.js";
15
+ } from "./chunk-FQLCD4HU.js";
16
+ import {
17
+ expandPath
18
+ } from "./chunk-GUHOEIHP.js";
17
19
  import {
18
20
  checkoutOf
19
21
  } from "./chunk-IJBSOWHK.js";
@@ -728,4 +730,4 @@ export {
728
730
  readStoreSettings,
729
731
  openStore
730
732
  };
731
- //# sourceMappingURL=chunk-7I7O7ZNT.js.map
733
+ //# sourceMappingURL=chunk-3V37OZQH.js.map
@@ -1,12 +1,12 @@
1
1
  import {
2
2
  configFrom
3
- } from "./chunk-RPCIROW7.js";
3
+ } from "./chunk-J3QUG6O5.js";
4
4
  import {
5
5
  publicMarketplaceRoot
6
6
  } from "./chunk-73AKO4UL.js";
7
7
  import {
8
8
  many
9
- } from "./chunk-A4PKLESO.js";
9
+ } from "./chunk-WFY7ATSZ.js";
10
10
  import {
11
11
  readCatalog
12
12
  } from "./chunk-4CRRLDDS.js";
@@ -50,4 +50,4 @@ export {
50
50
  catalogOptionsFrom,
51
51
  catalogFrom
52
52
  };
53
- //# sourceMappingURL=chunk-PEMMV5YQ.js.map
53
+ //# sourceMappingURL=chunk-4O4ZOSBQ.js.map
@@ -6,7 +6,7 @@ import {
6
6
  } from "./chunk-34DECPVC.js";
7
7
  import {
8
8
  ptyBinary
9
- } from "./chunk-IATFWEAX.js";
9
+ } from "./chunk-733WVP2R.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-7ZWSCSZM.js.map
39
+ //# sourceMappingURL=chunk-5IZFEVPW.js.map
@@ -1,12 +1,12 @@
1
1
  import {
2
2
  configFrom
3
- } from "./chunk-RPCIROW7.js";
3
+ } from "./chunk-J3QUG6O5.js";
4
4
  import {
5
5
  readSpec
6
- } from "./chunk-2GOR4ZKO.js";
6
+ } from "./chunk-K2VU3B4W.js";
7
7
  import {
8
8
  ArgumentError
9
- } from "./chunk-A4PKLESO.js";
9
+ } from "./chunk-WFY7ATSZ.js";
10
10
 
11
11
  // src/commands/project/spec-from.ts
12
12
  function specFrom(context) {
@@ -28,4 +28,4 @@ function specFrom(context) {
28
28
  export {
29
29
  specFrom
30
30
  };
31
- //# sourceMappingURL=chunk-TQODDSIG.js.map
31
+ //# sourceMappingURL=chunk-5KWDQFVY.js.map
@@ -7,7 +7,7 @@ import {
7
7
  import {
8
8
  ArgumentError,
9
9
  one
10
- } from "./chunk-A4PKLESO.js";
10
+ } from "./chunk-WFY7ATSZ.js";
11
11
 
12
12
  // src/commands/remote-options.ts
13
13
  import { dirname, join as join2, resolve } from "path";
@@ -281,4 +281,4 @@ export {
281
281
  apiOrigin,
282
282
  remoteCatalog
283
283
  };
284
- //# sourceMappingURL=chunk-R5MT42JS.js.map
284
+ //# sourceMappingURL=chunk-5OFQVW2K.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.22.11";
1193
+ var SERVER_VERSION = "0.22.13";
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-REFEJ4VJ.js.map
1250
+ //# sourceMappingURL=chunk-5PNS6V5C.js.map
@@ -0,0 +1,40 @@
1
+ // src/sessions/identity.ts
2
+ var SESSION_VARIABLES = [
3
+ ["codex", "CODEX_THREAD_ID"],
4
+ ["grok", "GROK_SESSION_ID"],
5
+ ["antigravity", "ANTIGRAVITY_CONVERSATION_ID"],
6
+ ["claude", "CLAUDE_CODE_SESSION_ID"]
7
+ ];
8
+ var MARKERS = [
9
+ ["codex", "CODEX_THREAD_ID"],
10
+ ["grok", "GROK_AGENT"],
11
+ ["antigravity", "ANTIGRAVITY_AGENT"],
12
+ ["opencode", "OPENCODE"],
13
+ ["gemini", "GEMINI_CLI"],
14
+ ["claude", "CLAUDECODE"]
15
+ ];
16
+ function inferSession(env, records, chain) {
17
+ const live = records.filter(
18
+ (record) => record.live && record.pid !== void 0
19
+ );
20
+ for (const pid of chain) {
21
+ const record = live.find((entry) => entry.pid === pid);
22
+ if (record)
23
+ return {
24
+ session: record.session,
25
+ ...record.runtime ? { runtime: record.runtime } : {},
26
+ via: "process"
27
+ };
28
+ }
29
+ for (const [runtime, name] of SESSION_VARIABLES) {
30
+ const value = env[name];
31
+ if (value) return { session: value, runtime, via: "environment" };
32
+ }
33
+ const marker = MARKERS.find(([, name]) => env[name]);
34
+ return marker ? { runtime: marker[0] } : {};
35
+ }
36
+
37
+ export {
38
+ inferSession
39
+ };
40
+ //# sourceMappingURL=chunk-65BW7Y6O.js.map
@@ -1,15 +1,18 @@
1
+ import {
2
+ readLeaseSettings
3
+ } from "./chunk-FOLA4EUJ.js";
1
4
  import {
2
5
  ProjectError
3
- } from "./chunk-NRBQK6UX.js";
6
+ } from "./chunk-TYY5TYHF.js";
4
7
  import {
5
8
  projectStateDir
6
- } from "./chunk-OEH47H6A.js";
9
+ } from "./chunk-FQLCD4HU.js";
7
10
  import {
8
11
  lockProblem
9
12
  } from "./chunk-XWLMZKH2.js";
10
13
  import {
11
14
  VERSION
12
- } from "./chunk-L7LQEVTE.js";
15
+ } from "./chunk-VSTUKACC.js";
13
16
  import {
14
17
  ConfigError
15
18
  } from "./chunk-GJXOFDJT.js";
@@ -230,7 +233,7 @@ import { existsSync as existsSync3, readFileSync as readFileSync3 } from "fs";
230
233
  import { join as join4 } from "path";
231
234
 
232
235
  // src/project/host-spec.ts
233
- import { isAbsolute, normalize } from "path";
236
+ import { dirname as dirname3, isAbsolute, normalize } from "path";
234
237
 
235
238
  // src/project/host-plugins.ts
236
239
  var HOST_PORT = /^(\[[0-9a-f:]+\]|[a-z0-9.-]+):(\*|[0-9]{1,5})$/iu;
@@ -423,9 +426,17 @@ function names(path, where, value) {
423
426
  return fail2(path, error.message);
424
427
  }
425
428
  }
429
+ function declaresPtyHost(host) {
430
+ if (host === null || typeof host !== "object" || Array.isArray(host))
431
+ return host !== void 0;
432
+ const keys = Object.keys(host);
433
+ return keys.length === 0 || keys.some((key) => key !== "lease");
434
+ }
426
435
  function readHost(path, raw) {
427
436
  if (raw === void 0) return void 0;
428
- const root = table2(path, "[host]", raw);
437
+ const { lease, ...root } = table2(path, "[host]", raw);
438
+ if (lease !== void 0) readLeaseSettings(path, dirname3(path), { lease });
439
+ if (!declaresPtyHost(raw)) return void 0;
429
440
  only(path, "[host]", root, [
430
441
  "sessions",
431
442
  "answers",
@@ -581,6 +592,8 @@ export {
581
592
  packagedBinary,
582
593
  missingBinary,
583
594
  nativeBinary,
595
+ declaresPtyHost,
596
+ readHost,
584
597
  replaceFile,
585
598
  replaceLink,
586
599
  lockVersionProblem,
@@ -589,7 +602,6 @@ export {
589
602
  readLockFile,
590
603
  readLock,
591
604
  writeLock,
592
- readHost,
593
605
  HOST_MANIFEST,
594
606
  HOST_POLICY,
595
607
  hostOutputs,
@@ -598,4 +610,4 @@ export {
598
610
  hostEnvDoctor,
599
611
  hostDoctor
600
612
  };
601
- //# sourceMappingURL=chunk-IATFWEAX.js.map
613
+ //# sourceMappingURL=chunk-733WVP2R.js.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  hostApprovalDoctor
3
- } from "./chunk-ENOMRAFS.js";
3
+ } from "./chunk-A6DARDQ4.js";
4
4
  import {
5
5
  wakeableBy
6
6
  } from "./chunk-JQVSDPFL.js";
@@ -12,7 +12,7 @@ import {
12
12
  describeHookProblem,
13
13
  project,
14
14
  unmanagedHooks
15
- } from "./chunk-ZEERJLE5.js";
15
+ } from "./chunk-ZS5IDQFJ.js";
16
16
  import {
17
17
  ANTIGRAVITY_MCP_PLUGIN,
18
18
  agentNames,
@@ -23,7 +23,7 @@ import {
23
23
  skillNames,
24
24
  splitFrontmatter,
25
25
  uiClaudeDoctor
26
- } from "./chunk-2GOR4ZKO.js";
26
+ } from "./chunk-K2VU3B4W.js";
27
27
  import {
28
28
  pathPmcp,
29
29
  pmcpCommand
@@ -31,19 +31,19 @@ import {
31
31
  import {
32
32
  createFilesStore,
33
33
  inboxKey
34
- } from "./chunk-7I7O7ZNT.js";
34
+ } from "./chunk-3V37OZQH.js";
35
35
  import {
36
36
  hostDoctor,
37
37
  hostEnvDoctor,
38
38
  ptyBinaryDoctor,
39
39
  readLockFile
40
- } from "./chunk-IATFWEAX.js";
40
+ } from "./chunk-733WVP2R.js";
41
41
  import {
42
42
  ProjectError
43
- } from "./chunk-NRBQK6UX.js";
43
+ } from "./chunk-TYY5TYHF.js";
44
44
  import {
45
45
  projectStateDir
46
- } from "./chunk-OEH47H6A.js";
46
+ } from "./chunk-FQLCD4HU.js";
47
47
 
48
48
  // src/project/doctor/runner.ts
49
49
  import { spawnSync as spawnSync2 } from "child_process";
@@ -671,4 +671,4 @@ export {
671
671
  spawnRunner,
672
672
  doctor
673
673
  };
674
- //# sourceMappingURL=chunk-URCQLONP.js.map
674
+ //# sourceMappingURL=chunk-737BENAU.js.map
@@ -7,15 +7,25 @@ import {
7
7
  var gitSpec = {
8
8
  name: "git",
9
9
  describe: "Create and sync worktrees, deliver commits to the mainline, sync the main checkout",
10
- usage: "pmcp git worktree create <alias> | worktree list | worktree sync | deliver [<commit>...] | sync",
10
+ usage: "pmcp git worktree create <alias> | worktree list | worktree sync | deliver [<commit>...] | sync | affected --base <ref>",
11
11
  options: [
12
12
  jsonOption,
13
13
  configOption,
14
14
  {
15
15
  name: "base",
16
- describe: "Start a new worktree from this ref instead of the upstream",
16
+ describe: "Start a new worktree from this ref instead of the upstream; for affected, the ref the delta starts at",
17
17
  placeholder: "<ref>"
18
18
  },
19
+ {
20
+ name: "head",
21
+ describe: "For affected, the ref the delta ends at (default HEAD)",
22
+ placeholder: "<ref>"
23
+ },
24
+ {
25
+ name: "tests-only",
26
+ describe: "For affected, print changed members without their consumers",
27
+ boolean: true
28
+ },
19
29
  {
20
30
  name: "during-pause",
21
31
  describe: "Deliver although the sessions are paused",
@@ -32,4 +42,4 @@ var gitSpec = {
32
42
  export {
33
43
  gitSpec
34
44
  };
35
- //# sourceMappingURL=chunk-GFOQDLPL.js.map
45
+ //# sourceMappingURL=chunk-74O7KZUH.js.map
@@ -19,17 +19,18 @@ import {
19
19
  splitKeyed,
20
20
  versionMatches,
21
21
  withoutBlock
22
- } from "./chunk-2GOR4ZKO.js";
22
+ } from "./chunk-K2VU3B4W.js";
23
23
  import {
24
24
  lockVersionProblem,
25
25
  readLock,
26
26
  replaceFile
27
- } from "./chunk-IATFWEAX.js";
27
+ } from "./chunk-733WVP2R.js";
28
28
  import {
29
29
  ProjectError,
30
30
  RULES_DIR,
31
- trackedFiles
32
- } from "./chunk-NRBQK6UX.js";
31
+ trackedFiles,
32
+ trackedGitlinks
33
+ } from "./chunk-TYY5TYHF.js";
33
34
 
34
35
  // src/project/apply/census.ts
35
36
  import { existsSync, readFileSync, readdirSync } from "fs";
@@ -67,6 +68,8 @@ function deadGlobs(root, outputs) {
67
68
  for (let i = 1; i <= parts.length; i += 1)
68
69
  seen.add(parts.slice(0, i).join("/"));
69
70
  }
71
+ const gitlinks = trackedGitlinks(root);
72
+ const live = (prefix) => seen.has(prefix) || gitlinks.some((link) => prefix === link || prefix.startsWith(`${link}/`));
70
73
  const dead = [];
71
74
  for (const rule of rules) {
72
75
  let text;
@@ -83,8 +86,7 @@ function deadGlobs(root, outputs) {
83
86
  for (const glob of [paths ?? []].flat()) {
84
87
  if (typeof glob !== "string") continue;
85
88
  const prefix = glob.replace(/\*.*$/u, "").replace(/\/$/u, "");
86
- if (prefix !== "" && !seen.has(prefix))
87
- dead.push(`${rule.path}: ${glob}`);
89
+ if (prefix !== "" && !live(prefix)) dead.push(`${rule.path}: ${glob}`);
88
90
  }
89
91
  }
90
92
  return dead;
@@ -271,4 +273,4 @@ export {
271
273
  prepare,
272
274
  checkProject
273
275
  };
274
- //# sourceMappingURL=chunk-5ZUEPPFZ.js.map
276
+ //# sourceMappingURL=chunk-7ZOQELXR.js.map
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  HOST_MANIFEST,
3
3
  HOST_POLICY
4
- } from "./chunk-IATFWEAX.js";
4
+ } from "./chunk-733WVP2R.js";
5
5
  import {
6
6
  projectStateDir
7
- } from "./chunk-OEH47H6A.js";
7
+ } from "./chunk-FQLCD4HU.js";
8
8
 
9
9
  // src/project/host-approval.ts
10
10
  import { createHash } from "crypto";
@@ -99,4 +99,4 @@ export {
99
99
  hostApprovalDoctor,
100
100
  writeApproval
101
101
  };
102
- //# sourceMappingURL=chunk-ENOMRAFS.js.map
102
+ //# sourceMappingURL=chunk-A6DARDQ4.js.map
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  catalogFrom,
3
3
  rootsFrom
4
- } from "./chunk-PEMMV5YQ.js";
4
+ } from "./chunk-4O4ZOSBQ.js";
5
5
  import {
6
6
  configFrom
7
- } from "./chunk-RPCIROW7.js";
7
+ } from "./chunk-J3QUG6O5.js";
8
8
  import {
9
9
  indexSpec
10
10
  } from "./chunk-INT7QLEU.js";
@@ -12,7 +12,7 @@ import {
12
12
  ArgumentError,
13
13
  EXIT,
14
14
  one
15
- } from "./chunk-A4PKLESO.js";
15
+ } from "./chunk-WFY7ATSZ.js";
16
16
  import {
17
17
  loadEmbedder,
18
18
  openEntryVectors
@@ -165,4 +165,4 @@ export {
165
165
  indexPath,
166
166
  indexCommand
167
167
  };
168
- //# sourceMappingURL=chunk-PUIWESU3.js.map
168
+ //# sourceMappingURL=chunk-A7XCUR2C.js.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  ProjectError
3
- } from "./chunk-NRBQK6UX.js";
3
+ } from "./chunk-TYY5TYHF.js";
4
4
 
5
5
  // src/project/backup.ts
6
6
  import { createHash } from "crypto";
@@ -80,4 +80,4 @@ function backupFiles(root, paths) {
80
80
  export {
81
81
  backupFiles
82
82
  };
83
- //# sourceMappingURL=chunk-P4N7DBD5.js.map
83
+ //# sourceMappingURL=chunk-ANJMLKBR.js.map
@@ -0,0 +1,65 @@
1
+ import {
2
+ jsonOption,
3
+ nearestConfigOption
4
+ } from "./chunk-XNML2KIC.js";
5
+
6
+ // src/commands/specs/host.ts
7
+ var heavySpec = {
8
+ name: "heavy",
9
+ describe: "Run a heavy command within the host-wide budget, by lane, once the host has room",
10
+ usage: "pmcp heavy [--label <text>] [--profile default|gate|hook|<name>] [--lane gate|hook|interactive|bulk] [--weight <n>] [--now --reason <text>] -- <command...> | pmcp heavy submit [options] -- <command...> | pmcp heavy wait|result <ticket> | pmcp heavy queue [--json] | pmcp heavy promote <id> --now --reason <text> | pmcp heavy priority <id> <lane|+N|-N> --reason <text> | pmcp heavy cancel <id> [--force] | pmcp heavy status [--json] | pmcp heavy stats [--json]",
11
+ options: [
12
+ nearestConfigOption,
13
+ jsonOption,
14
+ {
15
+ name: "label",
16
+ describe: "What status and the log call this job (default: the command).",
17
+ placeholder: "<text>"
18
+ },
19
+ {
20
+ name: "profile",
21
+ describe: "Wait limits from [host.lease.profiles.<name>] (default: default).",
22
+ placeholder: "<name>"
23
+ },
24
+ {
25
+ name: "now",
26
+ describe: "Emergency: run at once, outside the lanes, the budget and the host check, still counted in the running weight; needs --reason.",
27
+ boolean: true
28
+ },
29
+ {
30
+ name: "reason",
31
+ describe: "Why: a --now run or a promote cannot wait, a priority change or cancel was needed; logged.",
32
+ placeholder: "<text>"
33
+ },
34
+ {
35
+ name: "timeout",
36
+ describe: "wait: give up after this many seconds and exit 75.",
37
+ placeholder: "<s>"
38
+ },
39
+ {
40
+ name: "force",
41
+ describe: "cancel: also stop a job that is already running.",
42
+ boolean: true
43
+ },
44
+ {
45
+ name: "ticket",
46
+ describe: "Internal: the submitted ticket this run belongs to.",
47
+ placeholder: "<id>"
48
+ },
49
+ {
50
+ name: "lane",
51
+ describe: "Queue in this lane: gate, hook, interactive or bulk; a short budget goes to them in that order (default: from the profile, [host.lease] commands, else interactive).",
52
+ placeholder: "<lane>"
53
+ },
54
+ {
55
+ name: "weight",
56
+ describe: "How much of the host budget the command takes (default: [host.lease] commands, else the lane's weight).",
57
+ placeholder: "<n>"
58
+ }
59
+ ]
60
+ };
61
+
62
+ export {
63
+ heavySpec
64
+ };
65
+ //# sourceMappingURL=chunk-BN4XAXMQ.js.map