openclaw-zero-agency 1.0.0 → 1.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +9 -2
- package/dist/tools.js +7 -2
- package/package.json +1 -1
- package/LICENSE +0 -21
- package/README.md +0 -50
package/dist/index.js
CHANGED
|
@@ -138,11 +138,18 @@ export default definePluginEntry({
|
|
|
138
138
|
const reg = await loadRegistry(registryPath);
|
|
139
139
|
candidates = (reg.capabilities ?? [])
|
|
140
140
|
.map((c) => ({ c, ...score(c, q) }))
|
|
141
|
-
.filter((x) => x.score > 0)
|
|
141
|
+
.filter((x) => x.score > 0 && (x.c.status ?? 'draft') === 'live')
|
|
142
142
|
.sort((a, b) => b.score - a.score)
|
|
143
143
|
.slice(0, params.limit ?? 3)
|
|
144
144
|
.map((x) => ({ id: x.c.id, pack: x.c.pack, score: Number(x.score.toFixed(2)), triggers: x.hits }));
|
|
145
|
-
|
|
145
|
+
const drafts = (reg.capabilities ?? [])
|
|
146
|
+
.filter((c) => (c.status ?? 'draft') !== 'live')
|
|
147
|
+
.filter((c) => score(c, q).score > 0);
|
|
148
|
+
note = candidates.length
|
|
149
|
+
? `load ${candidates[0].pack} before acting`
|
|
150
|
+
: drafts.length
|
|
151
|
+
? `no live capability matched; ${drafts.length} draft pack(s) matched but are unpublished: ${drafts.map((c) => c.id).join(", ")}`
|
|
152
|
+
: "no capability matched; if this action is consequential, stop and ask";
|
|
146
153
|
}
|
|
147
154
|
catch (e) {
|
|
148
155
|
note = `registry unavailable: ${e?.message ?? "unknown"}`;
|
package/dist/tools.js
CHANGED
|
@@ -87,13 +87,18 @@ export default defineToolPlugin({
|
|
|
87
87
|
const reg = await loadRegistry(config.registryPath);
|
|
88
88
|
candidates = (reg.capabilities ?? [])
|
|
89
89
|
.map((c) => ({ c, ...score(c, q) }))
|
|
90
|
-
.filter((x) => x.score > 0)
|
|
90
|
+
.filter((x) => x.score > 0 && (x.c.status ?? 'draft') === 'live')
|
|
91
91
|
.sort((a, b) => b.score - a.score)
|
|
92
92
|
.slice(0, limit)
|
|
93
93
|
.map((x) => ({ id: x.c.id, pack: x.c.pack, score: Number(x.score.toFixed(2)), triggers: x.hits }));
|
|
94
|
+
const drafts = (reg.capabilities ?? [])
|
|
95
|
+
.filter((c) => (c.status ?? 'draft') !== 'live')
|
|
96
|
+
.filter((c) => score(c, q).score > 0);
|
|
94
97
|
note = candidates.length
|
|
95
98
|
? `load ${candidates[0].pack} before acting`
|
|
96
|
-
:
|
|
99
|
+
: drafts.length
|
|
100
|
+
? `no live capability matched; ${drafts.length} draft pack(s) matched but are unpublished: ${drafts.map((c) => c.id).join(", ")}`
|
|
101
|
+
: "no capability matched; if this action is consequential, stop and ask";
|
|
97
102
|
}
|
|
98
103
|
catch (e) {
|
|
99
104
|
note = `registry unavailable: ${e?.message ?? "unknown"}`;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "openclaw-zero-agency",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.1",
|
|
4
4
|
"description": "Capability routing for OpenClaw agents: distilled packs, a compiled registry, and routing telemetry. Packs inform judgement; they never confer authority.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
package/LICENSE
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
MIT License
|
|
2
|
-
|
|
3
|
-
Copyright (c) 2026 Apurva Sukant
|
|
4
|
-
|
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
-
in the Software without restriction, including without limitation the rights
|
|
8
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
-
furnished to do so, subject to the following conditions:
|
|
11
|
-
|
|
12
|
-
The above copyright notice and this permission notice shall be included in all
|
|
13
|
-
copies or substantial portions of the Software.
|
|
14
|
-
|
|
15
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
-
SOFTWARE.
|
package/README.md
DELETED
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
# openclaw-zero-agency
|
|
2
|
-
|
|
3
|
-
Capability routing for OpenClaw agents.
|
|
4
|
-
|
|
5
|
-
**Packs inform judgement; they never confer authority.**
|
|
6
|
-
|
|
7
|
-
## What this does
|
|
8
|
-
|
|
9
|
-
- `zero_agency_route` — match a task to a distilled capability pack and return the pack path
|
|
10
|
-
- `zero_agency_status` — registry state: capability count, token total
|
|
11
|
-
- Routing telemetry — one JSONL line per decision, for measuring routing quality
|
|
12
|
-
|
|
13
|
-
It does **not** enforce tool permissions. Enforcement belongs to OpenClaw's tool policy and exec approval configuration, which are evaluated by the platform, not by a plugin.
|
|
14
|
-
|
|
15
|
-
## Install
|
|
16
|
-
|
|
17
|
-
```bash
|
|
18
|
-
openclaw plugins install openclaw-zero-agency
|
|
19
|
-
```
|
|
20
|
-
|
|
21
|
-
## Configure
|
|
22
|
-
|
|
23
|
-
```json
|
|
24
|
-
{
|
|
25
|
-
"plugins": {
|
|
26
|
-
"entries": {
|
|
27
|
-
"zero-agency": {
|
|
28
|
-
"config": {
|
|
29
|
-
"registryPath": "/opt/zero-agency/registry/capabilities.json",
|
|
30
|
-
"telemetryPath": "/var/log/zero-agency/events.jsonl"
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
```
|
|
37
|
-
|
|
38
|
-
`registryPath` is required and must point at a compiled `capabilities.json`.
|
|
39
|
-
|
|
40
|
-
## The receipt gate is experimental and off by default
|
|
41
|
-
|
|
42
|
-
`gateMode` exists (`off` | `advisory` | `enforce`) but **`enforce` does not work in the current plugin host**. The `before_tool_call` hook and a tool's `execute` run in separate contexts that share neither memory, run id, nor filesystem — verified across four releases. In `enforce`, every gated call raises an approval prompt because no receipt can ever match.
|
|
43
|
-
|
|
44
|
-
Leave it `off`. The routing layer is independent of it and is fully functional.
|
|
45
|
-
|
|
46
|
-
## Provenance
|
|
47
|
-
|
|
48
|
-
Packs are distilled from pinned upstream sources. Every capability records its source files and commit SHA in frontmatter; the registry is compiled, never hand-edited.
|
|
49
|
-
|
|
50
|
-
Requires `openclaw >= 2026.10.1`.
|