You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
docs: polish README and metadata for the public repository
Add CI badge, Compatibility section (tool calls, reasoning levels,
streaming/usage, transport routing — all verified against the live
API), Troubleshooting section, and updated develop/test/file listings.
Add repository/homepage/bugs/author metadata to package.json.
Copy file name to clipboardExpand all lines: AGENTS.md
+3-2Lines changed: 3 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -29,10 +29,11 @@ Command Code (commandcode.ai) model provider plugin for OpenClaw, with three-tie
29
29
30
30
## Testing instructions
31
31
32
-
- Unit tests: `npm test` (Vitest, `test/modelMapping.test.ts`)
32
+
- Unit tests: `npm test` (Vitest, `test/modelMapping.test.ts`) — covers the projection, the dynamic model resolver, and a drift guard that compares the manifest `modelCatalog` against the baseline projection
33
33
- Discovery smoke: `node scripts/smoke.discovery.mjs` (hits the live public endpoint)
34
34
- Live inference: `node scripts/live-test.mjs` (reads the key from `~/.openclaw/secrets/providers.json`, never prints it)
35
-
- Baseline refresh: `node scripts/generate-baseline.mjs` (rewrites `src/baseline.models.ts`**and** the `modelCatalog` block of `openclaw.plugin.json` from the same projection as `projectModel` in `index.ts` — keep the two in sync)
35
+
- Baseline refresh: `node scripts/generate-baseline.mjs` (rewrites `src/baseline.models.ts`**and** the `modelCatalog` block of `openclaw.plugin.json` from the same projection as `projectModel` in `index.ts` — keep the two in sync), then `npm run build` to refresh `dist/`
36
+
- CI also fails when the committed `dist/` does not match a fresh build — always rebuild before committing source changes
36
37
- Add tests for every new behavior; all tests must pass before opening a PR
0 commit comments