@modootoday/pmcp 0.21.0 → 0.22.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.
Files changed (83) hide show
  1. package/.agents/plugins/marketplace.json +1 -1
  2. package/.claude-plugin/marketplace.json +1 -1
  3. package/.claude-plugin/plugin.json +1 -1
  4. package/.mcp.json +1 -1
  5. package/dist/{apply-6FLMTJDV.js → apply-3PR4UOES.js} +10 -10
  6. package/dist/{chunk-DJZPPCJP.js → chunk-2QJGUR23.js} +3 -3
  7. package/dist/{chunk-OS5DF3LL.js → chunk-3LADLKAI.js} +4 -4
  8. package/dist/{chunk-G6JXCUSK.js → chunk-3OBJVG5R.js} +2 -2
  9. package/dist/{chunk-KVNNVLJR.js → chunk-5ZUDBC3P.js} +2 -2
  10. package/dist/{chunk-5FW7A6TG.js → chunk-73IDLWRI.js} +2 -2
  11. package/dist/{chunk-TBKVC2TA.js → chunk-E6YP2PMO.js} +2 -2
  12. package/dist/{chunk-R3MVL67T.js → chunk-EPNTYTDZ.js} +12 -12
  13. package/dist/{chunk-ZIJ5IUXH.js → chunk-GBKRDRMZ.js} +14 -5
  14. package/dist/chunk-L42U5XKC.js +7 -0
  15. package/dist/{chunk-Z4Q6RYJH.js → chunk-LVNGMGOM.js} +2 -2
  16. package/dist/{chunk-GQP4GWU4.js → chunk-NDED2O5B.js} +5 -5
  17. package/dist/{chunk-VBDDFO2V.js → chunk-RNC7PGW2.js} +2 -2
  18. package/dist/{chunk-OFPNCLG7.js → chunk-RNE4WPBS.js} +2 -2
  19. package/dist/{chunk-33KGCJB2.js → chunk-S4Y44CCC.js} +2 -2
  20. package/dist/{chunk-UFWQTZDX.js → chunk-SEM6WD7J.js} +5 -5
  21. package/dist/{chunk-YLITJLTR.js → chunk-SLCNCAWY.js} +3 -3
  22. package/dist/{chunk-POTI2RJ6.js → chunk-SPZ42EWE.js} +2 -2
  23. package/dist/{chunk-VUM6LO77.js → chunk-TCW2H47H.js} +9 -21
  24. package/dist/{chunk-3X5JQYKN.js → chunk-TPGJXENR.js} +3 -3
  25. package/dist/chunk-UKR64U7J.js +20 -0
  26. package/dist/{chunk-DEY23WTH.js → chunk-XB363ZXT.js} +2 -2
  27. package/dist/{chunk-UD3BEEBQ.js → chunk-XZ2TDH3J.js} +80 -3
  28. package/dist/{cli-RVPR3MH3.js → cli-BEEDAD4E.js} +5 -5
  29. package/dist/cli.js +3 -3
  30. package/dist/{completion-YTPHEVEW.js → completion-LHYNCQ3N.js} +2 -2
  31. package/dist/{diagnostics-IW54MLFK.js → diagnostics-ABTJUYZQ.js} +5 -5
  32. package/dist/{doctor-EN4JPSKV.js → doctor-GPPO5L4F.js} +12 -12
  33. package/dist/{entry-TQWSDTJ4.js → entry-ARGY5CKA.js} +9 -9
  34. package/dist/{exec-mcp-KKQ75N5O.js → exec-mcp-JEF74XVP.js} +8 -8
  35. package/dist/{harness-EB76F6BG.js → harness-OCXW6YE4.js} +3 -3
  36. package/dist/harness-launch-gate.js +3 -3
  37. package/dist/harness-worker.js +5 -5
  38. package/dist/{hooks-YWSHUNLM.js → hooks-JHXUN5MD.js} +3 -3
  39. package/dist/{host-LSVITS6M.js → host-OBRHBDRE.js} +6 -6
  40. package/dist/{host-OGGADMBT.js → host-VI4ZFCZP.js} +10 -10
  41. package/dist/{host-run-XO2TS4JC.js → host-run-H7AITG7C.js} +4 -4
  42. package/dist/http.js +1 -1
  43. package/dist/{import-mcp-BJDJTPVS.js → import-mcp-3Y33CUHF.js} +7 -7
  44. package/dist/index.d.ts +1 -1
  45. package/dist/index.js +11 -11
  46. package/dist/{init-773PTQM5.js → init-WZJHMWNJ.js} +2 -2
  47. package/dist/{invoke-Y7XH5S2L.js → invoke-GWWTXQLO.js} +7 -7
  48. package/dist/{list-5W65XVES.js → list-Y6UPLGNF.js} +9 -9
  49. package/dist/{logout-XO6ALD45.js → logout-KAUW4JZZ.js} +8 -8
  50. package/dist/{mainline-M2NSTAGC.js → mainline-Q42M2GJ2.js} +106 -13
  51. package/dist/{mcp-R62ZNVGJ.js → mcp-IDEUIY2F.js} +2 -2
  52. package/dist/{project-W5DQIZA6.js → project-GVVWLDOJ.js} +4 -4
  53. package/dist/{run-WYJMTLX7.js → run-HVNKQHVU.js} +4 -4
  54. package/dist/{run-OZLGSRHF.js → run-RRWB7U2Q.js} +7 -7
  55. package/dist/{serve-DCQGAGB7.js → serve-KJSOU3BR.js} +3 -3
  56. package/dist/{setup-D3KEJBGO.js → setup-3GET6K3J.js} +2 -2
  57. package/dist/{start-login-EKXM75XQ.js → start-login-RNHSEX5P.js} +8 -8
  58. package/dist/{status-23UDIYYP.js → status-RR4VZARJ.js} +9 -9
  59. package/dist/{status-EDSEG32U.js → status-Y25ONHA5.js} +8 -8
  60. package/dist/stdio.js +2 -2
  61. package/dist/{test-TM6PIZTV.js → test-7NYPQ6YU.js} +8 -8
  62. package/dist/{tui-EQNJIDN5.js → tui-H5RPSF4B.js} +4 -4
  63. package/dist/{worker-7X6WBPEI.js → worker-YWFTWIBP.js} +7 -7
  64. package/dist/{worktree-sync-T6C5YEYS.js → worktree-sync-A277AF4M.js} +3 -5
  65. package/docs/commands.md +1 -1
  66. package/docs/git-workflow.md +29 -8
  67. package/docs/project-configuration.md +4 -0
  68. package/docs/upgrading.md +16 -0
  69. package/gemini-extension.json +2 -2
  70. package/mcp.json +1 -1
  71. package/package.json +5 -5
  72. package/plugin.json +1 -1
  73. package/plugins/pmcp/.claude-plugin/plugin.json +1 -1
  74. package/plugins/pmcp/.mcp.json +1 -1
  75. package/plugins/pmcp/gemini-extension.json +2 -2
  76. package/plugins/pmcp/mcp.json +1 -1
  77. package/plugins/pmcp/plugin.json +1 -1
  78. package/plugins/pmcp/skills/agent-assets-migrate/SKILL.md +11 -8
  79. package/plugins/pmcp/skills/pmcp-project-init/SKILL.md +11 -7
  80. package/skills/agent-assets-migrate/SKILL.md +11 -8
  81. package/skills/pmcp-project-init/SKILL.md +11 -7
  82. package/dist/chunk-2MAD4WNZ.js +0 -92
  83. package/dist/chunk-H4ZOKIER.js +0 -7
@@ -1,92 +0,0 @@
1
- import {
2
- installIfStale,
3
- movableSubmodules,
4
- updateToPins
5
- } from "./chunk-UD3BEEBQ.js";
6
- import {
7
- cherry,
8
- distance
9
- } from "./chunk-KUBHGVTD.js";
10
- import {
11
- reportModes,
12
- restoreModes,
13
- restoreSubmoduleModes,
14
- withUmask
15
- } from "./chunk-P6LNYYYH.js";
16
- import {
17
- git,
18
- gitText
19
- } from "./chunk-G7JONWL4.js";
20
-
21
- // src/git/worktrees/sync.ts
22
- function heldBy(root, upstream, ahead) {
23
- const dirty = gitText(root, [
24
- "status",
25
- "--porcelain",
26
- "--untracked-files=no",
27
- "--ignore-submodules=all"
28
- ]);
29
- if (dirty) return "uncommitted changes";
30
- if (ahead === 0) return null;
31
- const own = cherry(root, upstream).missing.length;
32
- if (own > 0) return `${own} unlanded commit(s)`;
33
- return null;
34
- }
35
- function syncWorktree(options) {
36
- return withUmask(options.umask, () => syncOnce(options));
37
- }
38
- function syncOnce(options) {
39
- const { ctx, report } = options;
40
- if (!ctx.linked)
41
- throw new Error(
42
- "worktree sync moves a linked worktree; the main checkout uses pmcp git sync"
43
- );
44
- if (options.fetch !== false && git(ctx.root, ["fetch", "-q", ctx.remote, ctx.mainline]).status !== 0)
45
- report.warn(
46
- `fetch from ${ctx.remote} failed; judging against the last fetched ${ctx.upstream}`
47
- );
48
- const counted = distance(ctx.root, ctx.upstream);
49
- if (counted === null)
50
- throw new Error(`cannot compare HEAD with ${ctx.upstream}`);
51
- if (counted.behind === 0) {
52
- report.info(`already on ${ctx.upstream}`);
53
- if (options.install !== void 0)
54
- installIfStale(ctx.root, options.install, report);
55
- return "current";
56
- }
57
- const holds = heldBy(ctx.root, ctx.upstream, counted.ahead);
58
- if (holds !== null) {
59
- report.warn(
60
- `${counted.behind} commit(s) behind ${ctx.upstream} and holds ${holds}; left where it is`
61
- );
62
- return "held";
63
- }
64
- const submodules = options.followSubmodules ? movableSubmodules(ctx.root) : [];
65
- const before = gitText(ctx.root, ["rev-parse", "HEAD"]);
66
- const args = counted.ahead > 0 ? ["reset", "--keep", "-q", ctx.upstream] : ["merge", "--ff-only", "-q", ctx.upstream];
67
- const moved = git(ctx.root, args);
68
- if (moved.status !== 0) {
69
- report.warn(
70
- `could not move to ${ctx.upstream}: ${moved.stderr.trim().split("\n")[0] ?? ""}`
71
- );
72
- return "held";
73
- }
74
- const after = gitText(ctx.root, ["rev-parse", "HEAD"]);
75
- report.info(
76
- `moved ${before.slice(0, 10)} -> ${after.slice(0, 10)}, ${counted.behind} commit(s)`
77
- );
78
- for (const line of updateToPins(ctx.root, submodules)) report.info(line);
79
- if (options.umask !== void 0)
80
- reportModes(report, [
81
- ...restoreModes(ctx.root, before, after),
82
- ...restoreSubmoduleModes(ctx.root, before, after)
83
- ]);
84
- if (options.install !== void 0)
85
- installIfStale(ctx.root, options.install, report);
86
- return "moved";
87
- }
88
-
89
- export {
90
- syncWorktree
91
- };
92
- //# sourceMappingURL=chunk-2MAD4WNZ.js.map
@@ -1,7 +0,0 @@
1
- // src/commands/version.ts
2
- var VERSION = "0.21.0";
3
-
4
- export {
5
- VERSION
6
- };
7
- //# sourceMappingURL=chunk-H4ZOKIER.js.map