@modootoday/pmcp 0.21.0 → 0.22.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 (84) 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-VMOFDOCN.js} +10 -10
  6. package/dist/{chunk-OFPNCLG7.js → chunk-3TS3CX3R.js} +2 -2
  7. package/dist/{chunk-Z4Q6RYJH.js → chunk-3W2GELNR.js} +2 -2
  8. package/dist/{chunk-VUM6LO77.js → chunk-6HCEEC6V.js} +45 -24
  9. package/dist/chunk-ACHBHIGD.js +7 -0
  10. package/dist/{chunk-KVNNVLJR.js → chunk-ALX7BECI.js} +2 -2
  11. package/dist/{chunk-OS5DF3LL.js → chunk-D5BLJIAA.js} +4 -4
  12. package/dist/{chunk-VBDDFO2V.js → chunk-DPVLHB3K.js} +2 -2
  13. package/dist/{chunk-33KGCJB2.js → chunk-FHK5BE2D.js} +2 -2
  14. package/dist/{chunk-ZIJ5IUXH.js → chunk-GBKRDRMZ.js} +14 -5
  15. package/dist/{chunk-GQP4GWU4.js → chunk-GRRURNVA.js} +5 -5
  16. package/dist/{chunk-POTI2RJ6.js → chunk-M5LC5TKQ.js} +2 -2
  17. package/dist/{chunk-G6JXCUSK.js → chunk-NYA4GX44.js} +2 -2
  18. package/dist/{chunk-UFWQTZDX.js → chunk-OKMWYNZF.js} +5 -5
  19. package/dist/{chunk-R3MVL67T.js → chunk-P2LJADGI.js} +12 -12
  20. package/dist/{chunk-YLITJLTR.js → chunk-SB6X342E.js} +3 -3
  21. package/dist/{chunk-5FW7A6TG.js → chunk-TMXWSGXH.js} +2 -2
  22. package/dist/chunk-UKR64U7J.js +20 -0
  23. package/dist/{chunk-DEY23WTH.js → chunk-UVGW56SY.js} +2 -2
  24. package/dist/{chunk-DJZPPCJP.js → chunk-V6LLHO4S.js} +3 -3
  25. package/dist/{chunk-TBKVC2TA.js → chunk-XWAE3VEQ.js} +2 -2
  26. package/dist/{chunk-3X5JQYKN.js → chunk-XYEI7KRO.js} +3 -3
  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-XA7SR2OU.js} +2 -2
  31. package/dist/{diagnostics-IW54MLFK.js → diagnostics-AYSD3454.js} +5 -5
  32. package/dist/{doctor-EN4JPSKV.js → doctor-PDLZL4BR.js} +12 -12
  33. package/dist/{entry-TQWSDTJ4.js → entry-5CKOI3QK.js} +9 -9
  34. package/dist/{exec-mcp-KKQ75N5O.js → exec-mcp-EJZVPVU5.js} +8 -8
  35. package/dist/{harness-EB76F6BG.js → harness-VMQJY3KY.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-SKD67KMA.js} +3 -3
  39. package/dist/{host-LSVITS6M.js → host-4BA3LM7Z.js} +6 -6
  40. package/dist/{host-OGGADMBT.js → host-GY2LFEZX.js} +10 -10
  41. package/dist/{host-run-XO2TS4JC.js → host-run-X3VDTIQ2.js} +4 -4
  42. package/dist/http.js +1 -1
  43. package/dist/{import-mcp-BJDJTPVS.js → import-mcp-G2VTD5KR.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-JEK3QUAK.js} +2 -2
  47. package/dist/{invoke-Y7XH5S2L.js → invoke-7BUFBFJU.js} +7 -7
  48. package/dist/{list-5W65XVES.js → list-D3Y3TIC6.js} +9 -9
  49. package/dist/{logout-XO6ALD45.js → logout-T4JLFE2D.js} +8 -8
  50. package/dist/{mainline-M2NSTAGC.js → mainline-Q42M2GJ2.js} +106 -13
  51. package/dist/{mcp-R62ZNVGJ.js → mcp-GPIHVL65.js} +2 -2
  52. package/dist/{project-W5DQIZA6.js → project-6QRKXOMM.js} +4 -4
  53. package/dist/{run-OZLGSRHF.js → run-MVP22ENA.js} +7 -7
  54. package/dist/{run-WYJMTLX7.js → run-YHOLKUYB.js} +4 -4
  55. package/dist/{serve-DCQGAGB7.js → serve-EAESQK2I.js} +3 -3
  56. package/dist/{setup-D3KEJBGO.js → setup-3GET6K3J.js} +2 -2
  57. package/dist/{start-login-EKXM75XQ.js → start-login-K3TAZ3IH.js} +8 -8
  58. package/dist/{status-EDSEG32U.js → status-25DRPV7U.js} +8 -8
  59. package/dist/{status-23UDIYYP.js → status-DPPNTGHB.js} +9 -9
  60. package/dist/stdio.js +2 -2
  61. package/dist/{test-TM6PIZTV.js → test-I2V5AMQF.js} +8 -8
  62. package/dist/{tui-EQNJIDN5.js → tui-VCEN2L5I.js} +4 -4
  63. package/dist/{worker-7X6WBPEI.js → worker-NPQFYEBU.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/compatibility.md +11 -10
  67. package/docs/git-workflow.md +29 -8
  68. package/docs/project-configuration.md +26 -1
  69. package/docs/upgrading.md +31 -0
  70. package/gemini-extension.json +2 -2
  71. package/mcp.json +1 -1
  72. package/package.json +5 -5
  73. package/plugin.json +1 -1
  74. package/plugins/pmcp/.claude-plugin/plugin.json +1 -1
  75. package/plugins/pmcp/.mcp.json +1 -1
  76. package/plugins/pmcp/gemini-extension.json +2 -2
  77. package/plugins/pmcp/mcp.json +1 -1
  78. package/plugins/pmcp/plugin.json +1 -1
  79. package/plugins/pmcp/skills/agent-assets-migrate/SKILL.md +11 -8
  80. package/plugins/pmcp/skills/pmcp-project-init/SKILL.md +11 -7
  81. package/skills/agent-assets-migrate/SKILL.md +11 -8
  82. package/skills/pmcp-project-init/SKILL.md +11 -7
  83. package/dist/chunk-2MAD4WNZ.js +0 -92
  84. package/dist/chunk-H4ZOKIER.js +0 -7
@@ -612,7 +612,7 @@
612
612
  },
613
613
  {
614
614
  "name": "pmcp",
615
- "version": "0.21.0",
615
+ "version": "0.22.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.21.0",
448
+ "version": "0.22.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.21.0",
3
+ "version": "0.22.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.21.0", "serve"]
6
+ "args": ["-y", "@modootoday/pmcp@0.22.1", "serve"]
7
7
  }
8
8
  }
9
9
  }
@@ -3,7 +3,7 @@ import {
3
3
  } from "./chunk-PEMMV5YQ.js";
4
4
  import {
5
5
  specFrom
6
- } from "./chunk-VBDDFO2V.js";
6
+ } from "./chunk-DPVLHB3K.js";
7
7
  import {
8
8
  printSmoke,
9
9
  runSmoke
@@ -15,16 +15,16 @@ import {
15
15
  describeHookProblem,
16
16
  project,
17
17
  unmanagedHookProblems
18
- } from "./chunk-OS5DF3LL.js";
18
+ } from "./chunk-D5BLJIAA.js";
19
19
  import "./chunk-P4N7DBD5.js";
20
- import "./chunk-DJZPPCJP.js";
20
+ import "./chunk-V6LLHO4S.js";
21
21
  import {
22
22
  checkBudget,
23
23
  renderFrontmatter,
24
24
  splitFrontmatter
25
- } from "./chunk-VUM6LO77.js";
26
- import "./chunk-2MAD4WNZ.js";
27
- import "./chunk-UD3BEEBQ.js";
25
+ } from "./chunk-6HCEEC6V.js";
26
+ import "./chunk-UKR64U7J.js";
27
+ import "./chunk-XZ2TDH3J.js";
28
28
  import "./chunk-KUBHGVTD.js";
29
29
  import "./chunk-EATCUWGG.js";
30
30
  import "./chunk-OFJIMBTL.js";
@@ -35,7 +35,7 @@ import "./chunk-LFFIQBNY.js";
35
35
  import "./chunk-HQOB7OQS.js";
36
36
  import "./chunk-73AKO4UL.js";
37
37
  import "./chunk-P6LNYYYH.js";
38
- import "./chunk-ZIJ5IUXH.js";
38
+ import "./chunk-GBKRDRMZ.js";
39
39
  import "./chunk-2Q6MNGU5.js";
40
40
  import "./chunk-MR5IBS6L.js";
41
41
  import "./chunk-Z6WRFOFT.js";
@@ -56,10 +56,10 @@ import {
56
56
  import "./chunk-YSAWTGNA.js";
57
57
  import {
58
58
  recordProjector
59
- } from "./chunk-DEY23WTH.js";
59
+ } from "./chunk-UVGW56SY.js";
60
60
  import "./chunk-OEH47H6A.js";
61
61
  import "./chunk-IJBSOWHK.js";
62
- import "./chunk-H4ZOKIER.js";
62
+ import "./chunk-ACHBHIGD.js";
63
63
  import "./chunk-GJXOFDJT.js";
64
64
  import "./chunk-PMJG2CXF.js";
65
65
  import "./chunk-J6KL3COD.js";
@@ -274,4 +274,4 @@ export {
274
274
  projectOrCheck,
275
275
  removeAndProject
276
276
  };
277
- //# sourceMappingURL=apply-6FLMTJDV.js.map
277
+ //# sourceMappingURL=apply-VMOFDOCN.js.map
@@ -3,7 +3,7 @@ import {
3
3
  } from "./chunk-RPCIROW7.js";
4
4
  import {
5
5
  readSpec
6
- } from "./chunk-VUM6LO77.js";
6
+ } from "./chunk-6HCEEC6V.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-OFPNCLG7.js.map
28
+ //# sourceMappingURL=chunk-3TS3CX3R.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.21.0";
1193
+ var SERVER_VERSION = "0.22.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-Z4Q6RYJH.js.map
1250
+ //# sourceMappingURL=chunk-3W2GELNR.js.map
@@ -1,6 +1,9 @@
1
+ import {
2
+ globPattern
3
+ } from "./chunk-UKR64U7J.js";
1
4
  import {
2
5
  syncWorktree
3
- } from "./chunk-2MAD4WNZ.js";
6
+ } from "./chunk-XZ2TDH3J.js";
4
7
  import {
5
8
  localCli,
6
9
  pmcpCommand,
@@ -31,7 +34,7 @@ import {
31
34
  import {
32
35
  leaseSpecs,
33
36
  readGitConfig
34
- } from "./chunk-ZIJ5IUXH.js";
37
+ } from "./chunk-GBKRDRMZ.js";
35
38
  import {
36
39
  detect
37
40
  } from "./chunk-2Q6MNGU5.js";
@@ -70,7 +73,7 @@ import {
70
73
  packagedBinary,
71
74
  readHost,
72
75
  readLock
73
- } from "./chunk-DEY23WTH.js";
76
+ } from "./chunk-UVGW56SY.js";
74
77
  import {
75
78
  checkoutOf,
76
79
  hasLinkedWorktrees
@@ -92,6 +95,7 @@ import {
92
95
  // src/project/plan.ts
93
96
  import { existsSync as existsSync7, readFileSync as readFileSync6, readdirSync } from "fs";
94
97
  import { join as join6 } from "path";
98
+ import { stringify } from "smol-toml";
95
99
 
96
100
  // src/project/frontmatter.ts
97
101
  import { createRequire } from "module";
@@ -1481,9 +1485,6 @@ function skillOutputs(spec) {
1481
1485
  if (spec.tools.has("claude")) {
1482
1486
  outputs.push({ kind: "link", path: `.claude/skills/${name}`, target });
1483
1487
  }
1484
- if (spec.tools.has("grok")) {
1485
- outputs.push({ kind: "link", path: `.grok/skills/${name}`, target });
1486
- }
1487
1488
  if (spec.skills[name]?.invocation !== "user") continue;
1488
1489
  if (spec.tools.has("claude")) {
1489
1490
  outputs.push(
@@ -1527,6 +1528,7 @@ ${body}`
1527
1528
  }
1528
1529
  function agentOutputs(spec) {
1529
1530
  const outputs = [];
1531
+ const codexNames = /* @__PURE__ */ new Map();
1530
1532
  for (const name of agentNames(spec.root)) {
1531
1533
  const rel = `.agents/agents/${name}/agent.md`;
1532
1534
  const { meta, body } = splitFrontmatter(
@@ -1556,22 +1558,36 @@ ${note}${body}`
1556
1558
  });
1557
1559
  }
1558
1560
  if (spec.tools.has("codex")) {
1561
+ const { name: _name, description, ...rest } = overrides.codex ?? {};
1562
+ const codex = codexAgentName(name, overrides.codex);
1563
+ const taken = codexNames.get(codex);
1564
+ if (taken !== void 0)
1565
+ throw new ProjectError(
1566
+ `agents ${taken} and ${name} are both ${codex} in Codex; set [agents.<name>.codex] name for one of them`
1567
+ );
1568
+ codexNames.set(codex, name);
1569
+ const extra = Object.keys(rest).length > 0 ? stringify(rest) : "";
1559
1570
  const toml = [
1560
1571
  `# ${MARK} from ${rel}`,
1561
- `name = ${tomlString(meta["name"])}`,
1562
- `description = ${tomlString(meta["description"])}`,
1572
+ `name = ${tomlString(codex)}`,
1573
+ `description = ${tomlString(description ?? meta["description"])}`,
1563
1574
  `developer_instructions = ${tomlString(body.trim())}`,
1575
+ ...extra ? ["", extra.trimEnd()] : [],
1564
1576
  ""
1565
1577
  ].join("\n");
1566
1578
  outputs.push({
1567
1579
  kind: "file",
1568
- path: `.codex/agents/${name}.toml`,
1580
+ path: `.codex/agents/${codex}.toml`,
1569
1581
  content: toml
1570
1582
  });
1571
1583
  }
1572
1584
  }
1573
1585
  return outputs;
1574
1586
  }
1587
+ function codexAgentName(name, overrides) {
1588
+ const set = overrides?.["name"];
1589
+ return typeof set === "string" ? set : name.replaceAll("-", "_");
1590
+ }
1575
1591
  function plan(spec, owned2 = /* @__PURE__ */ new Map()) {
1576
1592
  const outputs = [
1577
1593
  ...skillOutputs(spec),
@@ -1596,6 +1612,8 @@ function censusDirs(spec) {
1596
1612
  ".claude/commands",
1597
1613
  ".gemini/agents",
1598
1614
  ".codex/agents",
1615
+ // No longer written; still watched, since a skill placed there would shadow the
1616
+ // .agents/skills one of the same name in Grok.
1599
1617
  ".grok/skills",
1600
1618
  `${RULES_DIR}/pmcp`
1601
1619
  ];
@@ -1643,20 +1661,6 @@ function readBudget(value) {
1643
1661
  forbidPaths: forbid
1644
1662
  };
1645
1663
  }
1646
- function globPattern(glob) {
1647
- let source = "";
1648
- for (let at = 0; at < glob.length; at += 1) {
1649
- const char = glob[at];
1650
- if (char === "*" && glob[at + 1] === "*") {
1651
- const slash = glob[at + 2] === "/";
1652
- source += slash ? "(?:.*/)?" : ".*";
1653
- at += slash ? 2 : 1;
1654
- } else if (char === "*") source += "[^/]*";
1655
- else if (char === "?") source += "[^/]";
1656
- else source += char.replace(/[.+^${}()|[\]\\]/gu, "\\$&");
1657
- }
1658
- return new RegExp(`^${source}(?:/.*)?$`, "u");
1659
- }
1660
1664
  function regularFile(path) {
1661
1665
  try {
1662
1666
  return lstatSync2(path).isFile();
@@ -5291,6 +5295,23 @@ function readSpec(config) {
5291
5295
  }
5292
5296
  perTool[tool] = table2(path, `[agents.${name}.${tool}]`, fields2);
5293
5297
  }
5298
+ const codex = perTool.codex;
5299
+ if (codex?.["developer_instructions"] !== void 0)
5300
+ throw new ConfigError(
5301
+ path,
5302
+ `[agents.${name}.codex] developer_instructions comes from the body of .agents/agents/${name}/agent.md`
5303
+ );
5304
+ const codexName = codex?.["name"];
5305
+ if (codexName !== void 0 && (typeof codexName !== "string" || !/^[a-z0-9_]+$/u.test(codexName)))
5306
+ throw new ConfigError(
5307
+ path,
5308
+ `[agents.${name}.codex] name must be lowercase letters, digits and underscores`
5309
+ );
5310
+ if (codex?.["description"] !== void 0 && typeof codex["description"] !== "string")
5311
+ throw new ConfigError(
5312
+ path,
5313
+ `[agents.${name}.codex] description must be a string`
5314
+ );
5294
5315
  agents[named(path, "[agents]", name)] = perTool;
5295
5316
  }
5296
5317
  const rules2 = table2(path, "[rules]", raw["rules"]);
@@ -5403,4 +5424,4 @@ export {
5403
5424
  checkBudget,
5404
5425
  readSpec
5405
5426
  };
5406
- //# sourceMappingURL=chunk-VUM6LO77.js.map
5427
+ //# sourceMappingURL=chunk-6HCEEC6V.js.map
@@ -0,0 +1,7 @@
1
+ // src/commands/version.ts
2
+ var VERSION = "0.22.1";
3
+
4
+ export {
5
+ VERSION
6
+ };
7
+ //# sourceMappingURL=chunk-ACHBHIGD.js.map
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  HOST_MANIFEST,
3
3
  HOST_POLICY
4
- } from "./chunk-DEY23WTH.js";
4
+ } from "./chunk-UVGW56SY.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-KVNNVLJR.js.map
102
+ //# sourceMappingURL=chunk-ALX7BECI.js.map
@@ -7,7 +7,7 @@ import {
7
7
  prepare,
8
8
  present,
9
9
  writeNative
10
- } from "./chunk-DJZPPCJP.js";
10
+ } from "./chunk-V6LLHO4S.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-VUM6LO77.js";
24
+ } from "./chunk-6HCEEC6V.js";
25
25
  import {
26
26
  RULES_DIR,
27
27
  legacyLinks
@@ -34,7 +34,7 @@ import {
34
34
  replaceFile,
35
35
  replaceLink,
36
36
  writeLock
37
- } from "./chunk-DEY23WTH.js";
37
+ } from "./chunk-UVGW56SY.js";
38
38
 
39
39
  // src/project/apply/files.ts
40
40
  import { mkdirSync } from "fs";
@@ -400,4 +400,4 @@ export {
400
400
  unmanagedHooks,
401
401
  describeHookProblem
402
402
  };
403
- //# sourceMappingURL=chunk-OS5DF3LL.js.map
403
+ //# sourceMappingURL=chunk-D5BLJIAA.js.map
@@ -3,7 +3,7 @@ import {
3
3
  } from "./chunk-RPCIROW7.js";
4
4
  import {
5
5
  readSpec
6
- } from "./chunk-VUM6LO77.js";
6
+ } from "./chunk-6HCEEC6V.js";
7
7
  import {
8
8
  ArgumentError
9
9
  } from "./chunk-A4PKLESO.js";
@@ -28,4 +28,4 @@ function specFrom(context) {
28
28
  export {
29
29
  specFrom
30
30
  };
31
- //# sourceMappingURL=chunk-VBDDFO2V.js.map
31
+ //# sourceMappingURL=chunk-DPVLHB3K.js.map
@@ -3,7 +3,7 @@ import {
3
3
  } from "./chunk-34DECPVC.js";
4
4
  import {
5
5
  ptyBinary
6
- } from "./chunk-DEY23WTH.js";
6
+ } from "./chunk-UVGW56SY.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-33KGCJB2.js.map
778
+ //# sourceMappingURL=chunk-FHK5BE2D.js.map
@@ -116,9 +116,11 @@ function worktrees(path, source) {
116
116
  "alias_pattern",
117
117
  "bootstrap",
118
118
  "link_from_main",
119
- "sync"
119
+ "sync",
120
+ "desks"
120
121
  ]);
121
122
  const pattern = read.string("alias_pattern") ?? "^[a-z][a-z0-9-]{1,30}$";
123
+ const root = read.string("root") ?? ".claude/worktrees";
122
124
  try {
123
125
  new RegExp(pattern, "u");
124
126
  } catch {
@@ -128,11 +130,12 @@ function worktrees(path, source) {
128
130
  );
129
131
  }
130
132
  return {
131
- root: read.string("root") ?? ".claude/worktrees",
133
+ root,
132
134
  branchPrefix: read.string("branch_prefix") ?? "worktree-",
133
135
  aliasPattern: pattern,
134
136
  bootstrap: read.argv("bootstrap"),
135
- linkFromMain: read.list("link_from_main")
137
+ linkFromMain: read.list("link_from_main"),
138
+ desks: read.string("desks") ?? `${root.replace(/\/+$/u, "")}/*`
136
139
  };
137
140
  }
138
141
  function worktreeSync(path, source) {
@@ -140,9 +143,15 @@ function worktreeSync(path, source) {
140
143
  "on_session_start",
141
144
  "install_after_move",
142
145
  "between_prompts",
143
- "notice_paths"
146
+ "notice_paths",
147
+ "after_deliver"
144
148
  ]);
145
149
  return {
150
+ afterDeliver: read.oneOf(
151
+ "after_deliver",
152
+ ["desk", "off"],
153
+ "off"
154
+ ),
146
155
  onSessionStart: read.string("on_session_start") ?? "fetch_and_move",
147
156
  installAfterMove: read.oneOf(
148
157
  "install_after_move",
@@ -371,4 +380,4 @@ export {
371
380
  gateTreePath,
372
381
  leaseSpecs
373
382
  };
374
- //# sourceMappingURL=chunk-ZIJ5IUXH.js.map
383
+ //# sourceMappingURL=chunk-GBKRDRMZ.js.map
@@ -7,20 +7,20 @@ import {
7
7
  observeSession,
8
8
  openGroup,
9
9
  runOperation
10
- } from "./chunk-YLITJLTR.js";
10
+ } from "./chunk-SB6X342E.js";
11
11
  import {
12
12
  nativeHostTools
13
- } from "./chunk-POTI2RJ6.js";
13
+ } from "./chunk-M5LC5TKQ.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-33KGCJB2.js";
20
+ } from "./chunk-FHK5BE2D.js";
21
21
  import {
22
22
  ptyBinary
23
- } from "./chunk-DEY23WTH.js";
23
+ } from "./chunk-UVGW56SY.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-GQP4GWU4.js.map
252
+ //# sourceMappingURL=chunk-GRRURNVA.js.map
@@ -6,7 +6,7 @@ import {
6
6
  } from "./chunk-34DECPVC.js";
7
7
  import {
8
8
  ptyBinary
9
- } from "./chunk-DEY23WTH.js";
9
+ } from "./chunk-UVGW56SY.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-POTI2RJ6.js.map
39
+ //# sourceMappingURL=chunk-M5LC5TKQ.js.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  createSkillServer
3
- } from "./chunk-Z4Q6RYJH.js";
3
+ } from "./chunk-3W2GELNR.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-G6JXCUSK.js.map
87
+ //# sourceMappingURL=chunk-NYA4GX44.js.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  hostApprovalDoctor
3
- } from "./chunk-KVNNVLJR.js";
3
+ } from "./chunk-ALX7BECI.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-OS5DF3LL.js";
15
+ } from "./chunk-D5BLJIAA.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-VUM6LO77.js";
26
+ } from "./chunk-6HCEEC6V.js";
27
27
  import {
28
28
  pathPmcp,
29
29
  pmcpCommand
@@ -36,7 +36,7 @@ import {
36
36
  hostDoctor,
37
37
  hostEnvDoctor,
38
38
  ptyBinaryDoctor
39
- } from "./chunk-DEY23WTH.js";
39
+ } from "./chunk-UVGW56SY.js";
40
40
  import {
41
41
  projectStateDir
42
42
  } from "./chunk-OEH47H6A.js";
@@ -654,4 +654,4 @@ export {
654
654
  spawnRunner,
655
655
  doctor
656
656
  };
657
- //# sourceMappingURL=chunk-UFWQTZDX.js.map
657
+ //# sourceMappingURL=chunk-OKMWYNZF.js.map
@@ -61,11 +61,11 @@ var completionSpec = {
61
61
  var COMMANDS = [
62
62
  {
63
63
  ...statusSpec,
64
- load: async () => (await import("./status-23UDIYYP.js")).statusCommand
64
+ load: async () => (await import("./status-DPPNTGHB.js")).statusCommand
65
65
  },
66
- { ...initSpec, load: async () => (await import("./init-773PTQM5.js")).initCommand },
67
- { ...hooksSpec, load: async () => (await import("./hooks-YWSHUNLM.js")).hooksCommand },
68
- { ...serveSpec, load: async () => (await import("./serve-DCQGAGB7.js")).serveCommand },
66
+ { ...initSpec, load: async () => (await import("./init-JEK3QUAK.js")).initCommand },
67
+ { ...hooksSpec, load: async () => (await import("./hooks-SKD67KMA.js")).hooksCommand },
68
+ { ...serveSpec, load: async () => (await import("./serve-EAESQK2I.js")).serveCommand },
69
69
  { ...listSpec, load: async () => (await import("./list-WK2IYUK7.js")).listCommand },
70
70
  {
71
71
  ...indexSpec,
@@ -102,19 +102,19 @@ var COMMANDS = [
102
102
  { ...syncSpec, load: async () => (await import("./install-7V6NIA7W.js")).syncCommand },
103
103
  {
104
104
  ...projectSpec,
105
- load: async () => (await import("./project-W5DQIZA6.js")).projectCommand
105
+ load: async () => (await import("./project-6QRKXOMM.js")).projectCommand
106
106
  },
107
107
  {
108
108
  ...doctorSpec,
109
- load: async () => (await import("./doctor-EN4JPSKV.js")).doctorCommand
109
+ load: async () => (await import("./doctor-PDLZL4BR.js")).doctorCommand
110
110
  },
111
111
  {
112
112
  ...sessionsSpec,
113
113
  load: async () => (await import("./cli-6FWRBCWM.js")).sessionsCommand
114
114
  },
115
115
  { ...logsSpec, load: async () => (await import("./logs-74JGLQG6.js")).logsCommand },
116
- { ...gitSpec, load: async () => (await import("./cli-RVPR3MH3.js")).gitCommand },
117
- { ...mcpSpec, load: async () => (await import("./mcp-R62ZNVGJ.js")).mcpCommand },
116
+ { ...gitSpec, load: async () => (await import("./cli-BEEDAD4E.js")).gitCommand },
117
+ { ...mcpSpec, load: async () => (await import("./mcp-GPIHVL65.js")).mcpCommand },
118
118
  {
119
119
  ...validateSpec,
120
120
  load: async () => (await import("./validate-KFBCUFI4.js")).validateCommand
@@ -125,16 +125,16 @@ var COMMANDS = [
125
125
  },
126
126
  {
127
127
  ...harnessSpec,
128
- load: async () => (await import("./harness-EB76F6BG.js")).harnessCommand
128
+ load: async () => (await import("./harness-VMQJY3KY.js")).harnessCommand
129
129
  },
130
- { ...tuiSpec, load: async () => (await import("./tui-EQNJIDN5.js")).tuiCommand },
130
+ { ...tuiSpec, load: async () => (await import("./tui-VCEN2L5I.js")).tuiCommand },
131
131
  {
132
132
  ...marketplaceSpec,
133
133
  load: async () => (await import("./marketplace-G4VQET5W.js")).marketplaceCommand
134
134
  },
135
135
  {
136
136
  ...completionSpec,
137
- load: async () => (await import("./completion-YTPHEVEW.js")).completionCommand
137
+ load: async () => (await import("./completion-XA7SR2OU.js")).completionCommand
138
138
  }
139
139
  ];
140
140
  var PLANNED = [];
@@ -148,4 +148,4 @@ export {
148
148
  PLANNED,
149
149
  commandNamed
150
150
  };
151
- //# sourceMappingURL=chunk-R3MVL67T.js.map
151
+ //# sourceMappingURL=chunk-P2LJADGI.js.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  assertNativeHost
3
- } from "./chunk-POTI2RJ6.js";
3
+ } from "./chunk-M5LC5TKQ.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-33KGCJB2.js";
36
+ } from "./chunk-FHK5BE2D.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-YLITJLTR.js.map
1984
+ //# sourceMappingURL=chunk-SB6X342E.js.map
@@ -5,7 +5,7 @@ import {
5
5
  POLICIES,
6
6
  customMode,
7
7
  customPolicy
8
- } from "./chunk-VUM6LO77.js";
8
+ } from "./chunk-6HCEEC6V.js";
9
9
  import {
10
10
  RUNTIMES
11
11
  } from "./chunk-5YCKFU5Q.js";
@@ -42,4 +42,4 @@ function policyRows(compiled) {
42
42
  export {
43
43
  policyRows
44
44
  };
45
- //# sourceMappingURL=chunk-5FW7A6TG.js.map
45
+ //# sourceMappingURL=chunk-TMXWSGXH.js.map
@@ -0,0 +1,20 @@
1
+ // src/glob.ts
2
+ function globPattern(glob, below = true) {
3
+ let source = "";
4
+ for (let at = 0; at < glob.length; at += 1) {
5
+ const char = glob[at];
6
+ if (char === "*" && glob[at + 1] === "*") {
7
+ const slash = glob[at + 2] === "/";
8
+ source += slash ? "(?:.*/)?" : ".*";
9
+ at += slash ? 2 : 1;
10
+ } else if (char === "*") source += "[^/]*";
11
+ else if (char === "?") source += "[^/]";
12
+ else source += char.replace(/[.+^${}()|[\]\\]/gu, "\\$&");
13
+ }
14
+ return new RegExp(`^${source}${below ? "(?:/.*)?" : ""}$`, "u");
15
+ }
16
+
17
+ export {
18
+ globPattern
19
+ };
20
+ //# sourceMappingURL=chunk-UKR64U7J.js.map
@@ -3,7 +3,7 @@ import {
3
3
  } from "./chunk-OEH47H6A.js";
4
4
  import {
5
5
  VERSION
6
- } from "./chunk-H4ZOKIER.js";
6
+ } from "./chunk-ACHBHIGD.js";
7
7
  import {
8
8
  ConfigError
9
9
  } from "./chunk-GJXOFDJT.js";
@@ -578,4 +578,4 @@ export {
578
578
  hostEnvDoctor,
579
579
  hostDoctor
580
580
  };
581
- //# sourceMappingURL=chunk-DEY23WTH.js.map
581
+ //# sourceMappingURL=chunk-UVGW56SY.js.map