@alexkroman1/aai-ui 4.0.0 → 5.0.0

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/types.d.ts CHANGED
@@ -1,3 +1,4 @@
1
+ import type { DefaultToolResult } from "@alexkroman1/aai";
1
2
  import type { SessionErrorCode } from "@alexkroman1/aai/protocol";
2
3
  export { CAPTURE_STOP_ACK_TIMEOUT_MS, MIC_BUFFER_SECONDS, MIC_SEND_MAX_BUFFERED_BYTES, MIC_SILENCE_PROBE_MS, PLAYBACK_BUFFER_SECONDS, PLAYBACK_CONCEAL_FADE_MS, PLAYBACK_CONCEAL_FLOOR, PLAYBACK_DONE_MAX_WAIT_MS, PLAYBACK_DONE_POLL_MS, PLAYBACK_JITTER_MS, PLAYBACK_REFILL_MS, } from "@alexkroman1/aai";
3
4
  /**
@@ -54,7 +55,22 @@ export type ChatMessage = {
54
55
  export type ToolCallInfo = {
55
56
  callId: string;
56
57
  name: string;
57
- args: Record<string, unknown>;
58
+ /**
59
+ * The tool's arguments, as the model sent them.
60
+ *
61
+ * Values are {@link DefaultToolResult} — `any` — for the same reason a tool
62
+ * *result* is: the shape is the author's own Zod schema, which the framework
63
+ * cannot see from here. As `Record<string, unknown>` the ordinary
64
+ * `toolCall.args.url` was a compile error in a client that runs correctly,
65
+ * and the escape hatch agents reached for next (`args as FetchJsonArgs`) is
66
+ * itself an error — TypeScript rejects the cast as insufficiently
67
+ * overlapping. That pair cost two build rounds in one run.
68
+ *
69
+ * Annotate at the read site for real checking:
70
+ * `const { url } = toolCall.args as { url: string }` is still available, and
71
+ * now actually compiles.
72
+ */
73
+ args: Record<string, DefaultToolResult>;
58
74
  status: "pending" | "done";
59
75
  result?: string | undefined;
60
76
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alexkroman1/aai-ui",
3
- "version": "4.0.0",
3
+ "version": "5.0.0",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "dist",
@@ -22,7 +22,7 @@
22
22
  "react-markdown": "^10.1.0",
23
23
  "remark-gfm": "^4.0.1",
24
24
  "use-sync-external-store": "^1.6.0",
25
- "@alexkroman1/aai": "4.0.0"
25
+ "@alexkroman1/aai": "5.0.0"
26
26
  },
27
27
  "peerDependencies": {
28
28
  "react": "^19.0.0",