@clawos-dev/clawd 0.2.133-beta.274.531e8dc → 0.2.133-beta.275.ba80f7e
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/cli.cjs +25 -2
- package/package.json +1 -1
package/dist/cli.cjs
CHANGED
|
@@ -35424,6 +35424,7 @@ function createCodexSession(ctx, sink, deps = {}) {
|
|
|
35424
35424
|
const approvalIds = /* @__PURE__ */ new Map();
|
|
35425
35425
|
const pendingQuestions = /* @__PURE__ */ new Map();
|
|
35426
35426
|
let pendingSystemPrompt = ctx.toolSessionId ? void 0 : ctx.extraSystemPrompt;
|
|
35427
|
+
const effort = ctx.effort;
|
|
35427
35428
|
let exited = false;
|
|
35428
35429
|
const finish = (code) => {
|
|
35429
35430
|
if (exited) return;
|
|
@@ -35499,7 +35500,11 @@ ${text}` : text;
|
|
|
35499
35500
|
pendingSystemPrompt = void 0;
|
|
35500
35501
|
void ready.then(() => {
|
|
35501
35502
|
if (threadId)
|
|
35502
|
-
void client.request("turn/start", {
|
|
35503
|
+
void client.request("turn/start", {
|
|
35504
|
+
threadId,
|
|
35505
|
+
input: turnStartInput(body),
|
|
35506
|
+
...effort ? { reasoningEffort: effort } : {}
|
|
35507
|
+
}).catch((e) => sink.onError(`turn/start failed: ${e.message}`));
|
|
35503
35508
|
});
|
|
35504
35509
|
},
|
|
35505
35510
|
respondPermission(requestId, allow) {
|
|
@@ -35529,7 +35534,16 @@ ${text}` : text;
|
|
|
35529
35534
|
|
|
35530
35535
|
// src/tools/codex.ts
|
|
35531
35536
|
var CODEX_MODELS = [
|
|
35532
|
-
{ id: "", label: "Default", description: "codex \u9ED8\u8BA4
|
|
35537
|
+
{ id: "", label: "Default", description: "codex config.toml \u9ED8\u8BA4", contextWindowSize: 258400, default: true },
|
|
35538
|
+
{ id: "gpt-5.5", label: "GPT-5.5", description: "Frontier model for complex coding", contextWindowSize: 258400 },
|
|
35539
|
+
{ id: "gpt-5.4", label: "GPT-5.4", contextWindowSize: 258400 },
|
|
35540
|
+
{ id: "gpt-5.4-mini", label: "GPT-5.4-Mini", contextWindowSize: 258400 }
|
|
35541
|
+
];
|
|
35542
|
+
var CODEX_EFFORTS = [
|
|
35543
|
+
{ value: "low", label: "Low", description: "Fast responses with lighter reasoning" },
|
|
35544
|
+
{ value: "medium", label: "Medium", description: "Balances speed and reasoning depth for everyday tasks" },
|
|
35545
|
+
{ value: "high", label: "High", description: "Greater reasoning depth for complex problems" },
|
|
35546
|
+
{ value: "xhigh", label: "Extra high", description: "Extra high reasoning depth for complex problems" }
|
|
35533
35547
|
];
|
|
35534
35548
|
var CODEX_APPROVAL_PRESETS = [
|
|
35535
35549
|
{ id: "untrusted", label: "Ask for approval", description: "\u51E0\u4E4E\u6BCF\u6761\u547D\u4EE4\u90FD\u95EE\u4F60\uFF08\u6700\u8C28\u614E\uFF09" },
|
|
@@ -35560,6 +35574,15 @@ var CODEX_CAPABILITIES = {
|
|
|
35560
35574
|
scope: "core",
|
|
35561
35575
|
options: CODEX_APPROVAL_PRESETS.map((m2) => ({ value: m2.id, label: m2.label, description: m2.description })),
|
|
35562
35576
|
default: "on-request"
|
|
35577
|
+
},
|
|
35578
|
+
{
|
|
35579
|
+
name: "effort",
|
|
35580
|
+
type: "select",
|
|
35581
|
+
label: "Reasoning effort",
|
|
35582
|
+
scope: "tool-specific",
|
|
35583
|
+
// 渲染在 Advanced 区(与 claude effort 一致)
|
|
35584
|
+
options: CODEX_EFFORTS,
|
|
35585
|
+
default: "medium"
|
|
35563
35586
|
}
|
|
35564
35587
|
]
|
|
35565
35588
|
};
|
package/package.json
CHANGED