@modootoday/pmcp 0.22.13 → 0.24.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 (146) 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/CONTRIBUTING.md +8 -0
  6. package/dist/{affected-ZWO2F5EM.js → affected-D6FRJPPI.js} +2 -2
  7. package/dist/{apply-OIKQ5SIY.js → apply-6JVJ7FDZ.js} +21 -20
  8. package/dist/{available-Z5MIDFPH.js → available-74CMIBPD.js} +9 -9
  9. package/dist/{broadcast-BF2QL3O7.js → broadcast-VKZY7WSD.js} +3 -3
  10. package/dist/{chunk-K2VU3B4W.js → chunk-25M2YWBH.js} +4 -4
  11. package/dist/chunk-2GZKA33O.js +173 -0
  12. package/dist/chunk-2HL2MFNI.js +159 -0
  13. package/dist/{chunk-4O4ZOSBQ.js → chunk-2MX5C7B2.js} +3 -3
  14. package/dist/chunk-2W2F5BWF.js +166 -0
  15. package/dist/chunk-43MXRTKH.js +134 -0
  16. package/dist/chunk-4VVQLWTS.js +93 -0
  17. package/dist/{chunk-ZKB7ZNKY.js → chunk-56VBB3H7.js} +4 -4
  18. package/dist/{chunk-JEL35P7S.js → chunk-5NDUWEMW.js} +2 -2
  19. package/dist/{chunk-5PNS6V5C.js → chunk-5QBOGEVE.js} +2 -2
  20. package/dist/{chunk-NNGGNXF2.js → chunk-62BC3K4Z.js} +2 -2
  21. package/dist/{chunk-7ZOQELXR.js → chunk-644GNYMB.js} +3 -3
  22. package/dist/{chunk-GNVME5AD.js → chunk-6UGHVU5B.js} +2 -2
  23. package/dist/{chunk-733WVP2R.js → chunk-7A6QIROT.js} +3 -3
  24. package/dist/{chunk-J3QUG6O5.js → chunk-7CHUMF3E.js} +2 -2
  25. package/dist/{chunk-INT7QLEU.js → chunk-7DJQASH3.js} +25 -6
  26. package/dist/{chunk-VNZTULFD.js → chunk-D2MHB5EF.js} +3 -3
  27. package/dist/{chunk-KEHB4FZP.js → chunk-E2E4HIEN.js} +49 -3
  28. package/dist/{chunk-G4ATQPQI.js → chunk-F3R5HEUB.js} +5 -1
  29. package/dist/{chunk-JW5NMQTU.js → chunk-HES44LTA.js} +4 -4
  30. package/dist/{chunk-RHJEGLYM.js → chunk-HF5D6B2U.js} +45 -6
  31. package/dist/{chunk-5OFQVW2K.js → chunk-HYXOJYVR.js} +2 -2
  32. package/dist/{chunk-UED3RH53.js → chunk-ISGHJHVH.js} +2 -2
  33. package/dist/chunk-JANBBPKP.js +50 -0
  34. package/dist/{chunk-XNML2KIC.js → chunk-JPYQDOEW.js} +3 -3
  35. package/dist/{chunk-ZS5IDQFJ.js → chunk-K6ATERWS.js} +4 -4
  36. package/dist/{chunk-737BENAU.js → chunk-LB2WXBPA.js} +5 -5
  37. package/dist/{chunk-5IZFEVPW.js → chunk-LI3BII4F.js} +2 -2
  38. package/dist/chunk-LTMHE5VL.js +7 -0
  39. package/dist/{chunk-XSWF7APE.js → chunk-OGCJO6HQ.js} +9 -8
  40. package/dist/{chunk-A7XCUR2C.js → chunk-Q6V274OB.js} +8 -6
  41. package/dist/{chunk-ISGBOJT7.js → chunk-QR4GXET7.js} +3 -3
  42. package/dist/chunk-QR6A3TYP.js +315 -0
  43. package/dist/{chunk-FOLA4EUJ.js → chunk-QY2P54Z2.js} +10 -2
  44. package/dist/{chunk-EIDIVIAD.js → chunk-QYLOIM4U.js} +9 -2
  45. package/dist/{chunk-P5D6RKMT.js → chunk-RZYZILU4.js} +5 -3
  46. package/dist/{chunk-A6DARDQ4.js → chunk-S6G7YWNE.js} +2 -2
  47. package/dist/{chunk-24L4MO7H.js → chunk-TIH7JFPJ.js} +2 -2
  48. package/dist/{chunk-5KWDQFVY.js → chunk-UFWW4H6V.js} +7 -8
  49. package/dist/chunk-UVTGY2R3.js +78 -0
  50. package/dist/{chunk-LLT5FQBE.js → chunk-VBVNOLRR.js} +7 -3
  51. package/dist/{chunk-ABTJQ4QV.js → chunk-WBPVNCQO.js} +20 -5
  52. package/dist/{chunk-T4GVN7XO.js → chunk-WNP2BXR7.js} +5 -5
  53. package/dist/{chunk-YGOWIJPE.js → chunk-WZYGM3FR.js} +6 -2
  54. package/dist/chunk-Y6NFETNG.js +232 -0
  55. package/dist/{cli-IHVNE3WL.js → cli-GFDT4YXM.js} +14 -15
  56. package/dist/{cli-FSSYFCV3.js → cli-WWNTQJPV.js} +18 -12
  57. package/dist/cli.js +307 -47
  58. package/dist/{completion-ZTTJVV4C.js → completion-I63UIDZ7.js} +25 -23
  59. package/dist/{diagnostics-XC5L6Z3E.js → diagnostics-RUJZBPNZ.js} +6 -6
  60. package/dist/{doctor-FGDSUBR3.js → doctor-CLUFTEFO.js} +21 -21
  61. package/dist/{entry-NNB2CQLZ.js → entry-QSJCFI5Z.js} +10 -10
  62. package/dist/{exec-mcp-ZU3Z3XT6.js → exec-mcp-AFPUJTN7.js} +9 -9
  63. package/dist/{harness-B7ANLH5M.js → harness-PPM32AI5.js} +26 -44
  64. package/dist/harness-launch-gate.js +4 -4
  65. package/dist/harness-worker.js +6 -6
  66. package/dist/{heavy-IIZBO4YM.js → heavy-TEHP5PHT.js} +112 -27
  67. package/dist/hooks-L4PXVEGR.js +24 -0
  68. package/dist/{host-5P4D7GSE.js → host-LBTL47X7.js} +18 -15
  69. package/dist/{host-XXWQ23LD.js → host-MU2GRH57.js} +7 -7
  70. package/dist/{host-run-AEWHFVQL.js → host-run-IRSAQA5Z.js} +6 -6
  71. package/dist/http.js +1 -1
  72. package/dist/{import-mcp-BQM5DKYH.js → import-mcp-QVPW6A2Q.js} +12 -12
  73. package/dist/index.d.ts +1 -1
  74. package/dist/index.js +11 -10
  75. package/dist/init-46STH6FP.js +14 -0
  76. package/dist/{install-OFVLR7TI.js → install-5JH4DSFF.js} +10 -10
  77. package/dist/{invoke-3BQ5NG3P.js → invoke-I6C6UT6Q.js} +8 -8
  78. package/dist/{list-EU4MJOXA.js → list-HXG6EB7V.js} +12 -12
  79. package/dist/{list-WWYCGD3X.js → list-LV5EKCF6.js} +11 -7
  80. package/dist/{logout-6DFDYJUI.js → logout-SSUXJ6SE.js} +9 -9
  81. package/dist/{logs-BRF6DBKG.js → logs-2JEMSNSG.js} +7 -7
  82. package/dist/{mailbox-QYA2LQSE.js → mailbox-5FVFMQ2J.js} +6 -6
  83. package/dist/{mailbox-AQCTXO3H.js → mailbox-ZHZWZMAY.js} +14 -21
  84. package/dist/{mainline-O5AEHG3J.js → mainline-4XP6ZORU.js} +9 -8
  85. package/dist/{marketplace-TI5HFAHB.js → marketplace-2X3OOEPW.js} +10 -9
  86. package/dist/{mcp-HR5JFUW7.js → mcp-L6X45IOS.js} +4 -4
  87. package/dist/{mcp-4R53HSGY.js → mcp-PBTQ5SJW.js} +2 -2
  88. package/dist/{models-63NQBSV3.js → models-XSF45MCD.js} +9 -5
  89. package/dist/{pause-UF7FQDJX.js → pause-CMZOIHTJ.js} +3 -3
  90. package/dist/{preview-WSESS2UN.js → preview-465CQJBQ.js} +4 -4
  91. package/dist/{project-JXXL24WN.js → project-4JPKU2D7.js} +14 -12
  92. package/dist/{reindex-3GPKAFBW.js → reindex-D62HQAN2.js} +7 -7
  93. package/dist/{report-JUSKQPAC.js → report-UB7MXAUB.js} +10 -10
  94. package/dist/{resume-3WAROOQ3.js → resume-PAKIT4TT.js} +3 -3
  95. package/dist/run-OW7436TY.js +23 -0
  96. package/dist/{run-XRWU4L73.js → run-PMASXIGY.js} +8 -8
  97. package/dist/{serve-OEX5V5CD.js → serve-P3HJN6AF.js} +13 -13
  98. package/dist/{session-YZVX4NGN.js → session-3YVVO2GR.js} +6 -6
  99. package/dist/{setup-SWNAC2C7.js → setup-6AQUOWOH.js} +3 -2
  100. package/dist/{smoke-5BGJXAHX.js → smoke-6X6IXQIQ.js} +4 -4
  101. package/dist/{start-login-MG26NDE3.js → start-login-P7YDRTA3.js} +10 -10
  102. package/dist/{status-GKCIVAAR.js → status-4PYPTYUB.js} +4 -4
  103. package/dist/{status-LH7Q255G.js → status-DAXQKT35.js} +28 -27
  104. package/dist/{status-APADL7O2.js → status-DLGZDYEP.js} +18 -11
  105. package/dist/stdio.js +2 -2
  106. package/dist/{sweep-VTVPDAPY.js → sweep-VURZU6DI.js} +3 -3
  107. package/dist/{test-TK2J3IB7.js → test-H243OTSK.js} +12 -12
  108. package/dist/{tui-YTPHHKCW.js → tui-P6XTSTQO.js} +45 -19
  109. package/dist/{unbroadcast-CH7BAQ2G.js → unbroadcast-7AMLURCG.js} +3 -3
  110. package/dist/{validate-5QVZBE6W.js → validate-YXR7FJJX.js} +11 -9
  111. package/dist/{wait-4HYJJAWO.js → wait-HEODT7KV.js} +3 -3
  112. package/dist/{worker-RBXYAMR4.js → worker-5YJLIGTU.js} +8 -8
  113. package/dist/{worktree-create-FEZNQUQ6.js → worktree-create-FTSLMZWS.js} +2 -2
  114. package/docs/commands.md +65 -29
  115. package/docs/hooks.md +3 -3
  116. package/docs/project-configuration.md +54 -38
  117. package/docs/terminal-workspace.md +2 -0
  118. package/docs/upgrading.md +67 -0
  119. package/gemini-extension.json +2 -2
  120. package/mcp.json +1 -1
  121. package/package.json +5 -5
  122. package/plugin.json +1 -1
  123. package/plugins/pmcp/.claude-plugin/plugin.json +1 -1
  124. package/plugins/pmcp/.mcp.json +1 -1
  125. package/plugins/pmcp/gemini-extension.json +2 -2
  126. package/plugins/pmcp/mcp.json +1 -1
  127. package/plugins/pmcp/plugin.json +1 -1
  128. package/plugins/pmcp/skills/headless-agents-ci-scaffold/SKILL.md +1 -1
  129. package/plugins/pmcp/skills/pmcp-project-init/SKILL.md +1 -1
  130. package/plugins/pmcp/skills/pmcp-sessions-and-git/SKILL.md +3 -2
  131. package/skills/headless-agents-ci-scaffold/SKILL.md +1 -1
  132. package/skills/pmcp-project-init/SKILL.md +1 -1
  133. package/skills/pmcp-sessions-and-git/SKILL.md +3 -2
  134. package/dist/chunk-2P4Z2NUX.js +0 -28
  135. package/dist/chunk-3Y3HDMHA.js +0 -108
  136. package/dist/chunk-74O7KZUH.js +0 -45
  137. package/dist/chunk-BN4XAXMQ.js +0 -65
  138. package/dist/chunk-E3DQB5LS.js +0 -48
  139. package/dist/chunk-JWRZDYB5.js +0 -59
  140. package/dist/chunk-LMUBBIE2.js +0 -83
  141. package/dist/chunk-QBSJL3SP.js +0 -162
  142. package/dist/chunk-VSTUKACC.js +0 -7
  143. package/dist/chunk-WFY7ATSZ.js +0 -116
  144. package/dist/hooks-IEJTW7BV.js +0 -24
  145. package/dist/init-L6GUO3PW.js +0 -14
  146. package/dist/run-VUUQS4WY.js +0 -19
@@ -1,17 +1,19 @@
1
1
  import {
2
2
  configOption,
3
3
  jsonOption
4
- } from "./chunk-XNML2KIC.js";
4
+ } from "./chunk-JPYQDOEW.js";
5
5
 
6
6
  // src/commands/specs/inspection.ts
7
7
  var statusSpec = {
8
8
  name: "status",
9
+ examples: ["pmcp status", "pmcp status --json | jq .data.projection"],
9
10
  describe: "Show enabled features, projection drift and live workspace state",
10
11
  usage: "pmcp status [--config <file>] [--json]",
11
12
  options: [configOption, jsonOption]
12
13
  };
13
14
  var initSpec = {
14
15
  name: "init",
16
+ examples: ["pmcp init", "pmcp init --preset multi-session"],
15
17
  describe: "Create a starting pmcp.toml using this checkout's git detection",
16
18
  usage: "pmcp init [--preset solo|multi-session] [--force]",
17
19
  options: [
@@ -29,8 +31,52 @@ var initSpec = {
29
31
  };
30
32
  var hooksSpec = {
31
33
  name: "hooks",
34
+ examples: [
35
+ "pmcp hooks list --runtime claude",
36
+ 'pmcp hooks test --runtime codex --event before_tool --command "git add -A"'
37
+ ],
38
+ subcommands: [
39
+ {
40
+ name: "list",
41
+ describe: "List compiled policies per runtime and event",
42
+ usage: "pmcp hooks list [--runtime claude|codex] [--config <file>] [--json]",
43
+ options: ["runtime", "config", "json"],
44
+ examples: ["pmcp hooks list --runtime claude --json"]
45
+ },
46
+ {
47
+ name: "test",
48
+ describe: "Simulate one native hook call, or run a fixtures file",
49
+ usage: "pmcp hooks test --runtime claude|codex --event <event> [--command <text> | --path <path> | --tool <name>] [--session-state <file>] [--json] | pmcp hooks test --fixtures <file> [--json]",
50
+ options: [
51
+ "runtime",
52
+ "event",
53
+ "command",
54
+ "path",
55
+ "tool",
56
+ "session-state",
57
+ "fixtures",
58
+ "config",
59
+ "json"
60
+ ],
61
+ examples: [
62
+ 'pmcp hooks test --runtime claude --event before_tool --command "git add -A"',
63
+ "pmcp hooks test --fixtures hooks.fixtures.json"
64
+ ]
65
+ },
66
+ {
67
+ name: "report",
68
+ describe: "Summarise the guard lines in the project log",
69
+ usage: "pmcp hooks report [--since <when>] [--switch-check <guard>] [--json]",
70
+ options: ["since", "switch-check", "config", "json"],
71
+ examples: [
72
+ "pmcp hooks report --since 2d",
73
+ "pmcp hooks report --switch-check shell.heredoc"
74
+ ]
75
+ }
76
+ ],
77
+ defaultSubcommand: "list",
32
78
  describe: "List compiled policies or simulate a native hook without a runtime",
33
- usage: "pmcp hooks list | test --runtime claude|codex --event <event> [--command <text> | --path <path> | --tool <name>] [--session-state <file>] [--json] | test --fixtures <file> [--json] | report [--since <when>] [--switch-check <guard>] [--json]",
79
+ usage: "pmcp hooks [<subcommand>] [options]",
34
80
  options: [
35
81
  configOption,
36
82
  jsonOption,
@@ -87,4 +133,4 @@ export {
87
133
  initSpec,
88
134
  hooksSpec
89
135
  };
90
- //# sourceMappingURL=chunk-KEHB4FZP.js.map
136
+ //# sourceMappingURL=chunk-E2E4HIEN.js.map
@@ -1,6 +1,10 @@
1
1
  // src/commands/specs/wait.ts
2
2
  var waitSpec = {
3
3
  name: "wait",
4
+ examples: [
5
+ "pmcp wait --pid 4242",
6
+ "pmcp wait --until gone:/tmp/build.lock --until load-below:6 --timeout 900"
7
+ ],
4
8
  describe: "Sleep until a process exits or a condition holds, never matching itself",
5
9
  usage: "pmcp wait --pid <pid>... | --until <exists:<path>|gone:<path>|load-below:<n>|no-process:<text>>... [--timeout <s>] [--interval <s>]",
6
10
  options: [
@@ -32,4 +36,4 @@ var waitSpec = {
32
36
  export {
33
37
  waitSpec
34
38
  };
35
- //# sourceMappingURL=chunk-G4ATQPQI.js.map
39
+ //# sourceMappingURL=chunk-F3R5HEUB.js.map
@@ -4,8 +4,9 @@ import {
4
4
  } from "./chunk-3V37OZQH.js";
5
5
  import {
6
6
  ArgumentError,
7
+ noConfig,
7
8
  one
8
- } from "./chunk-WFY7ATSZ.js";
9
+ } from "./chunk-Y6NFETNG.js";
9
10
  import {
10
11
  findConfig,
11
12
  readConfig
@@ -14,8 +15,7 @@ import {
14
15
  // src/sessions/cli/verbs.ts
15
16
  function storeFrom(context) {
16
17
  const path = one(context.args, "config") ?? findConfig(context.cwd);
17
- if (!path)
18
- throw new ArgumentError("no pmcp.toml here or above; pass --config");
18
+ if (!path) throw noConfig();
19
19
  const config = readConfig(path);
20
20
  const sessions = config.raw["sessions"] ?? {};
21
21
  const leases = Object.keys(sessions["leases"] ?? {});
@@ -74,4 +74,4 @@ export {
74
74
  storeFrom,
75
75
  change
76
76
  };
77
- //# sourceMappingURL=chunk-JW5NMQTU.js.map
77
+ //# sourceMappingURL=chunk-HES44LTA.js.map
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  CATALOG_OPTIONS
3
- } from "./chunk-JEL35P7S.js";
3
+ } from "./chunk-5NDUWEMW.js";
4
4
  import {
5
5
  nearestConfigOption
6
- } from "./chunk-XNML2KIC.js";
6
+ } from "./chunk-JPYQDOEW.js";
7
7
  import {
8
8
  TOOLS
9
9
  } from "./chunk-V4NPDK6X.js";
@@ -11,8 +11,42 @@ import {
11
11
  // src/commands/specs/project.ts
12
12
  var projectSpec = {
13
13
  name: "project",
14
+ examples: ["pmcp project", "pmcp project --check --smoke"],
15
+ subcommands: [
16
+ {
17
+ name: "add",
18
+ describe: "Add a skill or agent under .agents/ and project",
19
+ usage: "pmcp project add <skill|agent>",
20
+ options: [],
21
+ examples: ["pmcp project add review-checklist"]
22
+ },
23
+ {
24
+ name: "remove",
25
+ describe: "Remove an asset and project",
26
+ usage: "pmcp project remove <name>",
27
+ options: [],
28
+ examples: ["pmcp project remove review-checklist"]
29
+ },
30
+ {
31
+ name: "import-mcp",
32
+ describe: "Import MCP servers from a native config; --write applies",
33
+ usage: "pmcp project import-mcp --source <tool>:<file> [--name <alias>] [--write]",
34
+ options: ["source", "name", "write", "config"],
35
+ examples: [
36
+ "pmcp project import-mcp --source codex:~/.codex/config.toml",
37
+ "pmcp project import-mcp --source claude:.mcp.json --name github --write"
38
+ ]
39
+ },
40
+ {
41
+ name: "exec-mcp",
42
+ describe: "Start a declared MCP server; projected native entries run this",
43
+ usage: "pmcp project exec-mcp <alias>",
44
+ options: ["config"],
45
+ examples: ["pmcp project exec-mcp remote"]
46
+ }
47
+ ],
14
48
  describe: "Write each agent tool's native files from .agents/ and pmcp.toml",
15
- usage: "pmcp project [--check] | pmcp project add <skill|agent> | pmcp project remove <name> | pmcp project import-mcp --source <tool>:<file> [--name <alias>] [--write]",
49
+ usage: "pmcp project [--check [--smoke]] | pmcp project <subcommand> [options]",
16
50
  options: [
17
51
  ...CATALOG_OPTIONS,
18
52
  {
@@ -34,7 +68,7 @@ var projectSpec = {
34
68
  },
35
69
  {
36
70
  name: "check",
37
- describe: "Write nothing; exit 2 when an output drifted, went stale or is undeclared.",
71
+ describe: "Write nothing; exit 4 when an output drifted, went stale or is undeclared.",
38
72
  boolean: true
39
73
  },
40
74
  {
@@ -46,6 +80,7 @@ var projectSpec = {
46
80
  };
47
81
  var doctorSpec = {
48
82
  name: "doctor",
83
+ examples: ["pmcp doctor", "pmcp doctor --tool claude --json"],
49
84
  describe: "Ask each agent tool, through its own listing commands, whether it loads this project's assets",
50
85
  usage: "pmcp doctor [--tool <name>] [--json] [--memory]",
51
86
  options: [
@@ -56,7 +91,11 @@ var doctorSpec = {
56
91
  repeat: true,
57
92
  placeholder: "<name>"
58
93
  },
59
- { name: "json", describe: "Emit JSON rather than a table.", boolean: true },
94
+ {
95
+ name: "json",
96
+ describe: "Print the result as one JSON envelope on stdout.",
97
+ boolean: true
98
+ },
60
99
  {
61
100
  name: "memory",
62
101
  describe: "Report native memory configuration metadata only; do not read memory bodies or check MCP connections.",
@@ -69,4 +108,4 @@ export {
69
108
  projectSpec,
70
109
  doctorSpec
71
110
  };
72
- //# sourceMappingURL=chunk-RHJEGLYM.js.map
111
+ //# sourceMappingURL=chunk-HF5D6B2U.js.map
@@ -7,7 +7,7 @@ import {
7
7
  import {
8
8
  ArgumentError,
9
9
  one
10
- } from "./chunk-WFY7ATSZ.js";
10
+ } from "./chunk-Y6NFETNG.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-5OFQVW2K.js.map
284
+ //# sourceMappingURL=chunk-HYXOJYVR.js.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  createSkillServer
3
- } from "./chunk-5PNS6V5C.js";
3
+ } from "./chunk-5QBOGEVE.js";
4
4
  import {
5
5
  attachMailbox
6
6
  } from "./chunk-JZKAJUVT.js";
@@ -84,4 +84,4 @@ export {
84
84
  serveWithMailbox,
85
85
  main
86
86
  };
87
- //# sourceMappingURL=chunk-UED3RH53.js.map
87
+ //# sourceMappingURL=chunk-ISGHJHVH.js.map
@@ -0,0 +1,50 @@
1
+ // src/commands/specs/marketplace.ts
2
+ var marketplaceSpec = {
3
+ name: "marketplace",
4
+ examples: [
5
+ "pmcp marketplace list",
6
+ "pmcp marketplace export typescript-5 --runtime agy --output ./typescript-plugin"
7
+ ],
8
+ subcommands: [
9
+ {
10
+ name: "list",
11
+ describe: "The bundled free plugins",
12
+ usage: "pmcp marketplace list [--json]",
13
+ options: ["json"],
14
+ examples: ["pmcp marketplace list --json"]
15
+ },
16
+ {
17
+ name: "export",
18
+ describe: "Write one plugin in a runtime's native format",
19
+ usage: "pmcp marketplace export <plugin> --runtime <runtime> --output <directory> [--json]",
20
+ options: ["runtime", "output", "json"],
21
+ examples: [
22
+ "pmcp marketplace export typescript-5 --runtime claude --output ./ts-plugin"
23
+ ]
24
+ }
25
+ ],
26
+ describe: "List free public plugins or export a selected native plugin",
27
+ usage: "pmcp marketplace <subcommand> [options]",
28
+ options: [
29
+ {
30
+ name: "runtime",
31
+ describe: "Native plugin format: claude, codex, gemini, grok or agy.",
32
+ placeholder: "<runtime>"
33
+ },
34
+ {
35
+ name: "output",
36
+ describe: "New directory for the selected plugin; existing paths are preserved.",
37
+ placeholder: "<directory>"
38
+ },
39
+ {
40
+ name: "json",
41
+ describe: "Print the result as one JSON envelope on stdout.",
42
+ boolean: true
43
+ }
44
+ ]
45
+ };
46
+
47
+ export {
48
+ marketplaceSpec
49
+ };
50
+ //# sourceMappingURL=chunk-JANBBPKP.js.map
@@ -1,7 +1,7 @@
1
1
  // src/commands/options/inspection.ts
2
2
  var configOption = {
3
3
  name: "config",
4
- describe: "Project pmcp.toml",
4
+ describe: "A pmcp.toml to read instead of the nearest one.",
5
5
  placeholder: "<file>"
6
6
  };
7
7
  var nearestConfigOption = {
@@ -11,7 +11,7 @@ var nearestConfigOption = {
11
11
  };
12
12
  var jsonOption = {
13
13
  name: "json",
14
- describe: "Print the documented versioned JSON schema.",
14
+ describe: "Print the result as one JSON envelope on stdout.",
15
15
  boolean: true
16
16
  };
17
17
 
@@ -20,4 +20,4 @@ export {
20
20
  nearestConfigOption,
21
21
  jsonOption
22
22
  };
23
- //# sourceMappingURL=chunk-XNML2KIC.js.map
23
+ //# sourceMappingURL=chunk-JPYQDOEW.js.map
@@ -7,7 +7,7 @@ import {
7
7
  prepare,
8
8
  present,
9
9
  writeNative
10
- } from "./chunk-7ZOQELXR.js";
10
+ } from "./chunk-644GNYMB.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-K2VU3B4W.js";
24
+ } from "./chunk-25M2YWBH.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-733WVP2R.js";
33
+ } from "./chunk-7A6QIROT.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-ZS5IDQFJ.js.map
403
+ //# sourceMappingURL=chunk-K6ATERWS.js.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  hostApprovalDoctor
3
- } from "./chunk-A6DARDQ4.js";
3
+ } from "./chunk-S6G7YWNE.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-ZS5IDQFJ.js";
15
+ } from "./chunk-K6ATERWS.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-K2VU3B4W.js";
26
+ } from "./chunk-25M2YWBH.js";
27
27
  import {
28
28
  pathPmcp,
29
29
  pmcpCommand
@@ -37,7 +37,7 @@ import {
37
37
  hostEnvDoctor,
38
38
  ptyBinaryDoctor,
39
39
  readLockFile
40
- } from "./chunk-733WVP2R.js";
40
+ } from "./chunk-7A6QIROT.js";
41
41
  import {
42
42
  ProjectError
43
43
  } from "./chunk-TYY5TYHF.js";
@@ -671,4 +671,4 @@ export {
671
671
  spawnRunner,
672
672
  doctor
673
673
  };
674
- //# sourceMappingURL=chunk-737BENAU.js.map
674
+ //# sourceMappingURL=chunk-LB2WXBPA.js.map
@@ -6,7 +6,7 @@ import {
6
6
  } from "./chunk-34DECPVC.js";
7
7
  import {
8
8
  ptyBinary
9
- } from "./chunk-733WVP2R.js";
9
+ } from "./chunk-7A6QIROT.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-5IZFEVPW.js.map
39
+ //# sourceMappingURL=chunk-LI3BII4F.js.map
@@ -0,0 +1,7 @@
1
+ // src/commands/version.ts
2
+ var VERSION = "0.24.0";
3
+
4
+ export {
5
+ VERSION
6
+ };
7
+ //# sourceMappingURL=chunk-LTMHE5VL.js.map
@@ -1,13 +1,15 @@
1
1
  import {
2
2
  configFrom
3
- } from "./chunk-J3QUG6O5.js";
3
+ } from "./chunk-7CHUMF3E.js";
4
4
  import {
5
5
  readFixtures,
6
6
  smoke
7
7
  } from "./chunk-ARXCYFFZ.js";
8
8
  import {
9
- ArgumentError
10
- } from "./chunk-WFY7ATSZ.js";
9
+ ArgumentError,
10
+ EXIT,
11
+ noConfig
12
+ } from "./chunk-Y6NFETNG.js";
11
13
 
12
14
  // src/commands/hooks/smoke.ts
13
15
  import { readFileSync } from "fs";
@@ -36,13 +38,12 @@ function printSmoke(ui, result) {
36
38
  }
37
39
  async function run(context, file) {
38
40
  const config = configFrom(context);
39
- if (!config)
40
- throw new ArgumentError("no pmcp.toml here or above; pass --config");
41
+ if (!config) throw noConfig();
41
42
  const result = runSmoke(config.dir, file, context.env);
42
43
  if (context.args.flags.has("json"))
43
44
  context.ui.data(JSON.stringify({ version: 1, ...result }) + "\n");
44
- else printSmoke(context.ui, result);
45
- return result.findings.length === 0 ? 0 : 1;
45
+ else printSmoke(context.ui.results, result);
46
+ return result.findings.length === 0 ? EXIT.ok : EXIT.differences;
46
47
  }
47
48
 
48
49
  export {
@@ -50,4 +51,4 @@ export {
50
51
  printSmoke,
51
52
  run
52
53
  };
53
- //# sourceMappingURL=chunk-XSWF7APE.js.map
54
+ //# sourceMappingURL=chunk-OGCJO6HQ.js.map
@@ -1,18 +1,18 @@
1
1
  import {
2
2
  catalogFrom,
3
3
  rootsFrom
4
- } from "./chunk-4O4ZOSBQ.js";
4
+ } from "./chunk-2MX5C7B2.js";
5
5
  import {
6
6
  configFrom
7
- } from "./chunk-J3QUG6O5.js";
7
+ } from "./chunk-7CHUMF3E.js";
8
8
  import {
9
9
  indexSpec
10
- } from "./chunk-INT7QLEU.js";
10
+ } from "./chunk-7DJQASH3.js";
11
11
  import {
12
12
  ArgumentError,
13
13
  EXIT,
14
14
  one
15
- } from "./chunk-WFY7ATSZ.js";
15
+ } from "./chunk-Y6NFETNG.js";
16
16
  import {
17
17
  loadEmbedder,
18
18
  openEntryVectors
@@ -121,9 +121,11 @@ var indexCommand = {
121
121
  `${todo.length} of ${entries.length} to encode`,
122
122
  embedder.modelId
123
123
  );
124
- for (const entry of todo) {
124
+ const progress = context.ui.progress(todo.length, "encoded");
125
+ for (const [done, entry] of todo.entries()) {
125
126
  const vector = embedder.embedPassage ? await embedder.embedPassage(entry.description) : await embedder.embed(entry.description);
126
127
  store.write(key, entry.name, entry.description, vector);
128
+ progress(done + 1);
127
129
  }
128
130
  const indexed = store.read(key).size;
129
131
  if (context.args.flags.has("json")) {
@@ -165,4 +167,4 @@ export {
165
167
  indexPath,
166
168
  indexCommand
167
169
  };
168
- //# sourceMappingURL=chunk-A7XCUR2C.js.map
170
+ //# sourceMappingURL=chunk-Q6V274OB.js.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  assertNativeHost
3
- } from "./chunk-5IZFEVPW.js";
3
+ } from "./chunk-LI3BII4F.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-GNVME5AD.js";
36
+ } from "./chunk-6UGHVU5B.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-ISGBOJT7.js.map
1984
+ //# sourceMappingURL=chunk-QR4GXET7.js.map