openclaw-code-agent 3.0.0 → 3.1.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.
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "id": "openclaw-code-agent",
3
3
  "name": "OpenClaw Code Agent",
4
- "description": "Orchestrate coding agent sessions from OpenClaw",
5
- "version": "2.3.1",
4
+ "description": "Multi-session coding-agent orchestration from OpenClaw chat",
5
+ "version": "3.1.0",
6
6
  "configSchema": {
7
7
  "type": "object",
8
8
  "additionalProperties": false,
@@ -20,8 +20,7 @@
20
20
  "allowedModels": [
21
21
  "gpt-5.4"
22
22
  ],
23
- "reasoningEffort": "medium",
24
- "approvalPolicy": "on-request"
23
+ "reasoningEffort": "medium"
25
24
  },
26
25
  "claude-code": {
27
26
  "defaultModel": "sonnet",
@@ -54,14 +53,6 @@
54
53
  "high"
55
54
  ],
56
55
  "description": "Harness-specific reasoning effort. Currently used by Codex."
57
- },
58
- "approvalPolicy": {
59
- "type": "string",
60
- "enum": [
61
- "never",
62
- "on-request"
63
- ],
64
- "description": "Harness-specific approval policy. Currently used by Codex."
65
56
  }
66
57
  }
67
58
  }
@@ -104,7 +95,7 @@
104
95
  },
105
96
  "fallbackChannel": {
106
97
  "type": "string",
107
- "description": "Fallback notification channel (e.g. 'telegram|123456789')"
98
+ "description": "Fallback notification channel. Prefer a fully routable value such as 'telegram|123456789' or 'telegram|my-bot|123456789'; a bare provider like 'telegram' is only a weak fallback."
108
99
  },
109
100
  "permissionMode": {
110
101
  "type": "string",
@@ -112,19 +103,9 @@
112
103
  "enum": [
113
104
  "default",
114
105
  "plan",
115
- "acceptEdits",
116
106
  "bypassPermissions"
117
107
  ],
118
- "description": "Default plugin permission/orchestration mode for coding agent sessions"
119
- },
120
- "codexApprovalPolicy": {
121
- "type": "string",
122
- "default": "on-request",
123
- "enum": [
124
- "never",
125
- "on-request"
126
- ],
127
- "description": "Codex-only SDK/CLI approval policy. Defaults to 'on-request'. Set to 'never' to keep Codex from requesting approval for privileged actions. Distinct from plugin permissionMode / plan orchestration."
108
+ "description": "Default plugin orchestration mode for coding-agent sessions. This controls OpenClaw plan/default/bypass behavior and is separate from the fixed Codex execution policy."
128
109
  },
129
110
  "agentChannels": {
130
111
  "type": "object",
@@ -155,9 +136,9 @@
155
136
  },
156
137
  "defaultWorktreeStrategy": {
157
138
  "type": "string",
158
- "default": "ask",
139
+ "default": "off",
159
140
  "enum": ["off", "manual", "ask", "delegate", "auto-merge", "auto-pr"],
160
- "description": "Default worktree strategy for all new sessions when agent_launch omits worktree_strategy. 'ask' (default) = push branch and notify user with inline buttons (merge / open PR / dismiss). 'off' = no worktree. 'manual' = create worktree, no automatic action. 'delegate' = push branch and wake orchestrator to autonomously decide (merge, PR, or escalate). 'auto-merge' = auto-merge to base branch on completion. 'auto-pr' = auto-create/update GitHub PR on completion."
141
+ "description": "Default worktree strategy for all new sessions when agent_launch omits worktree_strategy. 'off' (default) = no worktree. 'manual' = create worktree, no automatic action. 'ask' = push branch and notify the user with inline buttons (Merge locally / Create PR). 'delegate' = push branch and wake the orchestrator to decide autonomously. 'auto-merge' = auto-merge to base branch on completion. 'auto-pr' = auto-create or update a GitHub PR on completion."
161
142
  },
162
143
  "worktreeDir": {
163
144
  "type": "string",
@@ -175,7 +156,7 @@
175
156
  "uiHints": {
176
157
  "fallbackChannel": {
177
158
  "label": "Fallback notification channel",
178
- "help": "Default channel used when no workspace-specific agentChannels entry matches the session workdir.",
159
+ "help": "Default channel used when no workspace-specific agentChannels entry matches the session workdir. Prefer a fully routable channel string; bare providers are only weak fallbacks.",
179
160
  "placeholder": "telegram|my-bot|123456789",
180
161
  "sensitive": true
181
162
  },
@@ -191,7 +172,7 @@
191
172
  },
192
173
  "harnesses": {
193
174
  "label": "Harness configuration",
194
- "help": "Per-harness defaults and model restrictions. Default: {\"codex\":{\"defaultModel\":\"gpt-5.4\",\"allowedModels\":[\"gpt-5.4\"],\"reasoningEffort\":\"medium\",\"approvalPolicy\":\"on-request\"},\"claude-code\":{\"defaultModel\":\"sonnet\",\"allowedModels\":[\"sonnet\",\"opus\"]}}."
175
+ "help": "Per-harness defaults and model restrictions. Default: {\"codex\":{\"defaultModel\":\"gpt-5.4\",\"allowedModels\":[\"gpt-5.4\"],\"reasoningEffort\":\"medium\"},\"claude-code\":{\"defaultModel\":\"sonnet\",\"allowedModels\":[\"sonnet\",\"opus\"]}}."
195
176
  },
196
177
  "defaultModel": {
197
178
  "label": "Legacy default model",
@@ -213,19 +194,15 @@
213
194
  },
214
195
  "permissionMode": {
215
196
  "label": "Default permission mode",
216
- "help": "Default plugin orchestration mode used when new coding-agent sessions are launched. This is separate from the Codex SDK approval policy."
217
- },
218
- "codexApprovalPolicy": {
219
- "label": "Codex approval policy",
220
- "help": "Deprecated. Use harnesses.codex.approvalPolicy instead."
197
+ "help": "Default plugin orchestration mode used when new coding-agent sessions are launched. Use this for plan/default/bypass behavior; Codex execution stays fixed to 'never'."
221
198
  },
222
199
  "planApproval": {
223
200
  "label": "Plan approval policy",
224
- "help": "Choose whether plans are auto-approved, always escalated, or delegated to the orchestrator."
201
+ "help": "Choose whether plans are always sent to the user with Approve/Revise/Reject buttons (`ask`, default), delegated to the orchestrator for full-plan review first, or auto-approved."
225
202
  },
226
203
  "defaultWorktreeStrategy": {
227
204
  "label": "Default worktree strategy",
228
- "help": "Applies to all sessions that don't specify worktree_strategy explicitly. 'ask' (default) creates worktrees and prompts user with inline buttons on completion. 'off' disables worktrees globally. 'delegate' wakes the orchestrator to decide autonomously. 'auto-merge' and 'auto-pr' are fully automated."
205
+ "help": "Applies to all sessions that don't specify worktree_strategy explicitly. 'off' (default) disables worktrees globally. 'ask' creates a worktree and sends inline Merge locally / Create PR buttons on completion. 'delegate' wakes the orchestrator to decide autonomously. 'auto-merge' and 'auto-pr' are fully automated."
229
206
  }
230
207
  },
231
208
  "skills": [
package/package.json CHANGED
@@ -1,12 +1,20 @@
1
1
  {
2
2
  "name": "openclaw-code-agent",
3
- "version": "3.0.0",
3
+ "version": "3.1.0",
4
4
  "type": "module",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {
7
- "build": "esbuild index.ts --bundle --platform=node --target=node18 --format=esm --outfile=dist/index.js --minify --external:openclaw --external:openclaw/plugin-sdk --external:@anthropic-ai/claude-agent-sdk --external:@openai/codex-sdk",
8
- "test": "find tests -type f -name '*.test.ts' -exec node --import tsx --test {} +",
9
- "typecheck": "tsc --noEmit"
7
+ "build": "esbuild index.ts --bundle --platform=node --target=node18 --format=esm --outfile=dist/index.js --minify --external:openclaw --external:openclaw/plugin-sdk --external:@anthropic-ai/claude-agent-sdk",
8
+ "test": "node scripts/run-tests.mjs",
9
+ "test:serial": "node scripts/run-tests.mjs",
10
+ "test:file": "node scripts/run-tests.mjs",
11
+ "smoke:backend": "node scripts/run-tests.mjs tests/codex-harness.test.ts tests/plan-mode-e2e.test.ts tests/session-restore-service.test.ts",
12
+ "smoke:backend-parity": "node scripts/run-tests.mjs tests/backend-contract-smoke.test.ts tests/codex-harness.test.ts tests/harness-registry.test.ts",
13
+ "smoke:codex-worktrees": "node scripts/run-tests.mjs tests/codex-harness.test.ts tests/session-bootstrap.test.ts tests/session-restore-service.test.ts",
14
+ "smoke:codex-live": "OPENCLAW_RUN_LIVE_CODEX_SMOKE=1 node scripts/run-tests.mjs tests/live-codex-app-server-smoke.test.ts",
15
+ "smoke:codex-release": "OPENCLAW_RUN_LIVE_CODEX_RELEASE_SMOKE=1 node scripts/run-tests.mjs tests/live-codex-app-server-smoke.test.ts",
16
+ "typecheck": "tsc --noEmit",
17
+ "verify": "pnpm typecheck && pnpm build && pnpm test"
10
18
  },
11
19
  "openclaw": {
12
20
  "extensions": [
@@ -22,8 +30,7 @@
22
30
  "LICENSE"
23
31
  ],
24
32
  "dependencies": {
25
- "@anthropic-ai/claude-agent-sdk": "^0.2.81",
26
- "@openai/codex-sdk": "^0.116.0"
33
+ "@anthropic-ai/claude-agent-sdk": "^0.2.81"
27
34
  },
28
35
  "devDependencies": {
29
36
  "@sinclair/typebox": "^0.34.48",