@modootoday/pmcp 0.19.2 → 0.19.3

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 (85) 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-YM2NR2QA.js → apply-3GVOB5SB.js} +16 -15
  6. package/dist/{chunk-DFZESOWW.js → chunk-27RQE4X5.js} +24 -16
  7. package/dist/{chunk-YMNVZMI3.js → chunk-3PFBFW5K.js} +2 -2
  8. package/dist/{chunk-NNKLVEQZ.js → chunk-6NAOPDEL.js} +2 -2
  9. package/dist/{chunk-J5XQW2CM.js → chunk-7B2KRL2H.js} +14 -3
  10. package/dist/{chunk-74TP72AP.js → chunk-A2A2QEGQ.js} +5 -5
  11. package/dist/{chunk-EB7XLUSW.js → chunk-AKZ3TZF6.js} +3 -3
  12. package/dist/{chunk-DXK67PX7.js → chunk-BU5QVZD7.js} +5 -5
  13. package/dist/{chunk-5OVHW7AG.js → chunk-DJX3T6OQ.js} +3 -3
  14. package/dist/{chunk-JJBSYUSQ.js → chunk-DXJZ2ZCX.js} +2 -2
  15. package/dist/{chunk-ONQJCG2X.js → chunk-E4RHRBN4.js} +3 -3
  16. package/dist/{chunk-D5D3V6RU.js → chunk-ICF2JZSN.js} +15 -1
  17. package/dist/{chunk-3MPPORSM.js → chunk-IITLKKLW.js} +2 -2
  18. package/dist/{chunk-SYCK2YYV.js → chunk-INAQADYF.js} +8 -8
  19. package/dist/{chunk-LREOXJ4I.js → chunk-IRE5CH3V.js} +2 -2
  20. package/dist/{chunk-CIU5Q55A.js → chunk-JKUO3SES.js} +2 -2
  21. package/dist/chunk-JUV4AO7M.js +7 -0
  22. package/dist/{chunk-BR4B2KU2.js → chunk-JWYZE3QX.js} +2 -2
  23. package/dist/chunk-P6LNYYYH.js +95 -0
  24. package/dist/{chunk-DZV7EQ5Q.js → chunk-QESM25BF.js} +2 -2
  25. package/dist/{chunk-GPPGCZKP.js → chunk-QWFXAUTC.js} +8 -8
  26. package/dist/{chunk-NDR7HEMH.js → chunk-TA7STTID.js} +2 -2
  27. package/dist/{chunk-ASGTJ35M.js → chunk-VNNHEB6B.js} +23 -23
  28. package/dist/{chunk-NNOATTGX.js → chunk-VVFEFQSO.js} +3 -3
  29. package/dist/{chunk-YGJNZ47K.js → chunk-WXKUV52B.js} +2 -2
  30. package/dist/{chunk-WIW772I3.js → chunk-XLXDXJY2.js} +4 -4
  31. package/dist/{chunk-LLBPVZXM.js → chunk-YN5GQCHN.js} +4 -4
  32. package/dist/{chunk-QXZLFIY2.js → chunk-Z7OYA467.js} +2 -2
  33. package/dist/{cli-T5LHBUY2.js → cli-BTPTJWCC.js} +3 -3
  34. package/dist/{cli-MUP2NSXT.js → cli-UFCFDIVI.js} +7 -6
  35. package/dist/cli.js +7 -7
  36. package/dist/{completion-52AM4CCB.js → completion-S5RXYRE6.js} +6 -6
  37. package/dist/{diagnostics-2NXDRCS3.js → diagnostics-IWZ44B3T.js} +6 -6
  38. package/dist/{doctor-SBQHIZA4.js → doctor-6OM2CW6Y.js} +20 -19
  39. package/dist/{entry-PZUG7UVZ.js → entry-OP6P6JIE.js} +10 -10
  40. package/dist/{exec-mcp-UMHU5Q6Y.js → exec-mcp-VEHKAWE4.js} +10 -9
  41. package/dist/{harness-46QFLNJE.js → harness-5IIU5JUZ.js} +3 -3
  42. package/dist/harness-launch-gate.js +4 -4
  43. package/dist/harness-worker.js +6 -6
  44. package/dist/hook-body.js +149 -54
  45. package/dist/{hooks-JROFOE6Y.js → hooks-ZSA4DLUZ.js} +3 -3
  46. package/dist/{host-MAVWRD5G.js → host-BWSHEN3G.js} +12 -11
  47. package/dist/{host-FPTPSHL2.js → host-CU5YGXUO.js} +7 -7
  48. package/dist/{host-run-DMNF3PWU.js → host-run-MCYOHAV4.js} +5 -5
  49. package/dist/http.js +1 -1
  50. package/dist/{import-mcp-YGX7Q3CT.js → import-mcp-FC7HCWRT.js} +8 -7
  51. package/dist/index.d.ts +1 -1
  52. package/dist/index.js +17 -16
  53. package/dist/{init-3QZPCMPA.js → init-ADQO2QTV.js} +2 -2
  54. package/dist/{invoke-TMDQXMY4.js → invoke-P6GHAPFV.js} +8 -8
  55. package/dist/{list-T6JWLS6W.js → list-YXCHN33G.js} +10 -9
  56. package/dist/{logout-I3YZFAHR.js → logout-J4YFUKXJ.js} +9 -8
  57. package/dist/{mailbox-O3MX6QPF.js → mailbox-UECKDZ3Q.js} +1 -1
  58. package/dist/{mainline-DG75NLBS.js → mainline-FPK4HWFF.js} +47 -14
  59. package/dist/{mcp-TQBBPB3O.js → mcp-DGQR4FRE.js} +2 -2
  60. package/dist/modes-COBVV7RA.js +14 -0
  61. package/dist/{project-SJ3ZPUAA.js → project-VZV5ZJ7Q.js} +6 -6
  62. package/dist/{run-3YQWI6PN.js → run-6D7XVMOA.js} +4 -4
  63. package/dist/{run-LVSY22QZ.js → run-OHZHE2GN.js} +8 -7
  64. package/dist/{serve-NOPGIM4N.js → serve-6ZL6SR5O.js} +6 -6
  65. package/dist/{setup-T6T2PFC4.js → setup-63E3TVJK.js} +4 -4
  66. package/dist/{start-login-ULBUS65R.js → start-login-G63U6RT2.js} +9 -8
  67. package/dist/{status-JI6MWSVS.js → status-6YMXYFE6.js} +9 -8
  68. package/dist/{status-GPSLH4VO.js → status-CM753VKY.js} +3 -3
  69. package/dist/{status-PBYIVK3R.js → status-KXTLD7EN.js} +13 -12
  70. package/dist/stdio.js +2 -2
  71. package/dist/{test-B7KRCCL7.js → test-W3P5F5ML.js} +9 -8
  72. package/dist/{tui-2SKEYYUR.js → tui-7R7TVPGT.js} +4 -4
  73. package/dist/{worker-WWNHOUBS.js → worker-SD2CHGC7.js} +8 -8
  74. package/dist/{worktree-sync-W4BDDLRO.js → worktree-sync-GQVYAXGJ.js} +4 -2
  75. package/docs/git-workflow.md +6 -5
  76. package/gemini-extension.json +2 -2
  77. package/mcp.json +1 -1
  78. package/package.json +5 -5
  79. package/plugin.json +1 -1
  80. package/plugins/pmcp/.claude-plugin/plugin.json +1 -1
  81. package/plugins/pmcp/.mcp.json +1 -1
  82. package/plugins/pmcp/gemini-extension.json +2 -2
  83. package/plugins/pmcp/mcp.json +1 -1
  84. package/plugins/pmcp/plugin.json +1 -1
  85. package/dist/chunk-V4K6Q3GF.js +0 -7
@@ -612,7 +612,7 @@
612
612
  },
613
613
  {
614
614
  "name": "pmcp",
615
- "version": "0.19.2",
615
+ "version": "0.19.3",
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.19.2",
448
+ "version": "0.19.3",
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.19.2",
3
+ "version": "0.19.3",
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.19.2", "serve"]
6
+ "args": ["-y", "@modootoday/pmcp@0.19.3", "serve"]
7
7
  }
8
8
  }
9
9
  }
@@ -1,29 +1,29 @@
1
- import {
2
- specFrom
3
- } from "./chunk-QXZLFIY2.js";
4
1
  import {
5
2
  catalogFrom
6
3
  } from "./chunk-HEBCQTOD.js";
4
+ import {
5
+ specFrom
6
+ } from "./chunk-Z7OYA467.js";
7
7
  import "./chunk-7DLZC73N.js";
8
8
  import {
9
9
  project
10
- } from "./chunk-DXK67PX7.js";
10
+ } from "./chunk-BU5QVZD7.js";
11
11
  import "./chunk-P4N7DBD5.js";
12
12
  import {
13
13
  renderFrontmatter,
14
14
  splitFrontmatter
15
- } from "./chunk-GPPGCZKP.js";
16
- import "./chunk-NDR7HEMH.js";
15
+ } from "./chunk-QWFXAUTC.js";
16
+ import "./chunk-TA7STTID.js";
17
+ import "./chunk-73AKO4UL.js";
17
18
  import {
18
19
  RUNTIMES
19
- } from "./chunk-DFZESOWW.js";
20
+ } from "./chunk-27RQE4X5.js";
20
21
  import "./chunk-HQOB7OQS.js";
21
- import "./chunk-J5XQW2CM.js";
22
+ import "./chunk-7B2KRL2H.js";
22
23
  import "./chunk-2Q6MNGU5.js";
23
- import "./chunk-D5D3V6RU.js";
24
+ import "./chunk-ICF2JZSN.js";
24
25
  import "./chunk-UD3BEEBQ.js";
25
26
  import "./chunk-ISNRDHSD.js";
26
- import "./chunk-G7JONWL4.js";
27
27
  import "./chunk-EATCUWGG.js";
28
28
  import {
29
29
  ProjectError
@@ -31,8 +31,9 @@ import {
31
31
  import "./chunk-3PW4FI7U.js";
32
32
  import "./chunk-DHAPQUEF.js";
33
33
  import "./chunk-C4NHQGHL.js";
34
+ import "./chunk-P6LNYYYH.js";
35
+ import "./chunk-G7JONWL4.js";
34
36
  import "./chunk-Q5H3L6Y4.js";
35
- import "./chunk-73AKO4UL.js";
36
37
  import "./chunk-JEL35P7S.js";
37
38
  import "./chunk-A4PKLESO.js";
38
39
  import "./chunk-V4NPDK6X.js";
@@ -40,13 +41,13 @@ import {
40
41
  kindOf
41
42
  } from "./chunk-4CRRLDDS.js";
42
43
  import "./chunk-YSAWTGNA.js";
43
- import "./chunk-ONQJCG2X.js";
44
+ import "./chunk-E4RHRBN4.js";
44
45
  import {
45
46
  recordProjector
46
- } from "./chunk-DZV7EQ5Q.js";
47
+ } from "./chunk-QESM25BF.js";
47
48
  import "./chunk-OEH47H6A.js";
48
49
  import "./chunk-IJBSOWHK.js";
49
- import "./chunk-V4K6Q3GF.js";
50
+ import "./chunk-JUV4AO7M.js";
50
51
  import "./chunk-QPL7E2HW.js";
51
52
  import "./chunk-PMJG2CXF.js";
52
53
  import "./chunk-J6KL3COD.js";
@@ -239,4 +240,4 @@ export {
239
240
  projectOrCheck,
240
241
  removeAndProject
241
242
  };
242
- //# sourceMappingURL=apply-YM2NR2QA.js.map
243
+ //# sourceMappingURL=apply-3GVOB5SB.js.map
@@ -3,16 +3,13 @@ import {
3
3
  } from "./chunk-HQOB7OQS.js";
4
4
  import {
5
5
  readGitConfig
6
- } from "./chunk-J5XQW2CM.js";
6
+ } from "./chunk-7B2KRL2H.js";
7
7
  import {
8
8
  detect
9
9
  } from "./chunk-2Q6MNGU5.js";
10
10
  import {
11
11
  syncWorktree
12
- } from "./chunk-D5D3V6RU.js";
13
- import {
14
- gitText
15
- } from "./chunk-G7JONWL4.js";
12
+ } from "./chunk-ICF2JZSN.js";
16
13
  import {
17
14
  localCli,
18
15
  pmcpCommand,
@@ -35,6 +32,12 @@ import {
35
32
  leaseFile,
36
33
  runtimePid
37
34
  } from "./chunk-C4NHQGHL.js";
35
+ import {
36
+ withUmask
37
+ } from "./chunk-P6LNYYYH.js";
38
+ import {
39
+ gitText
40
+ } from "./chunk-G7JONWL4.js";
38
41
  import {
39
42
  safeEndpoint
40
43
  } from "./chunk-Q5H3L6Y4.js";
@@ -45,7 +48,7 @@ import {
45
48
  packagedBinary,
46
49
  readHost,
47
50
  readLock
48
- } from "./chunk-DZV7EQ5Q.js";
51
+ } from "./chunk-QESM25BF.js";
49
52
  import {
50
53
  checkoutOf,
51
54
  hasLinkedWorktrees
@@ -3629,12 +3632,15 @@ function changed(root, from, paths, to = "HEAD") {
3629
3632
  if (paths.length === 0) return [];
3630
3633
  return gitText(root, ["diff", "--name-only", from, to, "--", ...paths]).split("\n").filter(Boolean);
3631
3634
  }
3632
- function backgroundInstall(root, command6) {
3633
- const child = spawn(command6[0], command6.slice(1), {
3634
- cwd: root,
3635
- detached: true,
3636
- stdio: "ignore"
3637
- });
3635
+ function backgroundInstall(root, command6, umask) {
3636
+ const child = withUmask(
3637
+ umask,
3638
+ () => spawn(command6[0], command6.slice(1), {
3639
+ cwd: root,
3640
+ detached: true,
3641
+ stdio: "ignore"
3642
+ })
3643
+ );
3638
3644
  child.on("error", () => void 0);
3639
3645
  child.unref();
3640
3646
  }
@@ -3664,13 +3670,14 @@ function move(input, ctx, git) {
3664
3670
  followSubmodules: opts.followSubmodules,
3665
3671
  fetch,
3666
3672
  report: report2,
3667
- ...install
3673
+ ...install,
3674
+ ...opts.umask !== void 0 ? { umask: opts.umask } : {}
3668
3675
  });
3669
3676
  if (result === "current") return [];
3670
3677
  if (result === "held")
3671
3678
  return lines.map((line) => `Desk ${git.root}: ${line}`);
3672
3679
  if (opts.install && opts.installAfterMove === "background" && changed(git.root, before, opts.installWhen).length > 0) {
3673
- backgroundInstall(git.root, opts.install);
3680
+ backgroundInstall(git.root, opts.install, opts.umask);
3674
3681
  lines.push(`installing in the background: ${opts.install.join(" ")}`);
3675
3682
  }
3676
3683
  const rules2 = changed(git.root, before, opts.noticePaths);
@@ -4330,7 +4337,8 @@ function readWorktreeSync(tables, root) {
4330
4337
  ...git.sync?.install ? { install: git.sync.install } : {},
4331
4338
  installWhen: git.sync?.installWhenChanged ?? [],
4332
4339
  noticePaths: sync.noticePaths,
4333
- followSubmodules: git.submodules?.follow === "clean_pins"
4340
+ followSubmodules: git.submodules?.follow === "clean_pins",
4341
+ ...git.umask !== void 0 ? { umask: git.umask } : {}
4334
4342
  };
4335
4343
  return {
4336
4344
  id: "git.worktrees.sync",
@@ -5076,4 +5084,4 @@ export {
5076
5084
  permissionDoctor,
5077
5085
  readSpec
5078
5086
  };
5079
- //# sourceMappingURL=chunk-DFZESOWW.js.map
5087
+ //# sourceMappingURL=chunk-27RQE4X5.js.map
@@ -3,7 +3,7 @@ import {
3
3
  } from "./chunk-7DLZC73N.js";
4
4
  import {
5
5
  readSpec
6
- } from "./chunk-DFZESOWW.js";
6
+ } from "./chunk-27RQE4X5.js";
7
7
  import {
8
8
  ArgumentError
9
9
  } from "./chunk-A4PKLESO.js";
@@ -25,4 +25,4 @@ function serverFrom(context) {
25
25
  export {
26
26
  serverFrom
27
27
  };
28
- //# sourceMappingURL=chunk-YMNVZMI3.js.map
28
+ //# sourceMappingURL=chunk-3PFBFW5K.js.map
@@ -6,7 +6,7 @@ import {
6
6
  } from "./chunk-34DECPVC.js";
7
7
  import {
8
8
  ptyBinary
9
- } from "./chunk-ONQJCG2X.js";
9
+ } from "./chunk-E4RHRBN4.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-NNKLVEQZ.js.map
39
+ //# sourceMappingURL=chunk-6NAOPDEL.js.map
@@ -234,6 +234,15 @@ function leases(path, sessions) {
234
234
  }
235
235
 
236
236
  // src/git/config.ts
237
+ function umask(path, value) {
238
+ if (value === void 0) return void 0;
239
+ if (typeof value !== "string" || !/^0?[0-7]{3}$/u.test(value))
240
+ throw new ConfigError(
241
+ path,
242
+ `[git] umask must be an octal string such as "022", not ${JSON.stringify(value)}`
243
+ );
244
+ return Number.parseInt(value, 8);
245
+ }
237
246
  function enabled(path, value) {
238
247
  if (value === void 0 || value === "auto") return "auto";
239
248
  if (typeof value === "boolean") return value;
@@ -251,7 +260,8 @@ function readGitConfig(config) {
251
260
  "mainline",
252
261
  "worktrees",
253
262
  "shared_checkout",
254
- "submodules"
263
+ "submodules",
264
+ "umask"
255
265
  ]);
256
266
  const worktreeTable = child(path, root, "git", "worktrees");
257
267
  const named = typeof root["mainline"] === "string";
@@ -280,11 +290,12 @@ function readGitConfig(config) {
280
290
  sync: mainSyncTable && mainlineSync(path, mainSyncTable),
281
291
  submodules: submoduleTable && submodules(path, submoduleTable),
282
292
  stateDir: typeof stateDir === "string" ? expandPath(dir, stateDir) : void 0,
283
- leases: leases(path, sessions)
293
+ leases: leases(path, sessions),
294
+ ...root["umask"] !== void 0 ? { umask: umask(path, root["umask"]) } : {}
284
295
  };
285
296
  }
286
297
 
287
298
  export {
288
299
  readGitConfig
289
300
  };
290
- //# sourceMappingURL=chunk-J5XQW2CM.js.map
301
+ //# sourceMappingURL=chunk-7B2KRL2H.js.map
@@ -7,20 +7,20 @@ import {
7
7
  observeSession,
8
8
  openGroup,
9
9
  runOperation
10
- } from "./chunk-EB7XLUSW.js";
10
+ } from "./chunk-AKZ3TZF6.js";
11
11
  import {
12
12
  nativeHostTools
13
- } from "./chunk-NNKLVEQZ.js";
13
+ } from "./chunk-6NAOPDEL.js";
14
14
  import {
15
15
  locateExecutable
16
16
  } from "./chunk-R2GPCZUX.js";
17
17
  import {
18
18
  artifact,
19
19
  stateDirectory
20
- } from "./chunk-CIU5Q55A.js";
20
+ } from "./chunk-JKUO3SES.js";
21
21
  import {
22
22
  ptyBinary
23
- } from "./chunk-ONQJCG2X.js";
23
+ } from "./chunk-E4RHRBN4.js";
24
24
  import {
25
25
  GroupStore,
26
26
  privateJson
@@ -249,4 +249,4 @@ async function invoke(operation) {
249
249
  export {
250
250
  invoke
251
251
  };
252
- //# sourceMappingURL=chunk-74TP72AP.js.map
252
+ //# sourceMappingURL=chunk-A2A2QEGQ.js.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  assertNativeHost
3
- } from "./chunk-NNKLVEQZ.js";
3
+ } from "./chunk-6NAOPDEL.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-CIU5Q55A.js";
36
+ } from "./chunk-JKUO3SES.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-EB7XLUSW.js.map
1984
+ //# sourceMappingURL=chunk-AKZ3TZF6.js.map
@@ -8,10 +8,10 @@ import {
8
8
  prepare,
9
9
  present,
10
10
  writeNative
11
- } from "./chunk-GPPGCZKP.js";
11
+ } from "./chunk-QWFXAUTC.js";
12
12
  import {
13
13
  ANTIGRAVITY_MCP_PLUGIN
14
- } from "./chunk-NDR7HEMH.js";
14
+ } from "./chunk-TA7STTID.js";
15
15
  import {
16
16
  changedSincePlan,
17
17
  exists,
@@ -22,7 +22,7 @@ import {
22
22
  same,
23
23
  splitKeyed,
24
24
  withoutBlock
25
- } from "./chunk-DFZESOWW.js";
25
+ } from "./chunk-27RQE4X5.js";
26
26
  import {
27
27
  RULES_DIR,
28
28
  legacyLinks
@@ -32,7 +32,7 @@ import {
32
32
  replaceFile,
33
33
  replaceLink,
34
34
  writeLock
35
- } from "./chunk-DZV7EQ5Q.js";
35
+ } from "./chunk-QESM25BF.js";
36
36
 
37
37
  // src/project/apply/files.ts
38
38
  import { mkdirSync } from "fs";
@@ -208,4 +208,4 @@ function project(spec, options) {
208
208
  export {
209
209
  project
210
210
  };
211
- //# sourceMappingURL=chunk-DXK67PX7.js.map
211
+ //# sourceMappingURL=chunk-BU5QVZD7.js.map
@@ -3,13 +3,13 @@ import {
3
3
  } from "./chunk-5ZABTVSW.js";
4
4
  import {
5
5
  dependencies
6
- } from "./chunk-NNOATTGX.js";
6
+ } from "./chunk-VVFEFQSO.js";
7
7
  import {
8
8
  interactiveEntry
9
9
  } from "./chunk-LMT3PPXJ.js";
10
10
  import {
11
11
  assertNativeHost
12
- } from "./chunk-NNKLVEQZ.js";
12
+ } from "./chunk-6NAOPDEL.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-5OVHW7AG.js.map
45
+ //# sourceMappingURL=chunk-DJX3T6OQ.js.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  readGitConfig
3
- } from "./chunk-J5XQW2CM.js";
3
+ } from "./chunk-7B2KRL2H.js";
4
4
  import {
5
5
  detect
6
6
  } from "./chunk-2Q6MNGU5.js";
@@ -53,4 +53,4 @@ export {
53
53
  gateTreePath,
54
54
  leaseSpecs
55
55
  };
56
- //# sourceMappingURL=chunk-JJBSYUSQ.js.map
56
+ //# sourceMappingURL=chunk-DXJZ2ZCX.js.map
@@ -2,10 +2,10 @@ import {
2
2
  missingBinary,
3
3
  nativeBinary,
4
4
  readLock
5
- } from "./chunk-DZV7EQ5Q.js";
5
+ } from "./chunk-QESM25BF.js";
6
6
  import {
7
7
  VERSION
8
- } from "./chunk-V4K6Q3GF.js";
8
+ } from "./chunk-JUV4AO7M.js";
9
9
  import {
10
10
  pickEnv
11
11
  } from "./chunk-J6KL3COD.js";
@@ -127,4 +127,4 @@ export {
127
127
  hostEnvDoctor,
128
128
  hostDoctor
129
129
  };
130
- //# sourceMappingURL=chunk-ONQJCG2X.js.map
130
+ //# sourceMappingURL=chunk-E4RHRBN4.js.map
@@ -7,6 +7,12 @@ import {
7
7
  cherry,
8
8
  distance
9
9
  } from "./chunk-ISNRDHSD.js";
10
+ import {
11
+ reportModes,
12
+ restoreModes,
13
+ restoreSubmoduleModes,
14
+ withUmask
15
+ } from "./chunk-P6LNYYYH.js";
10
16
  import {
11
17
  git,
12
18
  gitText
@@ -27,6 +33,9 @@ function heldBy(root, upstream, ahead) {
27
33
  return null;
28
34
  }
29
35
  function syncWorktree(options) {
36
+ return withUmask(options.umask, () => syncOnce(options));
37
+ }
38
+ function syncOnce(options) {
30
39
  const { ctx, report } = options;
31
40
  if (!ctx.linked)
32
41
  throw new Error(
@@ -67,6 +76,11 @@ function syncWorktree(options) {
67
76
  `moved ${before.slice(0, 10)} -> ${after.slice(0, 10)}, ${counted.behind} commit(s)`
68
77
  );
69
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
+ ]);
70
84
  if (options.install !== void 0)
71
85
  installIfStale(ctx.root, options.install, report);
72
86
  return "moved";
@@ -75,4 +89,4 @@ function syncWorktree(options) {
75
89
  export {
76
90
  syncWorktree
77
91
  };
78
- //# sourceMappingURL=chunk-D5D3V6RU.js.map
92
+ //# sourceMappingURL=chunk-ICF2JZSN.js.map
@@ -5,7 +5,7 @@ import {
5
5
  POLICIES,
6
6
  RUNTIMES,
7
7
  customPolicy
8
- } from "./chunk-DFZESOWW.js";
8
+ } from "./chunk-27RQE4X5.js";
9
9
 
10
10
  // src/hooks/inspection/list.ts
11
11
  function policyRows(compiled) {
@@ -39,4 +39,4 @@ function policyRows(compiled) {
39
39
  export {
40
40
  policyRows
41
41
  };
42
- //# sourceMappingURL=chunk-3MPPORSM.js.map
42
+ //# sourceMappingURL=chunk-IITLKKLW.js.map
@@ -1,12 +1,12 @@
1
1
  import {
2
2
  hostApprovalDoctor
3
- } from "./chunk-LREOXJ4I.js";
3
+ } from "./chunk-IRE5CH3V.js";
4
4
  import {
5
5
  project
6
- } from "./chunk-DXK67PX7.js";
6
+ } from "./chunk-BU5QVZD7.js";
7
7
  import {
8
8
  wakeableBy
9
- } from "./chunk-WIW772I3.js";
9
+ } from "./chunk-XLXDXJY2.js";
10
10
  import {
11
11
  currentHooks,
12
12
  restartNotes
@@ -16,16 +16,16 @@ import {
16
16
  marketplaceDoctor,
17
17
  skillNames,
18
18
  splitFrontmatter
19
- } from "./chunk-GPPGCZKP.js";
19
+ } from "./chunk-QWFXAUTC.js";
20
20
  import {
21
21
  ANTIGRAVITY_MCP_PLUGIN,
22
22
  serversForTool
23
- } from "./chunk-NDR7HEMH.js";
23
+ } from "./chunk-TA7STTID.js";
24
24
  import {
25
25
  permissionDoctor,
26
26
  pluginBinaryDoctor,
27
27
  uiClaudeDoctor
28
- } from "./chunk-DFZESOWW.js";
28
+ } from "./chunk-27RQE4X5.js";
29
29
  import {
30
30
  pathPmcp,
31
31
  pmcpCommand
@@ -38,7 +38,7 @@ import {
38
38
  hostDoctor,
39
39
  hostEnvDoctor,
40
40
  ptyBinaryDoctor
41
- } from "./chunk-ONQJCG2X.js";
41
+ } from "./chunk-E4RHRBN4.js";
42
42
  import {
43
43
  projectStateDir
44
44
  } from "./chunk-OEH47H6A.js";
@@ -642,4 +642,4 @@ export {
642
642
  spawnRunner,
643
643
  doctor
644
644
  };
645
- //# sourceMappingURL=chunk-SYCK2YYV.js.map
645
+ //# sourceMappingURL=chunk-INAQADYF.js.map
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  HOST_MANIFEST,
3
3
  HOST_POLICY
4
- } from "./chunk-ONQJCG2X.js";
4
+ } from "./chunk-E4RHRBN4.js";
5
5
  import {
6
6
  projectStateDir
7
7
  } from "./chunk-OEH47H6A.js";
@@ -99,4 +99,4 @@ export {
99
99
  hostApprovalDoctor,
100
100
  writeApproval
101
101
  };
102
- //# sourceMappingURL=chunk-LREOXJ4I.js.map
102
+ //# sourceMappingURL=chunk-IRE5CH3V.js.map
@@ -3,7 +3,7 @@ import {
3
3
  } from "./chunk-34DECPVC.js";
4
4
  import {
5
5
  ptyBinary
6
- } from "./chunk-ONQJCG2X.js";
6
+ } from "./chunk-E4RHRBN4.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-CIU5Q55A.js.map
778
+ //# sourceMappingURL=chunk-JKUO3SES.js.map
@@ -0,0 +1,7 @@
1
+ // src/commands/version.ts
2
+ var VERSION = "0.19.3";
3
+
4
+ export {
5
+ VERSION
6
+ };
7
+ //# sourceMappingURL=chunk-JUV4AO7M.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.19.2";
1193
+ var SERVER_VERSION = "0.19.3";
1194
1194
  function registerSkillTools(server, tools) {
1195
1195
  registerCatalogTool(server, tools);
1196
1196
  registerFindTool(server, tools);
@@ -1243,4 +1243,4 @@ export {
1243
1243
  registerSkillTools,
1244
1244
  createSkillServer
1245
1245
  };
1246
- //# sourceMappingURL=chunk-BR4B2KU2.js.map
1246
+ //# sourceMappingURL=chunk-JWYZE3QX.js.map