@modootoday/pmcp 0.26.1 → 0.28.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/{apply-7HWNHSQB.js → apply-6ORDPVZS.js} +9 -9
- package/dist/{chunk-GYL2C2Y5.js → chunk-2I54YKIV.js} +2 -2
- package/dist/{chunk-JDVDA5HW.js → chunk-45EC3JVG.js} +4 -4
- package/dist/{chunk-XPLT6DJC.js → chunk-4G6LXAM4.js} +26 -24
- package/dist/{chunk-YKICVMF7.js → chunk-4ZB5NJZA.js} +8 -3
- package/dist/{chunk-2VL3C52Y.js → chunk-5KE3B5TO.js} +2 -2
- package/dist/chunk-674APJDK.js +128 -0
- package/dist/{chunk-3T7CJS4A.js → chunk-6FUUX5WO.js} +2 -2
- package/dist/chunk-6TM7PLXG.js +154 -0
- package/dist/{chunk-RGTWJWQ7.js → chunk-7J25NFM6.js} +2 -2
- package/dist/{chunk-M2XABD33.js → chunk-BLE3YNCU.js} +3 -3
- package/dist/{chunk-GIK4TROM.js → chunk-C7VIQJLF.js} +2 -2
- package/dist/{chunk-CJD2HFXF.js → chunk-HUAPDSKW.js} +3 -3
- package/dist/{chunk-KWEW5EBE.js → chunk-IQYJWLGX.js} +2 -2
- package/dist/{chunk-A7MF7RMO.js → chunk-IWDZYK6V.js} +5 -5
- package/dist/{chunk-S2FUWBLO.js → chunk-J3C46RXZ.js} +61 -8
- package/dist/chunk-LXJTABBQ.js +1148 -0
- package/dist/{chunk-OHCUPXU4.js → chunk-LXWAU7AX.js} +65 -2
- package/dist/{chunk-MFQAQ4IJ.js → chunk-MPH7BQON.js} +4 -4
- package/dist/{chunk-T52AGUO7.js → chunk-N6Q2QB2H.js} +2 -2
- package/dist/{chunk-5ZP3ABPI.js → chunk-OFYDBK44.js} +2 -2
- package/dist/{chunk-BSG74PTY.js → chunk-Q2UBBZSD.js} +3 -3
- package/dist/{chunk-UHKHXS3E.js → chunk-Q7HMO7JX.js} +2 -2
- package/dist/chunk-RS2ST3KT.js +7 -0
- package/dist/{chunk-ZT75ACJ2.js → chunk-SHTSGJBH.js} +2 -2
- package/dist/chunk-TYXJBXZQ.js +441 -0
- package/dist/{chunk-E7BPELYH.js → chunk-V42DHBXN.js} +5 -5
- package/dist/chunk-WG7KH46S.js +71 -0
- package/dist/{cli-FVUHK2NB.js → cli-FXHKAXIV.js} +5 -5
- package/dist/cli.js +10 -10
- package/dist/{completion-O3KRUSJG.js → completion-OXAWXTUC.js} +6 -6
- package/dist/{diagnostics-PB5TKIAL.js → diagnostics-PTGOBBN7.js} +5 -5
- package/dist/{doctor-JVWINJT5.js → doctor-IVKT4F44.js} +11 -11
- package/dist/doctor-NKFZNSRD.js +106 -0
- package/dist/{entry-CY74PLN3.js → entry-7EWYX5XJ.js} +11 -11
- package/dist/{exec-mcp-HAKUGQZM.js → exec-mcp-WWVMIQLV.js} +7 -7
- package/dist/{harness-N234LNM7.js → harness-L5PBWKXS.js} +3 -3
- package/dist/harness-launch-gate.js +3 -3
- package/dist/harness-worker.js +5 -5
- package/dist/heavy-VBC4AGL6.js +1063 -0
- package/dist/hook-body.js +86 -45
- package/dist/{hooks-7K624JQC.js → hooks-BKLDQQSN.js} +3 -3
- package/dist/{host-PT7NRWG6.js → host-3GP3BJKY.js} +6 -6
- package/dist/host-TVWPNQV5.js +32 -0
- package/dist/{host-CCJFOCZJ.js → host-U7CA77BY.js} +9 -9
- package/dist/{host-run-RRBFTVYW.js → host-run-MHD72EGP.js} +4 -4
- package/dist/http.js +1 -1
- package/dist/{import-mcp-GCNNSLWH.js → import-mcp-7EV5RPWK.js} +6 -6
- package/dist/index.d.ts +1 -1
- package/dist/index.js +10 -10
- package/dist/{init-A4NLTERR.js → init-SHHALJOG.js} +2 -2
- package/dist/{invoke-G4LNWPTL.js → invoke-W42C5POV.js} +7 -7
- package/dist/jobs-FLHB3WER.js +26 -0
- package/dist/{list-EZYULVDW.js → list-GNNRY4NJ.js} +8 -8
- package/dist/{logout-BYO3UJUH.js → logout-DZVBFQYZ.js} +7 -7
- package/dist/{mainline-SWZPKA7U.js → mainline-D665V4Y3.js} +19 -3
- package/dist/{mcp-CZNYDYTJ.js → mcp-5A6WWV32.js} +2 -2
- package/dist/measure-Z5HPT26L.js +129 -0
- package/dist/plan-46BTJQIV.js +98 -0
- package/dist/{project-GLT3SO7Y.js → project-CKECETMB.js} +4 -4
- package/dist/{run-J5O2V3MB.js → run-LWVKCXS4.js} +6 -6
- package/dist/{run-OBQBKBPV.js → run-YMER7XMR.js} +4 -4
- package/dist/{serve-QCG4PCVS.js → serve-GYMBJPNJ.js} +3 -3
- package/dist/{setup-7JHWLV7K.js → setup-ZYD5XBKU.js} +2 -2
- package/dist/{start-login-LRO3RTHD.js → start-login-NE5QMH2F.js} +7 -7
- package/dist/{status-EZTFSD5S.js → status-HCZBWIC3.js} +8 -8
- package/dist/{status-BQLT7JRE.js → status-WP6NM6VP.js} +7 -7
- package/dist/stdio.js +2 -2
- package/dist/{test-O7TN5SBA.js → test-PLZ62G54.js} +7 -7
- package/dist/{tui-ODLF6QWC.js → tui-ZWLRAOCQ.js} +4 -4
- package/dist/{worker-AK4GLGPZ.js → worker-GMSWWVTS.js} +9 -9
- package/dist/{worktree-sync-BQZD4J73.js → worktree-sync-TQ75DK62.js} +4 -2
- package/docs/commands.md +24 -8
- package/docs/git-workflow.md +9 -0
- package/docs/project-configuration.md +1 -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-EIBKHS74.js +0 -7
- package/dist/heavy-X3KZ7WBU.js +0 -2211
|
@@ -1190,7 +1190,7 @@ function registerReadTool(server, tools) {
|
|
|
1190
1190
|
|
|
1191
1191
|
// src/mcp.ts
|
|
1192
1192
|
var SERVER_NAME = "pmcp";
|
|
1193
|
-
var SERVER_VERSION = "0.
|
|
1193
|
+
var SERVER_VERSION = "0.28.1";
|
|
1194
1194
|
var MAX_TOOL_INPUT_ELEMENTS = 1e4;
|
|
1195
1195
|
function registerSkillTools(server, tools) {
|
|
1196
1196
|
registerCatalogTool(server, tools);
|
|
@@ -1247,4 +1247,4 @@ export {
|
|
|
1247
1247
|
registerSkillTools,
|
|
1248
1248
|
createSkillServer
|
|
1249
1249
|
};
|
|
1250
|
-
//# sourceMappingURL=chunk-
|
|
1250
|
+
//# sourceMappingURL=chunk-IQYJWLGX.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
hostApprovalDoctor
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-7J25NFM6.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-MPH7BQON.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-45EC3JVG.js";
|
|
27
27
|
import {
|
|
28
28
|
pathPmcp,
|
|
29
29
|
pmcpCommand
|
|
@@ -37,7 +37,7 @@ import {
|
|
|
37
37
|
hostEnvDoctor,
|
|
38
38
|
ptyBinaryDoctor,
|
|
39
39
|
readLockFile
|
|
40
|
-
} from "./chunk-
|
|
40
|
+
} from "./chunk-5KE3B5TO.js";
|
|
41
41
|
import {
|
|
42
42
|
ProjectError
|
|
43
43
|
} from "./chunk-TYY5TYHF.js";
|
|
@@ -671,4 +671,4 @@ export {
|
|
|
671
671
|
spawnRunner,
|
|
672
672
|
doctor
|
|
673
673
|
};
|
|
674
|
-
//# sourceMappingURL=chunk-
|
|
674
|
+
//# sourceMappingURL=chunk-IWDZYK6V.js.map
|
|
@@ -89,6 +89,10 @@ function installIfStale(root, spec, report) {
|
|
|
89
89
|
return 0;
|
|
90
90
|
}
|
|
91
91
|
|
|
92
|
+
// src/git/dir-to-gitlink.ts
|
|
93
|
+
import { existsSync as existsSync3, readdirSync as readdirSync2 } from "fs";
|
|
94
|
+
import { join as join3 } from "path";
|
|
95
|
+
|
|
92
96
|
// src/git/added-submodules.ts
|
|
93
97
|
import {
|
|
94
98
|
cpSync,
|
|
@@ -221,9 +225,46 @@ function displace(root, path) {
|
|
|
221
225
|
return target;
|
|
222
226
|
}
|
|
223
227
|
|
|
228
|
+
// src/git/dir-to-gitlink.ts
|
|
229
|
+
function dirToGitlinkPolicy(submodules) {
|
|
230
|
+
if (submodules === void 0) return { mode: "adopt" };
|
|
231
|
+
return {
|
|
232
|
+
mode: submodules.dirToGitlink,
|
|
233
|
+
...submodules.dirToGitlinkHint === void 0 ? {} : { hint: submodules.dirToGitlinkHint }
|
|
234
|
+
};
|
|
235
|
+
}
|
|
236
|
+
function dirsBecomingGitlinks(root, from, to) {
|
|
237
|
+
const raw = gitText(root, [
|
|
238
|
+
"diff",
|
|
239
|
+
"--raw",
|
|
240
|
+
"--abbrev=40",
|
|
241
|
+
"--no-renames",
|
|
242
|
+
from,
|
|
243
|
+
to
|
|
244
|
+
]);
|
|
245
|
+
const paths = [];
|
|
246
|
+
for (const entry of raw.split("\n")) {
|
|
247
|
+
const added = ADDED_GITLINK.exec(entry);
|
|
248
|
+
if (!added) continue;
|
|
249
|
+
const path = added[2] ?? "";
|
|
250
|
+
const kind = git(root, ["cat-file", "-t", `${from}:${path}`]);
|
|
251
|
+
if (kind.status !== 0 || kind.stdout.trim() !== "tree") continue;
|
|
252
|
+
const dir = join3(root, path);
|
|
253
|
+
if (existsSync3(dir) && readdirSync2(dir).length > 0) paths.push(path);
|
|
254
|
+
}
|
|
255
|
+
return paths;
|
|
256
|
+
}
|
|
257
|
+
function dirToGitlinkRefusal(root, from, to, policy) {
|
|
258
|
+
if (policy?.mode !== "refuse") return null;
|
|
259
|
+
const paths = dirsBecomingGitlinks(root, from, to);
|
|
260
|
+
if (paths.length === 0) return null;
|
|
261
|
+
const hint = policy.hint === void 0 ? "" : `; ${policy.hint}`;
|
|
262
|
+
return `the move turns ${paths.join(", ")} from a directory with files into a gitlink ([git.submodules] dir_to_gitlink = "refuse"); left where it is${hint}`;
|
|
263
|
+
}
|
|
264
|
+
|
|
224
265
|
// src/git/submodules.ts
|
|
225
|
-
import { existsSync as
|
|
226
|
-
import { join as
|
|
266
|
+
import { existsSync as existsSync4 } from "fs";
|
|
267
|
+
import { join as join4 } from "path";
|
|
227
268
|
var GITLINK = /^:160000 160000 ([0-9a-f]{40}) ([0-9a-f]{40}) M\t(.+)$/u;
|
|
228
269
|
function clean(dir) {
|
|
229
270
|
return git(dir, ["status", "--porcelain"]).stdout.trim() === "";
|
|
@@ -240,7 +281,7 @@ function blocking(dir, head, pin) {
|
|
|
240
281
|
}
|
|
241
282
|
function followOne(dir, oldPin, newPin, shared) {
|
|
242
283
|
const short = newPin.slice(0, 10);
|
|
243
|
-
if (!
|
|
284
|
+
if (!existsSync4(join4(dir, ".git"))) return "not checked out, left alone";
|
|
244
285
|
const head = gitText(dir, ["rev-parse", "HEAD"]);
|
|
245
286
|
if (head === newPin) return `already at ${short}`;
|
|
246
287
|
if (head !== oldPin)
|
|
@@ -273,7 +314,7 @@ function followPins(root, from, to, shared = []) {
|
|
|
273
314
|
if (!match) continue;
|
|
274
315
|
const [, oldPin = "", newPin = "", path = ""] = match;
|
|
275
316
|
lines.push(
|
|
276
|
-
`${path}: ${followOne(
|
|
317
|
+
`${path}: ${followOne(join4(root, path), oldPin, newPin, shared.includes(path))}`
|
|
277
318
|
);
|
|
278
319
|
}
|
|
279
320
|
return lines;
|
|
@@ -281,8 +322,8 @@ function followPins(root, from, to, shared = []) {
|
|
|
281
322
|
function movableSubmodules(root) {
|
|
282
323
|
const listed = git(root, ["submodule", "status"]).stdout;
|
|
283
324
|
return listed.split("\n").filter((line) => /^[ +]/u.test(line)).map((line) => line.trim().split(/\s+/u)[1] ?? "").filter((path) => {
|
|
284
|
-
const dir =
|
|
285
|
-
if (!path || !
|
|
325
|
+
const dir = join4(root, path);
|
|
326
|
+
if (!path || !existsSync4(join4(dir, ".git"))) return false;
|
|
286
327
|
const local = gitText(dir, [
|
|
287
328
|
"rev-list",
|
|
288
329
|
"--count",
|
|
@@ -297,7 +338,7 @@ function updateToPins(root, paths) {
|
|
|
297
338
|
const lines = [];
|
|
298
339
|
for (const path of paths) {
|
|
299
340
|
const pin = gitText(root, ["rev-parse", `HEAD:${path}`]);
|
|
300
|
-
const dir =
|
|
341
|
+
const dir = join4(root, path);
|
|
301
342
|
if (!pin || !hasCommit(dir, pin)) {
|
|
302
343
|
lines.push(
|
|
303
344
|
`${path}: left alone, ${pin.slice(0, 10) || "its pin"} is not in its checkout`
|
|
@@ -366,6 +407,16 @@ function syncOnce(options) {
|
|
|
366
407
|
}
|
|
367
408
|
const submodules = options.followSubmodules ? movableSubmodules(ctx.root) : [];
|
|
368
409
|
const before = gitText(ctx.root, ["rev-parse", "HEAD"]);
|
|
410
|
+
const replaced = dirToGitlinkRefusal(
|
|
411
|
+
ctx.root,
|
|
412
|
+
before,
|
|
413
|
+
gitText(ctx.root, ["rev-parse", ctx.upstream]),
|
|
414
|
+
options.dirToGitlink
|
|
415
|
+
);
|
|
416
|
+
if (replaced !== null) {
|
|
417
|
+
report.warn(replaced);
|
|
418
|
+
return "held";
|
|
419
|
+
}
|
|
369
420
|
const args = counted.ahead > 0 ? ["reset", "--keep", "-q", ctx.upstream] : ["merge", "--ff-only", "-q", ctx.upstream];
|
|
370
421
|
const moved = git(ctx.root, args);
|
|
371
422
|
if (moved.status !== 0) {
|
|
@@ -399,7 +450,9 @@ export {
|
|
|
399
450
|
installState,
|
|
400
451
|
installIfStale,
|
|
401
452
|
initAddedSubmodules,
|
|
453
|
+
dirToGitlinkPolicy,
|
|
454
|
+
dirToGitlinkRefusal,
|
|
402
455
|
followPins,
|
|
403
456
|
syncWorktree
|
|
404
457
|
};
|
|
405
|
-
//# sourceMappingURL=chunk-
|
|
458
|
+
//# sourceMappingURL=chunk-J3C46RXZ.js.map
|