0
Fork 0
mirror of https://github.com/TanStack/ai.git synced 2026-11-18 19:34:58 +00:00
ai/examples/ts-angular-chat/env.example
Alem Tuzlak 24028c59d7
feat(ai-angular): Angular signals adapter (#762)
* chore(ai-angular): scaffold package (manifest, tsconfigs, eslint, reactive helper)

* feat(ai-angular): public types + vitest TestBed config

* feat(ai-angular): minimal injectChat + TestBed harness, Vitest+Angular wiring (de-risk)

* feat(ai-angular): full injectChat (reactive opts + structured output) and injectGeneration base

* test(ai-angular): exercise structured-output partial→final via setMessages (wave-5 review fix)

* feat(ai-angular): media-generation functions (image, audio, speech, video, transcription, summarize)

* feat(ai-angular): public exports, type-level tests, README

* feat(examples,docs): Angular chat example + quick-start & API docs

* chore: sync lockfile for ts-angular-chat example

* chore(ai-angular): add changeset

* fix(ai-angular): align tslib version, drop unused @standard-schema/spec dep

* docs(ai-angular): fix API reference examples (drop dangling type, correct Types re-export list)

* ci: apply automated fixes

* fix: add assertInInjectionContext into inject* fns to improve debugging errors outside injection context (#764)

fix: add assertInInjectionContext into inject* fns for better debugging

* fix(examples): repair angular chat example and add client-tools demo

The ts-angular-chat example was non-functional:

- Server threw `serverTools.map is not a function` (500) because
  `mergeAgentTools` was passed `{}` instead of an array, so sending a
  message did nothing. Pass `[]` like every other example.
- `src/styles.css` was never imported, and it `@import`ed `tailwindcss`
  which the example never declared as a dependency. Import the stylesheet
  from `main.ts` and drop the unresolved Tailwind import (styles are now
  self-contained CSS).
- Tool-call assistant turns rendered as empty bubbles because the template
  only handled `text` parts. Render `tool-call` parts as a pill (name,
  args, output) and skip messages with no visible content.

Also adds invokable client tools (rollDice, flipCoin, calculate, mock
getWeather) alongside getTime, and gives the demo a polished UI
(hero/empty state, suggestion chips, streaming tool pills, auto-scroll).

* ci: apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: Riccardo Perra <riccardo.perra@icloud.com>
2026-06-16 10:49:56 +02:00

1 line
16 B