agent-control-plane-core 0.2.17 → 0.3.0
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/package.json +12 -1
- package/src/index.mjs +7 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "agent-control-plane-core",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.3.0",
|
|
4
4
|
"description": "Vendor-neutral control-plane contract for coding agents: a normalized ToolCallEvent/Verdict schema with per-agent adapters (Claude Code, Codex, Amp, Gemini CLI) and a conformance suite.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"repository": {
|
|
@@ -15,6 +15,13 @@
|
|
|
15
15
|
"engines": {
|
|
16
16
|
"node": ">=20"
|
|
17
17
|
},
|
|
18
|
+
"devEngines": {
|
|
19
|
+
"runtime": {
|
|
20
|
+
"name": "node",
|
|
21
|
+
"version": ">=22.15",
|
|
22
|
+
"onFail": "error"
|
|
23
|
+
}
|
|
24
|
+
},
|
|
18
25
|
"main": "./src/index.mjs",
|
|
19
26
|
"types": "./types/index.d.mts",
|
|
20
27
|
"exports": {
|
|
@@ -22,6 +29,10 @@
|
|
|
22
29
|
"types": "./types/index.d.mts",
|
|
23
30
|
"import": "./src/index.mjs"
|
|
24
31
|
},
|
|
32
|
+
"./contract": {
|
|
33
|
+
"types": "./types/control-plane.d.mts",
|
|
34
|
+
"import": "./src/control-plane.mjs"
|
|
35
|
+
},
|
|
25
36
|
"./claude": {
|
|
26
37
|
"types": "./types/adapters/claude.d.mts",
|
|
27
38
|
"import": "./src/adapters/claude.mjs"
|
package/src/index.mjs
CHANGED
|
@@ -8,6 +8,13 @@
|
|
|
8
8
|
* `agent-control-plane-core/claude`, `/codex`, `/amp`, `/gemini`, and the
|
|
9
9
|
* harness at `/conformance`. The agent-id → adapter registry (the SSOT a
|
|
10
10
|
* host/dispatcher selects from) is at `/registry`.
|
|
11
|
+
*
|
|
12
|
+
* A consumer that needs only the contract — {@link Decision},
|
|
13
|
+
* {@link EventKind} and the event/verdict helpers — imports `/contract`
|
|
14
|
+
* instead of this barrel. This barrel re-exports every adapter, the registry
|
|
15
|
+
* and the conformance harness, so it costs 31 ms of import work against the
|
|
16
|
+
* contract module's 9 ms. That is paid per PROCESS, and a guardrail hook is one
|
|
17
|
+
* process per tool call.
|
|
11
18
|
*/
|
|
12
19
|
|
|
13
20
|
export * from "./control-plane.mjs";
|