@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.
- package/.agents/plugins/marketplace.json +1 -1
- package/.claude-plugin/marketplace.json +1 -1
- package/.claude-plugin/plugin.json +1 -1
- package/.mcp.json +1 -1
- package/CONTRIBUTING.md +10 -1
- package/README.md +22 -20
- package/dist/{apply-JUTGS5WZ.js → apply-75UWIUVQ.js} +12 -11
- package/dist/{available-DBSIVVJ6.js → available-GFMTJW4E.js} +3 -3
- package/dist/{chunk-I2ZP2PSA.js → chunk-3CA3NNVH.js} +5 -5
- package/dist/{chunk-VRPMYPZU.js → chunk-45Y3KZ3Q.js} +22 -2
- package/dist/{chunk-KMXRRSKT.js → chunk-4CRRLDDS.js} +1 -1
- package/dist/{chunk-LW4TG7EL.js → chunk-4JUSGIMX.js} +2 -2
- package/dist/{chunk-TXQ7L33K.js → chunk-6UXJ62XJ.js} +3 -3
- package/dist/{chunk-T3LKX23M.js → chunk-7B6IC3F7.js} +3 -3
- package/dist/{chunk-D77IRGHO.js → chunk-ARA4VDHD.js} +5 -5
- package/dist/{chunk-QEF7EK3T.js → chunk-DAR6RGRN.js} +2 -2
- package/dist/{chunk-BBTBJCFA.js → chunk-F5WBMUOT.js} +2 -2
- package/dist/{chunk-7HFIGCSL.js → chunk-FBIDDE3N.js} +19 -7
- package/dist/{chunk-NLEXKE7U.js → chunk-HE2C2S5A.js} +3 -3
- package/dist/{chunk-5QQWS4US.js → chunk-HEBCQTOD.js} +2 -2
- package/dist/{chunk-AJ4VXM2U.js → chunk-HEWZ6INU.js} +2 -2
- package/dist/{chunk-MPSQXSC6.js → chunk-ISZOLR3D.js} +5 -3
- package/dist/{chunk-TVL5RTE6.js → chunk-ITDJ2EXN.js} +11 -1
- package/dist/{chunk-PAX3QXX2.js → chunk-J5ZS7GLA.js} +2 -2
- package/dist/chunk-J6KL3COD.js +34 -0
- package/dist/{chunk-CJTKR6K6.js → chunk-JZK7ZO7K.js} +2 -2
- package/dist/{chunk-A7VF7A35.js → chunk-LFR245MZ.js} +5 -5
- package/dist/{chunk-7UCZAN4J.js → chunk-LGO2SZAS.js} +3 -3
- package/dist/{chunk-DMZHQZ7P.js → chunk-MSOZPOPX.js} +25 -3
- package/dist/chunk-MZCRCMEY.js +7 -0
- package/dist/{chunk-7GBYECSK.js → chunk-NLHLA2N5.js} +3 -3
- package/dist/{chunk-HDMBVLCZ.js → chunk-NWOV2E26.js} +2 -2
- package/dist/{chunk-RPQOBHVU.js → chunk-OB3P5RMN.js} +3 -3
- package/dist/{chunk-IG33DXLT.js → chunk-QBJC4DRP.js} +18 -18
- package/dist/{chunk-47O3X4VS.js → chunk-QRCAGKC6.js} +1 -1
- package/dist/{chunk-F5QYZK7E.js → chunk-R26RWSFW.js} +2 -2
- package/dist/{chunk-3IDXEV5E.js → chunk-TFRJ5QOS.js} +67 -17
- package/dist/{chunk-FENOGX3U.js → chunk-VQ2HEGWH.js} +2 -2
- package/dist/{chunk-2FIV63WC.js → chunk-XMXBE5IQ.js} +6 -6
- package/dist/{chunk-TNCZ6444.js → chunk-Y2XASHVY.js} +2 -2
- package/dist/{chunk-PKODFR5F.js → chunk-YRGDWUFY.js} +2 -2
- package/dist/{chunk-VMHUEOT5.js → chunk-YSUINA5Q.js} +9 -7
- package/dist/{chunk-3FCFAQDG.js → chunk-ZWLUH3F2.js} +2 -2
- package/dist/cli.js +3 -3
- package/dist/{completion-ILSRB3LW.js → completion-WYJAKJE4.js} +2 -2
- package/dist/{diagnostics-XKXVVQWH.js → diagnostics-ADIVFSBW.js} +7 -6
- package/dist/{doctor-O2E63YGO.js → doctor-BBCS4DF5.js} +12 -11
- package/dist/{entry-X6CSYQRQ.js → entry-DMOTX4SS.js} +13 -12
- package/dist/{exec-mcp-2PMWBPD7.js → exec-mcp-OBUM3DVW.js} +7 -6
- package/dist/{harness-L2KSI2ZB.js → harness-6AUE3I4Q.js} +4 -4
- package/dist/harness-launch-gate.js +6 -5
- package/dist/harness-pane-runner.js +2 -1
- package/dist/harness-worker.js +8 -7
- package/dist/{hooks-BHTA44X7.js → hooks-HLPQPVRY.js} +3 -3
- package/dist/{host-UWK754BW.js → host-5Q3X6OY7.js} +9 -8
- package/dist/{host-UIZAXXQH.js → host-LGSWU3PJ.js} +8 -7
- package/dist/{host-run-BI2OTZDZ.js → host-run-4NMQQASQ.js} +23 -10
- package/dist/http.js +5 -5
- package/dist/{import-mcp-GPKJI7DI.js → import-mcp-WU7TO2RT.js} +5 -4
- package/dist/index.d.ts +5 -1
- package/dist/index.js +17 -16
- package/dist/{init-3C2Y7BNJ.js → init-XA6XXLGA.js} +2 -2
- package/dist/{install-GG7HHZK2.js → install-MQ7QSJQ7.js} +3 -3
- package/dist/invoke-CYQZYU5T.js +24 -0
- package/dist/{list-MCP2FXUF.js → list-FB6RNYYB.js} +3 -3
- package/dist/{list-WL6L4J5H.js → list-FNGXY5D7.js} +7 -6
- package/dist/{logout-F5EJ5MOU.js → logout-N753FBZP.js} +6 -5
- package/dist/mailbox/index.js +4 -4
- package/dist/{mailbox-GDJ7BWQN.js → mailbox-5DWLH4W2.js} +3 -3
- package/dist/{mcp-FJ2UQ4RH.js → mcp-AXHV547W.js} +5 -5
- package/dist/{mcp-235QZN2A.js → mcp-GR4VXKTG.js} +2 -2
- package/dist/{project-5YV5CUEG.js → project-OEBACWEX.js} +4 -4
- package/dist/{recovery-U6QB3PMT.js → recovery-54KHNJX4.js} +4 -3
- package/dist/{reindex-Y27QJFDB.js → reindex-ZULHSQWY.js} +5 -5
- package/dist/{run-3SOVRQIA.js → run-7XNGPU2I.js} +4 -4
- package/dist/{run-3AXTZSR7.js → run-MDRUOEFL.js} +5 -4
- package/dist/{serve-DQMKTFIV.js → serve-HXHNWKEK.js} +12 -12
- package/dist/{start-login-YTZV6KMF.js → start-login-PWCEKNED.js} +6 -5
- package/dist/{status-MROQ7WR7.js → status-54IYX2FN.js} +6 -5
- package/dist/{status-UME2L33L.js → status-QFOBQ42J.js} +9 -8
- package/dist/stdio.js +7 -7
- package/dist/{test-AGZOJLRZ.js → test-36ZUVALT.js} +6 -5
- package/dist/{tui-G5LLWCSV.js → tui-CSRW4DN2.js} +5 -5
- package/dist/{validate-IU52H2IC.js → validate-AVM2VHMM.js} +4 -4
- package/dist/{worker-QZ5T6LJD.js → worker-EODWT4KK.js} +11 -10
- package/docs/compatibility.md +2 -1
- package/docs/known-issues.md +17 -0
- package/docs/project-configuration.md +8 -0
- package/docs/terminal-harness.md +14 -0
- package/docs/upgrading.md +23 -0
- package/gemini-extension.json +2 -2
- package/mcp.json +1 -1
- package/package.json +5 -6
- package/plugin.json +1 -1
- package/plugins/pmcp/.claude-plugin/plugin.json +1 -1
- package/plugins/pmcp/.mcp.json +1 -1
- package/plugins/pmcp/gemini-extension.json +2 -2
- package/plugins/pmcp/mcp.json +1 -1
- package/plugins/pmcp/plugin.json +1 -1
- package/plugins/pmcp/skills/agent-assets-migrate/SKILL.md +8 -8
- package/plugins/pmcp/skills/marketplace-plugin-scaffold/SKILL.md +10 -8
- package/plugins/pmcp/skills/skill-package-scaffold/SKILL.md +12 -12
- package/skills/agent-assets-migrate/SKILL.md +8 -8
- package/skills/marketplace-plugin-scaffold/SKILL.md +10 -8
- package/skills/skill-package-scaffold/SKILL.md +12 -12
- package/CHANGELOG.md +0 -152
- package/dist/chunk-65KAQSJP.js +0 -7
- package/dist/invoke-44CJRVMK.js +0 -23
|
@@ -612,7 +612,7 @@
|
|
|
612
612
|
},
|
|
613
613
|
{
|
|
614
614
|
"name": "pmcp",
|
|
615
|
-
"version": "0.18.
|
|
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" },
|
package/.mcp.json
CHANGED
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
|
-
|
|
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
|
|
135
|
-
|
|
|
136
|
-
| [Getting started](docs/getting-started.md)
|
|
137
|
-
| [pmcp.toml reference](docs/project-configuration.md)
|
|
138
|
-
| [Hooks](docs/hooks.md)
|
|
139
|
-
| [Git workflow](docs/git-workflow.md)
|
|
140
|
-
| [Browser and desktop](docs/browser-and-desktop.md)
|
|
141
|
-
| [Library skills](docs/library-skills.md)
|
|
142
|
-
| [Run several agents](docs/sessions.md)
|
|
143
|
-
| [Skills and MCP reference](docs/skills.md)
|
|
144
|
-
| [Terminal workspace](docs/terminal-workspace.md)
|
|
145
|
-
| [Native terminal control](docs/terminal-harness.md)
|
|
146
|
-
| [Embedding models](docs/embeddings.md)
|
|
147
|
-
| [Local mailbox](docs/mailbox.md)
|
|
148
|
-
| [HTTP hosting](docs/hosting.md)
|
|
149
|
-
| [Command reference](docs/commands.md)
|
|
150
|
-
| [Compatibility](docs/compatibility.md)
|
|
151
|
-
| [Glossary](docs/glossary.md)
|
|
152
|
-
| [
|
|
153
|
-
| [
|
|
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-
|
|
3
|
+
} from "./chunk-VQ2HEGWH.js";
|
|
4
4
|
import {
|
|
5
5
|
catalogFrom
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-HEBCQTOD.js";
|
|
7
7
|
import "./chunk-7DLZC73N.js";
|
|
8
8
|
import {
|
|
9
9
|
project
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-3CA3NNVH.js";
|
|
11
11
|
import "./chunk-P4N7DBD5.js";
|
|
12
12
|
import {
|
|
13
13
|
renderFrontmatter,
|
|
14
14
|
splitFrontmatter
|
|
15
|
-
} from "./chunk-
|
|
16
|
-
import "./chunk-
|
|
15
|
+
} from "./chunk-LFR245MZ.js";
|
|
16
|
+
import "./chunk-R26RWSFW.js";
|
|
17
17
|
import {
|
|
18
18
|
RUNTIMES
|
|
19
|
-
} from "./chunk-
|
|
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-
|
|
42
|
+
} from "./chunk-4CRRLDDS.js";
|
|
43
43
|
import "./chunk-YSAWTGNA.js";
|
|
44
|
-
import "./chunk-
|
|
44
|
+
import "./chunk-MSOZPOPX.js";
|
|
45
45
|
import {
|
|
46
46
|
recordProjector
|
|
47
|
-
} from "./chunk-
|
|
47
|
+
} from "./chunk-FBIDDE3N.js";
|
|
48
48
|
import "./chunk-OEH47H6A.js";
|
|
49
49
|
import "./chunk-IJBSOWHK.js";
|
|
50
|
-
import "./chunk-
|
|
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-
|
|
243
|
+
//# sourceMappingURL=apply-75UWIUVQ.js.map
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
import {
|
|
5
5
|
matchingSkills,
|
|
6
6
|
readInstalledDependencies
|
|
7
|
-
} from "./chunk-
|
|
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-
|
|
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-
|
|
73
|
+
//# sourceMappingURL=available-GFMTJW4E.js.map
|
|
@@ -8,10 +8,10 @@ import {
|
|
|
8
8
|
prepare,
|
|
9
9
|
present,
|
|
10
10
|
writeNative
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-LFR245MZ.js";
|
|
12
12
|
import {
|
|
13
13
|
ANTIGRAVITY_MCP_PLUGIN
|
|
14
|
-
} from "./chunk-
|
|
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-
|
|
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-
|
|
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-
|
|
211
|
+
//# sourceMappingURL=chunk-3CA3NNVH.js.map
|
|
@@ -47,7 +47,7 @@ import {
|
|
|
47
47
|
packagedBinary,
|
|
48
48
|
readHost,
|
|
49
49
|
readLock
|
|
50
|
-
} from "./chunk-
|
|
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-
|
|
5005
|
+
//# sourceMappingURL=chunk-45Y3KZ3Q.js.map
|
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
} from "./chunk-34DECPVC.js";
|
|
7
7
|
import {
|
|
8
8
|
ptyBinary
|
|
9
|
-
} from "./chunk-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
45
|
+
//# sourceMappingURL=chunk-6UXJ62XJ.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
catalogFrom,
|
|
3
3
|
rootsFrom
|
|
4
|
-
} from "./chunk-
|
|
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-
|
|
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-
|
|
168
|
+
//# sourceMappingURL=chunk-7B6IC3F7.js.map
|
|
@@ -11,15 +11,15 @@ import {
|
|
|
11
11
|
readFrontmatterText,
|
|
12
12
|
specProblems,
|
|
13
13
|
withoutBody
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-4CRRLDDS.js";
|
|
15
15
|
import {
|
|
16
16
|
registerMailboxTools
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-Y2XASHVY.js";
|
|
18
18
|
import {
|
|
19
19
|
RUNTIMES,
|
|
20
20
|
detectRuntime,
|
|
21
21
|
verifiedRuntimesOf
|
|
22
|
-
} from "./chunk-
|
|
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.
|
|
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-
|
|
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-
|
|
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-
|
|
28
|
+
//# sourceMappingURL=chunk-DAR6RGRN.js.map
|
|
@@ -2,7 +2,7 @@ import {
|
|
|
2
2
|
expandBraces,
|
|
3
3
|
globDirs,
|
|
4
4
|
workspacePackageDirs
|
|
5
|
-
} from "./chunk-
|
|
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-
|
|
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-
|
|
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
|
|
407
|
+
const names2 = /* @__PURE__ */ new Set();
|
|
396
408
|
for (const s of sessions) {
|
|
397
|
-
if (
|
|
409
|
+
if (names2.has(s.name))
|
|
398
410
|
fail2(path, `[[host.sessions]] name ${s.name} is used twice`);
|
|
399
|
-
|
|
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-
|
|
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-
|
|
9
|
+
} from "./chunk-MSOZPOPX.js";
|
|
10
10
|
import {
|
|
11
11
|
nativeBinary
|
|
12
|
-
} from "./chunk-
|
|
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-
|
|
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-
|
|
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-
|
|
53
|
+
//# sourceMappingURL=chunk-HEBCQTOD.js.map
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
frontmatterObject,
|
|
4
4
|
readCatalog,
|
|
5
5
|
specProblems
|
|
6
|
-
} from "./chunk-
|
|
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-
|
|
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(
|
|
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`
|
|
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-
|
|
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-
|
|
279
|
+
//# sourceMappingURL=chunk-ITDJ2EXN.js.map
|
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
import {
|
|
10
10
|
privateJson,
|
|
11
11
|
readPrivateJson
|
|
12
|
-
} from "./chunk-
|
|
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-
|
|
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-
|
|
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-
|
|
1213
|
+
//# sourceMappingURL=chunk-JZK7ZO7K.js.map
|