@modootoday/pmcp 0.18.4 → 0.19.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/{apply-75UWIUVQ.js → apply-JVLYYXAG.js} +16 -17
- package/dist/{broadcast-CBMVOV3G.js → broadcast-56NPEJWM.js} +3 -4
- package/dist/{chunk-JS5RTH4I.js → chunk-2Q6MNGU5.js} +2 -2
- package/dist/{chunk-YSUINA5Q.js → chunk-3O3FS6KM.js} +8 -8
- package/dist/{chunk-6UXJ62XJ.js → chunk-3TG3KVHZ.js} +3 -3
- package/dist/{chunk-LGO2SZAS.js → chunk-47ZGCZQA.js} +2 -2
- package/dist/{chunk-TFRJ5QOS.js → chunk-4LV7KDTS.js} +3 -3
- package/dist/{chunk-DAR6RGRN.js → chunk-6MZTOC6H.js} +2 -2
- package/dist/{chunk-LFR245MZ.js → chunk-CYQIAEQT.js} +5 -5
- package/dist/{chunk-DCU2EXQV.js → chunk-D5D3V6RU.js} +4 -4
- package/dist/{chunk-LTZH5E3G.js → chunk-DHAPQUEF.js} +235 -30
- package/dist/{chunk-LBXO4VPG.js → chunk-E4FJOLPJ.js} +6 -3
- package/dist/chunk-FGEBSQQJ.js +7 -0
- package/dist/{chunk-OPYFEHKG.js → chunk-G7JONWL4.js} +29 -1
- package/dist/{chunk-4JUSGIMX.js → chunk-HEPSITZX.js} +2 -2
- package/dist/{chunk-YRGDWUFY.js → chunk-IEK4U5RR.js} +2 -2
- package/dist/{chunk-QEW4J3IZ.js → chunk-ISNRDHSD.js} +2 -2
- package/dist/{chunk-S3PIAMXV.js → chunk-J5XQW2CM.js} +68 -8
- package/dist/{chunk-GZHHEHKY.js → chunk-JJBSYUSQ.js} +19 -7
- package/dist/{chunk-45Y3KZ3Q.js → chunk-KHQQGBFJ.js} +87 -20
- package/dist/{chunk-XMXBE5IQ.js → chunk-LCENQ6JR.js} +5 -5
- package/dist/{chunk-HE2C2S5A.js → chunk-NLKAEKSG.js} +3 -3
- package/dist/{chunk-ARA4VDHD.js → chunk-OHW3A7Z3.js} +2 -2
- package/dist/{chunk-ZWLUH3F2.js → chunk-PFWTGEZJ.js} +2 -2
- package/dist/{chunk-3CA3NNVH.js → chunk-Q3GLKL4B.js} +5 -5
- package/dist/{chunk-MSOZPOPX.js → chunk-QJRJCXX2.js} +7 -3
- package/dist/{chunk-R26RWSFW.js → chunk-QXRD7N35.js} +2 -2
- package/dist/{chunk-OB3P5RMN.js → chunk-TPLV2YX2.js} +2 -2
- package/dist/{chunk-XELAZAIM.js → chunk-UD3BEEBQ.js} +54 -12
- package/dist/{chunk-EAWPJHJ7.js → chunk-UGODVKBJ.js} +2 -2
- package/dist/{chunk-QBJC4DRP.js → chunk-UQNCBXXH.js} +14 -14
- package/dist/{chunk-VQ2HEGWH.js → chunk-WJJ2KYE4.js} +2 -2
- package/dist/{chunk-FBIDDE3N.js → chunk-Y2MZ5RE3.js} +71 -51
- package/dist/{cli-ZN7ZVDEZ.js → cli-MUP2NSXT.js} +10 -9
- package/dist/{cli-MI4ZCAZ3.js → cli-T5LHBUY2.js} +8 -8
- package/dist/cli.js +3 -3
- package/dist/{completion-WYJAKJE4.js → completion-CCK3LWVR.js} +2 -2
- package/dist/{diagnostics-ADIVFSBW.js → diagnostics-6WON3VMZ.js} +12 -12
- package/dist/{doctor-BBCS4DF5.js → doctor-UEXUOW5O.js} +18 -19
- package/dist/{entry-DMOTX4SS.js → entry-GMC6LRO2.js} +10 -10
- package/dist/{exec-mcp-OBUM3DVW.js → exec-mcp-FS7IPXNC.js} +13 -14
- package/dist/{harness-6AUE3I4Q.js → harness-32PERNQY.js} +3 -3
- package/dist/harness-launch-gate.js +4 -4
- package/dist/harness-worker.js +6 -6
- package/dist/hook-body.js +446 -278
- package/dist/{hook-spec-C5fWTSCH.d.ts → hook-spec-0aGt29Pg.d.ts} +22 -2
- package/dist/{hooks-HLPQPVRY.js → hooks-VQCLHXRZ.js} +3 -3
- package/dist/{host-LGSWU3PJ.js → host-4WNPLAD5.js} +7 -7
- package/dist/{host-5Q3X6OY7.js → host-ED3XRUNM.js} +15 -16
- package/dist/{host-run-4NMQQASQ.js → host-run-PNY6NAYW.js} +10 -6
- package/dist/http.js +1 -1
- package/dist/{import-mcp-WU7TO2RT.js → import-mcp-WEUY6IVK.js} +11 -12
- package/dist/index.d.ts +2 -2
- package/dist/index.js +17 -18
- package/dist/{init-XA6XXLGA.js → init-5ZDPHPWB.js} +2 -2
- package/dist/{invoke-CYQZYU5T.js → invoke-MB4SWBIE.js} +8 -8
- package/dist/{list-FNGXY5D7.js → list-U4SUFIS7.js} +13 -14
- package/dist/{logout-N753FBZP.js → logout-M76LEHVP.js} +12 -13
- package/dist/{logs-TBUA4UWU.js → logs-H3RPKNTE.js} +3 -4
- package/dist/{mailbox-BMTZOSZ7.js → mailbox-O3MX6QPF.js} +3 -4
- package/dist/{mainline-KAD2ERLP.js → mainline-DG75NLBS.js} +306 -57
- package/dist/{mcp-GR4VXKTG.js → mcp-NSKAEV7J.js} +2 -2
- package/dist/{pause-7LILUVGL.js → pause-2HQ7CKMR.js} +3 -4
- package/dist/project/hook-adapter.d.ts +1 -1
- package/dist/{project-OEBACWEX.js → project-FTXIKBML.js} +4 -4
- package/dist/{resume-26VFAAMH.js → resume-ETFTR5V3.js} +3 -4
- package/dist/{run-7XNGPU2I.js → run-UMHKF2GM.js} +4 -4
- package/dist/{run-MDRUOEFL.js → run-Y7NKULSP.js} +11 -12
- package/dist/{serve-HXHNWKEK.js → serve-MRWTSSAU.js} +3 -3
- package/dist/setup-T6T2PFC4.js +20 -0
- package/dist/{start-login-PWCEKNED.js → start-login-POISLJD2.js} +12 -13
- package/dist/{status-QFOBQ42J.js → status-GGDHOPSE.js} +20 -27
- package/dist/{status-RO55QPKV.js → status-GPSLH4VO.js} +3 -4
- package/dist/{status-54IYX2FN.js → status-XMATSURN.js} +12 -13
- package/dist/stdio.js +2 -2
- package/dist/{sweep-35LGQTTO.js → sweep-VY2TNOO5.js} +3 -4
- package/dist/{test-36ZUVALT.js → test-ULKQY6FV.js} +50 -15
- package/dist/{tui-CSRW4DN2.js → tui-NGBCIBRW.js} +4 -4
- package/dist/{unbroadcast-5QNGAJR2.js → unbroadcast-RKTBP57G.js} +3 -4
- package/dist/{worker-EODWT4KK.js → worker-Q7JWY6BR.js} +8 -8
- package/dist/{worktree-create-PZSRB7PH.js → worktree-create-NO4UOOEP.js} +2 -2
- package/dist/{worktree-list-JYB6VXLW.js → worktree-list-NEIDD66X.js} +4 -4
- package/dist/{worktree-sync-UF5CXPWV.js → worktree-sync-W4BDDLRO.js} +8 -9
- package/docs/commands.md +1 -1
- package/docs/git-workflow.md +58 -1
- package/docs/hooks.md +29 -0
- package/docs/project-configuration.md +7 -7
- 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-26WLNWDG.js +0 -93
- package/dist/chunk-MZCRCMEY.js +0 -7
- package/dist/setup-DTKZLZUT.js +0 -18
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
} from "./chunk-OEH47H6A.js";
|
|
4
4
|
import {
|
|
5
5
|
VERSION
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-FGEBSQQJ.js";
|
|
7
7
|
import {
|
|
8
8
|
ConfigError
|
|
9
9
|
} from "./chunk-QPL7E2HW.js";
|
|
@@ -11,9 +11,69 @@ import {
|
|
|
11
11
|
envNames
|
|
12
12
|
} from "./chunk-J6KL3COD.js";
|
|
13
13
|
|
|
14
|
+
// src/native/binary.ts
|
|
15
|
+
import { accessSync, constants, statSync } from "fs";
|
|
16
|
+
import { createRequire } from "module";
|
|
17
|
+
import { delimiter, dirname, join } from "path";
|
|
18
|
+
function executable(path) {
|
|
19
|
+
try {
|
|
20
|
+
accessSync(path, constants.X_OK);
|
|
21
|
+
return statSync(path).isFile();
|
|
22
|
+
} catch {
|
|
23
|
+
return false;
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
function packagedBinary(name, from = import.meta.url) {
|
|
27
|
+
const platform = `pmcp-${process.platform}-${process.arch}`;
|
|
28
|
+
let manifest;
|
|
29
|
+
try {
|
|
30
|
+
manifest = createRequire(from).resolve(
|
|
31
|
+
`@modootoday/${platform}/package.json`
|
|
32
|
+
);
|
|
33
|
+
} catch {
|
|
34
|
+
return { reason: `no @modootoday/${platform} package is installed` };
|
|
35
|
+
}
|
|
36
|
+
const path = join(dirname(manifest), "bin", name);
|
|
37
|
+
return executable(path) ? { path } : { reason: `@modootoday/${platform} has no ${name}` };
|
|
38
|
+
}
|
|
39
|
+
var BUILT = {
|
|
40
|
+
"linux-x64": ["pmcp-pty", "pmcp-tui", "pmcp-browser", "pmcp-desktop"],
|
|
41
|
+
"linux-arm64": ["pmcp-pty", "pmcp-tui", "pmcp-browser", "pmcp-desktop"],
|
|
42
|
+
"darwin-x64": ["pmcp-pty", "pmcp-tui"],
|
|
43
|
+
"darwin-arm64": ["pmcp-pty", "pmcp-tui"]
|
|
44
|
+
};
|
|
45
|
+
function missingBinary(name, variable, version, from = import.meta.url) {
|
|
46
|
+
const platform = `${process.platform}-${process.arch}`;
|
|
47
|
+
const pkg = `@modootoday/pmcp-${platform}@${version}`;
|
|
48
|
+
const own = `, or set ${variable} to a ${name} you built`;
|
|
49
|
+
if (!BUILT[platform]?.includes(name))
|
|
50
|
+
return `${name} is not built for ${platform}; set ${variable} to a ${name} you built`;
|
|
51
|
+
const found = packagedBinary(name, from);
|
|
52
|
+
if ("path" in found)
|
|
53
|
+
return `${name} at ${found.path} is not executable${own}`;
|
|
54
|
+
if (found.reason.startsWith("no "))
|
|
55
|
+
return `${name} not found: the platform package ${pkg} is not installed; reinstall @modootoday/pmcp (npm installs it as an optional dependency)${own}`;
|
|
56
|
+
return `${name} not found: ${found.reason}; reinstall @modootoday/pmcp${own}`;
|
|
57
|
+
}
|
|
58
|
+
function packaged(name) {
|
|
59
|
+
const found = packagedBinary(name);
|
|
60
|
+
return "path" in found ? found.path : null;
|
|
61
|
+
}
|
|
62
|
+
function nativeBinary(name, variable, env) {
|
|
63
|
+
const given = env[variable];
|
|
64
|
+
if (given) return executable(given) ? given : null;
|
|
65
|
+
const found = packaged(name);
|
|
66
|
+
if (found) return found;
|
|
67
|
+
for (const dir of (env["PATH"] ?? "").split(delimiter).filter(Boolean)) {
|
|
68
|
+
const candidate = join(dir, name);
|
|
69
|
+
if (executable(candidate)) return candidate;
|
|
70
|
+
}
|
|
71
|
+
return null;
|
|
72
|
+
}
|
|
73
|
+
|
|
14
74
|
// src/project/projector.ts
|
|
15
75
|
import { existsSync, mkdirSync, readFileSync, realpathSync } from "fs";
|
|
16
|
-
import { join } from "path";
|
|
76
|
+
import { join as join2 } from "path";
|
|
17
77
|
|
|
18
78
|
// src/project/write.ts
|
|
19
79
|
import { randomUUID } from "crypto";
|
|
@@ -28,7 +88,7 @@ import {
|
|
|
28
88
|
symlinkSync,
|
|
29
89
|
writeFileSync
|
|
30
90
|
} from "fs";
|
|
31
|
-
import { dirname } from "path";
|
|
91
|
+
import { dirname as dirname2 } from "path";
|
|
32
92
|
function fileMode(path) {
|
|
33
93
|
try {
|
|
34
94
|
const stat = lstatSync(path);
|
|
@@ -40,7 +100,7 @@ function fileMode(path) {
|
|
|
40
100
|
}
|
|
41
101
|
function syncDirectory(path) {
|
|
42
102
|
if (process.platform === "win32") return;
|
|
43
|
-
const descriptor = openSync(
|
|
103
|
+
const descriptor = openSync(dirname2(path), "r");
|
|
44
104
|
try {
|
|
45
105
|
fsyncSync(descriptor);
|
|
46
106
|
} finally {
|
|
@@ -80,7 +140,7 @@ function replaceLink(path, target) {
|
|
|
80
140
|
var LOCK_VERSION_KEY = "pmcp_version";
|
|
81
141
|
var PROJECTOR_FILE = "projector.json";
|
|
82
142
|
function lockVersionProblem(root) {
|
|
83
|
-
const path =
|
|
143
|
+
const path = join2(root, "pmcp.lock");
|
|
84
144
|
if (!existsSync(path)) return null;
|
|
85
145
|
const lock = JSON.parse(readFileSync(path, "utf8"));
|
|
86
146
|
const recorded = lock[LOCK_VERSION_KEY];
|
|
@@ -95,7 +155,7 @@ function recordProjector(spec, entry = process.argv[1]) {
|
|
|
95
155
|
const cli = realpathSync(entry);
|
|
96
156
|
if (!CLI_ENTRY.test(cli)) return;
|
|
97
157
|
const dir = projectStateDir(spec.root, policy.stateDir);
|
|
98
|
-
const file =
|
|
158
|
+
const file = join2(dir, PROJECTOR_FILE);
|
|
99
159
|
const known = existsSync(file) ? JSON.parse(readFileSync(file, "utf8")) : {};
|
|
100
160
|
mkdirSync(dir, { recursive: true });
|
|
101
161
|
replaceFile(
|
|
@@ -110,11 +170,11 @@ function recordProjector(spec, entry = process.argv[1]) {
|
|
|
110
170
|
// src/project/apply/lock.ts
|
|
111
171
|
import { createHash } from "crypto";
|
|
112
172
|
import { existsSync as existsSync2, readFileSync as readFileSync2 } from "fs";
|
|
113
|
-
import { join as
|
|
173
|
+
import { join as join3 } from "path";
|
|
114
174
|
var LOCK_FILE = "pmcp.lock";
|
|
115
175
|
var sha = (text2) => createHash("sha256").update(text2).digest("hex");
|
|
116
176
|
function readLock(root) {
|
|
117
|
-
const path =
|
|
177
|
+
const path = join3(root, LOCK_FILE);
|
|
118
178
|
if (!existsSync2(path)) return [];
|
|
119
179
|
const lock = JSON.parse(readFileSync2(path, "utf8"));
|
|
120
180
|
return lock.outputs ?? [];
|
|
@@ -138,53 +198,12 @@ function lockEntry(output) {
|
|
|
138
198
|
}
|
|
139
199
|
function writeLock(root, outputs) {
|
|
140
200
|
replaceFile(
|
|
141
|
-
|
|
201
|
+
join3(root, LOCK_FILE),
|
|
142
202
|
`${JSON.stringify({ version: 1, [LOCK_VERSION_KEY]: VERSION, outputs: outputs.filter((output) => output.kind !== "json" || output.managed === void 0 || output.managed.length > 0).map(lockEntry) }, null, 2)}
|
|
143
203
|
`
|
|
144
204
|
);
|
|
145
205
|
}
|
|
146
206
|
|
|
147
|
-
// src/native/binary.ts
|
|
148
|
-
import { accessSync, constants, statSync } from "fs";
|
|
149
|
-
import { createRequire } from "module";
|
|
150
|
-
import { delimiter, dirname as dirname2, join as join3 } from "path";
|
|
151
|
-
function executable(path) {
|
|
152
|
-
try {
|
|
153
|
-
accessSync(path, constants.X_OK);
|
|
154
|
-
return statSync(path).isFile();
|
|
155
|
-
} catch {
|
|
156
|
-
return false;
|
|
157
|
-
}
|
|
158
|
-
}
|
|
159
|
-
function packagedBinary(name, from = import.meta.url) {
|
|
160
|
-
const platform = `pmcp-${process.platform}-${process.arch}`;
|
|
161
|
-
let manifest;
|
|
162
|
-
try {
|
|
163
|
-
manifest = createRequire(from).resolve(
|
|
164
|
-
`@modootoday/${platform}/package.json`
|
|
165
|
-
);
|
|
166
|
-
} catch {
|
|
167
|
-
return { reason: `no @modootoday/${platform} package is installed` };
|
|
168
|
-
}
|
|
169
|
-
const path = join3(dirname2(manifest), "bin", name);
|
|
170
|
-
return executable(path) ? { path } : { reason: `@modootoday/${platform} has no ${name}` };
|
|
171
|
-
}
|
|
172
|
-
function packaged(name) {
|
|
173
|
-
const found = packagedBinary(name);
|
|
174
|
-
return "path" in found ? found.path : null;
|
|
175
|
-
}
|
|
176
|
-
function nativeBinary(name, variable, env) {
|
|
177
|
-
const given = env[variable];
|
|
178
|
-
if (given) return executable(given) ? given : null;
|
|
179
|
-
const found = packaged(name);
|
|
180
|
-
if (found) return found;
|
|
181
|
-
for (const dir of (env["PATH"] ?? "").split(delimiter).filter(Boolean)) {
|
|
182
|
-
const candidate = join3(dir, name);
|
|
183
|
-
if (executable(candidate)) return candidate;
|
|
184
|
-
}
|
|
185
|
-
return null;
|
|
186
|
-
}
|
|
187
|
-
|
|
188
207
|
// src/project/host-spec.ts
|
|
189
208
|
import { isAbsolute, normalize } from "path";
|
|
190
209
|
|
|
@@ -418,6 +437,7 @@ function readHost(path, raw) {
|
|
|
418
437
|
|
|
419
438
|
export {
|
|
420
439
|
packagedBinary,
|
|
440
|
+
missingBinary,
|
|
421
441
|
nativeBinary,
|
|
422
442
|
replaceFile,
|
|
423
443
|
replaceLink,
|
|
@@ -428,4 +448,4 @@ export {
|
|
|
428
448
|
writeLock,
|
|
429
449
|
readHost
|
|
430
450
|
};
|
|
431
|
-
//# sourceMappingURL=chunk-
|
|
451
|
+
//# sourceMappingURL=chunk-Y2MZ5RE3.js.map
|
|
@@ -11,23 +11,24 @@ 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-DG75NLBS.js")).mainlineDeliver;
|
|
15
|
+
if (verb === "sync") return (await import("./mainline-DG75NLBS.js")).mainlineSync;
|
|
16
16
|
if (verb !== "worktree")
|
|
17
17
|
throw new ArgumentError("Use worktree, deliver or sync");
|
|
18
18
|
if (sub === "create")
|
|
19
|
-
return (await import("./worktree-create-
|
|
19
|
+
return (await import("./worktree-create-NO4UOOEP.js")).worktreeCreate;
|
|
20
20
|
if (sub === "list")
|
|
21
|
-
return (await import("./worktree-list-
|
|
21
|
+
return (await import("./worktree-list-NEIDD66X.js")).worktreeList;
|
|
22
22
|
if (sub === "sync")
|
|
23
|
-
return (await import("./worktree-sync-
|
|
23
|
+
return (await import("./worktree-sync-W4BDDLRO.js")).worktreeSync;
|
|
24
24
|
throw new ArgumentError("Use worktree create, list or sync");
|
|
25
25
|
}
|
|
26
26
|
async function run(context) {
|
|
27
|
-
|
|
28
|
-
|
|
27
|
+
const [verb, sub] = context.args.positional;
|
|
28
|
+
if (context.args.flags.has("json") && !(verb === "worktree" && sub === "list") && verb !== "deliver")
|
|
29
|
+
throw new ArgumentError("--json requires git worktree list or git deliver");
|
|
29
30
|
const act = await action(context.args.positional);
|
|
30
|
-
const { loadGit } = await import("./setup-
|
|
31
|
+
const { loadGit } = await import("./setup-T6T2PFC4.js");
|
|
31
32
|
const setup = loadGit(context.cwd, one(context.args, "config"), context.env);
|
|
32
33
|
if (setup instanceof Error) {
|
|
33
34
|
context.ui.error(setup.message);
|
|
@@ -43,4 +44,4 @@ var gitCommand = { ...gitSpec, run };
|
|
|
43
44
|
export {
|
|
44
45
|
gitCommand
|
|
45
46
|
};
|
|
46
|
-
//# sourceMappingURL=cli-
|
|
47
|
+
//# sourceMappingURL=cli-MUP2NSXT.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-GPSLH4VO.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-O3MX6QPF.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-2HQ7CKMR.js")).run(context);
|
|
30
|
+
if (verb === "resume") return (await import("./resume-ETFTR5V3.js")).run(context);
|
|
31
31
|
if (verb === "broadcast")
|
|
32
|
-
return (await import("./broadcast-
|
|
32
|
+
return (await import("./broadcast-56NPEJWM.js")).run(context);
|
|
33
33
|
if (verb === "unbroadcast")
|
|
34
|
-
return (await import("./unbroadcast-
|
|
35
|
-
return (await import("./sweep-
|
|
34
|
+
return (await import("./unbroadcast-RKTBP57G.js")).run(context);
|
|
35
|
+
return (await import("./sweep-VY2TNOO5.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-T5LHBUY2.js.map
|
package/dist/cli.js
CHANGED
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
COMMANDS,
|
|
4
4
|
PLANNED,
|
|
5
5
|
commandNamed
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-UQNCBXXH.js";
|
|
7
7
|
import "./chunk-2P4Z2NUX.js";
|
|
8
8
|
import "./chunk-3Y3HDMHA.js";
|
|
9
9
|
import {
|
|
@@ -32,7 +32,7 @@ import {
|
|
|
32
32
|
import "./chunk-V4NPDK6X.js";
|
|
33
33
|
import {
|
|
34
34
|
VERSION
|
|
35
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-FGEBSQQJ.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-4WNPLAD5.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-UQNCBXXH.js";
|
|
5
5
|
import "./chunk-2P4Z2NUX.js";
|
|
6
6
|
import "./chunk-3Y3HDMHA.js";
|
|
7
7
|
import "./chunk-E3DQB5LS.js";
|
|
@@ -139,4 +139,4 @@ var completionCommand = {
|
|
|
139
139
|
export {
|
|
140
140
|
completionCommand
|
|
141
141
|
};
|
|
142
|
-
//# sourceMappingURL=completion-
|
|
142
|
+
//# sourceMappingURL=completion-CCK3LWVR.js.map
|
|
@@ -1,18 +1,22 @@
|
|
|
1
1
|
import {
|
|
2
2
|
dependencies
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-NLKAEKSG.js";
|
|
4
4
|
import {
|
|
5
5
|
assertNativeHost
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-HEPSITZX.js";
|
|
7
7
|
import {
|
|
8
8
|
locateExecutable
|
|
9
9
|
} from "./chunk-R2GPCZUX.js";
|
|
10
10
|
import "./chunk-34DECPVC.js";
|
|
11
|
-
import "./chunk-
|
|
12
|
-
import
|
|
11
|
+
import "./chunk-QJRJCXX2.js";
|
|
12
|
+
import {
|
|
13
|
+
missingBinary
|
|
14
|
+
} from "./chunk-Y2MZ5RE3.js";
|
|
13
15
|
import "./chunk-OEH47H6A.js";
|
|
14
16
|
import "./chunk-IJBSOWHK.js";
|
|
15
|
-
import
|
|
17
|
+
import {
|
|
18
|
+
VERSION
|
|
19
|
+
} from "./chunk-FGEBSQQJ.js";
|
|
16
20
|
import "./chunk-QPL7E2HW.js";
|
|
17
21
|
import "./chunk-PMJG2CXF.js";
|
|
18
22
|
import {
|
|
@@ -28,13 +32,9 @@ function remediation(tools, userManagerAvailable) {
|
|
|
28
32
|
"Use Linux or macOS for the terminal workspace. Other PMCP CLI features do not require this host profile."
|
|
29
33
|
);
|
|
30
34
|
if (!tools.pmcpPty)
|
|
31
|
-
steps.push(
|
|
32
|
-
"Build or install pmcp-pty and set PMCP_PTY_BIN to it, or put it on PATH."
|
|
33
|
-
);
|
|
35
|
+
steps.push(`${missingBinary("pmcp-pty", "PMCP_PTY_BIN", VERSION)}.`);
|
|
34
36
|
if (!tools.pmcpTui)
|
|
35
|
-
steps.push(
|
|
36
|
-
"Build or install pmcp-tui and set PMCP_TUI_BIN to it, or put it on PATH."
|
|
37
|
-
);
|
|
37
|
+
steps.push(`${missingBinary("pmcp-tui", "PMCP_TUI_BIN", VERSION)}.`);
|
|
38
38
|
if (tools.platform === "linux" && !(tools.systemctl && tools.systemdRun))
|
|
39
39
|
steps.push(
|
|
40
40
|
"Install systemd's systemctl and systemd-run for your distribution and add them to PATH."
|
|
@@ -91,4 +91,4 @@ function inspectTerminalHost() {
|
|
|
91
91
|
export {
|
|
92
92
|
inspectTerminalHost
|
|
93
93
|
};
|
|
94
|
-
//# sourceMappingURL=diagnostics-
|
|
94
|
+
//# sourceMappingURL=diagnostics-6WON3VMZ.js.map
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
specFrom
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-WJJ2KYE4.js";
|
|
4
4
|
import "./chunk-7DLZC73N.js";
|
|
5
5
|
import {
|
|
6
6
|
doctor,
|
|
7
7
|
spawnRunner
|
|
8
|
-
} from "./chunk-
|
|
9
|
-
import "./chunk-
|
|
10
|
-
import "./chunk-
|
|
8
|
+
} from "./chunk-3O3FS6KM.js";
|
|
9
|
+
import "./chunk-IEK4U5RR.js";
|
|
10
|
+
import "./chunk-Q3GLKL4B.js";
|
|
11
11
|
import "./chunk-P4N7DBD5.js";
|
|
12
12
|
import "./chunk-WIW772I3.js";
|
|
13
13
|
import "./chunk-VJFEN6DJ.js";
|
|
@@ -18,26 +18,25 @@ import {
|
|
|
18
18
|
LOCK_FILE,
|
|
19
19
|
POLICY_FILE,
|
|
20
20
|
sha256
|
|
21
|
-
} from "./chunk-
|
|
22
|
-
import "./chunk-
|
|
21
|
+
} from "./chunk-CYQIAEQT.js";
|
|
22
|
+
import "./chunk-QXRD7N35.js";
|
|
23
23
|
import {
|
|
24
24
|
FEATURES,
|
|
25
25
|
GUARDS,
|
|
26
26
|
RUNTIMES,
|
|
27
27
|
RUNTIME_IDS
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-KHQQGBFJ.js";
|
|
29
29
|
import "./chunk-HQOB7OQS.js";
|
|
30
|
-
import "./chunk-
|
|
31
|
-
import "./chunk-
|
|
32
|
-
import "./chunk-
|
|
33
|
-
import "./chunk-
|
|
34
|
-
import "./chunk-
|
|
35
|
-
import "./chunk-
|
|
30
|
+
import "./chunk-J5XQW2CM.js";
|
|
31
|
+
import "./chunk-2Q6MNGU5.js";
|
|
32
|
+
import "./chunk-D5D3V6RU.js";
|
|
33
|
+
import "./chunk-UD3BEEBQ.js";
|
|
34
|
+
import "./chunk-ISNRDHSD.js";
|
|
35
|
+
import "./chunk-G7JONWL4.js";
|
|
36
36
|
import "./chunk-EATCUWGG.js";
|
|
37
37
|
import "./chunk-NRBQK6UX.js";
|
|
38
38
|
import "./chunk-3PW4FI7U.js";
|
|
39
|
-
import "./chunk-
|
|
40
|
-
import "./chunk-LTZH5E3G.js";
|
|
39
|
+
import "./chunk-DHAPQUEF.js";
|
|
41
40
|
import "./chunk-C4NHQGHL.js";
|
|
42
41
|
import "./chunk-Q5H3L6Y4.js";
|
|
43
42
|
import "./chunk-73AKO4UL.js";
|
|
@@ -53,11 +52,11 @@ import {
|
|
|
53
52
|
import {
|
|
54
53
|
TOOLS
|
|
55
54
|
} from "./chunk-V4NPDK6X.js";
|
|
56
|
-
import "./chunk-
|
|
57
|
-
import "./chunk-
|
|
55
|
+
import "./chunk-QJRJCXX2.js";
|
|
56
|
+
import "./chunk-Y2MZ5RE3.js";
|
|
58
57
|
import "./chunk-OEH47H6A.js";
|
|
59
58
|
import "./chunk-IJBSOWHK.js";
|
|
60
|
-
import "./chunk-
|
|
59
|
+
import "./chunk-FGEBSQQJ.js";
|
|
61
60
|
import "./chunk-QPL7E2HW.js";
|
|
62
61
|
import "./chunk-PMJG2CXF.js";
|
|
63
62
|
import "./chunk-J6KL3COD.js";
|
|
@@ -536,4 +535,4 @@ var doctorCommand = {
|
|
|
536
535
|
export {
|
|
537
536
|
doctorCommand
|
|
538
537
|
};
|
|
539
|
-
//# sourceMappingURL=doctor-
|
|
538
|
+
//# sourceMappingURL=doctor-UEXUOW5O.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
invoke
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-LCENQ6JR.js";
|
|
4
4
|
import {
|
|
5
5
|
ensureStartupDirectory,
|
|
6
6
|
readStartup,
|
|
@@ -10,27 +10,27 @@ import {
|
|
|
10
10
|
} from "./chunk-J5ZS7GLA.js";
|
|
11
11
|
import {
|
|
12
12
|
requireTerminal
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-3TG3KVHZ.js";
|
|
14
14
|
import "./chunk-5ZABTVSW.js";
|
|
15
15
|
import {
|
|
16
16
|
runTui
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-NLKAEKSG.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-4LV7KDTS.js";
|
|
23
|
+
import "./chunk-HEPSITZX.js";
|
|
24
24
|
import {
|
|
25
25
|
locateExecutable
|
|
26
26
|
} from "./chunk-R2GPCZUX.js";
|
|
27
|
-
import "./chunk-
|
|
27
|
+
import "./chunk-47ZGCZQA.js";
|
|
28
28
|
import "./chunk-34DECPVC.js";
|
|
29
|
-
import "./chunk-
|
|
30
|
-
import "./chunk-
|
|
29
|
+
import "./chunk-QJRJCXX2.js";
|
|
30
|
+
import "./chunk-Y2MZ5RE3.js";
|
|
31
31
|
import "./chunk-OEH47H6A.js";
|
|
32
32
|
import "./chunk-IJBSOWHK.js";
|
|
33
|
-
import "./chunk-
|
|
33
|
+
import "./chunk-FGEBSQQJ.js";
|
|
34
34
|
import "./chunk-QPL7E2HW.js";
|
|
35
35
|
import "./chunk-PMJG2CXF.js";
|
|
36
36
|
import {
|
|
@@ -303,4 +303,4 @@ export {
|
|
|
303
303
|
launchStartup,
|
|
304
304
|
planStartup
|
|
305
305
|
};
|
|
306
|
-
//# sourceMappingURL=entry-
|
|
306
|
+
//# sourceMappingURL=entry-GMC6LRO2.js.map
|
|
@@ -8,36 +8,35 @@ import {
|
|
|
8
8
|
} from "./chunk-UPQTAHUK.js";
|
|
9
9
|
import {
|
|
10
10
|
specFrom
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-WJJ2KYE4.js";
|
|
12
12
|
import "./chunk-7DLZC73N.js";
|
|
13
13
|
import {
|
|
14
14
|
launch
|
|
15
|
-
} from "./chunk-
|
|
16
|
-
import "./chunk-
|
|
15
|
+
} from "./chunk-QXRD7N35.js";
|
|
16
|
+
import "./chunk-KHQQGBFJ.js";
|
|
17
17
|
import "./chunk-HQOB7OQS.js";
|
|
18
|
-
import "./chunk-
|
|
19
|
-
import "./chunk-
|
|
20
|
-
import "./chunk-
|
|
21
|
-
import "./chunk-
|
|
22
|
-
import "./chunk-
|
|
23
|
-
import "./chunk-
|
|
18
|
+
import "./chunk-J5XQW2CM.js";
|
|
19
|
+
import "./chunk-2Q6MNGU5.js";
|
|
20
|
+
import "./chunk-D5D3V6RU.js";
|
|
21
|
+
import "./chunk-UD3BEEBQ.js";
|
|
22
|
+
import "./chunk-ISNRDHSD.js";
|
|
23
|
+
import "./chunk-G7JONWL4.js";
|
|
24
24
|
import "./chunk-EATCUWGG.js";
|
|
25
25
|
import {
|
|
26
26
|
ProjectError
|
|
27
27
|
} from "./chunk-NRBQK6UX.js";
|
|
28
28
|
import "./chunk-3PW4FI7U.js";
|
|
29
|
-
import "./chunk-
|
|
30
|
-
import "./chunk-LTZH5E3G.js";
|
|
29
|
+
import "./chunk-DHAPQUEF.js";
|
|
31
30
|
import "./chunk-C4NHQGHL.js";
|
|
32
31
|
import {
|
|
33
32
|
McpAuthError
|
|
34
33
|
} from "./chunk-Q5H3L6Y4.js";
|
|
35
34
|
import "./chunk-A4PKLESO.js";
|
|
36
35
|
import "./chunk-V4NPDK6X.js";
|
|
37
|
-
import "./chunk-
|
|
36
|
+
import "./chunk-Y2MZ5RE3.js";
|
|
38
37
|
import "./chunk-OEH47H6A.js";
|
|
39
38
|
import "./chunk-IJBSOWHK.js";
|
|
40
|
-
import "./chunk-
|
|
39
|
+
import "./chunk-FGEBSQQJ.js";
|
|
41
40
|
import "./chunk-QPL7E2HW.js";
|
|
42
41
|
import "./chunk-PMJG2CXF.js";
|
|
43
42
|
import "./chunk-J6KL3COD.js";
|
|
@@ -363,4 +362,4 @@ function runExecMcp(context, name) {
|
|
|
363
362
|
export {
|
|
364
363
|
runExecMcp
|
|
365
364
|
};
|
|
366
|
-
//# sourceMappingURL=exec-mcp-
|
|
365
|
+
//# sourceMappingURL=exec-mcp-FS7IPXNC.js.map
|
|
@@ -151,12 +151,12 @@ var harnessCommand = {
|
|
|
151
151
|
return runPtyMcp(context);
|
|
152
152
|
}
|
|
153
153
|
if (context.args.positional[0] === "host") {
|
|
154
|
-
const { runHost } = await import("./host-
|
|
154
|
+
const { runHost } = await import("./host-ED3XRUNM.js");
|
|
155
155
|
return runHost(context);
|
|
156
156
|
}
|
|
157
157
|
try {
|
|
158
158
|
const operation = parseInvocation(context);
|
|
159
|
-
const { invoke } = await import("./invoke-
|
|
159
|
+
const { invoke } = await import("./invoke-MB4SWBIE.js");
|
|
160
160
|
const receipt = await invoke(operation);
|
|
161
161
|
context.ui.data(`${JSON.stringify(receipt)}
|
|
162
162
|
`);
|
|
@@ -174,4 +174,4 @@ var harnessCommand = {
|
|
|
174
174
|
export {
|
|
175
175
|
harnessCommand
|
|
176
176
|
};
|
|
177
|
-
//# sourceMappingURL=harness-
|
|
177
|
+
//# sourceMappingURL=harness-32PERNQY.js.map
|
|
@@ -7,13 +7,13 @@ import {
|
|
|
7
7
|
assertProof,
|
|
8
8
|
assertResourceFresh,
|
|
9
9
|
createProof
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-47ZGCZQA.js";
|
|
11
11
|
import "./chunk-34DECPVC.js";
|
|
12
|
-
import "./chunk-
|
|
13
|
-
import "./chunk-
|
|
12
|
+
import "./chunk-QJRJCXX2.js";
|
|
13
|
+
import "./chunk-Y2MZ5RE3.js";
|
|
14
14
|
import "./chunk-OEH47H6A.js";
|
|
15
15
|
import "./chunk-IJBSOWHK.js";
|
|
16
|
-
import "./chunk-
|
|
16
|
+
import "./chunk-FGEBSQQJ.js";
|
|
17
17
|
import "./chunk-QPL7E2HW.js";
|
|
18
18
|
import "./chunk-PMJG2CXF.js";
|
|
19
19
|
import {
|
package/dist/harness-worker.js
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import {
|
|
2
2
|
runOperation
|
|
3
|
-
} from "./chunk-
|
|
4
|
-
import "./chunk-
|
|
3
|
+
} from "./chunk-4LV7KDTS.js";
|
|
4
|
+
import "./chunk-HEPSITZX.js";
|
|
5
5
|
import "./chunk-R2GPCZUX.js";
|
|
6
|
-
import "./chunk-
|
|
6
|
+
import "./chunk-47ZGCZQA.js";
|
|
7
7
|
import "./chunk-34DECPVC.js";
|
|
8
|
-
import "./chunk-
|
|
9
|
-
import "./chunk-
|
|
8
|
+
import "./chunk-QJRJCXX2.js";
|
|
9
|
+
import "./chunk-Y2MZ5RE3.js";
|
|
10
10
|
import "./chunk-OEH47H6A.js";
|
|
11
11
|
import "./chunk-IJBSOWHK.js";
|
|
12
|
-
import "./chunk-
|
|
12
|
+
import "./chunk-FGEBSQQJ.js";
|
|
13
13
|
import "./chunk-QPL7E2HW.js";
|
|
14
14
|
import "./chunk-PMJG2CXF.js";
|
|
15
15
|
import {
|