@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
|
@@ -612,7 +612,7 @@
|
|
|
612
612
|
},
|
|
613
613
|
{
|
|
614
614
|
"name": "pmcp",
|
|
615
|
-
"version": "0.
|
|
615
|
+
"version": "0.24.0",
|
|
616
616
|
"description": "Find package skills and use native runtime project configuration.",
|
|
617
617
|
"source": { "source": "local", "path": "./plugins/pmcp" },
|
|
618
618
|
"policy": { "installation": "AVAILABLE", "authentication": "ON_USE" },
|
package/.mcp.json
CHANGED
package/CONTRIBUTING.md
CHANGED
|
@@ -23,6 +23,14 @@ npm test
|
|
|
23
23
|
npm run format:check
|
|
24
24
|
```
|
|
25
25
|
|
|
26
|
+
`npm test` gives the run its own `TMPDIR`, `XDG_STATE_HOME`, `XDG_CACHE_HOME` and
|
|
27
|
+
`XDG_CONFIG_HOME` (`__tests__/setup/isolation.ts`) and removes them afterwards; the run
|
|
28
|
+
fails when a test still left a `pmcp-*` directory in the real temp directory or a project
|
|
29
|
+
in the real pmcp state directory. Make fixtures under `os.tmpdir()` and pass the process
|
|
30
|
+
environment to any `pmcp` you spawn. The check compares the real directories before and
|
|
31
|
+
after the run, so another session creating `pmcp-*` directories or pmcp projects on the same
|
|
32
|
+
host meanwhile fails it too; run it again once that session is done.
|
|
33
|
+
|
|
26
34
|
Use the package's typecheck and test scripts for code changes. Documentation changes need
|
|
27
35
|
link, packaging and formatting checks; avoid rebuilding unrelated runtime artifacts.
|
|
28
36
|
|
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
import {
|
|
9
9
|
ArgumentError,
|
|
10
10
|
one
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-Y6NFETNG.js";
|
|
12
12
|
import {
|
|
13
13
|
Reader,
|
|
14
14
|
child,
|
|
@@ -833,4 +833,4 @@ export {
|
|
|
833
833
|
AFFECTED_SCHEMA,
|
|
834
834
|
gitAffected
|
|
835
835
|
};
|
|
836
|
-
//# sourceMappingURL=affected-
|
|
836
|
+
//# sourceMappingURL=affected-D6FRJPPI.js.map
|
|
@@ -1,28 +1,28 @@
|
|
|
1
1
|
import {
|
|
2
2
|
catalogFrom
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-2MX5C7B2.js";
|
|
4
4
|
import {
|
|
5
5
|
specFrom
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-UFWW4H6V.js";
|
|
7
7
|
import {
|
|
8
8
|
printSmoke,
|
|
9
9
|
runSmoke
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-OGCJO6HQ.js";
|
|
11
11
|
import {
|
|
12
12
|
configFrom
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-7CHUMF3E.js";
|
|
14
14
|
import {
|
|
15
15
|
describeHookProblem,
|
|
16
16
|
project,
|
|
17
17
|
unmanagedHookProblems
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-K6ATERWS.js";
|
|
19
19
|
import "./chunk-ANJMLKBR.js";
|
|
20
|
-
import "./chunk-
|
|
20
|
+
import "./chunk-644GNYMB.js";
|
|
21
21
|
import {
|
|
22
22
|
checkBudget,
|
|
23
23
|
renderFrontmatter,
|
|
24
24
|
splitFrontmatter
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-25M2YWBH.js";
|
|
26
26
|
import "./chunk-UYBWUOLR.js";
|
|
27
27
|
import "./chunk-UKR64U7J.js";
|
|
28
28
|
import "./chunk-42SO7KYX.js";
|
|
@@ -32,7 +32,7 @@ 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-
|
|
35
|
+
import "./chunk-RZYZILU4.js";
|
|
36
36
|
import "./chunk-SUDG7B6S.js";
|
|
37
37
|
import "./chunk-3V37OZQH.js";
|
|
38
38
|
import "./chunk-Z6WRFOFT.js";
|
|
@@ -42,19 +42,20 @@ import {
|
|
|
42
42
|
RUNTIMES,
|
|
43
43
|
readTestTable
|
|
44
44
|
} from "./chunk-ARXCYFFZ.js";
|
|
45
|
-
import "./chunk-
|
|
46
|
-
import {
|
|
47
|
-
ArgumentError
|
|
48
|
-
} from "./chunk-WFY7ATSZ.js";
|
|
45
|
+
import "./chunk-5NDUWEMW.js";
|
|
49
46
|
import "./chunk-V4NPDK6X.js";
|
|
47
|
+
import {
|
|
48
|
+
ArgumentError,
|
|
49
|
+
EXIT
|
|
50
|
+
} from "./chunk-Y6NFETNG.js";
|
|
50
51
|
import {
|
|
51
52
|
kindOf
|
|
52
53
|
} from "./chunk-4CRRLDDS.js";
|
|
53
54
|
import "./chunk-YSAWTGNA.js";
|
|
54
55
|
import {
|
|
55
56
|
recordProjector
|
|
56
|
-
} from "./chunk-
|
|
57
|
-
import "./chunk-
|
|
57
|
+
} from "./chunk-7A6QIROT.js";
|
|
58
|
+
import "./chunk-QY2P54Z2.js";
|
|
58
59
|
import "./chunk-N7ANFMA5.js";
|
|
59
60
|
import {
|
|
60
61
|
ProjectError
|
|
@@ -64,7 +65,7 @@ import "./chunk-FQLCD4HU.js";
|
|
|
64
65
|
import "./chunk-GUHOEIHP.js";
|
|
65
66
|
import "./chunk-IJBSOWHK.js";
|
|
66
67
|
import "./chunk-XWLMZKH2.js";
|
|
67
|
-
import "./chunk-
|
|
68
|
+
import "./chunk-LTMHE5VL.js";
|
|
68
69
|
import "./chunk-GJXOFDJT.js";
|
|
69
70
|
import "./chunk-PMJG2CXF.js";
|
|
70
71
|
import "./chunk-J6KL3COD.js";
|
|
@@ -230,8 +231,8 @@ function smokeCheck(context, spec) {
|
|
|
230
231
|
return 2;
|
|
231
232
|
}
|
|
232
233
|
const result = runSmoke(spec.root, file, context.env);
|
|
233
|
-
printSmoke(context.ui, result);
|
|
234
|
-
return result.findings.length === 0 ?
|
|
234
|
+
printSmoke(context.ui.results, result);
|
|
235
|
+
return result.findings.length === 0 ? EXIT.ok : EXIT.differences;
|
|
235
236
|
}
|
|
236
237
|
function projectOrCheck(context) {
|
|
237
238
|
const spec = specFrom(context);
|
|
@@ -248,7 +249,7 @@ function projectOrCheck(context) {
|
|
|
248
249
|
"fix",
|
|
249
250
|
"pmcp project (edit .agents/ or pmcp.toml, never the outputs)"
|
|
250
251
|
);
|
|
251
|
-
return
|
|
252
|
+
return EXIT.differences;
|
|
252
253
|
}
|
|
253
254
|
context.ui.success(`${result.outputs} outputs match`);
|
|
254
255
|
const broken = unmanagedHookProblems(spec.root, context.env);
|
|
@@ -258,7 +259,7 @@ function projectOrCheck(context) {
|
|
|
258
259
|
);
|
|
259
260
|
const over = spec.budget ? checkBudget(spec, spec.budget).problems : [];
|
|
260
261
|
for (const problem of over) context.ui.error(problem);
|
|
261
|
-
if (broken.length > 0 || over.length > 0) return
|
|
262
|
+
if (broken.length > 0 || over.length > 0) return EXIT.differences;
|
|
262
263
|
return smoke ? smokeCheck(context, spec) : 0;
|
|
263
264
|
}
|
|
264
265
|
function addAndProject(context, name) {
|
|
@@ -279,4 +280,4 @@ export {
|
|
|
279
280
|
projectOrCheck,
|
|
280
281
|
removeAndProject
|
|
281
282
|
};
|
|
282
|
-
//# sourceMappingURL=apply-
|
|
283
|
+
//# sourceMappingURL=apply-6JVJ7FDZ.js.map
|
|
@@ -8,18 +8,18 @@ import {
|
|
|
8
8
|
import {
|
|
9
9
|
projectFrom,
|
|
10
10
|
remoteCatalog
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-HYXOJYVR.js";
|
|
12
12
|
import "./chunk-RMATE45Z.js";
|
|
13
|
-
import {
|
|
14
|
-
invocation
|
|
15
|
-
} from "./chunk-J7UYNJCR.js";
|
|
16
13
|
import "./chunk-73AKO4UL.js";
|
|
17
14
|
import {
|
|
18
15
|
availableSpec
|
|
19
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-WBPVNCQO.js";
|
|
17
|
+
import {
|
|
18
|
+
invocation
|
|
19
|
+
} from "./chunk-J7UYNJCR.js";
|
|
20
20
|
import {
|
|
21
21
|
ArgumentError
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-Y6NFETNG.js";
|
|
23
23
|
import "./chunk-4CRRLDDS.js";
|
|
24
24
|
import "./chunk-YSAWTGNA.js";
|
|
25
25
|
|
|
@@ -45,12 +45,12 @@ var availableCommand = {
|
|
|
45
45
|
`
|
|
46
46
|
);
|
|
47
47
|
const { verifiedOn, examplesExecuted } = match.entry.evidence;
|
|
48
|
-
context.ui.line(
|
|
48
|
+
context.ui.results.line(
|
|
49
49
|
` ${examplesExecuted} examples executed${verifiedOn ? ` on ${verifiedOn}` : ""}`
|
|
50
50
|
);
|
|
51
51
|
const headings = match.entry.preview?.headings ?? [];
|
|
52
52
|
if (headings.length > 0) {
|
|
53
|
-
context.ui.line(` ${headings.join(" \xB7 ")}`);
|
|
53
|
+
context.ui.results.line(` ${headings.join(" \xB7 ")}`);
|
|
54
54
|
}
|
|
55
55
|
sayStanding(context, match.entry.line);
|
|
56
56
|
}
|
|
@@ -70,4 +70,4 @@ var availableCommand = {
|
|
|
70
70
|
export {
|
|
71
71
|
availableCommand
|
|
72
72
|
};
|
|
73
|
-
//# sourceMappingURL=available-
|
|
73
|
+
//# sourceMappingURL=available-74CMIBPD.js.map
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
change
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-HES44LTA.js";
|
|
4
4
|
import "./chunk-3V37OZQH.js";
|
|
5
5
|
import "./chunk-Z6WRFOFT.js";
|
|
6
|
-
import "./chunk-
|
|
6
|
+
import "./chunk-Y6NFETNG.js";
|
|
7
7
|
import "./chunk-FQLCD4HU.js";
|
|
8
8
|
import "./chunk-GUHOEIHP.js";
|
|
9
9
|
import "./chunk-IJBSOWHK.js";
|
|
@@ -15,4 +15,4 @@ var run = (context) => change(context, "broadcast");
|
|
|
15
15
|
export {
|
|
16
16
|
run
|
|
17
17
|
};
|
|
18
|
-
//# sourceMappingURL=broadcast-
|
|
18
|
+
//# sourceMappingURL=broadcast-VKZY7WSD.js.map
|
|
@@ -28,7 +28,7 @@ import {
|
|
|
28
28
|
import {
|
|
29
29
|
leaseSpecs,
|
|
30
30
|
readGitConfig
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-RZYZILU4.js";
|
|
32
32
|
import {
|
|
33
33
|
detect
|
|
34
34
|
} from "./chunk-SUDG7B6S.js";
|
|
@@ -69,11 +69,11 @@ import {
|
|
|
69
69
|
readHost,
|
|
70
70
|
readLock,
|
|
71
71
|
readLockFile
|
|
72
|
-
} from "./chunk-
|
|
72
|
+
} from "./chunk-7A6QIROT.js";
|
|
73
73
|
import {
|
|
74
74
|
DISABLE_ENV,
|
|
75
75
|
readLeaseSettings
|
|
76
|
-
} from "./chunk-
|
|
76
|
+
} from "./chunk-QY2P54Z2.js";
|
|
77
77
|
import {
|
|
78
78
|
ProjectError,
|
|
79
79
|
RULES_DIR,
|
|
@@ -6367,4 +6367,4 @@ export {
|
|
|
6367
6367
|
checkBudget,
|
|
6368
6368
|
readSpec
|
|
6369
6369
|
};
|
|
6370
|
-
//# sourceMappingURL=chunk-
|
|
6370
|
+
//# sourceMappingURL=chunk-25M2YWBH.js.map
|
|
@@ -0,0 +1,173 @@
|
|
|
1
|
+
import {
|
|
2
|
+
jsonOption,
|
|
3
|
+
nearestConfigOption
|
|
4
|
+
} from "./chunk-JPYQDOEW.js";
|
|
5
|
+
|
|
6
|
+
// src/commands/specs/sessions.ts
|
|
7
|
+
var SESSION_VERBS = [
|
|
8
|
+
"status",
|
|
9
|
+
"pause",
|
|
10
|
+
"resume",
|
|
11
|
+
"broadcast",
|
|
12
|
+
"unbroadcast",
|
|
13
|
+
"sweep",
|
|
14
|
+
"send",
|
|
15
|
+
"inbox",
|
|
16
|
+
"ack",
|
|
17
|
+
"reply"
|
|
18
|
+
];
|
|
19
|
+
var JSON_VERBS = [
|
|
20
|
+
"status",
|
|
21
|
+
"send",
|
|
22
|
+
"inbox",
|
|
23
|
+
"ack",
|
|
24
|
+
"reply"
|
|
25
|
+
];
|
|
26
|
+
var sessionsSpec = {
|
|
27
|
+
name: "sessions",
|
|
28
|
+
examples: [
|
|
29
|
+
"pmcp sessions",
|
|
30
|
+
'pmcp sessions broadcast "main moved; rebase before delivering"'
|
|
31
|
+
],
|
|
32
|
+
subcommands: [
|
|
33
|
+
{
|
|
34
|
+
name: "status",
|
|
35
|
+
describe: "Live sessions, pause, broadcasts and leases",
|
|
36
|
+
usage: "pmcp sessions [status] [--json]",
|
|
37
|
+
options: ["config", "json"],
|
|
38
|
+
examples: ["pmcp sessions status --json"]
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
name: "pause",
|
|
42
|
+
describe: "Refuse edits in every other session until resume",
|
|
43
|
+
usage: "pmcp sessions pause <reason> [--by <name>]",
|
|
44
|
+
options: ["by", "config"],
|
|
45
|
+
examples: ['pmcp sessions pause "release freeze"']
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
name: "resume",
|
|
49
|
+
describe: "Lift the pause",
|
|
50
|
+
usage: "pmcp sessions resume",
|
|
51
|
+
options: ["config"],
|
|
52
|
+
examples: ["pmcp sessions resume"]
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
name: "broadcast",
|
|
56
|
+
describe: "Deliver a note once to every session",
|
|
57
|
+
usage: "pmcp sessions broadcast <text> [--by <name>]",
|
|
58
|
+
options: ["by", "config"],
|
|
59
|
+
examples: ['pmcp sessions broadcast "main moved"']
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
name: "unbroadcast",
|
|
63
|
+
describe: "Withdraw the broadcasts",
|
|
64
|
+
usage: "pmcp sessions unbroadcast",
|
|
65
|
+
options: ["config"],
|
|
66
|
+
examples: ["pmcp sessions unbroadcast"]
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
name: "sweep",
|
|
70
|
+
describe: "Remove records whose process is gone",
|
|
71
|
+
usage: "pmcp sessions sweep",
|
|
72
|
+
options: ["config"],
|
|
73
|
+
examples: ["pmcp sessions sweep"]
|
|
74
|
+
},
|
|
75
|
+
{
|
|
76
|
+
name: "send",
|
|
77
|
+
describe: "Send a message to sessions",
|
|
78
|
+
usage: "pmcp sessions send --to <selector>... [--subject <s>] [--ttl <minutes>] [--once] [--wake] [--reply-to <id>] <body|->",
|
|
79
|
+
options: [
|
|
80
|
+
"to",
|
|
81
|
+
"subject",
|
|
82
|
+
"ttl",
|
|
83
|
+
"once",
|
|
84
|
+
"wake",
|
|
85
|
+
"reply-to",
|
|
86
|
+
"by",
|
|
87
|
+
"session",
|
|
88
|
+
"config",
|
|
89
|
+
"json"
|
|
90
|
+
],
|
|
91
|
+
examples: [
|
|
92
|
+
'pmcp sessions send --to role:reviewer --subject review "please look at 4f92"'
|
|
93
|
+
]
|
|
94
|
+
},
|
|
95
|
+
{
|
|
96
|
+
name: "inbox",
|
|
97
|
+
describe: "List your messages",
|
|
98
|
+
usage: "pmcp sessions inbox [--all] [--session <id>] [--json]",
|
|
99
|
+
options: ["all", "session", "config", "json"],
|
|
100
|
+
examples: ["pmcp sessions inbox --all"]
|
|
101
|
+
},
|
|
102
|
+
{
|
|
103
|
+
name: "ack",
|
|
104
|
+
describe: "Acknowledge messages by id",
|
|
105
|
+
usage: "pmcp sessions ack <id>... [--session <id>]",
|
|
106
|
+
options: ["session", "config", "json"],
|
|
107
|
+
examples: ["pmcp sessions ack 01J9Z"]
|
|
108
|
+
},
|
|
109
|
+
{
|
|
110
|
+
name: "reply",
|
|
111
|
+
describe: "Answer a message",
|
|
112
|
+
usage: "pmcp sessions reply <id> <body|->",
|
|
113
|
+
options: ["session", "by", "config", "json"],
|
|
114
|
+
examples: ['pmcp sessions reply 01J9Z "done"']
|
|
115
|
+
}
|
|
116
|
+
],
|
|
117
|
+
defaultSubcommand: "status",
|
|
118
|
+
describe: "Show and coordinate the live sessions of this workspace: pause, broadcast, sweep",
|
|
119
|
+
usage: "pmcp sessions [<subcommand>] [options]",
|
|
120
|
+
options: [
|
|
121
|
+
jsonOption,
|
|
122
|
+
nearestConfigOption,
|
|
123
|
+
{
|
|
124
|
+
name: "by",
|
|
125
|
+
describe: "Who pauses, broadcasts or sends; that session is exempt. Default operator.",
|
|
126
|
+
placeholder: "<name>"
|
|
127
|
+
},
|
|
128
|
+
{
|
|
129
|
+
name: "to",
|
|
130
|
+
describe: "Message recipients: all, session:<id>, alias:<name>, role:<name> or worktree:<path> (desk:<path> also works). Repeatable.",
|
|
131
|
+
placeholder: "<selector>",
|
|
132
|
+
repeat: true
|
|
133
|
+
},
|
|
134
|
+
{ name: "subject", describe: "Message subject.", placeholder: "<text>" },
|
|
135
|
+
{
|
|
136
|
+
name: "ttl",
|
|
137
|
+
describe: "Minutes until the message expires; default [sessions.mailbox] ttl_minutes.",
|
|
138
|
+
placeholder: "<minutes>"
|
|
139
|
+
},
|
|
140
|
+
{
|
|
141
|
+
name: "once",
|
|
142
|
+
describe: "Mark the message a one-time request, not a standing rule.",
|
|
143
|
+
boolean: true
|
|
144
|
+
},
|
|
145
|
+
{
|
|
146
|
+
name: "wake",
|
|
147
|
+
describe: "Also start a turn in idle recipients where the runtime allows it (Claude, opencode).",
|
|
148
|
+
boolean: true
|
|
149
|
+
},
|
|
150
|
+
{
|
|
151
|
+
name: "reply-to",
|
|
152
|
+
describe: "The message this one answers.",
|
|
153
|
+
placeholder: "<id>"
|
|
154
|
+
},
|
|
155
|
+
{
|
|
156
|
+
name: "session",
|
|
157
|
+
describe: "Whose inbox: the session id that reads, sends or acknowledges.",
|
|
158
|
+
placeholder: "<id>"
|
|
159
|
+
},
|
|
160
|
+
{
|
|
161
|
+
name: "all",
|
|
162
|
+
describe: "List every unexpired message, not only yours.",
|
|
163
|
+
boolean: true
|
|
164
|
+
}
|
|
165
|
+
]
|
|
166
|
+
};
|
|
167
|
+
|
|
168
|
+
export {
|
|
169
|
+
SESSION_VERBS,
|
|
170
|
+
JSON_VERBS,
|
|
171
|
+
sessionsSpec
|
|
172
|
+
};
|
|
173
|
+
//# sourceMappingURL=chunk-2GZKA33O.js.map
|
|
@@ -0,0 +1,159 @@
|
|
|
1
|
+
import {
|
|
2
|
+
configOption
|
|
3
|
+
} from "./chunk-JPYQDOEW.js";
|
|
4
|
+
|
|
5
|
+
// src/commands/specs/mailbox.ts
|
|
6
|
+
var mailboxSpec = {
|
|
7
|
+
name: "mailbox",
|
|
8
|
+
protocol: true,
|
|
9
|
+
describe: "Manage opt-in local peer mail and launcher credentials",
|
|
10
|
+
usage: "pmcp mailbox <subcommand> [options]",
|
|
11
|
+
subcommands: [
|
|
12
|
+
{
|
|
13
|
+
name: "init",
|
|
14
|
+
describe: "Create the project UUID and mailbox state",
|
|
15
|
+
usage: "pmcp mailbox init [--config <file>] [--state-dir <dir>]",
|
|
16
|
+
options: ["config", "state-dir"],
|
|
17
|
+
examples: ["pmcp mailbox init --config ./pmcp.toml"]
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
name: "actor",
|
|
21
|
+
describe: "Register an actor and write its private credential",
|
|
22
|
+
usage: "pmcp mailbox actor --actor <id> --actor-file <file> [--parent-binding <file>]",
|
|
23
|
+
options: ["config", "actor", "actor-file", "parent-binding"],
|
|
24
|
+
examples: [
|
|
25
|
+
"pmcp mailbox actor --actor reviewer --actor-file /private/reviewer.actor.json"
|
|
26
|
+
]
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
name: "rotate",
|
|
30
|
+
describe: "Replace an actor's credential (administration)",
|
|
31
|
+
usage: "pmcp mailbox rotate --actor <id> --actor-file <file> --operator",
|
|
32
|
+
options: ["config", "actor", "actor-file", "operator"],
|
|
33
|
+
examples: [
|
|
34
|
+
"pmcp mailbox rotate --actor reviewer --actor-file /private/reviewer.actor.json --operator"
|
|
35
|
+
]
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
name: "send",
|
|
39
|
+
describe: "Send a message from --input as the actor",
|
|
40
|
+
usage: "pmcp mailbox send --actor-file <file> --binding-file <file> --input <file>",
|
|
41
|
+
options: ["config", "actor-file", "binding-file", "input"],
|
|
42
|
+
examples: [
|
|
43
|
+
"pmcp mailbox send --actor-file a.json --binding-file b.json --input message.json"
|
|
44
|
+
]
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
name: "inbox",
|
|
48
|
+
describe: "List the actor's messages",
|
|
49
|
+
usage: "pmcp mailbox inbox --actor-file <file> --binding-file <file> [--input <file>]",
|
|
50
|
+
options: ["config", "actor-file", "binding-file", "input"],
|
|
51
|
+
examples: [
|
|
52
|
+
"pmcp mailbox inbox --actor-file a.json --binding-file b.json"
|
|
53
|
+
]
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
name: "read",
|
|
57
|
+
describe: "Read a message and record a receipt",
|
|
58
|
+
usage: "pmcp mailbox read --actor-file <file> --binding-file <file> --input <file>",
|
|
59
|
+
options: ["config", "actor-file", "binding-file", "input"],
|
|
60
|
+
examples: [
|
|
61
|
+
"pmcp mailbox read --actor-file a.json --binding-file b.json --input read.json"
|
|
62
|
+
]
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
name: "ack",
|
|
66
|
+
describe: "Acknowledge a read message",
|
|
67
|
+
usage: "pmcp mailbox ack --actor-file <file> --binding-file <file> --input <file>",
|
|
68
|
+
options: ["config", "actor-file", "binding-file", "input"],
|
|
69
|
+
examples: [
|
|
70
|
+
"pmcp mailbox ack --actor-file a.json --binding-file b.json --input ack.json"
|
|
71
|
+
]
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
name: "sessions",
|
|
75
|
+
describe: "List attached sessions",
|
|
76
|
+
usage: "pmcp mailbox sessions --actor-file <file> --binding-file <file>",
|
|
77
|
+
options: ["config", "actor-file", "binding-file"],
|
|
78
|
+
examples: [
|
|
79
|
+
"pmcp mailbox sessions --actor-file a.json --binding-file b.json"
|
|
80
|
+
]
|
|
81
|
+
},
|
|
82
|
+
{
|
|
83
|
+
name: "export",
|
|
84
|
+
describe: "Export correspondence (administration)",
|
|
85
|
+
usage: "pmcp mailbox export --operator --output <file> [--scope-actor <id>]",
|
|
86
|
+
options: ["config", "operator", "output", "scope-actor"],
|
|
87
|
+
examples: ["pmcp mailbox export --operator --output mail-export.json"]
|
|
88
|
+
},
|
|
89
|
+
{
|
|
90
|
+
name: "backup",
|
|
91
|
+
describe: "Back the mailbox state up (administration)",
|
|
92
|
+
usage: "pmcp mailbox backup --operator --output <file>",
|
|
93
|
+
options: ["config", "operator", "output"],
|
|
94
|
+
examples: ["pmcp mailbox backup --operator --output mail.backup"]
|
|
95
|
+
},
|
|
96
|
+
{
|
|
97
|
+
name: "restore",
|
|
98
|
+
describe: "Restore a backup (administration)",
|
|
99
|
+
usage: "pmcp mailbox restore --operator --input <file> --output <file>",
|
|
100
|
+
options: ["config", "operator", "input", "output"],
|
|
101
|
+
examples: [
|
|
102
|
+
"pmcp mailbox restore --operator --input mail.backup --output restored"
|
|
103
|
+
]
|
|
104
|
+
}
|
|
105
|
+
],
|
|
106
|
+
examples: [
|
|
107
|
+
"pmcp mailbox init --config ./pmcp.toml",
|
|
108
|
+
"pmcp mailbox actor --actor reviewer --actor-file /private/reviewer.actor.json"
|
|
109
|
+
],
|
|
110
|
+
options: [
|
|
111
|
+
configOption,
|
|
112
|
+
{
|
|
113
|
+
name: "state-dir",
|
|
114
|
+
describe: "Private mailbox state directory",
|
|
115
|
+
placeholder: "<dir>"
|
|
116
|
+
},
|
|
117
|
+
{ name: "actor", describe: "Registered actor ID", placeholder: "<id>" },
|
|
118
|
+
{
|
|
119
|
+
name: "actor-file",
|
|
120
|
+
describe: "Private actor credential file",
|
|
121
|
+
placeholder: "<file>"
|
|
122
|
+
},
|
|
123
|
+
{
|
|
124
|
+
name: "binding-file",
|
|
125
|
+
describe: "Private existing attachment file",
|
|
126
|
+
placeholder: "<file>"
|
|
127
|
+
},
|
|
128
|
+
{
|
|
129
|
+
name: "parent-binding",
|
|
130
|
+
describe: "Live parent attachment for bounded child delegation",
|
|
131
|
+
placeholder: "<file>"
|
|
132
|
+
},
|
|
133
|
+
{
|
|
134
|
+
name: "input",
|
|
135
|
+
describe: "Operation input JSON or backup source",
|
|
136
|
+
placeholder: "<file>"
|
|
137
|
+
},
|
|
138
|
+
{
|
|
139
|
+
name: "output",
|
|
140
|
+
describe: "New export or backup destination",
|
|
141
|
+
placeholder: "<file>"
|
|
142
|
+
},
|
|
143
|
+
{
|
|
144
|
+
name: "scope-actor",
|
|
145
|
+
describe: "Limit export to one actor's correspondence",
|
|
146
|
+
placeholder: "<id>"
|
|
147
|
+
},
|
|
148
|
+
{
|
|
149
|
+
name: "operator",
|
|
150
|
+
describe: "Explicit local administrator intent",
|
|
151
|
+
boolean: true
|
|
152
|
+
}
|
|
153
|
+
]
|
|
154
|
+
};
|
|
155
|
+
|
|
156
|
+
export {
|
|
157
|
+
mailboxSpec
|
|
158
|
+
};
|
|
159
|
+
//# sourceMappingURL=chunk-2HL2MFNI.js.map
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
configFrom
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-7CHUMF3E.js";
|
|
4
4
|
import {
|
|
5
5
|
publicMarketplaceRoot
|
|
6
6
|
} from "./chunk-73AKO4UL.js";
|
|
7
7
|
import {
|
|
8
8
|
many
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-Y6NFETNG.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-
|
|
53
|
+
//# sourceMappingURL=chunk-2MX5C7B2.js.map
|