@aintela/chat 0.2.37 → 0.2.39
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/README.md
CHANGED
|
@@ -64,6 +64,19 @@ compatible version — that's how shared singletons (React, MUI ThemeContext,
|
|
|
64
64
|
Zustand stores, `reflect-metadata`'s patched Reflect, notistack's
|
|
65
65
|
SnackbarProvider) end up as exactly one instance per app instead of two.
|
|
66
66
|
|
|
67
|
+
### UI-tools codegen (`aia-gen-uitools`)
|
|
68
|
+
|
|
69
|
+
The package ships a bin, **`aia-gen-uitools`**, that turns the server's UI-tools manifest (the JSON
|
|
70
|
+
written by the AgentsSdk's `UiToolsManifest.PublishManifest(...)`) into typed TypeScript:
|
|
71
|
+
`uiContracts.generated.ts` (the per-tool args/input/answer/result interfaces) and
|
|
72
|
+
`aiaUiTools.generated.ts` (a typed registry builder with one method per tool — ask-user AND render —
|
|
73
|
+
each bound to its generated interfaces). A consumer app wires ONE npm script chaining the server
|
|
74
|
+
manifest export and the generation:
|
|
75
|
+
|
|
76
|
+
```json
|
|
77
|
+
"gen:uitools": "dotnet run --project ../path/to/Server.UiToolsManifest -- src/agent/generated/uitools.manifest.json && aia-gen-uitools src/agent/generated/uitools.manifest.json src/agent/generated"
|
|
78
|
+
```
|
|
79
|
+
|
|
67
80
|
## Testing
|
|
68
81
|
|
|
69
82
|
Vitest runs the unit + integration suite. Co-located `*.test.ts` files
|