@modootoday/pmcp 0.18.2 → 0.18.4

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 (108) 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/CONTRIBUTING.md +10 -1
  6. package/README.md +22 -20
  7. package/dist/{apply-JUTGS5WZ.js → apply-75UWIUVQ.js} +12 -11
  8. package/dist/{available-DBSIVVJ6.js → available-GFMTJW4E.js} +3 -3
  9. package/dist/{chunk-I2ZP2PSA.js → chunk-3CA3NNVH.js} +5 -5
  10. package/dist/{chunk-VRPMYPZU.js → chunk-45Y3KZ3Q.js} +22 -2
  11. package/dist/{chunk-KMXRRSKT.js → chunk-4CRRLDDS.js} +1 -1
  12. package/dist/{chunk-LW4TG7EL.js → chunk-4JUSGIMX.js} +2 -2
  13. package/dist/{chunk-TXQ7L33K.js → chunk-6UXJ62XJ.js} +3 -3
  14. package/dist/{chunk-T3LKX23M.js → chunk-7B6IC3F7.js} +3 -3
  15. package/dist/{chunk-D77IRGHO.js → chunk-ARA4VDHD.js} +5 -5
  16. package/dist/{chunk-QEF7EK3T.js → chunk-DAR6RGRN.js} +2 -2
  17. package/dist/{chunk-BBTBJCFA.js → chunk-F5WBMUOT.js} +2 -2
  18. package/dist/{chunk-7HFIGCSL.js → chunk-FBIDDE3N.js} +19 -7
  19. package/dist/{chunk-NLEXKE7U.js → chunk-HE2C2S5A.js} +3 -3
  20. package/dist/{chunk-5QQWS4US.js → chunk-HEBCQTOD.js} +2 -2
  21. package/dist/{chunk-AJ4VXM2U.js → chunk-HEWZ6INU.js} +2 -2
  22. package/dist/{chunk-MPSQXSC6.js → chunk-ISZOLR3D.js} +5 -3
  23. package/dist/{chunk-TVL5RTE6.js → chunk-ITDJ2EXN.js} +11 -1
  24. package/dist/{chunk-PAX3QXX2.js → chunk-J5ZS7GLA.js} +2 -2
  25. package/dist/chunk-J6KL3COD.js +34 -0
  26. package/dist/{chunk-CJTKR6K6.js → chunk-JZK7ZO7K.js} +2 -2
  27. package/dist/{chunk-A7VF7A35.js → chunk-LFR245MZ.js} +5 -5
  28. package/dist/{chunk-7UCZAN4J.js → chunk-LGO2SZAS.js} +3 -3
  29. package/dist/{chunk-DMZHQZ7P.js → chunk-MSOZPOPX.js} +25 -3
  30. package/dist/chunk-MZCRCMEY.js +7 -0
  31. package/dist/{chunk-7GBYECSK.js → chunk-NLHLA2N5.js} +3 -3
  32. package/dist/{chunk-HDMBVLCZ.js → chunk-NWOV2E26.js} +2 -2
  33. package/dist/{chunk-RPQOBHVU.js → chunk-OB3P5RMN.js} +3 -3
  34. package/dist/{chunk-IG33DXLT.js → chunk-QBJC4DRP.js} +18 -18
  35. package/dist/{chunk-47O3X4VS.js → chunk-QRCAGKC6.js} +1 -1
  36. package/dist/{chunk-F5QYZK7E.js → chunk-R26RWSFW.js} +2 -2
  37. package/dist/{chunk-3IDXEV5E.js → chunk-TFRJ5QOS.js} +67 -17
  38. package/dist/{chunk-FENOGX3U.js → chunk-VQ2HEGWH.js} +2 -2
  39. package/dist/{chunk-2FIV63WC.js → chunk-XMXBE5IQ.js} +6 -6
  40. package/dist/{chunk-TNCZ6444.js → chunk-Y2XASHVY.js} +2 -2
  41. package/dist/{chunk-PKODFR5F.js → chunk-YRGDWUFY.js} +2 -2
  42. package/dist/{chunk-VMHUEOT5.js → chunk-YSUINA5Q.js} +9 -7
  43. package/dist/{chunk-3FCFAQDG.js → chunk-ZWLUH3F2.js} +2 -2
  44. package/dist/cli.js +3 -3
  45. package/dist/{completion-ILSRB3LW.js → completion-WYJAKJE4.js} +2 -2
  46. package/dist/{diagnostics-XKXVVQWH.js → diagnostics-ADIVFSBW.js} +7 -6
  47. package/dist/{doctor-O2E63YGO.js → doctor-BBCS4DF5.js} +12 -11
  48. package/dist/{entry-X6CSYQRQ.js → entry-DMOTX4SS.js} +13 -12
  49. package/dist/{exec-mcp-2PMWBPD7.js → exec-mcp-OBUM3DVW.js} +7 -6
  50. package/dist/{harness-L2KSI2ZB.js → harness-6AUE3I4Q.js} +4 -4
  51. package/dist/harness-launch-gate.js +6 -5
  52. package/dist/harness-pane-runner.js +2 -1
  53. package/dist/harness-worker.js +8 -7
  54. package/dist/{hooks-BHTA44X7.js → hooks-HLPQPVRY.js} +3 -3
  55. package/dist/{host-UWK754BW.js → host-5Q3X6OY7.js} +9 -8
  56. package/dist/{host-UIZAXXQH.js → host-LGSWU3PJ.js} +8 -7
  57. package/dist/{host-run-BI2OTZDZ.js → host-run-4NMQQASQ.js} +23 -10
  58. package/dist/http.js +5 -5
  59. package/dist/{import-mcp-GPKJI7DI.js → import-mcp-WU7TO2RT.js} +5 -4
  60. package/dist/index.d.ts +5 -1
  61. package/dist/index.js +17 -16
  62. package/dist/{init-3C2Y7BNJ.js → init-XA6XXLGA.js} +2 -2
  63. package/dist/{install-GG7HHZK2.js → install-MQ7QSJQ7.js} +3 -3
  64. package/dist/invoke-CYQZYU5T.js +24 -0
  65. package/dist/{list-MCP2FXUF.js → list-FB6RNYYB.js} +3 -3
  66. package/dist/{list-WL6L4J5H.js → list-FNGXY5D7.js} +7 -6
  67. package/dist/{logout-F5EJ5MOU.js → logout-N753FBZP.js} +6 -5
  68. package/dist/mailbox/index.js +4 -4
  69. package/dist/{mailbox-GDJ7BWQN.js → mailbox-5DWLH4W2.js} +3 -3
  70. package/dist/{mcp-FJ2UQ4RH.js → mcp-AXHV547W.js} +5 -5
  71. package/dist/{mcp-235QZN2A.js → mcp-GR4VXKTG.js} +2 -2
  72. package/dist/{project-5YV5CUEG.js → project-OEBACWEX.js} +4 -4
  73. package/dist/{recovery-U6QB3PMT.js → recovery-54KHNJX4.js} +4 -3
  74. package/dist/{reindex-Y27QJFDB.js → reindex-ZULHSQWY.js} +5 -5
  75. package/dist/{run-3SOVRQIA.js → run-7XNGPU2I.js} +4 -4
  76. package/dist/{run-3AXTZSR7.js → run-MDRUOEFL.js} +5 -4
  77. package/dist/{serve-DQMKTFIV.js → serve-HXHNWKEK.js} +12 -12
  78. package/dist/{start-login-YTZV6KMF.js → start-login-PWCEKNED.js} +6 -5
  79. package/dist/{status-MROQ7WR7.js → status-54IYX2FN.js} +6 -5
  80. package/dist/{status-UME2L33L.js → status-QFOBQ42J.js} +9 -8
  81. package/dist/stdio.js +7 -7
  82. package/dist/{test-AGZOJLRZ.js → test-36ZUVALT.js} +6 -5
  83. package/dist/{tui-G5LLWCSV.js → tui-CSRW4DN2.js} +5 -5
  84. package/dist/{validate-IU52H2IC.js → validate-AVM2VHMM.js} +4 -4
  85. package/dist/{worker-QZ5T6LJD.js → worker-EODWT4KK.js} +11 -10
  86. package/docs/compatibility.md +2 -1
  87. package/docs/known-issues.md +17 -0
  88. package/docs/project-configuration.md +8 -0
  89. package/docs/terminal-harness.md +14 -0
  90. package/docs/upgrading.md +23 -0
  91. package/gemini-extension.json +2 -2
  92. package/mcp.json +1 -1
  93. package/package.json +5 -6
  94. package/plugin.json +1 -1
  95. package/plugins/pmcp/.claude-plugin/plugin.json +1 -1
  96. package/plugins/pmcp/.mcp.json +1 -1
  97. package/plugins/pmcp/gemini-extension.json +2 -2
  98. package/plugins/pmcp/mcp.json +1 -1
  99. package/plugins/pmcp/plugin.json +1 -1
  100. package/plugins/pmcp/skills/agent-assets-migrate/SKILL.md +8 -8
  101. package/plugins/pmcp/skills/marketplace-plugin-scaffold/SKILL.md +10 -8
  102. package/plugins/pmcp/skills/skill-package-scaffold/SKILL.md +12 -12
  103. package/skills/agent-assets-migrate/SKILL.md +8 -8
  104. package/skills/marketplace-plugin-scaffold/SKILL.md +10 -8
  105. package/skills/skill-package-scaffold/SKILL.md +12 -12
  106. package/CHANGELOG.md +0 -152
  107. package/dist/chunk-65KAQSJP.js +0 -7
  108. package/dist/invoke-44CJRVMK.js +0 -23
@@ -612,7 +612,7 @@
612
612
  },
613
613
  {
614
614
  "name": "pmcp",
615
- "version": "0.18.2",
615
+ "version": "0.18.4",
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.18.2",
448
+ "version": "0.18.4",
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.18.2",
3
+ "version": "0.18.4",
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.18.2", "serve"]
6
+ "args": ["-y", "@modootoday/pmcp@0.18.4", "serve"]
7
7
  }
8
8
  }
9
9
  }
package/CONTRIBUTING.md CHANGED
@@ -67,5 +67,14 @@ Edit the source, then regenerate; the checks fail on a generated file edited by
67
67
 
68
68
  ## Commits and releases
69
69
 
70
- Commit messages describe the change for a reader of the public history. Releases follow
70
+ Release notes are generated from commit subjects, so each subject is a line a user reads:
71
+
72
+ - `type(scope)!: summary`, with type `feat`, `fix`, `docs`, `ci`, `chore`, `test`,
73
+ `refactor`, `perf`, `build` or `style`; the scope is optional.
74
+ - Mark a breaking change with `!` and a `BREAKING CHANGE: <what users must do>` footer, and
75
+ add the steps to `docs/upgrading.md`.
76
+ - Say what changed for the user, not how the code changed. One logical change per commit:
77
+ one commit is one line in the notes.
78
+
79
+ Releases follow
71
80
  [RELEASING.md](https://github.com/modootoday/pmcp/blob/main/.github/RELEASING.md).
package/README.md CHANGED
@@ -131,26 +131,28 @@ code.
131
131
 
132
132
  ## Documentation
133
133
 
134
- | Page | For |
135
- | -------------------------------------------------------- | ----------------------------------------------------------- |
136
- | [Getting started](docs/getting-started.md) | connecting a tool and finding skills |
137
- | [pmcp.toml reference](docs/project-configuration.md) | every `pmcp.toml` table with its keys and defaults |
138
- | [Hooks](docs/hooks.md) | guards and checks, and which runtime supports what |
139
- | [Git workflow](docs/git-workflow.md) | linked worktrees, delivery and sync |
140
- | [Browser and desktop](docs/browser-and-desktop.md) | pmcp-browser and pmcp-desktop for agents |
141
- | [Library skills](docs/library-skills.md) | free library instructions as plugins, npm packages or files |
142
- | [Run several agents](docs/sessions.md) | sessions, messages, leases, worktrees and delivery |
143
- | [Skills and MCP reference](docs/skills.md) | skill layouts, tools, resources and the marketplace |
144
- | [Terminal workspace](docs/terminal-workspace.md) | the `pmcp tui` workspace |
145
- | [Native terminal control](docs/terminal-harness.md) | harness groups, control, recovery and `[host]` |
146
- | [Embedding models](docs/embeddings.md) | semantic search with a local model |
147
- | [Local mailbox](docs/mailbox.md) | messages between actors with their own credentials |
148
- | [HTTP hosting](docs/hosting.md) | serving a catalog from your application |
149
- | [Command reference](docs/commands.md) | commands, flags and exit codes |
150
- | [Compatibility](docs/compatibility.md) | platforms, runtimes and qualification |
151
- | [Glossary](docs/glossary.md) | the terms these pages use |
152
- | [Changelog](CHANGELOG.md) | what changed, and how to upgrade |
153
- | [Contributing](CONTRIBUTING.md), [Security](SECURITY.md) | working on pmcp, reporting a vulnerability |
134
+ | Page | For |
135
+ | ------------------------------------------------------------ | ----------------------------------------------------------- |
136
+ | [Getting started](docs/getting-started.md) | connecting a tool and finding skills |
137
+ | [pmcp.toml reference](docs/project-configuration.md) | every `pmcp.toml` table with its keys and defaults |
138
+ | [Hooks](docs/hooks.md) | guards and checks, and which runtime supports what |
139
+ | [Git workflow](docs/git-workflow.md) | linked worktrees, delivery and sync |
140
+ | [Browser and desktop](docs/browser-and-desktop.md) | pmcp-browser and pmcp-desktop for agents |
141
+ | [Library skills](docs/library-skills.md) | free library instructions as plugins, npm packages or files |
142
+ | [Run several agents](docs/sessions.md) | sessions, messages, leases, worktrees and delivery |
143
+ | [Skills and MCP reference](docs/skills.md) | skill layouts, tools, resources and the marketplace |
144
+ | [Terminal workspace](docs/terminal-workspace.md) | the `pmcp tui` workspace |
145
+ | [Native terminal control](docs/terminal-harness.md) | harness groups, control, recovery and `[host]` |
146
+ | [Embedding models](docs/embeddings.md) | semantic search with a local model |
147
+ | [Local mailbox](docs/mailbox.md) | messages between actors with their own credentials |
148
+ | [HTTP hosting](docs/hosting.md) | serving a catalog from your application |
149
+ | [Command reference](docs/commands.md) | commands, flags and exit codes |
150
+ | [Compatibility](docs/compatibility.md) | platforms, runtimes and qualification |
151
+ | [Glossary](docs/glossary.md) | the terms these pages use |
152
+ | [Release notes](https://github.com/modootoday/pmcp/releases) | what changed in each release |
153
+ | [Upgrading](docs/upgrading.md) | what to do when a release changes something you rely on |
154
+ | [Known issues](docs/known-issues.md) | what the current release does not do yet |
155
+ | [Contributing](CONTRIBUTING.md), [Security](SECURITY.md) | working on pmcp, reporting a vulnerability |
154
156
 
155
157
  ## Licence
156
158
 
@@ -1,22 +1,22 @@
1
1
  import {
2
2
  specFrom
3
- } from "./chunk-FENOGX3U.js";
3
+ } from "./chunk-VQ2HEGWH.js";
4
4
  import {
5
5
  catalogFrom
6
- } from "./chunk-5QQWS4US.js";
6
+ } from "./chunk-HEBCQTOD.js";
7
7
  import "./chunk-7DLZC73N.js";
8
8
  import {
9
9
  project
10
- } from "./chunk-I2ZP2PSA.js";
10
+ } from "./chunk-3CA3NNVH.js";
11
11
  import "./chunk-P4N7DBD5.js";
12
12
  import {
13
13
  renderFrontmatter,
14
14
  splitFrontmatter
15
- } from "./chunk-A7VF7A35.js";
16
- import "./chunk-F5QYZK7E.js";
15
+ } from "./chunk-LFR245MZ.js";
16
+ import "./chunk-R26RWSFW.js";
17
17
  import {
18
18
  RUNTIMES
19
- } from "./chunk-VRPMYPZU.js";
19
+ } from "./chunk-45Y3KZ3Q.js";
20
20
  import "./chunk-HQOB7OQS.js";
21
21
  import "./chunk-S3PIAMXV.js";
22
22
  import "./chunk-JS5RTH4I.js";
@@ -39,17 +39,18 @@ import "./chunk-A4PKLESO.js";
39
39
  import "./chunk-V4NPDK6X.js";
40
40
  import {
41
41
  kindOf
42
- } from "./chunk-KMXRRSKT.js";
42
+ } from "./chunk-4CRRLDDS.js";
43
43
  import "./chunk-YSAWTGNA.js";
44
- import "./chunk-DMZHQZ7P.js";
44
+ import "./chunk-MSOZPOPX.js";
45
45
  import {
46
46
  recordProjector
47
- } from "./chunk-7HFIGCSL.js";
47
+ } from "./chunk-FBIDDE3N.js";
48
48
  import "./chunk-OEH47H6A.js";
49
49
  import "./chunk-IJBSOWHK.js";
50
- import "./chunk-65KAQSJP.js";
50
+ import "./chunk-MZCRCMEY.js";
51
51
  import "./chunk-QPL7E2HW.js";
52
52
  import "./chunk-PMJG2CXF.js";
53
+ import "./chunk-J6KL3COD.js";
53
54
 
54
55
  // src/project/edit.ts
55
56
  import {
@@ -239,4 +240,4 @@ export {
239
240
  projectOrCheck,
240
241
  removeAndProject
241
242
  };
242
- //# sourceMappingURL=apply-JUTGS5WZ.js.map
243
+ //# sourceMappingURL=apply-75UWIUVQ.js.map
@@ -4,7 +4,7 @@ import {
4
4
  import {
5
5
  matchingSkills,
6
6
  readInstalledDependencies
7
- } from "./chunk-BBTBJCFA.js";
7
+ } from "./chunk-F5WBMUOT.js";
8
8
  import {
9
9
  invocation
10
10
  } from "./chunk-J7UYNJCR.js";
@@ -20,7 +20,7 @@ import {
20
20
  import {
21
21
  ArgumentError
22
22
  } from "./chunk-A4PKLESO.js";
23
- import "./chunk-KMXRRSKT.js";
23
+ import "./chunk-4CRRLDDS.js";
24
24
  import "./chunk-YSAWTGNA.js";
25
25
 
26
26
  // src/commands/available.ts
@@ -70,4 +70,4 @@ var availableCommand = {
70
70
  export {
71
71
  availableCommand
72
72
  };
73
- //# sourceMappingURL=available-DBSIVVJ6.js.map
73
+ //# sourceMappingURL=available-GFMTJW4E.js.map
@@ -8,10 +8,10 @@ import {
8
8
  prepare,
9
9
  present,
10
10
  writeNative
11
- } from "./chunk-A7VF7A35.js";
11
+ } from "./chunk-LFR245MZ.js";
12
12
  import {
13
13
  ANTIGRAVITY_MCP_PLUGIN
14
- } from "./chunk-F5QYZK7E.js";
14
+ } from "./chunk-R26RWSFW.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-VRPMYPZU.js";
25
+ } from "./chunk-45Y3KZ3Q.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-7HFIGCSL.js";
35
+ } from "./chunk-FBIDDE3N.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-I2ZP2PSA.js.map
211
+ //# sourceMappingURL=chunk-3CA3NNVH.js.map
@@ -47,7 +47,7 @@ import {
47
47
  packagedBinary,
48
48
  readHost,
49
49
  readLock
50
- } from "./chunk-7HFIGCSL.js";
50
+ } from "./chunk-FBIDDE3N.js";
51
51
  import {
52
52
  checkoutOf,
53
53
  hasLinkedWorktrees
@@ -56,6 +56,9 @@ import {
56
56
  ConfigError,
57
57
  readMarketplaces
58
58
  } from "./chunk-QPL7E2HW.js";
59
+ import {
60
+ envNames
61
+ } from "./chunk-J6KL3COD.js";
59
62
 
60
63
  // src/hooks/contract.ts
61
64
  var RUNTIME_IDS = [
@@ -4852,6 +4855,21 @@ function named(path, where, name) {
4852
4855
  }
4853
4856
  return name;
4854
4857
  }
4858
+ function readHarness(path, raw) {
4859
+ if (raw === void 0) return void 0;
4860
+ if (raw === null || typeof raw !== "object" || Array.isArray(raw))
4861
+ throw new ConfigError(path, "[harness] must be a table");
4862
+ for (const key of Object.keys(raw))
4863
+ if (key !== "env")
4864
+ throw new ConfigError(path, `[harness] unknown key ${key}`);
4865
+ try {
4866
+ return {
4867
+ env: envNames(raw["env"], "[harness] env")
4868
+ };
4869
+ } catch (error) {
4870
+ throw new ConfigError(path, error.message);
4871
+ }
4872
+ }
4855
4873
  function readSpec(config) {
4856
4874
  const path = config.path;
4857
4875
  const raw = config.raw;
@@ -4925,6 +4943,7 @@ function readSpec(config) {
4925
4943
  const uiClaude = readUiClaude(path, raw["ui"], sessionHooks);
4926
4944
  const permissions = readPermissions(path, raw["permissions"]);
4927
4945
  const host = readHost(path, raw["host"]);
4946
+ const harness = readHarness(path, raw["harness"]);
4928
4947
  return {
4929
4948
  root: config.dir,
4930
4949
  tools,
@@ -4936,6 +4955,7 @@ function readSpec(config) {
4936
4955
  ...uiClaude ? { uiClaude } : {},
4937
4956
  ...permissions ? { permissions } : {},
4938
4957
  ...host ? { host } : {},
4958
+ ...harness ? { harness } : {},
4939
4959
  ...hooks.legacy.length > 0 ? { hooks: hooks.legacy } : {},
4940
4960
  ...hooks.bundle ? { hookBundle: hooks.bundle } : {},
4941
4961
  ...hooks.deprecations.length > 0 ? { deprecations: hooks.deprecations } : {},
@@ -4982,4 +5002,4 @@ export {
4982
5002
  permissionDoctor,
4983
5003
  readSpec
4984
5004
  };
4985
- //# sourceMappingURL=chunk-VRPMYPZU.js.map
5005
+ //# sourceMappingURL=chunk-45Y3KZ3Q.js.map
@@ -657,4 +657,4 @@ export {
657
657
  withoutBody,
658
658
  displayPath
659
659
  };
660
- //# sourceMappingURL=chunk-KMXRRSKT.js.map
660
+ //# sourceMappingURL=chunk-4CRRLDDS.js.map
@@ -6,7 +6,7 @@ import {
6
6
  } from "./chunk-34DECPVC.js";
7
7
  import {
8
8
  ptyBinary
9
- } from "./chunk-DMZHQZ7P.js";
9
+ } from "./chunk-MSOZPOPX.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-LW4TG7EL.js.map
39
+ //# sourceMappingURL=chunk-4JUSGIMX.js.map
@@ -3,13 +3,13 @@ import {
3
3
  } from "./chunk-5ZABTVSW.js";
4
4
  import {
5
5
  dependencies
6
- } from "./chunk-NLEXKE7U.js";
6
+ } from "./chunk-HE2C2S5A.js";
7
7
  import {
8
8
  interactiveEntry
9
9
  } from "./chunk-LMT3PPXJ.js";
10
10
  import {
11
11
  assertNativeHost
12
- } from "./chunk-LW4TG7EL.js";
12
+ } from "./chunk-4JUSGIMX.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-TXQ7L33K.js.map
45
+ //# sourceMappingURL=chunk-6UXJ62XJ.js.map
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  catalogFrom,
3
3
  rootsFrom
4
- } from "./chunk-5QQWS4US.js";
4
+ } from "./chunk-HEBCQTOD.js";
5
5
  import {
6
6
  configFrom
7
7
  } from "./chunk-7DLZC73N.js";
@@ -16,7 +16,7 @@ import {
16
16
  import {
17
17
  loadEmbedder,
18
18
  openEntryVectors
19
- } from "./chunk-MPSQXSC6.js";
19
+ } from "./chunk-ISZOLR3D.js";
20
20
  import {
21
21
  resolveEncoder
22
22
  } from "./chunk-PMJG2CXF.js";
@@ -165,4 +165,4 @@ export {
165
165
  indexPath,
166
166
  indexCommand
167
167
  };
168
- //# sourceMappingURL=chunk-T3LKX23M.js.map
168
+ //# sourceMappingURL=chunk-7B6IC3F7.js.map
@@ -11,15 +11,15 @@ import {
11
11
  readFrontmatterText,
12
12
  specProblems,
13
13
  withoutBody
14
- } from "./chunk-KMXRRSKT.js";
14
+ } from "./chunk-4CRRLDDS.js";
15
15
  import {
16
16
  registerMailboxTools
17
- } from "./chunk-TNCZ6444.js";
17
+ } from "./chunk-Y2XASHVY.js";
18
18
  import {
19
19
  RUNTIMES,
20
20
  detectRuntime,
21
21
  verifiedRuntimesOf
22
- } from "./chunk-47O3X4VS.js";
22
+ } from "./chunk-QRCAGKC6.js";
23
23
 
24
24
  // src/find.ts
25
25
  import { createHash } from "crypto";
@@ -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.2";
1193
+ var SERVER_VERSION = "0.18.4";
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-D77IRGHO.js.map
1246
+ //# sourceMappingURL=chunk-ARA4VDHD.js.map
@@ -3,7 +3,7 @@ import {
3
3
  } from "./chunk-7DLZC73N.js";
4
4
  import {
5
5
  readSpec
6
- } from "./chunk-VRPMYPZU.js";
6
+ } from "./chunk-45Y3KZ3Q.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-QEF7EK3T.js.map
28
+ //# sourceMappingURL=chunk-DAR6RGRN.js.map
@@ -2,7 +2,7 @@ import {
2
2
  expandBraces,
3
3
  globDirs,
4
4
  workspacePackageDirs
5
- } from "./chunk-KMXRRSKT.js";
5
+ } from "./chunk-4CRRLDDS.js";
6
6
 
7
7
  // src/installed.ts
8
8
  import { existsSync, readFileSync } from "fs";
@@ -377,4 +377,4 @@ export {
377
377
  matchingSkills,
378
378
  planInstall
379
379
  };
380
- //# sourceMappingURL=chunk-BBTBJCFA.js.map
380
+ //# sourceMappingURL=chunk-F5WBMUOT.js.map
@@ -3,10 +3,13 @@ import {
3
3
  } from "./chunk-OEH47H6A.js";
4
4
  import {
5
5
  VERSION
6
- } from "./chunk-65KAQSJP.js";
6
+ } from "./chunk-MZCRCMEY.js";
7
7
  import {
8
8
  ConfigError
9
9
  } from "./chunk-QPL7E2HW.js";
10
+ import {
11
+ envNames
12
+ } from "./chunk-J6KL3COD.js";
10
13
 
11
14
  // src/project/projector.ts
12
15
  import { existsSync, mkdirSync, readFileSync, realpathSync } from "fs";
@@ -340,7 +343,8 @@ function session(path, i, value, roots) {
340
343
  "argv",
341
344
  "labels",
342
345
  "restart",
343
- "max_restarts"
346
+ "max_restarts",
347
+ "env"
344
348
  ]);
345
349
  const name = text(path, `${where} name`, t["name"]);
346
350
  if (!NAME2.test(name))
@@ -364,9 +368,17 @@ function session(path, i, value, roots) {
364
368
  argv,
365
369
  labels: labels(path, `${where} labels`, t["labels"]),
366
370
  restart,
367
- maxRestarts: max
371
+ maxRestarts: max,
372
+ env: names(path, `${where} env`, t["env"])
368
373
  };
369
374
  }
375
+ function names(path, where, value) {
376
+ try {
377
+ return envNames(value, where);
378
+ } catch (error) {
379
+ return fail2(path, error.message);
380
+ }
381
+ }
370
382
  function readHost(path, raw) {
371
383
  if (raw === void 0) return void 0;
372
384
  const root = table2(path, "[host]", raw);
@@ -392,11 +404,11 @@ function readHost(path, raw) {
392
404
  return value;
393
405
  };
394
406
  const sessions = list("sessions").map((s, i) => session(path, i, s, roots));
395
- const names = /* @__PURE__ */ new Set();
407
+ const names2 = /* @__PURE__ */ new Set();
396
408
  for (const s of sessions) {
397
- if (names.has(s.name))
409
+ if (names2.has(s.name))
398
410
  fail2(path, `[[host.sessions]] name ${s.name} is used twice`);
399
- names.add(s.name);
411
+ names2.add(s.name);
400
412
  }
401
413
  const answers = list("answers").map((a, i) => answer(path, i, a));
402
414
  const browser = readHostBrowser(path, root["browser"]);
@@ -416,4 +428,4 @@ export {
416
428
  writeLock,
417
429
  readHost
418
430
  };
419
- //# sourceMappingURL=chunk-7HFIGCSL.js.map
431
+ //# sourceMappingURL=chunk-FBIDDE3N.js.map
@@ -6,10 +6,10 @@ import {
6
6
  } from "./chunk-34DECPVC.js";
7
7
  import {
8
8
  ptyBinary
9
- } from "./chunk-DMZHQZ7P.js";
9
+ } from "./chunk-MSOZPOPX.js";
10
10
  import {
11
11
  nativeBinary
12
- } from "./chunk-7HFIGCSL.js";
12
+ } from "./chunk-FBIDDE3N.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-NLEXKE7U.js.map
67
+ //# sourceMappingURL=chunk-HE2C2S5A.js.map
@@ -9,7 +9,7 @@ import {
9
9
  } from "./chunk-A4PKLESO.js";
10
10
  import {
11
11
  readCatalog
12
- } from "./chunk-KMXRRSKT.js";
12
+ } from "./chunk-4CRRLDDS.js";
13
13
 
14
14
  // src/commands/roots.ts
15
15
  function rootsFrom(context) {
@@ -50,4 +50,4 @@ export {
50
50
  catalogOptionsFrom,
51
51
  catalogFrom
52
52
  };
53
- //# sourceMappingURL=chunk-5QQWS4US.js.map
53
+ //# sourceMappingURL=chunk-HEBCQTOD.js.map
@@ -3,7 +3,7 @@ import {
3
3
  frontmatterObject,
4
4
  readCatalog,
5
5
  specProblems
6
- } from "./chunk-KMXRRSKT.js";
6
+ } from "./chunk-4CRRLDDS.js";
7
7
 
8
8
  // src/validate.ts
9
9
  import { existsSync as existsSync3, readFileSync as readFileSync3, statSync as statSync2 } from "fs";
@@ -346,4 +346,4 @@ export {
346
346
  validateSkillDir,
347
347
  validateCatalog
348
348
  };
349
- //# sourceMappingURL=chunk-AJ4VXM2U.js.map
349
+ //# sourceMappingURL=chunk-HEWZ6INU.js.map
@@ -317,12 +317,14 @@ async function openEntryVectors(path, options = {}) {
317
317
  return out;
318
318
  },
319
319
  write(modelId, name, description, vector) {
320
- db.prepare(`INSERT INTO entry_vector (name, model_id, dims, description_hash, vector)
320
+ db.prepare(
321
+ `INSERT INTO entry_vector (name, model_id, dims, description_hash, vector)
321
322
  VALUES (?, ?, ?, ?, ?)
322
323
  ON CONFLICT(name, model_id) DO UPDATE SET
323
324
  dims = excluded.dims,
324
325
  description_hash = excluded.description_hash,
325
- vector = excluded.vector`).run(
326
+ vector = excluded.vector`
327
+ ).run(
326
328
  name,
327
329
  modelId,
328
330
  vector.length,
@@ -343,4 +345,4 @@ export {
343
345
  encodeEntries,
344
346
  openEntryVectors
345
347
  };
346
- //# sourceMappingURL=chunk-MPSQXSC6.js.map
348
+ //# sourceMappingURL=chunk-ISZOLR3D.js.map
@@ -8,6 +8,9 @@ import {
8
8
  import {
9
9
  runtimeExecutables
10
10
  } from "./chunk-BU65MNVU.js";
11
+ import {
12
+ envNames
13
+ } from "./chunk-J6KL3COD.js";
11
14
 
12
15
  // src/harness/groups/store.ts
13
16
  import { randomUUID } from "crypto";
@@ -162,6 +165,13 @@ function validateState(value) {
162
165
  member(group.state, ["ready", "paused", "stopped"]);
163
166
  integer(group.memoryMb, "memory_budget", 128, 4096);
164
167
  integer(group.maxActive, "max_active", 1, 5);
168
+ if (group.env !== void 0) {
169
+ try {
170
+ envNames(group.env, "env");
171
+ } catch {
172
+ throw new Error("invalid_env_names");
173
+ }
174
+ }
165
175
  const sessions = records(group.sessions);
166
176
  for (const session of sessions) {
167
177
  id(session.id, "session_id");
@@ -266,4 +276,4 @@ export {
266
276
  readPrivateJson,
267
277
  GroupStore
268
278
  };
269
- //# sourceMappingURL=chunk-TVL5RTE6.js.map
279
+ //# sourceMappingURL=chunk-ITDJ2EXN.js.map
@@ -9,7 +9,7 @@ import {
9
9
  import {
10
10
  privateJson,
11
11
  readPrivateJson
12
- } from "./chunk-TVL5RTE6.js";
12
+ } from "./chunk-ITDJ2EXN.js";
13
13
  import {
14
14
  object,
15
15
  text
@@ -137,4 +137,4 @@ export {
137
137
  readStartup,
138
138
  saveStartup
139
139
  };
140
- //# sourceMappingURL=chunk-PAX3QXX2.js.map
140
+ //# sourceMappingURL=chunk-J5ZS7GLA.js.map
@@ -0,0 +1,34 @@
1
+ // src/native/env-names.ts
2
+ var NAME = /^[A-Z_][A-Z0-9_]{0,127}$/u;
3
+ var RESERVED = ["PMCP_PTY_SOCKET", "PMCP_PTY_SESSION", "PMCP_PTY_INSTANCE"];
4
+ function envNames(value, where) {
5
+ if (value === void 0) return [];
6
+ if (!Array.isArray(value))
7
+ throw new Error(`${where} must be a list of environment variable names`);
8
+ const names = value.map((name, i) => {
9
+ if (typeof name !== "string" || !NAME.test(name))
10
+ throw new Error(
11
+ `${where}[${i}] must be an environment variable name (A-Z, 0-9, _)`
12
+ );
13
+ if (RESERVED.includes(name))
14
+ throw new Error(`${where}[${i}] ${name} is set by pmcp-pty itself`);
15
+ return name;
16
+ });
17
+ return [...new Set(names)];
18
+ }
19
+ function pickEnv(names, env) {
20
+ const values = {};
21
+ const missing = [];
22
+ for (const name of names) {
23
+ const value = env[name];
24
+ if (value === void 0 || value === "") missing.push(name);
25
+ else values[name] = value;
26
+ }
27
+ return { values, missing };
28
+ }
29
+
30
+ export {
31
+ envNames,
32
+ pickEnv
33
+ };
34
+ //# sourceMappingURL=chunk-J6KL3COD.js.map
@@ -9,7 +9,7 @@ import {
9
9
  runtimeSchema,
10
10
  sendSchema,
11
11
  sessionsSchema
12
- } from "./chunk-47O3X4VS.js";
12
+ } from "./chunk-QRCAGKC6.js";
13
13
  import {
14
14
  openSqlite
15
15
  } from "./chunk-6STKGOCW.js";
@@ -1210,4 +1210,4 @@ export {
1210
1210
  restoreBackup,
1211
1211
  MailboxService
1212
1212
  };
1213
- //# sourceMappingURL=chunk-CJTKR6K6.js.map
1213
+ //# sourceMappingURL=chunk-JZK7ZO7K.js.map