@modootoday/pmcp 0.27.0 → 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.
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-6ORDPVZS.js} +9 -9
  6. package/dist/{chunk-ENFF7ZBC.js → chunk-2I54YKIV.js} +2 -2
  7. package/dist/{chunk-Y5WIIEG2.js → chunk-45EC3JVG.js} +4 -4
  8. package/dist/{chunk-GVKVMSWX.js → chunk-4G6LXAM4.js} +13 -13
  9. package/dist/{chunk-YKICVMF7.js → chunk-4ZB5NJZA.js} +8 -3
  10. package/dist/{chunk-OY7XYKVL.js → chunk-5KE3B5TO.js} +2 -2
  11. package/dist/{chunk-LKH57HLV.js → chunk-6FUUX5WO.js} +2 -2
  12. package/dist/{chunk-ZO5CRS2T.js → chunk-7J25NFM6.js} +2 -2
  13. package/dist/{chunk-OZTEMCCM.js → chunk-BLE3YNCU.js} +3 -3
  14. package/dist/{chunk-X2WDR3UK.js → chunk-C7VIQJLF.js} +2 -2
  15. package/dist/{chunk-PH3P5WEY.js → chunk-HUAPDSKW.js} +3 -3
  16. package/dist/{chunk-XCIFD7G5.js → chunk-IQYJWLGX.js} +2 -2
  17. package/dist/{chunk-X3LNF5KJ.js → chunk-IWDZYK6V.js} +5 -5
  18. package/dist/{chunk-S2FUWBLO.js → chunk-J3C46RXZ.js} +61 -8
  19. package/dist/{chunk-Q3XLIRIJ.js → chunk-MPH7BQON.js} +4 -4
  20. package/dist/{chunk-JTKGDT2K.js → chunk-N6Q2QB2H.js} +2 -2
  21. package/dist/{chunk-6U6MLIS2.js → chunk-OFYDBK44.js} +2 -2
  22. package/dist/{chunk-5TT7YAEP.js → chunk-Q2UBBZSD.js} +3 -3
  23. package/dist/{chunk-L5EJK24I.js → chunk-Q7HMO7JX.js} +2 -2
  24. package/dist/chunk-RS2ST3KT.js +7 -0
  25. package/dist/{chunk-M5GNZSOJ.js → chunk-SHTSGJBH.js} +2 -2
  26. package/dist/{chunk-TVA2IN6H.js → chunk-V42DHBXN.js} +5 -5
  27. package/dist/{cli-FVUHK2NB.js → cli-FXHKAXIV.js} +5 -5
  28. package/dist/cli.js +3 -3
  29. package/dist/{completion-WKIMMLNF.js → completion-OXAWXTUC.js} +2 -2
  30. package/dist/{diagnostics-LCNF5NRK.js → diagnostics-PTGOBBN7.js} +5 -5
  31. package/dist/{doctor-PSMPNQXS.js → doctor-IVKT4F44.js} +11 -11
  32. package/dist/{entry-LMAWTZM2.js → entry-7EWYX5XJ.js} +9 -9
  33. package/dist/{exec-mcp-VAP46MKO.js → exec-mcp-WWVMIQLV.js} +7 -7
  34. package/dist/{harness-ZCMU5MJD.js → harness-L5PBWKXS.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 +86 -45
  38. package/dist/{hooks-AWAO7CQO.js → hooks-BKLDQQSN.js} +3 -3
  39. package/dist/{host-I4XIJTXR.js → host-3GP3BJKY.js} +6 -6
  40. package/dist/{host-OBTC2PGQ.js → host-TVWPNQV5.js} +2 -2
  41. package/dist/{host-4GFQQJUS.js → host-U7CA77BY.js} +9 -9
  42. package/dist/{host-run-T3FC7L6I.js → host-run-MHD72EGP.js} +4 -4
  43. package/dist/http.js +1 -1
  44. package/dist/{import-mcp-5JSGA5IS.js → import-mcp-7EV5RPWK.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-SHHALJOG.js} +2 -2
  48. package/dist/{invoke-DCKJCMRB.js → invoke-W42C5POV.js} +7 -7
  49. package/dist/{list-ZEU7T3XK.js → list-GNNRY4NJ.js} +8 -8
  50. package/dist/{logout-CUSOVMKL.js → logout-DZVBFQYZ.js} +7 -7
  51. package/dist/{mainline-SWZPKA7U.js → mainline-D665V4Y3.js} +19 -3
  52. package/dist/{mcp-ZHOPOFXI.js → mcp-5A6WWV32.js} +2 -2
  53. package/dist/{measure-AUBPYT6L.js → measure-Z5HPT26L.js} +2 -2
  54. package/dist/{project-T36TRAWT.js → project-CKECETMB.js} +4 -4
  55. package/dist/{run-LMSHQJPQ.js → run-LWVKCXS4.js} +6 -6
  56. package/dist/{run-37PVE74I.js → run-YMER7XMR.js} +4 -4
  57. package/dist/{serve-E4FD6PAL.js → serve-GYMBJPNJ.js} +3 -3
  58. package/dist/{setup-7JHWLV7K.js → setup-ZYD5XBKU.js} +2 -2
  59. package/dist/{start-login-JSKFXSLY.js → start-login-NE5QMH2F.js} +7 -7
  60. package/dist/{status-ZSK3PNM2.js → status-HCZBWIC3.js} +8 -8
  61. package/dist/{status-ZNWF4362.js → status-WP6NM6VP.js} +7 -7
  62. package/dist/stdio.js +2 -2
  63. package/dist/{test-OCTC2DSZ.js → test-PLZ62G54.js} +7 -7
  64. package/dist/{tui-LE2KPUMI.js → tui-ZWLRAOCQ.js} +4 -4
  65. package/dist/{worker-6U67LWIP.js → worker-GMSWWVTS.js} +7 -7
  66. package/dist/{worktree-sync-BQZD4J73.js → worktree-sync-TQ75DK62.js} +4 -2
  67. package/docs/git-workflow.md +9 -0
  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
@@ -612,7 +612,7 @@
612
612
  },
613
613
  {
614
614
  "name": "pmcp",
615
- "version": "0.27.0",
615
+ "version": "0.28.1",
616
616
  "description": "Find package skills and use native runtime project configuration.",
617
617
  "source": { "source": "local", "path": "./plugins/pmcp" },
618
618
  "policy": { "installation": "AVAILABLE", "authentication": "ON_USE" },
@@ -445,7 +445,7 @@
445
445
  },
446
446
  {
447
447
  "name": "pmcp",
448
- "version": "0.27.0",
448
+ "version": "0.28.1",
449
449
  "description": "Find package skills and use native runtime project configuration.",
450
450
  "source": "./plugins/pmcp"
451
451
  },
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pmcp",
3
- "version": "0.27.0",
3
+ "version": "0.28.1",
4
4
  "description": "Find package skills and use native runtime project configuration.",
5
5
  "author": { "name": "modootoday" },
6
6
  "license": "Elastic-2.0",
package/.mcp.json CHANGED
@@ -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.28.1", "serve"]
7
7
  }
8
8
  }
9
9
  }
@@ -3,7 +3,7 @@ import {
3
3
  } from "./chunk-2MX5C7B2.js";
4
4
  import {
5
5
  specFrom
6
- } from "./chunk-X2WDR3UK.js";
6
+ } from "./chunk-C7VIQJLF.js";
7
7
  import {
8
8
  printSmoke,
9
9
  runSmoke
@@ -15,15 +15,15 @@ import {
15
15
  describeHookProblem,
16
16
  project,
17
17
  unmanagedHookProblems
18
- } from "./chunk-Q3XLIRIJ.js";
18
+ } from "./chunk-MPH7BQON.js";
19
19
  import "./chunk-ANJMLKBR.js";
20
- import "./chunk-PH3P5WEY.js";
20
+ import "./chunk-HUAPDSKW.js";
21
21
  import {
22
22
  checkBudget,
23
23
  renderFrontmatter,
24
24
  splitFrontmatter
25
- } from "./chunk-Y5WIIEG2.js";
26
- import "./chunk-S2FUWBLO.js";
25
+ } from "./chunk-45EC3JVG.js";
26
+ import "./chunk-J3C46RXZ.js";
27
27
  import "./chunk-FLG7VRTC.js";
28
28
  import "./chunk-2GD7PQ7J.js";
29
29
  import "./chunk-EATCUWGG.js";
@@ -33,7 +33,7 @@ import "./chunk-LFFIQBNY.js";
33
33
  import "./chunk-HQOB7OQS.js";
34
34
  import "./chunk-73AKO4UL.js";
35
35
  import "./chunk-VQBXWMLT.js";
36
- import "./chunk-YKICVMF7.js";
36
+ import "./chunk-4ZB5NJZA.js";
37
37
  import "./chunk-WUFNKK3U.js";
38
38
  import "./chunk-374AZ4J4.js";
39
39
  import "./chunk-SDFJJJB5.js";
@@ -57,7 +57,7 @@ import {
57
57
  import "./chunk-YSAWTGNA.js";
58
58
  import {
59
59
  recordProjector
60
- } from "./chunk-OY7XYKVL.js";
60
+ } from "./chunk-5KE3B5TO.js";
61
61
  import "./chunk-PZ6D3WKD.js";
62
62
  import "./chunk-N7ANFMA5.js";
63
63
  import {
@@ -68,7 +68,7 @@ import "./chunk-KLIYFD3W.js";
68
68
  import "./chunk-GUHOEIHP.js";
69
69
  import "./chunk-IJBSOWHK.js";
70
70
  import "./chunk-XWLMZKH2.js";
71
- import "./chunk-MXVP3ICV.js";
71
+ import "./chunk-RS2ST3KT.js";
72
72
  import "./chunk-GJXOFDJT.js";
73
73
  import "./chunk-PMJG2CXF.js";
74
74
  import "./chunk-J6KL3COD.js";
@@ -283,4 +283,4 @@ export {
283
283
  projectOrCheck,
284
284
  removeAndProject
285
285
  };
286
- //# sourceMappingURL=apply-YNBY2GPK.js.map
286
+ //# sourceMappingURL=apply-6ORDPVZS.js.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  createSkillServer
3
- } from "./chunk-XCIFD7G5.js";
3
+ } from "./chunk-IQYJWLGX.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-ENFF7ZBC.js.map
87
+ //# sourceMappingURL=chunk-2I54YKIV.js.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  syncWorktree
3
- } from "./chunk-S2FUWBLO.js";
3
+ } from "./chunk-J3C46RXZ.js";
4
4
  import {
5
5
  localCli,
6
6
  pmcpCommand,
@@ -28,7 +28,7 @@ import {
28
28
  import {
29
29
  leaseSpecs,
30
30
  readGitConfig
31
- } from "./chunk-YKICVMF7.js";
31
+ } from "./chunk-4ZB5NJZA.js";
32
32
  import {
33
33
  ownerLine,
34
34
  ownersOf,
@@ -77,7 +77,7 @@ import {
77
77
  readHost,
78
78
  readLock,
79
79
  readLockFile
80
- } from "./chunk-OY7XYKVL.js";
80
+ } from "./chunk-5KE3B5TO.js";
81
81
  import {
82
82
  DISABLE_ENV,
83
83
  readLeaseSettings
@@ -6910,4 +6910,4 @@ export {
6910
6910
  checkBudget,
6911
6911
  readSpec
6912
6912
  };
6913
- //# sourceMappingURL=chunk-Y5WIIEG2.js.map
6913
+ //# sourceMappingURL=chunk-45EC3JVG.js.map
@@ -75,11 +75,11 @@ var completionSpec = {
75
75
  var COMMANDS = [
76
76
  {
77
77
  ...statusSpec,
78
- load: async () => (await import("./status-ZSK3PNM2.js")).statusCommand
78
+ load: async () => (await import("./status-HCZBWIC3.js")).statusCommand
79
79
  },
80
- { ...initSpec, load: async () => (await import("./init-PZYWBDZS.js")).initCommand },
81
- { ...hooksSpec, load: async () => (await import("./hooks-AWAO7CQO.js")).hooksCommand },
82
- { ...serveSpec, load: async () => (await import("./serve-E4FD6PAL.js")).serveCommand },
80
+ { ...initSpec, load: async () => (await import("./init-SHHALJOG.js")).initCommand },
81
+ { ...hooksSpec, load: async () => (await import("./hooks-BKLDQQSN.js")).hooksCommand },
82
+ { ...serveSpec, load: async () => (await import("./serve-GYMBJPNJ.js")).serveCommand },
83
83
  { ...listSpec, load: async () => (await import("./list-LV5EKCF6.js")).listCommand },
84
84
  {
85
85
  ...indexSpec,
@@ -116,29 +116,29 @@ var COMMANDS = [
116
116
  { ...syncSpec, load: async () => (await import("./install-5JH4DSFF.js")).syncCommand },
117
117
  {
118
118
  ...projectSpec,
119
- load: async () => (await import("./project-T36TRAWT.js")).projectCommand
119
+ load: async () => (await import("./project-CKECETMB.js")).projectCommand
120
120
  },
121
121
  {
122
122
  ...doctorSpec,
123
- load: async () => (await import("./doctor-PSMPNQXS.js")).doctorCommand
123
+ load: async () => (await import("./doctor-IVKT4F44.js")).doctorCommand
124
124
  },
125
125
  {
126
126
  ...sessionsSpec,
127
127
  load: async () => (await import("./cli-ZOY2274X.js")).sessionsCommand
128
128
  },
129
129
  { ...logsSpec, load: async () => (await import("./logs-J4W6GFMK.js")).logsCommand },
130
- { ...gitSpec, load: async () => (await import("./cli-FVUHK2NB.js")).gitCommand },
130
+ { ...gitSpec, load: async () => (await import("./cli-FXHKAXIV.js")).gitCommand },
131
131
  {
132
132
  ...heavySpec,
133
133
  load: async () => (await import("./heavy-VBC4AGL6.js")).heavyCommand
134
134
  },
135
- { ...hostSpec, load: async () => (await import("./host-OBTC2PGQ.js")).hostCommand },
135
+ { ...hostSpec, load: async () => (await import("./host-TVWPNQV5.js")).hostCommand },
136
136
  { ...waitSpec, load: async () => (await import("./wait-HEODT7KV.js")).waitCommand },
137
137
  {
138
138
  ...ownersSpec,
139
139
  load: async () => (await import("./owners-MPI22SFU.js")).ownersCommand
140
140
  },
141
- { ...mcpSpec, load: async () => (await import("./mcp-ZHOPOFXI.js")).mcpCommand },
141
+ { ...mcpSpec, load: async () => (await import("./mcp-5A6WWV32.js")).mcpCommand },
142
142
  {
143
143
  ...validateSpec,
144
144
  load: async () => (await import("./validate-YXR7FJJX.js")).validateCommand
@@ -149,16 +149,16 @@ var COMMANDS = [
149
149
  },
150
150
  {
151
151
  ...harnessSpec,
152
- load: async () => (await import("./harness-ZCMU5MJD.js")).harnessCommand
152
+ load: async () => (await import("./harness-L5PBWKXS.js")).harnessCommand
153
153
  },
154
- { ...tuiSpec, load: async () => (await import("./tui-LE2KPUMI.js")).tuiCommand },
154
+ { ...tuiSpec, load: async () => (await import("./tui-ZWLRAOCQ.js")).tuiCommand },
155
155
  {
156
156
  ...marketplaceSpec,
157
157
  load: async () => (await import("./marketplace-2X3OOEPW.js")).marketplaceCommand
158
158
  },
159
159
  {
160
160
  ...completionSpec,
161
- load: async () => (await import("./completion-WKIMMLNF.js")).completionCommand
161
+ load: async () => (await import("./completion-OXAWXTUC.js")).completionCommand
162
162
  }
163
163
  ];
164
164
  var PLANNED = [];
@@ -172,4 +172,4 @@ export {
172
172
  PLANNED,
173
173
  commandNamed
174
174
  };
175
- //# sourceMappingURL=chunk-GVKVMSWX.js.map
175
+ //# sourceMappingURL=chunk-4G6LXAM4.js.map
@@ -186,12 +186,17 @@ function submodules(path, source) {
186
186
  const read = new Reader(path, "git.submodules", source, [
187
187
  "follow",
188
188
  "shared",
189
- "push"
189
+ "push",
190
+ "dir_to_gitlink",
191
+ "dir_to_gitlink_hint"
190
192
  ]);
193
+ const hint = read.string("dir_to_gitlink_hint");
191
194
  return {
192
195
  follow: read.oneOf("follow", ["clean_pins", "off"], "clean_pins"),
193
196
  shared: read.list("shared"),
194
- push: read.oneOf("push", ["pins", "off"], "off")
197
+ push: read.oneOf("push", ["pins", "off"], "off"),
198
+ dirToGitlink: read.oneOf("dir_to_gitlink", ["adopt", "refuse"], "adopt"),
199
+ ...hint === void 0 ? {} : { dirToGitlinkHint: hint }
195
200
  };
196
201
  }
197
202
  function leases(path, sessions) {
@@ -330,4 +335,4 @@ export {
330
335
  gateTreePath,
331
336
  leaseSpecs
332
337
  };
333
- //# sourceMappingURL=chunk-YKICVMF7.js.map
338
+ //# sourceMappingURL=chunk-4ZB5NJZA.js.map
@@ -12,7 +12,7 @@ import {
12
12
  } from "./chunk-XWLMZKH2.js";
13
13
  import {
14
14
  VERSION
15
- } from "./chunk-MXVP3ICV.js";
15
+ } from "./chunk-RS2ST3KT.js";
16
16
  import {
17
17
  ConfigError
18
18
  } from "./chunk-GJXOFDJT.js";
@@ -610,4 +610,4 @@ export {
610
610
  hostEnvDoctor,
611
611
  hostDoctor
612
612
  };
613
- //# sourceMappingURL=chunk-OY7XYKVL.js.map
613
+ //# sourceMappingURL=chunk-5KE3B5TO.js.map
@@ -6,7 +6,7 @@ import {
6
6
  } from "./chunk-34DECPVC.js";
7
7
  import {
8
8
  ptyBinary
9
- } from "./chunk-OY7XYKVL.js";
9
+ } from "./chunk-5KE3B5TO.js";
10
10
 
11
11
  // src/harness/adapters/systemd/admission.ts
12
12
  var nativeHostTools = ["systemctl", "systemd-run"];
@@ -36,4 +36,4 @@ export {
36
36
  nativeHostTools,
37
37
  assertNativeHost
38
38
  };
39
- //# sourceMappingURL=chunk-LKH57HLV.js.map
39
+ //# sourceMappingURL=chunk-6FUUX5WO.js.map
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  HOST_MANIFEST,
3
3
  HOST_POLICY
4
- } from "./chunk-OY7XYKVL.js";
4
+ } from "./chunk-5KE3B5TO.js";
5
5
  import {
6
6
  projectStateDir
7
7
  } from "./chunk-KLIYFD3W.js";
@@ -99,4 +99,4 @@ export {
99
99
  hostApprovalDoctor,
100
100
  writeApproval
101
101
  };
102
- //# sourceMappingURL=chunk-ZO5CRS2T.js.map
102
+ //# sourceMappingURL=chunk-7J25NFM6.js.map
@@ -3,13 +3,13 @@ import {
3
3
  } from "./chunk-5ZABTVSW.js";
4
4
  import {
5
5
  dependencies
6
- } from "./chunk-6U6MLIS2.js";
6
+ } from "./chunk-OFYDBK44.js";
7
7
  import {
8
8
  interactiveEntry
9
9
  } from "./chunk-LMT3PPXJ.js";
10
10
  import {
11
11
  assertNativeHost
12
- } from "./chunk-LKH57HLV.js";
12
+ } from "./chunk-6FUUX5WO.js";
13
13
 
14
14
  // src/tui/startup/host.ts
15
15
  function terminalSupport() {
@@ -42,4 +42,4 @@ export {
42
42
  terminalSupport,
43
43
  requireTerminal
44
44
  };
45
- //# sourceMappingURL=chunk-OZTEMCCM.js.map
45
+ //# sourceMappingURL=chunk-BLE3YNCU.js.map
@@ -3,7 +3,7 @@ import {
3
3
  } from "./chunk-7CHUMF3E.js";
4
4
  import {
5
5
  readSpec
6
- } from "./chunk-Y5WIIEG2.js";
6
+ } from "./chunk-45EC3JVG.js";
7
7
  import {
8
8
  ArgumentError,
9
9
  noConfig
@@ -27,4 +27,4 @@ function specFrom(context) {
27
27
  export {
28
28
  specFrom
29
29
  };
30
- //# sourceMappingURL=chunk-X2WDR3UK.js.map
30
+ //# sourceMappingURL=chunk-C7VIQJLF.js.map
@@ -19,12 +19,12 @@ import {
19
19
  splitKeyed,
20
20
  versionMatches,
21
21
  withoutBlock
22
- } from "./chunk-Y5WIIEG2.js";
22
+ } from "./chunk-45EC3JVG.js";
23
23
  import {
24
24
  lockVersionProblem,
25
25
  readLock,
26
26
  replaceFile
27
- } from "./chunk-OY7XYKVL.js";
27
+ } from "./chunk-5KE3B5TO.js";
28
28
  import {
29
29
  ProjectError,
30
30
  RULES_DIR,
@@ -273,4 +273,4 @@ export {
273
273
  prepare,
274
274
  checkProject
275
275
  };
276
- //# sourceMappingURL=chunk-PH3P5WEY.js.map
276
+ //# sourceMappingURL=chunk-HUAPDSKW.js.map
@@ -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.27.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-XCIFD7G5.js.map
1250
+ //# sourceMappingURL=chunk-IQYJWLGX.js.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  hostApprovalDoctor
3
- } from "./chunk-ZO5CRS2T.js";
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-Q3XLIRIJ.js";
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-Y5WIIEG2.js";
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-OY7XYKVL.js";
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-X3LNF5KJ.js.map
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 existsSync3 } from "fs";
226
- import { join as join3 } from "path";
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 (!existsSync3(join3(dir, ".git"))) return "not checked out, left alone";
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(join3(root, path), oldPin, newPin, shared.includes(path))}`
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 = join3(root, path);
285
- if (!path || !existsSync3(join3(dir, ".git"))) return false;
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 = join3(root, path);
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-S2FUWBLO.js.map
458
+ //# sourceMappingURL=chunk-J3C46RXZ.js.map
@@ -7,7 +7,7 @@ import {
7
7
  prepare,
8
8
  present,
9
9
  writeNative
10
- } from "./chunk-PH3P5WEY.js";
10
+ } from "./chunk-HUAPDSKW.js";
11
11
  import {
12
12
  ANTIGRAVITY_MCP_PLUGIN,
13
13
  BUNDLE_NATIVE_FILES,
@@ -21,7 +21,7 @@ import {
21
21
  same,
22
22
  splitKeyed,
23
23
  withoutBlock
24
- } from "./chunk-Y5WIIEG2.js";
24
+ } from "./chunk-45EC3JVG.js";
25
25
  import {
26
26
  HOOK_DIRECTORY
27
27
  } from "./chunk-GQRDEIQA.js";
@@ -30,7 +30,7 @@ import {
30
30
  replaceFile,
31
31
  replaceLink,
32
32
  writeLock
33
- } from "./chunk-OY7XYKVL.js";
33
+ } from "./chunk-5KE3B5TO.js";
34
34
  import {
35
35
  RULES_DIR,
36
36
  legacyLinks
@@ -400,4 +400,4 @@ export {
400
400
  unmanagedHooks,
401
401
  describeHookProblem
402
402
  };
403
- //# sourceMappingURL=chunk-Q3XLIRIJ.js.map
403
+ //# sourceMappingURL=chunk-MPH7BQON.js.map
@@ -3,7 +3,7 @@ import {
3
3
  } from "./chunk-34DECPVC.js";
4
4
  import {
5
5
  ptyBinary
6
- } from "./chunk-OY7XYKVL.js";
6
+ } from "./chunk-5KE3B5TO.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-JTKGDT2K.js.map
778
+ //# sourceMappingURL=chunk-N6Q2QB2H.js.map
@@ -7,7 +7,7 @@ import {
7
7
  import {
8
8
  nativeBinary,
9
9
  ptyBinary
10
- } from "./chunk-OY7XYKVL.js";
10
+ } from "./chunk-5KE3B5TO.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-6U6MLIS2.js.map
65
+ //# sourceMappingURL=chunk-OFYDBK44.js.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  assertNativeHost
3
- } from "./chunk-LKH57HLV.js";
3
+ } from "./chunk-6FUUX5WO.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-JTKGDT2K.js";
36
+ } from "./chunk-N6Q2QB2H.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-5TT7YAEP.js.map
1984
+ //# sourceMappingURL=chunk-Q2UBBZSD.js.map
@@ -7,7 +7,7 @@ import {
7
7
  customPolicy,
8
8
  externalId,
9
9
  externalPolicy
10
- } from "./chunk-Y5WIIEG2.js";
10
+ } from "./chunk-45EC3JVG.js";
11
11
  import {
12
12
  RUNTIMES
13
13
  } from "./chunk-GQRDEIQA.js";
@@ -50,4 +50,4 @@ function policyRows(compiled) {
50
50
  export {
51
51
  policyRows
52
52
  };
53
- //# sourceMappingURL=chunk-L5EJK24I.js.map
53
+ //# sourceMappingURL=chunk-Q7HMO7JX.js.map
@@ -0,0 +1,7 @@
1
+ // src/commands/version.ts
2
+ var VERSION = "0.28.1";
3
+
4
+ export {
5
+ VERSION
6
+ };
7
+ //# sourceMappingURL=chunk-RS2ST3KT.js.map
@@ -3,7 +3,7 @@ import {
3
3
  } from "./chunk-7CHUMF3E.js";
4
4
  import {
5
5
  readSpec
6
- } from "./chunk-Y5WIIEG2.js";
6
+ } from "./chunk-45EC3JVG.js";
7
7
  import {
8
8
  ArgumentError
9
9
  } from "./chunk-Y6NFETNG.js";
@@ -25,4 +25,4 @@ function serverFrom(context) {
25
25
  export {
26
26
  serverFrom
27
27
  };
28
- //# sourceMappingURL=chunk-M5GNZSOJ.js.map
28
+ //# sourceMappingURL=chunk-SHTSGJBH.js.map