@modootoday/pmcp 0.22.13 → 0.23.1

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 (144) 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 → affected-D6FRJPPI.js} +2 -2
  6. package/dist/{apply-OIKQ5SIY.js → apply-3PWUO4J5.js} +20 -19
  7. package/dist/{available-Z5MIDFPH.js → available-74CMIBPD.js} +9 -9
  8. package/dist/{broadcast-BF2QL3O7.js → broadcast-VKZY7WSD.js} +3 -3
  9. package/dist/chunk-2GZKA33O.js +173 -0
  10. package/dist/chunk-2HL2MFNI.js +159 -0
  11. package/dist/{chunk-5PNS6V5C.js → chunk-2K4WYN4C.js} +2 -2
  12. package/dist/{chunk-4O4ZOSBQ.js → chunk-2MX5C7B2.js} +3 -3
  13. package/dist/chunk-43MXRTKH.js +134 -0
  14. package/dist/chunk-4VVQLWTS.js +93 -0
  15. package/dist/{chunk-24L4MO7H.js → chunk-5HNLHI5F.js} +2 -2
  16. package/dist/{chunk-JEL35P7S.js → chunk-5NDUWEMW.js} +2 -2
  17. package/dist/{chunk-737BENAU.js → chunk-6NRLBSEG.js} +5 -5
  18. package/dist/chunk-6QJ3F445.js +166 -0
  19. package/dist/{chunk-7ZOQELXR.js → chunk-72V6U7CZ.js} +3 -3
  20. package/dist/{chunk-J3QUG6O5.js → chunk-7CHUMF3E.js} +2 -2
  21. package/dist/{chunk-INT7QLEU.js → chunk-7DJQASH3.js} +25 -6
  22. package/dist/chunk-7IRXUPM2.js +7 -0
  23. package/dist/{chunk-UED3RH53.js → chunk-DNSHJIS4.js} +2 -2
  24. package/dist/{chunk-ISGBOJT7.js → chunk-DZTSCJOZ.js} +3 -3
  25. package/dist/{chunk-KEHB4FZP.js → chunk-E2E4HIEN.js} +49 -3
  26. package/dist/{chunk-VNZTULFD.js → chunk-EQF64INS.js} +3 -3
  27. package/dist/{chunk-G4ATQPQI.js → chunk-F3R5HEUB.js} +5 -1
  28. package/dist/{chunk-JW5NMQTU.js → chunk-HES44LTA.js} +4 -4
  29. package/dist/{chunk-RHJEGLYM.js → chunk-HF5D6B2U.js} +45 -6
  30. package/dist/{chunk-5OFQVW2K.js → chunk-HYXOJYVR.js} +2 -2
  31. package/dist/chunk-JANBBPKP.js +50 -0
  32. package/dist/{chunk-A6DARDQ4.js → chunk-JJFPSFDU.js} +2 -2
  33. package/dist/{chunk-XNML2KIC.js → chunk-JPYQDOEW.js} +3 -3
  34. package/dist/{chunk-733WVP2R.js → chunk-KYGGQPAH.js} +2 -2
  35. package/dist/{chunk-NNGGNXF2.js → chunk-LGRFYN5T.js} +2 -2
  36. package/dist/{chunk-GNVME5AD.js → chunk-LO54UUDE.js} +2 -2
  37. package/dist/{chunk-XSWF7APE.js → chunk-OGCJO6HQ.js} +9 -8
  38. package/dist/{chunk-T4GVN7XO.js → chunk-P25V6NEX.js} +5 -5
  39. package/dist/{chunk-A7XCUR2C.js → chunk-Q6V274OB.js} +8 -6
  40. package/dist/chunk-QR6A3TYP.js +315 -0
  41. package/dist/{chunk-EIDIVIAD.js → chunk-QYLOIM4U.js} +9 -2
  42. package/dist/{chunk-ZKB7ZNKY.js → chunk-RRKA3GF5.js} +4 -4
  43. package/dist/{chunk-P5D6RKMT.js → chunk-RZYZILU4.js} +5 -3
  44. package/dist/{chunk-5IZFEVPW.js → chunk-SDQYZDHS.js} +2 -2
  45. package/dist/chunk-UVTGY2R3.js +78 -0
  46. package/dist/{chunk-LLT5FQBE.js → chunk-VBVNOLRR.js} +7 -3
  47. package/dist/{chunk-ABTJQ4QV.js → chunk-WBPVNCQO.js} +20 -5
  48. package/dist/{chunk-K2VU3B4W.js → chunk-WQBKQTNT.js} +3 -3
  49. package/dist/{chunk-YGOWIJPE.js → chunk-WZYGM3FR.js} +6 -2
  50. package/dist/chunk-Y6NFETNG.js +232 -0
  51. package/dist/{chunk-5KWDQFVY.js → chunk-YRNFMPZB.js} +7 -8
  52. package/dist/{chunk-ZS5IDQFJ.js → chunk-ZXMECZBI.js} +4 -4
  53. package/dist/{cli-IHVNE3WL.js → cli-GFDT4YXM.js} +14 -15
  54. package/dist/{cli-FSSYFCV3.js → cli-YWV7FLYO.js} +18 -12
  55. package/dist/cli.js +307 -47
  56. package/dist/{completion-ZTTJVV4C.js → completion-OKGNN7DE.js} +25 -23
  57. package/dist/{diagnostics-XC5L6Z3E.js → diagnostics-N4XRRCQG.js} +5 -5
  58. package/dist/{doctor-FGDSUBR3.js → doctor-3H6UYNEA.js} +20 -20
  59. package/dist/{entry-NNB2CQLZ.js → entry-KDLLG6ED.js} +9 -9
  60. package/dist/{exec-mcp-ZU3Z3XT6.js → exec-mcp-AENALAHJ.js} +8 -8
  61. package/dist/{harness-B7ANLH5M.js → harness-GRYTNUF2.js} +26 -44
  62. package/dist/harness-launch-gate.js +3 -3
  63. package/dist/harness-worker.js +5 -5
  64. package/dist/{heavy-IIZBO4YM.js → heavy-BGXKJKYB.js} +78 -22
  65. package/dist/hooks-V25ANQ4Q.js +24 -0
  66. package/dist/{host-XXWQ23LD.js → host-4EGPADOJ.js} +6 -6
  67. package/dist/{host-5P4D7GSE.js → host-MLSWY7D7.js} +17 -14
  68. package/dist/{host-run-AEWHFVQL.js → host-run-VI52IUKF.js} +5 -5
  69. package/dist/http.js +1 -1
  70. package/dist/{import-mcp-BQM5DKYH.js → import-mcp-FIXFLUDM.js} +11 -11
  71. package/dist/index.d.ts +1 -1
  72. package/dist/index.js +10 -9
  73. package/dist/init-ALTBFUPP.js +14 -0
  74. package/dist/{install-OFVLR7TI.js → install-5JH4DSFF.js} +10 -10
  75. package/dist/{invoke-3BQ5NG3P.js → invoke-7T7UY57O.js} +7 -7
  76. package/dist/{list-EU4MJOXA.js → list-JFZ7UZLV.js} +11 -11
  77. package/dist/{list-WWYCGD3X.js → list-LV5EKCF6.js} +11 -7
  78. package/dist/{logout-6DFDYJUI.js → logout-7CNBO76Z.js} +8 -8
  79. package/dist/{logs-BRF6DBKG.js → logs-2JEMSNSG.js} +7 -7
  80. package/dist/{mailbox-QYA2LQSE.js → mailbox-5FVFMQ2J.js} +6 -6
  81. package/dist/{mailbox-AQCTXO3H.js → mailbox-ZHZWZMAY.js} +14 -21
  82. package/dist/{mainline-O5AEHG3J.js → mainline-6PBT3VNR.js} +8 -7
  83. package/dist/{marketplace-TI5HFAHB.js → marketplace-2X3OOEPW.js} +10 -9
  84. package/dist/{mcp-HR5JFUW7.js → mcp-MVQVMAKJ.js} +4 -4
  85. package/dist/{mcp-4R53HSGY.js → mcp-PBTQ5SJW.js} +2 -2
  86. package/dist/{models-63NQBSV3.js → models-XSF45MCD.js} +9 -5
  87. package/dist/{pause-UF7FQDJX.js → pause-CMZOIHTJ.js} +3 -3
  88. package/dist/{preview-WSESS2UN.js → preview-465CQJBQ.js} +4 -4
  89. package/dist/{project-JXXL24WN.js → project-FZGJRG2U.js} +14 -12
  90. package/dist/{reindex-3GPKAFBW.js → reindex-D62HQAN2.js} +7 -7
  91. package/dist/{report-JUSKQPAC.js → report-UB7MXAUB.js} +10 -10
  92. package/dist/{resume-3WAROOQ3.js → resume-PAKIT4TT.js} +3 -3
  93. package/dist/{run-XRWU4L73.js → run-TOP37ZQC.js} +7 -7
  94. package/dist/run-VGJDMA2O.js +23 -0
  95. package/dist/{serve-OEX5V5CD.js → serve-LR7SJHNH.js} +13 -13
  96. package/dist/{session-YZVX4NGN.js → session-3YVVO2GR.js} +6 -6
  97. package/dist/{setup-SWNAC2C7.js → setup-6AQUOWOH.js} +3 -2
  98. package/dist/{smoke-5BGJXAHX.js → smoke-6X6IXQIQ.js} +4 -4
  99. package/dist/{start-login-MG26NDE3.js → start-login-X37KGCCB.js} +9 -9
  100. package/dist/{status-GKCIVAAR.js → status-4PYPTYUB.js} +4 -4
  101. package/dist/{status-APADL7O2.js → status-E4AFUOQO.js} +17 -10
  102. package/dist/{status-LH7Q255G.js → status-LBRK37GA.js} +27 -26
  103. package/dist/stdio.js +2 -2
  104. package/dist/{sweep-VTVPDAPY.js → sweep-VURZU6DI.js} +3 -3
  105. package/dist/{test-TK2J3IB7.js → test-D2EEFUN2.js} +11 -11
  106. package/dist/{tui-YTPHHKCW.js → tui-D7E3MD3X.js} +45 -19
  107. package/dist/{unbroadcast-CH7BAQ2G.js → unbroadcast-7AMLURCG.js} +3 -3
  108. package/dist/{validate-5QVZBE6W.js → validate-YXR7FJJX.js} +11 -9
  109. package/dist/{wait-4HYJJAWO.js → wait-HEODT7KV.js} +3 -3
  110. package/dist/{worker-RBXYAMR4.js → worker-WTBC6VYO.js} +7 -7
  111. package/dist/{worktree-create-FEZNQUQ6.js → worktree-create-FTSLMZWS.js} +2 -2
  112. package/docs/commands.md +64 -28
  113. package/docs/hooks.md +3 -3
  114. package/docs/project-configuration.md +33 -33
  115. package/docs/terminal-workspace.md +2 -0
  116. package/docs/upgrading.md +43 -0
  117. package/gemini-extension.json +2 -2
  118. package/mcp.json +1 -1
  119. package/package.json +5 -5
  120. package/plugin.json +1 -1
  121. package/plugins/pmcp/.claude-plugin/plugin.json +1 -1
  122. package/plugins/pmcp/.mcp.json +1 -1
  123. package/plugins/pmcp/gemini-extension.json +2 -2
  124. package/plugins/pmcp/mcp.json +1 -1
  125. package/plugins/pmcp/plugin.json +1 -1
  126. package/plugins/pmcp/skills/headless-agents-ci-scaffold/SKILL.md +1 -1
  127. package/plugins/pmcp/skills/pmcp-project-init/SKILL.md +1 -1
  128. package/plugins/pmcp/skills/pmcp-sessions-and-git/SKILL.md +3 -2
  129. package/skills/headless-agents-ci-scaffold/SKILL.md +1 -1
  130. package/skills/pmcp-project-init/SKILL.md +1 -1
  131. package/skills/pmcp-sessions-and-git/SKILL.md +3 -2
  132. package/dist/chunk-2P4Z2NUX.js +0 -28
  133. package/dist/chunk-3Y3HDMHA.js +0 -108
  134. package/dist/chunk-74O7KZUH.js +0 -45
  135. package/dist/chunk-BN4XAXMQ.js +0 -65
  136. package/dist/chunk-E3DQB5LS.js +0 -48
  137. package/dist/chunk-JWRZDYB5.js +0 -59
  138. package/dist/chunk-LMUBBIE2.js +0 -83
  139. package/dist/chunk-QBSJL3SP.js +0 -162
  140. package/dist/chunk-VSTUKACC.js +0 -7
  141. package/dist/chunk-WFY7ATSZ.js +0 -116
  142. package/dist/hooks-IEJTW7BV.js +0 -24
  143. package/dist/init-L6GUO3PW.js +0 -14
  144. 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
@@ -3,13 +3,13 @@ import {
3
3
  } from "./chunk-5ZABTVSW.js";
4
4
  import {
5
5
  dependencies
6
- } from "./chunk-NNGGNXF2.js";
6
+ } from "./chunk-LGRFYN5T.js";
7
7
  import {
8
8
  interactiveEntry
9
9
  } from "./chunk-LMT3PPXJ.js";
10
10
  import {
11
11
  assertNativeHost
12
- } from "./chunk-5IZFEVPW.js";
12
+ } from "./chunk-SDQYZDHS.js";
13
13
 
14
14
  // src/tui/startup/host.ts
15
15
  function terminalSupport() {
@@ -42,4 +42,4 @@ export {
42
42
  terminalSupport,
43
43
  requireTerminal
44
44
  };
45
- //# sourceMappingURL=chunk-VNZTULFD.js.map
45
+ //# sourceMappingURL=chunk-EQF64INS.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
@@ -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
  import {
2
2
  HOST_MANIFEST,
3
3
  HOST_POLICY
4
- } from "./chunk-733WVP2R.js";
4
+ } from "./chunk-KYGGQPAH.js";
5
5
  import {
6
6
  projectStateDir
7
7
  } from "./chunk-FQLCD4HU.js";
@@ -99,4 +99,4 @@ export {
99
99
  hostApprovalDoctor,
100
100
  writeApproval
101
101
  };
102
- //# sourceMappingURL=chunk-A6DARDQ4.js.map
102
+ //# sourceMappingURL=chunk-JJFPSFDU.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
@@ -12,7 +12,7 @@ import {
12
12
  } from "./chunk-XWLMZKH2.js";
13
13
  import {
14
14
  VERSION
15
- } from "./chunk-VSTUKACC.js";
15
+ } from "./chunk-7IRXUPM2.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-733WVP2R.js.map
613
+ //# sourceMappingURL=chunk-KYGGQPAH.js.map
@@ -7,7 +7,7 @@ import {
7
7
  import {
8
8
  nativeBinary,
9
9
  ptyBinary
10
- } from "./chunk-733WVP2R.js";
10
+ } from "./chunk-KYGGQPAH.js";
11
11
 
12
12
  // src/tui/rust.ts
13
13
  import { spawn } from "child_process";
@@ -62,4 +62,4 @@ export {
62
62
  runTui,
63
63
  dependencies
64
64
  };
65
- //# sourceMappingURL=chunk-NNGGNXF2.js.map
65
+ //# sourceMappingURL=chunk-LGRFYN5T.js.map
@@ -3,7 +3,7 @@ import {
3
3
  } from "./chunk-34DECPVC.js";
4
4
  import {
5
5
  ptyBinary
6
- } from "./chunk-733WVP2R.js";
6
+ } from "./chunk-KYGGQPAH.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-GNVME5AD.js.map
778
+ //# sourceMappingURL=chunk-LO54UUDE.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
@@ -7,20 +7,20 @@ import {
7
7
  observeSession,
8
8
  openGroup,
9
9
  runOperation
10
- } from "./chunk-ISGBOJT7.js";
10
+ } from "./chunk-DZTSCJOZ.js";
11
11
  import {
12
12
  nativeHostTools
13
- } from "./chunk-5IZFEVPW.js";
13
+ } from "./chunk-SDQYZDHS.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-GNVME5AD.js";
20
+ } from "./chunk-LO54UUDE.js";
21
21
  import {
22
22
  ptyBinary
23
- } from "./chunk-733WVP2R.js";
23
+ } from "./chunk-KYGGQPAH.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-T4GVN7XO.js.map
252
+ //# sourceMappingURL=chunk-P25V6NEX.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