@modootoday/pmcp 0.18.0 → 0.18.2

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 (134) hide show
  1. package/.agents/plugins/marketplace.json +1 -1
  2. package/.claude-plugin/marketplace.json +1 -1
  3. package/.claude-plugin/plugin.json +2 -2
  4. package/.mcp.json +1 -1
  5. package/CHANGELOG.md +112 -20
  6. package/CONTRIBUTING.md +71 -0
  7. package/README.md +98 -206
  8. package/SECURITY.md +17 -1
  9. package/dist/{apply-4IGTXOCQ.js → apply-JUTGS5WZ.js} +11 -11
  10. package/dist/{broadcast-3RY3OZGY.js → broadcast-CBMVOV3G.js} +4 -4
  11. package/dist/{chunk-SG5TPMKH.js → chunk-26WLNWDG.js} +2 -2
  12. package/dist/{chunk-ELAGZ635.js → chunk-2FIV63WC.js} +5 -5
  13. package/dist/{chunk-JUXNIXN4.js → chunk-3FCFAQDG.js} +2 -2
  14. package/dist/{chunk-EJBZGIDK.js → chunk-3IDXEV5E.js} +3 -3
  15. package/dist/chunk-65KAQSJP.js +7 -0
  16. package/dist/{chunk-665TA55Z.js → chunk-7HFIGCSL.js} +2 -2
  17. package/dist/{chunk-R4L6LJJ2.js → chunk-7UCZAN4J.js} +2 -2
  18. package/dist/{chunk-J6QLLQVL.js → chunk-A7VF7A35.js} +5 -5
  19. package/dist/{chunk-NZS5CD72.js → chunk-AJ4VXM2U.js} +20 -4
  20. package/dist/{chunk-25GHX674.js → chunk-D77IRGHO.js} +6 -6
  21. package/dist/{chunk-4VCC2NXE.js → chunk-DMZHQZ7P.js} +2 -2
  22. package/dist/{chunk-Q65R3XKX.js → chunk-EAWPJHJ7.js} +2 -2
  23. package/dist/{chunk-PLX3BOOS.js → chunk-F5QYZK7E.js} +2 -2
  24. package/dist/{chunk-YMHUM7AV.js → chunk-F5XMGOOX.js} +7 -1
  25. package/dist/{chunk-7BLPN3W6.js → chunk-FENOGX3U.js} +2 -2
  26. package/dist/{chunk-N5AQ3PP7.js → chunk-I2ZP2PSA.js} +5 -5
  27. package/dist/{chunk-UOCLRM7P.js → chunk-IG33DXLT.js} +16 -16
  28. package/dist/{chunk-RK4PYD7L.js → chunk-LBXO4VPG.js} +2 -2
  29. package/dist/{chunk-BVCTKPT3.js → chunk-LMUBBIE2.js} +2 -2
  30. package/dist/{chunk-Z4HRRXRF.js → chunk-LTZH5E3G.js} +6 -5
  31. package/dist/{chunk-MWFOUBFC.js → chunk-LW4TG7EL.js} +2 -2
  32. package/dist/{chunk-LAZQBMAU.js → chunk-NLEXKE7U.js} +3 -3
  33. package/dist/{chunk-ZH6R642Z.js → chunk-PKODFR5F.js} +2 -2
  34. package/dist/{chunk-IGYRMM62.js → chunk-QEF7EK3T.js} +2 -2
  35. package/dist/{chunk-MM2Y43LC.js → chunk-RPQOBHVU.js} +2 -2
  36. package/dist/{chunk-3NYG4SGU.js → chunk-TXQ7L33K.js} +3 -3
  37. package/dist/{chunk-PWSJJXLQ.js → chunk-VMHUEOT5.js} +8 -8
  38. package/dist/{chunk-65ZHM5RH.js → chunk-VRPMYPZU.js} +9 -9
  39. package/dist/{cli-VYCQJZ5X.js → cli-MI4ZCAZ3.js} +9 -9
  40. package/dist/{cli-ZTCBSDW4.js → cli-ZN7ZVDEZ.js} +3 -3
  41. package/dist/cli.js +4 -4
  42. package/dist/{completion-E7RRG3ZT.js → completion-ILSRB3LW.js} +3 -3
  43. package/dist/{diagnostics-XXH4FLUG.js → diagnostics-XKXVVQWH.js} +6 -6
  44. package/dist/{doctor-ZIOESU3N.js → doctor-O2E63YGO.js} +13 -13
  45. package/dist/{entry-ZNFCTDVE.js → entry-X6CSYQRQ.js} +10 -10
  46. package/dist/{exec-mcp-X6372BLE.js → exec-mcp-2PMWBPD7.js} +8 -8
  47. package/dist/{harness-F2XFDYXF.js → harness-L2KSI2ZB.js} +5 -5
  48. package/dist/harness-launch-gate.js +4 -4
  49. package/dist/harness-worker.js +6 -6
  50. package/dist/hook-body.js +7 -6
  51. package/dist/{hooks-FYE2L5RW.js → hooks-BHTA44X7.js} +3 -3
  52. package/dist/{host-GRY3VAHH.js → host-UIZAXXQH.js} +7 -7
  53. package/dist/{host-X6BR6X4O.js → host-UWK754BW.js} +20 -10
  54. package/dist/{host-run-GCA6H6SR.js → host-run-BI2OTZDZ.js} +5 -5
  55. package/dist/http.js +1 -1
  56. package/dist/{import-mcp-2TTBPVLY.js → import-mcp-GPKJI7DI.js} +6 -6
  57. package/dist/index.d.ts +1 -1
  58. package/dist/index.js +13 -13
  59. package/dist/{init-627KFXTG.js → init-3C2Y7BNJ.js} +2 -2
  60. package/dist/{invoke-LW22Z6ET.js → invoke-44CJRVMK.js} +8 -8
  61. package/dist/{list-NGMSQ5SH.js → list-WL6L4J5H.js} +8 -8
  62. package/dist/{logout-6CSHUWWE.js → logout-F5EJ5MOU.js} +7 -7
  63. package/dist/{logs-SPB6AANY.js → logs-TBUA4UWU.js} +4 -4
  64. package/dist/{mailbox-7BV54Q4R.js → mailbox-BMTZOSZ7.js} +4 -4
  65. package/dist/{mainline-JQTTYJMI.js → mainline-KAD2ERLP.js} +2 -2
  66. package/dist/{mcp-2DKVU3SW.js → mcp-235QZN2A.js} +2 -2
  67. package/dist/{mcp-V23HC3LB.js → mcp-FJ2UQ4RH.js} +2 -2
  68. package/dist/{pause-FFAYRBWI.js → pause-7LILUVGL.js} +4 -4
  69. package/dist/{project-FY62G55N.js → project-5YV5CUEG.js} +4 -4
  70. package/dist/{resume-UU4HZIUP.js → resume-26VFAAMH.js} +4 -4
  71. package/dist/{run-OGA3P7FC.js → run-3AXTZSR7.js} +7 -7
  72. package/dist/{run-HALGEJNJ.js → run-3SOVRQIA.js} +4 -4
  73. package/dist/{serve-NBKT5BKY.js → serve-DQMKTFIV.js} +3 -3
  74. package/dist/{start-login-UIQYQBMC.js → start-login-YTZV6KMF.js} +7 -7
  75. package/dist/{status-NOOHW5WA.js → status-MROQ7WR7.js} +7 -7
  76. package/dist/{status-VHODZPXB.js → status-RO55QPKV.js} +4 -4
  77. package/dist/{status-XQANBVXW.js → status-UME2L33L.js} +11 -11
  78. package/dist/stdio.js +2 -2
  79. package/dist/{sweep-64JDCGK6.js → sweep-35LGQTTO.js} +4 -4
  80. package/dist/{test-MKAXFJOL.js → test-AGZOJLRZ.js} +7 -7
  81. package/dist/{tui-MWKAXE4K.js → tui-G5LLWCSV.js} +5 -5
  82. package/dist/{unbroadcast-KPUEFLZD.js → unbroadcast-5QNGAJR2.js} +4 -4
  83. package/dist/{validate-5GZ5YWNA.js → validate-IU52H2IC.js} +2 -2
  84. package/dist/{worker-RQ575EJL.js → worker-QZ5T6LJD.js} +8 -8
  85. package/docs/authoring.md +82 -0
  86. package/docs/browser-and-desktop.md +46 -0
  87. package/docs/commands.md +325 -0
  88. package/docs/compare.md +35 -0
  89. package/docs/compatibility.md +55 -0
  90. package/docs/embeddings.md +1 -1
  91. package/docs/getting-started.md +105 -0
  92. package/docs/git-workflow.md +60 -0
  93. package/docs/glossary.md +31 -0
  94. package/docs/hooks.md +264 -0
  95. package/docs/install.md +72 -0
  96. package/docs/library-skills.md +132 -0
  97. package/docs/mailbox.md +16 -5
  98. package/docs/project-configuration.md +51 -386
  99. package/docs/sessions.md +64 -0
  100. package/docs/skills.md +4 -45
  101. package/docs/terminal-harness.md +26 -21
  102. package/docs/terminal-workspace.md +4 -13
  103. package/gemini-extension.json +2 -2
  104. package/mcp.json +1 -1
  105. package/package.json +8 -6
  106. package/plugin.json +2 -2
  107. package/plugins/pmcp/.claude-plugin/plugin.json +2 -2
  108. package/plugins/pmcp/.mcp.json +1 -1
  109. package/plugins/pmcp/gemini-extension.json +2 -2
  110. package/plugins/pmcp/mcp.json +1 -1
  111. package/plugins/pmcp/mod/sessions/types.ts +1 -1
  112. package/plugins/pmcp/plugin.json +2 -2
  113. package/plugins/pmcp/skills/headless-agents-ci-scaffold/SKILL.md +12 -11
  114. package/plugins/pmcp/skills/package-skill-catalog/SKILL.md +0 -4
  115. package/plugins/pmcp/skills/pmcp-browser/SKILL.md +27 -0
  116. package/plugins/pmcp/skills/pmcp-desktop/SKILL.md +25 -0
  117. package/plugins/pmcp/skills/pmcp-project-init/SKILL.md +19 -11
  118. package/plugins/pmcp/skills/pmcp-sessions-and-git/SKILL.md +20 -28
  119. package/plugins/pmcp/skills/skill-package-scaffold/SKILL.md +4 -3
  120. package/schema/catalog-v1.json +36 -7
  121. package/schema/library.json +40 -8
  122. package/schema/marketplace-manifest.json +19 -5
  123. package/schema/plugin-manifest.json +6 -2
  124. package/schema/skill-frontmatter.json +33 -7
  125. package/schema/skill-metadata-core.json +26 -5
  126. package/skills/headless-agents-ci-scaffold/SKILL.md +12 -11
  127. package/skills/package-skill-catalog/SKILL.md +0 -4
  128. package/skills/pmcp-browser/SKILL.md +27 -0
  129. package/skills/pmcp-desktop/SKILL.md +25 -0
  130. package/skills/pmcp-project-init/SKILL.md +19 -11
  131. package/skills/pmcp-sessions-and-git/SKILL.md +20 -28
  132. package/skills/skill-package-scaffold/SKILL.md +4 -3
  133. package/dist/chunk-E7OOHLQR.js +0 -7
  134. package/docs/manual-library-skills.md +0 -74
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  OPENCODE_CONFIG,
3
3
  mcpOutputs
4
- } from "./chunk-PLX3BOOS.js";
4
+ } from "./chunk-F5QYZK7E.js";
5
5
  import {
6
6
  MARK,
7
7
  NATIVE_HOOK_FILES,
@@ -25,7 +25,7 @@ import {
25
25
  splitKeyed,
26
26
  uiClaudeOutputs,
27
27
  withoutBlock
28
- } from "./chunk-65ZHM5RH.js";
28
+ } from "./chunk-VRPMYPZU.js";
29
29
  import {
30
30
  ProjectError,
31
31
  RULES_DIR,
@@ -37,12 +37,12 @@ import {
37
37
  } from "./chunk-73AKO4UL.js";
38
38
  import {
39
39
  hostOutputs
40
- } from "./chunk-4VCC2NXE.js";
40
+ } from "./chunk-DMZHQZ7P.js";
41
41
  import {
42
42
  lockVersionProblem,
43
43
  readLock,
44
44
  replaceFile
45
- } from "./chunk-665TA55Z.js";
45
+ } from "./chunk-7HFIGCSL.js";
46
46
  import {
47
47
  CODEX_PLUGIN_LIST,
48
48
  claudeSettings,
@@ -1022,4 +1022,4 @@ export {
1022
1022
  prepare,
1023
1023
  checkProject
1024
1024
  };
1025
- //# sourceMappingURL=chunk-J6QLLQVL.js.map
1025
+ //# sourceMappingURL=chunk-A7VF7A35.js.map
@@ -96,6 +96,9 @@ var skillMetadataCore = z.looseObject({
96
96
  deprecated: true,
97
97
  description: "Inherited from marketplace metadata.tier; repeated skill tiers warn."
98
98
  }).optional()
99
+ }).meta({
100
+ title: "Skill metadata",
101
+ description: "The metadata map of a SKILL.md frontmatter: catalog fields pmcp reads (level, domain, install, keywords and the rest)."
99
102
  });
100
103
  var skillFrontmatter = z.looseObject({
101
104
  name: z.string().min(1),
@@ -104,6 +107,9 @@ var skillFrontmatter = z.looseObject({
104
107
  compatibility: z.string().optional(),
105
108
  "allowed-tools": z.union([z.string(), strings]).optional(),
106
109
  metadata: skillMetadataCore.optional()
110
+ }).meta({
111
+ title: "SKILL.md frontmatter",
112
+ description: "The Agent Skills frontmatter pmcp validate checks: name, description and the optional fields."
107
113
  });
108
114
  var manifestFields = {
109
115
  tier: z.never().optional(),
@@ -114,7 +120,10 @@ var manifestFields = {
114
120
  renames: z.record(z.string().min(1), z.string().min(1).nullable()).optional(),
115
121
  interface: z.looseObject({ displayName: z.string().min(1).optional() }).optional()
116
122
  };
117
- var pluginManifest = z.looseObject(manifestFields);
123
+ var pluginManifest = z.looseObject(manifestFields).meta({
124
+ title: "Plugin manifest",
125
+ description: "A native plugin manifest as pmcp reads it from a marketplace."
126
+ });
118
127
  var marketplaceManifest = z.looseObject({
119
128
  ...manifestFields,
120
129
  metadata: z.looseObject({
@@ -123,6 +132,9 @@ var marketplaceManifest = z.looseObject({
123
132
  version: version.optional()
124
133
  }).optional(),
125
134
  plugins: z.array(pluginManifest)
135
+ }).meta({
136
+ title: "Marketplace manifest",
137
+ description: "A native plugin marketplace manifest and the plugins it lists."
126
138
  });
127
139
  function skillDuplicationWarnings(metadata, pluginVersion) {
128
140
  const warnings = [];
@@ -157,6 +169,9 @@ var catalogV1 = skillFrontmatter.extend({
157
169
  name: kebab,
158
170
  description: z2.string().min(40),
159
171
  metadata: catalogMetadata
172
+ }).meta({
173
+ title: "Catalog skill frontmatter",
174
+ description: 'The SKILL.md frontmatter of a marketplace catalog skill: [catalog.validation] profile = "catalog-v1".'
160
175
  });
161
176
 
162
177
  // src/metadata/profiles/catalog-v1/frontmatter.ts
@@ -236,8 +251,9 @@ var libraryMetadata = skillMetadataCore.extend({
236
251
  "selected-version": z3.string().min(1).optional(),
237
252
  loading: z3.enum(["manual", "automatic"]).optional()
238
253
  });
239
- var libraryProfile = skillFrontmatter.extend({
240
- metadata: libraryMetadata.optional()
254
+ var libraryProfile = skillFrontmatter.extend({ metadata: libraryMetadata.optional() }).meta({
255
+ title: "Library skill frontmatter",
256
+ description: 'The SKILL.md frontmatter of a library skill: [catalog.validation] profile = "library".'
241
257
  });
242
258
 
243
259
  // src/validate/profile.ts
@@ -330,4 +346,4 @@ export {
330
346
  validateSkillDir,
331
347
  validateCatalog
332
348
  };
333
- //# sourceMappingURL=chunk-NZS5CD72.js.map
349
+ //# sourceMappingURL=chunk-AJ4VXM2U.js.map
@@ -1062,7 +1062,7 @@ function registerCallTool(server, tools) {
1062
1062
  "skill_call",
1063
1063
  {
1064
1064
  ...readOnlyTool("Read a skill"),
1065
- description: "The body of a single skill, by the name skill_find or skill_catalog returned, followed by the list of reference, script and asset files the skill carries, if any, as text; skill_read returns one of them and skill_bundle links them all. This is the only call that costs a document.",
1065
+ description: "The body of a single skill, by the name skill_find or skill_catalog returned, followed by the list of reference, script and asset files the skill carries, if any, as text; skill_read returns one of them and skill_bundle links them all. It loads the full instructions into context, so call it only for the one or two skills you chose.",
1066
1066
  inputSchema: z6.object({
1067
1067
  name: z6.string().min(1).describe("The skill name, as <package>/<slug>.")
1068
1068
  })
@@ -1086,7 +1086,7 @@ function registerCatalogTool(server, tools) {
1086
1086
  "skill_catalog",
1087
1087
  {
1088
1088
  ...readOnlyTool("List skills"),
1089
- description: "Every skill the installed packages and marketplaces ship, grouped by package or plugin, with names, one-line descriptions and tier, and no bodies. Paged by group. With kind it lists agents, hooks or MCP servers instead. Items list the runtimes they were verified on (verifiedRuntimes). With runtime, verified items are marked and listed first within their group but the others are kept; verifiedOnly drops the unverified ones.",
1089
+ description: "Browse the whole catalog page by page; use it when skill_find returned nothing useful or to see what exists. Every skill the installed packages and marketplaces ship, grouped by package or plugin, with names, one-line descriptions and tier, and no bodies. Paged by group. With kind it lists agents, hooks or MCP servers instead. Items list the runtimes they were verified on (verifiedRuntimes). With runtime, verified items are marked and listed first within their group but the others are kept; verifiedOnly drops the unverified ones.",
1090
1090
  inputSchema: z7.object({
1091
1091
  page: z7.number().int().min(1).optional(),
1092
1092
  pageSize: z7.number().int().min(1).max(20).optional(),
@@ -1131,7 +1131,7 @@ function registerFindTool(server, tools) {
1131
1131
  "skill_find",
1132
1132
  {
1133
1133
  ...readOnlyTool("Find skills"),
1134
- description: "Skill names ranked against an intent, with descriptions and scores, and no bodies. The ranking compares the intent with skill descriptions, so a full sentence matches better than a single keyword. Each match lists the runtimes it was verified on (verifiedRuntimes). With runtime, verified matches are marked and listed first but the others are kept; verifiedOnly drops the unverified ones. The answer's runtime is the one the ordering used, or null.",
1134
+ description: "Search the skill catalog; call this first when a task might have a skill. Describe the task in a full sentence: the ranking compares it with skill descriptions, so a sentence matches better than a keyword. Returns skill names with descriptions and scores, no bodies; then call skill_call with one returned name. Not for listing everything (use skill_catalog). Each match lists the runtimes it was verified on (verifiedRuntimes). With runtime, verified matches are marked and listed first but the others are kept; verifiedOnly drops the unverified ones. The answer's runtime is the one the ordering used, or null.",
1135
1135
  inputSchema: z9.object({
1136
1136
  intent: z9.string().min(1).max(256).describe("What the task is, as a sentence."),
1137
1137
  limit: z9.number().int().min(1).max(25).optional(),
@@ -1166,7 +1166,7 @@ function registerReadTool(server, tools) {
1166
1166
  "skill_read",
1167
1167
  {
1168
1168
  ...readOnlyTool("Read a skill file"),
1169
- description: "One file inside a skill's directory in this catalog, with its sha256 and media type: text as text, images and audio as image and audio content, other binary files as an embedded resource. path is relative to the skill, as skill_call, skill_bundle and skill_describe list it (layout: https://pmcp.build). Scripts are returned as content, never run, and no external API is called. Files over 256 KiB and paths outside the skill are refused.",
1169
+ description: "One file inside a skill's directory in this catalog, with its sha256 and media type: text as text, images and audio as image and audio content, other binary files as an embedded resource. path is relative to the skill, as skill_call, skill_bundle and skill_describe list it. Scripts are returned as content, never run, and no external API is called. Files over 256 KiB and paths outside the skill are refused.",
1170
1170
  inputSchema: z10.object({
1171
1171
  name: skillNameInput,
1172
1172
  path: z10.string().min(1).optional().describe(
@@ -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.18.0";
1193
+ var SERVER_VERSION = "0.18.2";
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-25GHX674.js.map
1246
+ //# sourceMappingURL=chunk-D77IRGHO.js.map
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  nativeBinary,
3
3
  readLock
4
- } from "./chunk-665TA55Z.js";
4
+ } from "./chunk-7HFIGCSL.js";
5
5
 
6
6
  // src/project/host.ts
7
7
  import { createHash } from "crypto";
@@ -101,4 +101,4 @@ export {
101
101
  ptyBinaryDoctor,
102
102
  hostDoctor
103
103
  };
104
- //# sourceMappingURL=chunk-4VCC2NXE.js.map
104
+ //# sourceMappingURL=chunk-DMZHQZ7P.js.map
@@ -5,7 +5,7 @@ import {
5
5
  } from "./chunk-HQOB7OQS.js";
6
6
  import {
7
7
  readStoreSettings
8
- } from "./chunk-SG5TPMKH.js";
8
+ } from "./chunk-26WLNWDG.js";
9
9
  import {
10
10
  expandPath,
11
11
  projectStateDir
@@ -152,4 +152,4 @@ export {
152
152
  tail,
153
153
  logLocation
154
154
  };
155
- //# sourceMappingURL=chunk-Q65R3XKX.js.map
155
+ //# sourceMappingURL=chunk-EAWPJHJ7.js.map
@@ -2,7 +2,7 @@ import {
2
2
  MARK,
3
3
  blockOutput,
4
4
  jsonOutput
5
- } from "./chunk-65ZHM5RH.js";
5
+ } from "./chunk-VRPMYPZU.js";
6
6
  import {
7
7
  ProjectError
8
8
  } from "./chunk-NRBQK6UX.js";
@@ -393,4 +393,4 @@ export {
393
393
  serversForTool,
394
394
  mcpOutputs
395
395
  };
396
- //# sourceMappingURL=chunk-PLX3BOOS.js.map
396
+ //# sourceMappingURL=chunk-F5QYZK7E.js.map
@@ -5,6 +5,11 @@ function unsupportedHost(platform = process.platform) {
5
5
  return "Windows is not supported yet: pmcp harness, pmcp tui and pmcp-pty run on Linux and macOS";
6
6
  return `${platform} is not supported yet: pmcp harness, pmcp tui and pmcp-pty run on Linux and macOS`;
7
7
  }
8
+ function hostVerbUnsupported(verb, platform = process.platform) {
9
+ if (platform === "linux" || verb !== "up" && verb !== "unit")
10
+ return void 0;
11
+ return `pmcp harness host ${verb} needs Linux with a user systemd manager; on macOS use pmcp tui or a harness group instead`;
12
+ }
8
13
  function unsupportedReceipt(hint) {
9
14
  return {
10
15
  schemaVersion: 1,
@@ -17,6 +22,7 @@ function unsupportedReceipt(hint) {
17
22
 
18
23
  export {
19
24
  unsupportedHost,
25
+ hostVerbUnsupported,
20
26
  unsupportedReceipt
21
27
  };
22
- //# sourceMappingURL=chunk-YMHUM7AV.js.map
28
+ //# sourceMappingURL=chunk-F5XMGOOX.js.map
@@ -3,7 +3,7 @@ import {
3
3
  } from "./chunk-7DLZC73N.js";
4
4
  import {
5
5
  readSpec
6
- } from "./chunk-65ZHM5RH.js";
6
+ } from "./chunk-VRPMYPZU.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-7BLPN3W6.js.map
31
+ //# sourceMappingURL=chunk-FENOGX3U.js.map
@@ -8,10 +8,10 @@ import {
8
8
  prepare,
9
9
  present,
10
10
  writeNative
11
- } from "./chunk-J6QLLQVL.js";
11
+ } from "./chunk-A7VF7A35.js";
12
12
  import {
13
13
  ANTIGRAVITY_MCP_PLUGIN
14
- } from "./chunk-PLX3BOOS.js";
14
+ } from "./chunk-F5QYZK7E.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-65ZHM5RH.js";
25
+ } from "./chunk-VRPMYPZU.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-665TA55Z.js";
35
+ } from "./chunk-7HFIGCSL.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-N5AQ3PP7.js.map
211
+ //# sourceMappingURL=chunk-I2ZP2PSA.js.map
@@ -19,7 +19,7 @@ import {
19
19
  } from "./chunk-T6GOWHK6.js";
20
20
  import {
21
21
  sessionsSpec
22
- } from "./chunk-BVCTKPT3.js";
22
+ } from "./chunk-LMUBBIE2.js";
23
23
  import {
24
24
  doctorSpec,
25
25
  projectSpec
@@ -61,11 +61,11 @@ var completionSpec = {
61
61
  var COMMANDS = [
62
62
  {
63
63
  ...statusSpec,
64
- load: async () => (await import("./status-XQANBVXW.js")).statusCommand
64
+ load: async () => (await import("./status-UME2L33L.js")).statusCommand
65
65
  },
66
- { ...initSpec, load: async () => (await import("./init-627KFXTG.js")).initCommand },
67
- { ...hooksSpec, load: async () => (await import("./hooks-FYE2L5RW.js")).hooksCommand },
68
- { ...serveSpec, load: async () => (await import("./serve-NBKT5BKY.js")).serveCommand },
66
+ { ...initSpec, load: async () => (await import("./init-3C2Y7BNJ.js")).initCommand },
67
+ { ...hooksSpec, load: async () => (await import("./hooks-BHTA44X7.js")).hooksCommand },
68
+ { ...serveSpec, load: async () => (await import("./serve-DQMKTFIV.js")).serveCommand },
69
69
  { ...listSpec, load: async () => (await import("./list-MCP2FXUF.js")).listCommand },
70
70
  {
71
71
  ...indexSpec,
@@ -102,22 +102,22 @@ var COMMANDS = [
102
102
  { ...syncSpec, load: async () => (await import("./install-GG7HHZK2.js")).syncCommand },
103
103
  {
104
104
  ...projectSpec,
105
- load: async () => (await import("./project-FY62G55N.js")).projectCommand
105
+ load: async () => (await import("./project-5YV5CUEG.js")).projectCommand
106
106
  },
107
107
  {
108
108
  ...doctorSpec,
109
- load: async () => (await import("./doctor-ZIOESU3N.js")).doctorCommand
109
+ load: async () => (await import("./doctor-O2E63YGO.js")).doctorCommand
110
110
  },
111
111
  {
112
112
  ...sessionsSpec,
113
- load: async () => (await import("./cli-VYCQJZ5X.js")).sessionsCommand
113
+ load: async () => (await import("./cli-MI4ZCAZ3.js")).sessionsCommand
114
114
  },
115
- { ...logsSpec, load: async () => (await import("./logs-SPB6AANY.js")).logsCommand },
116
- { ...gitSpec, load: async () => (await import("./cli-ZTCBSDW4.js")).gitCommand },
117
- { ...mcpSpec, load: async () => (await import("./mcp-2DKVU3SW.js")).mcpCommand },
115
+ { ...logsSpec, load: async () => (await import("./logs-TBUA4UWU.js")).logsCommand },
116
+ { ...gitSpec, load: async () => (await import("./cli-ZN7ZVDEZ.js")).gitCommand },
117
+ { ...mcpSpec, load: async () => (await import("./mcp-235QZN2A.js")).mcpCommand },
118
118
  {
119
119
  ...validateSpec,
120
- load: async () => (await import("./validate-5GZ5YWNA.js")).validateCommand
120
+ load: async () => (await import("./validate-IU52H2IC.js")).validateCommand
121
121
  },
122
122
  {
123
123
  ...mailboxSpec,
@@ -125,16 +125,16 @@ var COMMANDS = [
125
125
  },
126
126
  {
127
127
  ...harnessSpec,
128
- load: async () => (await import("./harness-F2XFDYXF.js")).harnessCommand
128
+ load: async () => (await import("./harness-L2KSI2ZB.js")).harnessCommand
129
129
  },
130
- { ...tuiSpec, load: async () => (await import("./tui-MWKAXE4K.js")).tuiCommand },
130
+ { ...tuiSpec, load: async () => (await import("./tui-G5LLWCSV.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-E7RRG3ZT.js")).completionCommand
137
+ load: async () => (await import("./completion-ILSRB3LW.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-UOCLRM7P.js.map
151
+ //# sourceMappingURL=chunk-IG33DXLT.js.map
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  openStore,
3
3
  readStoreSettings
4
- } from "./chunk-SG5TPMKH.js";
4
+ } from "./chunk-26WLNWDG.js";
5
5
  import {
6
6
  ArgumentError,
7
7
  one
@@ -70,4 +70,4 @@ export {
70
70
  storeFrom,
71
71
  change
72
72
  };
73
- //# sourceMappingURL=chunk-RK4PYD7L.js.map
73
+ //# sourceMappingURL=chunk-LBXO4VPG.js.map
@@ -37,7 +37,7 @@ var sessionsSpec = {
37
37
  },
38
38
  {
39
39
  name: "to",
40
- describe: "Message recipients: all, session:<id>, alias:<name>, role:<name> or desk:<path>. Repeatable.",
40
+ describe: "Message recipients: all, session:<id>, alias:<name>, role:<name> or worktree:<path> (desk:<path> also works). Repeatable.",
41
41
  placeholder: "<selector>",
42
42
  repeat: true
43
43
  },
@@ -80,4 +80,4 @@ export {
80
80
  JSON_VERBS,
81
81
  sessionsSpec
82
82
  };
83
- //# sourceMappingURL=chunk-BVCTKPT3.js.map
83
+ //# sourceMappingURL=chunk-LMUBBIE2.js.map
@@ -15,13 +15,14 @@ import {
15
15
 
16
16
  // src/sessions/mailbox/select.ts
17
17
  import { basename, resolve } from "path";
18
- var KINDS = ["session", "alias", "role", "desk"];
18
+ var KINDS = ["session", "alias", "role", "worktree", "desk"];
19
+ var isWorktree = (kind) => kind === "worktree" || kind === "desk";
19
20
  function checkSelector(selector) {
20
21
  if (selector === "all") return selector;
21
22
  const [kind, value] = splitSelector(selector);
22
23
  if (!KINDS.includes(kind) || !value)
23
24
  throw new Error(
24
- `--to ${selector}: use all, session:<id>, alias:<name>, role:<name> or desk:<path>`
25
+ `--to ${selector}: use all, session:<id>, alias:<name>, role:<name> or worktree:<path>`
25
26
  );
26
27
  return selector;
27
28
  }
@@ -32,7 +33,7 @@ function splitSelector(selector) {
32
33
  }
33
34
  function normalizeSelector(selector, cwd) {
34
35
  const [kind, value] = splitSelector(checkSelector(selector));
35
- return kind === "desk" ? `desk:${resolve(cwd, value)}` : selector;
36
+ return isWorktree(kind) ? `${kind}:${resolve(cwd, value)}` : selector;
36
37
  }
37
38
  function matches(selector, recipient) {
38
39
  if (selector === "all") return true;
@@ -41,7 +42,7 @@ function matches(selector, recipient) {
41
42
  return !!recipient.session && recipient.session.startsWith(value);
42
43
  if (kind === "alias") return recipient.alias === value;
43
44
  if (kind === "role") return (recipient.roles ?? []).includes(value);
44
- if (kind !== "desk" || !recipient.desk) return false;
45
+ if (!isWorktree(kind) || !recipient.desk) return false;
45
46
  return recipient.desk === value || basename(recipient.desk) === value;
46
47
  }
47
48
  function before(message, recipient) {
@@ -475,4 +476,4 @@ export {
475
476
  SESSION_ID,
476
477
  createFilesStore
477
478
  };
478
- //# sourceMappingURL=chunk-Z4HRRXRF.js.map
479
+ //# sourceMappingURL=chunk-LTZH5E3G.js.map
@@ -6,7 +6,7 @@ import {
6
6
  } from "./chunk-34DECPVC.js";
7
7
  import {
8
8
  ptyBinary
9
- } from "./chunk-4VCC2NXE.js";
9
+ } from "./chunk-DMZHQZ7P.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-MWFOUBFC.js.map
39
+ //# sourceMappingURL=chunk-LW4TG7EL.js.map
@@ -6,10 +6,10 @@ import {
6
6
  } from "./chunk-34DECPVC.js";
7
7
  import {
8
8
  ptyBinary
9
- } from "./chunk-4VCC2NXE.js";
9
+ } from "./chunk-DMZHQZ7P.js";
10
10
  import {
11
11
  nativeBinary
12
- } from "./chunk-665TA55Z.js";
12
+ } from "./chunk-7HFIGCSL.js";
13
13
 
14
14
  // src/tui/rust.ts
15
15
  import { spawn } from "child_process";
@@ -64,4 +64,4 @@ export {
64
64
  runTui,
65
65
  dependencies
66
66
  };
67
- //# sourceMappingURL=chunk-LAZQBMAU.js.map
67
+ //# sourceMappingURL=chunk-NLEXKE7U.js.map
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  HOST_MANIFEST,
3
3
  HOST_POLICY
4
- } from "./chunk-4VCC2NXE.js";
4
+ } from "./chunk-DMZHQZ7P.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-ZH6R642Z.js.map
102
+ //# sourceMappingURL=chunk-PKODFR5F.js.map
@@ -3,7 +3,7 @@ import {
3
3
  } from "./chunk-7DLZC73N.js";
4
4
  import {
5
5
  readSpec
6
- } from "./chunk-65ZHM5RH.js";
6
+ } from "./chunk-VRPMYPZU.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-IGYRMM62.js.map
28
+ //# sourceMappingURL=chunk-QEF7EK3T.js.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  createSkillServer
3
- } from "./chunk-25GHX674.js";
3
+ } from "./chunk-D77IRGHO.js";
4
4
  import {
5
5
  attachMailbox
6
6
  } from "./chunk-HDMBVLCZ.js";
@@ -84,4 +84,4 @@ export {
84
84
  serveWithMailbox,
85
85
  main
86
86
  };
87
- //# sourceMappingURL=chunk-MM2Y43LC.js.map
87
+ //# sourceMappingURL=chunk-RPQOBHVU.js.map
@@ -3,13 +3,13 @@ import {
3
3
  } from "./chunk-5ZABTVSW.js";
4
4
  import {
5
5
  dependencies
6
- } from "./chunk-LAZQBMAU.js";
6
+ } from "./chunk-NLEXKE7U.js";
7
7
  import {
8
8
  interactiveEntry
9
9
  } from "./chunk-LMT3PPXJ.js";
10
10
  import {
11
11
  assertNativeHost
12
- } from "./chunk-MWFOUBFC.js";
12
+ } from "./chunk-LW4TG7EL.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-3NYG4SGU.js.map
45
+ //# sourceMappingURL=chunk-TXQ7L33K.js.map
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  hostApprovalDoctor
3
- } from "./chunk-ZH6R642Z.js";
3
+ } from "./chunk-PKODFR5F.js";
4
4
  import {
5
5
  project
6
- } from "./chunk-N5AQ3PP7.js";
6
+ } from "./chunk-I2ZP2PSA.js";
7
7
  import {
8
8
  wakeableBy
9
9
  } from "./chunk-WIW772I3.js";
@@ -16,16 +16,16 @@ import {
16
16
  marketplaceDoctor,
17
17
  skillNames,
18
18
  splitFrontmatter
19
- } from "./chunk-J6QLLQVL.js";
19
+ } from "./chunk-A7VF7A35.js";
20
20
  import {
21
21
  ANTIGRAVITY_MCP_PLUGIN,
22
22
  serversForTool
23
- } from "./chunk-PLX3BOOS.js";
23
+ } from "./chunk-F5QYZK7E.js";
24
24
  import {
25
25
  permissionDoctor,
26
26
  pluginBinaryDoctor,
27
27
  uiClaudeDoctor
28
- } from "./chunk-65ZHM5RH.js";
28
+ } from "./chunk-VRPMYPZU.js";
29
29
  import {
30
30
  pathPmcp,
31
31
  pmcpCommand
@@ -33,11 +33,11 @@ import {
33
33
  import {
34
34
  createFilesStore,
35
35
  inboxKey
36
- } from "./chunk-Z4HRRXRF.js";
36
+ } from "./chunk-LTZH5E3G.js";
37
37
  import {
38
38
  hostDoctor,
39
39
  ptyBinaryDoctor
40
- } from "./chunk-4VCC2NXE.js";
40
+ } from "./chunk-DMZHQZ7P.js";
41
41
  import {
42
42
  projectStateDir
43
43
  } from "./chunk-OEH47H6A.js";
@@ -640,4 +640,4 @@ export {
640
640
  spawnRunner,
641
641
  doctor
642
642
  };
643
- //# sourceMappingURL=chunk-PWSJJXLQ.js.map
643
+ //# sourceMappingURL=chunk-VMHUEOT5.js.map
@@ -27,11 +27,11 @@ import {
27
27
  } from "./chunk-3PW4FI7U.js";
28
28
  import {
29
29
  readStoreSettings
30
- } from "./chunk-SG5TPMKH.js";
30
+ } from "./chunk-26WLNWDG.js";
31
31
  import {
32
32
  inboxKey,
33
33
  noticeOf
34
- } from "./chunk-Z4HRRXRF.js";
34
+ } from "./chunk-LTZH5E3G.js";
35
35
  import {
36
36
  STATE_FILES,
37
37
  leaseFile,
@@ -47,7 +47,7 @@ import {
47
47
  packagedBinary,
48
48
  readHost,
49
49
  readLock
50
- } from "./chunk-665TA55Z.js";
50
+ } from "./chunk-7HFIGCSL.js";
51
51
  import {
52
52
  checkoutOf,
53
53
  hasLinkedWorktrees
@@ -2649,7 +2649,7 @@ var leases = {
2649
2649
  if (!lease) continue;
2650
2650
  return {
2651
2651
  verdict: "deny",
2652
- reason: `A ${rule.path ?? rule.name} change is landing (${lease.subject}, since ${lease.since}). This command waits for it; retry when it has landed.`
2652
+ reason: `A ${rule.path ?? rule.name} change is being delivered (${lease.subject}, since ${lease.since}). This command waits for it; retry once the delivery finishes.`
2653
2653
  };
2654
2654
  }
2655
2655
  return pass;
@@ -3478,7 +3478,7 @@ function sessionWarning(input, ctx) {
3478
3478
  return [];
3479
3479
  ctx.store.registry.upsert(input.session.id, { sharedWarned: true });
3480
3480
  return [
3481
- `This session works in the shared checkout ${checkout.root}, not a desk. Keep to reading, syncing and delivering here; make changes in a desk or a scratch worktree.`
3481
+ `This session works in the shared checkout ${checkout.root}, not a linked worktree. Keep to reading, syncing and delivering here; make changes in a linked worktree (pmcp git worktree create) or a scratch worktree.`
3482
3482
  ];
3483
3483
  }
3484
3484
  function leftovers(input, ctx) {
@@ -3525,7 +3525,7 @@ function onEdit(input, ctx) {
3525
3525
  });
3526
3526
  if (!record?.sharedEditNoticed) {
3527
3527
  lines.push(
3528
- `You are editing the shared checkout ${checkout.root}, not a desk. Land this change within the task, or make it in a scratch worktree; an edit left here blocks syncing the shared main.`
3528
+ `You are editing the shared checkout ${checkout.root}, not a linked worktree. Deliver this change within the task, or make it in a linked or scratch worktree; an edit left here blocks syncing the shared main.`
3529
3529
  );
3530
3530
  }
3531
3531
  return lines;
@@ -3622,7 +3622,7 @@ function blocked2(input, ctx) {
3622
3622
  if (pause2 && pause2.by !== input.session.id)
3623
3623
  return `the workspace is paused (${pause2.reason})`;
3624
3624
  const lease = ctx.store.leases.read("lockfile");
3625
- return lease ? `a lockfile change is landing (${lease.subject})` : null;
3625
+ return lease ? `a lockfile change is being delivered (${lease.subject})` : null;
3626
3626
  }
3627
3627
  function changed(root, from, paths, to = "HEAD") {
3628
3628
  if (paths.length === 0) return [];
@@ -3648,7 +3648,7 @@ function move(input, ctx, git) {
3648
3648
  const before = gitText(git.root, ["rev-parse", "HEAD"]);
3649
3649
  if (input.event === "prompt" && changed(git.root, "HEAD", opts.installWhen, git.upstream).length > 0) {
3650
3650
  return [
3651
- `${git.upstream} changed ${opts.installWhen.join(", ")}; this desk moves at the next session start or with pmcp git worktree sync.`
3651
+ `${git.upstream} changed ${opts.installWhen.join(", ")}; this linked worktree moves at the next session start or with pmcp git worktree sync.`
3652
3652
  ];
3653
3653
  }
3654
3654
  const install = opts.install && opts.installAfterMove === "foreground" ? {
@@ -4982,4 +4982,4 @@ export {
4982
4982
  permissionDoctor,
4983
4983
  readSpec
4984
4984
  };
4985
- //# sourceMappingURL=chunk-65ZHM5RH.js.map
4985
+ //# sourceMappingURL=chunk-VRPMYPZU.js.map