@modootoday/pmcp 0.31.0 → 0.33.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/dist/{affected-4FILH743.js → affected-CLIKMDJJ.js} +3 -2
- package/dist/{apply-O36MB3Q5.js → apply-PHXWER4P.js} +15 -14
- package/dist/{available-74CMIBPD.js → available-CYDZYY7E.js} +3 -2
- package/dist/{broadcast-U7ZYOJWE.js → broadcast-4YBKHLXV.js} +5 -5
- package/dist/{chunk-PTD3YQIT.js → chunk-2D36J3YZ.js} +9 -6
- package/dist/{chunk-NPLTVGBP.js → chunk-3H7UTRJW.js} +7 -7
- package/dist/{chunk-V5ZOISWG.js → chunk-3QU7Z7SJ.js} +4 -4
- package/dist/{chunk-2UKP5A7F.js → chunk-47MNSTNA.js} +3 -3
- package/dist/{chunk-C3G75JH7.js → chunk-4B2VDTHL.js} +16 -5
- package/dist/{chunk-65BW7Y6O.js → chunk-4F4CMDKZ.js} +1 -1
- package/dist/{chunk-YOWIYFIV.js → chunk-4U4GLMZ6.js} +5 -8
- package/dist/{chunk-JANBBPKP.js → chunk-5VGNZSB7.js} +6 -6
- package/dist/{chunk-5SMF2OKY.js → chunk-6NVAKB2U.js} +3 -3
- package/dist/{chunk-6FOP5S63.js → chunk-7RRZGHXM.js} +5 -5
- package/dist/{chunk-Y2XASHVY.js → chunk-AXNXNFSV.js} +2 -2
- package/dist/{chunk-HF5D6B2U.js → chunk-BN73TTTP.js} +7 -10
- package/dist/{chunk-OF42VZRG.js → chunk-CD3NHHQ3.js} +2 -2
- package/dist/chunk-CGFLYYGD.js +175 -0
- package/dist/{chunk-E2E4HIEN.js → chunk-CSZ2HI2R.js} +2 -2
- package/dist/{chunk-WZGK5TPF.js → chunk-DGVXKZHP.js} +22 -6
- package/dist/{chunk-ITDJ2EXN.js → chunk-DIWQOLPW.js} +2 -2
- package/dist/chunk-EWEY3ASH.js +21 -0
- package/dist/{chunk-KFIKI44F.js → chunk-EWTJTS54.js} +14 -14
- package/dist/{chunk-SLWE4SGW.js → chunk-FDFVAZOE.js} +11 -15
- package/dist/{chunk-RQQHZEVM.js → chunk-GTPQUQCP.js} +2 -2
- package/dist/{chunk-VLY6AGVN.js → chunk-HGVYHF3S.js} +3 -3
- package/dist/{chunk-NZTZHTW3.js → chunk-I4IQUTR4.js} +3 -3
- package/dist/{chunk-7DJQASH3.js → chunk-IH76KECZ.js} +10 -34
- package/dist/{chunk-5WAMDZHF.js → chunk-JFZU46JO.js} +2 -2
- package/dist/{chunk-Q6V274OB.js → chunk-JNW2Z36X.js} +2 -2
- package/dist/chunk-JOGLKWN7.js +52 -0
- package/dist/{chunk-VBVNOLRR.js → chunk-K4ZG3BXL.js} +2 -2
- package/dist/{chunk-JZKAJUVT.js → chunk-KESQUAKO.js} +2 -2
- package/dist/{chunk-DLM2BQXY.js → chunk-KR3D7TQO.js} +3 -3
- package/dist/{chunk-UVTGY2R3.js → chunk-KRDNVEV6.js} +4 -7
- package/dist/{chunk-2HL2MFNI.js → chunk-KWSCDIE2.js} +2 -2
- package/dist/{chunk-RQWJGNS6.js → chunk-MEQ43M6X.js} +2 -2
- package/dist/{chunk-QYLOIM4U.js → chunk-MFD2UEJY.js} +6 -8
- package/dist/{chunk-LVCASOV4.js → chunk-MIOKNRMY.js} +4 -2
- package/dist/{chunk-JPYQDOEW.js → chunk-MPYM2HYV.js} +7 -9
- package/dist/{chunk-YJVSN6UN.js → chunk-NFWN3AMZ.js} +3 -3
- package/dist/{chunk-GQRDEIQA.js → chunk-NQBSTHYF.js} +1 -1
- package/dist/{chunk-I4U2A6HP.js → chunk-NQVAFHDK.js} +2 -2
- package/dist/{chunk-LXWAU7AX.js → chunk-OOH47XJH.js} +6 -6
- package/dist/chunk-PN3U7FPZ.js +7 -0
- package/dist/{chunk-V4NPDK6X.js → chunk-QRLTTS5K.js} +1 -1
- package/dist/{chunk-O7OYOL64.js → chunk-RBWTJQYR.js} +6 -13
- package/dist/{chunk-QEH7WOBC.js → chunk-RM6IPG7B.js} +2 -2
- package/dist/{chunk-54FOQB2E.js → chunk-S5L65IJL.js} +2 -2
- package/dist/{chunk-4VVQLWTS.js → chunk-SXFW4COX.js} +2 -2
- package/dist/{chunk-WZYGM3FR.js → chunk-TLHWUYTW.js} +5 -5
- package/dist/{chunk-S6QMSCFS.js → chunk-TRAC427I.js} +3 -3
- package/dist/{chunk-D7IDT7OA.js → chunk-UFGGQVB7.js} +5 -5
- package/dist/{chunk-OIKT4SYO.js → chunk-UOFHM6OM.js} +2 -2
- package/dist/{chunk-NQCAKDRY.js → chunk-UORJZ7TK.js} +3 -3
- package/dist/{chunk-A4P3IIPE.js → chunk-VCQQHIH5.js} +5 -5
- package/dist/{chunk-QRCAGKC6.js → chunk-WWNY53B6.js} +14 -11
- package/dist/{chunk-WBPVNCQO.js → chunk-WYK57MIH.js} +6 -6
- package/dist/{chunk-TQRLWO4F.js → chunk-XPYY6K5L.js} +2 -2
- package/dist/{chunk-T6C3TSTO.js → chunk-YKYHM54P.js} +36 -2
- package/dist/{cli-NSZLKKLU.js → cli-33J5JI7Q.js} +7 -7
- package/dist/{cli-ZOY2274X.js → cli-TVVP3DZ5.js} +10 -10
- package/dist/cli.js +19 -19
- package/dist/{completion-7QNGLW4X.js → completion-KM3C2SHI.js} +18 -18
- package/dist/{diagnostics-4FUIW53N.js → diagnostics-HQIZ5M24.js} +9 -8
- package/dist/{doctor-T647TNS5.js → doctor-PIJMN7XM.js} +7 -6
- package/dist/{doctor-3XJJBENL.js → doctor-UGWGKB5U.js} +18 -17
- package/dist/{entry-E65VAN5N.js → entry-VNL45DQN.js} +15 -14
- package/dist/{exec-mcp-VYS4FTKF.js → exec-mcp-2QE7TWE4.js} +12 -11
- package/dist/{harness-2MCF2ZWN.js → harness-5QEGA4RC.js} +3 -3
- package/dist/harness-launch-gate.js +8 -7
- package/dist/harness-pane-runner.js +3 -2
- package/dist/harness-worker.js +10 -9
- package/dist/{heavy-AZSP6VEW.js → heavy-E2LBLJ7P.js} +10 -9
- package/dist/{hooks-SEC6WIP5.js → hooks-VOKZV5M4.js} +5 -5
- package/dist/{host-2CKQ6H6W.js → host-2F5PG3DF.js} +6 -6
- package/dist/{host-VPSNIHRO.js → host-IZ2Y55HL.js} +9 -8
- package/dist/{host-33YTCKQK.js → host-RJ72SAF6.js} +14 -13
- package/dist/{host-run-AVJRPDL6.js → host-run-EQQDEUW5.js} +7 -6
- package/dist/http.d.ts +4 -4
- package/dist/http.js +4 -3
- package/dist/{import-mcp-NCOFK75O.js → import-mcp-HEAIC23N.js} +11 -10
- package/dist/index.d.ts +6 -7
- package/dist/index.js +18 -17
- package/dist/init-CVKLSL5D.js +14 -0
- package/dist/{install-5JH4DSFF.js → install-ITEWB6V3.js} +3 -2
- package/dist/{invoke-XY5FIQZB.js → invoke-TA2SYXFJ.js} +12 -11
- package/dist/{list-LV5EKCF6.js → list-CNLGT6TK.js} +3 -2
- package/dist/{list-M6MMCCNY.js → list-N7DWTEPL.js} +13 -12
- package/dist/{load-BEUBABtB.d.ts → load-C6Iite0Q.d.ts} +1 -1
- package/dist/{logout-WJDFPQCF.js → logout-FVMOFMES.js} +12 -11
- package/dist/{logs-J4W6GFMK.js → logs-UQ3FJ5RY.js} +3 -3
- package/dist/mailbox/index.js +5 -4
- package/dist/{mailbox-6MHH6CUA.js → mailbox-AZR6YUC5.js} +5 -5
- package/dist/{mailbox-ZHZWZMAY.js → mailbox-GSGP5EGX.js} +6 -5
- package/dist/{mainline-HQPAQ5N2.js → mainline-GYF4BNMI.js} +7 -6
- package/dist/{marketplace-2X3OOEPW.js → marketplace-S3DXRVIR.js} +16 -8
- package/dist/{mcp-DGNTEMHQ.js → mcp-CAUFKA44.js} +4 -4
- package/dist/{measure-BR6R5ZGJ.js → measure-QB7SGMO3.js} +7 -7
- package/dist/{models-XSF45MCD.js → models-YEMUWADC.js} +3 -2
- package/dist/{owners-MPI22SFU.js → owners-E3WYJML3.js} +3 -3
- package/dist/{pause-3IMVYXQQ.js → pause-HVXLAT7D.js} +5 -5
- package/dist/{plan-KGGJRUY5.js → plan-T2GT3YN6.js} +7 -6
- package/dist/{preview-465CQJBQ.js → preview-PPA6UJDD.js} +3 -2
- package/dist/{project-UQQLPD4K.js → project-UGPOUTTR.js} +7 -7
- package/dist/{recovery-HB2YFQSQ.js → recovery-7ATXH6W5.js} +5 -4
- package/dist/{reindex-D62HQAN2.js → reindex-KQJAX323.js} +4 -3
- package/dist/{resume-7LCSV4X3.js → resume-MMHI3BNI.js} +5 -5
- package/dist/{run-I7425NVX.js → run-O6OYB423.js} +11 -10
- package/dist/{run-UKTQKE5X.js → run-Z2RXQJPJ.js} +4 -4
- package/dist/{serve-EAYEISOY.js → serve-M4PZOOAW.js} +12 -10
- package/dist/{session-3YVVO2GR.js → session-BTN4JXQ4.js} +3 -2
- package/dist/{setup-V7QJKJ3M.js → setup-O75KDANV.js} +4 -3
- package/dist/{smoke-GZECLXOJ.js → smoke-UK42EV7O.js} +3 -3
- package/dist/{start-login-OYS26DEB.js → start-login-GY62GMNC.js} +12 -11
- package/dist/{status-QFMN7IUG.js → status-GQHMLK4G.js} +5 -5
- package/dist/{status-K5SO4Q5K.js → status-YMUZYN5M.js} +12 -11
- package/dist/{status-NI4TJ56E.js → status-YWXOVGE3.js} +15 -14
- package/dist/stdio.d.ts +1 -1
- package/dist/stdio.js +7 -6
- package/dist/{sweep-BS7HVSNP.js → sweep-UVD3KAFD.js} +5 -5
- package/dist/{test-72IQFIXF.js → test-SBP54LNA.js} +13 -12
- package/dist/{tools-gpHNq9Dh.d.ts → tools-Dnu9wAAm.d.ts} +20 -6
- package/dist/{tui-O6AP46M3.js → tui-TB7YQLMP.js} +5 -5
- package/dist/{unbroadcast-GRGX3F6T.js → unbroadcast-YWUKATJK.js} +5 -5
- package/dist/{validate-YXR7FJJX.js → validate-MIVCL2ZK.js} +5 -3
- package/dist/{worker-UUYKNLVW.js → worker-4VBEX5KF.js} +13 -12
- package/docs/compatibility.md +5 -0
- package/docs/project-configuration.md +36 -35
- package/docs/upgrading.md +22 -1
- 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/dist/chunk-3QW5KA52.js +0 -7
- package/dist/chunk-BU65MNVU.js +0 -13
- package/dist/chunk-VEXPKCAC.js +0 -175
- package/dist/init-VHCYXPTG.js +0 -14
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
MailboxStore,
|
|
5
5
|
readCredential,
|
|
6
6
|
writeBindingFile
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-NQVAFHDK.js";
|
|
8
8
|
|
|
9
9
|
// src/mailbox/attachment.ts
|
|
10
10
|
async function attachMailbox(options) {
|
|
@@ -50,4 +50,4 @@ async function attachMailbox(options) {
|
|
|
50
50
|
export {
|
|
51
51
|
attachMailbox
|
|
52
52
|
};
|
|
53
|
-
//# sourceMappingURL=chunk-
|
|
53
|
+
//# sourceMappingURL=chunk-KESQUAKO.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
runHeavy,
|
|
3
3
|
userManager
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-DGVXKZHP.js";
|
|
5
5
|
import {
|
|
6
6
|
MODEL_KEYS,
|
|
7
7
|
RESULT,
|
|
@@ -18,7 +18,7 @@ import {
|
|
|
18
18
|
} from "./chunk-Y6NFETNG.js";
|
|
19
19
|
import {
|
|
20
20
|
leaseSettingsFor
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-MIOKNRMY.js";
|
|
22
22
|
import {
|
|
23
23
|
ConfigError,
|
|
24
24
|
findConfig
|
|
@@ -151,4 +151,4 @@ export {
|
|
|
151
151
|
probeDir,
|
|
152
152
|
underLease
|
|
153
153
|
};
|
|
154
|
-
//# sourceMappingURL=chunk-
|
|
154
|
+
//# sourceMappingURL=chunk-KR3D7TQO.js.map
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
|
+
configOption,
|
|
2
3
|
jsonOption
|
|
3
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-MPYM2HYV.js";
|
|
4
5
|
|
|
5
6
|
// src/commands/specs/mcp.ts
|
|
6
7
|
var mcpSpec = {
|
|
@@ -39,11 +40,7 @@ var mcpSpec = {
|
|
|
39
40
|
usage: "pmcp mcp <subcommand> <name> [options]",
|
|
40
41
|
options: [
|
|
41
42
|
jsonOption,
|
|
42
|
-
|
|
43
|
-
name: "config",
|
|
44
|
-
describe: "A pmcp.toml to read instead of the nearest one.",
|
|
45
|
-
placeholder: "<file>"
|
|
46
|
-
},
|
|
43
|
+
configOption,
|
|
47
44
|
{
|
|
48
45
|
name: "code",
|
|
49
46
|
describe: "Complete a pending login with a callback URL or authorization code.",
|
|
@@ -75,4 +72,4 @@ var mcpSpec = {
|
|
|
75
72
|
export {
|
|
76
73
|
mcpSpec
|
|
77
74
|
};
|
|
78
|
-
//# sourceMappingURL=chunk-
|
|
75
|
+
//# sourceMappingURL=chunk-KRDNVEV6.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
configOption
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-MPYM2HYV.js";
|
|
4
4
|
|
|
5
5
|
// src/commands/specs/mailbox.ts
|
|
6
6
|
var mailboxSpec = {
|
|
@@ -156,4 +156,4 @@ var mailboxSpec = {
|
|
|
156
156
|
export {
|
|
157
157
|
mailboxSpec
|
|
158
158
|
};
|
|
159
|
-
//# sourceMappingURL=chunk-
|
|
159
|
+
//# sourceMappingURL=chunk-KWSCDIE2.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
HOST_MANIFEST,
|
|
3
3
|
HOST_POLICY
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-EWTJTS54.js";
|
|
5
5
|
import {
|
|
6
6
|
projectStateDir
|
|
7
7
|
} from "./chunk-KLIYFD3W.js";
|
|
@@ -99,4 +99,4 @@ export {
|
|
|
99
99
|
hostApprovalDoctor,
|
|
100
100
|
writeApproval
|
|
101
101
|
};
|
|
102
|
-
//# sourceMappingURL=chunk-
|
|
102
|
+
//# sourceMappingURL=chunk-MEQ43M6X.js.map
|
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
import {
|
|
2
|
+
jsonOption
|
|
3
|
+
} from "./chunk-MPYM2HYV.js";
|
|
4
|
+
|
|
1
5
|
// src/commands/specs/session.ts
|
|
2
6
|
var loginSpec = {
|
|
3
7
|
name: "login",
|
|
@@ -23,13 +27,7 @@ var whoamiSpec = {
|
|
|
23
27
|
examples: ["pmcp whoami", "pmcp whoami --json"],
|
|
24
28
|
describe: "Whether this machine is signed in, and to what",
|
|
25
29
|
usage: "pmcp whoami [--json]",
|
|
26
|
-
options: [
|
|
27
|
-
{
|
|
28
|
-
name: "json",
|
|
29
|
-
describe: "Print the result as one JSON envelope on stdout.",
|
|
30
|
-
boolean: true
|
|
31
|
-
}
|
|
32
|
-
]
|
|
30
|
+
options: [jsonOption]
|
|
33
31
|
};
|
|
34
32
|
|
|
35
33
|
export {
|
|
@@ -37,4 +35,4 @@ export {
|
|
|
37
35
|
logoutSpec,
|
|
38
36
|
whoamiSpec
|
|
39
37
|
};
|
|
40
|
-
//# sourceMappingURL=chunk-
|
|
38
|
+
//# sourceMappingURL=chunk-MFD2UEJY.js.map
|
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
Reader,
|
|
6
6
|
child,
|
|
7
7
|
table
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-YKYHM54P.js";
|
|
9
9
|
import {
|
|
10
10
|
expandPath
|
|
11
11
|
} from "./chunk-GUHOEIHP.js";
|
|
@@ -118,6 +118,7 @@ var KEYS = [
|
|
|
118
118
|
"load_grace",
|
|
119
119
|
"hold_warn",
|
|
120
120
|
"hold_max",
|
|
121
|
+
"age_limit",
|
|
121
122
|
"heartbeat",
|
|
122
123
|
"poll",
|
|
123
124
|
"memory_max",
|
|
@@ -339,6 +340,7 @@ function readLeaseSettings(path, dir, host, ignored) {
|
|
|
339
340
|
poll: read.int("poll", 15),
|
|
340
341
|
budget: read.int("budget", 4),
|
|
341
342
|
gateAlone: read.bool("gate_alone", false),
|
|
343
|
+
ageLimit: whole(path, "host.lease", "age_limit", raw["age_limit"], 600),
|
|
342
344
|
slots: perLane(
|
|
343
345
|
path,
|
|
344
346
|
"host.lease.lanes",
|
|
@@ -399,4 +401,4 @@ export {
|
|
|
399
401
|
readLeaseSettings,
|
|
400
402
|
leaseSettingsFor
|
|
401
403
|
};
|
|
402
|
-
//# sourceMappingURL=chunk-
|
|
404
|
+
//# sourceMappingURL=chunk-MIOKNRMY.js.map
|
|
@@ -1,23 +1,21 @@
|
|
|
1
|
-
// src/commands/options/
|
|
1
|
+
// src/commands/options/common.ts
|
|
2
2
|
var configOption = {
|
|
3
3
|
name: "config",
|
|
4
4
|
describe: "A pmcp.toml to read instead of the nearest one.",
|
|
5
5
|
placeholder: "<file>"
|
|
6
6
|
};
|
|
7
|
-
var nearestConfigOption = {
|
|
8
|
-
name: "config",
|
|
9
|
-
describe: "A pmcp.toml to read instead of the nearest one.",
|
|
10
|
-
placeholder: "<file>"
|
|
11
|
-
};
|
|
12
7
|
var jsonOption = {
|
|
13
8
|
name: "json",
|
|
14
9
|
describe: "Print the result as one JSON envelope on stdout.",
|
|
15
10
|
boolean: true
|
|
16
11
|
};
|
|
12
|
+
function dryRunOption(describe) {
|
|
13
|
+
return { name: "dry-run", describe, boolean: true };
|
|
14
|
+
}
|
|
17
15
|
|
|
18
16
|
export {
|
|
19
17
|
configOption,
|
|
20
|
-
|
|
21
|
-
|
|
18
|
+
jsonOption,
|
|
19
|
+
dryRunOption
|
|
22
20
|
};
|
|
23
|
-
//# sourceMappingURL=chunk-
|
|
21
|
+
//# sourceMappingURL=chunk-MPYM2HYV.js.map
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
inferSession
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-4F4CMDKZ.js";
|
|
4
4
|
import {
|
|
5
5
|
isOperator,
|
|
6
6
|
requireOperatorFor
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-UOFHM6OM.js";
|
|
8
8
|
import {
|
|
9
9
|
openStore,
|
|
10
10
|
readStoreSettings
|
|
@@ -98,4 +98,4 @@ export {
|
|
|
98
98
|
storeFrom,
|
|
99
99
|
change
|
|
100
100
|
};
|
|
101
|
-
//# sourceMappingURL=chunk-
|
|
101
|
+
//# sourceMappingURL=chunk-NFWN3AMZ.js.map
|
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
runtimeSchema,
|
|
10
10
|
sendSchema,
|
|
11
11
|
sessionsSchema
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-WWNY53B6.js";
|
|
13
13
|
import {
|
|
14
14
|
openSqlite
|
|
15
15
|
} from "./chunk-6STKGOCW.js";
|
|
@@ -1210,4 +1210,4 @@ export {
|
|
|
1210
1210
|
restoreBackup,
|
|
1211
1211
|
MailboxService
|
|
1212
1212
|
};
|
|
1213
|
-
//# sourceMappingURL=chunk-
|
|
1213
|
+
//# sourceMappingURL=chunk-NQVAFHDK.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
} from "./chunk-
|
|
2
|
+
configOption,
|
|
3
|
+
jsonOption
|
|
4
|
+
} from "./chunk-MPYM2HYV.js";
|
|
5
5
|
|
|
6
6
|
// src/commands/specs/host.ts
|
|
7
7
|
var heavySpec = {
|
|
@@ -81,7 +81,7 @@ var heavySpec = {
|
|
|
81
81
|
describe: "Run a heavy command within the host-wide budget, by lane, once the host has room",
|
|
82
82
|
usage: "pmcp heavy [--label <text>] [--profile <name>] [--lane <lane>] [--weight <n>] [--now --reason <text>] -- <command...> | pmcp heavy <subcommand> [options]",
|
|
83
83
|
options: [
|
|
84
|
-
|
|
84
|
+
configOption,
|
|
85
85
|
jsonOption,
|
|
86
86
|
{
|
|
87
87
|
name: "label",
|
|
@@ -178,7 +178,7 @@ var hostSpec = {
|
|
|
178
178
|
describe: "Measure the disk and check the io.cost model the lease's io weights rely on",
|
|
179
179
|
usage: "pmcp host io <measure|plan|doctor> [options]",
|
|
180
180
|
options: [
|
|
181
|
-
|
|
181
|
+
configOption,
|
|
182
182
|
jsonOption,
|
|
183
183
|
{
|
|
184
184
|
name: "dir",
|
|
@@ -212,4 +212,4 @@ export {
|
|
|
212
212
|
heavySpec,
|
|
213
213
|
hostSpec
|
|
214
214
|
};
|
|
215
|
-
//# sourceMappingURL=chunk-
|
|
215
|
+
//# sourceMappingURL=chunk-OOH47XJH.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
assertNativeHost
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-RM6IPG7B.js";
|
|
4
4
|
import {
|
|
5
5
|
locateExecutable
|
|
6
6
|
} from "./chunk-R2GPCZUX.js";
|
|
@@ -33,7 +33,7 @@ import {
|
|
|
33
33
|
resourceClaim,
|
|
34
34
|
resourceRunning,
|
|
35
35
|
runtimeUnit
|
|
36
|
-
} from "./chunk-
|
|
36
|
+
} from "./chunk-TRAC427I.js";
|
|
37
37
|
import {
|
|
38
38
|
command
|
|
39
39
|
} from "./chunk-34DECPVC.js";
|
|
@@ -44,7 +44,7 @@ import {
|
|
|
44
44
|
profileName,
|
|
45
45
|
readPrivateJson,
|
|
46
46
|
selectedProfile
|
|
47
|
-
} from "./chunk-
|
|
47
|
+
} from "./chunk-DIWQOLPW.js";
|
|
48
48
|
import {
|
|
49
49
|
id,
|
|
50
50
|
integer,
|
|
@@ -54,7 +54,7 @@ import {
|
|
|
54
54
|
} from "./chunk-5OMOPUE6.js";
|
|
55
55
|
import {
|
|
56
56
|
runtimeExecutables
|
|
57
|
-
} from "./chunk-
|
|
57
|
+
} from "./chunk-EWEY3ASH.js";
|
|
58
58
|
import {
|
|
59
59
|
envNames,
|
|
60
60
|
pickEnv
|
|
@@ -853,14 +853,7 @@ function cleanup(connection) {
|
|
|
853
853
|
if (connection.alive()) connection.call({ op: "shutdown" }, 3e4);
|
|
854
854
|
}
|
|
855
855
|
function profileOf(runtime) {
|
|
856
|
-
|
|
857
|
-
"codex-cli": "codex",
|
|
858
|
-
"claude-code": "claude",
|
|
859
|
-
"gemini-cli": "gemini",
|
|
860
|
-
"grok-cli": "grok",
|
|
861
|
-
antigravity: "agy"
|
|
862
|
-
};
|
|
863
|
-
return profiles[runtime] ?? "default";
|
|
856
|
+
return runtimeExecutables[runtime] ?? "default";
|
|
864
857
|
}
|
|
865
858
|
|
|
866
859
|
// src/harness/adapters/terminal/input.ts
|
|
@@ -1981,4 +1974,4 @@ export {
|
|
|
1981
1974
|
isReadOnly,
|
|
1982
1975
|
runOperation
|
|
1983
1976
|
};
|
|
1984
|
-
//# sourceMappingURL=chunk-
|
|
1977
|
+
//# sourceMappingURL=chunk-RBWTJQYR.js.map
|
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
} from "./chunk-34DECPVC.js";
|
|
7
7
|
import {
|
|
8
8
|
ptyBinary
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-EWTJTS54.js";
|
|
10
10
|
|
|
11
11
|
// src/harness/adapters/systemd/admission.ts
|
|
12
12
|
var nativeHostTools = ["systemctl", "systemd-run"];
|
|
@@ -36,4 +36,4 @@ export {
|
|
|
36
36
|
nativeHostTools,
|
|
37
37
|
assertNativeHost
|
|
38
38
|
};
|
|
39
|
-
//# sourceMappingURL=chunk-
|
|
39
|
+
//# sourceMappingURL=chunk-RM6IPG7B.js.map
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
} from "./chunk-7CHUMF3E.js";
|
|
4
4
|
import {
|
|
5
5
|
readSpec
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-FDFVAZOE.js";
|
|
7
7
|
import {
|
|
8
8
|
ArgumentError
|
|
9
9
|
} from "./chunk-Y6NFETNG.js";
|
|
@@ -25,4 +25,4 @@ function serverFrom(context) {
|
|
|
25
25
|
export {
|
|
26
26
|
serverFrom
|
|
27
27
|
};
|
|
28
|
-
//# sourceMappingURL=chunk-
|
|
28
|
+
//# sourceMappingURL=chunk-S5L65IJL.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
configOption,
|
|
3
3
|
jsonOption
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-MPYM2HYV.js";
|
|
5
5
|
|
|
6
6
|
// src/commands/specs/git.ts
|
|
7
7
|
var gitSpec = {
|
|
@@ -90,4 +90,4 @@ var gitSpec = {
|
|
|
90
90
|
export {
|
|
91
91
|
gitSpec
|
|
92
92
|
};
|
|
93
|
-
//# sourceMappingURL=chunk-
|
|
93
|
+
//# sourceMappingURL=chunk-SXFW4COX.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
} from "./chunk-
|
|
2
|
+
configOption,
|
|
3
|
+
jsonOption
|
|
4
|
+
} from "./chunk-MPYM2HYV.js";
|
|
5
5
|
|
|
6
6
|
// src/commands/specs/logs.ts
|
|
7
7
|
var logsSpec = {
|
|
@@ -14,7 +14,7 @@ var logsSpec = {
|
|
|
14
14
|
usage: "pmcp logs [--session <id>] [--trace <id>] [--component <name>] [--level <level>] [--since <10m|ISO>] [--follow] [--pretty]",
|
|
15
15
|
options: [
|
|
16
16
|
jsonOption,
|
|
17
|
-
|
|
17
|
+
configOption,
|
|
18
18
|
{
|
|
19
19
|
name: "session",
|
|
20
20
|
describe: "Only this session (a prefix is enough).",
|
|
@@ -52,4 +52,4 @@ var logsSpec = {
|
|
|
52
52
|
export {
|
|
53
53
|
logsSpec
|
|
54
54
|
};
|
|
55
|
-
//# sourceMappingURL=chunk-
|
|
55
|
+
//# sourceMappingURL=chunk-TLHWUYTW.js.map
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
} from "./chunk-34DECPVC.js";
|
|
4
4
|
import {
|
|
5
5
|
ptyBinary
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-EWTJTS54.js";
|
|
7
7
|
import {
|
|
8
8
|
GroupStore,
|
|
9
9
|
egressPolicy,
|
|
@@ -11,7 +11,7 @@ import {
|
|
|
11
11
|
profileName,
|
|
12
12
|
readPrivateJson,
|
|
13
13
|
selectedProfile
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-DIWQOLPW.js";
|
|
15
15
|
import {
|
|
16
16
|
integer,
|
|
17
17
|
object,
|
|
@@ -775,4 +775,4 @@ export {
|
|
|
775
775
|
prepareBridge,
|
|
776
776
|
assertBridge
|
|
777
777
|
};
|
|
778
|
-
//# sourceMappingURL=chunk-
|
|
778
|
+
//# sourceMappingURL=chunk-TRAC427I.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
} from "./chunk-
|
|
2
|
+
configOption,
|
|
3
|
+
jsonOption
|
|
4
|
+
} from "./chunk-MPYM2HYV.js";
|
|
5
5
|
|
|
6
6
|
// src/commands/specs/owners.ts
|
|
7
7
|
var ownersSpec = {
|
|
@@ -12,10 +12,10 @@ var ownersSpec = {
|
|
|
12
12
|
],
|
|
13
13
|
describe: "Who looks after a path, from [[owners]] in pmcp.toml",
|
|
14
14
|
usage: "pmcp owners <path>... [--config <file>] [--json]",
|
|
15
|
-
options: [
|
|
15
|
+
options: [configOption, jsonOption]
|
|
16
16
|
};
|
|
17
17
|
|
|
18
18
|
export {
|
|
19
19
|
ownersSpec
|
|
20
20
|
};
|
|
21
|
-
//# sourceMappingURL=chunk-
|
|
21
|
+
//# sourceMappingURL=chunk-UFGGQVB7.js.map
|
|
@@ -2,7 +2,7 @@ import {
|
|
|
2
2
|
operatorCheck,
|
|
3
3
|
readOperatorSettings,
|
|
4
4
|
requireOperator
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-UORJZ7TK.js";
|
|
6
6
|
import {
|
|
7
7
|
ArgumentError,
|
|
8
8
|
one
|
|
@@ -39,4 +39,4 @@ export {
|
|
|
39
39
|
isOperator,
|
|
40
40
|
requireOperatorFor
|
|
41
41
|
};
|
|
42
|
-
//# sourceMappingURL=chunk-
|
|
42
|
+
//# sourceMappingURL=chunk-UOFHM6OM.js.map
|
|
@@ -23,7 +23,7 @@ var ENV_MARKERS = [
|
|
|
23
23
|
"OPENCODE",
|
|
24
24
|
"AI_AGENT"
|
|
25
25
|
];
|
|
26
|
-
var
|
|
26
|
+
var AGENT_PROCESS_NAMES = /* @__PURE__ */ new Set([
|
|
27
27
|
"claude",
|
|
28
28
|
"codex",
|
|
29
29
|
"gemini",
|
|
@@ -49,7 +49,7 @@ function view(pid) {
|
|
|
49
49
|
function agentProcess(p) {
|
|
50
50
|
const first = p.cmdline.split(" ")[0] ?? "";
|
|
51
51
|
const base = first.slice(first.lastIndexOf("/") + 1);
|
|
52
|
-
return
|
|
52
|
+
return AGENT_PROCESS_NAMES.has(p.name) || AGENT_PROCESS_NAMES.has(base) || PACKAGES.test(p.cmdline);
|
|
53
53
|
}
|
|
54
54
|
function agentContext(env, chain = ancestors().flatMap((pid) => view(pid) ?? [])) {
|
|
55
55
|
const marker = ENV_MARKERS.find((name) => env[name] !== void 0);
|
|
@@ -153,4 +153,4 @@ export {
|
|
|
153
153
|
operatorCheck,
|
|
154
154
|
requireOperator
|
|
155
155
|
};
|
|
156
|
-
//# sourceMappingURL=chunk-
|
|
156
|
+
//# sourceMappingURL=chunk-UORJZ7TK.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
} from "./chunk-
|
|
2
|
+
configOption,
|
|
3
|
+
jsonOption
|
|
4
|
+
} from "./chunk-MPYM2HYV.js";
|
|
5
5
|
|
|
6
6
|
// src/commands/specs/sessions.ts
|
|
7
7
|
var SESSION_VERBS = [
|
|
@@ -119,7 +119,7 @@ var sessionsSpec = {
|
|
|
119
119
|
usage: "pmcp sessions [<subcommand>] [options]",
|
|
120
120
|
options: [
|
|
121
121
|
jsonOption,
|
|
122
|
-
|
|
122
|
+
configOption,
|
|
123
123
|
{
|
|
124
124
|
name: "by",
|
|
125
125
|
describe: "Who pauses, broadcasts or sends; that session is exempt. Default: the agent session this runs in; operator only from the operator's terminal.",
|
|
@@ -170,4 +170,4 @@ export {
|
|
|
170
170
|
JSON_VERBS,
|
|
171
171
|
sessionsSpec
|
|
172
172
|
};
|
|
173
|
-
//# sourceMappingURL=chunk-
|
|
173
|
+
//# sourceMappingURL=chunk-VCQQHIH5.js.map
|
|
@@ -1,14 +1,17 @@
|
|
|
1
|
+
import {
|
|
2
|
+
PRODUCT_NAMES,
|
|
3
|
+
productNameOf,
|
|
4
|
+
runtimeIdOf
|
|
5
|
+
} from "./chunk-JOGLKWN7.js";
|
|
6
|
+
|
|
1
7
|
// src/runtime.ts
|
|
2
8
|
import { CLIENT_INFO_META_KEY } from "@modelcontextprotocol/server";
|
|
3
|
-
var RUNTIMES =
|
|
4
|
-
"claude-code",
|
|
5
|
-
"codex-cli",
|
|
6
|
-
"gemini-cli",
|
|
7
|
-
"grok-cli",
|
|
8
|
-
"antigravity"
|
|
9
|
-
];
|
|
9
|
+
var RUNTIMES = PRODUCT_NAMES;
|
|
10
10
|
var VERIFIED_RUNTIMES_KEY = "verified-runtimes";
|
|
11
|
-
|
|
11
|
+
function productOf(word) {
|
|
12
|
+
const id = runtimeIdOf(word);
|
|
13
|
+
return id === null ? null : productNameOf(id);
|
|
14
|
+
}
|
|
12
15
|
function verifiedWords(raw) {
|
|
13
16
|
if (typeof raw === "string") return raw.split(/[\s,]+/u);
|
|
14
17
|
if (Array.isArray(raw)) return raw.map((word) => String(word).trim());
|
|
@@ -17,8 +20,8 @@ function verifiedWords(raw) {
|
|
|
17
20
|
function verifiedRuntimesOf(metadata) {
|
|
18
21
|
const raw = metadata?.[VERIFIED_RUNTIMES_KEY];
|
|
19
22
|
if (raw === void 0) return [];
|
|
20
|
-
const
|
|
21
|
-
return [...new Set(
|
|
23
|
+
const products = verifiedWords(raw).map(productOf);
|
|
24
|
+
return [...new Set(products.filter((name) => name !== null))];
|
|
22
25
|
}
|
|
23
26
|
var CLIENT_PATTERNS = [
|
|
24
27
|
[/claude[-_ ]?code/u, "claude-code"],
|
|
@@ -110,4 +113,4 @@ export {
|
|
|
110
113
|
messageSchema,
|
|
111
114
|
cursorSchema
|
|
112
115
|
};
|
|
113
|
-
//# sourceMappingURL=chunk-
|
|
116
|
+
//# sourceMappingURL=chunk-WWNY53B6.js.map
|
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
import {
|
|
2
|
+
dryRunOption
|
|
3
|
+
} from "./chunk-MPYM2HYV.js";
|
|
4
|
+
|
|
1
5
|
// src/commands/options/remote.ts
|
|
2
6
|
var REMOTE_OPTIONS = [
|
|
3
7
|
{
|
|
@@ -43,11 +47,7 @@ var previewSpec = {
|
|
|
43
47
|
};
|
|
44
48
|
var MANAGE_OPTIONS = [
|
|
45
49
|
...REMOTE_OPTIONS,
|
|
46
|
-
|
|
47
|
-
name: "dry-run",
|
|
48
|
-
describe: "Show the plan without installing or changing files.",
|
|
49
|
-
boolean: true
|
|
50
|
-
},
|
|
50
|
+
dryRunOption("Show the plan without installing or changing files."),
|
|
51
51
|
{
|
|
52
52
|
name: "yes",
|
|
53
53
|
describe: "Approve the displayed project and lockfile changes.",
|
|
@@ -86,4 +86,4 @@ export {
|
|
|
86
86
|
installSpec,
|
|
87
87
|
syncSpec
|
|
88
88
|
};
|
|
89
|
-
//# sourceMappingURL=chunk-
|
|
89
|
+
//# sourceMappingURL=chunk-WYK57MIH.js.map
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
import {
|
|
5
5
|
readFixtures,
|
|
6
6
|
smoke
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-NQBSTHYF.js";
|
|
8
8
|
import {
|
|
9
9
|
ArgumentError,
|
|
10
10
|
EXIT,
|
|
@@ -51,4 +51,4 @@ export {
|
|
|
51
51
|
printSmoke,
|
|
52
52
|
run
|
|
53
53
|
};
|
|
54
|
-
//# sourceMappingURL=chunk-
|
|
54
|
+
//# sourceMappingURL=chunk-XPYY6K5L.js.map
|
|
@@ -1,7 +1,38 @@
|
|
|
1
|
+
import {
|
|
2
|
+
VERSION
|
|
3
|
+
} from "./chunk-PN3U7FPZ.js";
|
|
1
4
|
import {
|
|
2
5
|
ConfigError
|
|
3
6
|
} from "./chunk-GJXOFDJT.js";
|
|
4
7
|
|
|
8
|
+
// src/git/config/newer-pin.ts
|
|
9
|
+
import { readFileSync } from "fs";
|
|
10
|
+
import { dirname, join } from "path";
|
|
11
|
+
import semver from "semver";
|
|
12
|
+
var PACKAGE = "@modootoday/pmcp";
|
|
13
|
+
var FIELDS = ["dependencies", "devDependencies", "optionalDependencies"];
|
|
14
|
+
function pinnedVersion(configPath) {
|
|
15
|
+
let manifest;
|
|
16
|
+
try {
|
|
17
|
+
manifest = JSON.parse(
|
|
18
|
+
readFileSync(join(dirname(configPath), "package.json"), "utf8")
|
|
19
|
+
);
|
|
20
|
+
} catch {
|
|
21
|
+
return null;
|
|
22
|
+
}
|
|
23
|
+
for (const field of FIELDS) {
|
|
24
|
+
const deps = manifest[field];
|
|
25
|
+
const pin = deps?.[PACKAGE];
|
|
26
|
+
if (typeof pin === "string") return semver.valid(pin);
|
|
27
|
+
}
|
|
28
|
+
return null;
|
|
29
|
+
}
|
|
30
|
+
function newerPinHint(configPath) {
|
|
31
|
+
const pin = pinnedVersion(configPath);
|
|
32
|
+
if (!pin || !semver.gt(pin, VERSION)) return "";
|
|
33
|
+
return `; this checkout pins ${PACKAGE} ${pin} but runs ${VERSION}: install the pinned version (for example bun install --frozen-lockfile, or npm ci) and run the command again`;
|
|
34
|
+
}
|
|
35
|
+
|
|
5
36
|
// src/git/config/reader.ts
|
|
6
37
|
var Reader = class {
|
|
7
38
|
constructor(path, name, table2, keys) {
|
|
@@ -10,7 +41,10 @@ var Reader = class {
|
|
|
10
41
|
this.table = table2;
|
|
11
42
|
for (const key of Object.keys(table2)) {
|
|
12
43
|
if (!keys.includes(key))
|
|
13
|
-
throw new ConfigError(
|
|
44
|
+
throw new ConfigError(
|
|
45
|
+
path,
|
|
46
|
+
`unknown key [${name}] ${key}${newerPinHint(path)}`
|
|
47
|
+
);
|
|
14
48
|
}
|
|
15
49
|
}
|
|
16
50
|
path;
|
|
@@ -96,4 +130,4 @@ export {
|
|
|
96
130
|
table,
|
|
97
131
|
child
|
|
98
132
|
};
|
|
99
|
-
//# sourceMappingURL=chunk-
|
|
133
|
+
//# sourceMappingURL=chunk-YKYHM54P.js.map
|