- CHANGELOG: document the importable multilingual agent-roles catalog under [Unreleased] (browse/import/update, 4 new endpoints, source column, the new AI_AGENT_ROLES_CATALOG_URL env var) (#222). - Fix importFromCatalog docstring: a role is skipped only on source.slug AND source.language; another language of the same slug still imports. - Provider: map a timeout/abort (or any failure) during the response-BODY read to a logged BadGatewayException, so a slow/dripping source yields a 502, not a generic 500. Existing too-large BadGateway cases are rethrown as-is. - Service: inject a Nest Logger and log the root cause (with workspaceId/ bundleId/slug) on a non-23505 insert error during import. - Modal: hoist the duplicated i18n base-subtag into a single baseLang const. - Tests: AbortError body-read -> BadGateway; null-body text() fallback (under and over cap); invalid-JSON and malformed-index BadGateway; non-23505 import error -> generic message + logged root cause. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
React + TypeScript + Vite
This template provides a minimal setup to get React working in Vite with HMR and some ESLint rules.
Currently, two official plugins are available:
- @vitejs/plugin-react uses Babel for Fast Refresh
- @vitejs/plugin-react-swc uses SWC for Fast Refresh
Expanding the ESLint configuration
If you are developing a production application, we recommend updating the configuration to enable type aware lint rules:
- Configure the top-level
parserOptionsproperty like this:
parserOptions: {
ecmaVersion: 'latest',
sourceType: 'module',
project: ['./tsconfig.json', './tsconfig.node.json'],
tsconfigRootDir: __dirname,
},
- Replace
plugin:@typescript-eslint/recommendedtoplugin:@typescript-eslint/recommended-type-checkedorplugin:@typescript-eslint/strict-type-checked - Optionally add
plugin:@typescript-eslint/stylistic-type-checked - Install eslint-plugin-react and add
plugin:react/recommended&plugin:react/jsx-runtimeto theextendslist