Open source file-system and knowledge based agent template. Build AI agents that stay up to date with your knowledge base
unify both api and chat into a single app
Hugo Richard281270e3f847
diff --git a/.github/pull_request_template.md b/.github/pull_request_template.mdindex 69da6e9..ef166b0 100644--- a/.github/pull_request_template.md+++ b/.github/pull_request_template.md@@ -18,11 +18,10 @@ Here are the available types and scopes:- revert (reverts a previous commit) π### Scopes-- api (apps/api - Savoir API server)-- chat (apps/chat - Chat application)+- chat (apps/chat - Main application)- github-bot (apps/github-bot - GitHub bot)- sdk (packages/sdk - @savoir/sdk)-- cli (packages/cli - CLI utilities)+- logger (packages/logger - @savoir/logger)- deps (dependencies updates)- docs (documentation)-->diff --git a/.github/workflows/semantic-pull-request.yml b/.github/workflows/semantic-pull-request.ymlindex 2942e99..dd31359 100644--- a/.github/workflows/semantic-pull-request.yml+++ b/.github/workflows/semantic-pull-request.yml@@ -23,12 +23,10 @@ jobs:with:scopes: |deps- apichatgithub-botsdk- cli- deps+ loggerdocstypes: |breakingdiff --git a/AGENTS.md b/AGENTS.mdindex 9279024..12b3a65 100644--- a/AGENTS.md+++ b/AGENTS.md@@ -4,7 +4,7 @@Savoir is a platform for building AI agents with access to real-time knowledge bases. It provides:-- **API** (`apps/api`): A self-hostable Nitro server managing Vercel Sandboxes and content synchronization+- **Chat App** (`apps/chat`): A unified Nuxt application that includes both the user-facing chat interface and the API for sandbox management and content synchronization- **SDK** (`packages/sdk`): AI SDK-compatible tools for integrating knowledge search into agentsThe system enables file-based agents that can grep, search, and read from frequently updated documentation sources.@@ -23,15 +23,22 @@ For detailed technical information, see:```savoir/βββ apps/-β βββ api/ # Nitro API server+β βββ chat/ # Unified Nuxt application (chat + API)β β βββ server/β β β βββ api/ # API endpointsβ β β β βββ sandbox/ # Sandbox management endpoints-β β β β βββ sync/ # Content sync endpoints-β β β βββ tasks/ # Nitro scheduled tasks-β β β βββ utils/ # Shared utilities-β β βββ nitro.config.ts-β βββ chat/ # Example chat application+β β β β βββ sync/ # Content sync endpoints+β β β β βββ sources/ # Sources CRUD+β β β βββ lib/+β β β β βββ sandbox/ # Sandbox manager+β β β βββ workflows/ # Vercel Workflows+β β β β βββ sync-docs/+β β β β βββ create-snapshot/+β β β βββ tasks/ # Nitro tasks (seed-sources)+β β β βββ middleware/ # API auth middleware+β β β βββ db/ # Drizzle schema+β β βββ app/ # Nuxt app (Vue components, pages)+β β βββ nuxt.config.tsβ βββ github-bot/ # Example GitHub botβββ packages/β βββ sdk/ # @savoir/sdk - AI SDK tools@@ -39,7 +46,8 @@ savoir/β β βββ index.ts # createSavoir() exportβ β βββ client.ts # API clientβ β βββ tools/ # AI SDK tool definitions-β βββ cli/ # CLI utilities+β βββ logger/ # @savoir/logger - Logging utilities+βββ savoir.config.ts # Source definitions (for seeding DB)βββ docs/ # Architecture documentation```@@ -47,16 +55,16 @@ savoir/```ββββββββββββββββ βββββββββββββββ ββββββββββββββββββββ-β AI Agent ββββββΆβ @savoir/sdk ββββββΆβ Savoir API β-β (Your App) β β (tools) β β (Nitro) β+β AI Agent ββββββΆβ @savoir/sdk ββββββΆβ apps/chat β+β (Your App) β β (tools) β β (Nuxt API) βββββββββββββββββ βββββββββββββββ ββββββββββ¬βββββββββββββββββββββββββββββββββββΌββββββββββββββββββββββββ β ββΌ βΌ βΌββββββββββββββ ββββββββββββββ ββββββββββββββ- β Sandbox β β Content β β Nitro β- β Manager β β Sync β β Tasks β+ β Sandbox β β Vercel β β NuxtHub β+ β Manager β β Workflow β β (DB/KV) ββββββββ¬βββββββ βββββββ¬βββββββ βββββββββββββββ ββΌ βΌ@@ -68,7 +76,7 @@ savoir/### Key Components-#### Sandbox Manager+#### Sandbox Manager (`server/lib/sandbox/`)Manages Vercel Sandbox lifecycle:@@ -77,14 +85,44 @@ Manages Vercel Sandbox lifecycle:- **Extend**: Extends sandbox timeout when running low- **Execute**: Runs shell commands (grep, cat, find) for search/read-#### Content Sync+#### Content Sync (`server/workflows/sync-docs/`)-Aggregates documentation from multiple sources:+Aggregates documentation from multiple sources using Vercel Workflows:+- Reads sources from database (via Drizzle)- Fetches from GitHub repositories (docs, READMEs)-- Processes YouTube transcripts- Normalizes to Markdown format-- Pushes to snapshot repository+- Creates snapshot for instant sandbox startup++#### Sources Database++Sources are stored in SQLite (via NuxtHub):++```typescript+export const sources = sqliteTable('sources', {+ id: text('id').primaryKey(),+ type: text('type', { enum: ['github', 'youtube'] }).notNull(),++ // Common fields+ label: text('label').notNull(),++ // GitHub fields+ repo: text('repo'),+ branch: text('branch'),+ contentPath: text('content_path'),+ outputPath: text('output_path'),+ readmeOnly: integer('readme_only', { mode: 'boolean' }),++ // YouTube fields+ channelId: text('channel_id'),+ handle: text('handle'),+ maxVideos: integer('max_videos'),++ // Timestamps+ createdAt: integer('created_at', { mode: 'timestamp' }),+ updatedAt: integer('updated_at', { mode: 'timestamp' }),+})+```#### SDK Tools@@ -99,21 +137,16 @@ AI SDK-compatible tools:### Sandbox Management```-POST /api/sandbox/create- Body: { chatId: string }- Returns: { sandboxId: string, fileTree: string }--POST /api/sandbox/:id/search- Body: { query: string, limit?: number }- Returns: { files: string[] }+POST /api/sandbox/snapshot+ Creates a new snapshot from the snapshot repo-POST /api/sandbox/:id/read- Body: { paths: string[] }- Returns: { files: Array<{ path: string, content: string }> }+POST /api/sandbox/search-and-read+ Body: { query: string, limit?: number, sessionId?: string }+ Returns: { sessionId: string, matches: [...], files: [...] }-POST /api/sandbox/:id/search-and-read- Body: { query: string, limit?: number }- Returns: { query: string, files: Array<{ path: string, content: string }> }+POST /api/sandbox/read+ Body: { paths: string[], sessionId?: string }+ Returns: { sessionId: string, files: [...] }```### Content Sync@@ -124,21 +157,34 @@ POST /api/syncPOST /api/sync/:sourceTriggers sync for specific source+```++### Sources CRUD+```GET /api/sources- Returns list of configured sources+ Returns list of sources grouped by type++POST /api/sources+ Creates a new source++PUT /api/sources/:id+ Updates a source++DELETE /api/sources/:id+ Deletes a source```## SDK Usage```typescriptimport { createSavoir } from '@savoir/sdk'-import { generateText, stepCountIs } from 'ai'+import { generateText } from 'ai'// Initialize clientconst savoir = createSavoir({apiKey: process.env.SAVOIR_API_KEY,- apiUrl: 'https://api.savoir.example.com'+ apiUrl: 'https://your-app.nuxt.dev'})// Use tools with AI SDK@@ -264,9 +310,10 @@ const message: ChatMessage = {// β Bad - doesn't work in serverlessconst cache = new Map<string, Data>()-// β Good - use persistent storage (KV, Redis, etc.)+// β Good - use NuxtHub KV+const kv = hubKV()const cached = await kv.get<Data>('my-key')-await kv.set('my-key', data, { ttl: 3600 })+await kv.set('my-key', data)```### Error Handling@@ -339,24 +386,32 @@ export default defineEventHandler(async (event) => {## Environment Variables-### API (`apps/api`)+### Chat App (`apps/chat`)```bash-# Required-GITHUB_TOKEN=ghp_... # GitHub token for repo access-GITHUB_SNAPSHOT_REPO=org/repo # Snapshot repository+# Required for sandbox/sync+NUXT_GITHUB_TOKEN=ghp_... # GitHub token for repo access+NUXT_GITHUB_SNAPSHOT_REPO=org/repo # Snapshot repository+NUXT_GITHUB_SNAPSHOT_BRANCH=main # Snapshot branch (default: main)# Optional-SAVOIR_SECRET_KEY=... # API authentication key-SANDBOX_TIMEOUT=600000 # Sandbox timeout in ms (default: 10min)-KV_TTL=1800 # KV cache TTL in seconds (default: 30min)+NUXT_SAVOIR_SECRET_KEY=... # API authentication key for /api/sync and /api/sandbox```### SDK (`@savoir/sdk`)```bashSAVOIR_API_KEY=... # API key for authentication-SAVOIR_API_URL=https://... # API base URL+SAVOIR_API_URL=https://... # API base URL (your deployed chat app)+```++## Database++Sources are stored in SQLite via NuxtHub. To seed the database from `savoir.config.ts`:++```bash+cd apps/chat+pnpm db:seed```## Testing@@ -381,17 +436,20 @@ pnpm --filter @savoir/sdk test:watch```bash# Developmentpnpm install # Install all dependencies-pnpm dev # Start all apps in dev mode-pnpm dev:api # Start API only+pnpm dev # Start chat app in dev modepnpm build # Build all packages and apps+# Database+pnpm --filter @savoir/chat db:generate # Generate migrations+pnpm --filter @savoir/chat db:migrate # Run migrations+pnpm --filter @savoir/chat db:seed # Seed sources from savoir.config.ts++# Workflows+pnpm --filter @savoir/chat workflow:web # Monitor workflow progress+# Linting & Testingpnpm lint # Lint all packagespnpm lint:fix # Fix linting issuespnpm test # Run testspnpm typecheck # Type check all packages--# Content Sync-pnpm sync # Trigger content synchronization-pnpm sync:source # Sync specific source```diff --git a/README.md b/README.mdindex 4840b52..650d489 100644--- a/README.md+++ b/README.md@@ -2,7 +2,7 @@Build AI agents with real-time knowledge access.-Savoir provides the infrastructure to create file-based AI agents (chatbots, Discord bots, GitHub bots, etc.) that can search and read from frequently updated knowledge bases. It combines a self-hostable API for sandbox management with an SDK that provides AI SDK-compatible tools.+Savoir provides the infrastructure to create file-based AI agents (chatbots, Discord bots, GitHub bots, etc.) that can search and read from frequently updated knowledge bases. It combines a unified Nuxt application for the chat interface and API with an SDK that provides AI SDK-compatible tools.## Architecture@@ -20,10 +20,10 @@ Savoir provides the infrastructure to create file-based AI agents (chatbots, Disβ API callsβΌβββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ-β Savoir API β-β (Self-hostable Nitro server) β+β apps/chat β+β (Unified Nuxt Application) ββ βββββββββββββββ ββββββββββββββββ ββββββββββββββββββββββββββ β-β β Sandbox β β Content β β Nitro Tasks β β+β β Sandbox β β Content β β Vercel Workflows β ββ β Manager β β Sync β β (scheduled sync) β ββ ββββββββ¬βββββββ ββββββββ¬ββββββββ ββββββββββββββββββββββββββ ββββββββββββΌβββββββββββββββββΌβββββββββββββββββββββββββββββββββββββββ@@ -41,15 +41,15 @@ Savoir provides the infrastructure to create file-based AI agents (chatbots, Dis| Package | Description ||---------|-------------|| [`@savoir/sdk`](./packages/sdk) | AI SDK compatible tools for agents |-| [`@savoir/config`](./packages/config) | Configuration management with multi-format support |-| [`apps/api`](./apps/api) | Self-hostable sandbox management API |+| [`@savoir/logger`](./packages/logger) | Logging utilities |+| [`apps/chat`](./apps/chat) | Unified Nuxt app (chat UI + API) |## Quick Start### Using the SDK```typescript-import { generateText, stepCountIs } from 'ai'+import { generateText } from 'ai'import { createSavoir } from '@savoir/sdk'// Initialize Savoir client@@ -70,7 +70,7 @@ const { text } = await generateText({console.log(text)```-### Self-hosting the API+### Self-hosting```bash# Clone the repository@@ -81,56 +81,66 @@ cd savoirpnpm install# Configure environment variables-cp apps/api/.env.example apps/api/.env+cp apps/chat/.env.example apps/chat/.env# Edit .env with your configuration-# Start the API-pnpm dev:api+# Run database migrations+pnpm --filter @savoir/chat db:migrate++# Seed sources from savoir.config.ts+pnpm --filter @savoir/chat db:seed++# Start the app+pnpm dev```**Required environment variables:**```bash# GitHub token for cloning snapshot repository-GITHUB_TOKEN=ghp_...+NUXT_GITHUB_TOKEN=ghp_...# Repository containing the content snapshot-GITHUB_SNAPSHOT_REPO=your-org/your-content-repo+NUXT_GITHUB_SNAPSHOT_REPO=your-org/your-content-repo# Optional: API key for securing endpoints-SAVOIR_SECRET_KEY=your-secret-key+NUXT_SAVOIR_SECRET_KEY=your-secret-key```## Configuration-Sources are configured in `savoir.config.ts` at the project root:+Sources are stored in the database. To seed the initial sources, edit `savoir.config.ts` at the project root and run:-```typescript-import { defineConfig } from '@savoir/config'+```bash+pnpm --filter @savoir/chat db:seed+```++The config file format:-export default defineConfig({+```typescript+// savoir.config.ts+export default {sources: {github: [{ id: 'nuxt', repo: 'nuxt/nuxt', contentPath: 'docs' },- { id: 'nitro', repo: 'nitrojs/nitro', branch: 'v3' },+ { id: 'nitro', repo: 'nitrojs/nitro', branch: 'main' },],youtube: [{ id: 'alex-lichter', channelId: 'UCqFPgMzGbLjd-MX-h3Z5aQA' },],},-})+}```-Supported formats: `.ts`, `.js`, `.json`, `.yaml`-See [SOURCES.md](./docs/SOURCES.md) for detailed source configuration options.## How It Works-1. **Content Aggregation**: Sources (GitHub docs, YouTube transcripts, etc.) are synced to a snapshot repository via Vercel Workflow-2. **Sandbox Creation**: When an agent needs to search, the API creates/recovers a Vercel Sandbox with the snapshot repo cloned-3. **File-based Search**: The SDK tools execute grep/find commands in the sandbox to search and read content-4. **AI Integration**: Tools are compatible with the Vercel AI SDK for seamless integration with any LLM+1. **Sources in Database**: Sources are stored in SQLite via NuxtHub, seeded from `savoir.config.ts`+2. **Content Aggregation**: Sources (GitHub docs, YouTube transcripts, etc.) are synced to a snapshot repository via Vercel Workflow+3. **Sandbox Creation**: When an agent needs to search, the API creates/recovers a Vercel Sandbox with the snapshot repo cloned+4. **File-based Search**: The SDK tools execute grep/find commands in the sandbox to search and read content+5. **AI Integration**: Tools are compatible with the Vercel AI SDK for seamless integration with any LLM## Development@@ -138,7 +148,7 @@ See [SOURCES.md](./docs/SOURCES.md) for detailed source configuration options.# Install dependenciespnpm install-# Start all apps in dev mode+# Start the app in dev modepnpm dev# Build all packages@@ -155,7 +165,8 @@ pnpm lint:fix- [Vercel AI SDK](https://ai-sdk.dev) - The AI SDK that Savoir integrates with- [Vercel Sandbox](https://vercel.com/docs/vercel-sandbox) - Sandboxed execution environment-- [Nitro](https://v3.nitro.build) - The server framework powering the API+- [NuxtHub](https://hub.nuxt.com) - The deployment platform for Nuxt+- [Vercel Workflow](https://github.com/vercel/workflow) - Durable workflow execution## Licensediff --git a/apps/api/.gitignore b/apps/api/.gitignoredeleted file mode 100644index 0176ded..0000000--- a/apps/api/.gitignore+++ /dev/null@@ -1,10 +0,0 @@-node_modules-dist-.data-.nitro-.cache-.output-.env-.env.local-.vercel-.env*.localdiff --git a/apps/api/README.md b/apps/api/README.mddeleted file mode 100644index fe8e5bd..0000000--- a/apps/api/README.md+++ /dev/null@@ -1,135 +0,0 @@-# Savoir API--Self-hostable API server for managing content synchronization.--## Setup--```bash-# Install dependencies-pnpm install--# Copy environment file-cp .env.example .env--# Edit .env with your configuration-```--## Environment Variables--| Variable | Required | Description |-|----------|----------|-------------|-| `GITHUB_TOKEN` | Yes | GitHub token for API access |-| `GITHUB_SNAPSHOT_REPO` | Yes | Snapshot repository (owner/repo) |-| `GITHUB_SNAPSHOT_BRANCH` | No | Branch to push to (default: main) |-| `SAVOIR_SECRET_KEY` | No | API key for authentication |--## Development--```bash-# Start dev server-pnpm dev--# Build for production-pnpm build--# Preview production build-pnpm preview-```--## Sync Commands--Content synchronization uses [Vercel Workflow](https://github.com/vercel/workflow) for durable execution with automatic retries.--```bash-# Start the dev server first-pnpm dev--# In another terminal, trigger sync-curl -X POST http://localhost:3000/api/sync--# Monitor workflow execution-pnpm workflow:web-```--## API Endpoints--### GET /api--Health check and API information.--### GET /api/sources--List all configured content sources.--**Response:**-```json-{- "total": 25,- "github": {- "count": 23,- "sources": [...]- },- "youtube": {- "count": 2,- "sources": [...]- }-}-```--### POST /api/sync--Sync all sources.--**Body (optional):**-```json-{- "reset": false,- "push": true-}-```--**Response:**-```json-{- "status": "started",- "message": "Sync workflow started. Use `pnpm workflow:web` to monitor.",- "options": { "reset": false, "push": true }-}-```--### POST /api/sync/:source--Sync a specific source.--**Params:**-- `source`: Source ID (e.g., `nuxt`, `nuxt-ui`, `h3`)--**Body (optional):**-```json-{- "reset": false,- "push": true-}-```--## Configuration--Sources are configured in `savoir.config.ts` at the project root:--```typescript-import { defineConfig } from '@savoir/config'--export default defineConfig({- sources: {- github: [- { id: 'nuxt', repo: 'nuxt/nuxt', contentPath: 'docs' },- { id: 'nitro', repo: 'nitrojs/nitro', branch: 'v3' },- ],- youtube: [- { id: 'alex-lichter', channelId: 'UCqFPgMzGbLjd-MX-h3Z5aQA' },- ],- },-})-```--See [SOURCES.md](/docs/SOURCES.md) for details on source configuration.diff --git a/apps/api/index.html b/apps/api/index.htmldeleted file mode 100644index 9867eea..0000000--- a/apps/api/index.html+++ /dev/null@@ -1,20 +0,0 @@-<!doctype html>-<html lang="en">-<head>- <meta charset="utf-8">- <meta name="viewport" content="width=device-width,initial-scale=1">- <title>Nitro Starter</title>- <link rel="preconnect" href="https://fonts.googleapis.com">- <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>- <link href="https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600&display=swap" rel="stylesheet">- <link rel="stylesheet" href="/styles.css">-</head>-<body>- <main class="card">- <h1>This is your brand new Nitro project π</h1>- <p>Get started by editing the <code>index.html</code> and <code>routes/api/index.ts</code> files.</p>- <p>Learn more from π <a href="https://v3.nitro.build/docs" target="_blank" rel="noopener noreferrer">Nitro Documentation</a></p>- <pre class="api"><code>{{{ serverFetch("/api") }}}</code></pre>- </main>-</body>-</html>diff --git a/apps/api/lib/logger.ts b/apps/api/lib/logger.tsdeleted file mode 100644index c62f87b..0000000--- a/apps/api/lib/logger.ts+++ /dev/null@@ -1,18 +0,0 @@-import { createLogger, getLogger } from '@savoir/logger'--/**- * Initialize the API logger- * Call this once at application startup- */-export function initLogger() {- return createLogger({- env: {- service: 'api',- environment: process.env.NODE_ENV ?? 'development',- commitHash: process.env.COMMIT_SHA,- version: '0.1.0',- },- })-}--export { getLogger }diff --git a/apps/api/middleware/auth.ts b/apps/api/middleware/auth.tsdeleted file mode 100644index bf25f88..0000000--- a/apps/api/middleware/auth.ts+++ /dev/null@@ -1,51 +0,0 @@-import { defineMiddleware, getRequestURL, HTTPError } from 'nitro/h3'-import { useRuntimeConfig } from 'nitro/runtime-config'--/** Paths that don't require authentication */-const PUBLIC_PATHS = [- '/api', // Health check- '/.well-known/',- '/health',- '/favicon.ico',-]--function isPublicPath(pathname: string): boolean {- return PUBLIC_PATHS.some(path =>- pathname === path || pathname.startsWith(`${path}/`.replace('//', '/')),- )-}--/**- * Optional API key authentication middleware- *- * Only enforces authentication if SAVOIR_SECRET_KEY is set.- * If not set, all requests are allowed (useful for development).- *- * Expected header: Authorization: Bearer <api-key>- */-export default defineMiddleware((event, next) => {- const config = useRuntimeConfig()- const secretKey = config.savoirSecretKey-- // If no secret key configured, skip authentication- if (!secretKey) {- return next()- }-- const url = getRequestURL(event)-- // Skip auth for public paths- if (isPublicPath(url.pathname)) {- return next()- }-- // Validate API key- const authHeader = event.req.headers.get('Authorization')- const apiKey = authHeader?.replace('Bearer ', '')-- if (!apiKey || apiKey !== secretKey) {- throw new HTTPError({ status: 401, message: 'Invalid or missing API key' })- }-- return next()-})diff --git a/apps/api/middleware/logger.ts b/apps/api/middleware/logger.tsdeleted file mode 100644index 5bcab97..0000000--- a/apps/api/middleware/logger.ts+++ /dev/null@@ -1,70 +0,0 @@-import { defineMiddleware, getRequestURL, type H3Event } from 'nitro/h3'-import { getLogger, type RequestLogger } from '@savoir/logger'--declare module 'nitro/h3' {- interface H3EventContext {- log: RequestLogger- }-}--/** Paths to exclude from automatic logging (internal/health endpoints) */-const EXCLUDED_PATHS = [- '/.well-known/',- '/health',- '/favicon.ico',-]--function getHttpMethod(event: H3Event): string {- return (event as unknown as { method?: string }).method ?? 'GET'-}--function shouldLog(pathname: string): boolean {- return !EXCLUDED_PATHS.some(excluded => pathname.startsWith(excluded))-}--/**- * Request logging middleware- * Creates a wide event logger for each request- * Only emits logs for API endpoints (excludes internal workflow paths)- */-export default defineMiddleware(async (event, next) => {- const url = getRequestURL(event)- const logger = getLogger()- const shouldEmit = shouldLog(url.pathname)-- // Create request-scoped logger with initial context- const log = logger.request({- method: getHttpMethod(event),- path: url.pathname,- requestId: crypto.randomUUID(),- })-- // Attach to event context for use in handlers- event.context.log = log-- try {- const response = await next()-- log.set({- statusCode: 200,- outcome: 'success',- })-- return response- } catch (error) {- const statusCode = (error as { statusCode?: number }).statusCode ?? 500-- log.error(error as Error)- log.set({- statusCode,- outcome: 'error',- })-- throw error- } finally {- // Only emit logs for non-excluded paths, or always emit on errors- if (shouldEmit || log.getContext().outcome === 'error') {- log.emit()- }- }-})diff --git a/apps/api/nitro.config.ts b/apps/api/nitro.config.tsdeleted file mode 100644index 4b8dc54..0000000--- a/apps/api/nitro.config.ts+++ /dev/null@@ -1,38 +0,0 @@-import { defineConfig } from 'nitro'--export default defineConfig({- serverDir: './',-- modules: ['workflow/nitro'],-- storage: {- kv: {- driver: 'fs',- base: '.data/kv',- },- },-- $production: {- storage: {- kv: {- driver: 'upstash',- url: process.env.KV_REST_API_URL,- token: process.env.KV_REST_API_TOKEN,- },- },- },-- runtimeConfig: {- // GitHub token for API access- githubToken: process.env.GITHUB_TOKEN || '',-- // Snapshot repository (owner/repo format)- snapshotRepo: process.env.GITHUB_SNAPSHOT_REPO || '',-- // Snapshot branch (default: main)- snapshotBranch: process.env.GITHUB_SNAPSHOT_BRANCH || 'main',-- // API secret key for authentication- savoirSecretKey: process.env.SAVOIR_SECRET_KEY || '',- },-})diff --git a/apps/api/package.json b/apps/api/package.jsondeleted file mode 100644index b9b0213..0000000--- a/apps/api/package.json+++ /dev/null@@ -1,33 +0,0 @@-{- "name": "@savoir/api",- "private": true,- "type": "module",- "scripts": {- "build": "nitro build",- "dev": "nitro dev --port 3001",- "preview": "npx srvx --prod .output/",- "sync:docs": "curl -X POST http://localhost:3001/api/sync",- "snapshot:create": "curl -X POST http://localhost:3001/api/sandbox/snapshot",- "workflow:web": "npx workflow web",- "typecheck": "tsc --noEmit",- "lint": "eslint .",- "lint:fix": "eslint . --fix"- },- "dependencies": {- "@savoir/config": "workspace:*",- "@savoir/logger": "workspace:*",- "@types/node": "^25.0.9",- "@upstash/redis": "^1.36.1",- "@vercel/sandbox": "^1.2.0",- "giget": "^2.0.0",- "pathe": "^2.0.3",- "workflow": "^4.0.1-beta.48",- "zod": "^4.3.5"- },- "devDependencies": {- "eslint": "^9.28.0",- "nitro": "latest",- "rolldown": "latest",- "typescript": "^5.8.3"- }-}diff --git a/apps/api/plugins/config.ts b/apps/api/plugins/config.tsdeleted file mode 100644index 414c4ad..0000000--- a/apps/api/plugins/config.ts+++ /dev/null@@ -1,10 +0,0 @@-import { definePlugin } from 'nitro'-import { setConfigCwd } from '@savoir/config'--/**- * Set the config directory at startup.- */-export default definePlugin(() => {- // Config is at the project root (parent of apps/api)- setConfigCwd(process.cwd().replace(/\/apps\/api$/, ''))-})diff --git a/apps/api/plugins/logger.ts b/apps/api/plugins/logger.tsdeleted file mode 100644index 13d3613..0000000--- a/apps/api/plugins/logger.ts+++ /dev/null@@ -1,9 +0,0 @@-import { definePlugin } from 'nitro'-import { initLogger } from '~/lib/logger'--/**- * Initialize the logger when the server starts- */-export default definePlugin(() => {- initLogger()-})diff --git a/apps/api/public/styles.css b/apps/api/public/styles.cssdeleted file mode 100644index dabf6e8..0000000--- a/apps/api/public/styles.css+++ /dev/null@@ -1,71 +0,0 @@-:root {- --bg: #f7fafc;- --card: #fff;- --muted: #6b7280;- --accent: #0ea5a4;- --code-bg: #0f172a;- --code-color: #e6eef8;- --radius: 12px;-}--html,-body {- height: 100%-}--body {- margin: 0;- font-family: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;- background: var(--bg);- color: #0f172a;- display: flex;- align-items: center;- justify-content: center;- padding: 48px;- -webkit-font-smoothing: antialiased;- -moz-osx-font-smoothing: grayscale;-}--.card {- background: var(--card);- padding: 28px;- border-radius: var(--radius);- max-width: 760px;- width: 100%;- box-shadow: 0 6px 20px rgba(2, 6, 23, 0.08);- border: 1px solid rgba(15, 23, 42, 0.04);-}--h1 {- margin: 0 0 6px 0;- font-weight: 600;- font-size: 1.375rem;- color: #0f172a;-}--p {- margin: 6px 0;- color: var(--muted)-}--a {- color: var(--accent);- text-decoration: none-}--code,-pre {- font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, "Roboto Mono", "Helvetica Neue", monospace;- font-size: 0.9rem;-}--pre.api {- margin-top: 16px;- background: var(--code-bg);- color: var(--code-color);- padding: 12px 16px;- border-radius: 8px;- overflow: auto;- white-space: pre-wrap;- word-break: break-word;-}diff --git a/apps/api/routes/api/index.ts b/apps/api/routes/api/index.tsdeleted file mode 100644index f46cd9b..0000000--- a/apps/api/routes/api/index.ts+++ /dev/null@@ -1,21 +0,0 @@-import { defineHandler } from 'nitro/h3'--/**- * GET /api- * API health check and information- */-export default defineHandler(() => {- return {- name: 'Savoir API',- version: '0.1.0',- endpoints: {- sources: {- list: 'GET /api/sources',- },- sync: {- all: 'POST /api/sync',- one: 'POST /api/sync/:source',- },- },- }-})diff --git a/apps/api/routes/api/sandbox/snapshot.post.ts b/apps/api/routes/api/sandbox/snapshot.post.tsdeleted file mode 100644index 5ac897b..0000000--- a/apps/api/routes/api/sandbox/snapshot.post.ts+++ /dev/null@@ -1,33 +0,0 @@-import { start } from 'workflow/api'-import { defineHandler } from 'nitro/h3'-import { useRuntimeConfig } from 'nitro/runtime-config'-import { createSnapshot } from '~/workflows/create-snapshot'--/**- * POST /api/sandbox/snapshot- * Create a new sandbox snapshot from the documentation repository.- *- * This workflow:- * 1. Creates a sandbox from the GitHub snapshot repo- * 2. Takes a snapshot for instant startup- * 3. Stores the snapshot ID in KV storage- */-export default defineHandler(async (event) => {- const config = useRuntimeConfig()- const { log } = event.context-- const snapshotConfig = {- githubToken: config.githubToken, // For private repos- snapshotRepo: config.snapshotRepo,- snapshotBranch: config.snapshotBranch,- }-- log.set({ snapshotRepo: config.snapshotRepo })-- await start(createSnapshot, [snapshotConfig])-- return {- status: 'started',- message: 'Snapshot workflow started. Use `pnpm workflow:web` to monitor.',- }-})diff --git a/apps/api/routes/api/sources/index.get.ts b/apps/api/routes/api/sources/index.get.tsdeleted file mode 100644index fa5bd7c..0000000--- a/apps/api/routes/api/sources/index.get.ts+++ /dev/null@@ -1,38 +0,0 @@-import { defineHandler } from 'nitro/h3'-import { getSources, getGitHubSources, getYouTubeSources } from '~/workflows/sync-docs'--/**- * GET /api/sources- * Returns the list of configured content sources- */-export default defineHandler(async () => {- const github = (await getGitHubSources()).map((s) => ({- id: s.id,- label: s.label,- type: s.type,- repo: s.repo,- branch: s.branch,- outputPath: s.outputPath || s.id,- readmeOnly: s.readmeOnly || false,- }))-- const youtube = (await getYouTubeSources()).map((s) => ({- id: s.id,- label: s.label,- type: s.type,- channelId: s.channelId,- handle: s.handle,- }))-- return {- total: (await getSources()).length,- github: {- count: github.length,- sources: github,- },- youtube: {- count: youtube.length,- sources: youtube,- },- }-})diff --git a/apps/api/routes/api/sync/[source].post.ts b/apps/api/routes/api/sync/[source].post.tsdeleted file mode 100644index 8ce35d9..0000000--- a/apps/api/routes/api/sync/[source].post.ts+++ /dev/null@@ -1,39 +0,0 @@-import { start } from 'workflow/api'-import { defineHandler, getValidatedRouterParams } from 'nitro/h3'-import { useRuntimeConfig } from 'nitro/runtime-config'-import { z } from 'zod'-import { syncDocumentation } from '~/workflows/sync-docs'--const paramsSchema = z.object({- source: z.string().min(1),-})--/**- * POST /api/sync/:source- * Sync a specific source using Vercel Sandbox.- *- * Params:- * - source: Source ID to sync- */-export default defineHandler(async (event) => {- const { source } = await getValidatedRouterParams(event, paramsSchema.parse)- const config = useRuntimeConfig()-- const syncConfig = {- githubToken: config.githubToken,- snapshotRepo: config.snapshotRepo,- snapshotBranch: config.snapshotBranch,- }-- const options = {- sourceFilter: source,- }-- await start(syncDocumentation, [syncConfig, options])-- return {- status: 'started',- message: `Sync workflow started for source "${source}". Use \`pnpm workflow:web\` to monitor.`,- source,- }-})diff --git a/apps/api/routes/api/sync/index.post.ts b/apps/api/routes/api/sync/index.post.tsdeleted file mode 100644index 0df7e6c..0000000--- a/apps/api/routes/api/sync/index.post.ts+++ /dev/null@@ -1,59 +0,0 @@-import { start } from 'workflow/api'-import { defineHandler, readValidatedBody } from 'nitro/h3'-import { useRuntimeConfig } from 'nitro/runtime-config'-import { z } from 'zod'-import { syncDocumentation } from '~/workflows/sync-docs'--const sourceSchema = z.object({- id: z.string(),- type: z.enum(['github', 'youtube']),- label: z.string(),- // GitHub fields- repo: z.string().nullable().optional(),- branch: z.string().nullable().optional(),- contentPath: z.string().nullable().optional(),- outputPath: z.string().nullable().optional(),- readmeOnly: z.boolean().nullable().optional(),- // YouTube fields- channelId: z.string().nullable().optional(),- handle: z.string().nullable().optional(),- maxVideos: z.number().nullable().optional(),-})--const bodySchema = z- .object({- sourceFilter: z.string().optional(),- sources: z.array(sourceSchema).optional(),- })- .optional()--/**- * POST /api/sync- * Sync all sources using Vercel Sandbox.- *- * Body (optional):- * - sourceFilter: string - Only sync a specific source- * - sources: array - Sources to sync (passed from chat app DB)- */-export default defineHandler(async (event) => {- const body = await readValidatedBody(event, data => bodySchema.parse(data))- const config = useRuntimeConfig()-- const syncConfig = {- githubToken: config.githubToken,- snapshotRepo: config.snapshotRepo,- snapshotBranch: config.snapshotBranch,- }-- const options = {- sourceFilter: body?.sourceFilter,- sources: body?.sources,- }-- await start(syncDocumentation, [syncConfig, options])-- return {- status: 'started',- message: 'Sync workflow started. Use `pnpm workflow:web` to monitor.',- }-})diff --git a/apps/api/tsconfig.json b/apps/api/tsconfig.jsondeleted file mode 100644index 1099389..0000000--- a/apps/api/tsconfig.json+++ /dev/null@@ -1,8 +0,0 @@-{- "extends": ["nitro/tsconfig"],- "compilerOptions": {- "paths": {- "~/*": ["./*"]- }- }-}diff --git a/apps/api/workflows/create-snapshot/index.ts b/apps/api/workflows/create-snapshot/index.tsdeleted file mode 100644index f2782de..0000000--- a/apps/api/workflows/create-snapshot/index.ts+++ /dev/null@@ -1 +0,0 @@-export { createSnapshot } from './workflow.js'diff --git a/apps/api/workflows/create-snapshot/workflow.ts b/apps/api/workflows/create-snapshot/workflow.tsdeleted file mode 100644index 53cfb31..0000000--- a/apps/api/workflows/create-snapshot/workflow.ts+++ /dev/null@@ -1,148 +0,0 @@-import { mkdir, writeFile } from 'node:fs/promises'-import { dirname, join } from 'node:path'-import { Sandbox } from '@vercel/sandbox'-import { getLogger } from '@savoir/logger'-import { FatalError } from 'workflow'-import type { SnapshotMetadata } from '../../lib/sandbox/types.js'--interface SnapshotConfig {- // GitHub auth for private repos- githubToken?: string- // Snapshot repo config- snapshotRepo: string- snapshotBranch: string-}--interface SnapshotWorkflowResult {- success: boolean- snapshotId?: string- error?: string-}--/**- * Step: Create sandbox and take snapshot- */-async function createAndSnapshotStep(config: SnapshotConfig): Promise<string> {- 'use step'-- const logger = getLogger()- const repoUrl = `https://github.com/${config.snapshotRepo}.git`-- logger.log('snapshot', `Creating sandbox from: ${repoUrl}#${config.snapshotBranch}`)-- // Build git source with optional GitHub auth for private repos- const source: {- type: 'git'- url: string- revision: string- username?: string- password?: string- } = {- type: 'git',- url: repoUrl,- revision: config.snapshotBranch,- }-- // Add GitHub credentials for private repos- if (config.githubToken) {- source.username = 'x-access-token'- source.password = config.githubToken- }-- const sandbox = await Sandbox.create({- source,- timeout: 2 * 60 * 1000, // 2 minutes- runtime: 'node24',- })-- logger.log('snapshot', `Sandbox created: ${sandbox.sandboxId}`)- logger.log('snapshot', 'Taking snapshot...')-- // Take snapshot (this also stops the sandbox automatically)- const snapshot = await sandbox.snapshot()-- logger.log('snapshot', `Snapshot created: ${snapshot.snapshotId}`)- return snapshot.snapshotId-}--/**- * Step: Store snapshot metadata- */-async function storeSnapshotMetadataStep(- snapshotId: string,- sourceRepo: string,-): Promise<void> {- 'use step'-- const logger = getLogger()- logger.log('snapshot', 'Storing snapshot metadata...')-- const metadata: SnapshotMetadata = {- snapshotId,- createdAt: Date.now(),- sourceRepo,- }-- // Check if we're in production (Upstash env vars are set)- const isProduction = !!(process.env.KV_REST_API_URL && process.env.KV_REST_API_TOKEN)-- if (isProduction) {- // eslint-disable-next-line- const { Redis } = await import('@upstash/redis')- const redis = new Redis({- url: process.env.KV_REST_API_URL!,- token: process.env.KV_REST_API_TOKEN!,- })- await redis.set('snapshot:current', metadata)- logger.log('snapshot', 'Snapshot metadata stored in Upstash Redis')- } else {- // Use filesystem in development- const kvDir = join(process.cwd(), '.data', 'kv')- const filePath = join(kvDir, 'snapshot:current.json')-- await mkdir(dirname(filePath), { recursive: true })- await writeFile(filePath, JSON.stringify(metadata, null, 2))- logger.log('snapshot', `Snapshot metadata stored in ${filePath}`)- }-}--/**- * Workflow: Create a new snapshot from the documentation repository- * Uses Vercel OIDC token automatically.- * Supports private repos via GitHub token authentication.- */-export async function createSnapshot(- config: SnapshotConfig,-): Promise<SnapshotWorkflowResult> {- 'use workflow'-- const logger = getLogger()-- // Validate required configuration- if (!config.snapshotRepo) {- throw new FatalError('GITHUB_SNAPSHOT_REPO is not configured')- }-- try {- // Step 1: Create sandbox and take snapshot- const snapshotId = await createAndSnapshotStep(config)-- // Step 2: Store snapshot metadata- await storeSnapshotMetadataStep(snapshotId, config.snapshotRepo)-- logger.log('snapshot', `β Snapshot workflow completed: ${snapshotId}`)-- return {- success: true,- snapshotId,- }- } catch (error) {- const errorMessage = error instanceof Error ? error.message : String(error)- logger.log('snapshot', `β Snapshot workflow failed: ${errorMessage}`)-- return {- success: false,- error: errorMessage,- }- }-}diff --git a/apps/api/workflows/sync-docs/index.ts b/apps/api/workflows/sync-docs/index.tsdeleted file mode 100644index 3888ab9..0000000--- a/apps/api/workflows/sync-docs/index.ts+++ /dev/null@@ -1,5 +0,0 @@-// Workflow-export { syncDocumentation } from './workflow.js'--// Re-export utils for external consumers (API routes)-export * from './utils/index.js'diff --git a/apps/api/workflows/sync-docs/steps/get-sources.ts b/apps/api/workflows/sync-docs/steps/get-sources.tsdeleted file mode 100644index 8fa3ae0..0000000--- a/apps/api/workflows/sync-docs/steps/get-sources.ts+++ /dev/null@@ -1,68 +0,0 @@-import { getLogger } from '@savoir/logger'-import { FatalError } from 'workflow'-import type { DBSource, GitHubSource } from '../utils/index.js'-import { getGitHubSources, getSourceById } from '../utils/index.js'--/**- * Normalize a DB source to a GitHubSource- */-function normalizeGitHubSource(source: DBSource): GitHubSource {- return {- id: source.id,- type: 'github',- label: source.label,- repo: source.repo || '',- branch: source.branch || 'main',- contentPath: source.contentPath || '',- outputPath: source.outputPath || source.id,- readmeOnly: source.readmeOnly ?? false,- additionalSyncs: [],- }-}--interface GetSourcesOptions {- sourceFilter?: string- /** Sources passed directly from DB */- sources?: DBSource[]-}--export async function getSourcesToSync(options: GetSourcesOptions = {}): Promise<GitHubSource[]> {- 'use step'-- const logger = getLogger()- const { sourceFilter, sources: dbSources } = options-- let sources: GitHubSource[]-- // If sources are passed from DB, use them directly- if (dbSources && dbSources.length > 0) {- // Filter to GitHub sources only and normalize- sources = dbSources- .filter(s => s.type === 'github')- .map(normalizeGitHubSource)-- logger.log('sync', `Using ${sources.length} source(s) from DB`)- } else {- // Fall back to loading from config file- sources = await getGitHubSources()- logger.log('sync', `Loaded ${sources.length} source(s) from config`)- }-- // Apply filter if specified- if (sourceFilter) {- const filteredSource = sources.find(s => s.id === sourceFilter)- if (!filteredSource) {- // Try loading from config as fallback- const source = await getSourceById(sourceFilter)- if (!source || source.type !== 'github') {- throw new FatalError(`Source not found: ${sourceFilter}`)- }- sources = [source as GitHubSource]- } else {- sources = [filteredSource]- }- }-- logger.log('sync', `Found ${sources.length} source(s) to sync`)- return sources-}diff --git a/apps/api/workflows/sync-docs/steps/index.ts b/apps/api/workflows/sync-docs/steps/index.tsdeleted file mode 100644index 8d61685..0000000--- a/apps/api/workflows/sync-docs/steps/index.ts+++ /dev/null@@ -1,4 +0,0 @@-export { getSourcesToSync } from './get-sources.js'--// Sandbox-based step (single step to avoid serialization issues)-export { syncAllSourcesInSandbox } from './sandbox-sync.js'diff --git a/apps/api/workflows/sync-docs/utils/index.ts b/apps/api/workflows/sync-docs/utils/index.tsdeleted file mode 100644index c84f28b..0000000--- a/apps/api/workflows/sync-docs/utils/index.ts+++ /dev/null@@ -1,22 +0,0 @@-// Types and sources from @savoir/config-export type {- Source,- GitHubSource,- YouTubeSource,- CustomSource,- ContentFile,- SyncResult,- SnapshotConfig,- SyncConfig,- SyncOptions,- PushResult,- DBSource,-} from '@savoir/config'--export {- getSources,- getGitHubSources,- getYouTubeSources,- getSourceById,- getSourcesByType,-} from '@savoir/config'diff --git a/apps/api/workflows/sync-docs/workflow.ts b/apps/api/workflows/sync-docs/workflow.tsdeleted file mode 100644index 6754ace..0000000--- a/apps/api/workflows/sync-docs/workflow.ts+++ /dev/null@@ -1,90 +0,0 @@-import { useStorage } from 'nitro/storage'-import { getLogger } from '@savoir/logger'-import { FatalError } from 'workflow'-import type { SnapshotMetadata } from '../../lib/sandbox/types.js'-import { KV_KEYS } from '../../lib/sandbox/types.js'-import type { SyncConfig, SyncOptions, SyncResult } from './utils/index.js'-import {- getSourcesToSync,- syncAllSourcesInSandbox,-} from './steps/index.js'--interface SyncWorkflowResult {- success: boolean- snapshotId?: string- summary: {- total: number- success: number- failed: number- files: number- }- results: SyncResult[]-}--/**- * Workflow: Sync documentation using Vercel Sandbox.- *- * All filesystem operations run inside a Vercel Sandbox,- * making it compatible with serverless environments.- */-export async function syncDocumentation(- config: SyncConfig,- options: SyncOptions = {},-): Promise<SyncWorkflowResult> {- 'use workflow'-- const { sourceFilter, sources: dbSources } = options- const logger = getLogger()-- if (!config.snapshotRepo) {- throw new FatalError('GITHUB_SNAPSHOT_REPO is not configured')- }-- // Step 1: Get sources to sync- const sources = await getSourcesToSync({ sourceFilter, sources: dbSources })-- if (sources.length === 0) {- throw new FatalError('No sources to sync')- }-- logger.log('sync', `Syncing ${sources.length} sources...`)-- // Step 2: Sync all sources in sandbox and get snapshot- // This is a single step because the Sandbox object is not serializable- const { snapshotId, results } = await syncAllSourcesInSandbox(- sources,- config.snapshotRepo,- config.snapshotBranch || 'main',- config.githubToken,- )-- const successCount = results.filter(r => r.success).length- const failCount = results.filter(r => !r.success).length- const totalFiles = results.reduce((sum, r) => sum + (r.fileCount || 0), 0)-- // Step 3: Store snapshot metadata in KV- const metadata: SnapshotMetadata = {- snapshotId,- createdAt: Date.now(),- sourceRepo: config.snapshotRepo,- }-- const kv = useStorage('kv')- await kv.setItem(KV_KEYS.CURRENT_SNAPSHOT, metadata)- logger.log('sync', 'Snapshot metadata stored in KV')-- const status = failCount === 0 ? 'β' : 'β'- logger.log('sync', `${status} Done: ${successCount}/${sources.length} sources, ${totalFiles} files`)-- return {- success: failCount === 0,- snapshotId,- summary: {- total: sources.length,- success: successCount,- failed: failCount,- files: totalFiles,- },- results,- }-}diff --git a/apps/chat/app/components/SourceCard.vue b/apps/chat/app/components/SourceCard.vueindex bd66fe6..55b274b 100644--- a/apps/chat/app/components/SourceCard.vue+++ b/apps/chat/app/components/SourceCard.vue@@ -55,7 +55,9 @@ const sourceIdentifier = computed(() => {<div class="flex items-start justify-between gap-4"><div class="min-w-0"><div class="flex items-baseline gap-2">- <h3 class="font-medium text-[15px] text-highlighted leading-tight">{{ source.label }}</h3>+ <h3 class="font-medium text-[15px] text-highlighted leading-tight">+ {{ source.label }}+ </h3><span class="text-muted/50">Β·</span><av-if="sourceUrl"diff --git a/apps/chat/app/components/SourceModal.vue b/apps/chat/app/components/SourceModal.vueindex 8491eff..9ecd636 100644--- a/apps/chat/app/components/SourceModal.vue+++ b/apps/chat/app/components/SourceModal.vue@@ -83,8 +83,12 @@ async function save() {><template #header><div>- <h2 class="text-base font-medium text-highlighted">{{ isEditing ? 'Edit Source' : 'Add Source' }}</h2>- <p class="text-sm text-muted mt-0.5">{{ isEditing ? 'Update the source configuration' : 'Configure a new content source' }}</p>+ <h2 class="text-base font-medium text-highlighted">+ {{ isEditing ? 'Edit Source' : 'Add Source' }}+ </h2>+ <p class="text-sm text-muted mt-0.5">+ {{ isEditing ? 'Update the source configuration' : 'Configure a new content source' }}+ </p></div></template>@@ -107,12 +111,16 @@ async function save() {<span class="text-red-500">*</span></label><UInput v-model="form.label" placeholder="e.g. Nuxt Documentation" class="w-full" />- <p class="text-xs text-muted">A friendly name to identify this source</p>+ <p class="text-xs text-muted">+ A friendly name to identify this source+ </p></div><template v-if="form.type === 'github'"><div class="border-t border-default pt-4 mt-1">- <p class="text-xs font-medium text-muted uppercase tracking-wide mb-4">GitHub Configuration</p>+ <p class="text-xs font-medium text-muted uppercase tracking-wide mb-4">+ GitHub Configuration+ </p><div class="flex flex-col gap-4"><div class="flex flex-col gap-1.5">@@ -126,7 +134,9 @@ async function save() {icon="i-simple-icons-github"class="w-full"/>- <p class="text-xs text-muted">The repository in owner/repo format</p>+ <p class="text-xs text-muted">+ The repository in owner/repo format+ </p></div><div class="grid grid-cols-2 gap-3">@@ -158,13 +168,19 @@ async function save() {icon="i-lucide-folder"class="w-full"/>- <p class="text-xs text-muted">Path to the documentation folder</p>+ <p class="text-xs text-muted">+ Path to the documentation folder+ </p></div><div class="flex items-center justify-between py-2 px-3 rounded-lg bg-muted"><div>- <p class="text-sm font-medium text-highlighted">README Only</p>- <p class="text-xs text-muted">Only sync the README.md file</p>+ <p class="text-sm font-medium text-highlighted">+ README Only+ </p>+ <p class="text-xs text-muted">+ Only sync the README.md file+ </p></div><USwitch v-model="form.readmeOnly" /></div>@@ -174,7 +190,9 @@ async function save() {<template v-if="form.type === 'youtube'"><div class="border-t border-default pt-4 mt-1">- <p class="text-xs font-medium text-muted uppercase tracking-wide mb-4">YouTube Configuration</p>+ <p class="text-xs font-medium text-muted uppercase tracking-wide mb-4">+ YouTube Configuration+ </p><div class="flex flex-col gap-4"><div class="flex flex-col gap-1.5">@@ -185,7 +203,9 @@ async function save() {icon="i-simple-icons-youtube"class="w-full"/>- <p class="text-xs text-muted">The unique channel identifier (starts with UC)</p>+ <p class="text-xs text-muted">+ The unique channel identifier (starts with UC)+ </p></div><div class="flex flex-col gap-1.5">@@ -196,7 +216,9 @@ async function save() {icon="i-lucide-at-sign"class="w-full"/>- <p class="text-xs text-muted">The channel's @handle for display</p>+ <p class="text-xs text-muted">+ The channel's @handle for display+ </p></div><div class="flex flex-col gap-1.5">@@ -209,7 +231,9 @@ async function save() {icon="i-lucide-video"class="w-full"/>- <p class="text-xs text-muted">Maximum number of videos to sync (default: 50)</p>+ <p class="text-xs text-muted">+ Maximum number of videos to sync (default: 50)+ </p></div></div></div>diff --git a/apps/chat/app/components/UserMenu.vue b/apps/chat/app/components/UserMenu.vueindex 2ad68a5..8729756 100644--- a/apps/chat/app/components/UserMenu.vue+++ b/apps/chat/app/components/UserMenu.vue@@ -1,6 +1,6 @@<script setup lang="ts">import type { DropdownMenuItem } from '@nuxt/ui'-import type { SourcesResponse } from '@savoir/sdk'+import type { GitHubSource, SourcesResponse, YouTubeSource } from '@savoir/sdk'defineProps<{collapsed?: boolean@@ -14,11 +14,11 @@ const toast = useToast()const colors = ['red', 'orange', 'amber', 'yellow', 'lime', 'green', 'emerald', 'teal', 'cyan', 'sky', 'blue', 'indigo', 'violet', 'purple', 'fuchsia', 'pink', 'rose']const neutrals = ['slate', 'gray', 'zinc', 'neutral', 'stone']-const { data: sources } = useLazyFetch<SourcesResponse>('/api/admin/sources')+const { data: sources } = useLazyFetch<SourcesResponse>('/api/sources')async function triggerSync() {try {- await $fetch('/api/admin/sync', { method: 'POST' })+ await $fetch('/api/sync', { method: 'POST' })toast.add({title: 'Sync started',description: 'Documentation sync workflow has been triggered.',@@ -35,7 +35,7 @@ async function triggerSync() {async function triggerSyncSource(sourceId: string, label: string) {try {- await $fetch(`/api/admin/sync/${sourceId}`, { method: 'POST' })+ await $fetch(`/api/sync/${sourceId}`, { method: 'POST' })toast.add({title: 'Sync started',description: `Sync workflow for "${label}" has been triggered.`,@@ -52,7 +52,7 @@ async function triggerSyncSource(sourceId: string, label: string) {async function triggerSnapshot() {try {- await $fetch('/api/admin/snapshot', { method: 'POST' })+ await $fetch('/api/sandbox/snapshot', { method: 'POST' })toast.add({title: 'Snapshot started',description: 'Snapshot creation workflow has been triggered.',@@ -220,12 +220,12 @@ const items = computed<DropdownMenuItem[][]>(() => ([label: 'Sync source',icon: 'i-lucide-git-branch',children: sources.value ? [- ...sources.value.github.sources.map(source => ({+ ...sources.value.github.sources.map((source: GitHubSource) => ({label: source.label,icon: 'i-simple-icons-github',onSelect: () => triggerSyncSource(source.id, source.label),})),- ...sources.value.youtube.sources.map(source => ({+ ...sources.value.youtube.sources.map((source: YouTubeSource) => ({label: source.label,icon: 'i-simple-icons-youtube',onSelect: () => triggerSyncSource(source.id, source.label),diff --git a/apps/chat/app/pages/admin/sources.vue b/apps/chat/app/pages/admin/sources.vueindex a851f80..bb6bac8 100644--- a/apps/chat/app/pages/admin/sources.vue+++ b/apps/chat/app/pages/admin/sources.vue@@ -64,10 +64,8 @@ async function triggerSync(sourceId?: string) {if (!sourceId) {isSyncingAll.value = true}- await $fetch('/api/admin/sync', {- method: 'POST',- body: sourceId ? { sourceId } : {},- })+ const endpoint = sourceId ? `/api/sync/${sourceId}` : '/api/sync'+ await $fetch(endpoint, { method: 'POST' })toast.add({title: sourceId ? 'Sync started' : 'Full sync started',description: 'The sync workflow has been triggered.',@@ -107,7 +105,7 @@ function handleSaved() {</h1><div class="flex items-center gap-1.5"><UButton- v-if="sources?.github?.length || sources?.youtube?.length"+ v-if="sources?.github?.count || sources?.youtube?.count"icon="i-lucide-refresh-cw"color="neutral"variant="ghost"@@ -132,7 +130,7 @@ function handleSaved() {</header><div- v-if="!sources?.github?.length && !sources?.youtube?.length"+ v-if="!sources?.github?.count && !sources?.youtube?.count"class="flex flex-col items-center py-16 border border-dashed border-default rounded-xl"><div class="size-10 rounded-lg bg-muted flex items-center justify-center mb-3">@@ -160,14 +158,14 @@ function handleSaved() {<h2 class="text-[13px] font-medium text-muted">GitHub</h2>- <span class="text-[13px] text-muted/60">{{ sources?.github?.length || 0 }}</span>+ <span class="text-[13px] text-muted/60">{{ sources?.github?.count || 0 }}</span></header><div- v-if="sources?.github?.length"+ v-if="sources?.github?.count"class="rounded-lg border border-default bg-default divide-y divide-default">- <div v-for="source in sources.github" :key="source.id" class="px-4">+ <div v-for="source in sources.github.sources" :key="source.id" class="px-4"><SourceCard:source@edit="editingSource = source"@@ -192,14 +190,14 @@ function handleSaved() {<h2 class="text-[13px] font-medium text-muted">YouTube</h2>- <span class="text-[13px] text-muted/60">{{ sources?.youtube?.length || 0 }}</span>+ <span class="text-[13px] text-muted/60">{{ sources?.youtube?.count || 0 }}</span></header><div- v-if="sources?.youtube?.length"+ v-if="sources?.youtube?.count"class="rounded-lg border border-default bg-default divide-y divide-default">- <div v-for="source in sources.youtube" :key="source.id" class="px-4">+ <div v-for="source in sources.youtube.sources" :key="source.id" class="px-4"><SourceCard:source@edit="editingSource = source"diff --git a/apps/chat/nuxt.config.ts b/apps/chat/nuxt.config.tsindex b42608d..9bbab64 100644--- a/apps/chat/nuxt.config.ts+++ b/apps/chat/nuxt.config.ts@@ -4,7 +4,8 @@ export default defineNuxtConfig({'@nuxt/ui','@nuxtjs/mdc','@nuxthub/core',- 'nuxt-auth-utils'+ 'nuxt-auth-utils',+ 'workflow/nuxt',],devtools: { enabled: true },@@ -47,12 +48,16 @@ export default defineNuxtConfig({},runtimeConfig: {+ // Savoir SDK configsavoir: {- apiUrl: '',apiKey: '',+ secretKey: '',},+ // GitHub configgithub: {token: '',+ snapshotRepo: '',+ snapshotBranch: 'main',appId: '',appPrivateKey: '',webhookSecret: '',diff --git a/apps/chat/package.json b/apps/chat/package.jsonindex fbbcef5..9d6d59f 100644--- a/apps/chat/package.json+++ b/apps/chat/package.json@@ -11,10 +11,13 @@"lint": "eslint .","lint:fix": "eslint . --fix","db:generate": "nuxt db generate",- "db:migrate": "nuxt db migrate"+ "db:migrate": "nuxt db migrate",+ "db:seed": "nuxt task run db:seed-sources",+ "workflow:web": "npx workflow web",+ "sync:docs": "curl -X POST http://localhost:3000/api/sync",+ "snapshot:create": "curl -X POST http://localhost:3000/api/sandbox/snapshot"},"dependencies": {- "@savoir/sdk": "workspace:*","@savoir/logger": "workspace:*","@ai-sdk/gateway": "^3.0.0","@ai-sdk/vue": "^3.0.0",@@ -28,7 +31,9 @@"@upstash/redis": "^1.36.1","@vercel/blob": "^2.0.0","@vercel/functions": "^3.3.6",- "@vercel/sandbox": "^1.1.8",+ "@vercel/sandbox": "^1.2.0",+ "giget": "^3.1.1",+ "pathe": "^2.0.3","ai": "^6.0.31","date-fns": "^4.1.0","drizzle-orm": "^0.45.0",diff --git a/apps/chat/server/api/admin/snapshot.post.ts b/apps/chat/server/api/admin/snapshot.post.tsdeleted file mode 100644index 95e4425..0000000--- a/apps/chat/server/api/admin/snapshot.post.ts+++ /dev/null@@ -1,16 +0,0 @@-import { createSavoir } from '@savoir/sdk'--/**- * POST /api/admin/snapshot- * Trigger snapshot creation workflow- */-export default defineEventHandler(async () => {- const { savoir: savoirConfig } = useRuntimeConfig()-- const savoir = createSavoir({- apiUrl: savoirConfig.apiUrl,- apiKey: savoirConfig.apiKey || undefined,- })-- return await savoir.client.createSnapshot()-})diff --git a/apps/chat/server/api/admin/sources.get.ts b/apps/chat/server/api/admin/sources.get.tsdeleted file mode 100644index e90095d..0000000--- a/apps/chat/server/api/admin/sources.get.ts+++ /dev/null@@ -1,16 +0,0 @@-import { createSavoir } from '@savoir/sdk'--/**- * GET /api/admin/sources- * Get list of configured sources- */-export default defineEventHandler(async () => {- const { savoir: savoirConfig } = useRuntimeConfig()-- const savoir = createSavoir({- apiUrl: savoirConfig.apiUrl,- apiKey: savoirConfig.apiKey || undefined,- })-- return await savoir.client.getSources()-})diff --git a/apps/chat/server/api/admin/sync.post.ts b/apps/chat/server/api/admin/sync.post.tsdeleted file mode 100644index e419d5d..0000000--- a/apps/chat/server/api/admin/sync.post.ts+++ /dev/null@@ -1,32 +0,0 @@-import { createSavoir } from '@savoir/sdk'-import { db, schema } from '@nuxthub/db'-import { z } from 'zod'--const bodySchema = z.object({- sourceId: z.string().optional(),-}).optional()--/**- * POST /api/admin/sync- * Trigger documentation sync workflow with sources from DB- */-export default defineEventHandler(async (event) => {- const body = await readValidatedBody(event, data => bodySchema.parse(data))- const { savoir: savoirConfig } = useRuntimeConfig()-- // Get sources from DB- const allSources = await db.query.sources.findMany()-- // Filter to specific source if requested- const sourcesToSync = body?.sourceId- ? allSources.filter(s => s.id === body.sourceId)- : allSources-- const savoir = createSavoir({- apiUrl: savoirConfig.apiUrl,- apiKey: savoirConfig.apiKey || undefined,- })-- // Pass sources to the API- return await savoir.client.sync({ sources: sourcesToSync })-})diff --git a/apps/chat/server/api/admin/sync/[source].post.ts b/apps/chat/server/api/admin/sync/[source].post.tsdeleted file mode 100644index 49415eb..0000000--- a/apps/chat/server/api/admin/sync/[source].post.ts+++ /dev/null@@ -1,21 +0,0 @@-import { createSavoir } from '@savoir/sdk'--/**- * POST /api/admin/sync/:source- * Trigger sync workflow for a specific source- */-export default defineEventHandler(async (event) => {- const source = getRouterParam(event, 'source')- if (!source) {- throw createError({ statusCode: 400, statusMessage: 'Source ID is required' })- }-- const { savoir: savoirConfig } = useRuntimeConfig()-- const savoir = createSavoir({- apiUrl: savoirConfig.apiUrl,- apiKey: savoirConfig.apiKey || undefined,- })-- return await savoir.client.syncSource(source)-})diff --git a/apps/chat/server/api/chats/[id].post.ts b/apps/chat/server/api/chats/[id].post.tsindex aa88d4d..79a4c49 100644--- a/apps/chat/server/api/chats/[id].post.ts+++ b/apps/chat/server/api/chats/[id].post.ts@@ -103,8 +103,9 @@ export default defineEventHandler(async (event) => {}const { savoir: savoirConfig } = useRuntimeConfig()+const savoir = createSavoir({- apiUrl: savoirConfig.apiUrl,+ apiUrl: getRequestURL(event).origin,apiKey: savoirConfig.apiKey || undefined,})diff --git a/apps/api/routes/api/sandbox/read.post.ts b/apps/chat/server/api/sandbox/read.post.tssimilarity index 61%rename from apps/api/routes/api/sandbox/read.post.tsrename to apps/chat/server/api/sandbox/read.post.tsindex 379c9bb..4ad1471 100644--- a/apps/api/routes/api/sandbox/read.post.ts+++ b/apps/chat/server/api/sandbox/read.post.ts@@ -1,6 +1,5 @@-import { defineHandler, readValidatedBody } from 'nitro/h3'import { z } from 'zod'-import { getOrCreateSandbox, read } from '~/lib/sandbox'+import { getOrCreateSandbox, read } from '../../lib/sandbox'const bodySchema = z.object({paths: z.array(z.string().min(1)).min(1).max(50),@@ -15,20 +14,13 @@ const bodySchema = z.object({* - paths: string[] - File paths to read (max: 50)* - sessionId: string - Optional session ID for sandbox reuse*/-export default defineHandler(async (event) => {+export default defineEventHandler(async (event) => {const body = await readValidatedBody(event, bodySchema.parse)- const { log } = event.context-- log.set({ pathCount: body.paths.length, sessionId: body.sessionId })const { sandbox, sessionId } = await getOrCreateSandbox(body.sessionId)- log.set({ sandboxId: sandbox.sandboxId })-const files = await read(sandbox, body.paths)- log.set({ fileCount: files.length })-return {sessionId,files,diff --git a/apps/api/routes/api/sandbox/search-and-read.post.ts b/apps/chat/server/api/sandbox/search-and-read.post.tssimilarity index 68%rename from apps/api/routes/api/sandbox/search-and-read.post.tsrename to apps/chat/server/api/sandbox/search-and-read.post.tsindex 31491bf..9707ff9 100644--- a/apps/api/routes/api/sandbox/search-and-read.post.ts+++ b/apps/chat/server/api/sandbox/search-and-read.post.ts@@ -1,6 +1,5 @@-import { defineHandler, readValidatedBody } from 'nitro/h3'import { z } from 'zod'-import { getOrCreateSandbox, searchAndRead } from '~/lib/sandbox'+import { getOrCreateSandbox, searchAndRead } from '../../lib/sandbox'const bodySchema = z.object({query: z.string({ error: 'query is required - provide a search term like "useAsyncData" or "middleware"' }).min(1, 'query cannot be empty').max(500),@@ -17,25 +16,15 @@ const bodySchema = z.object({* - limit: number - Maximum results (default: 20, max: 100)* - sessionId: string - Optional session ID for sandbox reuse*/-export default defineHandler(async (event) => {+export default defineEventHandler(async (event) => {const body = await readValidatedBody(event, bodySchema.parse)- const { log } = event.context-- log.set({ query: body.query, limit: body.limit, sessionId: body.sessionId })// Get or create sandboxconst { sandbox, sessionId } = await getOrCreateSandbox(body.sessionId)- log.set({ sandboxId: sandbox.sandboxId })-// Search and read filesconst result = await searchAndRead(sandbox, body.query, body.limit)- log.set({- matchCount: result.matches.length,- fileCount: result.files.length,- })-return {sessionId,matches: result.matches,diff --git a/apps/chat/server/api/sandbox/snapshot.post.ts b/apps/chat/server/api/sandbox/snapshot.post.tsnew file mode 100644index 0000000..0160082--- /dev/null+++ b/apps/chat/server/api/sandbox/snapshot.post.ts@@ -0,0 +1,28 @@+import { start } from 'workflow/api'+import { createSnapshot } from '../../workflows/create-snapshot'++/**+ * POST /api/sandbox/snapshot+ * Create a new sandbox snapshot from the documentation repository.+ *+ * This workflow:+ * 1. Creates a sandbox from the GitHub snapshot repo+ * 2. Takes a snapshot for instant startup+ * 3. Stores the snapshot ID in KV storage+ */+export default defineEventHandler(async () => {+ const config = useRuntimeConfig()++ const snapshotConfig = {+ githubToken: config.github.token,+ snapshotRepo: config.github.snapshotRepo,+ snapshotBranch: config.github.snapshotBranch,+ }++ await start(createSnapshot, [snapshotConfig])++ return {+ status: 'started',+ message: 'Snapshot workflow started.',+ }+})diff --git a/apps/chat/server/api/sources/index.get.ts b/apps/chat/server/api/sources/index.get.tsindex 0fe7198..57e27d8 100644--- a/apps/chat/server/api/sources/index.get.ts+++ b/apps/chat/server/api/sources/index.get.ts@@ -4,14 +4,24 @@ import { asc } from 'drizzle-orm'/*** GET /api/sources* List all sources grouped by type+ *+ * Response format matches SourcesResponse from @savoir/sdk*/export default defineEventHandler(async () => {- const allSources = await db.query.sources.findMany({- orderBy: () => asc(schema.sources.label),- })+ const allSources = await db.select().from(schema.sources).orderBy(asc(schema.sources.label))++ const github = allSources.filter(s => s.type === 'github')+ const youtube = allSources.filter(s => s.type === 'youtube')return {- github: allSources.filter(s => s.type === 'github'),- youtube: allSources.filter(s => s.type === 'youtube'),+ total: allSources.length,+ github: {+ count: github.length,+ sources: github,+ },+ youtube: {+ count: youtube.length,+ sources: youtube,+ },}})diff --git a/apps/chat/server/api/sync/[source].post.ts b/apps/chat/server/api/sync/[source].post.tsnew file mode 100644index 0000000..ff45c3c--- /dev/null+++ b/apps/chat/server/api/sync/[source].post.ts@@ -0,0 +1,57 @@+import { start } from 'workflow/api'+import { z } from 'zod'+import { syncDocumentation } from '../../workflows/sync-docs'+import type { GitHubSource } from '../../workflows/sync-docs'++const paramsSchema = z.object({+ source: z.string().min(1),+})++/**+ * POST /api/sync/:source+ * Sync a specific source using Vercel Sandbox.+ */+export default defineEventHandler(async (event) => {+ const { source: sourceId } = await getValidatedRouterParams(event, paramsSchema.parse)+ const config = useRuntimeConfig()++ // Load the specific source from DB+ const dbSource = await db.query.sources.findFirst({+ where: (sources, { eq, and }) => and(+ eq(sources.id, sourceId),+ eq(sources.type, 'github'),+ ),+ })++ if (!dbSource) {+ throw createError({+ statusCode: 404,+ message: `GitHub source not found: ${sourceId}`,+ })+ }++ const source: GitHubSource = {+ id: dbSource.id,+ type: 'github',+ label: dbSource.label,+ repo: dbSource.repo || '',+ branch: dbSource.branch || 'main',+ contentPath: dbSource.contentPath || '',+ outputPath: dbSource.outputPath || dbSource.id,+ readmeOnly: dbSource.readmeOnly ?? false,+ }++ const syncConfig = {+ githubToken: config.github.token,+ snapshotRepo: config.github.snapshotRepo,+ snapshotBranch: config.github.snapshotBranch,+ }++ await start(syncDocumentation, [syncConfig, [source]])++ return {+ status: 'started',+ message: `Sync workflow started for "${source.label}".`,+ source: source.id,+ }+})diff --git a/apps/chat/server/api/sync/index.post.ts b/apps/chat/server/api/sync/index.post.tsnew file mode 100644index 0000000..1d7b902--- /dev/null+++ b/apps/chat/server/api/sync/index.post.ts@@ -0,0 +1,70 @@+import { start } from 'workflow/api'+import { z } from 'zod'+import { syncDocumentation } from '../../workflows/sync-docs'+import type { GitHubSource } from '../../workflows/sync-docs'++const bodySchema = z+ .object({+ sourceFilter: z.string().optional(),+ })+ .optional()++/**+ * POST /api/sync+ * Sync all sources using Vercel Sandbox.+ *+ * Body (optional):+ * - sourceFilter: string - Only sync a specific source+ */+export default defineEventHandler(async (event) => {+ const body = await readValidatedBody(event, data => bodySchema.parse(data))+ const config = useRuntimeConfig()++ // Load sources from DB+ const dbSources = await db.query.sources.findMany()++ // Filter to GitHub sources and transform+ let sources: GitHubSource[] = dbSources+ .filter(s => s.type === 'github')+ .map(s => ({+ id: s.id,+ type: 'github' as const,+ label: s.label,+ repo: s.repo || '',+ branch: s.branch || 'main',+ contentPath: s.contentPath || '',+ outputPath: s.outputPath || s.id,+ readmeOnly: s.readmeOnly ?? false,+ }))++ // Apply filter if specified+ if (body?.sourceFilter) {+ sources = sources.filter(s => s.id === body.sourceFilter)+ if (sources.length === 0) {+ throw createError({+ statusCode: 404,+ message: `Source not found: ${body.sourceFilter}`,+ })+ }+ }++ if (sources.length === 0) {+ throw createError({+ statusCode: 400,+ message: 'No GitHub sources to sync',+ })+ }++ const syncConfig = {+ githubToken: config.github.token,+ snapshotRepo: config.github.snapshotRepo,+ snapshotBranch: config.github.snapshotBranch,+ }++ await start(syncDocumentation, [syncConfig, sources])++ return {+ status: 'started',+ message: `Sync workflow started for ${sources.length} source(s).`,+ }+})diff --git a/apps/api/lib/sandbox/index.ts b/apps/chat/server/lib/sandbox/index.tssimilarity index 100%rename from apps/api/lib/sandbox/index.tsrename to apps/chat/server/lib/sandbox/index.tsdiff --git a/apps/api/lib/sandbox/manager.ts b/apps/chat/server/lib/sandbox/manager.tssimilarity index 95%rename from apps/api/lib/sandbox/manager.tsrename to apps/chat/server/lib/sandbox/manager.tsindex bbb7929..744815b 100644--- a/apps/api/lib/sandbox/manager.ts+++ b/apps/chat/server/lib/sandbox/manager.ts@@ -1,6 +1,5 @@import { Sandbox } from '@vercel/sandbox'import { getLogger } from '@savoir/logger'-import { useRuntimeConfig } from 'nitro/runtime-config'import type { ActiveSandbox, FileContent, SearchAndReadResult, SearchResult, SandboxManagerConfig, SnapshotMetadata } from './types'import { getCurrentSnapshot, setCurrentSnapshot } from './snapshot'import { deleteSession, generateSessionId, getSession, setSession, touchSession } from './session'@@ -14,9 +13,9 @@ const SANDBOX_TIMEOUT_MS = 5 * 60 * 1000 // 5 minutesfunction getConfig(): SandboxManagerConfig {const config = useRuntimeConfig()return {- githubToken: config.githubToken as string | undefined,- snapshotRepo: config.snapshotRepo as string,- snapshotBranch: (config.snapshotBranch as string) || 'main',+ githubToken: config.github.token,+ snapshotRepo: config.github.snapshotRepo,+ snapshotBranch: config.github.snapshotBranch,sessionTtlMs: DEFAULT_SESSION_TTL_MS,}}@@ -125,7 +124,7 @@ async function getOrCreateSnapshot(): Promise<string> {logger.log('sandbox', 'No snapshot found, creating one from repo...')if (!config.snapshotRepo) {- throw new Error('No snapshot available and GITHUB_SNAPSHOT_REPO is not configured.')+ throw new Error('No snapshot available and NUXT_GITHUB_SNAPSHOT_REPO is not configured.')}const repoUrl = `https://github.com/${config.snapshotRepo}.git`@@ -266,7 +265,7 @@ export async function read(content: buffer.toString('utf-8'),})}- } catch (error) {+ } catch {logger.log('sandbox', `Failed to read file: ${path}`)}}diff --git a/apps/api/lib/sandbox/session.ts b/apps/chat/server/lib/sandbox/session.tssimilarity index 76%rename from apps/api/lib/sandbox/session.tsrename to apps/chat/server/lib/sandbox/session.tsindex 8bf0e88..d9d91f2 100644--- a/apps/api/lib/sandbox/session.ts+++ b/apps/chat/server/lib/sandbox/session.ts@@ -1,4 +1,4 @@-import { useStorage } from 'nitro/storage'+import { kv } from '@nuxthub/kv'import type { SandboxSession } from './types'import { KV_KEYS } from './types'@@ -8,8 +8,7 @@ const DEFAULT_SESSION_TTL_MS = 30 * 60 * 1000 // 30 minutes* Get a sandbox session from KV storage*/export async function getSession(sessionId: string): Promise<SandboxSession | null> {- const kv = useStorage('kv')- const session = await kv.getItem<SandboxSession>(KV_KEYS.session(sessionId))+ const session = await kv.get<SandboxSession>(KV_KEYS.session(sessionId))if (!session) {return null@@ -17,7 +16,7 @@ export async function getSession(sessionId: string): Promise<SandboxSession | nu// Check if session is expiredif (Date.now() > session.expiresAt) {- await kv.removeItem(KV_KEYS.session(sessionId))+ await kv.del(KV_KEYS.session(sessionId))return null}@@ -32,7 +31,6 @@ export async function setSession(session: Omit<SandboxSession, 'lastAccessedAt' | 'expiresAt'>,ttlMs: number = DEFAULT_SESSION_TTL_MS,): Promise<SandboxSession> {- const kv = useStorage('kv')const now = Date.now()const fullSession: SandboxSession = {@@ -41,7 +39,7 @@ export async function setSession(expiresAt: now + ttlMs,}- await kv.setItem(KV_KEYS.session(sessionId), fullSession)+ await kv.set(KV_KEYS.session(sessionId), fullSession)return fullSession}@@ -61,8 +59,7 @@ export async function touchSession(session.lastAccessedAt = nowsession.expiresAt = now + ttlMs- const kv = useStorage('kv')- await kv.setItem(KV_KEYS.session(sessionId), session)+ await kv.set(KV_KEYS.session(sessionId), session)return session}@@ -70,8 +67,7 @@ export async function touchSession(* Delete a sandbox session from KV storage*/export async function deleteSession(sessionId: string): Promise<void> {- const kv = useStorage('kv')- await kv.removeItem(KV_KEYS.session(sessionId))+ await kv.del(KV_KEYS.session(sessionId))}/**diff --git a/apps/api/lib/sandbox/snapshot.ts b/apps/chat/server/lib/sandbox/snapshot.tssimilarity index 78%rename from apps/api/lib/sandbox/snapshot.tsrename to apps/chat/server/lib/sandbox/snapshot.tsindex c1c6003..7824d5f 100644--- a/apps/api/lib/sandbox/snapshot.ts+++ b/apps/chat/server/lib/sandbox/snapshot.ts@@ -1,4 +1,4 @@-import { useStorage } from 'nitro/storage'+import { kv } from '@nuxthub/kv'import type { SnapshotMetadata } from './types'import { KV_KEYS } from './types'@@ -6,16 +6,14 @@ import { KV_KEYS } from './types'* Get the current snapshot metadata from KV storage*/export async function getCurrentSnapshot(): Promise<SnapshotMetadata | null> {- const kv = useStorage('kv')- return await kv.getItem<SnapshotMetadata>(KV_KEYS.CURRENT_SNAPSHOT)+ return await kv.get<SnapshotMetadata>(KV_KEYS.CURRENT_SNAPSHOT)}/*** Set the current snapshot metadata in KV storage*/export async function setCurrentSnapshot(metadata: SnapshotMetadata): Promise<void> {- const kv = useStorage('kv')- await kv.setItem(KV_KEYS.CURRENT_SNAPSHOT, metadata)+ await kv.set(KV_KEYS.CURRENT_SNAPSHOT, metadata)}/**diff --git a/apps/api/lib/sandbox/types.ts b/apps/chat/server/lib/sandbox/types.tssimilarity index 97%rename from apps/api/lib/sandbox/types.tsrename to apps/chat/server/lib/sandbox/types.tsindex fa27b87..d4e5805 100644--- a/apps/api/lib/sandbox/types.ts+++ b/apps/chat/server/lib/sandbox/types.ts@@ -22,7 +22,7 @@ export interface SnapshotMetadata {}/**- * Search result from ripgrep+ * Search result from grep*/export interface SearchResult {path: stringdiff --git a/apps/chat/server/middleware/api-auth.ts b/apps/chat/server/middleware/api-auth.tsnew file mode 100644index 0000000..1b9680d--- /dev/null+++ b/apps/chat/server/middleware/api-auth.ts@@ -0,0 +1,39 @@+/**+ * Optional API key authentication middleware+ *+ * Only enforces authentication if SAVOIR_SECRET_KEY is set.+ * If not set, all requests are allowed (useful for development).+ *+ * Protects:+ * - /api/sync/*+ * - /api/sandbox/*+ *+ * Expected header: Authorization: Bearer <api-key>+ */+export default defineEventHandler((event) => {+ const path = getRequestURL(event).pathname++ // Only protect sync and sandbox routes+ if (!path.startsWith('/api/sync') && !path.startsWith('/api/sandbox')) {+ return // Let other routes pass through+ }++ const config = useRuntimeConfig()+ const secretKey = config.savoirSecretKey++ // If no secret key configured, skip authentication (dev mode)+ if (!secretKey) {+ return+ }++ // Validate API key+ const authHeader = getHeader(event, 'Authorization')+ const apiKey = authHeader?.replace('Bearer ', '')++ if (!apiKey || apiKey !== secretKey) {+ throw createError({+ statusCode: 401,+ message: 'Invalid or missing API key',+ })+ }+})diff --git a/apps/chat/server/plugins/logger.ts b/apps/chat/server/plugins/logger.tsnew file mode 100644index 0000000..828e403--- /dev/null+++ b/apps/chat/server/plugins/logger.ts@@ -0,0 +1,15 @@+import { createLogger } from '@savoir/logger'++/**+ * Initialize the logger when the server starts+ */+export default defineNitroPlugin(() => {+ createLogger({+ env: {+ service: 'savoir',+ environment: process.env.NODE_ENV ?? 'development',+ commitHash: process.env.COMMIT_SHA,+ version: '0.1.0',+ },+ })+})diff --git a/apps/chat/server/tasks/seed-sources.ts b/apps/chat/server/tasks/seed-sources.tsnew file mode 100644index 0000000..a2685c0--- /dev/null+++ b/apps/chat/server/tasks/seed-sources.ts@@ -0,0 +1,108 @@+import { db, schema } from '@nuxthub/db'++/**+ * Task to seed sources from savoir.config.ts into the database+ *+ * Run with: npx nuxt db seed-sources+ */+export default defineTask({+ meta: {+ name: 'db:seed-sources',+ description: 'Seed sources from savoir.config.ts into the database',+ },+ async run() {+ // Sources extracted from savoir.config.ts+ const githubSources = [+ // Nuxt Core+ { id: 'nuxt', label: 'Nuxt', repo: 'nuxt/nuxt', branch: 'main', contentPath: 'docs', outputPath: 'nuxt' },+ { id: 'nitro', label: 'Nitro', repo: 'nitrojs/nitro', branch: 'main', contentPath: 'docs', outputPath: 'nitro' },++ // Nuxt Modules+ { id: 'nuxt-ui', label: 'Nuxt UI', repo: 'nuxt/ui', branch: 'v4', contentPath: 'docs/content', outputPath: 'nuxt-ui' },+ { id: 'nuxt-hub', label: 'NuxtHub', repo: 'nuxt-hub/core', branch: 'main', contentPath: 'docs/content', outputPath: 'nuxt-hub' },+ { id: 'nuxt-content', label: 'Nuxt Content', repo: 'nuxt/content', branch: 'main', contentPath: 'docs/content', outputPath: 'nuxt-content' },+ { id: 'nuxt-image', label: 'Nuxt Image', repo: 'nuxt/image', branch: 'main', contentPath: 'docs/content', outputPath: 'nuxt-image' },+ { id: 'nuxt-i18n', label: 'Nuxt i18n', repo: 'nuxt-modules/i18n', branch: 'main', contentPath: 'docs/content', outputPath: 'nuxt-i18n' },+ { id: 'nuxt-scripts', label: 'Nuxt Scripts', repo: 'nuxt/scripts', branch: 'main', contentPath: 'docs/content', outputPath: 'nuxt-scripts' },+ { id: 'nuxt-fonts', label: 'Nuxt Fonts', repo: 'nuxt/fonts', branch: 'main', contentPath: 'docs/content', outputPath: 'nuxt-fonts' },+ { id: 'nuxt-eslint', label: 'Nuxt ESLint', repo: 'nuxt/eslint', branch: 'main', contentPath: 'docs/content', outputPath: 'nuxt-eslint' },+ { id: 'nuxt-devtools', label: 'Nuxt DevTools', repo: 'nuxt/devtools', branch: 'main', contentPath: 'docs/content', outputPath: 'nuxt-devtools' },+ { id: 'mcp-toolkit', label: 'MCP Toolkit', repo: 'nuxt-modules/mcp-toolkit', branch: 'main', contentPath: 'apps/docs/content', outputPath: 'mcp-toolkit' },+ { id: 'nuxt-studio', label: 'Nuxt Studio', repo: 'nuxt-content/nuxt-studio', branch: 'main', contentPath: 'docs', outputPath: 'nuxt-studio' },++ // README-only+ { id: 'nuxt-icon', label: 'Nuxt Icon', repo: 'nuxt/icon', branch: 'main', readmeOnly: true, outputPath: 'nuxt-icon' },+ { id: 'nuxt-auth-utils', label: 'Nuxt Auth Utils', repo: 'atinux/nuxt-auth-utils', branch: 'main', readmeOnly: true, outputPath: 'nuxt-auth-utils' },+ { id: 'ofetch', label: 'ofetch', repo: 'unjs/ofetch', branch: 'main', readmeOnly: true, outputPath: 'ofetch' },+ { id: 'nuxt-a11y', label: 'Nuxt a11y', repo: 'nuxt/a11y', branch: 'main', readmeOnly: true, outputPath: 'nuxt-a11y' },+ { id: 'nuxt-hints', label: 'Nuxt Hints', repo: 'nuxt/hints', branch: 'main', readmeOnly: true, outputPath: 'nuxt-hints' },++ // UnJS+ { id: 'h3', label: 'H3', repo: 'unjs/h3', branch: 'main', contentPath: 'docs', outputPath: 'h3' },+ { id: 'unstorage', label: 'unstorage', repo: 'unjs/unstorage', branch: 'main', contentPath: 'docs', outputPath: 'unstorage' },+ { id: 'unhead', label: 'Unhead', repo: 'unjs/unhead', branch: 'main', contentPath: 'docs', outputPath: 'unhead' },++ // SEO+ { id: 'nuxt-og-image', label: 'Nuxt OG Image', repo: 'nuxt-modules/og-image', branch: 'main', contentPath: 'docs/content', outputPath: 'nuxt-og-image' },+ { id: 'nuxt-sitemap', label: 'Nuxt Sitemap', repo: 'nuxt-modules/sitemap', branch: 'main', contentPath: 'docs/content', outputPath: 'nuxt-sitemap' },+ { id: 'nuxt-robots', label: 'Nuxt Robots', repo: 'nuxt-modules/robots', branch: 'main', contentPath: 'docs/content', outputPath: 'nuxt-robots' },+ ]++ const youtubeSources = [+ { id: 'alex-lichter', label: 'Alexander Lichter', channelId: 'UCqFPgMzGbLjd-MX-h3Z5aQA', handle: '@TheAlexLichter', maxVideos: 100 },+ { id: 'learn-vue', label: 'LearnVue', channelId: 'UCGwuxdEeCf0TIA2RbPOj-8g', handle: '@LearnVue', maxVideos: 50 },+ ]++ console.log('Seeding GitHub sources...')+ for (const source of githubSources) {+ await db.insert(schema.sources).values({+ id: source.id,+ type: 'github',+ label: source.label,+ repo: source.repo,+ branch: source.branch || 'main',+ contentPath: source.contentPath || '',+ outputPath: source.outputPath || source.id,+ readmeOnly: source.readmeOnly || false,+ }).onConflictDoUpdate({+ target: schema.sources.id,+ set: {+ label: source.label,+ repo: source.repo,+ branch: source.branch || 'main',+ contentPath: source.contentPath || '',+ outputPath: source.outputPath || source.id,+ readmeOnly: source.readmeOnly || false,+ updatedAt: new Date(),+ },+ })+ console.log(` β ${source.id}`)+ }++ console.log('Seeding YouTube sources...')+ for (const source of youtubeSources) {+ await db.insert(schema.sources).values({+ id: source.id,+ type: 'youtube',+ label: source.label,+ channelId: source.channelId,+ handle: source.handle,+ maxVideos: source.maxVideos || 50,+ }).onConflictDoUpdate({+ target: schema.sources.id,+ set: {+ label: source.label,+ channelId: source.channelId,+ handle: source.handle,+ maxVideos: source.maxVideos || 50,+ updatedAt: new Date(),+ },+ })+ console.log(` β ${source.id}`)+ }++ console.log(`\nβ Seeded ${githubSources.length} GitHub sources and ${youtubeSources.length} YouTube sources`)++ return { result: 'success' }+ },+})diff --git a/apps/chat/server/workflows/create-snapshot/index.ts b/apps/chat/server/workflows/create-snapshot/index.tsnew file mode 100644index 0000000..d0c3460--- /dev/null+++ b/apps/chat/server/workflows/create-snapshot/index.ts@@ -0,0 +1,2 @@+export { createSnapshot } from './workflow'+export type { SnapshotConfig, SnapshotResult } from './types'diff --git a/apps/chat/server/workflows/create-snapshot/steps.ts b/apps/chat/server/workflows/create-snapshot/steps.tsnew file mode 100644index 0000000..d32a7d4--- /dev/null+++ b/apps/chat/server/workflows/create-snapshot/steps.ts@@ -0,0 +1,51 @@+/**+ * Workflow steps for create-snapshot+ * Each step is marked with "use step" for durability and automatic retries.+ */++import { Sandbox } from '@vercel/sandbox'+import { getLogger } from '@savoir/logger'+import type { SnapshotConfig } from './types'++/**+ * Step: Create sandbox from git repo and take snapshot+ */+export async function stepCreateSandboxAndSnapshot(config: SnapshotConfig): Promise<string> {+ 'use step'++ const logger = getLogger()+ const repoUrl = `https://github.com/${config.snapshotRepo}.git`++ logger.log('snapshot', `Creating sandbox from: ${repoUrl}#${config.snapshotBranch}`)++ const source: {+ type: 'git'+ url: string+ revision: string+ username?: string+ password?: string+ } = {+ type: 'git',+ url: repoUrl,+ revision: config.snapshotBranch,+ }++ if (config.githubToken) {+ source.username = 'x-access-token'+ source.password = config.githubToken+ }++ const sandbox = await Sandbox.create({+ source,+ timeout: 2 * 60 * 1000,+ runtime: 'node24',+ })++ logger.log('snapshot', `Sandbox created: ${sandbox.sandboxId}`)+ logger.log('snapshot', 'Taking snapshot...')++ const snapshot = await sandbox.snapshot()++ logger.log('snapshot', `β Snapshot created: ${snapshot.snapshotId}`)+ return snapshot.snapshotId+}diff --git a/apps/chat/server/workflows/create-snapshot/types.ts b/apps/chat/server/workflows/create-snapshot/types.tsnew file mode 100644index 0000000..029d139--- /dev/null+++ b/apps/chat/server/workflows/create-snapshot/types.ts@@ -0,0 +1,17 @@+/**+ * Types for create-snapshot workflow+ * Self-contained - no external imports from app code+ */++export interface SnapshotConfig {+ githubToken?: string+ snapshotRepo: string+ snapshotBranch: string+}++export interface SnapshotResult {+ success: boolean+ snapshotId?: string+ sourceRepo?: string+ error?: string+}diff --git a/apps/chat/server/workflows/create-snapshot/workflow.ts b/apps/chat/server/workflows/create-snapshot/workflow.tsnew file mode 100644index 0000000..6002a44--- /dev/null+++ b/apps/chat/server/workflows/create-snapshot/workflow.ts@@ -0,0 +1,41 @@+/**+ * Create Snapshot Workflow+ *+ * Creates a new Vercel Sandbox snapshot from a git repository.+ * Returns the snapshot ID - API route handles KV storage.+ */++import { getLogger } from '@savoir/logger'+import { FatalError } from 'workflow'+import type { SnapshotConfig, SnapshotResult } from './types'+import { stepCreateSandboxAndSnapshot } from './steps'++export async function createSnapshot(config: SnapshotConfig): Promise<SnapshotResult> {+ 'use workflow'++ const logger = getLogger()++ if (!config.snapshotRepo) {+ throw new FatalError('NUXT_GITHUB_SNAPSHOT_REPO is not configured')+ }++ try {+ const snapshotId = await stepCreateSandboxAndSnapshot(config)++ logger.log('snapshot', `β Workflow completed: ${snapshotId}`)++ return {+ success: true,+ snapshotId,+ sourceRepo: config.snapshotRepo,+ }+ } catch (error) {+ const errorMessage = error instanceof Error ? error.message : String(error)+ logger.log('snapshot', `β Workflow failed: ${errorMessage}`)++ return {+ success: false,+ error: errorMessage,+ }+ }+}diff --git a/apps/chat/server/workflows/sync-docs/index.ts b/apps/chat/server/workflows/sync-docs/index.tsnew file mode 100644index 0000000..1ffbfff--- /dev/null+++ b/apps/chat/server/workflows/sync-docs/index.ts@@ -0,0 +1,2 @@+export { syncDocumentation } from './workflow'+export type { GitHubSource, SyncConfig, SyncResult, SyncSourceResult } from './types'diff --git a/apps/api/workflows/sync-docs/steps/sandbox-sync.ts b/apps/chat/server/workflows/sync-docs/steps.tssimilarity index 51%rename from apps/api/workflows/sync-docs/steps/sandbox-sync.tsrename to apps/chat/server/workflows/sync-docs/steps.tsindex b586c47..bf5aa91 100644--- a/apps/api/workflows/sync-docs/steps/sandbox-sync.ts+++ b/apps/chat/server/workflows/sync-docs/steps.ts@@ -1,32 +1,31 @@+/**+ * Workflow steps for sync-docs+ * Each step is marked with "use step" for durability and automatic retries.+ */+import { Sandbox } from '@vercel/sandbox'import { getLogger } from '@savoir/logger'-import type { GitHubSource, SyncResult } from '@savoir/config'+import type { GitHubSource, SyncConfig, SyncSourceResult } from './types'interface SyncInSandboxResult {snapshotId: string- results: SyncResult[]+ results: SyncSourceResult[]}/**- * Sync all sources inside a sandbox and return the snapshot ID.- *- * This is a single step because the Sandbox object is not serializable- * and cannot be passed between workflow steps.+ * Step: Sync all sources inside a sandbox and return the snapshot ID*/-export async function syncAllSourcesInSandbox(+export async function stepSyncAllSourcesInSandbox(sources: GitHubSource[],- snapshotRepo: string,- snapshotBranch: string,- githubToken?: string,+ config: SyncConfig,): Promise<SyncInSandboxResult> {'use step'const logger = getLogger()- const repoUrl = `https://github.com/${snapshotRepo}.git`+ const repoUrl = `https://github.com/${config.snapshotRepo}.git`- logger.log('sync', `Creating sandbox from ${snapshotRepo}#${snapshotBranch}`)+ logger.log('sync', `Creating sandbox from ${config.snapshotRepo}#${config.snapshotBranch}`)- // Create sandbox from snapshot repoconst source: {type: 'git'url: string@@ -36,12 +35,12 @@ export async function syncAllSourcesInSandbox(} = {type: 'git',url: repoUrl,- revision: snapshotBranch,+ revision: config.snapshotBranch,}- if (githubToken) {+ if (config.githubToken) {source.username = 'x-access-token'- source.password = githubToken+ source.password = config.githubToken}const sandbox = await Sandbox.create({@@ -52,14 +51,16 @@ export async function syncAllSourcesInSandbox(logger.log('sync', `Sandbox created: ${sandbox.sandboxId}`)- // Sync each source- const results: SyncResult[] = []+ const results: SyncSourceResult[] = []for (const src of sources) {const result = await syncSource(sandbox, src, logger)results.push(result)}+ logger.log('sync', 'Pushing changes to git repository...')+ await pushToGitRepo(sandbox, config, results, logger)+logger.log('sync', 'Taking snapshot...')const snapshot = await sandbox.snapshot()logger.log('sync', `Snapshot created: ${snapshot.snapshotId}`)@@ -71,20 +72,114 @@ export async function syncAllSourcesInSandbox(}/**- * Sync a single source inside the sandbox (internal function, not a step)+ * Push changes to git repository (internal helper, not a step)+ */+async function pushToGitRepo(+ sandbox: Sandbox,+ config: SyncConfig,+ results: SyncSourceResult[],+ logger: ReturnType<typeof getLogger>,+): Promise<void> {+ try {+ await sandbox.runCommand({+ cmd: 'git',+ args: ['config', 'user.email', '[email protected]'],+ cwd: '/vercel/sandbox',+ })++ await sandbox.runCommand({+ cmd: 'git',+ args: ['config', 'user.name', 'Savoir Bot'],+ cwd: '/vercel/sandbox',+ })++ // Checkout the branch (create if needed)+ const checkoutResult = await sandbox.runCommand({+ cmd: 'git',+ args: ['checkout', '-B', config.snapshotBranch],+ cwd: '/vercel/sandbox',+ })++ if (checkoutResult.exitCode !== 0) {+ throw new Error(`Git checkout failed: ${await checkoutResult.stderr()}`)+ }++ // Check if there are changes+ const statusResult = await sandbox.runCommand({+ cmd: 'git',+ args: ['status', '--porcelain'],+ cwd: '/vercel/sandbox',+ })++ const hasChanges = (await statusResult.stdout()).trim().length > 0++ if (!hasChanges) {+ logger.log('sync', 'No changes to push')+ return+ }++ // Add all changes+ await sandbox.runCommand({+ cmd: 'git',+ args: ['add', 'docs/'],+ cwd: '/vercel/sandbox',+ })++ // Commit+ const timestamp = new Date().toISOString()+ const successfulSources = results.filter(r => r.success).map(r => r.sourceId)+ const totalFiles = results.reduce((sum, r) => sum + (r.fileCount || 0), 0)++ let commitMessage = `chore: sync docs (${successfulSources.length} sources, ${totalFiles} files)`+ if (successfulSources.length > 0) {+ commitMessage += `\n\nSources:\n${successfulSources.map(id => `- ${id}`).join('\n')}`+ }+ commitMessage += `\n\nTimestamp: ${timestamp}`++ const commitResult = await sandbox.runCommand({+ cmd: 'git',+ args: ['commit', '-m', commitMessage],+ cwd: '/vercel/sandbox',+ })++ if (commitResult.exitCode !== 0) {+ throw new Error(`Git commit failed: ${await commitResult.stderr()}`)+ }++ // Push to remote with force-with-lease for safety+ const repoUrl = `https://x-access-token:${config.githubToken}@github.com/${config.snapshotRepo}.git`+ const pushResult = await sandbox.runCommand({+ cmd: 'git',+ args: ['push', '--set-upstream', repoUrl, config.snapshotBranch],+ cwd: '/vercel/sandbox',+ })++ if (pushResult.exitCode !== 0) {+ throw new Error(`Git push failed: ${await pushResult.stderr()}`)+ }++ logger.log('sync', 'β Changes pushed to repository')+ } catch (error) {+ const errorMessage = error instanceof Error ? error.message : String(error)+ logger.log('sync', `Git push failed: ${errorMessage}`)+ // Don't throw - we still want the snapshot to succeed+ }+}++/**+ * Sync a single source inside the sandbox (internal helper, not a step)*/async function syncSource(sandbox: Sandbox,source: GitHubSource,logger: ReturnType<typeof getLogger>,-): Promise<SyncResult> {+): Promise<SyncSourceResult> {const outputPath = source.outputPath || source.idconst targetDir = `/vercel/sandbox/docs/${outputPath}`logger.log('sync', `Syncing ${source.id} to ${targetDir}`)try {- // Create target directoryawait sandbox.runCommand({cmd: 'mkdir',args: ['-p', targetDir],@@ -92,7 +187,6 @@ async function syncSource(})if (source.readmeOnly) {- // Just fetch the READMEconst readmeUrl = `https://raw.githubusercontent.com/${source.repo}/${source.branch}/README.md`const result = await sandbox.runCommand({cmd: 'curl',@@ -107,11 +201,9 @@ async function syncSource(return { sourceId: source.id, success: true, fileCount: 1 }}- // Clone the content path from the repoconst contentPath = source.contentPath || ''const tempDir = `/tmp/sync-${source.id}-${Date.now()}`- // Clone repo to temp dir (sparse checkout for specific path)const cloneResult = await sandbox.runCommand({cmd: 'sh',args: [@@ -132,7 +224,6 @@ async function syncSource(throw new Error(`Git clone failed: ${stderr}`)}- // Copy content to target dirconst sourcePath = contentPath ? `${tempDir}/${contentPath}` : tempDirawait sandbox.runCommand({cmd: 'sh',@@ -140,7 +231,6 @@ async function syncSource(cwd: '/vercel/sandbox',})- // Clean up non-doc files (keep only .md, .mdx, .yml, .yaml, .json)await sandbox.runCommand({cmd: 'sh',args: [@@ -150,14 +240,12 @@ async function syncSource(cwd: '/vercel/sandbox',})- // Remove empty directoriesawait sandbox.runCommand({cmd: 'sh',args: ['-c', `find ${targetDir} -type d -empty -delete`],cwd: '/vercel/sandbox',})- // Cleanup temp dirawait sandbox.runCommand({cmd: 'rm',args: ['-rf', tempDir],diff --git a/apps/chat/server/workflows/sync-docs/types.ts b/apps/chat/server/workflows/sync-docs/types.tsnew file mode 100644index 0000000..4d93f85--- /dev/null+++ b/apps/chat/server/workflows/sync-docs/types.ts@@ -0,0 +1,39 @@+/**+ * Types for sync-docs workflow+ */++export interface SyncConfig {+ githubToken?: string+ snapshotRepo: string+ snapshotBranch: string+}++export interface GitHubSource {+ id: string+ type: 'github'+ label: string+ repo: string+ branch: string+ contentPath: string+ outputPath: string+ readmeOnly: boolean+}++export interface SyncSourceResult {+ sourceId: string+ success: boolean+ fileCount: number+ error?: string+}++export interface SyncResult {+ success: boolean+ snapshotId?: string+ summary: {+ total: number+ success: number+ failed: number+ files: number+ }+ results: SyncSourceResult[]+}diff --git a/apps/chat/server/workflows/sync-docs/workflow.ts b/apps/chat/server/workflows/sync-docs/workflow.tsnew file mode 100644index 0000000..f271794--- /dev/null+++ b/apps/chat/server/workflows/sync-docs/workflow.ts@@ -0,0 +1,51 @@+/**+ * Sync Documentation Workflow+ *+ * Syncs documentation from GitHub sources into a Vercel Sandbox,+ * then takes a snapshot for instant startup.+ *+ * Sources are passed as parameters.+ */++import { getLogger } from '@savoir/logger'+import { FatalError } from 'workflow'+import type { GitHubSource, SyncConfig, SyncResult } from './types'+import { stepSyncAllSourcesInSandbox } from './steps'++export async function syncDocumentation(+ config: SyncConfig,+ sources: GitHubSource[],+): Promise<SyncResult> {+ 'use workflow'++ const logger = getLogger()++ if (!config.snapshotRepo) {+ throw new FatalError('NUXT_GITHUB_SNAPSHOT_REPO is not configured')+ }++ if (!sources || sources.length === 0) {+ throw new FatalError('No sources provided')+ }++ const { snapshotId, results } = await stepSyncAllSourcesInSandbox(sources, config)++ const successCount = results.filter(r => r.success).length+ const failCount = results.filter(r => !r.success).length+ const totalFiles = results.reduce((sum, r) => sum + (r.fileCount || 0), 0)++ const status = failCount === 0 ? 'β' : 'β'+ logger.log('sync', `${status} Done: ${successCount}/${sources.length} sources, ${totalFiles} files`)++ return {+ success: failCount === 0,+ snapshotId,+ summary: {+ total: sources.length,+ success: successCount,+ failed: failCount,+ files: totalFiles,+ },+ results,+ }+}diff --git a/docs/ARCHITECTURE.md b/docs/ARCHITECTURE.mdindex 57f1240..34f99f1 100644--- a/docs/ARCHITECTURE.md+++ b/docs/ARCHITECTURE.md@@ -4,11 +4,10 @@ This document describes the technical architecture of Savoir, a platform for bui## System Overview-Savoir consists of three main components:+Savoir consists of two main components:-1. **Savoir API** (`apps/api`): A Nitro-based server that manages Vercel Sandboxes and content synchronization-2. **Savoir SDK** (`packages/sdk`): A client library providing AI SDK-compatible tools-3. **Savoir Config** (`packages/config`): Configuration management with multi-format support+1. **Chat App** (`apps/chat`): A unified Nuxt application that provides both the chat interface and the API for sandbox management, content synchronization, and source management+2. **SDK** (`packages/sdk`): A client library providing AI SDK-compatible tools```βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ@@ -30,25 +29,25 @@ Savoir consists of three main components:β HTTPS (API Key auth)βΌβββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ-β Savoir API β-β (Nitro Server) β+β apps/chat β+β (Unified Nuxt App) ββ ββ βββββββββββββββββββ βββββββββββββββββββ βββββββββββββββββββββββββββ ββ β /api/sandbox/* β β /api/sync/* β β /api/sources/* β ββ β β β β β β β-β β - create β β - POST /sync β β - GET /sources β β-β β - search β β - POST /sync/:s β β β β-β β - read β β β β β β-β β - searchAndRead β β β β β β+β β - snapshot β β - POST /sync β β - GET /sources β β+β β - search-and- β β - POST /sync/:s β β - POST /sources β β+β β read β β β β - PUT /sources/:id β β+β β - read β β β β - DELETE /sources/:id β ββ ββββββββββ¬βββββββββ ββββββββββ¬βββββββββ ββββββββββββββ¬βββββββββββββ ββ β β β ββ βΌ βΌ βΌ ββ βββββββββββββββββββ βββββββββββββββββββ βββββββββββββββββββββββββββ β-β β Sandbox Manager β β Vercel Workflow β β @savoir/config β β+β β Sandbox Manager β β Vercel Workflow β β NuxtHub DB β ββ β β β β β β β-β β - Lifecycle β β - Durable exec β β - Load savoir.config.ts β β-β β - KV caching β β - Auto retries β β - Validation β β-β β - Command exec β β - Sync sources β β - Normalization β β+β β - Lifecycle β β - Durable exec β β - SQLite (sources) β β+β β - KV caching β β - Auto retries β β - KV (sessions) β β+β β - Command exec β β - Sync sources β β - Blob (uploads) β ββ ββββββββββ¬βββββββββ ββββββββββ¬βββββββββ βββββββββββββββββββββββββββ ββββββββββββββΌβββββββββββββββββββββΌββββββββββββββββββββββββββββββββββββββββββ β@@ -64,126 +63,86 @@ Savoir consists of three main components:```savoir/-βββ savoir.config.ts # Source configuration (root level!)+βββ savoir.config.ts # Source definitions (for seeding DB)βββ apps/-β βββ api/ # Nitro API server-β βββ routes/-β β βββ api/-β β βββ index.ts # GET /api - Health check-β β βββ sources/ # Source endpoints-β β β βββ index.get.ts # GET /api/sources-β β βββ sync/ # Sync endpoints-β β β βββ index.post.ts # POST /api/sync-β β β βββ [source].post.ts # POST /api/sync/:source-β β βββ sandbox/ # Sandbox endpoints (planned)-β β βββ search.post.ts-β β βββ read.post.ts-β β βββ search-and-read.post.ts-β βββ workflows/-β β βββ sync-docs/ # Vercel Workflow for syncing-β βββ plugins/-β βββ config.ts # Config loader plugin+β βββ chat/ # Unified Nuxt application+β βββ app/ # Vue app (components, pages, composables)+β βββ server/+β β βββ api/ # API routes+β β β βββ sandbox/ # Sandbox endpoints+β β β β βββ snapshot.post.ts+β β β β βββ search-and-read.post.ts+β β β β βββ read.post.ts+β β β βββ sync/ # Sync endpoints+β β β β βββ index.post.ts+β β β β βββ [source].post.ts+β β β βββ sources/ # Sources CRUD+β β βββ lib/+β β β βββ sandbox/ # Sandbox manager library+β β βββ workflows/ # Vercel Workflows+β β β βββ sync-docs/+β β β βββ create-snapshot/+β β βββ tasks/ # Nitro tasks+β β β βββ seed-sources.ts+β β βββ middleware/ # API auth+β β β βββ api-auth.ts+β β βββ db/ # Drizzle schema+β β β βββ schema.ts+β β βββ plugins/ # Nitro plugins+β β βββ logger.ts+β βββ nuxt.config.tsβββ packages/-β βββ config/ # @savoir/config+β βββ sdk/ # @savoir/sdkβ β βββ src/β β βββ index.ts # Public exports-β β βββ types.ts # Source types-β β βββ define.ts # defineConfig()-β β βββ loader.ts # c12-based loading-β β βββ validation.ts # Zod schemas-β β βββ normalize.ts # Default values-β βββ sdk/ # @savoir/sdk+β β βββ client.ts # HTTP client+β β βββ tools/ # AI SDK tool definitionsβ βββ logger/ # @savoir/loggerβββ docs/ # Documentation```## Component Details-### 1. Configuration (`@savoir/config`)--Sources are configured in `savoir.config.ts` at the project root. This file is visible, easy to edit, and supports multiple formats via [c12](https://github.com/unjs/c12).+### 1. Sources (Database)-#### Supported Formats+Sources are stored in SQLite via NuxtHub. They can be managed via the API or seeded from `savoir.config.ts`.-- `savoir.config.ts` (recommended)-- `savoir.config.js`-- `savoir.config.json`-- `savoir.config.yaml`-- `.savoirrc` (JSON)--#### Configuration Schema+#### Database Schema```typescript-// savoir.config.ts-import { defineConfig } from '@savoir/config'--export default defineConfig({- sources: {- github: [- {- id: 'nuxt',- label: 'Nuxt',- repo: 'nuxt/nuxt',- branch: 'main', // default: 'main'- contentPath: 'docs', // default: 'docs'- outputPath: 'nuxt', // default: same as id- additionalSyncs: [- { repo: 'nuxt/nuxt.com', contentPath: 'content' },- ],- },- { id: 'nitro', repo: 'nitrojs/nitro', branch: 'v3' },- { id: 'ofetch', repo: 'unjs/ofetch', readmeOnly: true },- ],- youtube: [- {- id: 'alex-lichter',- label: 'Alexander Lichter',- channelId: 'UCqFPgMzGbLjd-MX-h3Z5aQA',- maxVideos: 50, // default: 50- },- ],- },+export const sources = sqliteTable('sources', {+ id: text('id').primaryKey(),+ type: text('type', { enum: ['github', 'youtube'] }).notNull(),+ label: text('label').notNull(),++ // GitHub fields+ repo: text('repo'),+ branch: text('branch'),+ contentPath: text('content_path'),+ outputPath: text('output_path'),+ readmeOnly: integer('readme_only', { mode: 'boolean' }),++ // YouTube fields+ channelId: text('channel_id'),+ handle: text('handle'),+ maxVideos: integer('max_videos'),++ createdAt: integer('created_at', { mode: 'timestamp' }),+ updatedAt: integer('updated_at', { mode: 'timestamp' }),})```-#### Package API+#### Seeding-```typescript-// Configuration definition-export function defineConfig(config: SavoirConfigInput): SavoirConfigInput--// Loading (with c12)-export async function loadSavoirConfig(options?: { cwd?: string }): Promise<LoadedConfig>-export function setConfigCwd(cwd: string): void--// Accessors (async - always reload from disk)-export async function getSources(): Promise<Source[]>-export async function getGitHubSources(): Promise<GitHubSource[]>-export async function getYouTubeSources(): Promise<YouTubeSource[]>-export async function getSourceById(id: string): Promise<Source | undefined>-export async function getSourcesByType<T>(type: string): Promise<T[]>+```bash+# Seed from savoir.config.ts+pnpm --filter @savoir/chat db:seed```### 2. SDK (`@savoir/sdk`)The SDK provides AI SDK-compatible tools that communicate with the Savoir API.-#### Module Structure--```-packages/sdk/-βββ src/-β βββ index.ts # Main export: createSavoir()-β βββ client.ts # HTTP client for API communication-β βββ types.ts # TypeScript interfaces-β βββ tools/-β βββ search.ts # search tool definition-β βββ read.ts # read tool definition-β βββ search-and-read.ts # combined tool-βββ package.json-βββ tsconfig.json-```-#### API Design```typescript@@ -205,48 +164,7 @@ export interface SavoirClient {export function createSavoir(options: SavoirOptions): SavoirClient```-### 3. API (`apps/api`)--A Nitro server providing REST endpoints for sandbox management and content synchronization.--#### Route Structure--```-apps/api/routes/api/-βββ index.ts # GET /api - Health check-βββ sources/-β βββ index.get.ts # GET /api/sources - List sources-βββ sync/- βββ index.post.ts # POST /api/sync - Sync all- βββ [source].post.ts # POST /api/sync/:source - Sync one-```--#### Sync Architecture--Content synchronization uses [Vercel Workflow](https://github.com/vercel/workflow) for durable execution with automatic retries.--```-POST /api/sync- β- βΌ-βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ-β Vercel Workflow β-β (Durable execution engine) β-β β-β βββββββββββββββ βββββββββββββββ βββββββββββββββ βββββββββββββββ β-β β Step 1 β β Step 2 β β Step N β β Final Step β β-β β Sync source βββΆβ Sync source βββΆβ ... βββΆβ Push to β β-β β "nuxt" β β "nitro" β β β β GitHub β β-β βββββββββββββββ βββββββββββββββ βββββββββββββββ βββββββββββββββ β-β β-β Features: β-β - Automatic retries on failure β-β - Progress tracking via `pnpm workflow:web` β-β - Durable state (survives server restarts) β-βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ-```--### 4. Sandbox System (Planned)+### 3. Sandbox SystemThe sandbox system uses [Vercel Sandbox Snapshots](https://vercel.com/docs/vercel-sandbox/managing#snapshotting) for instant startup without cloning.@@ -254,10 +172,10 @@ The sandbox system uses [Vercel Sandbox Snapshots](https://vercel.com/docs/verce```βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ-β Snapshot Task (Periodic) β-β Runs every X hours/days β+β Sync Workflow ββ β-β 1. Create sandbox βββΆ 2. Clone snapshot repo βββΆ 3. Take snapshot β+β 1. Read sources βββΆ 2. Clone in sandbox βββΆ 3. Take snapshot β+β from DB and sync content ββ β ββ βΌ ββ βββββββββββββββ β@@ -273,63 +191,39 @@ The sandbox system uses [Vercel Sandbox Snapshots](https://vercel.com/docs/verceβ ββ Request βββΆ Start from snapshot βββΆ Search/Read βββΆ Return results ββ (instant) (grep/cat) β-β β-β Benefits: β-β - No clone delay (content already in sandbox) β-β - Consistent state across all requests β-β - Automatic cleanup (sandbox stops after use) ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ```-#### Snapshot Lifecycle+### 4. Content Sync-```-Sync Workflow Snapshot Task API Request- β β β- β push to GitHub β β- βΌ β β-ββββββββββββ β β-β Snapshot β βββββ triggers βββββ€ β-β Repo β β β-ββββββββββββ βΌ β- ββββββββββββββ β- β Create β β- β Sandbox β β- βββββββ¬βββββββ β- β clone repo β- βΌ β- ββββββββββββββ β- β Take β β- β Snapshot β β- βββββββ¬βββββββ β- β β- βΌ βΌ- ββββββββββββββ ββββββββββββββ- β Snapshot β ββββββββββΆ β Instant β- β Ready β start β Sandbox β- ββββββββββββββ ββββββββββββββ-```--#### Key Functions+Content synchronization uses [Vercel Workflow](https://github.com/vercel/workflow) for durable execution with automatic retries.-```typescript-// Snapshot management-export async function createContentSnapshot(): Promise<Snapshot>-export async function getLatestSnapshot(): Promise<Snapshot | null>--// Sandbox operations (internal to API)-async function startFromSnapshot(snapshotId: string): Promise<Sandbox>-async function searchInSandbox(sandbox: Sandbox, query: string, limit: number): Promise<string[]>-async function readFromSandbox(sandbox: Sandbox, paths: string[]): Promise<FileContent[]>```--> **Note:** Snapshots expire after 7 days. The snapshot task should run regularly to ensure a fresh snapshot is always available.+POST /api/sync+ β+ βΌ+βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ+β Vercel Workflow β+β (Durable execution engine) β+β β+β βββββββββββββββ βββββββββββββββ βββββββββββββββ βββββββββββββββ β+β β Step 1 β β Step 2 β β Step N β β Final Step β β+β β Sync source βββΆβ Sync source βββΆβ ... βββΆβ Create β β+β β "nuxt" β β "nitro" β β β β Snapshot β β+β βββββββββββββββ βββββββββββββββ βββββββββββββββ βββββββββββββββ β+β β+β Features: β+β - Automatic retries on failure β+β - Progress tracking via `pnpm workflow:web` β+β - Durable state (survives server restarts) β+βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ+```## API Endpoints### Authentication-Authentication is optional. If `SAVOIR_SECRET_KEY` is configured, endpoints require an API key:+Authentication is optional for `/api/sandbox/*` and `/api/sync/*` endpoints. If `SAVOIR_SECRET_KEY` is configured, these endpoints require an API key:```Authorization: Bearer <api-key>@@ -337,92 +231,54 @@ Authorization: Bearer <api-key>If not configured, the API is open (useful for local development).-### Source Endpoints--#### GET /api/sources+### Sandbox Endpoints-Lists all configured content sources.--**Response:**-```json-{- "total": 25,- "github": {- "count": 23,- "sources": [- { "id": "nuxt", "label": "Nuxt", "repo": "nuxt/nuxt" }- ]- },- "youtube": {- "count": 2,- "sources": [- { "id": "alex-lichter", "label": "Alexander Lichter" }- ]- }-}-```+#### POST /api/sandbox/snapshot-### Sync Endpoints--#### POST /api/sync--Sync all sources.--**Body (optional):**-```json-{- "reset": false,- "push": true-}-```+Create a new snapshot from the documentation repository.**Response:**```json{"status": "started",- "message": "Sync workflow started. Use `pnpm workflow:web` to monitor.",- "options": { "reset": false, "push": true }+ "message": "Snapshot workflow started."}```-#### POST /api/sync/:source--Sync a specific source.+#### POST /api/sandbox/search-and-read-**Params:**-- `source`: Source ID (e.g., `nuxt`, `nitro`)+Combined search and read operation (recommended).-**Body (optional):**+**Request:**```json{- "reset": false,- "push": true+ "query": "useAsyncData",+ "limit": 20,+ "sessionId": "optional-session-id"}```**Response:**```json{- "status": "started",- "message": "Sync workflow started for source \"nuxt\". Use `pnpm workflow:web` to monitor.",- "source": "nuxt",- "options": { "reset": false, "push": true, "sourceFilter": "nuxt" }+ "sessionId": "sess_1234567890_abc123",+ "matches": [+ { "path": "docs/nuxt/composables/use-async-data.md", "lineNumber": 10, "content": "..." }+ ],+ "files": [+ { "path": "docs/nuxt/composables/use-async-data.md", "content": "# useAsyncData\n\n..." }+ ]}```-### Sandbox Endpoints (Planned)--The API manages sandbox lifecycle internally. Sandboxes start instantly from the pre-built snapshot.--#### POST /api/sandbox/search-and-read+#### POST /api/sandbox/read-Combined search and read operation (recommended).+Read specific files by path.**Request:**```json{- "query": "useAsyncData",- "limit": 5,+ "paths": ["docs/nuxt/guide/middleware.md"],"sessionId": "optional-session-id"}```@@ -430,82 +286,77 @@ Combined search and read operation (recommended).**Response:**```json{- "query": "useAsyncData",+ "sessionId": "sess_1234567890_abc123","files": [- {- "path": "docs/nuxt/composables/use-async-data.md",- "content": "# useAsyncData\n\n..."- }+ { "path": "docs/nuxt/guide/middleware.md", "content": "# Middleware\n\n..." }]}```-#### POST /api/sandbox/search+### Sync Endpoints-Search for files matching query.+#### POST /api/sync-**Request:**-```json-{- "query": "middleware",- "limit": 10,- "sessionId": "optional-session-id"-}-```+Sync all sources.**Response:**```json{- "files": [- "docs/nuxt/guide/middleware.md",- "docs/nitro/middleware.md"- ]+ "status": "started",+ "message": "Sync workflow started."}```-#### POST /api/sandbox/read+#### POST /api/sync/:source-Read specific files.+Sync a specific source.-**Request:**+**Response:**```json{- "paths": [- "docs/nuxt/guide/middleware.md"- ],- "sessionId": "optional-session-id"+ "status": "started",+ "message": "Sync workflow started for source \"nuxt\".",+ "source": "nuxt"}```+### Sources Endpoints++#### GET /api/sources++List all sources grouped by type.+**Response:**```json{- "files": [- {- "path": "docs/nuxt/guide/middleware.md",- "content": "# Middleware\n\n..."- }- ]+ "github": [...],+ "youtube": [...]}```-> **Note:** The `sessionId` is optional and generic - can be from any client (Discord bot, Slack bot, GitHub bot, web chat, etc.). If provided, the API may reuse an existing sandbox for that session.-## Storage Strategy-### KV Store+### NuxtHub SQLite-Used for storing the current snapshot ID and optionally sandbox sessions:+Used for persistent data:```typescript-// Current snapshot (updated by snapshot task)-`snapshot:current` -> { snapshotId: string, createdAt: number }+// Sources table+sources: { id, type, label, repo, branch, ... }++// Users, chats, messages tables for chat app+```-// Optional: Active sandbox sessions (if reusing sandboxes across requests)-`sandbox:session:${sessionId}` -> { sandboxId: string, createdAt: number }+### NuxtHub KV-// sessionId is generic - can be from any client (Discord bot, Slack bot, GitHub bot, etc.)-// TTL: 30 minutes (sandbox timeout)+Used for caching and session management:++```typescript+// Current snapshot (updated by sync workflow)+`snapshot:current` -> { snapshotId: string, createdAt: number }++// Active sandbox sessions+`session:${sessionId}` -> { sandboxId: string, snapshotId: string, ... }```### Snapshot Repository@@ -531,93 +382,38 @@ Structure:| Variable | Required | Description ||----------|----------|-------------|-| `GITHUB_TOKEN` | Yes | GitHub token for API access |-| `GITHUB_SNAPSHOT_REPO` | Yes | Snapshot repository (owner/repo) |-| `GITHUB_SNAPSHOT_BRANCH` | No | Branch to push to (default: main) |-| `SAVOIR_SECRET_KEY` | No | API key for authentication |--## Error Handling--### SDK Errors--```typescript-export class SavoirError extends Error {- constructor(- message: string,- public code: 'UNAUTHORIZED' | 'SANDBOX_FAILED' | 'NETWORK_ERROR',- public status?: number- ) {- super(message)- }-}-```--### API Error Responses--```json-{- "error": {- "code": "SANDBOX_FAILED",- "message": "Failed to create sandbox: timeout"- }-}-```--## Performance Considerations--### Snapshot-based Startup--- Sandboxes start instantly from pre-built snapshot (no clone delay)-- Snapshot contains all synced content ready to search-- Snapshot is refreshed periodically by the snapshot task--### Session Reuse (Optional)--- Sandboxes can be reused within a session via `sessionId`-- Avoids startup cost for multiple requests in same conversation-- Automatic cleanup when session ends or timeout--### Batch Operations--- `batchReadFiles`: Single shell command for multiple files-- `searchWithRanking`: grep with match count for relevance--### Connection Pooling--- SDK maintains persistent HTTP connection-- API uses connection pooling for GitHub API calls+| `NUXT_GITHUB_TOKEN` | Yes | GitHub token for API access |+| `NUXT_GITHUB_SNAPSHOT_REPO` | Yes | Snapshot repository (owner/repo) |+| `NUXT_GITHUB_SNAPSHOT_BRANCH` | No | Branch to use (default: main) |+| `NUXT_SAVOIR_SECRET_KEY` | No | API key for authentication |## Security### API Key Validation (Optional)-Authentication is **optional** and only enforced if `SAVOIR_SECRET_KEY` is set.+Authentication is **optional** and only enforced if `NUXT_SAVOIR_SECRET_KEY` is set.-- If `SAVOIR_SECRET_KEY` is not set β API is open (useful for development)-- If `SAVOIR_SECRET_KEY` is set β All requests require `Authorization: Bearer <key>`+- If `NUXT_SAVOIR_SECRET_KEY` is not set β API is open (useful for development)+- If `NUXT_SAVOIR_SECRET_KEY` is set β `/api/sync/*` and `/api/sandbox/*` require `Authorization: Bearer <key>````typescript-// apps/api/middleware/auth.ts-export default defineMiddleware((event, next) => {- const secretKey = useRuntimeConfig().savoirSecretKey+// apps/chat/server/middleware/api-auth.ts+export default defineEventHandler((event) => {+ const path = getRequestURL(event).pathname- // Skip auth if no secret key configured- if (!secretKey) {- return next()+ if (!path.startsWith('/api/sync') && !path.startsWith('/api/sandbox')) {+ return}- // Skip auth for public paths (/api health check, etc.)- if (isPublicPath(url.pathname)) {- return next()- }+ const config = useRuntimeConfig()+ if (!config.savoirSecretKey) return- const apiKey = getHeader(event, 'Authorization')?.replace('Bearer ', '')+ const authHeader = getHeader(event, 'Authorization')+ const apiKey = authHeader?.replace('Bearer ', '')- if (!apiKey || apiKey !== secretKey) {+ if (apiKey !== config.savoirSecretKey) {throw createError({ statusCode: 401, message: 'Unauthorized' })}-- return next()})```diff --git a/docs/SOURCES.md b/docs/SOURCES.mdindex b494e0a..2435d9c 100644--- a/docs/SOURCES.md+++ b/docs/SOURCES.md@@ -2,28 +2,62 @@Savoir aggregates documentation from multiple sources into a unified, searchable knowledge base.-## Configuration+## Database Storage-Sources are defined in `savoir.config.ts` at the project root:+Sources are stored in SQLite via NuxtHub. The schema:```typescript-import { defineConfig } from '@savoir/config'+export const sources = sqliteTable('sources', {+ id: text('id').primaryKey(),+ type: text('type', { enum: ['github', 'youtube'] }).notNull(),++ // Common fields+ label: text('label').notNull(),++ // GitHub fields+ repo: text('repo'),+ branch: text('branch'),+ contentPath: text('content_path'),+ outputPath: text('output_path'),+ readmeOnly: integer('readme_only', { mode: 'boolean' }),++ // YouTube fields+ channelId: text('channel_id'),+ handle: text('handle'),+ maxVideos: integer('max_videos'),++ // Timestamps+ createdAt: integer('created_at', { mode: 'timestamp' }),+ updatedAt: integer('updated_at', { mode: 'timestamp' }),+})+```++## Seeding Sources++Sources can be seeded from `savoir.config.ts` using the seed task:++```bash+cd apps/chat+pnpm db:seed+```++The config file at the project root:-export default defineConfig({+```typescript+// savoir.config.ts+export default {sources: {github: [{ id: 'nuxt', repo: 'nuxt/nuxt', contentPath: 'docs' },- { id: 'nitro', repo: 'nitrojs/nitro', branch: 'v3' },+ { id: 'nitro', repo: 'nitrojs/nitro', branch: 'main' },],youtube: [{ id: 'alex-lichter', channelId: 'UCqFPgMzGbLjd-MX-h3Z5aQA' },],},-})+}```-Supported formats: `.ts`, `.js`, `.json`, `.yaml`-## Source Types### GitHub Sources@@ -39,11 +73,6 @@ Fetches Markdown documentation from GitHub repositories.contentPath?: string // Path to content directory (default: 'docs')outputPath?: string // Output directory in snapshot (default: id)readmeOnly?: boolean // Only fetch README.md (default: false)- additionalSyncs?: Array<{- repo: string- branch?: string- contentPath?: string- }>}```@@ -58,16 +87,6 @@ Fetches Markdown documentation from GitHub repositories.// README only{ id: 'ofetch', repo: 'unjs/ofetch', readmeOnly: true }--// Multiple repos merged-{- id: 'nuxt',- repo: 'nuxt/nuxt',- contentPath: 'docs',- additionalSyncs: [- { repo: 'nuxt/nuxt.com', contentPath: 'content' },- ],-}```### YouTube Sources@@ -84,16 +103,41 @@ Fetches video transcripts from YouTube channels.}```-### Custom Sources+## Managing Sources via API-For sources that don't fit the standard patterns:+### List Sources-```typescript-{- id: string- label?: string- fetchFn: () => Promise<Array<{ path: string; content: string }>>-}+```bash+curl http://localhost:3000/api/sources+```++### Create Source++```bash+curl -X POST http://localhost:3000/api/sources \+ -H "Content-Type: application/json" \+ -d '{+ "id": "vue",+ "type": "github",+ "label": "Vue.js",+ "repo": "vuejs/core",+ "branch": "main",+ "contentPath": "docs"+ }'+```++### Update Source++```bash+curl -X PUT http://localhost:3000/api/sources/vue \+ -H "Content-Type: application/json" \+ -d '{"branch": "v4"}'+```++### Delete Source++```bash+curl -X DELETE http://localhost:3000/api/sources/vue```## Syncing@@ -102,24 +146,14 @@ For sources that don't fit the standard patterns:```bash# Sync all sources-curl -X POST http://localhost:3000/api/sync+curl -X POST http://localhost:3000/api/sync \+ -H "Authorization: Bearer $SAVOIR_SECRET_KEY"# Sync specific source-curl -X POST http://localhost:3000/api/sync/nuxt--# With options-curl -X POST http://localhost:3000/api/sync \- -H "Content-Type: application/json" \- -d '{"reset": true, "push": true}'+curl -X POST http://localhost:3000/api/sync/nuxt \+ -H "Authorization: Bearer $SAVOIR_SECRET_KEY"```-### Options--| Option | Type | Default | Description |-|--------|------|---------|-------------|-| `reset` | boolean | false | Clear content before sync |-| `push` | boolean | true | Push to snapshot repo after sync |-## Content NormalizationAll content is normalized to Markdown:diff --git a/package.json b/package.jsonindex 3cb5ce6..7d19ef7 100644--- a/package.json+++ b/package.json@@ -16,16 +16,15 @@"prepare": "turbo build --filter='./packages/*'","build": "turbo build","dev": "turbo dev",- "dev:api": "pnpm --filter @savoir/api dev","dev:chat": "pnpm --filter @savoir/chat dev",- "sync:docs": "pnpm --filter @savoir/api sync:docs",- "snapshot:create": "pnpm --filter @savoir/api snapshot:create",+ "sync:docs": "pnpm --filter @savoir/chat sync:docs",+ "snapshot:create": "pnpm --filter @savoir/chat snapshot:create","lint": "turbo lint","lint:fix": "turbo lint:fix","typecheck": "turbo typecheck","test": "turbo test","automd": "automd",- "workflow": "pnpm --filter @savoir/api exec workflow web"+ "workflow": "pnpm --filter @savoir/chat workflow:web"},"devDependencies": {"@hrcd/eslint-config": "^3.0.3",@@ -33,4 +32,4 @@"turbo": "^2.5.3"},"packageManager": "[email protected]"-}\ No newline at end of file+}diff --git a/packages/config/package.json b/packages/config/package.jsondeleted file mode 100644index a82ff22..0000000--- a/packages/config/package.json+++ /dev/null@@ -1,36 +0,0 @@-{- "name": "@savoir/config",- "version": "0.0.1",- "description": "Configuration loader and types for Savoir",- "type": "module",- "exports": {- ".": {- "types": "./dist/index.d.ts",- "default": "./dist/index.js"- }- },- "main": "./dist/index.js",- "types": "./dist/index.d.ts",- "sideEffects": false,- "files": [- "dist"- ],- "scripts": {- "build": "tsdown",- "dev": "tsdown --watch",- "typecheck": "tsc --noEmit",- "lint": "eslint .",- "lint:fix": "eslint . --fix",- "prepublishOnly": "pnpm build"- },- "dependencies": {- "c12": "^3.0.4",- "zod": "^4.3.5"- },- "devDependencies": {- "@types/node": "^22.15.21",- "eslint": "^9.28.0",- "tsdown": "^0.12.4",- "typescript": "^5.8.3"- }-}diff --git a/packages/config/src/define.ts b/packages/config/src/define.tsdeleted file mode 100644index 5a98668..0000000--- a/packages/config/src/define.ts+++ /dev/null@@ -1,9 +0,0 @@-import type { SavoirConfigInput } from './types'--/**- * Define the Savoir configuration.- * Provides type safety and autocompletion in savoir.config.ts- */-export function defineConfig(config: SavoirConfigInput): SavoirConfigInput {- return config-}diff --git a/packages/config/src/index.ts b/packages/config/src/index.tsdeleted file mode 100644index 08d04e3..0000000--- a/packages/config/src/index.ts+++ /dev/null@@ -1,32 +0,0 @@-export { defineConfig } from './define'--export {- loadSavoirConfig,- setConfigCwd,- getSources,- getGitHubSources,- getYouTubeSources,- getCustomSources,- getSourceById,- getSourcesByType,-} from './loader'-export type { LoadOptions } from './loader'--export type {- SavoirConfigInput,- GitHubSourceInput,- YouTubeSourceInput,- CustomSourceInput,- Source,- GitHubSource,- YouTubeSource,- CustomSource,- ContentFile,- LoadedConfig,- SyncResult,- SyncConfig,- SyncOptions,- PushResult,- SnapshotConfig,- DBSource,-} from './types'diff --git a/packages/config/src/loader.ts b/packages/config/src/loader.tsdeleted file mode 100644index 13fba23..0000000--- a/packages/config/src/loader.ts+++ /dev/null@@ -1,110 +0,0 @@-import { loadConfig } from 'c12'-import type {- SavoirConfigInput,- CustomSourceInput,- LoadedConfig,- Source,- GitHubSource,- YouTubeSource,- CustomSource,-} from './types'-import { validateConfig } from './validation'-import { normalizeGitHubSource, normalizeYouTubeSource, normalizeCustomSource } from './normalize'--let configCwd: string | undefined--export interface LoadOptions {- cwd?: string-}--/**- * Load the Savoir configuration from savoir.config.{ts,js,json,yaml}- */-export async function loadSavoirConfig(options?: LoadOptions): Promise<LoadedConfig> {- if (options?.cwd) {- configCwd = options.cwd- }-- const { config } = await loadConfig<SavoirConfigInput>({- name: 'savoir',- cwd: configCwd,- defaults: {- sources: {- github: [],- youtube: [],- custom: [],- },- },- })-- const validated = validateConfig(config)-- const github = (validated.sources?.github ?? []).map(normalizeGitHubSource)- const youtube = (validated.sources?.youtube ?? []).map(normalizeYouTubeSource)- const custom = ((validated.sources?.custom ?? []) as CustomSourceInput[]).map(normalizeCustomSource)-- return {- config: validated as SavoirConfigInput,- sources: [...github, ...youtube, ...custom] as Source[],- github,- youtube,- custom,- }-}--/**- * Set the config directory (call once at startup)- */-export function setConfigCwd(cwd: string): void {- configCwd = cwd-}--/**- * Get all sources- */-export async function getSources(): Promise<Source[]> {- const config = await loadSavoirConfig()- return config.sources-}--/**- * Get GitHub sources only- */-export async function getGitHubSources(): Promise<GitHubSource[]> {- const config = await loadSavoirConfig()- return config.github-}--/**- * Get YouTube sources only- */-export async function getYouTubeSources(): Promise<YouTubeSource[]> {- const config = await loadSavoirConfig()- return config.youtube-}--/**- * Get custom sources only- */-export async function getCustomSources(): Promise<CustomSource[]> {- const config = await loadSavoirConfig()- return config.custom-}--/**- * Get a source by its ID- */-export async function getSourceById(id: string): Promise<Source | undefined> {- const config = await loadSavoirConfig()- return config.sources.find(s => s.id === id)-}--/**- * Get sources filtered by type- */-export async function getSourcesByType<T extends Source['type']>(- type: T-): Promise<Extract<Source, { type: T }>[]> {- const config = await loadSavoirConfig()- return config.sources.filter(s => s.type === type) as Extract<Source, { type: T }>[]-}diff --git a/packages/config/src/normalize.ts b/packages/config/src/normalize.tsdeleted file mode 100644index aebb6a7..0000000--- a/packages/config/src/normalize.ts+++ /dev/null@@ -1,65 +0,0 @@-import type {- GitHubSourceInput,- YouTubeSourceInput,- CustomSourceInput,- GitHubSource,- YouTubeSource,- CustomSource,-} from './types'--/**- * Capitalize the first letter of each word- */-function capitalize(str: string): string {- return str- .split('-')- .map(word => word.charAt(0).toUpperCase() + word.slice(1))- .join(' ')-}--/**- * Normalize a GitHub source input by applying defaults- */-export function normalizeGitHubSource(input: GitHubSourceInput): GitHubSource {- return {- type: 'github',- id: input.id,- label: input.label ?? capitalize(input.id),- repo: input.repo,- branch: input.branch ?? 'main',- contentPath: input.contentPath ?? 'docs',- outputPath: input.outputPath ?? input.id,- readmeOnly: input.readmeOnly ?? false,- additionalSyncs: (input.additionalSyncs ?? []).map(sync => ({- repo: sync.repo,- branch: sync.branch ?? 'main',- contentPath: sync.contentPath ?? '',- })),- }-}--/**- * Normalize a YouTube source input by applying defaults- */-export function normalizeYouTubeSource(input: YouTubeSourceInput): YouTubeSource {- return {- type: 'youtube',- id: input.id,- label: input.label ?? capitalize(input.id),- channelId: input.channelId,- handle: input.handle,- maxVideos: input.maxVideos ?? 50,- }-}--/**- * Normalize a custom source input by applying defaults- */-export function normalizeCustomSource(input: CustomSourceInput): CustomSource {- return {- type: 'custom',- id: input.id,- label: input.label ?? capitalize(input.id),- fetchFn: input.fetchFn,- }-}diff --git a/packages/config/src/types.ts b/packages/config/src/types.tsdeleted file mode 100644index d9107fa..0000000--- a/packages/config/src/types.ts+++ /dev/null@@ -1,152 +0,0 @@-/**- * Input types for configuration (what users write in savoir.config.ts)- */--export interface GitHubSourceInput {- id: string- label?: string- repo: string- branch?: string- contentPath?: string- outputPath?: string- readmeOnly?: boolean- additionalSyncs?: Array<{- repo: string- branch?: string- contentPath?: string- }>-}--export interface YouTubeSourceInput {- id: string- label?: string- channelId: string- handle?: string- maxVideos?: number-}--export interface CustomSourceInput {- id: string- label?: string- fetchFn: () => Promise<ContentFile[]>-}--export interface SavoirConfigInput {- sources?: {- github?: GitHubSourceInput[]- youtube?: YouTubeSourceInput[]- custom?: CustomSourceInput[]- }-}--/**- * Normalized types (after defaults are applied)- */--interface BaseSource {- id: string- label: string- type: 'github' | 'youtube' | 'custom'-}--export interface GitHubSource extends BaseSource {- type: 'github'- repo: string- branch: string- contentPath: string- outputPath: string- readmeOnly: boolean- additionalSyncs: Array<{- repo: string- branch: string- contentPath: string- }>-}--export interface YouTubeSource extends BaseSource {- type: 'youtube'- channelId: string- handle?: string- maxVideos: number-}--export interface CustomSource extends BaseSource {- type: 'custom'- fetchFn: () => Promise<ContentFile[]>-}--export type Source = GitHubSource | YouTubeSource | CustomSource--export interface ContentFile {- path: string- content: string-}--/**- * Loaded config result- */-export interface LoadedConfig {- config: SavoirConfigInput- sources: Source[]- github: GitHubSource[]- youtube: YouTubeSource[]- custom: CustomSource[]-}--/**- * Sync-related types (re-exported for convenience)- */-export interface SyncResult {- sourceId: string- success: boolean- fileCount?: number- error?: string- duration?: number-}--export interface SyncConfig {- githubToken: string- snapshotRepo: string- snapshotBranch: string-}--/**- * Source passed directly from the chat app DB- */-export interface DBSource {- id: string- type: 'github' | 'youtube'- label: string- // GitHub fields- repo?: string | null- branch?: string | null- contentPath?: string | null- outputPath?: string | null- readmeOnly?: boolean | null- // YouTube fields- channelId?: string | null- handle?: string | null- maxVideos?: number | null-}--export interface SyncOptions {- reset?: boolean- push?: boolean- sourceFilter?: string- /** Sources passed directly from DB (takes precedence over config file) */- sources?: DBSource[]-}--export interface PushResult {- success: boolean- commitSha?: string- filesChanged?: number- error?: string-}--export interface SnapshotConfig {- repo: string- branch: string- token: string- commitMessage?: string-}diff --git a/packages/config/src/validation.ts b/packages/config/src/validation.tsdeleted file mode 100644index a4a3960..0000000--- a/packages/config/src/validation.ts+++ /dev/null@@ -1,46 +0,0 @@-import { z } from 'zod'--const additionalSyncSchema = z.object({- repo: z.string().min(1),- branch: z.string().optional(),- contentPath: z.string().optional(),-})--const gitHubSourceSchema = z.object({- id: z.string().min(1),- label: z.string().optional(),- repo: z.string().regex(/^[\w.-]+\/[\w.-]+$/, 'Must be in format owner/repo'),- branch: z.string().optional(),- contentPath: z.string().optional(),- outputPath: z.string().optional(),- readmeOnly: z.boolean().optional(),- additionalSyncs: z.array(additionalSyncSchema).optional(),-})--const youTubeSourceSchema = z.object({- id: z.string().min(1),- label: z.string().optional(),- channelId: z.string().min(1),- handle: z.string().optional(),- maxVideos: z.number().int().positive().optional(),-})--const customSourceSchema = z.object({- id: z.string().min(1),- label: z.string().optional(),- fetchFn: z.any(),-})--const savoirConfigSchema = z.object({- sources: z.object({- github: z.array(gitHubSourceSchema).optional(),- youtube: z.array(youTubeSourceSchema).optional(),- custom: z.array(customSourceSchema).optional(),- }).optional(),-})--export type ValidatedConfig = z.infer<typeof savoirConfigSchema>--export function validateConfig(config: unknown): ValidatedConfig {- return savoirConfigSchema.parse(config)-}diff --git a/packages/config/tsconfig.json b/packages/config/tsconfig.jsondeleted file mode 100644index cb6ef60..0000000--- a/packages/config/tsconfig.json+++ /dev/null@@ -1,13 +0,0 @@-{- "compilerOptions": {- "target": "ES2022",- "module": "ESNext",- "moduleResolution": "Bundler",- "strict": true,- "declaration": true,- "esModuleInterop": true,- "skipLibCheck": true,- "noEmit": true- },- "include": ["src"]-}diff --git a/packages/config/tsdown.config.ts b/packages/config/tsdown.config.tsdeleted file mode 100644index 03c2d29..0000000--- a/packages/config/tsdown.config.ts+++ /dev/null@@ -1,11 +0,0 @@-import { defineConfig } from 'tsdown'--export default defineConfig({- entry: ['src/index.ts'],- format: ['esm'],- dts: {- sourcemap: false,- },- clean: true,- hash: false,-})diff --git a/pnpm-lock.yaml b/pnpm-lock.yamlindex c713e48..4c4714d 100644--- a/pnpm-lock.yaml+++ b/pnpm-lock.yaml@@ -18,49 +18,6 @@ importers:specifier: ^2.5.3version: 2.7.5- apps/api:- dependencies:- '@savoir/config':- specifier: workspace:*- version: link:../../packages/config- '@savoir/logger':- specifier: workspace:*- version: link:../../packages/logger- '@types/node':- specifier: ^25.0.9- version: 25.0.9- '@upstash/redis':- specifier: ^1.36.1- version: 1.36.1- '@vercel/sandbox':- specifier: ^1.2.0- version: 1.2.0- giget:- specifier: ^2.0.0- version: 2.0.0- pathe:- specifier: ^2.0.3- version: 2.0.3- workflow:- specifier: ^4.0.1-beta.48- version: 4.0.1-beta.49(@aws-sdk/[email protected])(@opentelemetry/[email protected])(@swc/[email protected])([email protected])([email protected](@opentelemetry/[email protected])([email protected]([email protected]))([email protected]))([email protected]([email protected]))([email protected])([email protected])- zod:- specifier: ^4.3.5- version: 4.3.5- devDependencies:- eslint:- specifier: ^9.28.0- version: 9.39.2([email protected])- nitro:- specifier: latest- version: 3.0.1-alpha.2(@libsql/[email protected])(@upstash/[email protected])(@vercel/[email protected])(@vercel/[email protected](@aws-sdk/[email protected](@aws-sdk/[email protected])))([email protected])([email protected](@cloudflare/[email protected])(@libsql/[email protected])(@opentelemetry/[email protected])(@upstash/[email protected]))([email protected])([email protected])([email protected])([email protected])([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected]))- rolldown:- specifier: latest- version: 1.0.0-beta.60- typescript:- specifier: ^5.8.3- version: 5.9.3-apps/chat:dependencies:'@ai-sdk/gateway':@@ -93,9 +50,6 @@ importers:'@savoir/logger':specifier: workspace:*version: link:../../packages/logger- '@savoir/sdk':- specifier: workspace:*- version: link:../../packages/sdk'@upstash/redis':specifier: ^1.36.1version: 1.36.1@@ -106,7 +60,7 @@ importers:specifier: ^3.3.6version: 3.3.6(@aws-sdk/[email protected](@aws-sdk/[email protected]))'@vercel/sandbox':- specifier: ^1.1.8+ specifier: ^1.2.0version: 1.2.0ai:specifier: ^6.0.31@@ -117,12 +71,18 @@ importers:drizzle-orm:specifier: ^0.45.0version: 0.45.1(@cloudflare/[email protected])(@libsql/[email protected])(@opentelemetry/[email protected])(@upstash/[email protected])+ giget:+ specifier: ^3.1.1+ version: 3.1.1nuxt:specifier: ^4.2.2version: 4.2.2(@libsql/[email protected])(@parcel/[email protected])(@types/[email protected])(@upstash/[email protected])(@vercel/[email protected])(@vercel/[email protected](@aws-sdk/[email protected](@aws-sdk/[email protected])))(@vercel/[email protected])(@vue/[email protected])([email protected])([email protected](@libsql/[email protected])([email protected](@cloudflare/[email protected])(@libsql/[email protected])(@opentelemetry/[email protected])(@upstash/[email protected])))([email protected](@cloudflare/[email protected])(@libsql/[email protected])(@opentelemetry/[email protected])(@upstash/[email protected]))([email protected]([email protected]))([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected]))([email protected]([email protected]))([email protected])nuxt-auth-utils:specifier: ^0.5.0version: 0.5.27([email protected])+ pathe:+ specifier: ^2.0.3+ version: 2.0.3shiki-stream:specifier: ^0.1.3@@ -152,28 +112,6 @@ importers:specifier: ^3.2.1version: 3.2.2([email protected])- packages/config:- dependencies:- c12:- specifier: ^3.0.4- version: 3.3.3([email protected])- zod:- specifier: ^4.3.5- version: 4.3.5- devDependencies:- '@types/node':- specifier: ^22.15.21- version: 22.19.7- eslint:- specifier: ^9.28.0- version: 9.39.2([email protected])- tsdown:- specifier: ^0.12.4- typescript:- specifier: ^5.8.3- version: 5.9.3-packages/logger:devDependencies:'@types/node':@@ -1578,214 +1516,95 @@ packages:resolution: {integrity: sha512-3giAOQvZiH5F9bMlMiv8+GSPMeqg0dbaeo58/0SlA9sxSqZhnUtxzX9/2FzyhS9sWQf5S0GJE0AKBrFqjpeYcg==}engines: {node: '>=8.0.0'}- '@oxc-minify/[email protected]':- resolution: {integrity: sha512-43fMTO8/5bMlqfOiNSZNKUzIqeLIYuB9Hr1Ohyf58B1wU11S2dPGibTXOGNaWsfgHy99eeZ1bSgeIHy/fEYqbw==}- engines: {node: ^20.19.0 || >=22.12.0}- cpu: [arm]- os: [android]-'@oxc-minify/[email protected]':resolution: {integrity: sha512-pknM+ttJTwRr7ezn1v5K+o2P4RRjLAzKI10bjVDPybwWQ544AZW6jxm7/YDgF2yUbWEV9o7cAQPkIUOmCiW8vg==}engines: {node: ^20.19.0 || >=22.12.0}cpu: [arm64]os: [android]- '@oxc-minify/[email protected]':- resolution: {integrity: sha512-5oQrnn9eK/ccOp80PTrNj0Vq893NPNNRryjGpOIVsYNgWFuoGCfpnKg68oEFcN8bArizYAqw4nvgHljEnar69w==}- engines: {node: ^20.19.0 || >=22.12.0}- cpu: [arm64]- os: [android]-'@oxc-minify/[email protected]':resolution: {integrity: sha512-BDLiH41ZctNND38+GCEL3ZxFn9j7qMZJLrr6SLWMt8xlG4Sl64xTkZ0zeUy4RdVEatKKZdrRIhFZ2e5wPDQT6Q==}engines: {node: ^20.19.0 || >=22.12.0}cpu: [arm64]os: [darwin]- '@oxc-minify/[email protected]':- resolution: {integrity: sha512-dqBDgTG9tF2z2lrZp9E8wU+Godz1i8gCGSei2eFKS2hRploBOD5dmOLp1j4IMornkPvSQmbwB3uSjPq7fjx4EA==}- engines: {node: ^20.19.0 || >=22.12.0}- cpu: [arm64]- os: [darwin]-'@oxc-minify/[email protected]':resolution: {integrity: sha512-AcB8ZZ711w4hTDhMfMHNjT2d+hekTQ2XmNSUBqJdXB+a2bJbE50UCRq/nxXl44zkjaQTit3lcQbFvhk2wwKcpw==}engines: {node: ^20.19.0 || >=22.12.0}cpu: [x64]os: [darwin]- '@oxc-minify/[email protected]':- resolution: {integrity: sha512-U0AqabqaooDOpYmeeOye8wClv8PSScELXgOfYqyqgrwH9J9KrpCE1jL8Rlqgz68QbL4mPw3V6sKiiHssI4CLeQ==}- engines: {node: ^20.19.0 || >=22.12.0}- cpu: [x64]- os: [darwin]-'@oxc-minify/[email protected]':resolution: {integrity: sha512-UlLEN9mR5QaviYVMWZQsN9DgAH3qyV67XUXDEzSrbVMLsqHsVHhFU8ZIeO0fxWTQW/cgpvldvKp9/+RdrggqWw==}engines: {node: ^20.19.0 || >=22.12.0}cpu: [x64]os: [freebsd]- '@oxc-minify/[email protected]':- resolution: {integrity: sha512-H0w8o/Wo1072WSdLfhwwrpFpwZnPpjQODlHuRYkTfsSSSJbTxQtjJd4uxk7YJsRv5RQp69y0I7zvdH6f8Xueyw==}- engines: {node: ^20.19.0 || >=22.12.0}- cpu: [x64]- os: [freebsd]-'@oxc-minify/[email protected]':resolution: {integrity: sha512-CWyCwedZrUt47n56/RwHSwKXxVI3p98hB0ntLaBNeH5qjjBujs9uOh4bQ0aAlzUWunT77b3/Y+xcQnmV42HN4A==}engines: {node: ^20.19.0 || >=22.12.0}cpu: [arm]os: [linux]- '@oxc-minify/[email protected]':- resolution: {integrity: sha512-qd6sW0AvEVYZhbVVMGtmKZw3b1zDYGIW+54Uh42moWRAj6i4Jhk/LGr6r9YNZpOINeuvZfkFuEeDD/jbu7xPUA==}- engines: {node: ^20.19.0 || >=22.12.0}- cpu: [arm]- os: [linux]-- '@oxc-minify/[email protected]':- resolution: {integrity: sha512-7WXP0aXMrWSn0ScppUBi3jf68ebfBG0eri8kxLmBOVSBj6jw1repzkHMITJMBeLr5d0tT/51qFEptiAk2EP2iA==}- engines: {node: ^20.19.0 || >=22.12.0}- cpu: [arm]- os: [linux]-'@oxc-minify/[email protected]':resolution: {integrity: sha512-W/DCw+Ys8rXj4j38ylJ2l6Kvp6SV+eO5SUWA11imz7yCWntNL001KJyGQ9PJNUFHg0jbxe3yqm4M50v6miWzeA==}engines: {node: ^20.19.0 || >=22.12.0}cpu: [arm64]os: [linux]- '@oxc-minify/[email protected]':- resolution: {integrity: sha512-LYfADrq5x1W5gs+u9OIbMbDQNYkAECTXX0ufnAuf3oGmO51rF98kGFR5qJqC/6/csokDyT3wwTpxhE0TkcF/Og==}- engines: {node: ^20.19.0 || >=22.12.0}- cpu: [arm64]- os: [linux]-'@oxc-minify/[email protected]':resolution: {integrity: sha512-DyH/t/zSZHuX4Nn239oBteeMC4OP7B13EyXWX18Qg8aJoZ+lZo90WPGOvhP04zII33jJ7di+vrtAUhsX64lp+A==}engines: {node: ^20.19.0 || >=22.12.0}cpu: [arm64]os: [linux]- '@oxc-minify/[email protected]':- resolution: {integrity: sha512-53GjCVY8kvymk9P6qNDh6zyblcehF5QHstq9QgCjv13ONGRnSHjeds0PxIwiihD7h295bxsWs84DN39syLPH4Q==}- engines: {node: ^20.19.0 || >=22.12.0}- cpu: [arm64]- os: [linux]-- '@oxc-minify/[email protected]':- resolution: {integrity: sha512-li8XcN81dxbJDMBESnTgGhoiAQ+CNIdM0QGscZ4duVPjCry1RpX+5FJySFbGqG3pk4s9ZzlL/vtQtbRzZIZOzg==}- engines: {node: ^20.19.0 || >=22.12.0}- cpu: [ppc64]- os: [linux]-'@oxc-minify/[email protected]':resolution: {integrity: sha512-CMvzrmOg+Gs44E7TRK/IgrHYp+wwVJxVV8niUrDR2b3SsrCO3NQz5LI+7bM1qDbWnuu5Cl1aiitoMfjRY61dSg==}engines: {node: ^20.19.0 || >=22.12.0}cpu: [riscv64]os: [linux]- '@oxc-minify/[email protected]':- resolution: {integrity: sha512-SweKfsnLKShu6UFV8mwuj1d1wmlNoL/FlAxPUzwjEBgwiT2HQkY24KnjBH+TIA+//1O83kzmWKvvs4OuEhdIEQ==}- engines: {node: ^20.19.0 || >=22.12.0}- cpu: [riscv64]- os: [linux]-- '@oxc-minify/[email protected]':- resolution: {integrity: sha512-oH8G4aFMP8XyTsEpdANC5PQyHgSeGlopHZuW1rpyYcaErg5YaK0vXjQ4EM5HVvPm+feBV24JjxgakTnZoF3aOQ==}- engines: {node: ^20.19.0 || >=22.12.0}- cpu: [riscv64]- os: [linux]-'@oxc-minify/[email protected]':resolution: {integrity: sha512-tZWr6j2s0ddm9MTfWTI3myaAArg9GDy4UgvpF00kMQAjLcGUNhEEQbB9Bd9KtCvDQzaan8HQs0GVWUp+DWrymw==}engines: {node: ^20.19.0 || >=22.12.0}cpu: [s390x]os: [linux]- '@oxc-minify/[email protected]':- resolution: {integrity: sha512-W9na+Vza7XVUlpf8wMt4QBfH35KeTENEmnpPUq3NSlbQHz8lSlSvhAafvo43NcKvHAXV3ckD/mUf2VkqSdbklg==}- engines: {node: ^20.19.0 || >=22.12.0}- cpu: [s390x]- os: [linux]-'@oxc-minify/[email protected]':resolution: {integrity: sha512-0YEKmAIun1bS+Iy5Shx6WOTSj3GuilVuctJjc5/vP8/EMTZ/RI8j0eq0Mu3UFPoT/bMULL3MBXuHuEIXmq7Ddg==}engines: {node: ^20.19.0 || >=22.12.0}cpu: [x64]os: [linux]- '@oxc-minify/[email protected]':- resolution: {integrity: sha512-XJdA4mmmXOjJxSRgNJXsDP7Xe8h3gQhmb56hUcCrvq5d+h5UcEi2pR8rxsdIrS8QmkLuBA3eHkGK8E27D7DTgQ==}- engines: {node: ^20.19.0 || >=22.12.0}- cpu: [x64]- os: [linux]-'@oxc-minify/[email protected]':resolution: {integrity: sha512-Ew4QDpEsXoV+pG5+bJpheEy3GH436GBe6ASPB0X27Hh9cQ2gb1NVZ7cY7xJj68+fizwS/PtT8GHoG3uxyH17Pg==}engines: {node: ^20.19.0 || >=22.12.0}cpu: [x64]os: [linux]- '@oxc-minify/[email protected]':- resolution: {integrity: sha512-QqzvALuOTtSckI8x467R4GNArzYDb/yEh6aNzLoeaY1O7vfT7SPDwlOEcchaTznutpeS9Dy8gUS/AfqtUHaufw==}- engines: {node: ^20.19.0 || >=22.12.0}- cpu: [x64]- os: [linux]-'@oxc-minify/[email protected]':resolution: {integrity: sha512-wYPXS8IOu/sXiP3CGHJNPzZo4hfPAwJKevcFH2syvU2zyqUxym7hx6smfcK/mgJBiX7VchwArdGRwrEQKcBSaQ==}engines: {node: ^20.19.0 || >=22.12.0}cpu: [arm64]os: [openharmony]- '@oxc-minify/[email protected]':- resolution: {integrity: sha512-gAMssLs2Q3+uhLZxanh1DF+27Kaug3cf4PXb9AB7XK81DR+LVcKySXaoGYoOs20Co0fFSphd6rRzKge2qDK3dA==}- engines: {node: ^20.19.0 || >=22.12.0}- cpu: [arm64]- os: [openharmony]-'@oxc-minify/[email protected]':resolution: {integrity: sha512-52SepCb9e+8cVisGa9S/F14K8PxW0AnbV1j4KEYi8uwfkUIxeDNKRHVHzPoBXNrr0yxW0EHLn/3i8J7a2YCpWw==}engines: {node: '>=14.0.0'}cpu: [wasm32]- '@oxc-minify/[email protected]':- resolution: {integrity: sha512-7Wqi5Zjl022bs2zXq+ICdalDPeDuCH/Nhbi8q2isLihAonMVIT0YH2hqqnNEylRNGYck+FJ6gRZwMpGCgrNxPg==}- engines: {node: '>=14.0.0'}- cpu: [wasm32]-'@oxc-minify/[email protected]':resolution: {integrity: sha512-kLs6H1y6sDBKcIimkNwu5th28SLkyvFpHNxdLtCChda0KIGeIXNSiupy5BqEutY+VlWJivKT1OV3Ev3KC5Euzg==}engines: {node: ^20.19.0 || >=22.12.0}cpu: [arm64]os: [win32]- '@oxc-minify/[email protected]':- resolution: {integrity: sha512-ZPx+0Tj4dqn41ecyoGotlvekQKy6JxJCixn9Rw7h/dafZ3eDuBcEVh3c2ZoldXXsyMIt5ywI8IWzFZsjNedd5Q==}- engines: {node: ^20.19.0 || >=22.12.0}- cpu: [arm64]- os: [win32]-- '@oxc-minify/[email protected]':- resolution: {integrity: sha512-H0Oyd3RWBfpEyvJIrFK94RYiY7KKSQl11Ym7LMDwLEagelIAfRCkt1amHZhFa/S3ZRoaOJFXzEw4YKeSsjVFsg==}- engines: {node: ^20.19.0 || >=22.12.0}- cpu: [ia32]- os: [win32]-'@oxc-minify/[email protected]':resolution: {integrity: sha512-XdyJZdSMN8rbBXH10CrFuU+Q9jIP2+MnxHmNzjK4+bldbTI1UxqwjUMS9bKVC5VCaIEZhh8IE8x4Vf8gmCgrKQ==}engines: {node: ^20.19.0 || >=22.12.0}cpu: [x64]os: [win32]- '@oxc-minify/[email protected]':- resolution: {integrity: sha512-Hr3nK90+qXKJ2kepXwFIcNfQQIOBecB4FFCyaMMypthoEEhVP08heRynj4eSXZ8NL9hLjs3fQzH8PJXfpznRnQ==}- engines: {node: ^20.19.0 || >=22.12.0}- cpu: [x64]- os: [win32]-'@oxc-parser/[email protected]':resolution: {integrity: sha512-pD2if3w3cxPvYbsBSTbhxAYGDaG6WVwnqYG0mYRQ142D6SJ6BpNs7YVQrqpRA2AJQCmzaPP5TRp/koFLebagfQ==}engines: {node: ^20.19.0 || >=22.12.0}@@ -1884,214 +1703,95 @@ packages:'@oxc-project/[email protected]':resolution: {integrity: sha512-7lf13b2IA/kZO6xgnIZA88sq3vwrxWk+2vxf6cc+omwYCRTiA5e63Beqf3fz/v8jEviChWWmFYBwzfSeyrsj7Q==}- '@oxc-transform/[email protected]':- resolution: {integrity: sha512-sE9dxvqqAax1YYJ3t7j+h5ZSI9jl6dYuDfngl6ieZUrIy5P89/8JKVgAzgp8o3wQSo7ndpJvYsi1K4ZqrmbP7w==}- engines: {node: ^20.19.0 || >=22.12.0}- cpu: [arm]- os: [android]-'@oxc-transform/[email protected]':resolution: {integrity: sha512-JLBT7EiExsGmB6LuBBnm6qTfg0rLSxBU+F7xjqy6UXYpL7zhqelGJL7IAq6Pu5UYFT55zVlXXmgzLOXQfpQjXA==}engines: {node: ^20.19.0 || >=22.12.0}cpu: [arm64]os: [android]- '@oxc-transform/[email protected]':- resolution: {integrity: sha512-nqtbP4aMCtsCZ6qpHlHaQoWVHSBtlKzwaAgwEOvR+9DWqHjk31BHvpGiDXlMeed6CVNpl3lCbWgygb3RcSjcfw==}- engines: {node: ^20.19.0 || >=22.12.0}- cpu: [arm64]- os: [android]-'@oxc-transform/[email protected]':resolution: {integrity: sha512-xmsBCk/NwE0khy8h6wLEexiS5abCp1ZqJUNHsAovJdGgIW21oGwhiC3VYg1vNLbq+zEXwOHuphVuNEYfBwyNTw==}engines: {node: ^20.19.0 || >=22.12.0}cpu: [arm64]os: [darwin]- '@oxc-transform/[email protected]':- resolution: {integrity: sha512-oeSeHnL4Z4cMXtc8V0/rwoVn0dgwlS9q0j6LcHn9dIhtFEdp3W0iSBF8YmMQA+E7sILeLDjsHmHE4Kp0sOScXw==}- engines: {node: ^20.19.0 || >=22.12.0}- cpu: [arm64]- os: [darwin]-'@oxc-transform/[email protected]':resolution: {integrity: sha512-EhBsiq8hSd5BRjlWACB9MxTUiZT2He1s1b3tRP8k3lB8ZTt6sXnDXIWhxRmmM0h//xe6IJ2HuMlbvjXPo/tATg==}engines: {node: ^20.19.0 || >=22.12.0}cpu: [x64]os: [darwin]- '@oxc-transform/[email protected]':- resolution: {integrity: sha512-nL9K5x7OuZydobAGPylsEW9d4APs2qEkIBLMgQPA+kY8dtVD3IR87QsTbs4l4DBQYyun/+ay6qVCDlxqxdX2Jg==}- engines: {node: ^20.19.0 || >=22.12.0}- cpu: [x64]- os: [darwin]-'@oxc-transform/[email protected]':resolution: {integrity: sha512-eujvuYf0x7BFgKyFecbXUa2JBEXT4Ss6vmyrrhVdN07jaeJRiobaKAmeNXBkanoWL2KQLELJbSBgs1ykWYTkzg==}engines: {node: ^20.19.0 || >=22.12.0}cpu: [x64]os: [freebsd]- '@oxc-transform/[email protected]':- resolution: {integrity: sha512-GS29zXXirDQhZEUq8xKJ1azAWMuUy3Ih3W5Bc5ddk12LRthO5wRLFcKIyeHpAXCoXymQ+LmxbMtbPf84GPxouw==}- engines: {node: ^20.19.0 || >=22.12.0}- cpu: [x64]- os: [freebsd]-'@oxc-transform/[email protected]':resolution: {integrity: sha512-2x7Ro356PHBVp1SS/dOsHBSnrfs5MlPYwhdKg35t6qixt2bv1kzEH0tDmn4TNEbdjOirmvOXoCTEWUvh8A4f4Q==}engines: {node: ^20.19.0 || >=22.12.0}cpu: [arm]os: [linux]- '@oxc-transform/[email protected]':- resolution: {integrity: sha512-glzDHak8ISyZJemCUi7RCvzNSl+MQ1ly9RceT2qRufhUsvNZ4C/2QLJ1HJwd2N6E88bO4laYn+RofdRzNnGGEA==}- engines: {node: ^20.19.0 || >=22.12.0}- cpu: [arm]- os: [linux]-- '@oxc-transform/[email protected]':- resolution: {integrity: sha512-8JThvgJ2FRoTVfbp7e4wqeZqCZbtudM06SfZmNzND9kPNu/LVYygIR+72RWs+xm4bWkuYHg/islo/boNPtMT5Q==}- engines: {node: ^20.19.0 || >=22.12.0}- cpu: [arm]- os: [linux]-'@oxc-transform/[email protected]':resolution: {integrity: sha512-Rz/RbPvT4QwcHKIQ/cOt6Lwl4c7AhK2b6whZfyL6oJ7Uz8UiVl1BCwk8thedrB5h+FEykmaPHoriW1hmBev60g==}engines: {node: ^20.19.0 || >=22.12.0}cpu: [arm64]os: [linux]- '@oxc-transform/[email protected]':- resolution: {integrity: sha512-IRh21Ub/g4bkHoErZ0AUWMlWfoZaS0A6EaOVtbcY70RSYIMlrsbjiFwJCzM+b/1DD1rXbH5tsGcH7GweTbfRqg==}- engines: {node: ^20.19.0 || >=22.12.0}- cpu: [arm64]- os: [linux]-'@oxc-transform/[email protected]':resolution: {integrity: sha512-I08iWABrN7zakn3wuNIBWY3hALQGsDLPQbZT1mXws7tyiQqJNGe49uS0/O50QhX3KXj+mbRGsmjVXLXGJE1CVQ==}engines: {node: ^20.19.0 || >=22.12.0}cpu: [arm64]os: [linux]- '@oxc-transform/[email protected]':- resolution: {integrity: sha512-e5JN94/oy+wevk76q+LMr+2klTTcO60uXa+Wkq558Ms7mdF2TvkKFI++d/JeiuIwJLTi/BxQ4qdT5FWcsHM/ug==}- engines: {node: ^20.19.0 || >=22.12.0}- cpu: [arm64]- os: [linux]-- '@oxc-transform/[email protected]':- resolution: {integrity: sha512-Y3/Tnnz1GvDpmv8FXBIKtdZPsdZklOEPdrL6NHrN5i2u54BOkybFaDSptgWF53wOrJlTrcmAVSE6fRKK9XCM2Q==}- engines: {node: ^20.19.0 || >=22.12.0}- cpu: [ppc64]- os: [linux]-'@oxc-transform/[email protected]':resolution: {integrity: sha512-9+SYW1ARAF6Oj/82ayoqKRe8SI7O1qvzs3Y0kijvhIqAaaZWcFRjI5DToyWRAbnzTtHlMcSllZLXNYdmxBjFxA==}engines: {node: ^20.19.0 || >=22.12.0}cpu: [riscv64]os: [linux]- '@oxc-transform/[email protected]':- resolution: {integrity: sha512-Y0E35iA9/v9jlkNcP6tMJ+ZFOS0rLsWDqG6rU9z+X2R3fBFJBO9UARIK6ngx8upxk81y1TFR2CmBFhupfYdH6Q==}- engines: {node: ^20.19.0 || >=22.12.0}- cpu: [riscv64]- os: [linux]-- '@oxc-transform/[email protected]':- resolution: {integrity: sha512-JOUSYFfHjBUs7xp2FHmZHb8eTYD/oEu0NklS6JgUauqnoXZHiTLPLVW2o2uVCqldnabYHcomuwI2iqVFYJNhTw==}- engines: {node: ^20.19.0 || >=22.12.0}- cpu: [riscv64]- os: [linux]-'@oxc-transform/[email protected]':resolution: {integrity: sha512-HV9nTyQw0TTKYPu+gBhaJBioomiM9O4LcGXi+s5IylCGG6imP0/U13q/9xJnP267QFmiWWqnnSFcv0QAWCyh8A==}engines: {node: ^20.19.0 || >=22.12.0}cpu: [s390x]os: [linux]- '@oxc-transform/[email protected]':- resolution: {integrity: sha512-7blgoXF9D3Ngzb7eun23pNrHJpoV/TtE6LObwlZ3Nmb4oZ6Z+yMvBVaoW68NarbmvNGfZ95zrOjgm6cVETLYBA==}- engines: {node: ^20.19.0 || >=22.12.0}- cpu: [s390x]- os: [linux]-'@oxc-transform/[email protected]':resolution: {integrity: sha512-4wcZ08mmdFk8OjsnglyeYGu5PW3TDh87AmcMOi7tZJ3cpJjfzwDfY27KTEUx6G880OpjAiF36OFSPwdKTKgp2g==}engines: {node: ^20.19.0 || >=22.12.0}cpu: [x64]os: [linux]- '@oxc-transform/[email protected]':- resolution: {integrity: sha512-YQ2joGWCVDZVEU2cD/r/w49hVjDm/Qu1BvC/7zs8LvprzdLS/HyMXGF2oA0puw0b+AqgYaz3bhwKB2xexHyITQ==}- engines: {node: ^20.19.0 || >=22.12.0}- cpu: [x64]- os: [linux]-'@oxc-transform/[email protected]':resolution: {integrity: sha512-rUHZSZBw0FUnUgOhL/Rs7xJz9KjH2eFur/0df6Lwq/isgJc/ggtBtFoZ+y4Fb8ON87a3Y2gS2LT7SEctX0XdPQ==}engines: {node: ^20.19.0 || >=22.12.0}cpu: [x64]os: [linux]- '@oxc-transform/[email protected]':- resolution: {integrity: sha512-fkjr5qE632ULmNgvFXWDR/8668WxERz3tU7TQFp6JebPBneColitjSkdx6VKNVXEoMmQnOvBIGeP5tUNT384oA==}- engines: {node: ^20.19.0 || >=22.12.0}- cpu: [x64]- os: [linux]-'@oxc-transform/[email protected]':resolution: {integrity: sha512-98y4tccTQ/pA+r2KA/MEJIZ7J8TNTJ4aCT4rX8kWK4pGOko2YsfY3Ru9DVHlLDwmVj7wP8Z4JNxdBrAXRvK+0g==}engines: {node: ^20.19.0 || >=22.12.0}cpu: [arm64]os: [openharmony]- '@oxc-transform/[email protected]':- resolution: {integrity: sha512-HWH9Zj+lMrdSTqFRCZsvDWMz7OnMjbdGsm3xURXWfRZpuaz0bVvyuZNDQXc4FyyhRDsemICaJbU1bgeIpUJDGw==}- engines: {node: ^20.19.0 || >=22.12.0}- cpu: [arm64]- os: [openharmony]-'@oxc-transform/[email protected]':resolution: {integrity: sha512-M6myOXxHty3L2TJEB1NlJPtQm0c0LmivAxcGv/+DSDadOoB/UnOUbjM8W2Utlh5IYS9ARSOjqHtBiPYLWJ15XA==}engines: {node: '>=14.0.0'}cpu: [wasm32]- '@oxc-transform/[email protected]':- resolution: {integrity: sha512-ejdxHmYfIcHDPhZUe3WklViLt9mDEJE5BzcW7+R1vc5i/5JFA8D0l7NUSsHBJ7FB8Bu9gF+5iMDm6cXGAgaghw==}- engines: {node: '>=14.0.0'}- cpu: [wasm32]-'@oxc-transform/[email protected]':resolution: {integrity: sha512-jzaA1lLiMXiJs4r7E0BHRxTPiwAkpoCfSNRr8npK/SqL4UQE4cSz3WDTX5wJWRrN2U+xqsDGefeYzH4reI8sgw==}engines: {node: ^20.19.0 || >=22.12.0}cpu: [arm64]os: [win32]- '@oxc-transform/[email protected]':- resolution: {integrity: sha512-9VTwpXCZs7xkV+mKhQ62dVk7KLnLXtEUxNS2T4nLz3iMl1IJbA4h5oltK0JoobtiUAnbkV53QmMVGW8+Nh3bDQ==}- engines: {node: ^20.19.0 || >=22.12.0}- cpu: [arm64]- os: [win32]-- '@oxc-transform/[email protected]':- resolution: {integrity: sha512-5y0fzuNON7/F2hh2P94vANFaRPJ/3DI1hVl5rseCT8VUVqOGIjWaza0YS/D1g6t1WwycW2LWDMi2raOKoWU5GQ==}- engines: {node: ^20.19.0 || >=22.12.0}- cpu: [ia32]- os: [win32]-'@oxc-transform/[email protected]':resolution: {integrity: sha512-eYOm6mch+1cP9qlNkMdorfBFY8aEOxY/isqrreLmEWqF/hyXA0SbLKDigTbvh3JFKny/gXlHoCKckqfua4cwtg==}engines: {node: ^20.19.0 || >=22.12.0}cpu: [x64]os: [win32]- '@oxc-transform/[email protected]':- resolution: {integrity: sha512-QROrowwlrApI1fEScMknGWKM6GTM/Z2xwMnDqvSaEmzNazBsDUlE08Jasw610hFEsYAVU2K5sp/YaCa9ORdP4A==}- engines: {node: ^20.19.0 || >=22.12.0}- cpu: [x64]- os: [win32]-'@parcel/[email protected]':resolution: {integrity: sha512-hoh0vx4v+b3BNI7Cjoy2/B0ARqcwVNrzN/n7DLq9ZB4I3lrsvhrkCViJyfTj/Qi5xM9YFiH4AmHGK6pgH1ss7g==}engines: {node: '>= 10.0.0'}@@ -3271,9 +2971,6 @@ packages:'@types/[email protected]':resolution: {integrity: sha512-ne4A0IpG3+2ETuREInjPNhUGis1SFjv1d5asp8MzEAGtOZeTeHVDOYqOgqfhvseqg/iXty2hjBf1zAOb7RNiNw==}- '@types/[email protected]':- resolution: {integrity: sha512-/rpCXHlCWeqClNBwUhDcusJxXYDjZTyE8v5oTO7WbL8eij2nKhUeU89/6xgjU7N4/Vh3He0BtyhJdQbDyhiXAw==}-'@types/[email protected]':resolution: {integrity: sha512-EULJ8LApcVEPbrfND0cRQqutIOdiIgJ1Mgrhpy755r14xMohPTEpkV/k28SJvuOs9bHRFW8x+KeDAEPiGQPB9Q==}deprecated: This is a stub types definition. parse-path provides its own type definitions, so you do not need this installed.@@ -3675,23 +3372,13 @@ packages:'@workflow/[email protected]':resolution: {integrity: sha512-O5ZN4axqdz7TByGr89cP+plTyhuXHd7pk4Y+UX0WSJRYVowOd1Vc4frVjCPPkPXScwigD8jBvJiTZ5cYlkh3bA==}- '@workflow/[email protected]':- resolution: {integrity: sha512-BnVDltrbGePiFriRNXfUcVmPP55S1hXMTl0tt2c8gZjYVFGeMbM7ngb5440TlUVWOYQOqTGj+JjLVWhm76jLqw==}-'@workflow/[email protected]':resolution: {integrity: sha512-6LV0CdqBA8uA+eYRx4icvuK699wAO4G432LGHlUSkC8299jd/GXhkoLryY9ubMgpseYV2409ufJ5q4YAHsDKpg==}- '@workflow/[email protected]':- resolution: {integrity: sha512-F3GGQz+b2KylowNKlF3xD//+8NhFmVZU5QNvm3tWIr/wTOwNJfk2OP/R27YM+ZNZ1FVB9T9fyGX3805IELdqAA==}-'@workflow/[email protected]':resolution: {integrity: sha512-hiX0Zgjl6AEi/PCST56PqUIZ9DgczG+u3QFlITbTmx1LahBa7DTkIhXF9MlSAprxUvfgc67haJ8lIK1uXb6DNw==}hasBin: true- '@workflow/[email protected]':- resolution: {integrity: sha512-7iCX8KNvm8S4AeHQCEXm5bD38NIFiLXmjXJk8NVdZbo/xmXaP+2xDh96ZBAVNgvbD5ppqUWnE5oixPzZuOti5g==}- hasBin: true-'@workflow/[email protected]':resolution: {integrity: sha512-+W5/9MpR2QBgv065837GJDlG6ZDCd3HLdQlna4WwUtfg4xXR8AczRsuAnAuj4h1YNZn7zkZ/ov2uqKoUWs4KpA==}peerDependencies:@@ -3700,14 +3387,6 @@ packages:'@opentelemetry/api':optional: true- '@workflow/[email protected]':- resolution: {integrity: sha512-0j9KWQCJUM6BbKPiSJgLBskdYbLqCwTp8yZgmGiTUutHlepcZRcYC99/gd9482Az7wY+xcb0CDUu+u8MJDEyrA==}- peerDependencies:- '@opentelemetry/api': '1'- peerDependenciesMeta:- '@opentelemetry/api':- optional: true-'@workflow/[email protected]':resolution: {integrity: sha512-dPesnv9zPLpMYve52w5ITSxNXnBnc5GdxDRTjmHbRSgntsnTjFCtQuyZzB8/3xnP+VlYig1W6mGq9Ch5prgHjQ==}@@ -3719,51 +3398,23 @@ packages:next:optional: true- '@workflow/[email protected]':- resolution: {integrity: sha512-tUWcwKkuASt0Q0/tR6lPCq9Sxmy4h8dBPhh8R5T/RYMiURWWLm/sxrUfv+8Qe9PMlxKqahedy4aTW+fCxSfftw==}- peerDependencies:- next: '>13'- peerDependenciesMeta:- next:- optional: true-'@workflow/[email protected]':resolution: {integrity: sha512-nK+UOgDw+EG53HOjKvsc5Im1/m33iPc9ksA88wzY1og+zvvQQGJA46X7GkH2FB3kPJrnNkCiALsoDD9yBiCzjA==}- '@workflow/[email protected]':- resolution: {integrity: sha512-5dhMQ7kCJ8G10YmqaDFVNGVU51HBENvfzHLMFy/yOBNqBM5dNJDGeUIABQ93fOHm5Ql4K893yjv3ggDWfaPeuw==}-'@workflow/[email protected]':resolution: {integrity: sha512-Y8RAOKHXHEe9ouXOgJO0V8vtTv/jywF6Wfm3GaLcHP9LPFoDn0Rg/4HTY+F8FEi+FiVkIK6tGOeeU92nl3qNbg==}- '@workflow/[email protected]':- resolution: {integrity: sha512-2/GRtwGsYjDj6m4gDckEikp4V3OD86BdZVDlrA/YgvoQJU3J5SxIzRTPXkxCatbveToxDP+B5UCSiBX/512njQ==}-'@workflow/[email protected]':resolution: {integrity: sha512-dlo/1QRGx6tnzivwlel2rUJJviSADzC0vKbZQ1nrqJUTr1nxBqTjnBngv9ZYUfB3PXNOIWG78rmIsEk9+YoKOA==}- '@workflow/[email protected]':- resolution: {integrity: sha512-/SB3KERfOwdFUQBfx8ywcD16vtAGBtYXuDU7BXIM/4cVwAFpUcgrqb1dZfz7Us8x9MO0HLzz3p4kRF2z1gLZXw==}-- '@workflow/[email protected]':- resolution: {integrity: sha512-JdCvZk0sD1qk2XzteSHVNGbpRM8YcvRBglSJy3FysYgi19pBkk3me2P9gzFpPrnQS6IhAPnEqnJOAODHg1iZrA==}-'@workflow/[email protected]':resolution: {integrity: sha512-ldvL2yROCg4pMgFISy0KoqyjqO8JbRf0pgqCcdYZx0ncpS/CRY5EIfgwWlsqHZftrTeFySTLtlGXZOaEpcIllw==}- '@workflow/[email protected]':- resolution: {integrity: sha512-9V06mfWOG30IbSZp2pvr0FtjyrRoeV3mRWq3/kAJGhn/fSfGMkeGQP8VM12dseFmh/8lMGc2eeq6e3wHuwhZTA==}-'@workflow/[email protected]':resolution: {integrity: sha512-j/RRzjefrNs6lxc1cEZq0vG3XVLXfdOKIDUvMD1o0FTeAULQxGT9o9mHqdndMV1mfcEwNzszMXb51LcNAJGJ6A==}peerDependencies:'@swc/core': 1.15.3- '@workflow/[email protected]':- resolution: {integrity: sha512-2LVmlYooc7ZDxcnQEZa2pQVSQWiQat7Mht22SNCG5wXWbmHDayebZa1/vB2p7Nx5GadfzHXbzEmUt37rQyQAxw==}- peerDependencies:- '@swc/core': 1.15.3-'@workflow/[email protected]':resolution: {integrity: sha512-AkZ3wHbPJq0ZhswR9ctdysJ1ZSW3lmYII+spnbgS72zxkwgl1MNwPtlFt1+lANLDLx6638IbRFwFvsqLtQLqrQ==}peerDependencies:@@ -3778,9 +3429,6 @@ packages:'@workflow/[email protected]':resolution: {integrity: sha512-Ac03tpesq4MLVZfhQbxcOcPG+gp4htUSRGHXBuFSjJ+afg6/bef5FQrA0EwVNdtnN+MMRGRD2+eJSyFZh8xzJw==}- '@workflow/[email protected]':- resolution: {integrity: sha512-krGgZ3QzEYfJjpKrHZhL3F1jHZU+7UgSAw/LJzDIvzNC8rlCjZpb6YtpCuldqJO9SwBYxyyfrXu6A8aommushQ==}-'@workflow/[email protected]':resolution: {integrity: sha512-UH14YDYIm6wwOKushJCDOAGtQmUX6I0DZlb9HS1q9EPBWB/DbWqwyoW9ZTutYPOurp341cFYPMuQR65Q9EHKVQ==}peerDependencies:@@ -3789,30 +3437,14 @@ packages:'@opentelemetry/api':optional: true- '@workflow/[email protected]':- resolution: {integrity: sha512-LMCi4x8MQ1Dp9mcbZjwOfpBubaeLCuon28HJG22Lihp33BsO6bvwBqi/As84rV5X+0/sXGxhSdKfNxgLOmf/pA==}- peerDependencies:- '@opentelemetry/api': '1'- peerDependenciesMeta:- '@opentelemetry/api':- optional: true-'@workflow/[email protected]':resolution: {integrity: sha512-ryYOYjJlew5Ngdia9PBM+a8BREFNnD0fBJ0uCQUY06lDIkRGBeCliWQp2G2ZJ7O9obQU3DxnOWzf7eEAsUO0eg==}- '@workflow/[email protected]':- resolution: {integrity: sha512-zYsTNhR69Ba+Hs5k7MpuGS465zFt3VEZqckPopkK/z3TzDshKMesTuA3WAZ+ESfMdJ8hMusG1sDQX3lu2xNYeg==}-'@workflow/[email protected]':resolution: {integrity: sha512-+v2Tm0k+Fa6t2Q37w9sq2Fv6zW16uxcTdqRQzmA/8LAskF1IsRgR6rvzC+yQ4Ghl3y1xENlhwxN0DLduzebAYA==}peerDependencies:zod: 4.1.11- '@workflow/[email protected]':- resolution: {integrity: sha512-2u7/iHFDP4ADPZYBarH7xQsM10aY5sQjPYm2BGefgFA35UV3rxrJcT8OYaxhF4v6iM/q8QCSqvJFp/7xIobrxQ==}- peerDependencies:- zod: 4.1.11-'@xyflow/[email protected]':resolution: {integrity: sha512-PSWoJ8vHiEqSIkLIkge+0eiHWiw4C6dyFDA03VKWJkqbU4A13VlDIVwKqf/Znuysn2GQw/zA61zpHE4rGgax7Q==}peerDependencies:@@ -4257,14 +3889,6 @@ packages:resolution: {integrity: sha512-ojKiDvcmByhwa8YYqbQI/hg7MEU0NC03+pSdEq4ZUnZR9xXpwk7E43SMNGkn+JxJGPFtNvQ48+vV2p+P1ml5PA==}- resolution: {integrity: sha512-lmf5mtwHiToP3HumOx53cqS0T5TK8GMBpsbSCXRB5OuszbltTgGOO4B1WhrDYqTeXOk3BAemibNjJx8E0/ecNw==}- peerDependencies:- srvx: '>=0.7.1'- peerDependenciesMeta:- srvx:- optional: true-resolution: {integrity: sha512-gz6x+KkgNCjxq3Var03pRYLhyNfwhkKF1g/yoLgDNtFvVu0/fOLV9C8fFEZRjACp/XQLumjAYo7JVjzH3wLbxA==}engines: {node: ^14 || ^16 || >=18}@@ -5139,6 +4763,10 @@ packages:resolution: {integrity: sha512-L5bGsVkxJbJgdnwyuheIunkGatUF/zssUoxxjACCseZYAVbaqdh9Tsmmlkl8vYan09H7sbvKt4pS8GqKLBrEzA==}hasBin: true+ resolution: {integrity: sha512-wwGgnwnZuJT7v9RNssirmhWwTo/zeFkbCVF8KDzm0VrH+lPOW0OOl4degdKy6ofNxNjOMpLE0GgCuH/4AJFSzA==}+ hasBin: true+resolution: {integrity: sha512-WNvqJjOxxs/8ZP9+DWdwWJ7cDsd60NHf39XnD82pDVrKO5q7xfPqpkK6hwEAmBa/ZSEE4IOoR75EzbbIuwGlMw==}@@ -5200,15 +4828,6 @@ packages:resolution: {integrity: sha512-xEyq3rSl+dhGX2Lm0+eFQIAzlDN6Fs0EcC4f7BNUmzaRX/PTzeuM+Tr2lHB8FoXggsQIeXLj8EDVgs5ywxyxmg==}- resolution: {integrity: sha512-2myzjCqy32c1As9TjZW9fNZXtLqNedjFSrdFy2AjFBQQ3LzrnGoDdFDYfC0tV2e4vcyfJ2Sfo/F6NQhO2Ly/Mw==}- engines: {node: '>=20.11.1'}- peerDependencies:- crossws: ^0.4.1- peerDependenciesMeta:- crossws:- optional: true-resolution: {integrity: sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==}engines: {node: '>=8'}@@ -6108,28 +5727,6 @@ packages:sass:optional: true- resolution: {integrity: sha512-1VozaVz0lVfGL3c2wZ4c6bmQCm340gDiIYUU3lcg8vVGL/WeuTdrd6OhJiUHZWofc7fFdquhS8Gm+13c3Tumcw==}-- resolution: {integrity: sha512-YviDY5J/trS821qQ1fpJtpXWIdPYiOizC/meHavlm1Hfuhx//H+Egd1+4C5SegJRgtWMnRPW9n//6Woaw81cTQ==}- engines: {node: ^20.19.0 || >=22.12.0}- hasBin: true- peerDependencies:- rolldown: '>=1.0.0-beta.0'- rollup: ^4- vite: ^7 || ^8 || >=8.0.0-0- xml2js: ^0.6.2- peerDependenciesMeta:- rolldown:- optional: true- rollup:- optional: true- vite:- optional: true- xml2js:- optional: true-resolution: {integrity: sha512-2dDj89C4wC2uzG7guF3CnyG+zwkZosPEp7FFBGHB3AJo11AywOolWhyQJFHDzve8COvGxJaqscye9wW2IrUsNw==}engines: {node: ^20.19.0 || >=22.12.0}@@ -6267,9 +5864,6 @@ packages:resolution: {integrity: sha512-2W4oUZlVaqAPAil6FUg/difl6YhqhUR7x2eZY4bQCko22UXg3hptq9KLQdqFClV+Wu85UX7hNtdGTngi/1BxcA==}- resolution: {integrity: sha512-zpYTCs2byOuft65vI3z43Dd6iSdFbOZZLb9/d21aCpx2rGastVU9dOCv0lu4ykc1Ur1anAYjDi3SUvR0vq50JA==}-resolution: {integrity: sha512-RdR9FQrFwNBNXAr4GixM8YaRZRJ5PUWbKYbE5eOsrwAjJW0q2REGcf79oYPsLyskQCZG1PLN+S/K1V00joZAoQ==}@@ -6325,10 +5919,6 @@ packages:resolution: {integrity: sha512-FphAHDyTCNepQbiQTSyWFMbNc9zdUmj1WBsoLwvZhWm7rEe/IeIKYKRhy75lWOjwFsi5/i4Qucq43hgs3n2Exw==}engines: {node: ^20.19.0 || >=22.12.0}- resolution: {integrity: sha512-KWGTzPo83QmGrXC4ml83PM9HDwUPtZFfasiclUvTV4i3/0j7xRRqINVkrL77CbQnoWura3CMxkRofjQKVDuhBw==}- engines: {node: ^20.19.0 || >=22.12.0}-resolution: {integrity: sha512-xMiyHgr2FZsphQ12ZCsXRvSYzmKXCm1ejmyG4GDZIiKOmhyt5iKtWq0klOfFsEQ6jcgbwrUdwcCVYzr1F+h5og==}engines: {node: ^20.19.0 || >=22.12.0}@@ -6337,10 +5927,6 @@ packages:resolution: {integrity: sha512-MR5ohiBS6/kvxRpmUZ3LIDTTJBEC4xLAEZXfYr7vrA0eP7WHewQaNQPFDgT4Bee89TdmVQ5ZKrifGwxLjSyHHw==}engines: {node: ^20.19.0 || >=22.12.0}- resolution: {integrity: sha512-/fymQNzzUoKZweH0nC5yvbI2eR0yWYusT9TEKDYVgOgYrf9Qmdez9lUFyvxKR9ycx+PTHi/reIOzqf3wkShQsw==}- engines: {node: ^20.19.0 || >=22.12.0}-resolution: {integrity: sha512-BA3hlxq5+Sgzp7TCQF52XDXCK5mwoIZuIuxv/+JuuTzOs2RXkLqWZgZ69d8pJDDjnL7wiREZTWHBzFp/UWH88Q==}peerDependencies:@@ -6979,9 +6565,6 @@ packages:resolution: {integrity: sha512-UT5EDe2cu2E/6O4igUr5PSFs23nvvukicWHx6GnOPlHAiiYbzNuCRQCuiUdHJQcqKalLKlrYJnjY0ySGsXNQXQ==}- resolution: {integrity: sha512-iFE4hLDuloSWcD7mjdCDhx2bKcIsYbtOTpfH5MHHLSKMOUyjqQXTeZVa289uuwEGEKFoE/BAPbhaU4B774nceg==}-resolution: {integrity: sha512-DPe5pVFaAsinSaV6QjQ6gdiedWDcRCbUuiQfQa2wmWV7+xC9bGulGI8+TdRmoFkAPaBXk8CrAbnlY2ISniJ47Q==}engines: {node: '>=18'}@@ -7724,80 +7307,6 @@ packages:uploadthing:optional: true- resolution: {integrity: sha512-Sj8btci21Twnd6M+N+MHhjg3fVn6lAPElPmvFTe0Y/wR0WImErUdA1PzlAaUavHylJ7uDiFwlZDQKm0elG4b7g==}- peerDependencies:- '@azure/app-configuration': ^1.9.0- '@azure/cosmos': ^4.7.0- '@azure/data-tables': ^13.3.1- '@azure/identity': ^4.13.0- '@azure/keyvault-secrets': ^4.10.0- '@azure/storage-blob': ^12.29.1- '@capacitor/preferences': ^6.0.3 || ^7.0.0- '@deno/kv': '>=0.12.0'- '@netlify/blobs': ^6.5.0 || ^7.0.0 || ^8.1.0 || ^9.0.0 || ^10.0.0- '@planetscale/database': ^1.19.0- '@upstash/redis': ^1.35.6- '@vercel/blob': '>=0.27.3'- '@vercel/functions': ^2.2.12 || ^3.0.0- '@vercel/kv': ^1.0.1- aws4fetch: ^1.0.20- chokidar: ^4 || ^5- db0: '>=0.3.4'- idb-keyval: ^6.2.2- ioredis: ^5.8.2- lru-cache: ^11.2.2- mongodb: ^6 || ^7- ofetch: '*'- uploadthing: ^7.7.4- peerDependenciesMeta:- '@azure/app-configuration':- optional: true- '@azure/cosmos':- optional: true- '@azure/data-tables':- optional: true- '@azure/identity':- optional: true- '@azure/keyvault-secrets':- optional: true- '@azure/storage-blob':- optional: true- '@capacitor/preferences':- optional: true- '@deno/kv':- optional: true- '@netlify/blobs':- optional: true- '@planetscale/database':- optional: true- '@upstash/redis':- optional: true- '@vercel/blob':- optional: true- '@vercel/functions':- optional: true- '@vercel/kv':- optional: true- aws4fetch:- optional: true- chokidar:- optional: true- db0:- optional: true- idb-keyval:- optional: true- ioredis:- optional: true- lru-cache:- optional: true- mongodb:- optional: true- ofetch:- optional: true- uploadthing:- optional: true-resolution: {integrity: sha512-4luGP9LMYszMRZwsvyUd9MrxgEGZdZuZgpVQHEEX0lCYFESasVRvZd0EYpCkOIbJKHMuv0LskpXc/8Un+MJzEQ==}hasBin: true@@ -8068,15 +7577,6 @@ packages:'@opentelemetry/api':optional: true- resolution: {integrity: sha512-dydTsZR7KW+WOtEDp2PiBiOt5WGz5z8kS3kLUkZwi7M0XhEZsFyfIg+I17MmZXeKf0BEaVssyDqHI1EC/SbeTw==}- hasBin: true- peerDependencies:- '@opentelemetry/api': '1'- peerDependenciesMeta:- '@opentelemetry/api':- optional: true-resolution: {integrity: sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==}engines: {node: '>=10'}@@ -10179,115 +9679,53 @@ snapshots:'@opentelemetry/[email protected]': {}- '@oxc-minify/[email protected]':- optional: true-'@oxc-minify/[email protected]':optional: true- '@oxc-minify/[email protected]':- optional: true-'@oxc-minify/[email protected]':optional: true- '@oxc-minify/[email protected]':- optional: true-'@oxc-minify/[email protected]':optional: true- '@oxc-minify/[email protected]':- optional: true-'@oxc-minify/[email protected]':optional: true- '@oxc-minify/[email protected]':- optional: true-'@oxc-minify/[email protected]':optional: true- '@oxc-minify/[email protected]':- optional: true-- '@oxc-minify/[email protected]':- optional: true-'@oxc-minify/[email protected]':optional: true- '@oxc-minify/[email protected]':- optional: true-'@oxc-minify/[email protected]':optional: true- '@oxc-minify/[email protected]':- optional: true-- '@oxc-minify/[email protected]':- optional: true-'@oxc-minify/[email protected]':optional: true- '@oxc-minify/[email protected]':- optional: true-- '@oxc-minify/[email protected]':- optional: true-'@oxc-minify/[email protected]':optional: true- '@oxc-minify/[email protected]':- optional: true-'@oxc-minify/[email protected]':optional: true- '@oxc-minify/[email protected]':- optional: true-'@oxc-minify/[email protected]':optional: true- '@oxc-minify/[email protected]':- optional: true-'@oxc-minify/[email protected]':optional: true- '@oxc-minify/[email protected]':- optional: true-'@oxc-minify/[email protected]':dependencies:'@napi-rs/wasm-runtime': 1.1.1optional: true- '@oxc-minify/[email protected]':- dependencies:- '@napi-rs/wasm-runtime': 1.1.1- optional: true-'@oxc-minify/[email protected]':optional: true- '@oxc-minify/[email protected]':- optional: true-- '@oxc-minify/[email protected]':- optional: true-'@oxc-minify/[email protected]':optional: true- '@oxc-minify/[email protected]':- optional: true-'@oxc-parser/[email protected]':optional: true@@ -10341,115 +9779,53 @@ snapshots:'@oxc-project/[email protected]': {}- '@oxc-transform/[email protected]':- optional: true-'@oxc-transform/[email protected]':optional: true- '@oxc-transform/[email protected]':- optional: true-'@oxc-transform/[email protected]':optional: true- '@oxc-transform/[email protected]':- optional: true-'@oxc-transform/[email protected]':optional: true- '@oxc-transform/[email protected]':- optional: true-'@oxc-transform/[email protected]':optional: true- '@oxc-transform/[email protected]':- optional: true-'@oxc-transform/[email protected]':optional: true- '@oxc-transform/[email protected]':- optional: true-- '@oxc-transform/[email protected]':- optional: true-'@oxc-transform/[email protected]':optional: true- '@oxc-transform/[email protected]':- optional: true-'@oxc-transform/[email protected]':optional: true- '@oxc-transform/[email protected]':- optional: true-- '@oxc-transform/[email protected]':- optional: true-'@oxc-transform/[email protected]':optional: true- '@oxc-transform/[email protected]':- optional: true-- '@oxc-transform/[email protected]':- optional: true-'@oxc-transform/[email protected]':optional: true- '@oxc-transform/[email protected]':- optional: true-'@oxc-transform/[email protected]':optional: true- '@oxc-transform/[email protected]':- optional: true-'@oxc-transform/[email protected]':optional: true- '@oxc-transform/[email protected]':- optional: true-'@oxc-transform/[email protected]':optional: true- '@oxc-transform/[email protected]':- optional: true-'@oxc-transform/[email protected]':dependencies:'@napi-rs/wasm-runtime': 1.1.1optional: true- '@oxc-transform/[email protected]':- dependencies:- '@napi-rs/wasm-runtime': 1.1.1- optional: true-'@oxc-transform/[email protected]':optional: true- '@oxc-transform/[email protected]':- optional: true-- '@oxc-transform/[email protected]':- optional: true-'@oxc-transform/[email protected]':optional: true- '@oxc-transform/[email protected]':- optional: true-'@parcel/[email protected]':optional: true@@ -11563,10 +10939,6 @@ snapshots:dependencies:undici-types: 7.16.0- '@types/[email protected]':- dependencies:- undici-types: 7.16.0-'@types/[email protected]':dependencies:parse-path: 7.1.0@@ -12034,63 +11406,29 @@ snapshots:'@workflow/[email protected](@aws-sdk/[email protected])(@opentelemetry/[email protected])(@swc/[email protected])':dependencies:'@swc/core': 1.15.3(@swc/[email protected])- '@workflow/builders': 4.0.1-beta.36(@aws-sdk/[email protected])(@opentelemetry/[email protected])(@swc/[email protected])- '@workflow/rollup': 4.0.0-beta.6(@swc/[email protected])- '@workflow/swc-plugin': 4.0.1-beta.12(@swc/[email protected](@swc/[email protected]))- '@workflow/vite': 4.0.0-beta.2- exsolve: 1.0.8- pathe: 2.0.3- transitivePeerDependencies:- - '@aws-sdk/client-sts'- - '@opentelemetry/api'- - '@swc/helpers'- - supports-color-- '@workflow/[email protected](@aws-sdk/[email protected])(@opentelemetry/[email protected])(@swc/[email protected])':- dependencies:- '@swc/core': 1.15.3(@swc/[email protected])- '@workflow/builders': 4.0.1-beta.40(@aws-sdk/[email protected])(@opentelemetry/[email protected])(@swc/[email protected])- '@workflow/rollup': 4.0.0-beta.8(@swc/[email protected])- '@workflow/swc-plugin': 4.0.1-beta.14(@swc/[email protected](@swc/[email protected]))- '@workflow/vite': 4.0.0-beta.2- exsolve: 1.0.8- pathe: 2.0.3- transitivePeerDependencies:- - '@aws-sdk/client-sts'- - '@opentelemetry/api'- - '@swc/helpers'- - supports-color-- '@workflow/[email protected](@aws-sdk/[email protected])(@opentelemetry/[email protected])(@swc/[email protected])':- dependencies:- '@swc/core': 1.15.3(@swc/[email protected])- '@workflow/core': 4.0.1-beta.36(@aws-sdk/[email protected])(@opentelemetry/[email protected])- '@workflow/errors': 4.0.1-beta.13+ '@workflow/builders': 4.0.1-beta.36(@aws-sdk/[email protected])(@opentelemetry/[email protected])(@swc/[email protected])+ '@workflow/rollup': 4.0.0-beta.6(@swc/[email protected])'@workflow/swc-plugin': 4.0.1-beta.12(@swc/[email protected](@swc/[email protected]))- builtin-modules: 5.0.0- chalk: 5.6.2- enhanced-resolve: 5.18.2- esbuild: 0.25.12- find-up: 7.0.0- tinyglobby: 0.2.14+ '@workflow/vite': 4.0.0-beta.2+ exsolve: 1.0.8+ pathe: 2.0.3transitivePeerDependencies:- '@aws-sdk/client-sts'- '@opentelemetry/api'- '@swc/helpers'- supports-color- '@workflow/[email protected](@aws-sdk/[email protected])(@opentelemetry/[email protected])(@swc/[email protected])':+ '@workflow/[email protected](@aws-sdk/[email protected])(@opentelemetry/[email protected])(@swc/[email protected])':dependencies:'@swc/core': 1.15.3(@swc/[email protected])- '@workflow/core': 4.0.1-beta.40(@aws-sdk/[email protected])(@opentelemetry/[email protected])+ '@workflow/core': 4.0.1-beta.36(@aws-sdk/[email protected])(@opentelemetry/[email protected])'@workflow/errors': 4.0.1-beta.13- '@workflow/swc-plugin': 4.0.1-beta.14(@swc/[email protected](@swc/[email protected]))+ '@workflow/swc-plugin': 4.0.1-beta.12(@swc/[email protected](@swc/[email protected]))builtin-modules: 5.0.0chalk: 5.6.2enhanced-resolve: 5.18.2esbuild: 0.25.12find-up: 7.0.0- json5: 2.2.3tinyglobby: 0.2.14transitivePeerDependencies:- '@aws-sdk/client-sts'@@ -12148,51 +11486,6 @@ snapshots:- supports-color- typescript- '@workflow/[email protected](@aws-sdk/[email protected])(@opentelemetry/[email protected])(@swc/[email protected])([email protected]([email protected]))([email protected])([email protected])':- dependencies:- '@oclif/core': 4.0.0([email protected])- '@oclif/plugin-help': 6.2.31([email protected])- '@swc/core': 1.15.3(@swc/[email protected])- '@workflow/builders': 4.0.1-beta.40(@aws-sdk/[email protected])(@opentelemetry/[email protected])(@swc/[email protected])- '@workflow/core': 4.0.1-beta.40(@aws-sdk/[email protected])(@opentelemetry/[email protected])- '@workflow/errors': 4.0.1-beta.13- '@workflow/swc-plugin': 4.0.1-beta.14(@swc/[email protected](@swc/[email protected]))- '@workflow/utils': 4.0.1-beta.10- '@workflow/web': 4.0.1-beta.29(@opentelemetry/[email protected])([email protected]([email protected]))([email protected])- '@workflow/world': 4.0.1-beta.13([email protected])- '@workflow/world-local': 4.0.1-beta.26(@opentelemetry/[email protected])- '@workflow/world-vercel': 4.0.1-beta.27- boxen: 8.0.1- builtin-modules: 5.0.0- chalk: 5.6.2- chokidar: 4.0.3- date-fns: 4.1.0- dotenv: 16.6.1- easy-table: 1.2.0- enhanced-resolve: 5.18.2- esbuild: 0.25.12- find-up: 7.0.0- mixpart: 0.0.4- open: 10.2.0- ora: 8.2.0- terminal-link: 5.0.0- tinyglobby: 0.2.14- xdg-app-paths: 5.1.0- zod: 4.1.11- transitivePeerDependencies:- - '@aws-sdk/client-sts'- - '@babel/core'- - '@opentelemetry/api'- - '@playwright/test'- - '@swc/helpers'- - babel-plugin-macros- - babel-plugin-react-compiler- - react- - react-dom- - sass- - supports-color- - typescript-dependencies:'@aws-sdk/credential-provider-web-identity': 3.609.0(@aws-sdk/[email protected])@@ -12218,32 +11511,6 @@ snapshots:- '@aws-sdk/client-sts'- supports-color- dependencies:- '@aws-sdk/credential-provider-web-identity': 3.609.0(@aws-sdk/[email protected])- '@jridgewell/trace-mapping': 0.3.31- '@standard-schema/spec': 1.0.0- '@types/ms': 2.1.0- '@vercel/functions': 3.3.6(@aws-sdk/[email protected](@aws-sdk/[email protected]))- '@workflow/errors': 4.0.1-beta.13- '@workflow/serde': 4.0.1-beta.1- '@workflow/utils': 4.0.1-beta.10- '@workflow/world': 4.0.1-beta.13([email protected])- '@workflow/world-local': 4.0.1-beta.26(@opentelemetry/[email protected])- '@workflow/world-vercel': 4.0.1-beta.27- debug: 4.4.3([email protected])- devalue: 5.6.0- ms: 2.1.3- nanoid: 5.1.6- seedrandom: 3.0.5- ulid: 3.0.1- zod: 4.1.11- optionalDependencies:- '@opentelemetry/api': 1.9.0- transitivePeerDependencies:- - '@aws-sdk/client-sts'- - supports-color-'@workflow/[email protected]':dependencies:'@workflow/utils': 4.0.1-beta.10@@ -12265,22 +11532,6 @@ snapshots:- '@swc/helpers'- supports-color- '@workflow/[email protected](@aws-sdk/[email protected])(@opentelemetry/[email protected])(@swc/[email protected])([email protected](@opentelemetry/[email protected])([email protected]([email protected]))([email protected]))':- dependencies:- '@swc/core': 1.15.3(@swc/[email protected])- '@workflow/builders': 4.0.1-beta.40(@aws-sdk/[email protected])(@opentelemetry/[email protected])(@swc/[email protected])- '@workflow/core': 4.0.1-beta.40(@aws-sdk/[email protected])(@opentelemetry/[email protected])- '@workflow/swc-plugin': 4.0.1-beta.14(@swc/[email protected](@swc/[email protected]))- semver: 7.7.3- watchpack: 2.4.4- optionalDependencies:- next: 16.0.10(@babel/[email protected])(@opentelemetry/[email protected])([email protected]([email protected]))([email protected])- transitivePeerDependencies:- - '@aws-sdk/client-sts'- - '@opentelemetry/api'- - '@swc/helpers'- - supports-color-'@workflow/[email protected](@aws-sdk/[email protected])(@opentelemetry/[email protected])(@swc/[email protected])':dependencies:'@swc/core': 1.15.3(@swc/[email protected])@@ -12297,22 +11548,6 @@ snapshots:- '@swc/helpers'- supports-color- '@workflow/[email protected](@aws-sdk/[email protected])(@opentelemetry/[email protected])(@swc/[email protected])':- dependencies:- '@swc/core': 1.15.3(@swc/[email protected])- '@workflow/builders': 4.0.1-beta.40(@aws-sdk/[email protected])(@opentelemetry/[email protected])(@swc/[email protected])- '@workflow/core': 4.0.1-beta.40(@aws-sdk/[email protected])(@opentelemetry/[email protected])- '@workflow/rollup': 4.0.0-beta.8(@swc/[email protected])- '@workflow/swc-plugin': 4.0.1-beta.14(@swc/[email protected](@swc/[email protected]))- '@workflow/vite': 4.0.0-beta.2- exsolve: 1.0.7- pathe: 2.0.3- transitivePeerDependencies:- - '@aws-sdk/client-sts'- - '@opentelemetry/api'- - '@swc/helpers'- - supports-color-'@workflow/[email protected](@aws-sdk/[email protected])(@opentelemetry/[email protected])(@swc/[email protected])([email protected])':dependencies:'@nuxt/kit': 4.2.0([email protected])@@ -12324,17 +11559,6 @@ snapshots:- magicast- supports-color- '@workflow/[email protected](@aws-sdk/[email protected])(@opentelemetry/[email protected])(@swc/[email protected])([email protected])':- dependencies:- '@nuxt/kit': 4.2.0([email protected])- '@workflow/nitro': 4.0.1-beta.44(@aws-sdk/[email protected])(@opentelemetry/[email protected])(@swc/[email protected])- transitivePeerDependencies:- - '@aws-sdk/client-sts'- - '@opentelemetry/api'- - '@swc/helpers'- - magicast- - supports-color-'@workflow/[email protected](@swc/[email protected])':dependencies:'@swc/core': 1.15.3(@swc/[email protected])@@ -12343,16 +11567,6 @@ snapshots:transitivePeerDependencies:- '@swc/helpers'- '@workflow/[email protected](@swc/[email protected])':- dependencies:- '@swc/core': 1.15.3(@swc/[email protected])- '@workflow/swc-plugin': 4.0.1-beta.14(@swc/[email protected](@swc/[email protected]))- exsolve: 1.0.7- transitivePeerDependencies:- - '@swc/helpers'-- '@workflow/[email protected]': {}-'@workflow/[email protected](@aws-sdk/[email protected])(@opentelemetry/[email protected])(@swc/[email protected])':dependencies:'@swc/core': 1.15.3(@swc/[email protected])@@ -12369,30 +11583,10 @@ snapshots:- '@swc/helpers'- supports-color- '@workflow/[email protected](@aws-sdk/[email protected])(@opentelemetry/[email protected])(@swc/[email protected])':- dependencies:- '@swc/core': 1.15.3(@swc/[email protected])- '@workflow/builders': 4.0.1-beta.40(@aws-sdk/[email protected])(@opentelemetry/[email protected])(@swc/[email protected])- '@workflow/rollup': 4.0.0-beta.8(@swc/[email protected])- '@workflow/swc-plugin': 4.0.1-beta.14(@swc/[email protected](@swc/[email protected]))- '@workflow/vite': 4.0.0-beta.2- exsolve: 1.0.8- fs-extra: 11.3.3- pathe: 2.0.3- transitivePeerDependencies:- - '@aws-sdk/client-sts'- - '@opentelemetry/api'- - '@swc/helpers'- - supports-color-dependencies:'@swc/core': 1.15.3(@swc/[email protected])- dependencies:- '@swc/core': 1.15.3(@swc/[email protected])-'@workflow/[email protected]([email protected])':dependencies:typescript: 5.9.3@@ -12424,19 +11618,6 @@ snapshots:- react-router-dom- sass- '@workflow/[email protected](@opentelemetry/[email protected])([email protected]([email protected]))([email protected])':- dependencies:- next: 16.0.10(@babel/[email protected])(@opentelemetry/[email protected])([email protected]([email protected]))([email protected])- transitivePeerDependencies:- - '@babel/core'- - '@opentelemetry/api'- - '@playwright/test'- - babel-plugin-macros- - babel-plugin-react-compiler- - react- - react-dom- - sass-'@workflow/[email protected](@opentelemetry/[email protected])':dependencies:'@vercel/queue': 0.0.0-alpha.33@@ -12450,19 +11631,6 @@ snapshots:optionalDependencies:'@opentelemetry/api': 1.9.0- '@workflow/[email protected](@opentelemetry/[email protected])':- dependencies:- '@vercel/queue': 0.0.0-alpha.33- '@workflow/errors': 4.0.1-beta.13- '@workflow/utils': 4.0.1-beta.10- '@workflow/world': 4.0.1-beta.13([email protected])- async-sema: 3.1.1- ulid: 3.0.1- undici: 6.22.0- zod: 4.1.11- optionalDependencies:- '@opentelemetry/api': 1.9.0-'@workflow/[email protected]':dependencies:'@vercel/oidc': 3.0.5@@ -12471,22 +11639,10 @@ snapshots:'@workflow/world': 4.0.1-beta.12([email protected])zod: 4.1.11- '@workflow/[email protected]':- dependencies:- '@vercel/oidc': 3.0.5- '@vercel/queue': 0.0.0-alpha.33- '@workflow/errors': 4.0.1-beta.13- '@workflow/world': 4.0.1-beta.13([email protected])- zod: 4.1.11-'@workflow/[email protected]([email protected])':dependencies:zod: 4.1.11- '@workflow/[email protected]([email protected])':- dependencies:- zod: 4.1.11-dependencies:'@xyflow/system': 0.0.73@@ -12923,10 +12079,6 @@ snapshots:dependencies:uncrypto: 0.1.3- optionalDependencies:- srvx: 0.10.1-dependencies:postcss: 8.5.6@@ -13816,6 +12968,8 @@ snapshots:nypm: 0.6.4pathe: 2.0.3+ [email protected]: {}+@@ -13900,13 +13054,6 @@ snapshots:ufo: 1.6.3uncrypto: 0.1.3- dependencies:- rou3: 0.7.12- srvx: 0.10.1- optionalDependencies:- crossws: 0.4.3([email protected])-@@ -14979,57 +14126,6 @@ snapshots:- '@babel/core'- babel-plugin-macros- [email protected]: {}-- [email protected](@libsql/[email protected])(@upstash/[email protected])(@vercel/[email protected])(@vercel/[email protected](@aws-sdk/[email protected](@aws-sdk/[email protected])))([email protected])([email protected](@cloudflare/[email protected])(@libsql/[email protected])(@opentelemetry/[email protected])(@upstash/[email protected]))([email protected])([email protected])([email protected])([email protected])([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected])):- dependencies:- consola: 3.4.2- crossws: 0.4.3([email protected])- db0: 0.3.4(@libsql/[email protected])([email protected](@cloudflare/[email protected])(@libsql/[email protected])(@opentelemetry/[email protected])(@upstash/[email protected]))- h3: 2.0.1-rc.11([email protected]([email protected]))- jiti: 2.6.1- nf3: 0.3.5- ofetch: 2.0.0-alpha.3- ohash: 2.0.11- oxc-minify: 0.110.0- oxc-transform: 0.110.0- srvx: 0.10.1- undici: 7.19.0- unenv: 2.0.0-rc.24- unstorage: 2.0.0-alpha.5(@upstash/[email protected])(@vercel/[email protected])(@vercel/[email protected](@aws-sdk/[email protected](@aws-sdk/[email protected])))([email protected])([email protected](@libsql/[email protected])([email protected](@cloudflare/[email protected])(@libsql/[email protected])(@opentelemetry/[email protected])(@upstash/[email protected])))([email protected])([email protected])([email protected])- optionalDependencies:- rolldown: 1.0.0-beta.60- rollup: 4.55.3- vite: 7.3.1(@types/[email protected])([email protected])([email protected])([email protected])([email protected])- transitivePeerDependencies:- - '@azure/app-configuration'- - '@azure/cosmos'- - '@azure/data-tables'- - '@azure/identity'- - '@azure/keyvault-secrets'- - '@azure/storage-blob'- - '@capacitor/preferences'- - '@deno/kv'- - '@electric-sql/pglite'- - '@libsql/client'- - '@netlify/blobs'- - '@planetscale/database'- - '@upstash/redis'- - '@vercel/blob'- - '@vercel/functions'- - '@vercel/kv'- - aws4fetch- - better-sqlite3- - chokidar- - drizzle-orm- - idb-keyval- - ioredis- - lru-cache- - mongodb- - mysql2- - sqlite3- - uploadthing-[email protected](@libsql/[email protected])(@upstash/[email protected])(@vercel/[email protected])(@vercel/[email protected](@aws-sdk/[email protected](@aws-sdk/[email protected])))(@vercel/[email protected])([email protected](@cloudflare/[email protected])(@libsql/[email protected])(@opentelemetry/[email protected])(@upstash/[email protected]))([email protected]):dependencies:'@cloudflare/kv-asset-handler': 0.4.2@@ -15346,8 +14442,6 @@ snapshots:node-fetch-native: 1.6.7ufo: 1.6.3- [email protected]: {}-@@ -15433,29 +14527,6 @@ snapshots:'@oxc-minify/binding-win32-arm64-msvc': 0.102.0'@oxc-minify/binding-win32-x64-msvc': 0.102.0- optionalDependencies:- '@oxc-minify/binding-android-arm-eabi': 0.110.0- '@oxc-minify/binding-android-arm64': 0.110.0- '@oxc-minify/binding-darwin-arm64': 0.110.0- '@oxc-minify/binding-darwin-x64': 0.110.0- '@oxc-minify/binding-freebsd-x64': 0.110.0- '@oxc-minify/binding-linux-arm-gnueabihf': 0.110.0- '@oxc-minify/binding-linux-arm-musleabihf': 0.110.0- '@oxc-minify/binding-linux-arm64-gnu': 0.110.0- '@oxc-minify/binding-linux-arm64-musl': 0.110.0- '@oxc-minify/binding-linux-ppc64-gnu': 0.110.0- '@oxc-minify/binding-linux-riscv64-gnu': 0.110.0- '@oxc-minify/binding-linux-riscv64-musl': 0.110.0- '@oxc-minify/binding-linux-s390x-gnu': 0.110.0- '@oxc-minify/binding-linux-x64-gnu': 0.110.0- '@oxc-minify/binding-linux-x64-musl': 0.110.0- '@oxc-minify/binding-openharmony-arm64': 0.110.0- '@oxc-minify/binding-wasm32-wasi': 0.110.0- '@oxc-minify/binding-win32-arm64-msvc': 0.110.0- '@oxc-minify/binding-win32-ia32-msvc': 0.110.0- '@oxc-minify/binding-win32-x64-msvc': 0.110.0-dependencies:'@oxc-project/types': 0.102.0@@ -15494,29 +14565,6 @@ snapshots:'@oxc-transform/binding-win32-arm64-msvc': 0.102.0'@oxc-transform/binding-win32-x64-msvc': 0.102.0- optionalDependencies:- '@oxc-transform/binding-android-arm-eabi': 0.110.0- '@oxc-transform/binding-android-arm64': 0.110.0- '@oxc-transform/binding-darwin-arm64': 0.110.0- '@oxc-transform/binding-darwin-x64': 0.110.0- '@oxc-transform/binding-freebsd-x64': 0.110.0- '@oxc-transform/binding-linux-arm-gnueabihf': 0.110.0- '@oxc-transform/binding-linux-arm-musleabihf': 0.110.0- '@oxc-transform/binding-linux-arm64-gnu': 0.110.0- '@oxc-transform/binding-linux-arm64-musl': 0.110.0- '@oxc-transform/binding-linux-ppc64-gnu': 0.110.0- '@oxc-transform/binding-linux-riscv64-gnu': 0.110.0- '@oxc-transform/binding-linux-riscv64-musl': 0.110.0- '@oxc-transform/binding-linux-s390x-gnu': 0.110.0- '@oxc-transform/binding-linux-x64-gnu': 0.110.0- '@oxc-transform/binding-linux-x64-musl': 0.110.0- '@oxc-transform/binding-openharmony-arm64': 0.110.0- '@oxc-transform/binding-wasm32-wasi': 0.110.0- '@oxc-transform/binding-win32-arm64-msvc': 0.110.0- '@oxc-transform/binding-win32-ia32-msvc': 0.110.0- '@oxc-transform/binding-win32-x64-msvc': 0.110.0-dependencies:magic-regexp: 0.10.0@@ -16295,8 +15343,6 @@ snapshots:- [email protected]: {}-@@ -17048,17 +16094,6 @@ snapshots:db0: 0.3.4(@libsql/[email protected])([email protected](@cloudflare/[email protected])(@libsql/[email protected])(@opentelemetry/[email protected])(@upstash/[email protected]))ioredis: 5.9.2- [email protected](@upstash/[email protected])(@vercel/[email protected])(@vercel/[email protected](@aws-sdk/[email protected](@aws-sdk/[email protected])))([email protected])([email protected](@libsql/[email protected])([email protected](@cloudflare/[email protected])(@libsql/[email protected])(@opentelemetry/[email protected])(@upstash/[email protected])))([email protected])([email protected])([email protected]):- optionalDependencies:- '@upstash/redis': 1.36.1- '@vercel/blob': 2.0.0- '@vercel/functions': 3.3.6(@aws-sdk/[email protected](@aws-sdk/[email protected]))- chokidar: 5.0.0- db0: 0.3.4(@libsql/[email protected])([email protected](@cloudflare/[email protected])(@libsql/[email protected])(@opentelemetry/[email protected])(@upstash/[email protected]))- ioredis: 5.9.2- lru-cache: 11.2.4- ofetch: 2.0.0-alpha.3-dependencies:citty: 0.1.6@@ -17215,23 +16250,6 @@ snapshots:terser: 5.46.0yaml: 2.8.2- [email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected]):- dependencies:- esbuild: 0.27.2- fdir: 6.5.0([email protected])- picomatch: 4.0.3- postcss: 8.5.6- rollup: 4.55.3- tinyglobby: 0.2.15- optionalDependencies:- '@types/node': 25.0.9- fsevents: 2.3.3- jiti: 2.6.1- lightningcss: 1.31.1- terser: 5.46.0- yaml: 2.8.2- optional: true-@@ -17363,36 +16381,6 @@ snapshots:- supports-color- typescript- [email protected](@aws-sdk/[email protected])(@opentelemetry/[email protected])(@swc/[email protected])([email protected])([email protected](@opentelemetry/[email protected])([email protected]([email protected]))([email protected]))([email protected]([email protected]))([email protected])([email protected]):- dependencies:- '@workflow/astro': 4.0.0-beta.23(@aws-sdk/[email protected])(@opentelemetry/[email protected])(@swc/[email protected])- '@workflow/cli': 4.0.1-beta.49(@aws-sdk/[email protected])(@opentelemetry/[email protected])(@swc/[email protected])([email protected]([email protected]))([email protected])([email protected])- '@workflow/core': 4.0.1-beta.40(@aws-sdk/[email protected])(@opentelemetry/[email protected])- '@workflow/errors': 4.0.1-beta.13- '@workflow/next': 4.0.1-beta.45(@aws-sdk/[email protected])(@opentelemetry/[email protected])(@swc/[email protected])([email protected](@opentelemetry/[email protected])([email protected]([email protected]))([email protected]))- '@workflow/nitro': 4.0.1-beta.44(@aws-sdk/[email protected])(@opentelemetry/[email protected])(@swc/[email protected])- '@workflow/nuxt': 4.0.1-beta.33(@aws-sdk/[email protected])(@opentelemetry/[email protected])(@swc/[email protected])([email protected])- '@workflow/rollup': 4.0.0-beta.8(@swc/[email protected])- '@workflow/sveltekit': 4.0.0-beta.38(@aws-sdk/[email protected])(@opentelemetry/[email protected])(@swc/[email protected])- '@workflow/typescript-plugin': 4.0.1-beta.4([email protected])- ms: 2.1.3- optionalDependencies:- '@opentelemetry/api': 1.9.0- transitivePeerDependencies:- - '@aws-sdk/client-sts'- - '@babel/core'- - '@playwright/test'- - '@swc/helpers'- - babel-plugin-macros- - babel-plugin-react-compiler- - magicast- - next- - react- - react-dom- - sass- - supports-color- - typescript-dependencies:ansi-styles: 4.3.0diff --git a/savoir.config.ts b/savoir.config.tsindex 75b86f8..99974dd 100644--- a/savoir.config.ts+++ b/savoir.config.ts@@ -1,6 +1,14 @@-import { defineConfig } from '@savoir/config'--export default defineConfig({+/**+ * Savoir configuration file+ *+ * This file is used as a reference/seed for the sources database.+ * Run `pnpm --filter @savoir/chat db:seed` to seed the database.+ *+ * Sources are stored in SQLite via NuxtHub and can be managed via:+ * - API: GET/POST/PUT/DELETE /api/sources+ * - This file: seed task reads this and upserts into DB+ */+export default {sources: {github: [// Nuxt Corediff --git a/turbo.json b/turbo.jsonindex 2f0adff..4ab8b1f 100644--- a/turbo.json+++ b/turbo.json@@ -6,9 +6,9 @@"outputs": [".vercel/output/**", ".nuxt/**", ".output/**", "dist/**"],"env": ["AI_GATEWAY_API_KEY",- "GITHUB_TOKEN",- "GITHUB_SNAPSHOT_REPO",- "GITHUB_SNAPSHOT_BRANCH",+ "NUXT_GITHUB_TOKEN",+ "NUXT_GITHUB_SNAPSHOT_REPO",+ "NUXT_GITHUB_SNAPSHOT_BRANCH","NUXT_SAVOIR_API_URL","NUXT_SAVOIR_SECRET_KEY","NUXT_OAUTH_GITHUB_CLIENT_ID",@@ -27,7 +27,7 @@"persistent": true,"env": ["AI_GATEWAY_API_KEY",- "GITHUB_TOKEN"+ "NUXT_GITHUB_TOKEN"]},"lint": {