doer-agent 0.6.4 → 0.6.5
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/agent-settings.js
CHANGED
|
@@ -16,6 +16,7 @@ export function createDefaultAgentSettingsConfig() {
|
|
|
16
16
|
},
|
|
17
17
|
codex: {
|
|
18
18
|
model: "gpt-5.5",
|
|
19
|
+
reasoningEffort: "medium",
|
|
19
20
|
authMode: "api_key",
|
|
20
21
|
computerUseEnabled: false,
|
|
21
22
|
browserUseEnabled: false,
|
|
@@ -54,6 +55,16 @@ function normalizeNullableString(value) {
|
|
|
54
55
|
function normalizeCodexPersonality(value, fallback) {
|
|
55
56
|
return value === "friendly" || value === "pragmatic" ? value : fallback;
|
|
56
57
|
}
|
|
58
|
+
function normalizeReasoningEffort(value, fallback) {
|
|
59
|
+
return value === "none" ||
|
|
60
|
+
value === "minimal" ||
|
|
61
|
+
value === "low" ||
|
|
62
|
+
value === "medium" ||
|
|
63
|
+
value === "high" ||
|
|
64
|
+
value === "xhigh"
|
|
65
|
+
? value
|
|
66
|
+
: fallback;
|
|
67
|
+
}
|
|
57
68
|
function normalizeEnvVarName(value) {
|
|
58
69
|
if (typeof value !== "string") {
|
|
59
70
|
return null;
|
|
@@ -110,6 +121,7 @@ export function normalizeAgentSettingsConfig(value, fallback) {
|
|
|
110
121
|
},
|
|
111
122
|
codex: {
|
|
112
123
|
model: typeof codex.model === "string" && codex.model.trim() ? codex.model.trim() : base.codex.model,
|
|
124
|
+
reasoningEffort: normalizeReasoningEffort(codex.reasoningEffort, base.codex.reasoningEffort),
|
|
113
125
|
authMode: codex.authMode === "chatgpt" ? "chatgpt" : codex.authMode === "api_key" ? "api_key" : base.codex.authMode,
|
|
114
126
|
computerUseEnabled: typeof codex.computerUseEnabled === "boolean" ? codex.computerUseEnabled : base.codex.computerUseEnabled,
|
|
115
127
|
browserUseEnabled: typeof codex.browserUseEnabled === "boolean" ? codex.browserUseEnabled : base.codex.browserUseEnabled,
|
|
@@ -189,6 +201,7 @@ export async function toAgentSettingsPublic(args) {
|
|
|
189
201
|
},
|
|
190
202
|
codex: {
|
|
191
203
|
model: args.config.codex.model,
|
|
204
|
+
reasoningEffort: args.config.codex.reasoningEffort,
|
|
192
205
|
authMode: args.config.codex.authMode,
|
|
193
206
|
computerUseEnabled: args.config.codex.computerUseEnabled,
|
|
194
207
|
browserUseEnabled: args.config.codex.browserUseEnabled,
|
|
@@ -246,6 +259,7 @@ export function normalizeAgentSettingsPatch(value) {
|
|
|
246
259
|
};
|
|
247
260
|
move("personality", "general", "personality");
|
|
248
261
|
move("codexModel", "codex", "model");
|
|
262
|
+
move("codexReasoningEffort", "codex", "reasoningEffort");
|
|
249
263
|
move("codexAuthMode", "codex", "authMode");
|
|
250
264
|
move("computerUseEnabled", "codex", "computerUseEnabled");
|
|
251
265
|
move("browserUseEnabled", "codex", "browserUseEnabled");
|
|
@@ -13,6 +13,7 @@ function buildFeatureArg(enabled, name) {
|
|
|
13
13
|
async function buildCodexAppServerArgs(args) {
|
|
14
14
|
const configArgs = [
|
|
15
15
|
...buildConfigArg("model", toTomlStringLiteral(args.settings.codex.model)),
|
|
16
|
+
...buildConfigArg("model_reasoning_effort", toTomlStringLiteral(args.settings.codex.reasoningEffort)),
|
|
16
17
|
...buildConfigArg("personality", toTomlStringLiteral(args.settings.general.personality)),
|
|
17
18
|
...buildConfigArg("approval_policy", toTomlStringLiteral("never")),
|
|
18
19
|
...buildConfigArg("sandbox_mode", toTomlStringLiteral("danger-full-access")),
|
|
@@ -58,7 +59,7 @@ export function createCodexAppServerManager(args) {
|
|
|
58
59
|
resolveCodexHomePath: args.resolveCodexHomePath,
|
|
59
60
|
settings,
|
|
60
61
|
});
|
|
61
|
-
args.onLog?.(`starting codex app-server model=${settings.codex.model} personality=${settings.general.personality} computerUse=${settings.codex.computerUseEnabled} browserUse=${settings.codex.browserUseEnabled}`);
|
|
62
|
+
args.onLog?.(`starting codex app-server model=${settings.codex.model} reasoningEffort=${settings.codex.reasoningEffort} personality=${settings.general.personality} computerUse=${settings.codex.computerUseEnabled} browserUse=${settings.codex.browserUseEnabled}`);
|
|
62
63
|
return new CodexAppServerClient({
|
|
63
64
|
cwd: args.workspaceRoot,
|
|
64
65
|
args: appServerArgs,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "doer-agent",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.5",
|
|
4
4
|
"description": "Reverse-polling agent runtime for doer",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/agent.js",
|
|
@@ -25,8 +25,8 @@
|
|
|
25
25
|
},
|
|
26
26
|
"dependencies": {
|
|
27
27
|
"@modelcontextprotocol/sdk": "^1.29.0",
|
|
28
|
-
"@openai/codex": "^0.
|
|
29
|
-
"@openai/codex-sdk": "^0.
|
|
28
|
+
"@openai/codex": "^0.130.0",
|
|
29
|
+
"@openai/codex-sdk": "^0.130.0",
|
|
30
30
|
"nats": "^2.29.3",
|
|
31
31
|
"tar": "^7.5.15"
|
|
32
32
|
},
|