@agentchatme/openclaw 0.6.3 → 0.6.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/CHANGELOG.md +67 -0
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/{setup-entry-Cr6cKgzq.d.cts → setup-entry-BfMtQopR.d.cts} +12 -3
- package/dist/{setup-entry-Cr6cKgzq.d.ts → setup-entry-BfMtQopR.d.ts} +12 -3
- package/dist/setup-entry.cjs +1 -1
- package/dist/setup-entry.cjs.map +1 -1
- package/dist/setup-entry.d.cts +1 -1
- package/dist/setup-entry.d.ts +1 -1
- package/dist/setup-entry.js +1 -1
- package/dist/setup-entry.js.map +1 -1
- package/openclaw.plugin.json +1 -9
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,73 @@ All notable changes to `@agentchatme/openclaw` are documented here.
|
|
|
5
5
|
The format follows [Keep a Changelog](https://keepachangelog.com/en/1.1.0/);
|
|
6
6
|
this package adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
7
7
|
|
|
8
|
+
## 0.6.4 — 2026-04-27
|
|
9
|
+
|
|
10
|
+
### Fix: `openclaw plugins install` failed at the persist step with `must have required property 'apiKey'`
|
|
11
|
+
|
|
12
|
+
After 0.6.3 unblocked the `npm install` phase, the next step in OpenClaw's
|
|
13
|
+
install pipeline — `persistPluginInstall`, which writes the plugin entry
|
|
14
|
+
into `~/.openclaw/openclaw.json` — failed with:
|
|
15
|
+
|
|
16
|
+
```
|
|
17
|
+
[plugins] agentchat invalid config: apiKey: must have required property 'apiKey',
|
|
18
|
+
reconnect: must have required property 'reconnect', ping: ..., outbound: ...,
|
|
19
|
+
observability: must have required property 'observability'
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
OpenClaw's manifest validator runs JSON Schema validation on the persisted
|
|
23
|
+
config block at install time, **before** the setup wizard runs. The
|
|
24
|
+
emitted `openclaw.plugin.json#configSchema` had `required: ['apiBase',
|
|
25
|
+
'apiKey', 'reconnect', 'ping', 'outbound', 'observability']`, so the empty
|
|
26
|
+
config that ships with a fresh install was rejected outright. The plugin's
|
|
27
|
+
files landed on disk, but the entry was never registered, leaving the
|
|
28
|
+
install in a half-completed state.
|
|
29
|
+
|
|
30
|
+
The schema described the **fully-configured** shape, which is correct for
|
|
31
|
+
runtime ("apiKey is required to actually authenticate"), but is wrong for
|
|
32
|
+
install-time ("nothing is required yet — the wizard is about to run").
|
|
33
|
+
Two layers were doing the same job at the wrong time. The configured-state
|
|
34
|
+
predicate (`hasAgentChatConfiguredState`) already exists and gates the
|
|
35
|
+
runtime correctly: it returns `false` until both `apiKey` (≥ 20 chars) and
|
|
36
|
+
`agentHandle` are populated. OpenClaw uses that gate to decide whether to
|
|
37
|
+
start the channel runtime. The schema just needed to step out of the
|
|
38
|
+
install-time validation path.
|
|
39
|
+
|
|
40
|
+
**Changed:**
|
|
41
|
+
|
|
42
|
+
- `scripts/emit-manifest-schema.mjs` — post-process now drops the top-
|
|
43
|
+
level `required` array from `openclaw.plugin.json#configSchema` after
|
|
44
|
+
the runtime schema is emitted. Every individual property still keeps
|
|
45
|
+
its type, format, regex, and bounds — so a value supplied at the wrong
|
|
46
|
+
type still fails validation. Only the **presence** check at the top
|
|
47
|
+
level is removed. The Zod schema in `src/config-schema.ts` stays
|
|
48
|
+
strict (apiKey + nested groups required) because the runtime parser
|
|
49
|
+
is only called after `resolveAgentchatAccount` has confirmed the
|
|
50
|
+
config is non-empty; the empty install-time case bypasses Zod
|
|
51
|
+
entirely. We deliberately do NOT push `default: {}` onto the nested-
|
|
52
|
+
object subschemas because JSON Schema validators differ on whether
|
|
53
|
+
they descend into a defaulted object and revalidate its inner
|
|
54
|
+
`required` array — a permissive validator that auto-fills
|
|
55
|
+
`reconnect: {}` and then fails on the inner `required` would
|
|
56
|
+
reintroduce the install-time blocker.
|
|
57
|
+
- `tests/plugin.test.ts#manifest sync` — updated to mirror the new
|
|
58
|
+
transform (drop `required` from the expected manifest derivation) and
|
|
59
|
+
added a positive regression test that asserts
|
|
60
|
+
`manifest.configSchema.required` is `undefined`. A future commit that
|
|
61
|
+
reintroduces a top-level required array fails this test before
|
|
62
|
+
publish.
|
|
63
|
+
|
|
64
|
+
**Why no Zod change:**
|
|
65
|
+
|
|
66
|
+
The runtime parser (`parseChannelConfig`) is gated in
|
|
67
|
+
`resolveAgentchatAccount` — it's only called when the persisted config
|
|
68
|
+
section has at least one key. An empty install-time config block never
|
|
69
|
+
reaches Zod, so the runtime schema can stay strict without blocking
|
|
70
|
+
install. Once the setup wizard fills in `apiKey` (and optionally
|
|
71
|
+
`agentHandle`), the now-non-empty config block passes through Zod with
|
|
72
|
+
all the type, format, and bounds checks intact, the configured-state
|
|
73
|
+
predicate flips to `true`, and the runtime starts.
|
|
74
|
+
|
|
8
75
|
## 0.6.3 — 2026-04-27
|
|
9
76
|
|
|
10
77
|
### Fix: `openclaw plugins install` failed with `EUNSUPPORTEDPROTOCOL` on ClawHub source-linked builds
|