@modootoday/pmcp 0.22.12 → 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.
- 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/dist/affected-D6FRJPPI.js +836 -0
- package/dist/{apply-LPKZZ6EL.js → apply-3PWUO4J5.js} +27 -22
- package/dist/{available-BFXLII4A.js → available-74CMIBPD.js} +9 -9
- package/dist/{broadcast-DZGMSZRG.js → broadcast-VKZY7WSD.js} +6 -5
- package/dist/chunk-2GZKA33O.js +173 -0
- package/dist/chunk-2HL2MFNI.js +159 -0
- package/dist/{chunk-OAX6MIOZ.js → chunk-2K4WYN4C.js} +2 -2
- package/dist/{chunk-PEMMV5YQ.js → chunk-2MX5C7B2.js} +3 -3
- package/dist/{chunk-7I7O7ZNT.js → chunk-3V37OZQH.js} +5 -3
- package/dist/chunk-43MXRTKH.js +134 -0
- package/dist/chunk-4VVQLWTS.js +93 -0
- package/dist/{chunk-DYZVHO2L.js → chunk-5HNLHI5F.js} +2 -2
- package/dist/{chunk-JEL35P7S.js → chunk-5NDUWEMW.js} +2 -2
- package/dist/chunk-65BW7Y6O.js +40 -0
- package/dist/{chunk-HUBJWC7T.js → chunk-6NRLBSEG.js} +7 -7
- package/dist/chunk-6QJ3F445.js +166 -0
- package/dist/{chunk-2OOWAGBE.js → chunk-72V6U7CZ.js} +3 -3
- package/dist/{chunk-RPCIROW7.js → chunk-7CHUMF3E.js} +2 -2
- package/dist/{chunk-INT7QLEU.js → chunk-7DJQASH3.js} +25 -6
- package/dist/chunk-7IRXUPM2.js +7 -0
- package/dist/{chunk-UDVYVRGJ.js → chunk-DNSHJIS4.js} +2 -2
- package/dist/{chunk-UMQLIRSU.js → chunk-DZTSCJOZ.js} +3 -3
- package/dist/{chunk-KEHB4FZP.js → chunk-E2E4HIEN.js} +49 -3
- package/dist/{chunk-SUJCVEBM.js → chunk-EQF64INS.js} +3 -3
- package/dist/chunk-F3R5HEUB.js +39 -0
- package/dist/chunk-FOLA4EUJ.js +261 -0
- package/dist/chunk-FQLCD4HU.js +24 -0
- package/dist/{chunk-OEH47H6A.js → chunk-GUHOEIHP.js} +3 -20
- package/dist/{chunk-B2WRYGHJ.js → chunk-HES44LTA.js} +5 -5
- package/dist/{chunk-RHJEGLYM.js → chunk-HF5D6B2U.js} +45 -6
- package/dist/{chunk-R5MT42JS.js → chunk-HYXOJYVR.js} +2 -2
- package/dist/chunk-JANBBPKP.js +50 -0
- package/dist/{chunk-ITOTOC6Y.js → chunk-JJFPSFDU.js} +3 -3
- package/dist/{chunk-XNML2KIC.js → chunk-JPYQDOEW.js} +3 -3
- package/dist/{chunk-SPZQRLL5.js → chunk-KYGGQPAH.js} +18 -6
- package/dist/{chunk-EX4YXPVW.js → chunk-LGRFYN5T.js} +2 -2
- package/dist/{chunk-DP326AER.js → chunk-LO54UUDE.js} +2 -2
- package/dist/{chunk-5QKXEWDB.js → chunk-MHKY6TNF.js} +6 -4
- package/dist/chunk-N7ANFMA5.js +171 -0
- package/dist/{chunk-KPKMEUUH.js → chunk-OGCJO6HQ.js} +9 -8
- package/dist/{chunk-N63QCJHX.js → chunk-P25V6NEX.js} +5 -5
- package/dist/{chunk-PUIWESU3.js → chunk-Q6V274OB.js} +8 -6
- package/dist/chunk-QR6A3TYP.js +315 -0
- package/dist/{chunk-EIDIVIAD.js → chunk-QYLOIM4U.js} +9 -2
- package/dist/{chunk-MIFPPUWY.js → chunk-RRKA3GF5.js} +4 -4
- package/dist/{chunk-7CSUKCU7.js → chunk-RZYZILU4.js} +17 -96
- package/dist/{chunk-FODUHLZM.js → chunk-SDQYZDHS.js} +2 -2
- package/dist/chunk-SGFTHKKS.js +86 -0
- package/dist/chunk-T6C3TSTO.js +99 -0
- 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-63RZGEVI.js → chunk-WQBKQTNT.js} +98 -26
- package/dist/{chunk-YGOWIJPE.js → chunk-WZYGM3FR.js} +6 -2
- package/dist/chunk-Y6NFETNG.js +232 -0
- package/dist/{chunk-D5MIZM6L.js → chunk-YRNFMPZB.js} +7 -8
- package/dist/{chunk-2GRECE6B.js → chunk-ZXMECZBI.js} +4 -4
- package/dist/{cli-34EDFXJA.js → cli-GFDT4YXM.js} +14 -15
- package/dist/{cli-JXPJFHUA.js → cli-YWV7FLYO.js} +24 -12
- package/dist/cli.js +317 -51
- package/dist/{completion-KTECNPVY.js → completion-OKGNN7DE.js} +25 -21
- package/dist/{diagnostics-I5VZHK42.js → diagnostics-N4XRRCQG.js} +10 -6
- package/dist/{doctor-JJ2VUNHT.js → doctor-3H6UYNEA.js} +27 -23
- package/dist/{entry-OT7BN3ID.js → entry-KDLLG6ED.js} +19 -15
- package/dist/{exec-mcp-3E4SRJUY.js → exec-mcp-AENALAHJ.js} +15 -11
- package/dist/{harness-Q236VJSU.js → harness-GRYTNUF2.js} +26 -44
- package/dist/harness-launch-gate.js +8 -4
- package/dist/harness-worker.js +10 -6
- package/dist/heavy-BGXKJKYB.js +1965 -0
- package/dist/hook-body.js +69 -21
- package/dist/hooks-V25ANQ4Q.js +24 -0
- package/dist/{host-LT5JMUFJ.js → host-4EGPADOJ.js} +11 -7
- package/dist/{host-UDC4HVX3.js → host-MLSWY7D7.js} +24 -17
- package/dist/{host-run-LD63JGN7.js → host-run-VI52IUKF.js} +10 -6
- package/dist/http.js +1 -1
- package/dist/{import-mcp-URVONIZ3.js → import-mcp-FIXFLUDM.js} +18 -14
- package/dist/index.d.ts +1 -1
- package/dist/index.js +17 -12
- package/dist/init-ALTBFUPP.js +14 -0
- package/dist/{install-7V6NIA7W.js → install-5JH4DSFF.js} +10 -10
- package/dist/{invoke-JW5OC2HO.js → invoke-7T7UY57O.js} +12 -8
- package/dist/{list-UM4DYJRL.js → list-JFZ7UZLV.js} +18 -14
- package/dist/{list-WK2IYUK7.js → list-LV5EKCF6.js} +11 -7
- package/dist/{logout-H5X4D26I.js → logout-7CNBO76Z.js} +15 -11
- package/dist/{logs-UHJM7ZCL.js → logs-2JEMSNSG.js} +11 -10
- package/dist/{mailbox-NIMBOQPA.js → mailbox-5FVFMQ2J.js} +12 -44
- package/dist/{mailbox-YN6PG66A.js → mailbox-ZHZWZMAY.js} +14 -21
- package/dist/{mainline-74WCH4T4.js → mainline-6PBT3VNR.js} +75 -126
- package/dist/{marketplace-G4VQET5W.js → marketplace-2X3OOEPW.js} +10 -9
- package/dist/{mcp-6P3MVT4V.js → mcp-MVQVMAKJ.js} +4 -4
- package/dist/{mcp-AXHV547W.js → mcp-PBTQ5SJW.js} +2 -2
- package/dist/{models-ISU4DCMA.js → models-XSF45MCD.js} +9 -5
- package/dist/{pause-CBZ3BTJL.js → pause-CMZOIHTJ.js} +6 -5
- package/dist/{preview-DT7DWG5F.js → preview-465CQJBQ.js} +4 -4
- package/dist/{project-6QUIC73W.js → project-FZGJRG2U.js} +14 -12
- package/dist/{reindex-I7RYWCUR.js → reindex-D62HQAN2.js} +7 -7
- package/dist/{report-ZHOHQ4PZ.js → report-UB7MXAUB.js} +14 -13
- package/dist/{resume-UJEWQ66P.js → resume-PAKIT4TT.js} +6 -5
- package/dist/{run-HQTB7N2R.js → run-TOP37ZQC.js} +14 -10
- package/dist/run-VGJDMA2O.js +23 -0
- package/dist/{serve-APEVIJD2.js → serve-LR7SJHNH.js} +13 -13
- package/dist/{session-YZVX4NGN.js → session-3YVVO2GR.js} +6 -6
- package/dist/{setup-SOUBEZ3H.js → setup-6AQUOWOH.js} +7 -4
- package/dist/{smoke-2FI5D74B.js → smoke-6X6IXQIQ.js} +4 -4
- package/dist/{start-login-ER7DEGYN.js → start-login-X37KGCCB.js} +16 -12
- package/dist/{status-KN2ZE64O.js → status-4PYPTYUB.js} +7 -6
- package/dist/{status-7NYXRZ3R.js → status-E4AFUOQO.js} +24 -13
- package/dist/{status-OGABWCPO.js → status-LBRK37GA.js} +35 -30
- package/dist/stdio.js +2 -2
- package/dist/{sweep-EPZCW63Q.js → sweep-VURZU6DI.js} +6 -5
- package/dist/{test-WRZQERYC.js → test-D2EEFUN2.js} +18 -14
- package/dist/{tui-YUHQ36FC.js → tui-D7E3MD3X.js} +45 -19
- package/dist/{unbroadcast-N6LXHAMT.js → unbroadcast-7AMLURCG.js} +6 -5
- package/dist/{validate-KFBCUFI4.js → validate-YXR7FJJX.js} +11 -9
- package/dist/wait-HEODT7KV.js +141 -0
- package/dist/{worker-OKBJNDEI.js → worker-WTBC6VYO.js} +12 -8
- package/dist/{worktree-create-KMXPQXIQ.js → worktree-create-FTSLMZWS.js} +2 -2
- package/docs/commands.md +108 -36
- package/docs/git-workflow.md +51 -0
- package/docs/hooks.md +11 -4
- package/docs/project-configuration.md +136 -20
- package/docs/terminal-workspace.md +2 -0
- package/docs/upgrading.md +54 -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-3C5FVHQ3.js +0 -7
- package/dist/chunk-3Y3HDMHA.js +0 -108
- package/dist/chunk-A4PKLESO.js +0 -112
- package/dist/chunk-E3DQB5LS.js +0 -48
- package/dist/chunk-GFOQDLPL.js +0 -35
- package/dist/chunk-JWRZDYB5.js +0 -59
- package/dist/chunk-LMUBBIE2.js +0 -83
- package/dist/chunk-SMZPYJQI.js +0 -151
- package/dist/hooks-PABOEQO6.js +0 -24
- package/dist/init-4O24ZNUQ.js +0 -14
- package/dist/run-GZK3XJ62.js +0 -19
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import {
|
|
2
2
|
specFrom
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-YRNFMPZB.js";
|
|
4
4
|
import {
|
|
5
5
|
policyRows
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-5HNLHI5F.js";
|
|
7
7
|
import "./chunk-7TD53M7L.js";
|
|
8
|
-
import "./chunk-
|
|
9
|
-
import "./chunk-
|
|
10
|
-
import "./chunk-UKR64U7J.js";
|
|
8
|
+
import "./chunk-7CHUMF3E.js";
|
|
9
|
+
import "./chunk-WQBKQTNT.js";
|
|
11
10
|
import "./chunk-UYBWUOLR.js";
|
|
11
|
+
import "./chunk-UKR64U7J.js";
|
|
12
12
|
import "./chunk-42SO7KYX.js";
|
|
13
13
|
import "./chunk-EATCUWGG.js";
|
|
14
14
|
import "./chunk-OFJIMBTL.js";
|
|
@@ -16,26 +16,30 @@ import "./chunk-LFFIQBNY.js";
|
|
|
16
16
|
import "./chunk-HQOB7OQS.js";
|
|
17
17
|
import "./chunk-73AKO4UL.js";
|
|
18
18
|
import "./chunk-M6X6HVQK.js";
|
|
19
|
-
import "./chunk-
|
|
19
|
+
import "./chunk-RZYZILU4.js";
|
|
20
20
|
import "./chunk-SUDG7B6S.js";
|
|
21
|
-
import "./chunk-
|
|
21
|
+
import "./chunk-3V37OZQH.js";
|
|
22
22
|
import "./chunk-Z6WRFOFT.js";
|
|
23
23
|
import "./chunk-B3OZ4GGO.js";
|
|
24
24
|
import "./chunk-Q5H3L6Y4.js";
|
|
25
25
|
import {
|
|
26
26
|
RUNTIME_IDS
|
|
27
27
|
} from "./chunk-ARXCYFFZ.js";
|
|
28
|
+
import "./chunk-V4NPDK6X.js";
|
|
28
29
|
import {
|
|
29
30
|
ArgumentError,
|
|
30
31
|
one
|
|
31
|
-
} from "./chunk-
|
|
32
|
-
import "./chunk-
|
|
33
|
-
import "./chunk-
|
|
32
|
+
} from "./chunk-Y6NFETNG.js";
|
|
33
|
+
import "./chunk-KYGGQPAH.js";
|
|
34
|
+
import "./chunk-FOLA4EUJ.js";
|
|
35
|
+
import "./chunk-N7ANFMA5.js";
|
|
34
36
|
import "./chunk-TYY5TYHF.js";
|
|
35
|
-
import "./chunk-
|
|
37
|
+
import "./chunk-T6C3TSTO.js";
|
|
38
|
+
import "./chunk-FQLCD4HU.js";
|
|
39
|
+
import "./chunk-GUHOEIHP.js";
|
|
36
40
|
import "./chunk-IJBSOWHK.js";
|
|
37
41
|
import "./chunk-XWLMZKH2.js";
|
|
38
|
-
import "./chunk-
|
|
42
|
+
import "./chunk-7IRXUPM2.js";
|
|
39
43
|
import "./chunk-GJXOFDJT.js";
|
|
40
44
|
import "./chunk-PMJG2CXF.js";
|
|
41
45
|
import "./chunk-J6KL3COD.js";
|
|
@@ -57,7 +61,7 @@ function run(context) {
|
|
|
57
61
|
context.ui.data(JSON.stringify({ version: 1, policies: rows }) + "\n");
|
|
58
62
|
return 0;
|
|
59
63
|
}
|
|
60
|
-
if (!rows.length) context.ui.line("No compiled policies.");
|
|
64
|
+
if (!rows.length) context.ui.results.line("No compiled policies.");
|
|
61
65
|
for (const row of rows)
|
|
62
66
|
context.ui.data(
|
|
63
67
|
[row.runtime, row.event, row.policy, row.mode, row.source].join(" ") + "\n"
|
|
@@ -67,4 +71,4 @@ function run(context) {
|
|
|
67
71
|
export {
|
|
68
72
|
run
|
|
69
73
|
};
|
|
70
|
-
//# sourceMappingURL=list-
|
|
74
|
+
//# sourceMappingURL=list-JFZ7UZLV.js.map
|
|
@@ -1,14 +1,16 @@
|
|
|
1
1
|
import {
|
|
2
2
|
catalogFrom,
|
|
3
3
|
rootsFrom
|
|
4
|
-
} from "./chunk-
|
|
5
|
-
import "./chunk-
|
|
4
|
+
} from "./chunk-2MX5C7B2.js";
|
|
5
|
+
import "./chunk-7CHUMF3E.js";
|
|
6
6
|
import "./chunk-73AKO4UL.js";
|
|
7
7
|
import {
|
|
8
8
|
listSpec
|
|
9
|
-
} from "./chunk-
|
|
10
|
-
import "./chunk-
|
|
11
|
-
import
|
|
9
|
+
} from "./chunk-7DJQASH3.js";
|
|
10
|
+
import "./chunk-5NDUWEMW.js";
|
|
11
|
+
import {
|
|
12
|
+
ArgumentError
|
|
13
|
+
} from "./chunk-Y6NFETNG.js";
|
|
12
14
|
import "./chunk-4CRRLDDS.js";
|
|
13
15
|
import "./chunk-YSAWTGNA.js";
|
|
14
16
|
import "./chunk-GJXOFDJT.js";
|
|
@@ -18,6 +20,8 @@ import "./chunk-PMJG2CXF.js";
|
|
|
18
20
|
var listCommand = {
|
|
19
21
|
...listSpec,
|
|
20
22
|
run(context) {
|
|
23
|
+
if (context.args.positional.length > 0)
|
|
24
|
+
throw new ArgumentError(`unexpected ${context.args.positional[0]}`);
|
|
21
25
|
const rejected = [];
|
|
22
26
|
const entries = catalogFrom(
|
|
23
27
|
context,
|
|
@@ -36,7 +40,7 @@ var listCommand = {
|
|
|
36
40
|
context.ui.error("no skills found", rootsFrom(context).join(" "));
|
|
37
41
|
return 1;
|
|
38
42
|
}
|
|
39
|
-
context.ui.table(
|
|
43
|
+
context.ui.results.table(
|
|
40
44
|
entries.map((entry) => {
|
|
41
45
|
const tags = [entry.kind, entry.tier].filter(Boolean).join(", ");
|
|
42
46
|
return [
|
|
@@ -65,4 +69,4 @@ var listCommand = {
|
|
|
65
69
|
export {
|
|
66
70
|
listCommand
|
|
67
71
|
};
|
|
68
|
-
//# sourceMappingURL=list-
|
|
72
|
+
//# sourceMappingURL=list-LV5EKCF6.js.map
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import {
|
|
2
2
|
serverFrom
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-RRKA3GF5.js";
|
|
4
4
|
import {
|
|
5
5
|
logout
|
|
6
6
|
} from "./chunk-E2YOZ2FF.js";
|
|
7
7
|
import "./chunk-DZ2MRTYT.js";
|
|
8
8
|
import "./chunk-UPQTAHUK.js";
|
|
9
|
-
import "./chunk-
|
|
10
|
-
import "./chunk-
|
|
11
|
-
import "./chunk-UKR64U7J.js";
|
|
9
|
+
import "./chunk-7CHUMF3E.js";
|
|
10
|
+
import "./chunk-WQBKQTNT.js";
|
|
12
11
|
import "./chunk-UYBWUOLR.js";
|
|
12
|
+
import "./chunk-UKR64U7J.js";
|
|
13
13
|
import "./chunk-42SO7KYX.js";
|
|
14
14
|
import "./chunk-EATCUWGG.js";
|
|
15
15
|
import "./chunk-OFJIMBTL.js";
|
|
@@ -17,21 +17,25 @@ import "./chunk-LFFIQBNY.js";
|
|
|
17
17
|
import "./chunk-HQOB7OQS.js";
|
|
18
18
|
import "./chunk-73AKO4UL.js";
|
|
19
19
|
import "./chunk-M6X6HVQK.js";
|
|
20
|
-
import "./chunk-
|
|
20
|
+
import "./chunk-RZYZILU4.js";
|
|
21
21
|
import "./chunk-SUDG7B6S.js";
|
|
22
|
-
import "./chunk-
|
|
22
|
+
import "./chunk-3V37OZQH.js";
|
|
23
23
|
import "./chunk-Z6WRFOFT.js";
|
|
24
24
|
import "./chunk-B3OZ4GGO.js";
|
|
25
25
|
import "./chunk-Q5H3L6Y4.js";
|
|
26
26
|
import "./chunk-ARXCYFFZ.js";
|
|
27
|
-
import "./chunk-A4PKLESO.js";
|
|
28
27
|
import "./chunk-V4NPDK6X.js";
|
|
29
|
-
import "./chunk-
|
|
28
|
+
import "./chunk-Y6NFETNG.js";
|
|
29
|
+
import "./chunk-KYGGQPAH.js";
|
|
30
|
+
import "./chunk-FOLA4EUJ.js";
|
|
31
|
+
import "./chunk-N7ANFMA5.js";
|
|
30
32
|
import "./chunk-TYY5TYHF.js";
|
|
31
|
-
import "./chunk-
|
|
33
|
+
import "./chunk-T6C3TSTO.js";
|
|
34
|
+
import "./chunk-FQLCD4HU.js";
|
|
35
|
+
import "./chunk-GUHOEIHP.js";
|
|
32
36
|
import "./chunk-IJBSOWHK.js";
|
|
33
37
|
import "./chunk-XWLMZKH2.js";
|
|
34
|
-
import "./chunk-
|
|
38
|
+
import "./chunk-7IRXUPM2.js";
|
|
35
39
|
import "./chunk-GJXOFDJT.js";
|
|
36
40
|
import "./chunk-PMJG2CXF.js";
|
|
37
41
|
import "./chunk-J6KL3COD.js";
|
|
@@ -46,4 +50,4 @@ async function run(context) {
|
|
|
46
50
|
export {
|
|
47
51
|
run
|
|
48
52
|
};
|
|
49
|
-
//# sourceMappingURL=logout-
|
|
53
|
+
//# sourceMappingURL=logout-7CNBO76Z.js.map
|
|
@@ -6,24 +6,26 @@ import {
|
|
|
6
6
|
pruneLogs,
|
|
7
7
|
readLogs,
|
|
8
8
|
tail
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-MHKY6TNF.js";
|
|
10
10
|
import {
|
|
11
11
|
configFrom
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-7CHUMF3E.js";
|
|
13
13
|
import {
|
|
14
14
|
isLogLevel
|
|
15
15
|
} from "./chunk-HQOB7OQS.js";
|
|
16
|
-
import "./chunk-
|
|
16
|
+
import "./chunk-3V37OZQH.js";
|
|
17
17
|
import "./chunk-Z6WRFOFT.js";
|
|
18
18
|
import {
|
|
19
19
|
logsSpec
|
|
20
|
-
} from "./chunk-
|
|
21
|
-
import "./chunk-
|
|
20
|
+
} from "./chunk-WZYGM3FR.js";
|
|
21
|
+
import "./chunk-JPYQDOEW.js";
|
|
22
22
|
import {
|
|
23
23
|
ArgumentError,
|
|
24
|
+
noConfig,
|
|
24
25
|
one
|
|
25
|
-
} from "./chunk-
|
|
26
|
-
import "./chunk-
|
|
26
|
+
} from "./chunk-Y6NFETNG.js";
|
|
27
|
+
import "./chunk-FQLCD4HU.js";
|
|
28
|
+
import "./chunk-GUHOEIHP.js";
|
|
27
29
|
import "./chunk-IJBSOWHK.js";
|
|
28
30
|
import "./chunk-GJXOFDJT.js";
|
|
29
31
|
import "./chunk-PMJG2CXF.js";
|
|
@@ -92,8 +94,7 @@ async function runLogs(context, location) {
|
|
|
92
94
|
// src/commands/logs.ts
|
|
93
95
|
function run(context) {
|
|
94
96
|
const config = configFrom(context);
|
|
95
|
-
if (!config)
|
|
96
|
-
throw new ArgumentError("no pmcp.toml here or above; pass --config");
|
|
97
|
+
if (!config) throw noConfig();
|
|
97
98
|
const location = logLocation(config, context.env);
|
|
98
99
|
if (!context.args.flags.has("json") && !location.file)
|
|
99
100
|
pruneLogs(location.dir, location.keepDays);
|
|
@@ -103,4 +104,4 @@ var logsCommand = { ...logsSpec, run };
|
|
|
103
104
|
export {
|
|
104
105
|
logsCommand
|
|
105
106
|
};
|
|
106
|
-
//# sourceMappingURL=logs-
|
|
107
|
+
//# sourceMappingURL=logs-2JEMSNSG.js.map
|
|
@@ -1,6 +1,9 @@
|
|
|
1
|
+
import {
|
|
2
|
+
inferSession
|
|
3
|
+
} from "./chunk-65BW7Y6O.js";
|
|
1
4
|
import {
|
|
2
5
|
storeFrom
|
|
3
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-HES44LTA.js";
|
|
4
7
|
import {
|
|
5
8
|
pmcpCommand
|
|
6
9
|
} from "./chunk-EATCUWGG.js";
|
|
@@ -12,7 +15,7 @@ import {
|
|
|
12
15
|
inboxKey,
|
|
13
16
|
normalizeSelector,
|
|
14
17
|
sentBy
|
|
15
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-3V37OZQH.js";
|
|
16
19
|
import {
|
|
17
20
|
ancestors
|
|
18
21
|
} from "./chunk-Z6WRFOFT.js";
|
|
@@ -20,8 +23,9 @@ import {
|
|
|
20
23
|
ArgumentError,
|
|
21
24
|
many,
|
|
22
25
|
one
|
|
23
|
-
} from "./chunk-
|
|
24
|
-
import "./chunk-
|
|
26
|
+
} from "./chunk-Y6NFETNG.js";
|
|
27
|
+
import "./chunk-FQLCD4HU.js";
|
|
28
|
+
import "./chunk-GUHOEIHP.js";
|
|
25
29
|
import "./chunk-IJBSOWHK.js";
|
|
26
30
|
import "./chunk-GJXOFDJT.js";
|
|
27
31
|
import "./chunk-PMJG2CXF.js";
|
|
@@ -30,42 +34,6 @@ import "./chunk-PMJG2CXF.js";
|
|
|
30
34
|
import { readFileSync } from "fs";
|
|
31
35
|
import { homedir } from "os";
|
|
32
36
|
|
|
33
|
-
// src/sessions/identity.ts
|
|
34
|
-
var SESSION_VARIABLES = [
|
|
35
|
-
["codex", "CODEX_THREAD_ID"],
|
|
36
|
-
["grok", "GROK_SESSION_ID"],
|
|
37
|
-
["antigravity", "ANTIGRAVITY_CONVERSATION_ID"],
|
|
38
|
-
["claude", "CLAUDE_CODE_SESSION_ID"]
|
|
39
|
-
];
|
|
40
|
-
var MARKERS = [
|
|
41
|
-
["codex", "CODEX_THREAD_ID"],
|
|
42
|
-
["grok", "GROK_AGENT"],
|
|
43
|
-
["antigravity", "ANTIGRAVITY_AGENT"],
|
|
44
|
-
["opencode", "OPENCODE"],
|
|
45
|
-
["gemini", "GEMINI_CLI"],
|
|
46
|
-
["claude", "CLAUDECODE"]
|
|
47
|
-
];
|
|
48
|
-
function inferSession(env, records, chain) {
|
|
49
|
-
const live = records.filter(
|
|
50
|
-
(record) => record.live && record.pid !== void 0
|
|
51
|
-
);
|
|
52
|
-
for (const pid of chain) {
|
|
53
|
-
const record = live.find((entry) => entry.pid === pid);
|
|
54
|
-
if (record)
|
|
55
|
-
return {
|
|
56
|
-
session: record.session,
|
|
57
|
-
...record.runtime ? { runtime: record.runtime } : {},
|
|
58
|
-
via: "process"
|
|
59
|
-
};
|
|
60
|
-
}
|
|
61
|
-
for (const [runtime, name] of SESSION_VARIABLES) {
|
|
62
|
-
const value = env[name];
|
|
63
|
-
if (value) return { session: value, runtime, via: "environment" };
|
|
64
|
-
}
|
|
65
|
-
const marker = MARKERS.find(([, name]) => env[name]);
|
|
66
|
-
return marker ? { runtime: marker[0] } : {};
|
|
67
|
-
}
|
|
68
|
-
|
|
69
37
|
// src/sessions/wake/index.ts
|
|
70
38
|
var TRANSPORTS = {
|
|
71
39
|
claude: async () => (await import("./claude-XVLF4N4S.js")).claudeInbox,
|
|
@@ -179,7 +147,7 @@ function print(context, value, line) {
|
|
|
179
147
|
if (context.args.flags.has("json"))
|
|
180
148
|
context.ui.data(`${JSON.stringify(value, null, 2)}
|
|
181
149
|
`);
|
|
182
|
-
else context.ui.line(line);
|
|
150
|
+
else context.ui.results.line(line);
|
|
183
151
|
}
|
|
184
152
|
async function sent(context, store, to, replyTo) {
|
|
185
153
|
const me = caller(context, store);
|
|
@@ -251,11 +219,11 @@ function inbox(context) {
|
|
|
251
219
|
`);
|
|
252
220
|
return 0;
|
|
253
221
|
}
|
|
254
|
-
if (rows.length === 0) context.ui.line("no messages");
|
|
222
|
+
if (rows.length === 0) context.ui.results.line("no messages");
|
|
255
223
|
for (const row of rows) {
|
|
256
224
|
const subject = row.subject ? ` (${row.subject})` : "";
|
|
257
225
|
const once = row.once ? " [once]" : "";
|
|
258
|
-
context.ui.line(
|
|
226
|
+
context.ui.results.line(
|
|
259
227
|
`${row.id} from ${sender(row)} to ${row.to.join(", ")}${subject}${once}: ${row.body}`
|
|
260
228
|
);
|
|
261
229
|
}
|
|
@@ -281,4 +249,4 @@ export {
|
|
|
281
249
|
reply,
|
|
282
250
|
send
|
|
283
251
|
};
|
|
284
|
-
//# sourceMappingURL=mailbox-
|
|
252
|
+
//# sourceMappingURL=mailbox-5FVFMQ2J.js.map
|
|
@@ -1,14 +1,15 @@
|
|
|
1
1
|
import {
|
|
2
2
|
configFrom
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-7CHUMF3E.js";
|
|
4
4
|
import {
|
|
5
5
|
mailboxSpec
|
|
6
|
-
} from "./chunk-
|
|
7
|
-
import "./chunk-
|
|
6
|
+
} from "./chunk-2HL2MFNI.js";
|
|
7
|
+
import "./chunk-JPYQDOEW.js";
|
|
8
8
|
import {
|
|
9
9
|
ArgumentError,
|
|
10
|
-
one
|
|
11
|
-
|
|
10
|
+
one,
|
|
11
|
+
unknownSubcommand
|
|
12
|
+
} from "./chunk-Y6NFETNG.js";
|
|
12
13
|
import {
|
|
13
14
|
MailboxError,
|
|
14
15
|
MailboxService,
|
|
@@ -31,19 +32,9 @@ import "./chunk-PMJG2CXF.js";
|
|
|
31
32
|
// src/commands/mailbox.ts
|
|
32
33
|
import { readFileSync, writeFileSync } from "fs";
|
|
33
34
|
import { resolve } from "path";
|
|
34
|
-
var allowed =
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
rotate: ["config", "actor", "actor-file", "operator"],
|
|
38
|
-
send: ["config", "actor-file", "binding-file", "input"],
|
|
39
|
-
inbox: ["config", "actor-file", "binding-file", "input"],
|
|
40
|
-
read: ["config", "actor-file", "binding-file", "input"],
|
|
41
|
-
ack: ["config", "actor-file", "binding-file", "input"],
|
|
42
|
-
sessions: ["config", "actor-file", "binding-file"],
|
|
43
|
-
export: ["config", "operator", "output", "scope-actor"],
|
|
44
|
-
backup: ["config", "operator", "output"],
|
|
45
|
-
restore: ["config", "operator", "input", "output"]
|
|
46
|
-
};
|
|
35
|
+
var allowed = Object.fromEntries(
|
|
36
|
+
(mailboxSpec.subcommands ?? []).map((sub) => [sub.name, sub.options ?? []])
|
|
37
|
+
);
|
|
47
38
|
function required(context, name) {
|
|
48
39
|
const value = one(context.args, name);
|
|
49
40
|
if (!value) throw new ArgumentError(`Provide --${name}`);
|
|
@@ -54,8 +45,10 @@ var mailboxCommand = {
|
|
|
54
45
|
async run(context) {
|
|
55
46
|
const [verb, ...extra] = context.args.positional;
|
|
56
47
|
const supported = verb ? allowed[verb] : void 0;
|
|
57
|
-
if (!supported
|
|
58
|
-
throw
|
|
48
|
+
if (!supported)
|
|
49
|
+
throw unknownSubcommand("mailbox", verb, Object.keys(allowed));
|
|
50
|
+
if (extra.length > 0)
|
|
51
|
+
throw new ArgumentError(`unexpected ${extra.join(" ")}`);
|
|
59
52
|
for (const key of [...context.args.options.keys(), ...context.args.flags]) {
|
|
60
53
|
if (!supported.includes(key))
|
|
61
54
|
throw new ArgumentError(`--${key} is not supported by mailbox ${verb}`);
|
|
@@ -186,4 +179,4 @@ var mailboxCommand = {
|
|
|
186
179
|
export {
|
|
187
180
|
mailboxCommand
|
|
188
181
|
};
|
|
189
|
-
//# sourceMappingURL=mailbox-
|
|
182
|
+
//# sourceMappingURL=mailbox-ZHZWZMAY.js.map
|