@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.
Files changed (51) hide show
  1. package/dist/agent/runner.js +122 -29
  2. package/dist/agent/runner.js.map +1 -1
  3. package/dist/agent/stream-recovery.d.ts +15 -1
  4. package/dist/agent/stream-recovery.js +42 -2
  5. package/dist/agent/stream-recovery.js.map +1 -1
  6. package/dist/llm/agentrouter.js +2 -2
  7. package/dist/llm/agentrouter.js.map +1 -1
  8. package/dist/llm/bynara.js +2 -2
  9. package/dist/llm/bynara.js.map +1 -1
  10. package/dist/llm/http.d.ts +29 -3
  11. package/dist/llm/http.js +110 -25
  12. package/dist/llm/http.js.map +1 -1
  13. package/dist/llm/modal.js +7 -2
  14. package/dist/llm/modal.js.map +1 -1
  15. package/dist/llm/nvidia.js +6 -6
  16. package/dist/llm/nvidia.js.map +1 -1
  17. package/dist/llm/router.d.ts +1 -1
  18. package/dist/llm/router.js +59 -15
  19. package/dist/llm/router.js.map +1 -1
  20. package/dist/modes/ask.js +91 -23
  21. package/dist/modes/ask.js.map +1 -1
  22. package/dist/prompts/embedded.js +2 -2
  23. package/dist/prompts/embedded.js.map +1 -1
  24. package/dist/prompts/index.d.ts +7 -0
  25. package/dist/prompts/index.js +44 -4
  26. package/dist/prompts/index.js.map +1 -1
  27. package/dist/prompts/system.agent.md +2 -1
  28. package/dist/prompts/system.ask.md +1 -0
  29. package/dist/safety/classifier.js +3 -0
  30. package/dist/safety/classifier.js.map +1 -1
  31. package/dist/tools/definitions.js +15 -0
  32. package/dist/tools/definitions.js.map +1 -1
  33. package/dist/tools/image.d.ts +19 -1
  34. package/dist/tools/image.js +149 -1
  35. package/dist/tools/image.js.map +1 -1
  36. package/dist/tools/registry.js +13 -1
  37. package/dist/tools/registry.js.map +1 -1
  38. package/dist/tools/tool-types.d.ts +8 -1
  39. package/dist/tui-v2/components/transcript/thinking-block.js +6 -7
  40. package/dist/tui-v2/components/transcript/thinking-block.js.map +1 -1
  41. package/dist/tui-v2/components/transcript/transcript-view.js +155 -28
  42. package/dist/tui-v2/components/transcript/transcript-view.js.map +1 -1
  43. package/dist/tui-v2/components/transcript/use-transcript-selection.d.ts +2 -2
  44. package/dist/tui-v2/components/transcript/use-transcript-selection.js +7 -8
  45. package/dist/tui-v2/components/transcript/use-transcript-selection.js.map +1 -1
  46. package/dist/tui-v2/state/transcript-reducer.js +7 -12
  47. package/dist/tui-v2/state/transcript-reducer.js.map +1 -1
  48. package/dist/types.d.ts +17 -0
  49. package/dist/version.generated.d.ts +2 -2
  50. package/dist/version.generated.js +2 -2
  51. 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.2";
6
- export declare const VERSION_TAG: "v3.11.2";
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.2";
6
- export const VERSION_TAG = "v3.11.2";
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pentoshi/clai",
3
- "version": "3.11.2",
3
+ "version": "3.11.4",
4
4
  "description": "A fast, cross-platform AI CLI assistant with ask and agent modes for shell tasks, file operations, and cybersecurity workflows.",
5
5
  "type": "module",
6
6
  "license": "MIT",