@livx.cc/agentx 0.99.97 → 0.99.98
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-RHsiEAiP.d.ts → Agent--Kxl9DXO.d.ts} +2 -1
- package/dist/cli.d.ts +1 -1
- package/dist/cli.js +2 -0
- package/dist/cli.js.map +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.js +2 -0
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -279,7 +279,8 @@ interface ChatFragment {
|
|
|
279
279
|
* Map a normalized effort to a partial `ChatOptions` fragment for `model`'s provider.
|
|
280
280
|
* Returns `{}` (safe no-op) for `'off'`, undefined, or an unsupported provider.
|
|
281
281
|
*
|
|
282
|
-
* Supported: `anthropic/*` (extended thinking), `openai/*` (reasoning_effort)
|
|
282
|
+
* Supported: `anthropic/*` (extended thinking), `openai/*` (reasoning_effort), `claude-code/*` (its `effort`:
|
|
283
|
+
* low thinks least — a spoken turn's first word comes seconds sooner).
|
|
283
284
|
* `google/*` is intentionally NOT mapped here — its adapter `Object.assign`s
|
|
284
285
|
* providerOptions over the built `generationConfig`, clobbering it; pass an
|
|
285
286
|
* explicit `providerOptions` if you need Gemini thinking.
|
package/dist/cli.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env bun
|
|
2
|
-
import { m as RouterState, H as Hooks, n as RunResult, R as ReasoningEffort, A as Agent } from './Agent
|
|
2
|
+
import { m as RouterState, H as Hooks, n as RunResult, R as ReasoningEffort, A as Agent } from './Agent--Kxl9DXO.js';
|
|
3
3
|
import { IFilesystem } from '@livx.cc/wcli/core';
|
|
4
4
|
import { M as Message, U as UserQuestion, H as HostBridge, c as ContentPart, o as MessageContent } from './tools-lC3jn60o.js';
|
|
5
5
|
|
package/dist/cli.js
CHANGED
|
@@ -4645,6 +4645,8 @@ function reasoningToChatFragment(model, effort) {
|
|
|
4645
4645
|
}
|
|
4646
4646
|
case "openai":
|
|
4647
4647
|
return { providerOptions: { reasoning_effort: toLabel(effort) } };
|
|
4648
|
+
case "claude-code":
|
|
4649
|
+
return { providerOptions: { effort: toLabel(effort) } };
|
|
4648
4650
|
default:
|
|
4649
4651
|
return {};
|
|
4650
4652
|
}
|