@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,116 +0,0 @@
1
- // src/cli/command.ts
2
- var EXIT = {
3
- ok: 0,
4
- failure: 1,
5
- usage: 2,
6
- missingOptional: 3,
7
- // Not run because the host stayed busy; nothing changed, so a retry later is safe (EX_TEMPFAIL).
8
- busy: 75
9
- };
10
- var ArgumentError = class extends Error {
11
- constructor(message) {
12
- super(message);
13
- this.name = "ArgumentError";
14
- }
15
- };
16
- function parseArgs(argv, specs = []) {
17
- const byName = new Map(specs.map((spec) => [spec.name, spec]));
18
- const positional = [];
19
- const options = /* @__PURE__ */ new Map();
20
- const flags = /* @__PURE__ */ new Set();
21
- let passthrough;
22
- for (let i = 0; i < argv.length; i += 1) {
23
- const arg = argv[i];
24
- if (arg === "--") {
25
- passthrough = argv.slice(i + 1);
26
- positional.push(...passthrough);
27
- break;
28
- }
29
- if (!arg.startsWith("--")) {
30
- positional.push(arg);
31
- continue;
32
- }
33
- const eq = arg.indexOf("=");
34
- const name = eq === -1 ? arg.slice(2) : arg.slice(2, eq);
35
- const spec = byName.get(name);
36
- if (spec === void 0) {
37
- throw new ArgumentError(`unknown option --${name}`);
38
- }
39
- if (spec.boolean === true) {
40
- if (eq !== -1) {
41
- throw new ArgumentError(`--${name} does not take a value`);
42
- }
43
- flags.add(name);
44
- continue;
45
- }
46
- const value = eq === -1 ? argv[++i] : arg.slice(eq + 1);
47
- if (value === void 0 || value === "" || value.startsWith("--")) {
48
- throw new ArgumentError(`--${name} needs a value`);
49
- }
50
- const existing = options.get(name);
51
- if (existing !== void 0 && spec.repeat !== true) {
52
- throw new ArgumentError(`--${name} was given more than once`);
53
- }
54
- options.set(name, [...existing ?? [], value]);
55
- }
56
- return passthrough === void 0 ? { positional, options, flags } : { positional, options, flags, passthrough };
57
- }
58
- function one(args, name) {
59
- return args.options.get(name)?.[0];
60
- }
61
- function many(args, name) {
62
- return args.options.get(name) ?? [];
63
- }
64
- function printCommandHelp(ui, command) {
65
- ui.heading(`pmcp ${command.name}`);
66
- ui.line(` ${command.describe}`);
67
- ui.line();
68
- ui.line(` ${ui.paint(command.usage, "dim")}`);
69
- if (command.options && command.options.length > 0) {
70
- ui.line();
71
- ui.table(
72
- command.options.map((option) => [
73
- `--${option.name}${option.placeholder ? ` ${option.placeholder}` : ""}`,
74
- option.describe
75
- ])
76
- );
77
- }
78
- ui.line();
79
- }
80
- function printHelp(ui, commands, notImplemented) {
81
- ui.heading("pmcp \u2014 the skills your installed packages ship");
82
- ui.line();
83
- ui.table(commands.map((command) => [command.name, command.describe]));
84
- ui.line();
85
- ui.line(
86
- " With no command, pmcp opens a terminal workspace on a supported TTY."
87
- );
88
- ui.line(
89
- " Piped launches retain MCP stdio. Use pmcp serve explicitly for MCP."
90
- );
91
- ui.line();
92
- ui.table([
93
- ["-q, --quiet", "only errors"],
94
- ["--no-color", "never colour output; NO_COLOR is honoured too"],
95
- ["--version", "print the version"],
96
- ["-h, --help", "this, or help for one command"]
97
- ]);
98
- ui.line();
99
- if (notImplemented.length > 0) {
100
- ui.line(
101
- ` ${ui.paint(`not implemented yet: ${notImplemented.join(", ")}`, "dim")}`
102
- );
103
- ui.line();
104
- }
105
- }
106
-
107
- export {
108
- EXIT,
109
- ArgumentError,
110
- parseArgs,
111
- one,
112
- many,
113
- printCommandHelp,
114
- printHelp
115
- };
116
- //# sourceMappingURL=chunk-WFY7ATSZ.js.map
@@ -1,24 +0,0 @@
1
- import {
2
- hooksSpec
3
- } from "./chunk-KEHB4FZP.js";
4
- import "./chunk-XNML2KIC.js";
5
- import {
6
- ArgumentError
7
- } from "./chunk-WFY7ATSZ.js";
8
-
9
- // src/commands/hooks.ts
10
- async function run(context) {
11
- const [verb = "list", ...extra] = context.args.positional;
12
- const usage = "Use hooks list, hooks test or hooks report";
13
- if (extra.length) throw new ArgumentError(usage);
14
- if (verb === "list") return (await import("./list-EU4MJOXA.js")).run(context);
15
- if (verb === "test") return (await import("./test-TK2J3IB7.js")).run(context);
16
- if (verb === "report")
17
- return (await import("./report-JUSKQPAC.js")).run(context);
18
- throw new ArgumentError(usage);
19
- }
20
- var hooksCommand = { ...hooksSpec, run };
21
- export {
22
- hooksCommand
23
- };
24
- //# sourceMappingURL=hooks-IEJTW7BV.js.map
@@ -1,14 +0,0 @@
1
- import {
2
- initSpec
3
- } from "./chunk-KEHB4FZP.js";
4
- import "./chunk-XNML2KIC.js";
5
-
6
- // src/commands/init.ts
7
- var initCommand = {
8
- ...initSpec,
9
- run: async (context) => (await import("./run-XRWU4L73.js")).run(context)
10
- };
11
- export {
12
- initCommand
13
- };
14
- //# sourceMappingURL=init-L6GUO3PW.js.map
@@ -1,19 +0,0 @@
1
- import {
2
- ArgumentError
3
- } from "./chunk-WFY7ATSZ.js";
4
-
5
- // src/commands/mcp/run.ts
6
- async function executeMcpCommand(context) {
7
- const [verb, name, ...extra] = context.args.positional;
8
- if (!name || extra.length || !["login", "logout", "status"].includes(verb ?? ""))
9
- throw new ArgumentError("Use pmcp mcp <login|logout|status> <name>");
10
- if (context.args.flags.has("json") && verb !== "status")
11
- throw new ArgumentError("--json requires mcp status");
12
- if (verb === "status") return (await import("./status-APADL7O2.js")).run(context);
13
- if (verb === "logout") return (await import("./logout-6DFDYJUI.js")).run(context);
14
- return (await import("./start-login-MG26NDE3.js")).run(context);
15
- }
16
- export {
17
- executeMcpCommand
18
- };
19
- //# sourceMappingURL=run-VUUQS4WY.js.map