coze_lab 0.1.35 → 0.1.37
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/README.md +5 -5
- package/index.js +115 -4733
- package/package.json +1 -1
- package/scripts/claude-code/cozeloop_hook.py +116 -5
- package/scripts/codex/cozeloop_hook.py +122 -5
- package/scripts/openclaw/dist/cozeloop-exporter.js +172 -7
- package/scripts/openclaw/openclaw.plugin.json +1 -1
- package/scripts/openclaw/package.json +1 -1
- package/scripts/shared/cozeloop_refresh.py +1 -3
package/README.md
CHANGED
|
@@ -8,8 +8,8 @@ Configure local AI agents (Claude Code, Codex, OpenClaw) to report traces to Coz
|
|
|
8
8
|
# First-time setup — triggers browser OAuth authorization
|
|
9
9
|
npx coze_lab --agent=<type>
|
|
10
10
|
|
|
11
|
-
#
|
|
12
|
-
npx coze_lab --
|
|
11
|
+
# Per-agent setup. Cloud/local is inferred from coze-bridge config.
|
|
12
|
+
npx coze_lab --agent-id=<agentId>
|
|
13
13
|
|
|
14
14
|
# Auth-only commands (no agent configuration)
|
|
15
15
|
npx coze_lab --login # Device Code login only
|
|
@@ -23,8 +23,8 @@ npx coze_lab --logout # Clear cached credentials
|
|
|
23
23
|
| Parameter | Required | Values / Effect |
|
|
24
24
|
|-----------|----------|-----------------|
|
|
25
25
|
| `--agent` | ✓ (for setup) | `claude-code`, `codex`, `openclaw` |
|
|
26
|
-
| `--agent-id` | — | Resolve `~/.coze/agents/<agentId>/config.json` and write per-agent config |
|
|
27
|
-
| `--cloud` | — |
|
|
26
|
+
| `--agent-id` | — | Resolve `~/.coze/agents/<agentId>/config.json` and write per-agent config. `deployType=cloud` enables cloud mode automatically |
|
|
27
|
+
| `--cloud` | — | Backward-compatible override for old callers. New callers should rely on `--agent-id` + config `deployType` |
|
|
28
28
|
| `--codex-home` | — | Override Codex config home for non-cloud/custom runs |
|
|
29
29
|
| `--login` | — | Run the Device Code login flow only |
|
|
30
30
|
| `--status` | — | Print local token status (valid / expiring / expired) |
|
|
@@ -56,7 +56,7 @@ npx coze_lab --logout # Clear cached credentials
|
|
|
56
56
|
| `codex` | `~/.codex/hooks/cozeloop_hook.py` | `~/.codex/hooks.json` | `~/.codex/hooks/cozeloop.env` |
|
|
57
57
|
| `openclaw` | — (Node.js plugin) | `~/.openclaw/openclaw.json` | inline in config |
|
|
58
58
|
|
|
59
|
-
For cloud Codex with `--
|
|
59
|
+
For cloud Codex with `--agent-id=<agentId>` and config `deployType=cloud`, Codex hooks are written to
|
|
60
60
|
`~/.coze/agents/<agentId>/codex-home` by default. The directory is created if it
|
|
61
61
|
does not already exist, so callers do not need to pass `--codex-home` for the
|
|
62
62
|
standard coze-bridge layout.
|