feat: implemented external thinking flags and transport reasoning controls

- Added the `--external-thinking` CLI flag alongside model capability checks to gate external thinking tool availability.
- Updated Anthropic and Google transports to honor `forceReasoningOff` for native thinking-off controls.
- Renamed the `thoughts` property and parameter to `notes` across think fixtures, tools, and tests.
- Updated system prompt instructions and test suites to verify transport-specific thinking and tool activation.
This commit is contained in:
can1357
2026-08-12 02:16:25 +02:00
parent 7e2663360f
commit 19c0afcc0d
23 changed files with 201 additions and 80 deletions
@@ -13,7 +13,7 @@ describe("thinkToolRenderer", () => {
const uiTheme = theme!;
const callComponent = thinkToolRenderer.renderCall(
{ thoughts: "Analyzing the solution step by step." },
{ thoughts: "Cache the parsed config, then check invalidation." },
{ expanded: true, isPartial: false },
uiTheme,
);
@@ -22,8 +22,8 @@ describe("thinkToolRenderer", () => {
const lines = callComponent.render(100);
const fullText = lines.join("\n");
expect(fullText).toContain("Analyzing the solution step by step.");
expect(fullText).toContain(uiTheme.fg("thinkingText", "Analyzing the solution step by step."));
expect(fullText).toContain("Cache the parsed config, then check invalidation.");
expect(fullText).toContain(uiTheme.fg("thinkingText", "Cache the parsed config, then check invalidation."));
});
it("has inline set to true", () => {