aiwcli 0.13.7 → 0.13.8
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/templates/cc-native/_cc-native/cc-native.config.json +2 -1
- package/dist/templates/cc-native/_cc-native/lib-ts/settings.ts +1 -0
- package/dist/templates/cc-native/_cc-native/lib-ts/types.ts +2 -0
- package/dist/templates/cc-native/_cc-native/plan-review/lib/agent-selection.ts +2 -2
- package/dist/templates/cc-native/_cc-native/plan-review/lib/reviewers/providers/codex-agent.ts +1 -0
- package/oclif.manifest.json +1 -1
- package/package.json +1 -1
|
@@ -149,6 +149,7 @@ export function loadModelsConfig(settings: Record<string, unknown>): ModelsConfi
|
|
|
149
149
|
providers[name] = {
|
|
150
150
|
enabled: c.enabled !== false,
|
|
151
151
|
models: Array.isArray(c.models) ? (c.models as string[]).filter(Boolean) : [],
|
|
152
|
+
...(typeof c.reasoningEffort === "string" && { reasoningEffort: c.reasoningEffort }),
|
|
152
153
|
};
|
|
153
154
|
}
|
|
154
155
|
return { providers };
|
|
@@ -127,6 +127,7 @@ export interface AgentConfig {
|
|
|
127
127
|
categories: string[];
|
|
128
128
|
description: string;
|
|
129
129
|
system_prompt: string; // Markdown body content for --system-prompt
|
|
130
|
+
reasoningEffort?: string; // e.g. "low", "medium", "high" — passed to codex -c model_reasoning_effort
|
|
130
131
|
}
|
|
131
132
|
|
|
132
133
|
/** Configuration for the plan orchestrator */
|
|
@@ -140,6 +141,7 @@ export interface OrchestratorConfig {
|
|
|
140
141
|
export interface ProviderConfig {
|
|
141
142
|
enabled: boolean;
|
|
142
143
|
models: string[];
|
|
144
|
+
reasoningEffort?: string; // e.g. "low", "medium", "high" — codex model_reasoning_effort
|
|
143
145
|
}
|
|
144
146
|
|
|
145
147
|
/** Model provider pool configuration */
|
|
@@ -89,7 +89,7 @@ export function assignModelsToAgents(
|
|
|
89
89
|
}
|
|
90
90
|
return [name, config] as [string, typeof config];
|
|
91
91
|
})
|
|
92
|
-
.filter((entry): entry is [string, { enabled: boolean; models: string[] }] => entry !== null);
|
|
92
|
+
.filter((entry): entry is [string, { enabled: boolean; models: string[]; reasoningEffort?: string }] => entry !== null);
|
|
93
93
|
|
|
94
94
|
// Sort by provider priority (codex first)
|
|
95
95
|
enabledProviders.sort((a, b) => {
|
|
@@ -110,7 +110,7 @@ export function assignModelsToAgents(
|
|
|
110
110
|
return agents.map(agent => {
|
|
111
111
|
const modelIdx = Math.floor(Math.random() * providerConfig.models.length);
|
|
112
112
|
const model = providerConfig.models[modelIdx] ?? providerConfig.models[0] ?? agent.model;
|
|
113
|
-
return { ...agent, provider: providerName, model };
|
|
113
|
+
return { ...agent, provider: providerName, model, reasoningEffort: providerConfig.reasoningEffort };
|
|
114
114
|
});
|
|
115
115
|
}
|
|
116
116
|
|
package/dist/templates/cc-native/_cc-native/plan-review/lib/reviewers/providers/codex-agent.ts
CHANGED
|
@@ -54,6 +54,7 @@ export class CodexAgent extends BaseCliAgent<ReviewerResult> {
|
|
|
54
54
|
|
|
55
55
|
const cmdArgs = ["exec", "--sandbox", "read-only"];
|
|
56
56
|
if (this.agent.model) cmdArgs.push("--model", this.agent.model);
|
|
57
|
+
if (this.agent.reasoningEffort) cmdArgs.push("-c", `model_reasoning_effort="${this.agent.reasoningEffort}"`);
|
|
57
58
|
cmdArgs.push("--output-schema", normalizedSchema, "-o", normalizedOut, "-");
|
|
58
59
|
|
|
59
60
|
return cmdArgs;
|
package/oclif.manifest.json
CHANGED