- Remove all sector-specific extensions (construction, ecommerce, export, hotel, restaurant, tech) — only general-purpose extensions remain - Move NE-bilaga and SRU export from extensions to core reports (lib/reports/) - Move moms-box-mapping from extensions/export/shared to lib/vat/ - Replace per-extension API routes with catch-all dispatcher (app/api/extensions/ext/[...path]/route.ts) - Add manifest.json for each extension with metadata, env vars, and deps - Add api-routes.ts pattern for extension-defined API endpoints - Add code generation scripts (generate-extension-registry, create-extension) - Add extensions.config.json for opt-in extension loading - Add extensions.schema.json for config validation - Add email service interface with noop default (lib/email/service.ts) - Add CI workflow (core-build.yml) to verify core builds with zero extensions - Add migration 045: expand account_type CHECK for untaxed_reserves - Update CLAUDE.md with comprehensive extension system documentation - Update all report engines and bookkeeping services for new imports - Clean up extensions.schema.json to only list existing extensions Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
26 lines
959 B
JSON
26 lines
959 B
JSON
{
|
|
"id": "ai-chat",
|
|
"sector": "general",
|
|
"exportName": "aiChatExtension",
|
|
"entryPoint": "@/extensions/general/ai-chat",
|
|
"workspace": "@/components/extensions/general/AiChatWorkspace",
|
|
"requiredEnvVars": ["ANTHROPIC_API_KEY", "OPENAI_API_KEY"],
|
|
"optionalEnvVars": [],
|
|
"npmDependencies": ["@langchain/anthropic", "@langchain/core", "langchain", "@langchain/openai"],
|
|
"definition": {
|
|
"name": "AI-assistent",
|
|
"category": "operations",
|
|
"icon": "MessageSquare",
|
|
"dataPattern": "manual",
|
|
"hasOwnData": true,
|
|
"description": "AI-assistent för skatte- och bokföringsfrågor",
|
|
"longDescription": "Ställ frågor om skatt, bokföring och företagande till en AI-assistent som förstår svensk redovisning. Svar baserade på aktuella regler och praxis.",
|
|
"quickAction": {
|
|
"label": "AI-assistent",
|
|
"description": "Fråga om bokföring",
|
|
"icon": "MessageSquare",
|
|
"event": "open-ai-chat"
|
|
}
|
|
}
|
|
}
|