@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.
- package/.agents/plugins/marketplace.json +1 -1
- package/.claude-plugin/marketplace.json +1 -1
- package/.claude-plugin/plugin.json +1 -1
- package/.mcp.json +1 -1
- package/CONTRIBUTING.md +8 -0
- package/dist/{affected-ZWO2F5EM.js → affected-D6FRJPPI.js} +2 -2
- package/dist/{apply-OIKQ5SIY.js → apply-6JVJ7FDZ.js} +21 -20
- package/dist/{available-Z5MIDFPH.js → available-74CMIBPD.js} +9 -9
- package/dist/{broadcast-BF2QL3O7.js → broadcast-VKZY7WSD.js} +3 -3
- package/dist/{chunk-K2VU3B4W.js → chunk-25M2YWBH.js} +4 -4
- package/dist/chunk-2GZKA33O.js +173 -0
- package/dist/chunk-2HL2MFNI.js +159 -0
- package/dist/{chunk-4O4ZOSBQ.js → chunk-2MX5C7B2.js} +3 -3
- package/dist/chunk-2W2F5BWF.js +166 -0
- package/dist/chunk-43MXRTKH.js +134 -0
- package/dist/chunk-4VVQLWTS.js +93 -0
- package/dist/{chunk-ZKB7ZNKY.js → chunk-56VBB3H7.js} +4 -4
- package/dist/{chunk-JEL35P7S.js → chunk-5NDUWEMW.js} +2 -2
- package/dist/{chunk-5PNS6V5C.js → chunk-5QBOGEVE.js} +2 -2
- package/dist/{chunk-NNGGNXF2.js → chunk-62BC3K4Z.js} +2 -2
- package/dist/{chunk-7ZOQELXR.js → chunk-644GNYMB.js} +3 -3
- package/dist/{chunk-GNVME5AD.js → chunk-6UGHVU5B.js} +2 -2
- package/dist/{chunk-733WVP2R.js → chunk-7A6QIROT.js} +3 -3
- package/dist/{chunk-J3QUG6O5.js → chunk-7CHUMF3E.js} +2 -2
- package/dist/{chunk-INT7QLEU.js → chunk-7DJQASH3.js} +25 -6
- package/dist/{chunk-VNZTULFD.js → chunk-D2MHB5EF.js} +3 -3
- package/dist/{chunk-KEHB4FZP.js → chunk-E2E4HIEN.js} +49 -3
- package/dist/{chunk-G4ATQPQI.js → chunk-F3R5HEUB.js} +5 -1
- package/dist/{chunk-JW5NMQTU.js → chunk-HES44LTA.js} +4 -4
- package/dist/{chunk-RHJEGLYM.js → chunk-HF5D6B2U.js} +45 -6
- package/dist/{chunk-5OFQVW2K.js → chunk-HYXOJYVR.js} +2 -2
- package/dist/{chunk-UED3RH53.js → chunk-ISGHJHVH.js} +2 -2
- package/dist/chunk-JANBBPKP.js +50 -0
- package/dist/{chunk-XNML2KIC.js → chunk-JPYQDOEW.js} +3 -3
- package/dist/{chunk-ZS5IDQFJ.js → chunk-K6ATERWS.js} +4 -4
- package/dist/{chunk-737BENAU.js → chunk-LB2WXBPA.js} +5 -5
- package/dist/{chunk-5IZFEVPW.js → chunk-LI3BII4F.js} +2 -2
- package/dist/chunk-LTMHE5VL.js +7 -0
- package/dist/{chunk-XSWF7APE.js → chunk-OGCJO6HQ.js} +9 -8
- package/dist/{chunk-A7XCUR2C.js → chunk-Q6V274OB.js} +8 -6
- package/dist/{chunk-ISGBOJT7.js → chunk-QR4GXET7.js} +3 -3
- package/dist/chunk-QR6A3TYP.js +315 -0
- package/dist/{chunk-FOLA4EUJ.js → chunk-QY2P54Z2.js} +10 -2
- package/dist/{chunk-EIDIVIAD.js → chunk-QYLOIM4U.js} +9 -2
- package/dist/{chunk-P5D6RKMT.js → chunk-RZYZILU4.js} +5 -3
- package/dist/{chunk-A6DARDQ4.js → chunk-S6G7YWNE.js} +2 -2
- package/dist/{chunk-24L4MO7H.js → chunk-TIH7JFPJ.js} +2 -2
- package/dist/{chunk-5KWDQFVY.js → chunk-UFWW4H6V.js} +7 -8
- package/dist/chunk-UVTGY2R3.js +78 -0
- package/dist/{chunk-LLT5FQBE.js → chunk-VBVNOLRR.js} +7 -3
- package/dist/{chunk-ABTJQ4QV.js → chunk-WBPVNCQO.js} +20 -5
- package/dist/{chunk-T4GVN7XO.js → chunk-WNP2BXR7.js} +5 -5
- package/dist/{chunk-YGOWIJPE.js → chunk-WZYGM3FR.js} +6 -2
- package/dist/chunk-Y6NFETNG.js +232 -0
- package/dist/{cli-IHVNE3WL.js → cli-GFDT4YXM.js} +14 -15
- package/dist/{cli-FSSYFCV3.js → cli-WWNTQJPV.js} +18 -12
- package/dist/cli.js +307 -47
- package/dist/{completion-ZTTJVV4C.js → completion-I63UIDZ7.js} +25 -23
- package/dist/{diagnostics-XC5L6Z3E.js → diagnostics-RUJZBPNZ.js} +6 -6
- package/dist/{doctor-FGDSUBR3.js → doctor-CLUFTEFO.js} +21 -21
- package/dist/{entry-NNB2CQLZ.js → entry-QSJCFI5Z.js} +10 -10
- package/dist/{exec-mcp-ZU3Z3XT6.js → exec-mcp-AFPUJTN7.js} +9 -9
- package/dist/{harness-B7ANLH5M.js → harness-PPM32AI5.js} +26 -44
- package/dist/harness-launch-gate.js +4 -4
- package/dist/harness-worker.js +6 -6
- package/dist/{heavy-IIZBO4YM.js → heavy-TEHP5PHT.js} +112 -27
- package/dist/hooks-L4PXVEGR.js +24 -0
- package/dist/{host-5P4D7GSE.js → host-LBTL47X7.js} +18 -15
- package/dist/{host-XXWQ23LD.js → host-MU2GRH57.js} +7 -7
- package/dist/{host-run-AEWHFVQL.js → host-run-IRSAQA5Z.js} +6 -6
- package/dist/http.js +1 -1
- package/dist/{import-mcp-BQM5DKYH.js → import-mcp-QVPW6A2Q.js} +12 -12
- package/dist/index.d.ts +1 -1
- package/dist/index.js +11 -10
- package/dist/init-46STH6FP.js +14 -0
- package/dist/{install-OFVLR7TI.js → install-5JH4DSFF.js} +10 -10
- package/dist/{invoke-3BQ5NG3P.js → invoke-I6C6UT6Q.js} +8 -8
- package/dist/{list-EU4MJOXA.js → list-HXG6EB7V.js} +12 -12
- package/dist/{list-WWYCGD3X.js → list-LV5EKCF6.js} +11 -7
- package/dist/{logout-6DFDYJUI.js → logout-SSUXJ6SE.js} +9 -9
- package/dist/{logs-BRF6DBKG.js → logs-2JEMSNSG.js} +7 -7
- package/dist/{mailbox-QYA2LQSE.js → mailbox-5FVFMQ2J.js} +6 -6
- package/dist/{mailbox-AQCTXO3H.js → mailbox-ZHZWZMAY.js} +14 -21
- package/dist/{mainline-O5AEHG3J.js → mainline-4XP6ZORU.js} +9 -8
- package/dist/{marketplace-TI5HFAHB.js → marketplace-2X3OOEPW.js} +10 -9
- package/dist/{mcp-HR5JFUW7.js → mcp-L6X45IOS.js} +4 -4
- package/dist/{mcp-4R53HSGY.js → mcp-PBTQ5SJW.js} +2 -2
- package/dist/{models-63NQBSV3.js → models-XSF45MCD.js} +9 -5
- package/dist/{pause-UF7FQDJX.js → pause-CMZOIHTJ.js} +3 -3
- package/dist/{preview-WSESS2UN.js → preview-465CQJBQ.js} +4 -4
- package/dist/{project-JXXL24WN.js → project-4JPKU2D7.js} +14 -12
- package/dist/{reindex-3GPKAFBW.js → reindex-D62HQAN2.js} +7 -7
- package/dist/{report-JUSKQPAC.js → report-UB7MXAUB.js} +10 -10
- package/dist/{resume-3WAROOQ3.js → resume-PAKIT4TT.js} +3 -3
- package/dist/run-OW7436TY.js +23 -0
- package/dist/{run-XRWU4L73.js → run-PMASXIGY.js} +8 -8
- package/dist/{serve-OEX5V5CD.js → serve-P3HJN6AF.js} +13 -13
- package/dist/{session-YZVX4NGN.js → session-3YVVO2GR.js} +6 -6
- package/dist/{setup-SWNAC2C7.js → setup-6AQUOWOH.js} +3 -2
- package/dist/{smoke-5BGJXAHX.js → smoke-6X6IXQIQ.js} +4 -4
- package/dist/{start-login-MG26NDE3.js → start-login-P7YDRTA3.js} +10 -10
- package/dist/{status-GKCIVAAR.js → status-4PYPTYUB.js} +4 -4
- package/dist/{status-LH7Q255G.js → status-DAXQKT35.js} +28 -27
- package/dist/{status-APADL7O2.js → status-DLGZDYEP.js} +18 -11
- package/dist/stdio.js +2 -2
- package/dist/{sweep-VTVPDAPY.js → sweep-VURZU6DI.js} +3 -3
- package/dist/{test-TK2J3IB7.js → test-H243OTSK.js} +12 -12
- package/dist/{tui-YTPHHKCW.js → tui-P6XTSTQO.js} +45 -19
- package/dist/{unbroadcast-CH7BAQ2G.js → unbroadcast-7AMLURCG.js} +3 -3
- package/dist/{validate-5QVZBE6W.js → validate-YXR7FJJX.js} +11 -9
- package/dist/{wait-4HYJJAWO.js → wait-HEODT7KV.js} +3 -3
- package/dist/{worker-RBXYAMR4.js → worker-5YJLIGTU.js} +8 -8
- package/dist/{worktree-create-FEZNQUQ6.js → worktree-create-FTSLMZWS.js} +2 -2
- package/docs/commands.md +65 -29
- package/docs/hooks.md +3 -3
- package/docs/project-configuration.md +54 -38
- package/docs/terminal-workspace.md +2 -0
- package/docs/upgrading.md +67 -0
- package/gemini-extension.json +2 -2
- package/mcp.json +1 -1
- package/package.json +5 -5
- package/plugin.json +1 -1
- package/plugins/pmcp/.claude-plugin/plugin.json +1 -1
- package/plugins/pmcp/.mcp.json +1 -1
- package/plugins/pmcp/gemini-extension.json +2 -2
- package/plugins/pmcp/mcp.json +1 -1
- package/plugins/pmcp/plugin.json +1 -1
- package/plugins/pmcp/skills/headless-agents-ci-scaffold/SKILL.md +1 -1
- package/plugins/pmcp/skills/pmcp-project-init/SKILL.md +1 -1
- package/plugins/pmcp/skills/pmcp-sessions-and-git/SKILL.md +3 -2
- package/skills/headless-agents-ci-scaffold/SKILL.md +1 -1
- package/skills/pmcp-project-init/SKILL.md +1 -1
- package/skills/pmcp-sessions-and-git/SKILL.md +3 -2
- package/dist/chunk-2P4Z2NUX.js +0 -28
- package/dist/chunk-3Y3HDMHA.js +0 -108
- package/dist/chunk-74O7KZUH.js +0 -45
- package/dist/chunk-BN4XAXMQ.js +0 -65
- package/dist/chunk-E3DQB5LS.js +0 -48
- package/dist/chunk-JWRZDYB5.js +0 -59
- package/dist/chunk-LMUBBIE2.js +0 -83
- package/dist/chunk-QBSJL3SP.js +0 -162
- package/dist/chunk-VSTUKACC.js +0 -7
- package/dist/chunk-WFY7ATSZ.js +0 -116
- package/dist/hooks-IEJTW7BV.js +0 -24
- package/dist/init-L6GUO3PW.js +0 -14
- package/dist/run-VUUQS4WY.js +0 -19
package/dist/chunk-QBSJL3SP.js
DELETED
|
@@ -1,162 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
harnessSpec,
|
|
3
|
-
tuiSpec
|
|
4
|
-
} from "./chunk-3Y3HDMHA.js";
|
|
5
|
-
import {
|
|
6
|
-
marketplaceSpec
|
|
7
|
-
} from "./chunk-2P4Z2NUX.js";
|
|
8
|
-
import {
|
|
9
|
-
mcpSpec
|
|
10
|
-
} from "./chunk-E3DQB5LS.js";
|
|
11
|
-
import {
|
|
12
|
-
mailboxSpec
|
|
13
|
-
} from "./chunk-JWRZDYB5.js";
|
|
14
|
-
import {
|
|
15
|
-
gitSpec
|
|
16
|
-
} from "./chunk-74O7KZUH.js";
|
|
17
|
-
import {
|
|
18
|
-
heavySpec
|
|
19
|
-
} from "./chunk-BN4XAXMQ.js";
|
|
20
|
-
import {
|
|
21
|
-
waitSpec
|
|
22
|
-
} from "./chunk-G4ATQPQI.js";
|
|
23
|
-
import {
|
|
24
|
-
sessionsSpec
|
|
25
|
-
} from "./chunk-LMUBBIE2.js";
|
|
26
|
-
import {
|
|
27
|
-
logsSpec
|
|
28
|
-
} from "./chunk-YGOWIJPE.js";
|
|
29
|
-
import {
|
|
30
|
-
availableSpec,
|
|
31
|
-
installSpec,
|
|
32
|
-
previewSpec,
|
|
33
|
-
syncSpec
|
|
34
|
-
} from "./chunk-ABTJQ4QV.js";
|
|
35
|
-
import {
|
|
36
|
-
doctorSpec,
|
|
37
|
-
projectSpec
|
|
38
|
-
} from "./chunk-RHJEGLYM.js";
|
|
39
|
-
import {
|
|
40
|
-
serveSpec
|
|
41
|
-
} from "./chunk-LLT5FQBE.js";
|
|
42
|
-
import {
|
|
43
|
-
indexSpec,
|
|
44
|
-
listSpec,
|
|
45
|
-
modelsSpec,
|
|
46
|
-
validateSpec
|
|
47
|
-
} from "./chunk-INT7QLEU.js";
|
|
48
|
-
import {
|
|
49
|
-
loginSpec,
|
|
50
|
-
logoutSpec,
|
|
51
|
-
whoamiSpec
|
|
52
|
-
} from "./chunk-EIDIVIAD.js";
|
|
53
|
-
import {
|
|
54
|
-
hooksSpec,
|
|
55
|
-
initSpec,
|
|
56
|
-
statusSpec
|
|
57
|
-
} from "./chunk-KEHB4FZP.js";
|
|
58
|
-
|
|
59
|
-
// src/commands/specs/completion.ts
|
|
60
|
-
var completionSpec = {
|
|
61
|
-
name: "completion",
|
|
62
|
-
describe: "Print a shell completion script for bash, zsh or fish",
|
|
63
|
-
usage: "pmcp completion bash | zsh | fish"
|
|
64
|
-
};
|
|
65
|
-
|
|
66
|
-
// src/commands/registry.ts
|
|
67
|
-
var COMMANDS = [
|
|
68
|
-
{
|
|
69
|
-
...statusSpec,
|
|
70
|
-
load: async () => (await import("./status-LH7Q255G.js")).statusCommand
|
|
71
|
-
},
|
|
72
|
-
{ ...initSpec, load: async () => (await import("./init-L6GUO3PW.js")).initCommand },
|
|
73
|
-
{ ...hooksSpec, load: async () => (await import("./hooks-IEJTW7BV.js")).hooksCommand },
|
|
74
|
-
{ ...serveSpec, load: async () => (await import("./serve-OEX5V5CD.js")).serveCommand },
|
|
75
|
-
{ ...listSpec, load: async () => (await import("./list-WWYCGD3X.js")).listCommand },
|
|
76
|
-
{
|
|
77
|
-
...indexSpec,
|
|
78
|
-
load: async () => (await import("./reindex-3GPKAFBW.js")).indexCommand
|
|
79
|
-
},
|
|
80
|
-
{
|
|
81
|
-
...modelsSpec,
|
|
82
|
-
load: async () => (await import("./models-63NQBSV3.js")).modelsCommand
|
|
83
|
-
},
|
|
84
|
-
{
|
|
85
|
-
...loginSpec,
|
|
86
|
-
load: async () => (await import("./session-YZVX4NGN.js")).loginCommand
|
|
87
|
-
},
|
|
88
|
-
{
|
|
89
|
-
...logoutSpec,
|
|
90
|
-
load: async () => (await import("./session-YZVX4NGN.js")).logoutCommand
|
|
91
|
-
},
|
|
92
|
-
{
|
|
93
|
-
...whoamiSpec,
|
|
94
|
-
load: async () => (await import("./session-YZVX4NGN.js")).whoamiCommand
|
|
95
|
-
},
|
|
96
|
-
{
|
|
97
|
-
...availableSpec,
|
|
98
|
-
load: async () => (await import("./available-Z5MIDFPH.js")).availableCommand
|
|
99
|
-
},
|
|
100
|
-
{
|
|
101
|
-
...previewSpec,
|
|
102
|
-
load: async () => (await import("./preview-WSESS2UN.js")).previewCommand
|
|
103
|
-
},
|
|
104
|
-
{
|
|
105
|
-
...installSpec,
|
|
106
|
-
load: async () => (await import("./install-OFVLR7TI.js")).installCommand
|
|
107
|
-
},
|
|
108
|
-
{ ...syncSpec, load: async () => (await import("./install-OFVLR7TI.js")).syncCommand },
|
|
109
|
-
{
|
|
110
|
-
...projectSpec,
|
|
111
|
-
load: async () => (await import("./project-JXXL24WN.js")).projectCommand
|
|
112
|
-
},
|
|
113
|
-
{
|
|
114
|
-
...doctorSpec,
|
|
115
|
-
load: async () => (await import("./doctor-FGDSUBR3.js")).doctorCommand
|
|
116
|
-
},
|
|
117
|
-
{
|
|
118
|
-
...sessionsSpec,
|
|
119
|
-
load: async () => (await import("./cli-IHVNE3WL.js")).sessionsCommand
|
|
120
|
-
},
|
|
121
|
-
{ ...logsSpec, load: async () => (await import("./logs-BRF6DBKG.js")).logsCommand },
|
|
122
|
-
{ ...gitSpec, load: async () => (await import("./cli-FSSYFCV3.js")).gitCommand },
|
|
123
|
-
{
|
|
124
|
-
...heavySpec,
|
|
125
|
-
load: async () => (await import("./heavy-IIZBO4YM.js")).heavyCommand
|
|
126
|
-
},
|
|
127
|
-
{ ...waitSpec, load: async () => (await import("./wait-4HYJJAWO.js")).waitCommand },
|
|
128
|
-
{ ...mcpSpec, load: async () => (await import("./mcp-HR5JFUW7.js")).mcpCommand },
|
|
129
|
-
{
|
|
130
|
-
...validateSpec,
|
|
131
|
-
load: async () => (await import("./validate-5QVZBE6W.js")).validateCommand
|
|
132
|
-
},
|
|
133
|
-
{
|
|
134
|
-
...mailboxSpec,
|
|
135
|
-
load: async () => (await import("./mailbox-AQCTXO3H.js")).mailboxCommand
|
|
136
|
-
},
|
|
137
|
-
{
|
|
138
|
-
...harnessSpec,
|
|
139
|
-
load: async () => (await import("./harness-B7ANLH5M.js")).harnessCommand
|
|
140
|
-
},
|
|
141
|
-
{ ...tuiSpec, load: async () => (await import("./tui-YTPHHKCW.js")).tuiCommand },
|
|
142
|
-
{
|
|
143
|
-
...marketplaceSpec,
|
|
144
|
-
load: async () => (await import("./marketplace-TI5HFAHB.js")).marketplaceCommand
|
|
145
|
-
},
|
|
146
|
-
{
|
|
147
|
-
...completionSpec,
|
|
148
|
-
load: async () => (await import("./completion-ZTTJVV4C.js")).completionCommand
|
|
149
|
-
}
|
|
150
|
-
];
|
|
151
|
-
var PLANNED = [];
|
|
152
|
-
function commandNamed(name) {
|
|
153
|
-
return COMMANDS.find((command) => command.name === name);
|
|
154
|
-
}
|
|
155
|
-
|
|
156
|
-
export {
|
|
157
|
-
completionSpec,
|
|
158
|
-
COMMANDS,
|
|
159
|
-
PLANNED,
|
|
160
|
-
commandNamed
|
|
161
|
-
};
|
|
162
|
-
//# sourceMappingURL=chunk-QBSJL3SP.js.map
|
package/dist/chunk-VSTUKACC.js
DELETED
package/dist/chunk-WFY7ATSZ.js
DELETED
|
@@ -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
|
package/dist/hooks-IEJTW7BV.js
DELETED
|
@@ -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
|
package/dist/init-L6GUO3PW.js
DELETED
|
@@ -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
|
package/dist/run-VUUQS4WY.js
DELETED
|
@@ -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
|