@pentoshi/clai 3.11.2 → 3.11.4
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/runner.js +122 -29
- package/dist/agent/runner.js.map +1 -1
- package/dist/agent/stream-recovery.d.ts +15 -1
- package/dist/agent/stream-recovery.js +42 -2
- package/dist/agent/stream-recovery.js.map +1 -1
- package/dist/llm/agentrouter.js +2 -2
- package/dist/llm/agentrouter.js.map +1 -1
- package/dist/llm/bynara.js +2 -2
- package/dist/llm/bynara.js.map +1 -1
- package/dist/llm/http.d.ts +29 -3
- package/dist/llm/http.js +110 -25
- package/dist/llm/http.js.map +1 -1
- package/dist/llm/modal.js +7 -2
- package/dist/llm/modal.js.map +1 -1
- package/dist/llm/nvidia.js +6 -6
- package/dist/llm/nvidia.js.map +1 -1
- package/dist/llm/router.d.ts +1 -1
- package/dist/llm/router.js +59 -15
- package/dist/llm/router.js.map +1 -1
- package/dist/modes/ask.js +91 -23
- package/dist/modes/ask.js.map +1 -1
- package/dist/prompts/embedded.js +2 -2
- package/dist/prompts/embedded.js.map +1 -1
- package/dist/prompts/index.d.ts +7 -0
- package/dist/prompts/index.js +44 -4
- package/dist/prompts/index.js.map +1 -1
- package/dist/prompts/system.agent.md +2 -1
- package/dist/prompts/system.ask.md +1 -0
- package/dist/safety/classifier.js +3 -0
- package/dist/safety/classifier.js.map +1 -1
- package/dist/tools/definitions.js +15 -0
- package/dist/tools/definitions.js.map +1 -1
- package/dist/tools/image.d.ts +19 -1
- package/dist/tools/image.js +149 -1
- package/dist/tools/image.js.map +1 -1
- package/dist/tools/registry.js +13 -1
- package/dist/tools/registry.js.map +1 -1
- package/dist/tools/tool-types.d.ts +8 -1
- package/dist/tui-v2/components/transcript/thinking-block.js +6 -7
- package/dist/tui-v2/components/transcript/thinking-block.js.map +1 -1
- package/dist/tui-v2/components/transcript/transcript-view.js +155 -28
- package/dist/tui-v2/components/transcript/transcript-view.js.map +1 -1
- package/dist/tui-v2/components/transcript/use-transcript-selection.d.ts +2 -2
- package/dist/tui-v2/components/transcript/use-transcript-selection.js +7 -8
- package/dist/tui-v2/components/transcript/use-transcript-selection.js.map +1 -1
- package/dist/tui-v2/state/transcript-reducer.js +7 -12
- package/dist/tui-v2/state/transcript-reducer.js.map +1 -1
- package/dist/types.d.ts +17 -0
- package/dist/version.generated.d.ts +2 -2
- package/dist/version.generated.js +2 -2
- package/package.json +1 -1
package/dist/types.d.ts
CHANGED
|
@@ -115,6 +115,14 @@ export interface CompletionRequest {
|
|
|
115
115
|
* user's turn without an answer.
|
|
116
116
|
*/
|
|
117
117
|
allowModelFallback?: boolean | undefined;
|
|
118
|
+
/**
|
|
119
|
+
* On a recovery attempt, try configured alternate providers before replaying
|
|
120
|
+
* the selected route. Used only after a live-connection stall: that route has
|
|
121
|
+
* already repeated expensive partial work, while ordinary requests still
|
|
122
|
+
* honor the selected provider first. The selected route remains last in the
|
|
123
|
+
* chain so recovery still works when no alternate is configured.
|
|
124
|
+
*/
|
|
125
|
+
preferModelFallback?: boolean | undefined;
|
|
118
126
|
messages: ChatMessage[];
|
|
119
127
|
temperature?: number | undefined;
|
|
120
128
|
maxTokens?: number | undefined;
|
|
@@ -219,4 +227,13 @@ export interface ToolResult {
|
|
|
219
227
|
* UI renders Cursor-style green/red hunks; model history uses `output` only.
|
|
220
228
|
*/
|
|
221
229
|
fileChanges?: import("./tools/file-diff.js").FileChange[] | undefined;
|
|
230
|
+
/**
|
|
231
|
+
* Images the tool wants the model to actually look at (image.view).
|
|
232
|
+
*
|
|
233
|
+
* Tool-result messages are text-only on every provider wire we support, so
|
|
234
|
+
* the agent replays these as a follow-up user turn carrying the real bytes —
|
|
235
|
+
* the same path user attachments already take. Providers without vision drop
|
|
236
|
+
* them and the `output` text still explains what was inspected.
|
|
237
|
+
*/
|
|
238
|
+
images?: ChatImage[] | undefined;
|
|
222
239
|
}
|
|
@@ -2,5 +2,5 @@
|
|
|
2
2
|
* AUTO-GENERATED by scripts/sync-version.mjs — do not edit by hand.
|
|
3
3
|
* Source of truth: package.json "version".
|
|
4
4
|
*/
|
|
5
|
-
export declare const VERSION: "3.11.
|
|
6
|
-
export declare const VERSION_TAG: "v3.11.
|
|
5
|
+
export declare const VERSION: "3.11.4";
|
|
6
|
+
export declare const VERSION_TAG: "v3.11.4";
|
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
* AUTO-GENERATED by scripts/sync-version.mjs — do not edit by hand.
|
|
3
3
|
* Source of truth: package.json "version".
|
|
4
4
|
*/
|
|
5
|
-
export const VERSION = "3.11.
|
|
6
|
-
export const VERSION_TAG = "v3.11.
|
|
5
|
+
export const VERSION = "3.11.4";
|
|
6
|
+
export const VERSION_TAG = "v3.11.4";
|
|
7
7
|
//# sourceMappingURL=version.generated.js.map
|
package/package.json
CHANGED