Closes the ai-chat code-review follow-ups. Tests (security-critical paths previously uncovered): - secret-box.spec: AES-256-GCM round-trip, random-salt uniqueness, tampered blob / wrong APP_SECRET throw the expected message. - ssrf-guard.spec: isIpAllowed blocks loopback/link-local/private/CGNAT/ULA/ unspecified/IPv4-mapped, allows public; isUrlAllowed blocks bad scheme, invalid URL, IP literals, and DNS-rebinding (mocked dns.lookup). - ai-chat.service.spec: assistantParts emits output-error for an UNPAIRED tool call (guards the MissingToolResultsError fix), output-available when paired, skips malformed calls; serializeSteps/rowToUiMessage. - ai-chat-tools.service.spec: JSON-string node/content coercion + invalid-JSON throws; updatePageJson title-only vs object. - page-embedding.repo.spec: empty spaceIds early-returns [] with no DB call. a11y: - Chat history toggle and conversation rows are now keyboard-operable (role=button, tabIndex, Enter/Space), matching history-item.tsx. Refactors: - onError on useChat adopts the server chat id when the first turn errors (AI SDK v6 onFinish doesn't fire on error). - isToolPart exported once from tool-parts and shared (was duplicated). - buildInitialValues() dedups the ai-mcp-server-form initial values. - describeProviderError replaces two inline statusCode/message snippets. - tool-parts stale tool-list comment refreshed. Implements docs/backlog/ai-chat-review-followups.md. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
A progressive Node.js framework for building efficient and scalable server-side applications.
Description
Nest framework TypeScript starter repository.
Installation
$ npm install
Running the app
# development
$ npm run start
# watch mode
$ npm run start:dev
# production mode
$ npm run start:prod
Migrations
# This creates a new empty migration file named 'init'
$ npm run migration:create --name=init
# Generates 'init' migration file from existing entities to update the database schema
$ npm run migration:generate --name=init
# Runs all pending migrations to update the database schema
$ npm run migration:run
# Reverts the last executed migration
$ npm run migration:revert
# Reverts all migrations
$ npm run migration:revert
# Shows the list of executed and pending migrations
$ npm run migration:show
## Test
```bash
# unit tests
$ npm run test
# e2e tests
$ npm run test:e2e
# test coverage
$ npm run test:cov
Support
Nest is an MIT-licensed open source project. It can grow thanks to the sponsors and support by the amazing backers. If you'd like to join them, please read more here.
Stay in touch
- Author - Kamil Myśliwiec
- Website - https://nestjs.com
- Twitter - @nestframework
License
Nest is MIT licensed.