@modootoday/pmcp 0.27.0 → 0.29.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 (77) 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-YNBY2GPK.js → apply-OAZNNNQS.js} +9 -9
  6. package/dist/{chunk-LKH57HLV.js → chunk-2ZNKC6ZB.js} +2 -2
  7. package/dist/{chunk-S2FUWBLO.js → chunk-3WXRU25Q.js} +74 -21
  8. package/dist/{chunk-YKICVMF7.js → chunk-5WAMDZHF.js} +11 -3
  9. package/dist/{chunk-L5EJK24I.js → chunk-66B5NX2N.js} +2 -2
  10. package/dist/{chunk-TVA2IN6H.js → chunk-72AF424S.js} +5 -5
  11. package/dist/{chunk-ZO5CRS2T.js → chunk-7JIJPBER.js} +2 -2
  12. package/dist/{chunk-OZTEMCCM.js → chunk-7PYTXWZE.js} +3 -3
  13. package/dist/{chunk-GVKVMSWX.js → chunk-ANSN2XBX.js} +13 -13
  14. package/dist/{chunk-6U6MLIS2.js → chunk-C3YIVQGU.js} +2 -2
  15. package/dist/chunk-DXQPI4QB.js +7 -0
  16. package/dist/{chunk-Q3XLIRIJ.js → chunk-I5JI547U.js} +4 -4
  17. package/dist/{chunk-M5GNZSOJ.js → chunk-KUQXCJ2W.js} +2 -2
  18. package/dist/{chunk-XCIFD7G5.js → chunk-L7SCC2OS.js} +2 -2
  19. package/dist/{chunk-Y5WIIEG2.js → chunk-LYVMXH4Y.js} +4 -4
  20. package/dist/{chunk-JTKGDT2K.js → chunk-M4CXEF2F.js} +2 -2
  21. package/dist/{chunk-X2WDR3UK.js → chunk-MYEVRRG2.js} +2 -2
  22. package/dist/{chunk-PH3P5WEY.js → chunk-OUKRDS4O.js} +3 -3
  23. package/dist/{chunk-5TT7YAEP.js → chunk-P54WENV4.js} +3 -3
  24. package/dist/{chunk-OY7XYKVL.js → chunk-POWQPJ5V.js} +2 -2
  25. package/dist/{chunk-X3LNF5KJ.js → chunk-QTLPN3MY.js} +5 -5
  26. package/dist/{chunk-ENFF7ZBC.js → chunk-UBCSERU5.js} +2 -2
  27. package/dist/{cli-FVUHK2NB.js → cli-J2ODG3GH.js} +5 -5
  28. package/dist/cli.js +3 -3
  29. package/dist/{completion-WKIMMLNF.js → completion-KE7XNYCC.js} +2 -2
  30. package/dist/{diagnostics-LCNF5NRK.js → diagnostics-67ODZ4US.js} +5 -5
  31. package/dist/{doctor-PSMPNQXS.js → doctor-GCGG3QJS.js} +11 -11
  32. package/dist/{entry-LMAWTZM2.js → entry-KVEZFVS4.js} +9 -9
  33. package/dist/{exec-mcp-VAP46MKO.js → exec-mcp-CIH2M7S3.js} +7 -7
  34. package/dist/{harness-ZCMU5MJD.js → harness-AP4WR5T6.js} +3 -3
  35. package/dist/harness-launch-gate.js +3 -3
  36. package/dist/harness-worker.js +5 -5
  37. package/dist/hook-body.js +96 -55
  38. package/dist/{hooks-AWAO7CQO.js → hooks-NL2NU4LD.js} +3 -3
  39. package/dist/{host-OBTC2PGQ.js → host-4PTSDTS6.js} +2 -2
  40. package/dist/{host-I4XIJTXR.js → host-EI63IQAF.js} +6 -6
  41. package/dist/{host-4GFQQJUS.js → host-OABIC6HJ.js} +9 -9
  42. package/dist/{host-run-T3FC7L6I.js → host-run-RFDKRQIK.js} +4 -4
  43. package/dist/http.js +1 -1
  44. package/dist/{import-mcp-5JSGA5IS.js → import-mcp-V4SU2PZC.js} +6 -6
  45. package/dist/index.d.ts +1 -1
  46. package/dist/index.js +10 -10
  47. package/dist/{init-PZYWBDZS.js → init-WWXUT7II.js} +2 -2
  48. package/dist/{invoke-DCKJCMRB.js → invoke-TW2CSSZW.js} +7 -7
  49. package/dist/{list-ZEU7T3XK.js → list-BVKM5YYP.js} +8 -8
  50. package/dist/{logout-CUSOVMKL.js → logout-AFUL7BL5.js} +7 -7
  51. package/dist/{mainline-SWZPKA7U.js → mainline-73LPNONI.js} +19 -3
  52. package/dist/{mcp-ZHOPOFXI.js → mcp-RAHIIHWP.js} +2 -2
  53. package/dist/{measure-AUBPYT6L.js → measure-PV54XMHK.js} +2 -2
  54. package/dist/{project-T36TRAWT.js → project-EORCMTYS.js} +4 -4
  55. package/dist/{run-LMSHQJPQ.js → run-RGFWSEEL.js} +6 -6
  56. package/dist/{run-37PVE74I.js → run-ZK7OKBCT.js} +4 -4
  57. package/dist/{serve-E4FD6PAL.js → serve-RKGWB275.js} +3 -3
  58. package/dist/{setup-7JHWLV7K.js → setup-V7QJKJ3M.js} +2 -2
  59. package/dist/{start-login-JSKFXSLY.js → start-login-POOTXBPU.js} +7 -7
  60. package/dist/{status-ZSK3PNM2.js → status-QZKAWH4N.js} +8 -8
  61. package/dist/{status-ZNWF4362.js → status-Y4IN4X5G.js} +7 -7
  62. package/dist/stdio.js +2 -2
  63. package/dist/{test-OCTC2DSZ.js → test-ABDOR6OT.js} +7 -7
  64. package/dist/{tui-LE2KPUMI.js → tui-JO3L7VY3.js} +4 -4
  65. package/dist/{worker-6U67LWIP.js → worker-3VI27AFS.js} +7 -7
  66. package/dist/{worktree-sync-BQZD4J73.js → worktree-sync-SHKTHKBR.js} +4 -2
  67. package/docs/git-workflow.md +19 -1
  68. package/gemini-extension.json +2 -2
  69. package/mcp.json +1 -1
  70. package/package.json +5 -5
  71. package/plugin.json +1 -1
  72. package/plugins/pmcp/.claude-plugin/plugin.json +1 -1
  73. package/plugins/pmcp/.mcp.json +1 -1
  74. package/plugins/pmcp/gemini-extension.json +2 -2
  75. package/plugins/pmcp/mcp.json +1 -1
  76. package/plugins/pmcp/plugin.json +1 -1
  77. package/dist/chunk-MXVP3ICV.js +0 -7
@@ -2,9 +2,10 @@ import {
2
2
  off
3
3
  } from "./chunk-YIXDHQYE.js";
4
4
  import {
5
+ dirToGitlinkPolicy,
5
6
  installSpec,
6
7
  syncWorktree
7
- } from "./chunk-S2FUWBLO.js";
8
+ } from "./chunk-3WXRU25Q.js";
8
9
  import "./chunk-2GD7PQ7J.js";
9
10
  import "./chunk-VQBXWMLT.js";
10
11
  import "./chunk-23PE3HZB.js";
@@ -20,6 +21,7 @@ var worktreeSync = (setup, _context, report) => {
20
21
  const result = syncWorktree({
21
22
  ctx,
22
23
  followSubmodules: config.submodules?.follow === "clean_pins",
24
+ dirToGitlink: dirToGitlinkPolicy(config.submodules, "desk"),
23
25
  report,
24
26
  ...config.umask !== void 0 ? { umask: config.umask } : {},
25
27
  ...install === void 0 ? {} : { install }
@@ -29,4 +31,4 @@ var worktreeSync = (setup, _context, report) => {
29
31
  export {
30
32
  worktreeSync
31
33
  };
32
- //# sourceMappingURL=worktree-sync-BQZD4J73.js.map
34
+ //# sourceMappingURL=worktree-sync-SHKTHKBR.js.map
@@ -198,13 +198,31 @@ its name. Delivery events record the same hash and whether the stamp matches it.
198
198
 
199
199
  `[git.submodules]`: `follow = "clean_pins"` (the default when the table is
200
200
  present) moves submodules to the pinned commit when they are clean; `"off"`
201
- leaves them. Without the table submodules are not followed.
201
+ leaves them. Without the table submodules are not followed. A clean submodule
202
+ whose commits are all on its origin follows even when it lagged behind the old
203
+ pin, and one that lacks the pinned commit fetches its origin first: git fetches
204
+ submodule commits only when the parent's own fetch brings new commits, and a
205
+ checkout sharing its refs (the main checkout, another desk) has usually fetched
206
+ them already. A submodule with commits its origin lacks stays where it is.
202
207
  `shared` lists submodules other sessions also edit in the main checkout (an
203
208
  app kept in its own repository, for example): those move to the new pin even with uncommitted edits, as
204
209
  long as no edited or untracked file is one the pin changes. When one is, the
205
210
  submodule stays on the old pin and sync names the files; pmcp never restores,
206
211
  stashes or discards them.
207
212
 
213
+ `dir_to_gitlink` decides what a sync does when the move turns a tracked directory
214
+ that still holds files into a gitlink (an app split out into its own repository).
215
+ `"adopt"` (the default) moves, then checks the new submodule out, setting ignored
216
+ output aside. `"refuse"` leaves the checkout where it is, with the directory and
217
+ its files untouched, and exits 1, so a separate step can adopt it; the optional
218
+ `dir_to_gitlink_hint` is appended to the refusal to name that step. It applies to
219
+ `pmcp git sync` in the main checkout and on desks, to `pmcp git worktree sync`,
220
+ and to the sync after a delivery, which still reports the delivery as done. The
221
+ main checkout usually adopts by a different step than a desk; when
222
+ `dir_to_gitlink_main_hint` is set, its refusals (sync there and after a delivery)
223
+ name that one instead. The exit code stays 1 because the checkout did not move:
224
+ a script that runs sync must not go on as if it had.
225
+
208
226
  With `push = "pins"`, `pmcp git deliver` first makes sure every submodule commit the
209
227
  delivered commits pin is on that submodule's origin. A pin already on a remote branch
210
228
  needs nothing. Otherwise exactly the pinned commit is pushed to the submodule's
@@ -1,11 +1,11 @@
1
1
  {
2
2
  "name": "pmcp",
3
- "version": "0.27.0",
3
+ "version": "0.29.0",
4
4
  "mcpServers": {
5
5
  "pmcp": {
6
6
  "type": "stdio",
7
7
  "command": "npx",
8
- "args": ["-y", "@modootoday/pmcp@0.27.0", "serve"]
8
+ "args": ["-y", "@modootoday/pmcp@0.29.0", "serve"]
9
9
  }
10
10
  }
11
11
  }
package/mcp.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "pmcp": {
5
5
  "type": "stdio",
6
6
  "command": "npx",
7
- "args": ["-y", "@modootoday/pmcp@0.27.0", "serve"]
7
+ "args": ["-y", "@modootoday/pmcp@0.29.0", "serve"]
8
8
  }
9
9
  }
10
10
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@modootoday/pmcp",
3
- "version": "0.27.0",
3
+ "version": "0.29.0",
4
4
  "license": "Elastic-2.0",
5
5
  "author": "modootoday",
6
6
  "description": "Use the skills your packages already ship, and keep your AI tools' project configuration in one place.",
@@ -136,9 +136,9 @@
136
136
  "bun": ">=1.3.0"
137
137
  },
138
138
  "optionalDependencies": {
139
- "@modootoday/pmcp-linux-x64": "0.27.0",
140
- "@modootoday/pmcp-linux-arm64": "0.27.0",
141
- "@modootoday/pmcp-darwin-x64": "0.27.0",
142
- "@modootoday/pmcp-darwin-arm64": "0.27.0"
139
+ "@modootoday/pmcp-linux-x64": "0.29.0",
140
+ "@modootoday/pmcp-linux-arm64": "0.29.0",
141
+ "@modootoday/pmcp-darwin-x64": "0.29.0",
142
+ "@modootoday/pmcp-darwin-arm64": "0.29.0"
143
143
  }
144
144
  }
package/plugin.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://agent-plugins.org/schemas/1.0.0/plugin.schema.json",
3
3
  "name": "pmcp",
4
- "version": "0.27.0",
4
+ "version": "0.29.0",
5
5
  "description": "Find package skills and use native runtime project configuration.",
6
6
  "author": { "name": "modootoday" },
7
7
  "license": "Elastic-2.0",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pmcp",
3
- "version": "0.27.0",
3
+ "version": "0.29.0",
4
4
  "description": "Find package skills and use native runtime project configuration.",
5
5
  "author": { "name": "modootoday" },
6
6
  "license": "Elastic-2.0",
@@ -3,7 +3,7 @@
3
3
  "pmcp": {
4
4
  "type": "stdio",
5
5
  "command": "npx",
6
- "args": ["-y", "@modootoday/pmcp@0.27.0", "serve"]
6
+ "args": ["-y", "@modootoday/pmcp@0.29.0", "serve"]
7
7
  }
8
8
  }
9
9
  }
@@ -1,11 +1,11 @@
1
1
  {
2
2
  "name": "pmcp",
3
- "version": "0.27.0",
3
+ "version": "0.29.0",
4
4
  "mcpServers": {
5
5
  "pmcp": {
6
6
  "type": "stdio",
7
7
  "command": "npx",
8
- "args": ["-y", "@modootoday/pmcp@0.27.0", "serve"]
8
+ "args": ["-y", "@modootoday/pmcp@0.29.0", "serve"]
9
9
  }
10
10
  }
11
11
  }
@@ -4,7 +4,7 @@
4
4
  "pmcp": {
5
5
  "type": "stdio",
6
6
  "command": "npx",
7
- "args": ["-y", "@modootoday/pmcp@0.27.0", "serve"]
7
+ "args": ["-y", "@modootoday/pmcp@0.29.0", "serve"]
8
8
  }
9
9
  }
10
10
  }
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://agent-plugins.org/schemas/1.0.0/plugin.schema.json",
3
3
  "name": "pmcp",
4
- "version": "0.27.0",
4
+ "version": "0.29.0",
5
5
  "description": "Find package skills and use native runtime project configuration.",
6
6
  "author": { "name": "modootoday" },
7
7
  "license": "Elastic-2.0",
@@ -1,7 +0,0 @@
1
- // src/commands/version.ts
2
- var VERSION = "0.27.0";
3
-
4
- export {
5
- VERSION
6
- };
7
- //# sourceMappingURL=chunk-MXVP3ICV.js.map