@modootoday/pmcp 0.22.1 → 0.22.3
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/{apply-VMOFDOCN.js → apply-CYVC5LDG.js} +15 -14
- package/dist/{broadcast-ZALGUJVR.js → broadcast-DZGMSZRG.js} +3 -3
- package/dist/{chunk-57Q75MS4.js → chunk-5QKXEWDB.js} +2 -2
- package/dist/{chunk-5YCKFU5Q.js → chunk-7DYWCQVB.js} +1 -1
- package/dist/{chunk-MR5IBS6L.js → chunk-7I7O7ZNT.js} +41 -10
- package/dist/{chunk-ALX7BECI.js → chunk-7LUYI7QM.js} +2 -2
- package/dist/{chunk-M5LC5TKQ.js → chunk-7Q3AIS4Q.js} +2 -2
- package/dist/{chunk-7FV2LORT.js → chunk-B2WRYGHJ.js} +4 -3
- package/dist/{chunk-P2LJADGI.js → chunk-CALWIRAI.js} +14 -14
- package/dist/{chunk-2GI5RM3M.js → chunk-CILQCERV.js} +2 -2
- package/dist/{chunk-XYEI7KRO.js → chunk-ESCOMAPX.js} +3 -3
- package/dist/{chunk-GBKRDRMZ.js → chunk-FE7WOHZM.js} +17 -5
- package/dist/{chunk-D5BLJIAA.js → chunk-HV52EUSL.js} +9 -9
- package/dist/{chunk-GRRURNVA.js → chunk-ICZH4NFR.js} +5 -5
- package/dist/chunk-JTRFZQTB.js +7 -0
- package/dist/{chunk-3W2GELNR.js → chunk-JUG4W7RF.js} +2 -2
- package/dist/{chunk-6HCEEC6V.js → chunk-MLGXDSHZ.js} +17 -15
- package/dist/{chunk-TMXWSGXH.js → chunk-MQMWVJZB.js} +3 -3
- package/dist/{chunk-3TS3CX3R.js → chunk-MZF7VOQA.js} +2 -2
- package/dist/{chunk-SB6X342E.js → chunk-NQFULJZC.js} +3 -3
- package/dist/{chunk-V6LLHO4S.js → chunk-ONYZIC2F.js} +7 -7
- package/dist/{chunk-DPVLHB3K.js → chunk-PR2RBEXI.js} +2 -2
- package/dist/{chunk-XWAE3VEQ.js → chunk-RZZZHQCE.js} +2 -2
- package/dist/{chunk-UVGW56SY.js → chunk-ULFV3EIZ.js} +27 -7
- package/dist/{chunk-FHK5BE2D.js → chunk-UQNRGU3V.js} +2 -2
- package/dist/{chunk-NYA4GX44.js → chunk-V7LZTVWS.js} +2 -2
- package/dist/{chunk-OKMWYNZF.js → chunk-WPX4ONFT.js} +24 -7
- package/dist/chunk-XWLMZKH2.js +12 -0
- package/dist/{cli-6FWRBCWM.js → cli-34EDFXJA.js} +8 -8
- package/dist/{cli-BEEDAD4E.js → cli-A6HKRICM.js} +4 -4
- package/dist/cli.js +3 -3
- package/dist/{completion-XA7SR2OU.js → completion-FDLVWLAC.js} +2 -2
- package/dist/{diagnostics-AYSD3454.js → diagnostics-DYLW7WYV.js} +7 -5
- package/dist/{doctor-PDLZL4BR.js → doctor-FRQ5H5FU.js} +21 -14
- package/dist/{entry-5CKOI3QK.js → entry-XPZZNQ4L.js} +11 -9
- package/dist/{exec-mcp-EJZVPVU5.js → exec-mcp-HOM2ZANM.js} +12 -11
- package/dist/{harness-VMQJY3KY.js → harness-WIGJRE5P.js} +3 -3
- package/dist/harness-launch-gate.js +5 -3
- package/dist/harness-worker.js +7 -5
- package/dist/hook-body.js +189 -76
- package/dist/{hook-spec-hZL4MSgi.d.ts → hook-spec-Bd24eo2L.d.ts} +1 -0
- package/dist/{hooks-SKD67KMA.js → hooks-MIF3FONJ.js} +4 -4
- package/dist/{host-GY2LFEZX.js → host-CE5TW5SC.js} +12 -11
- package/dist/{host-4BA3LM7Z.js → host-JKZLOCZS.js} +8 -6
- package/dist/{host-run-X3VDTIQ2.js → host-run-MJGJ7NVE.js} +6 -4
- package/dist/http.js +1 -1
- package/dist/{import-mcp-G2VTD5KR.js → import-mcp-T3GZYEE5.js} +11 -10
- package/dist/index.d.ts +2 -2
- package/dist/index.js +16 -15
- package/dist/{init-JEK3QUAK.js → init-D5VPDF2B.js} +2 -2
- package/dist/{invoke-7BUFBFJU.js → invoke-HEAOQLFQ.js} +9 -7
- package/dist/{list-D3Y3TIC6.js → list-PCLCFG2J.js} +11 -10
- package/dist/{logout-T4JLFE2D.js → logout-3ZXFXKHB.js} +10 -9
- package/dist/{logs-74JGLQG6.js → logs-UHJM7ZCL.js} +3 -3
- package/dist/{mailbox-VK5AVTHI.js → mailbox-NIMBOQPA.js} +3 -3
- package/dist/{mainline-Q42M2GJ2.js → mainline-6CTSVOWP.js} +63 -29
- package/dist/{mcp-GPIHVL65.js → mcp-T6PYHRUL.js} +2 -2
- package/dist/{pause-CZ2OZYLC.js → pause-CBZ3BTJL.js} +3 -3
- package/dist/project/hook-adapter.d.ts +1 -1
- package/dist/{project-6QRKXOMM.js → project-H4R3Q3QO.js} +7 -7
- package/dist/{report-Z3JV2PCT.js → report-ZHOHQ4PZ.js} +3 -3
- package/dist/{resume-DFIHT2RO.js → resume-UJEWQ66P.js} +3 -3
- package/dist/{run-YHOLKUYB.js → run-FMTHUOAZ.js} +4 -4
- package/dist/{run-MVP22ENA.js → run-V74M7PZK.js} +9 -8
- package/dist/{serve-EAESQK2I.js → serve-JKNEC4AX.js} +3 -3
- package/dist/{setup-3GET6K3J.js → setup-HYEYYVDU.js} +3 -3
- package/dist/{smoke-FQQJOQBD.js → smoke-UA7VVDKD.js} +4 -3
- package/dist/{start-login-K3TAZ3IH.js → start-login-JRMVLK5J.js} +10 -9
- package/dist/{status-25DRPV7U.js → status-6273XFHT.js} +10 -9
- package/dist/{status-3RTGDN2K.js → status-KN2ZE64O.js} +3 -3
- package/dist/{status-DPPNTGHB.js → status-RG2GFDQU.js} +12 -11
- package/dist/stdio.js +2 -2
- package/dist/{sweep-EPJMEZR6.js → sweep-EPZCW63Q.js} +3 -3
- package/dist/{test-I2V5AMQF.js → test-M365FK5N.js} +23 -15
- package/dist/{tui-VCEN2L5I.js → tui-PKPYE76A.js} +4 -4
- package/dist/{unbroadcast-NTOC3PY3.js → unbroadcast-N6LXHAMT.js} +3 -3
- package/dist/{worker-NPQFYEBU.js → worker-C23EAPCY.js} +9 -7
- package/docs/commands.md +1 -1
- package/docs/git-workflow.md +21 -12
- package/docs/hooks.md +7 -1
- package/docs/project-configuration.md +1 -0
- package/docs/upgrading.md +13 -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/mod/commands.ts +10 -4
- package/plugins/pmcp/mod/host.ts +17 -1
- package/plugins/pmcp/mod/reader/read.ts +3 -1
- package/plugins/pmcp/mod/reader/types.ts +2 -0
- package/plugins/pmcp/mod/register.tsx +2 -1
- package/plugins/pmcp/mod/snapshot.ts +1 -0
- package/plugins/pmcp/mod/state.ts +1 -0
- package/plugins/pmcp/plugin.json +1 -1
- package/dist/chunk-ACHBHIGD.js +0 -7
|
@@ -13,12 +13,6 @@ import {
|
|
|
13
13
|
ptyFields,
|
|
14
14
|
ptyRef
|
|
15
15
|
} from "./chunk-OFJIMBTL.js";
|
|
16
|
-
import {
|
|
17
|
-
ProjectError,
|
|
18
|
-
RULES_DIR,
|
|
19
|
-
packageRuleOutputs,
|
|
20
|
-
trackedFiles
|
|
21
|
-
} from "./chunk-NRBQK6UX.js";
|
|
22
16
|
import {
|
|
23
17
|
readReportTable
|
|
24
18
|
} from "./chunk-LFFIQBNY.js";
|
|
@@ -34,7 +28,7 @@ import {
|
|
|
34
28
|
import {
|
|
35
29
|
leaseSpecs,
|
|
36
30
|
readGitConfig
|
|
37
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-FE7WOHZM.js";
|
|
38
32
|
import {
|
|
39
33
|
detect
|
|
40
34
|
} from "./chunk-2Q6MNGU5.js";
|
|
@@ -42,7 +36,7 @@ import {
|
|
|
42
36
|
inboxKey,
|
|
43
37
|
noticeOf,
|
|
44
38
|
readStoreSettings
|
|
45
|
-
} from "./chunk-
|
|
39
|
+
} from "./chunk-7I7O7ZNT.js";
|
|
46
40
|
import {
|
|
47
41
|
STATE_FILES,
|
|
48
42
|
runtimePid
|
|
@@ -64,7 +58,7 @@ import {
|
|
|
64
58
|
RUNTIME_IDS,
|
|
65
59
|
climbCommand,
|
|
66
60
|
readTestTable
|
|
67
|
-
} from "./chunk-
|
|
61
|
+
} from "./chunk-7DYWCQVB.js";
|
|
68
62
|
import {
|
|
69
63
|
TOOLS
|
|
70
64
|
} from "./chunk-V4NPDK6X.js";
|
|
@@ -72,8 +66,15 @@ import {
|
|
|
72
66
|
hostOutputs,
|
|
73
67
|
packagedBinary,
|
|
74
68
|
readHost,
|
|
75
|
-
readLock
|
|
76
|
-
|
|
69
|
+
readLock,
|
|
70
|
+
readLockFile
|
|
71
|
+
} from "./chunk-ULFV3EIZ.js";
|
|
72
|
+
import {
|
|
73
|
+
ProjectError,
|
|
74
|
+
RULES_DIR,
|
|
75
|
+
packageRuleOutputs,
|
|
76
|
+
trackedFiles
|
|
77
|
+
} from "./chunk-NRBQK6UX.js";
|
|
77
78
|
import {
|
|
78
79
|
checkoutOf,
|
|
79
80
|
hasLinkedWorktrees
|
|
@@ -868,8 +869,7 @@ function adapterSource() {
|
|
|
868
869
|
return readFileSync3(file, "utf8");
|
|
869
870
|
}
|
|
870
871
|
function hookOutputs(spec) {
|
|
871
|
-
const
|
|
872
|
-
const lock = existsSync4(lockFile) ? JSON.parse(readFileSync3(lockFile, "utf8")) : {};
|
|
872
|
+
const lock = readLockFile(spec.root);
|
|
873
873
|
const previous = new Map(
|
|
874
874
|
(lock.outputs ?? []).filter((entry) => entry.managed !== void 0).filter((entry) => /#(hooks|pmcp-shell|pmcp)\./u.test(entry.path)).map((entry) => [entry.path, entry.managed])
|
|
875
875
|
);
|
|
@@ -3535,7 +3535,7 @@ function classEnd(pattern, start) {
|
|
|
3535
3535
|
function patternCost(pattern, flavor, onlyMatching, limits) {
|
|
3536
3536
|
const largest = Math.max(0, ...repetitionCounts(pattern, flavor));
|
|
3537
3537
|
if (largest > limits.threshold)
|
|
3538
|
-
return `a repetition count of ${largest} (the limit is ${limits.threshold})`;
|
|
3538
|
+
return `a repetition count of ${largest} (the limit is ${limits.threshold}), whose cost is in compiling the pattern, so even an empty input holds the core`;
|
|
3539
3539
|
if (flavor === "perl" && nestedQuantifier(pattern))
|
|
3540
3540
|
return "a -P pattern with a quantified group inside a quantifier, such as (a+)+ or (.*)*";
|
|
3541
3541
|
if (limits.onlyMatchingWildcards && onlyMatching && (pattern.match(/\.\*/gu) ?? []).length > 1)
|
|
@@ -4905,6 +4905,7 @@ function readHooksTable(table3, tools) {
|
|
|
4905
4905
|
var KEYS5 = [
|
|
4906
4906
|
"store",
|
|
4907
4907
|
"state_dir",
|
|
4908
|
+
"pause_file",
|
|
4908
4909
|
"registry",
|
|
4909
4910
|
"pause",
|
|
4910
4911
|
"broadcast",
|
|
@@ -5141,6 +5142,7 @@ function compileHooks(tables, options2) {
|
|
|
5141
5142
|
...sessions.mailbox?.enabled ? { mailbox: sessions.mailbox } : {},
|
|
5142
5143
|
// Only when declared, like the mailbox, so other projects keep the same policy.json.
|
|
5143
5144
|
...sessions.leaseFiles ? { leaseFiles: sessions.leaseFiles } : {},
|
|
5145
|
+
...sessions.pauseFile ? { pauseFile: sessions.pauseFile } : {},
|
|
5144
5146
|
...sessions.gate ? { gate: sessions.gate } : {}
|
|
5145
5147
|
},
|
|
5146
5148
|
guards,
|
|
@@ -5424,4 +5426,4 @@ export {
|
|
|
5424
5426
|
checkBudget,
|
|
5425
5427
|
readSpec
|
|
5426
5428
|
};
|
|
5427
|
-
//# sourceMappingURL=chunk-
|
|
5429
|
+
//# sourceMappingURL=chunk-MLGXDSHZ.js.map
|
|
@@ -5,10 +5,10 @@ import {
|
|
|
5
5
|
POLICIES,
|
|
6
6
|
customMode,
|
|
7
7
|
customPolicy
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-MLGXDSHZ.js";
|
|
9
9
|
import {
|
|
10
10
|
RUNTIMES
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-7DYWCQVB.js";
|
|
12
12
|
|
|
13
13
|
// src/hooks/inspection/list.ts
|
|
14
14
|
function policyRows(compiled) {
|
|
@@ -42,4 +42,4 @@ function policyRows(compiled) {
|
|
|
42
42
|
export {
|
|
43
43
|
policyRows
|
|
44
44
|
};
|
|
45
|
-
//# sourceMappingURL=chunk-
|
|
45
|
+
//# sourceMappingURL=chunk-MQMWVJZB.js.map
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
} from "./chunk-RPCIROW7.js";
|
|
4
4
|
import {
|
|
5
5
|
readSpec
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-MLGXDSHZ.js";
|
|
7
7
|
import {
|
|
8
8
|
ArgumentError
|
|
9
9
|
} from "./chunk-A4PKLESO.js";
|
|
@@ -25,4 +25,4 @@ function serverFrom(context) {
|
|
|
25
25
|
export {
|
|
26
26
|
serverFrom
|
|
27
27
|
};
|
|
28
|
-
//# sourceMappingURL=chunk-
|
|
28
|
+
//# sourceMappingURL=chunk-MZF7VOQA.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
assertNativeHost
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-7Q3AIS4Q.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-UQNRGU3V.js";
|
|
37
37
|
import {
|
|
38
38
|
command
|
|
39
39
|
} from "./chunk-34DECPVC.js";
|
|
@@ -1981,4 +1981,4 @@ export {
|
|
|
1981
1981
|
isReadOnly,
|
|
1982
1982
|
runOperation
|
|
1983
1983
|
};
|
|
1984
|
-
//# sourceMappingURL=chunk-
|
|
1984
|
+
//# sourceMappingURL=chunk-NQFULJZC.js.map
|
|
@@ -19,17 +19,17 @@ import {
|
|
|
19
19
|
splitKeyed,
|
|
20
20
|
versionMatches,
|
|
21
21
|
withoutBlock
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-MLGXDSHZ.js";
|
|
23
|
+
import {
|
|
24
|
+
lockVersionProblem,
|
|
25
|
+
readLock,
|
|
26
|
+
replaceFile
|
|
27
|
+
} from "./chunk-ULFV3EIZ.js";
|
|
23
28
|
import {
|
|
24
29
|
ProjectError,
|
|
25
30
|
RULES_DIR,
|
|
26
31
|
trackedFiles
|
|
27
32
|
} from "./chunk-NRBQK6UX.js";
|
|
28
|
-
import {
|
|
29
|
-
lockVersionProblem,
|
|
30
|
-
readLock,
|
|
31
|
-
replaceFile
|
|
32
|
-
} from "./chunk-UVGW56SY.js";
|
|
33
33
|
|
|
34
34
|
// src/project/apply/census.ts
|
|
35
35
|
import { existsSync, readFileSync, readdirSync } from "fs";
|
|
@@ -271,4 +271,4 @@ export {
|
|
|
271
271
|
prepare,
|
|
272
272
|
checkProject
|
|
273
273
|
};
|
|
274
|
-
//# sourceMappingURL=chunk-
|
|
274
|
+
//# sourceMappingURL=chunk-ONYZIC2F.js.map
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
} from "./chunk-RPCIROW7.js";
|
|
4
4
|
import {
|
|
5
5
|
readSpec
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-MLGXDSHZ.js";
|
|
7
7
|
import {
|
|
8
8
|
ArgumentError
|
|
9
9
|
} from "./chunk-A4PKLESO.js";
|
|
@@ -28,4 +28,4 @@ function specFrom(context) {
|
|
|
28
28
|
export {
|
|
29
29
|
specFrom
|
|
30
30
|
};
|
|
31
|
-
//# sourceMappingURL=chunk-
|
|
31
|
+
//# sourceMappingURL=chunk-PR2RBEXI.js.map
|
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
import {
|
|
8
8
|
nativeBinary,
|
|
9
9
|
ptyBinary
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-ULFV3EIZ.js";
|
|
11
11
|
|
|
12
12
|
// src/tui/rust.ts
|
|
13
13
|
import { spawn } from "child_process";
|
|
@@ -62,4 +62,4 @@ export {
|
|
|
62
62
|
runTui,
|
|
63
63
|
dependencies
|
|
64
64
|
};
|
|
65
|
-
//# sourceMappingURL=chunk-
|
|
65
|
+
//# sourceMappingURL=chunk-RZZZHQCE.js.map
|
|
@@ -1,9 +1,15 @@
|
|
|
1
|
+
import {
|
|
2
|
+
ProjectError
|
|
3
|
+
} from "./chunk-NRBQK6UX.js";
|
|
1
4
|
import {
|
|
2
5
|
projectStateDir
|
|
3
6
|
} from "./chunk-OEH47H6A.js";
|
|
7
|
+
import {
|
|
8
|
+
lockProblem
|
|
9
|
+
} from "./chunk-XWLMZKH2.js";
|
|
4
10
|
import {
|
|
5
11
|
VERSION
|
|
6
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-JTRFZQTB.js";
|
|
7
13
|
import {
|
|
8
14
|
ConfigError
|
|
9
15
|
} from "./chunk-GJXOFDJT.js";
|
|
@@ -143,7 +149,13 @@ var PROJECTOR_FILE = "projector.json";
|
|
|
143
149
|
function lockVersionProblem(root) {
|
|
144
150
|
const path = join2(root, "pmcp.lock");
|
|
145
151
|
if (!existsSync(path)) return null;
|
|
146
|
-
const
|
|
152
|
+
const text2 = readFileSync(path, "utf8");
|
|
153
|
+
let lock;
|
|
154
|
+
try {
|
|
155
|
+
lock = JSON.parse(text2);
|
|
156
|
+
} catch {
|
|
157
|
+
return lockProblem(text2);
|
|
158
|
+
}
|
|
147
159
|
const recorded = lock[LOCK_VERSION_KEY];
|
|
148
160
|
if (recorded === VERSION) return null;
|
|
149
161
|
return `drift: pmcp.lock ${LOCK_VERSION_KEY} ${typeof recorded === "string" ? recorded : "none"}, this pmcp ${VERSION}`;
|
|
@@ -174,11 +186,18 @@ import { existsSync as existsSync2, readFileSync as readFileSync2 } from "fs";
|
|
|
174
186
|
import { join as join3 } from "path";
|
|
175
187
|
var LOCK_FILE = "pmcp.lock";
|
|
176
188
|
var sha = (text2) => createHash("sha256").update(text2).digest("hex");
|
|
177
|
-
function
|
|
189
|
+
function readLockFile(root) {
|
|
178
190
|
const path = join3(root, LOCK_FILE);
|
|
179
|
-
if (!existsSync2(path)) return
|
|
180
|
-
const
|
|
181
|
-
|
|
191
|
+
if (!existsSync2(path)) return {};
|
|
192
|
+
const text2 = readFileSync2(path, "utf8");
|
|
193
|
+
try {
|
|
194
|
+
return JSON.parse(text2);
|
|
195
|
+
} catch {
|
|
196
|
+
throw new ProjectError(lockProblem(text2));
|
|
197
|
+
}
|
|
198
|
+
}
|
|
199
|
+
function readLock(root) {
|
|
200
|
+
return readLockFile(root).outputs ?? [];
|
|
182
201
|
}
|
|
183
202
|
function lockEntry(output) {
|
|
184
203
|
switch (output.kind) {
|
|
@@ -567,6 +586,7 @@ export {
|
|
|
567
586
|
lockVersionProblem,
|
|
568
587
|
recordProjector,
|
|
569
588
|
LOCK_FILE,
|
|
589
|
+
readLockFile,
|
|
570
590
|
readLock,
|
|
571
591
|
writeLock,
|
|
572
592
|
readHost,
|
|
@@ -578,4 +598,4 @@ export {
|
|
|
578
598
|
hostEnvDoctor,
|
|
579
599
|
hostDoctor
|
|
580
600
|
};
|
|
581
|
-
//# sourceMappingURL=chunk-
|
|
601
|
+
//# sourceMappingURL=chunk-ULFV3EIZ.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-ULFV3EIZ.js";
|
|
7
7
|
import {
|
|
8
8
|
GroupStore,
|
|
9
9
|
egressPolicy,
|
|
@@ -775,4 +775,4 @@ export {
|
|
|
775
775
|
prepareBridge,
|
|
776
776
|
assertBridge
|
|
777
777
|
};
|
|
778
|
-
//# sourceMappingURL=chunk-
|
|
778
|
+
//# sourceMappingURL=chunk-UQNRGU3V.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
createSkillServer
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-JUG4W7RF.js";
|
|
4
4
|
import {
|
|
5
5
|
attachMailbox
|
|
6
6
|
} from "./chunk-JZKAJUVT.js";
|
|
@@ -84,4 +84,4 @@ export {
|
|
|
84
84
|
serveWithMailbox,
|
|
85
85
|
main
|
|
86
86
|
};
|
|
87
|
-
//# sourceMappingURL=chunk-
|
|
87
|
+
//# sourceMappingURL=chunk-V7LZTVWS.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
hostApprovalDoctor
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-7LUYI7QM.js";
|
|
4
4
|
import {
|
|
5
5
|
wakeableBy
|
|
6
6
|
} from "./chunk-JQVSDPFL.js";
|
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
describeHookProblem,
|
|
13
13
|
project,
|
|
14
14
|
unmanagedHooks
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-HV52EUSL.js";
|
|
16
16
|
import {
|
|
17
17
|
ANTIGRAVITY_MCP_PLUGIN,
|
|
18
18
|
agentNames,
|
|
@@ -23,7 +23,7 @@ import {
|
|
|
23
23
|
skillNames,
|
|
24
24
|
splitFrontmatter,
|
|
25
25
|
uiClaudeDoctor
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-MLGXDSHZ.js";
|
|
27
27
|
import {
|
|
28
28
|
pathPmcp,
|
|
29
29
|
pmcpCommand
|
|
@@ -31,12 +31,16 @@ import {
|
|
|
31
31
|
import {
|
|
32
32
|
createFilesStore,
|
|
33
33
|
inboxKey
|
|
34
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-7I7O7ZNT.js";
|
|
35
35
|
import {
|
|
36
36
|
hostDoctor,
|
|
37
37
|
hostEnvDoctor,
|
|
38
|
-
ptyBinaryDoctor
|
|
39
|
-
|
|
38
|
+
ptyBinaryDoctor,
|
|
39
|
+
readLockFile
|
|
40
|
+
} from "./chunk-ULFV3EIZ.js";
|
|
41
|
+
import {
|
|
42
|
+
ProjectError
|
|
43
|
+
} from "./chunk-NRBQK6UX.js";
|
|
40
44
|
import {
|
|
41
45
|
projectStateDir
|
|
42
46
|
} from "./chunk-OEH47H6A.js";
|
|
@@ -605,6 +609,19 @@ function pathFinding(root, stateDir, options) {
|
|
|
605
609
|
|
|
606
610
|
// src/project/doctor/inspect.ts
|
|
607
611
|
function doctor(spec, options) {
|
|
612
|
+
try {
|
|
613
|
+
readLockFile(spec.root);
|
|
614
|
+
} catch (error) {
|
|
615
|
+
if (!(error instanceof ProjectError)) throw error;
|
|
616
|
+
return [
|
|
617
|
+
{
|
|
618
|
+
tool: "project",
|
|
619
|
+
check: "outputs match sources",
|
|
620
|
+
status: "fail",
|
|
621
|
+
detail: error.message
|
|
622
|
+
}
|
|
623
|
+
];
|
|
624
|
+
}
|
|
608
625
|
const check = project(spec, { check: true });
|
|
609
626
|
const findings = [
|
|
610
627
|
check.code === 0 ? { tool: "project", check: "outputs match sources", status: "ok" } : {
|
|
@@ -654,4 +671,4 @@ export {
|
|
|
654
671
|
spawnRunner,
|
|
655
672
|
doctor
|
|
656
673
|
};
|
|
657
|
-
//# sourceMappingURL=chunk-
|
|
674
|
+
//# sourceMappingURL=chunk-WPX4ONFT.js.map
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
// src/hooks/lock-text.ts
|
|
2
|
+
var MARKER = /^(?:<{7}|={7}|>{7})(?: |$)/mu;
|
|
3
|
+
function lockProblem(text) {
|
|
4
|
+
const at = text.split("\n").findIndex((line) => MARKER.test(line));
|
|
5
|
+
const what = at >= 0 ? `pmcp.lock holds git conflict markers (line ${at + 1})` : "pmcp.lock is not valid JSON";
|
|
6
|
+
return `${what}; restore it with git checkout <rev> -- pmcp.lock or git show <rev>:pmcp.lock > pmcp.lock, then run pmcp project`;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
export {
|
|
10
|
+
lockProblem
|
|
11
|
+
};
|
|
12
|
+
//# sourceMappingURL=chunk-XWLMZKH2.js.map
|
|
@@ -16,26 +16,26 @@ async function run(context) {
|
|
|
16
16
|
`unknown verb ${verb}; use ${SESSION_VERBS.join(", ")}`
|
|
17
17
|
);
|
|
18
18
|
if (verb === "status")
|
|
19
|
-
return (await import("./status-
|
|
19
|
+
return (await import("./status-KN2ZE64O.js")).status(context);
|
|
20
20
|
if (context.args.flags.has("json") && !JSON_VERBS.includes(verb))
|
|
21
21
|
throw new ArgumentError(`--json works with ${JSON_VERBS.join(", ")}`);
|
|
22
22
|
if (["send", "inbox", "ack", "reply"].includes(verb)) {
|
|
23
|
-
const mailbox = await import("./mailbox-
|
|
23
|
+
const mailbox = await import("./mailbox-NIMBOQPA.js");
|
|
24
24
|
if (verb === "send") return mailbox.send(context);
|
|
25
25
|
if (verb === "inbox") return mailbox.inbox(context);
|
|
26
26
|
if (verb === "ack") return mailbox.ack(context);
|
|
27
27
|
return mailbox.reply(context);
|
|
28
28
|
}
|
|
29
|
-
if (verb === "pause") return (await import("./pause-
|
|
30
|
-
if (verb === "resume") return (await import("./resume-
|
|
29
|
+
if (verb === "pause") return (await import("./pause-CBZ3BTJL.js")).run(context);
|
|
30
|
+
if (verb === "resume") return (await import("./resume-UJEWQ66P.js")).run(context);
|
|
31
31
|
if (verb === "broadcast")
|
|
32
|
-
return (await import("./broadcast-
|
|
32
|
+
return (await import("./broadcast-DZGMSZRG.js")).run(context);
|
|
33
33
|
if (verb === "unbroadcast")
|
|
34
|
-
return (await import("./unbroadcast-
|
|
35
|
-
return (await import("./sweep-
|
|
34
|
+
return (await import("./unbroadcast-N6LXHAMT.js")).run(context);
|
|
35
|
+
return (await import("./sweep-EPZCW63Q.js")).run(context);
|
|
36
36
|
}
|
|
37
37
|
var sessionsCommand = { ...sessionsSpec, run };
|
|
38
38
|
export {
|
|
39
39
|
sessionsCommand
|
|
40
40
|
};
|
|
41
|
-
//# sourceMappingURL=cli-
|
|
41
|
+
//# sourceMappingURL=cli-34EDFXJA.js.map
|
|
@@ -11,8 +11,8 @@ import {
|
|
|
11
11
|
async function action(positional) {
|
|
12
12
|
const [verb, sub] = positional;
|
|
13
13
|
if (verb === "deliver")
|
|
14
|
-
return (await import("./mainline-
|
|
15
|
-
if (verb === "sync") return (await import("./mainline-
|
|
14
|
+
return (await import("./mainline-6CTSVOWP.js")).mainlineDeliver;
|
|
15
|
+
if (verb === "sync") return (await import("./mainline-6CTSVOWP.js")).mainlineSync;
|
|
16
16
|
if (verb !== "worktree")
|
|
17
17
|
throw new ArgumentError("Use worktree, deliver or sync");
|
|
18
18
|
if (sub === "create")
|
|
@@ -28,7 +28,7 @@ async function run(context) {
|
|
|
28
28
|
if (context.args.flags.has("json") && !(verb === "worktree" && sub === "list") && verb !== "deliver")
|
|
29
29
|
throw new ArgumentError("--json requires git worktree list or git deliver");
|
|
30
30
|
const act = await action(context.args.positional);
|
|
31
|
-
const { loadGit } = await import("./setup-
|
|
31
|
+
const { loadGit } = await import("./setup-HYEYYVDU.js");
|
|
32
32
|
const setup = loadGit(context.cwd, one(context.args, "config"), context.env);
|
|
33
33
|
if (setup instanceof Error) {
|
|
34
34
|
context.ui.error(setup.message);
|
|
@@ -45,4 +45,4 @@ var gitCommand = { ...gitSpec, run };
|
|
|
45
45
|
export {
|
|
46
46
|
gitCommand
|
|
47
47
|
};
|
|
48
|
-
//# sourceMappingURL=cli-
|
|
48
|
+
//# sourceMappingURL=cli-A6HKRICM.js.map
|
package/dist/cli.js
CHANGED
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
COMMANDS,
|
|
7
7
|
PLANNED,
|
|
8
8
|
commandNamed
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-CALWIRAI.js";
|
|
10
10
|
import "./chunk-2P4Z2NUX.js";
|
|
11
11
|
import "./chunk-JWRZDYB5.js";
|
|
12
12
|
import "./chunk-3Y3HDMHA.js";
|
|
@@ -32,7 +32,7 @@ import {
|
|
|
32
32
|
import "./chunk-V4NPDK6X.js";
|
|
33
33
|
import {
|
|
34
34
|
VERSION
|
|
35
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-JTRFZQTB.js";
|
|
36
36
|
|
|
37
37
|
// src/cli/ui.ts
|
|
38
38
|
var ESC = String.fromCharCode(27);
|
|
@@ -185,7 +185,7 @@ async function defaultEntry(options, context) {
|
|
|
185
185
|
});
|
|
186
186
|
if (mode === "server") return run(required("serve"), [], context);
|
|
187
187
|
if (mode === "terminal") {
|
|
188
|
-
const { terminalSupport } = await import("./host-
|
|
188
|
+
const { terminalSupport } = await import("./host-JKZLOCZS.js");
|
|
189
189
|
const support = terminalSupport();
|
|
190
190
|
if (support.supported) return run(required("tui"), [], context);
|
|
191
191
|
context.ui.info(`Terminal workspace unavailable: ${support.reason}`);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
COMMANDS,
|
|
3
3
|
completionSpec
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-CALWIRAI.js";
|
|
5
5
|
import "./chunk-2P4Z2NUX.js";
|
|
6
6
|
import "./chunk-JWRZDYB5.js";
|
|
7
7
|
import "./chunk-3Y3HDMHA.js";
|
|
@@ -139,4 +139,4 @@ var completionCommand = {
|
|
|
139
139
|
export {
|
|
140
140
|
completionCommand
|
|
141
141
|
};
|
|
142
|
-
//# sourceMappingURL=completion-
|
|
142
|
+
//# sourceMappingURL=completion-FDLVWLAC.js.map
|
|
@@ -1,21 +1,23 @@
|
|
|
1
1
|
import {
|
|
2
2
|
dependencies
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-RZZZHQCE.js";
|
|
4
4
|
import {
|
|
5
5
|
assertNativeHost
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-7Q3AIS4Q.js";
|
|
7
7
|
import {
|
|
8
8
|
locateExecutable
|
|
9
9
|
} from "./chunk-R2GPCZUX.js";
|
|
10
10
|
import "./chunk-34DECPVC.js";
|
|
11
11
|
import {
|
|
12
12
|
missingBinary
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-ULFV3EIZ.js";
|
|
14
|
+
import "./chunk-NRBQK6UX.js";
|
|
14
15
|
import "./chunk-OEH47H6A.js";
|
|
15
16
|
import "./chunk-IJBSOWHK.js";
|
|
17
|
+
import "./chunk-XWLMZKH2.js";
|
|
16
18
|
import {
|
|
17
19
|
VERSION
|
|
18
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-JTRFZQTB.js";
|
|
19
21
|
import "./chunk-GJXOFDJT.js";
|
|
20
22
|
import "./chunk-PMJG2CXF.js";
|
|
21
23
|
import {
|
|
@@ -90,4 +92,4 @@ function inspectTerminalHost() {
|
|
|
90
92
|
export {
|
|
91
93
|
inspectTerminalHost
|
|
92
94
|
};
|
|
93
|
-
//# sourceMappingURL=diagnostics-
|
|
95
|
+
//# sourceMappingURL=diagnostics-DYLW7WYV.js.map
|
|
@@ -1,37 +1,36 @@
|
|
|
1
1
|
import {
|
|
2
2
|
specFrom
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-PR2RBEXI.js";
|
|
4
4
|
import "./chunk-RPCIROW7.js";
|
|
5
5
|
import {
|
|
6
6
|
doctor,
|
|
7
7
|
spawnRunner
|
|
8
|
-
} from "./chunk-
|
|
9
|
-
import "./chunk-
|
|
8
|
+
} from "./chunk-WPX4ONFT.js";
|
|
9
|
+
import "./chunk-7LUYI7QM.js";
|
|
10
10
|
import "./chunk-JQVSDPFL.js";
|
|
11
11
|
import "./chunk-VJFEN6DJ.js";
|
|
12
12
|
import "./chunk-NHUMPEPV.js";
|
|
13
13
|
import "./chunk-TIA4SPU2.js";
|
|
14
|
-
import "./chunk-
|
|
14
|
+
import "./chunk-HV52EUSL.js";
|
|
15
15
|
import "./chunk-P4N7DBD5.js";
|
|
16
|
-
import "./chunk-
|
|
16
|
+
import "./chunk-ONYZIC2F.js";
|
|
17
17
|
import {
|
|
18
18
|
FEATURES,
|
|
19
19
|
GUARDS,
|
|
20
20
|
customEvent
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-MLGXDSHZ.js";
|
|
22
22
|
import "./chunk-UKR64U7J.js";
|
|
23
23
|
import "./chunk-XZ2TDH3J.js";
|
|
24
24
|
import "./chunk-KUBHGVTD.js";
|
|
25
25
|
import "./chunk-EATCUWGG.js";
|
|
26
26
|
import "./chunk-OFJIMBTL.js";
|
|
27
|
-
import "./chunk-NRBQK6UX.js";
|
|
28
27
|
import "./chunk-LFFIQBNY.js";
|
|
29
28
|
import "./chunk-HQOB7OQS.js";
|
|
30
29
|
import "./chunk-73AKO4UL.js";
|
|
31
30
|
import "./chunk-P6LNYYYH.js";
|
|
32
|
-
import "./chunk-
|
|
31
|
+
import "./chunk-FE7WOHZM.js";
|
|
33
32
|
import "./chunk-2Q6MNGU5.js";
|
|
34
|
-
import "./chunk-
|
|
33
|
+
import "./chunk-7I7O7ZNT.js";
|
|
35
34
|
import "./chunk-Z6WRFOFT.js";
|
|
36
35
|
import "./chunk-G7JONWL4.js";
|
|
37
36
|
import "./chunk-Q5H3L6Y4.js";
|
|
@@ -42,7 +41,7 @@ import {
|
|
|
42
41
|
RUNTIMES,
|
|
43
42
|
RUNTIME_IDS,
|
|
44
43
|
sha256
|
|
45
|
-
} from "./chunk-
|
|
44
|
+
} from "./chunk-7DYWCQVB.js";
|
|
46
45
|
import {
|
|
47
46
|
doctorSpec
|
|
48
47
|
} from "./chunk-RHJEGLYM.js";
|
|
@@ -55,10 +54,12 @@ import {
|
|
|
55
54
|
import {
|
|
56
55
|
TOOLS
|
|
57
56
|
} from "./chunk-V4NPDK6X.js";
|
|
58
|
-
import "./chunk-
|
|
57
|
+
import "./chunk-ULFV3EIZ.js";
|
|
58
|
+
import "./chunk-NRBQK6UX.js";
|
|
59
59
|
import "./chunk-OEH47H6A.js";
|
|
60
60
|
import "./chunk-IJBSOWHK.js";
|
|
61
|
-
import "./chunk-
|
|
61
|
+
import "./chunk-XWLMZKH2.js";
|
|
62
|
+
import "./chunk-JTRFZQTB.js";
|
|
62
63
|
import "./chunk-GJXOFDJT.js";
|
|
63
64
|
import "./chunk-PMJG2CXF.js";
|
|
64
65
|
import "./chunk-J6KL3COD.js";
|
|
@@ -232,7 +233,13 @@ function onDisk(root) {
|
|
|
232
233
|
const file = join2(root, POLICY_FILE);
|
|
233
234
|
if (!existsSync3(file)) return null;
|
|
234
235
|
const text = readFileSync3(file, "utf8");
|
|
235
|
-
|
|
236
|
+
let lock = {};
|
|
237
|
+
try {
|
|
238
|
+
if (existsSync3(join2(root, LOCK_FILE)))
|
|
239
|
+
lock = JSON.parse(readFileSync3(join2(root, LOCK_FILE), "utf8"));
|
|
240
|
+
} catch {
|
|
241
|
+
lock = {};
|
|
242
|
+
}
|
|
236
243
|
const entry = lock.outputs?.find((output) => output.path === POLICY_FILE);
|
|
237
244
|
return { text, locked: entry?.sha256 === sha256(text) };
|
|
238
245
|
}
|
|
@@ -537,4 +544,4 @@ var doctorCommand = {
|
|
|
537
544
|
export {
|
|
538
545
|
doctorCommand
|
|
539
546
|
};
|
|
540
|
-
//# sourceMappingURL=doctor-
|
|
547
|
+
//# sourceMappingURL=doctor-FRQ5H5FU.js.map
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
requireTerminal
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-ESCOMAPX.js";
|
|
4
4
|
import "./chunk-5ZABTVSW.js";
|
|
5
5
|
import {
|
|
6
6
|
runTui
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-RZZZHQCE.js";
|
|
8
8
|
import {
|
|
9
9
|
ensureStartupDirectory,
|
|
10
10
|
readStartup,
|
|
@@ -14,22 +14,24 @@ import {
|
|
|
14
14
|
} from "./chunk-C3G75JH7.js";
|
|
15
15
|
import {
|
|
16
16
|
invoke
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-ICZH4NFR.js";
|
|
18
18
|
import {
|
|
19
19
|
lockFile
|
|
20
20
|
} from "./chunk-DZ2MRTYT.js";
|
|
21
21
|
import "./chunk-LMT3PPXJ.js";
|
|
22
|
-
import "./chunk-
|
|
23
|
-
import "./chunk-
|
|
22
|
+
import "./chunk-NQFULJZC.js";
|
|
23
|
+
import "./chunk-7Q3AIS4Q.js";
|
|
24
24
|
import {
|
|
25
25
|
locateExecutable
|
|
26
26
|
} from "./chunk-R2GPCZUX.js";
|
|
27
|
-
import "./chunk-
|
|
27
|
+
import "./chunk-UQNRGU3V.js";
|
|
28
28
|
import "./chunk-34DECPVC.js";
|
|
29
|
-
import "./chunk-
|
|
29
|
+
import "./chunk-ULFV3EIZ.js";
|
|
30
|
+
import "./chunk-NRBQK6UX.js";
|
|
30
31
|
import "./chunk-OEH47H6A.js";
|
|
31
32
|
import "./chunk-IJBSOWHK.js";
|
|
32
|
-
import "./chunk-
|
|
33
|
+
import "./chunk-XWLMZKH2.js";
|
|
34
|
+
import "./chunk-JTRFZQTB.js";
|
|
33
35
|
import "./chunk-GJXOFDJT.js";
|
|
34
36
|
import "./chunk-PMJG2CXF.js";
|
|
35
37
|
import {
|
|
@@ -302,4 +304,4 @@ export {
|
|
|
302
304
|
launchStartup,
|
|
303
305
|
planStartup
|
|
304
306
|
};
|
|
305
|
-
//# sourceMappingURL=entry-
|
|
307
|
+
//# sourceMappingURL=entry-XPZZNQ4L.js.map
|