@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/default-client/assets/{audio-DQseUQnN.js → audio-Bu1LSuiR.js} +1 -1
- package/dist/default-client/assets/{capture-processor-DKFNcEhw.js → capture-processor-ssRD81Mo.js} +1 -1
- package/dist/default-client/assets/index-0-DXv-S4.js +192 -0
- package/dist/default-client/assets/{playback-processor-HeyncQUX.js → playback-processor-CRwbxC1v.js} +1 -1
- package/dist/default-client/index.html +1 -1
- package/dist/define-client.d.ts +12 -1
- package/dist/define-client.js +120 -4
- package/dist/hooks.d.ts +40 -2
- package/dist/hooks.js +24 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.js +4 -4
- package/dist/{session-core-CkZ8LyEA.js → session-core-Bjkr4PAP.js} +106 -35
- package/dist/session-core-messages.d.ts +2 -1
- package/dist/session-core-reconnect.d.ts +4 -3
- package/dist/session-core-types.d.ts +11 -3
- package/dist/session-core-url.d.ts +5 -0
- package/dist/session-core.js +1 -1
- package/dist/types.d.ts +17 -1
- package/package.json +2 -2
- package/dist/default-client/assets/index-CkZ6t_eJ.js +0 -417
- package/dist/define-client-DqRs1XPd.js +0 -150
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
|
-
|
|
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": "
|
|
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": "
|
|
25
|
+
"@alexkroman1/aai": "5.0.0"
|
|
26
26
|
},
|
|
27
27
|
"peerDependencies": {
|
|
28
28
|
"react": "^19.0.0",
|