Open source file-system and knowledge based agent template. Build AI agents that stay up to date with your knowledge base
init repo
Hugo Richardf87922154c31
diff --git a/.config/automd.ts b/.config/automd.tsnew file mode 100644index 0000000..3188501--- /dev/null+++ b/.config/automd.ts@@ -0,0 +1,7 @@+import type { Config } from 'automd'++const config: Config = {+ input: ['README.md', '**/*.md']+}++export default configdiff --git a/.editorconfig b/.editorconfignew file mode 100644index 0000000..007463b--- /dev/null+++ b/.editorconfig@@ -0,0 +1,12 @@+root = true++[*]+indent_size = 2+indent_style = space+end_of_line = lf+charset = utf-8+trim_trailing_whitespace = true+insert_final_newline = true++[*.md]+trim_trailing_whitespace = falsediff --git a/.github/ISSUE_TEMPLATE/bug-report.yml b/.github/ISSUE_TEMPLATE/bug-report.ymlnew file mode 100644index 0000000..226ec6b--- /dev/null+++ b/.github/ISSUE_TEMPLATE/bug-report.yml@@ -0,0 +1,54 @@+name: π Bug report+description: Report a bug to help us improve the project.+labels: [bug]+body:+ - type: markdown+ attributes:+ value: |+ Before reporting a bug, please make sure that you have read through our documentation and existing [issues](https://github.com/HugoRCD/savoir/issues) to see if the bug has already been reported or fixed. If it has, please add your reaction to the existing issue instead of creating a new one.+ - type: textarea+ id: env+ attributes:+ label: Environment+ description: |+ Please complete the following information, for example:+ - OS: Windows 10+ - Browser: Chrome 88+ - Node.js version: 14.15.4+ - Package manager: npm 6.14.10+ validations:+ required: true+ - type: input+ id: version+ attributes:+ label: Version+ placeholder: v2.8.0+ validations:+ required: true+ - type: textarea+ id: reproduction+ attributes:+ label: Reproduction+ description: A reproduction is strongly encouraged, to help us identify the issue and fix it. You can use a code sandbox or a repository to reproduce the issue.+ placeholder: https://stackblitz.com/edit/savoir+ validations:+ required: true+ - type: textarea+ id: description+ attributes:+ label: Description+ description: A clear and concise description of what the bug is. If you intend to submit a PR for this issue, tell us in the description.+ validations:+ required: true+ - type: textarea+ id: additional+ attributes:+ label: Additional context+ description: If applicable, add any other context or screenshots here.+ - type: textarea+ id: logs+ attributes:+ label: Logs+ description: |+ Optional if provided reproduction. Please try not to insert an image but copy paste the log text.+ render: shell-scriptdiff --git a/.github/ISSUE_TEMPLATE/feature-request.yml b/.github/ISSUE_TEMPLATE/feature-request.ymlnew file mode 100644index 0000000..ceb3c2f--- /dev/null+++ b/.github/ISSUE_TEMPLATE/feature-request.yml@@ -0,0 +1,20 @@+name: π Feature request+description: Suggest an idea or enhancement for the project.+labels: [enhancement]+body:+ - type: markdown+ attributes:+ value: |+ Before requesting a feature, please make sure that you have read through our documentation and existing [issues](https://github.com/HugoRCD/savoir/issues) to see if the feature has already been requested or implemented. If it has, please add your reaction to the existing issue instead of creating a new one.+ - type: textarea+ id: description+ attributes:+ label: Description+ description: A clear and concise description of what you think would be an helpful addition to the project, including the possible use cases and alternatives you have considered.+ validations:+ required: true+ - type: textarea+ id: additional+ attributes:+ label: Additional context+ description: If applicable, add any other context or screenshots here.diff --git a/.github/ISSUE_TEMPLATE/question.yml b/.github/ISSUE_TEMPLATE/question.ymlnew file mode 100644index 0000000..d03054a--- /dev/null+++ b/.github/ISSUE_TEMPLATE/question.yml@@ -0,0 +1,14 @@+name: π¬ Question+description: Ask a question about the project.+labels: [question]+body:+ - type: markdown+ attributes:+ value: |+ Before requesting a question, please make sure that you have read through our documentation and existing [issues](https://github.com/HugoRCD/savoir/issues) to see if the feature has already been requested or implemented. If it has, please add your reaction to the existing issue instead of creating a new one.+ - type: textarea+ id: description+ attributes:+ label: Description+ validations:+ required: truediff --git a/.github/funding.yml b/.github/funding.ymlnew file mode 100644index 0000000..7698730--- /dev/null+++ b/.github/funding.yml@@ -0,0 +1 @@+github: [HugoRCD]diff --git a/.github/pull_request_template.md b/.github/pull_request_template.mdnew file mode 100644index 0000000..69da6e9--- /dev/null+++ b/.github/pull_request_template.md@@ -0,0 +1,46 @@+<!---+βοΈ PR title should follow conventional commits (https://conventionalcommits.org)+Here are the available types and scopes:++### Types+- breaking (fix or feature that would cause existing functionality to change) π₯+- feat (a non-breaking change that adds functionality) β¨+- fix (a non-breaking change that fixes an issue) π+- build (changes that affect the build system or external dependencies) π+- ci (changes to our CI configuration files and scripts) π+- docs (updates to the documentation or readme) π+- enhancement (improving an existing functionality) π+- chore (updates to the build process or auxiliary tools and libraries) π¦+- perf (a code change that improves performance) β‘οΈ+- style (changes that do not affect the meaning of the code) π+- test (adding or updating tests) π§ͺ+- refactor (a code change that neither fixes a bug nor adds a feature) π+- revert (reverts a previous commit) π++### Scopes+- api (apps/api - Savoir API server)+- chat (apps/chat - Chat application)+- github-bot (apps/github-bot - GitHub bot)+- sdk (packages/sdk - @savoir/sdk)+- cli (packages/cli - CLI utilities)+- deps (dependencies updates)+- docs (documentation)+-->++### π Linked issue++<!-- If it resolves an open issue, please link the issue here. For example "Resolves #123" -->++### π Description++<!-- Describe your changes in detail -->+<!-- Why is this change required? What problem does it solve? -->++### π Checklist++<!-- Put an `x` in all the boxes that apply. -->+<!-- If your change requires a documentation PR, please link it appropriately -->+<!-- If you're unsure about any of these, don't hesitate to ask. We're here to help! -->++- [ ] I have linked an issue or discussion.+- [ ] I have updated the documentation accordingly.diff --git a/.github/release.yml b/.github/release.ymlnew file mode 100644index 0000000..97fbe97--- /dev/null+++ b/.github/release.yml@@ -0,0 +1,46 @@+changelog:+ exclude:+ labels:+ - ignore-for-release+ authors:+ - octocat+ categories:+ - title: Breaking Changes π₯+ labels:+ - breaking+ - title: Features π+ labels:+ - feature+ - title: Enhancements π+ labels:+ - enhancement+ - title: Bug Fixes π+ labels:+ - bug+ - title: Build System π+ labels:+ - build+ - title: Continuous Integration π+ labels:+ - ci+ - title: Documentation π+ labels:+ - documentation+ - title: Tests π§ͺ+ labels:+ - test+ - title: Refactoring π+ labels:+ - refactor+ - title: Dependency Updates π¦+ labels:+ - dependencies+ - title: Performance Improvements β‘οΈ+ labels:+ - performance+ - title: Style π+ labels:+ - style+ - title: Revert π+ labels:+ - revertdiff --git a/.github/workflows/autofix.yml b/.github/workflows/autofix.ymlnew file mode 100644index 0000000..ed0e14a--- /dev/null+++ b/.github/workflows/autofix.yml@@ -0,0 +1,36 @@+name: autofix.ci++on:+ pull_request:+ branches: [main]++permissions:+ contents: read++jobs:+ autofix:+ runs-on: ubuntu-latest+ steps:+ - uses: actions/checkout@v6++ - name: Install pnpm+ uses: pnpm/action-setup@v2+ with:+ version: latest+ run_install: false++ - name: Setup Node.js+ uses: actions/setup-node@v4+ with:+ node-version: 22+ cache: pnpm++ - name: π¦ Install dependencies+ run: pnpm install++ - name: π Lint code+ run: pnpm run lint:fix++ - uses: autofix-ci/action@635ffb0c9798bd160680f18fd73371e355b85f27+ with:+ commit-message: 'chore: apply automated lint fixes'diff --git a/.github/workflows/build.yml b/.github/workflows/build.ymlnew file mode 100644index 0000000..1e4903e--- /dev/null+++ b/.github/workflows/build.yml@@ -0,0 +1,33 @@+name: Check if packages can be built++on:+ pull_request:+ branches:+ - '**'++permissions:+ contents: read++jobs:+ autofix:+ runs-on: ubuntu-latest+ steps:+ - uses: actions/checkout@v6++ - name: Install pnpm+ uses: pnpm/action-setup@v2+ with:+ version: latest+ run_install: false++ - name: Setup Node.js+ uses: actions/setup-node@v4+ with:+ node-version: 22+ cache: pnpm++ - name: π¦ Install dependencies+ run: pnpm install++ - name: π οΈ Build+ run: pnpm run builddiff --git a/.github/workflows/ci.yml b/.github/workflows/ci.ymlnew file mode 100644index 0000000..501df4f--- /dev/null+++ b/.github/workflows/ci.yml@@ -0,0 +1,37 @@+name: CI/CD++on:+ pull_request:+ branches:+ - main+ push:+ branches:+ - main++jobs:+ ci:+ runs-on: ubuntu-latest++ steps:+ - uses: actions/checkout@v6++ - name: Install pnpm+ uses: pnpm/action-setup@v2+ with:+ version: latest+ run_install: false++ - name: Setup Node.js+ uses: actions/setup-node@v4+ with:+ node-version: 22+ cache: pnpm++ - name: π¦ Install dependencies+ run: pnpm install++ - name: π Lint code+ run: pnpm run lint++ - name: π§ͺ Run tests+ run: pnpm run testdiff --git a/.github/workflows/label-pr.yml b/.github/workflows/label-pr.ymlnew file mode 100644index 0000000..3d4544e--- /dev/null+++ b/.github/workflows/label-pr.yml@@ -0,0 +1,70 @@+name: Label PR++on:+ pull_request_target:+ types:+ - opened+ branches:+ - main++jobs:+ add-pr-labels:+ name: Add PR labels+ runs-on: ubuntu-latest+ permissions:+ pull-requests: write+ steps:+ - uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8.0.0+ env:+ PULL_REQUEST_TITLE: ${{ github.event.pull_request.title }}+ with:+ script: |+ const labelsToAdd = []++ const pullRequest = {+ number: ${{ github.event.pull_request.number }},+ title: process.env.PULL_REQUEST_TITLE,+ labelsNames: ${{ toJson(github.event.pull_request.labels.*.name) }}+ }++ // Select label based on the type in PR title+ const pullRequestTypeToLabelName = {+ breaking: 'breaking',+ feat: 'feature',+ fix: 'bug',+ build: 'build',+ ci: 'ci',+ docs: 'documentation',+ enhancement: 'enhancement',+ chore: 'dependencies',+ perf: 'performance',+ style: 'style',+ test: 'test',+ refactor: 'refactor',+ revert: 'revert'+ }++ for (const [pullRequestType, labelName] of Object.entries(+ pullRequestTypeToLabelName+ )) {+ if (+ pullRequest.title.startsWith(pullRequestType) &&+ !pullRequest.labelsNames.includes(+ pullRequestTypeToLabelName[pullRequestType]+ )+ ) {+ labelsToAdd.push(labelName)++ break+ }+ }++ // Add selected labels+ if (labelsToAdd.length > 0) {+ github.rest.issues.addLabels({+ issue_number: pullRequest.number,+ owner: context.repo.owner,+ repo: context.repo.repo,+ labels: labelsToAdd+ })+ }diff --git a/.github/workflows/semantic-pull-request.yml b/.github/workflows/semantic-pull-request.ymlnew file mode 100644index 0000000..2942e99--- /dev/null+++ b/.github/workflows/semantic-pull-request.yml@@ -0,0 +1,78 @@+name: Validate PR title++on:+ pull_request_target:+ types:+ - opened+ - reopened+ - edited+ - synchronize++permissions:+ pull-requests: write++jobs:+ validate-pr:+ name: Validate PR title+ if: ${{ !contains(github.actor, 'renovate') }}++ runs-on: ubuntu-latest+ steps:+ - uses: amannn/action-semantic-pull-request@v6+ id: lint_pr_title+ with:+ scopes: |+ deps+ api+ chat+ github-bot+ sdk+ cli+ deps+ docs+ types: |+ breaking+ feat+ fix+ build+ ci+ docs+ enhancement+ chore+ performance+ style+ test+ refactor+ revert+ subjectPattern: ^(?![A-Z]).+$+ subjectPatternError: |+ The subject "{subject}" found in the pull request title "{title}"+ didn't match the configured pattern. Please ensure that the subject+ doesn't start with an uppercase character.+ env:+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}++ - uses: marocchino/sticky-pull-request-comment@v2+ # When the previous steps fail, the workflow would stop. By adding this+ # condition you can continue the execution with the populated error message.+ if: always() && (steps.lint_pr_title.outputs.error_message != null)+ with:+ header: pr-title-lint-error+ message: |+ Hey there and thank you for opening this pull request! ππΌ++ We require pull request titles to follow the [Conventional Commits specification](https://www.conventionalcommits.org/en/v1.0.0/) and it looks like your proposed title needs to be adjusted.++ Details:++ ```+ ${{ steps.lint_pr_title.outputs.error_message }}+ ```++ # Delete a previous comment when the issue has been resolved+ - if: ${{ steps.lint_pr_title.outputs.error_message == null }}+ uses: marocchino/sticky-pull-request-comment@v2+ with:+ header: pr-title-lint-error+ message: |+ Thank you for following the naming conventions! πdiff --git a/.gitignore b/.gitignorenew file mode 100644index 0000000..4f1e43d--- /dev/null+++ b/.gitignore@@ -0,0 +1,32 @@+# Nuxt dev/build outputs+.output+.data+.nuxt+.nitro+.cache+dist++# Node dependencies+node_modules++# Logs+logs+*.log++# Misc+.DS_Store+.fleet+.idea+.pnpm-store*++# Turbo+.turbo++# Local env files+.env+.env.*+!.env.example++.swc*+.workflow-data*+apps/web/.data\ No newline at end of filediff --git a/AGENTS.md b/AGENTS.mdnew file mode 100644index 0000000..7585518--- /dev/null+++ b/AGENTS.md@@ -0,0 +1,256 @@+# Savoir++## Project Overview++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+- **SDK** (`packages/sdk`): AI SDK-compatible tools for integrating knowledge search into agents++The system enables file-based agents that can grep, search, and read from frequently updated documentation sources.++## Documentation++For detailed technical information, see:++- [`docs/ARCHITECTURE.md`](docs/ARCHITECTURE.md) - Complete technical architecture, API specifications, component details, and implementation patterns+- [`docs/SOURCES.md`](docs/SOURCES.md) - Content sources system, configuration, sync process, and how to add new sources++## Architecture++### Monorepo Structure++```+savoir/+βββ apps/+β βββ api/ # Nitro API server+β β βββ 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+β βββ github-bot/ # Example GitHub bot+βββ packages/+β βββ sdk/ # @savoir/sdk - AI SDK tools+β β βββ src/+β β βββ index.ts # createSavoir() export+β β βββ client.ts # API client+β β βββ tools/ # AI SDK tool definitions+β βββ cli/ # CLI utilities+βββ docs/ # Architecture documentation+```++### Data Flow++```+ββββββββββββββββ βββββββββββββββ ββββββββββββββββββββ+β AI Agent ββββββΆβ @savoir/sdk ββββββΆβ Savoir API β+β (Your App) β β (tools) β β (Nitro) β+ββββββββββββββββ βββββββββββββββ ββββββββββ¬ββββββββββ+ β+ ββββββββββββββββββββββββΌβββββββββββββββββββββββ+ β β β+ βΌ βΌ βΌ+ ββββββββββββββ ββββββββββββββ ββββββββββββββ+ β Sandbox β β Content β β Nitro β+ β Manager β β Sync β β Tasks β+ βββββββ¬βββββββ βββββββ¬βββββββ ββββββββββββββ+ β β+ βΌ βΌ+ ββββββββββββββ ββββββββββββββ+ β Vercel β β GitHub β+ β Sandbox β β Repo β+ ββββββββββββββ ββββββββββββββ+```++### Key Components++#### Sandbox Manager++Manages Vercel Sandbox lifecycle:++- **Create**: Clones snapshot repo into new sandbox+- **Recover**: Reuses existing sandbox by ID (stored in KV)+- **Extend**: Extends sandbox timeout when running low+- **Execute**: Runs shell commands (grep, cat, find) for search/read++#### Content Sync++Aggregates documentation from multiple sources:++- Fetches from GitHub repositories (docs, READMEs)+- Processes YouTube transcripts+- Normalizes to Markdown format+- Pushes to snapshot repository++#### SDK Tools++AI SDK-compatible tools:++- `searchAndRead`: Combined search + read (most efficient)+- `search`: Search for file paths matching query+- `read`: Read specific files by path++## API Endpoints++### 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/:id/read+ Body: { paths: string[] }+ Returns: { files: Array<{ path: string, content: string }> }++POST /api/sandbox/:id/search-and-read+ Body: { query: string, limit?: number }+ Returns: { query: string, files: Array<{ path: string, content: string }> }+```++### Content Sync++```+POST /api/sync+ Triggers full content synchronization++POST /api/sync/:source+ Triggers sync for specific source++GET /api/sources+ Returns list of configured sources+```++## SDK Usage++```typescript+import { createSavoir } from '@savoir/sdk'+import { generateText, stepCountIs } from 'ai'++// Initialize client+const savoir = createSavoir({+ apiKey: process.env.SAVOIR_API_KEY,+ apiUrl: 'https://api.savoir.example.com'+})++// Use tools with AI SDK+const { text } = await generateText({+ model: 'google/gemini-3-flash',+ prompt: 'How do I use useAsyncData in Nuxt?',+ tools: {+ ...savoir.tools,+ }+})+```++## Code Guidelines++### File Naming++- **Files**: kebab-case (`sandbox-manager.ts`, `sync-source.ts`)+- **Vue components**: PascalCase (`ChatMessage.vue`)+- **Directories**: kebab-case (`api-client/`)++### Caching++**Never use in-memory caches** in serverless environments. Use persistent storage:++```typescript+// β Bad - doesn't work in serverless+const cache = new Map<string, Data>()++// β Good - use persistent storage (KV, Redis, etc.)+const cached = await kv.get<Data>('my-key')+await kv.set('my-key', data, { ttl: 3600 })+```++### Error Handling++Always handle errors gracefully in tools:++```typescript+execute: async ({ query }) => {+ try {+ const results = await searchFiles(query)+ return { success: true, files: results }+ } catch (error) {+ return { success: false, error: error.message, files: [] }+ }+}+```++### Logging++Use structured logging with context:++```typescript+log('info', 'sandbox', `Created: ${sandboxId}`)+log('warn', 'sync', `Source ${sourceId} failed: ${error.message}`)+```++## Environment Variables++### API (`apps/api`)++```bash+# Required+GITHUB_TOKEN=ghp_... # GitHub token for repo access+GITHUB_SNAPSHOT_REPO=org/repo # Snapshot repository++# 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)+```++### SDK (`@savoir/sdk`)++```bash+SAVOIR_API_KEY=... # API key for authentication+SAVOIR_API_URL=https://... # API base URL+```++## Testing++- **Framework**: Vitest+- **Run tests**: `pnpm test` at root+- **Test location**: `test/` directory in each package/app++```bash+# Run all tests+pnpm test++# Run specific package tests+pnpm --filter @savoir/sdk test++# Watch mode+pnpm --filter @savoir/sdk test:watch+```++## Commands++```bash+# Development+pnpm install # Install all dependencies+pnpm dev # Start all apps in dev mode+pnpm dev:api # Start API only+pnpm build # Build all packages and apps++# Linting & Testing+pnpm lint # Lint all packages+pnpm lint:fix # Fix linting issues+pnpm test # Run tests+pnpm typecheck # Type check all packages++# Content Sync+pnpm sync # Trigger content synchronization+pnpm sync:source # Sync specific source+```diff --git a/LICENSE b/LICENSEnew file mode 100644index 0000000..40210c8--- /dev/null+++ b/LICENSE@@ -0,0 +1,201 @@+ Apache License+ Version 2.0, January 2004+ http://www.apache.org/licenses/++ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION++ 1. Definitions.++ "License" shall mean the terms and conditions for use, reproduction,+ and distribution as defined by Sections 1 through 9 of this document.++ "Licensor" shall mean the copyright owner or entity authorized by+ the copyright owner that is granting the License.++ "Legal Entity" shall mean the union of the acting entity and all+ other entities that control, are controlled by, or are under common+ control with that entity. For the purposes of this definition,+ "control" means (i) the power, direct or indirect, to cause the+ direction or management of such entity, whether by contract or+ otherwise, or (ii) ownership of fifty percent (50%) or more of the+ outstanding shares, or (iii) beneficial ownership of such entity.++ "You" (or "Your") shall mean an individual or Legal Entity+ exercising permissions granted by this License.++ "Source" form shall mean the preferred form for making modifications,+ including but not limited to software source code, documentation+ source, and configuration files.++ "Object" form shall mean any form resulting from mechanical+ transformation or translation of a Source form, including but+ not limited to compiled object code, generated documentation,+ and conversions to other media types.++ "Work" shall mean the work of authorship, whether in Source or+ Object form, made available under the License, as indicated by a+ copyright notice that is included in or attached to the work+ (an example is provided in the Appendix below).++ "Derivative Works" shall mean any work, whether in Source or Object+ form, that is based on (or derived from) the Work and for which the+ editorial revisions, annotations, elaborations, or other modifications+ represent, as a whole, an original work of authorship. For the purposes+ of this License, Derivative Works shall not include works that remain+ separable from, or merely link (or bind by name) to the interfaces of,+ the Work and Derivative Works thereof.++ "Contribution" shall mean any work of authorship, including+ the original version of the Work and any modifications or additions+ to that Work or Derivative Works thereof, that is intentionally+ submitted to Licensor for inclusion in the Work by the copyright owner+ or by an individual or Legal Entity authorized to submit on behalf of+ the copyright owner. For the purposes of this definition, "submitted"+ means any form of electronic, verbal, or written communication sent+ to the Licensor or its representatives, including but not limited to+ communication on electronic mailing lists, source code control systems,+ and issue tracking systems that are managed by, or on behalf of, the+ Licensor for the purpose of discussing and improving the Work, but+ excluding communication that is conspicuously marked or otherwise+ designated in writing by the copyright owner as "Not a Contribution."++ "Contributor" shall mean Licensor and any individual or Legal Entity+ on behalf of whom a Contribution has been received by Licensor and+ subsequently incorporated within the Work.++ 2. Grant of Copyright License. Subject to the terms and conditions of+ this License, each Contributor hereby grants to You a perpetual,+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable+ copyright license to reproduce, prepare Derivative Works of,+ publicly display, publicly perform, sublicense, and distribute the+ Work and such Derivative Works in Source or Object form.++ 3. Grant of Patent License. Subject to the terms and conditions of+ this License, each Contributor hereby grants to You a perpetual,+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable+ (except as stated in this section) patent license to make, have made,+ use, offer to sell, sell, import, and otherwise transfer the Work,+ where such license applies only to those patent claims licensable+ by such Contributor that are necessarily infringed by their+ Contribution(s) alone or by combination of their Contribution(s)+ with the Work to which such Contribution(s) was submitted. If You+ institute patent litigation against any entity (including a+ cross-claim or counterclaim in a lawsuit) alleging that the Work+ or a Contribution incorporated within the Work constitutes direct+ or contributory patent infringement, then any patent licenses+ granted to You under this License for that Work shall terminate+ as of the date such litigation is filed.++ 4. Redistribution. You may reproduce and distribute copies of the+ Work or Derivative Works thereof in any medium, with or without+ modifications, and in Source or Object form, provided that You+ meet the following conditions:++ (a) You must give any other recipients of the Work or+ Derivative Works a copy of this License; and++ (b) You must cause any modified files to carry prominent notices+ stating that You changed the files; and++ (c) You must retain, in the Source form of any Derivative Works+ that You distribute, all copyright, patent, trademark, and+ attribution notices from the Source form of the Work,+ excluding those notices that do not pertain to any part of+ the Derivative Works; and++ (d) If the Work includes a "NOTICE" text file as part of its+ distribution, then any Derivative Works that You distribute must+ include a readable copy of the attribution notices contained+ within such NOTICE file, excluding those notices that do not+ pertain to any part of the Derivative Works, in at least one+ of the following places: within a NOTICE text file distributed+ as part of the Derivative Works; within the Source form or+ documentation, if provided along with the Derivative Works; or,+ within a display generated by the Derivative Works, if and+ wherever such third-party notices normally appear. The contents+ of the NOTICE file are for informational purposes only and+ do not modify the License. You may add Your own attribution+ notices within Derivative Works that You distribute, alongside+ or as an addendum to the NOTICE text from the Work, provided+ that such additional attribution notices cannot be construed+ as modifying the License.++ You may add Your own copyright statement to Your modifications and+ may provide additional or different license terms and conditions+ for use, reproduction, or distribution of Your modifications, or+ for any such Derivative Works as a whole, provided Your use,+ reproduction, and distribution of the Work otherwise complies with+ the conditions stated in this License.++ 5. Submission of Contributions. Unless You explicitly state otherwise,+ any Contribution intentionally submitted for inclusion in the Work+ by You to the Licensor shall be under the terms and conditions of+ this License, without any additional terms or conditions.+ Notwithstanding the above, nothing herein shall supersede or modify+ the terms of any separate license agreement you may have executed+ with Licensor regarding such Contributions.++ 6. Trademarks. This License does not grant permission to use the trade+ names, trademarks, service marks, or product names of the Licensor,+ except as required for reasonable and customary use in describing the+ origin of the Work and reproducing the content of the NOTICE file.++ 7. Disclaimer of Warranty. Unless required by applicable law or+ agreed to in writing, Licensor provides the Work (and each+ Contributor provides its Contributions) on an "AS IS" BASIS,+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or+ implied, including, without limitation, any warranties or conditions+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A+ PARTICULAR PURPOSE. You are solely responsible for determining the+ appropriateness of using or redistributing the Work and assume any+ risks associated with Your exercise of permissions under this License.++ 8. Limitation of Liability. In no event and under no legal theory,+ whether in tort (including negligence), contract, or otherwise,+ unless required by applicable law (such as deliberate and grossly+ negligent acts) or agreed to in writing, shall any Contributor be+ liable to You for damages, including any direct, indirect, special,+ incidental, or consequential damages of any character arising as a+ result of this License or out of the use or inability to use the+ Work (including but not limited to damages for loss of goodwill,+ work stoppage, computer failure or malfunction, or any and all+ other commercial damages or losses), even if such Contributor+ has been advised of the possibility of such damages.++ 9. Accepting Warranty or Additional Liability. While redistributing+ the Work or Derivative Works thereof, You may choose to offer,+ and charge a fee for, acceptance of support, warranty, indemnity,+ or other liability obligations and/or rights consistent with this+ License. However, in accepting such obligations, You may act only+ on Your own behalf and on Your sole responsibility, not on behalf+ of any other Contributor, and only if You agree to indemnify,+ defend, and hold each Contributor harmless for any liability+ incurred by, or claims asserted against, such Contributor by reason+ of your accepting any such warranty or additional liability.++ END OF TERMS AND CONDITIONS++ APPENDIX: How to apply the Apache License to your work.++ To apply the Apache License to your work, attach the following+ boilerplate notice, with the fields enclosed by brackets "[]"+ replaced with your own identifying information. (Don't include+ the brackets!) The text should be enclosed in the appropriate+ comment syntax for the file format. We also recommend that a+ file or class name and description of purpose be included on the+ same "printed page" as the copyright notice for easier+ identification within third-party archives.++ Copyright 2024-present Hugo Richard++ Licensed under the Apache License, Version 2.0 (the "License");+ you may not use this file except in compliance with the License.+ You may obtain a copy of the License at++ http://www.apache.org/licenses/LICENSE-2.0++ Unless required by applicable law or agreed to in writing, software+ distributed under the License is distributed on an "AS IS" BASIS,+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ See the License for the specific language governing permissions and+ limitations under the License.diff --git a/README.md b/README.mdindex b98a433..bb46a5b 100644--- a/README.md+++ b/README.md@@ -1 +1,137 @@-# savoir+# Savoir++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.++## Architecture++```+βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ+β Your AI Application β+β (Discord bot, GitHub bot, etc.) β+βββββββββββββββββββββββββββββββββββ¬ββββββββββββββββββββββββββββββββ+ β+ βΌ+βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ+β @savoir/sdk β+β AI SDK compatible tools (searchAndRead, etc.) β+βββββββββββββββββββββββββββββββββββ¬ββββββββββββββββββββββββββββββββ+ β API calls+ βΌ+βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ+β Savoir API β+β (Self-hostable Nitro server) β+β βββββββββββββββ ββββββββββββββββ ββββββββββββββββββββββββββ β+β β Sandbox β β Content β β Nitro Tasks β β+β β Manager β β Sync β β (scheduled sync) β β+β ββββββββ¬βββββββ ββββββββ¬ββββββββ ββββββββββββββββββββββββββ β+βββββββββββΌβββββββββββββββββΌβββββββββββββββββββββββββββββββββββββββ+ β β+ βΌ βΌ+ ββββββββββββββ βββββββββββββββ+ β Vercel β β GitHub β+ β Sandbox β β Snapshot β+ β β β Repo β+ ββββββββββββββ βββββββββββββββ+```++## Packages++| Package | Description |+|---------|-------------|+| [`@savoir/sdk`](./packages/sdk) | AI SDK compatible tools for agents |+| [`apps/api`](./apps/api) | Self-hostable sandbox management API |++## Quick Start++### Using the SDK++```typescript+import { generateText, stepCountIs } from 'ai'+import { createSavoir } from '@savoir/sdk'++// Initialize Savoir client+const savoir = createSavoir({+ apiKey: process.env.SAVOIR_API_KEY,+ apiUrl: process.env.SAVOIR_API_URL || 'https://savoir.example.com'+})++// Use with AI SDK+const { text } = await generateText({+ model: 'google/gemini-3-flash',+ prompt: 'Tell me the latest developments in Nuxt',+ tools: {+ ...savoir.tools,+ }+})++console.log(text)+```++### Self-hosting the API++```bash+# Clone the repository+git clone https://github.com/HugoRCD/savoir.git+cd savoir++# Install dependencies+pnpm install++# Configure environment variables+cp apps/api/.env.example apps/api/.env+# Edit .env with your configuration++# Start the API+pnpm dev:api+```++**Required environment variables:**++```bash+# GitHub token for cloning snapshot repository+GITHUB_TOKEN=ghp_...++# Repository containing the content snapshot+GITHUB_SNAPSHOT_REPO=your-org/your-content-repo++# Optional: API key for securing endpoints+SAVOIR_SECRET_KEY=your-secret-key+```++## How It Works++1. **Content Aggregation**: Sources (GitHub docs, YouTube transcripts, etc.) are synced to a snapshot repository via Nitro tasks+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++## Development++```bash+# Install dependencies+pnpm install++# Start all apps in dev mode+pnpm dev++# Build all packages+pnpm build++# Run tests+pnpm test++# Lint and fix+pnpm lint:fix+```++## Related Projects++- [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++## License++[MIT](./LICENSE)diff --git a/apps/api/.gitignore b/apps/api/.gitignorenew file mode 100644index 0000000..d547d8a--- /dev/null+++ b/apps/api/.gitignore@@ -0,0 +1,8 @@+node_modules+dist+.data+.nitro+.cache+.output+.env+.env.localdiff --git a/apps/api/README.md b/apps/api/README.mdnew file mode 100644index 0000000..ce15a30--- /dev/null+++ b/apps/api/README.md@@ -0,0 +1,18 @@+# Nitro starter++Create your API and deploy it anywhere with this Nitro starter.++## Getting started++```bash+npm install+npm run dev+```++## Deploying++```bash+npm run build+```++Then checkout the [Nitro documentation](https://v3.nitro.build/deploy) to learn more about the different deployment presets.diff --git a/apps/api/index.html b/apps/api/index.htmlnew file mode 100644index 0000000..9867eea--- /dev/null+++ b/apps/api/index.html@@ -0,0 +1,20 @@+<!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/nitro.config.ts b/apps/api/nitro.config.tsnew file mode 100644index 0000000..cd7b6a0--- /dev/null+++ b/apps/api/nitro.config.ts@@ -0,0 +1,5 @@+import { defineConfig } from "nitro"++export default defineConfig({+ serverDir: './',+});diff --git a/apps/api/package.json b/apps/api/package.jsonnew file mode 100644index 0000000..4459c9b--- /dev/null+++ b/apps/api/package.json@@ -0,0 +1,14 @@+{+ "name": "@savoir/api",+ "private": true,+ "type": "module",+ "scripts": {+ "build": "nitro build",+ "dev": "nitro dev",+ "preview": "npx srvx --prod .output/"+ },+ "devDependencies": {+ "nitro": "latest",+ "rolldown": "latest"+ }+}diff --git a/apps/api/public/styles.css b/apps/api/public/styles.cssnew file mode 100644index 0000000..dabf6e8--- /dev/null+++ b/apps/api/public/styles.css@@ -0,0 +1,71 @@+: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.tsnew file mode 100644index 0000000..015811b--- /dev/null+++ b/apps/api/routes/api/index.ts@@ -0,0 +1,5 @@+import { defineHandler } from "nitro/h3"++export default defineHandler((event) => {+ return { message: "Hello from API!" };+});diff --git a/apps/api/tsconfig.json b/apps/api/tsconfig.jsonnew file mode 100644index 0000000..1099389--- /dev/null+++ b/apps/api/tsconfig.json@@ -0,0 +1,8 @@+{+ "extends": ["nitro/tsconfig"],+ "compilerOptions": {+ "paths": {+ "~/*": ["./*"]+ }+ }+}diff --git a/apps/chat/.gitkeep b/apps/chat/.gitkeepnew file mode 100644index 0000000..e69de29diff --git a/apps/github-bot/.gitkeep b/apps/github-bot/.gitkeepnew file mode 100644index 0000000..e69de29diff --git a/docs/ARCHITECTURE.md b/docs/ARCHITECTURE.mdnew file mode 100644index 0000000..905dd0a--- /dev/null+++ b/docs/ARCHITECTURE.md@@ -0,0 +1,559 @@+# Savoir Architecture++This document describes the technical architecture of Savoir, a platform for building AI agents with real-time knowledge access.++## System Overview++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++```+βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ+β User's AI Application β+β (Discord bot, GitHub bot, Chat app) β+β β+β ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ β+β β import { generateText } from 'ai' β β+β β import { createSavoir } from '@savoir/sdk' β β+β β β β+β β const savoir = createSavoir({ apiKey, apiUrl }) β β+β β const { text } = await generateText({ β β+β β model: 'google/gemini-3-flash', β β+β β tools: { ...savoir.tools } β β+β β }) β β+β ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ β+βββββββββββββββββββββββββββββββββββββββ¬ββββββββββββββββββββββββββββββββββββ+ β+ β HTTPS (API Key auth)+ βΌ+βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ+β Savoir API β+β (Nitro Server) β+β β+β βββββββββββββββββββ βββββββββββββββββββ βββββββββββββββββββββββββββ β+β β /api/sandbox/* β β /api/sync/* β β Nitro Tasks β β+β β β β β β β β+β β - create β β - POST /sync β β - sync:content (cron) β β+β β - search β β - GET /sources β β - cleanup:sandboxes β β+β β - read β β β β β β+β β - searchAndRead β β β β β β+β ββββββββββ¬βββββββββ ββββββββββ¬βββββββββ βββββββββββββββββββββββββββ β+β β β β+β βΌ βΌ β+β βββββββββββββββββββ βββββββββββββββββββ β+β β Sandbox Manager β β Content Syncer β β+β β β β β β+β β - Lifecycle β β - Fetch sources β β+β β - KV caching β β - Transform β β+β β - Command exec β β - Push to repo β β+β ββββββββββ¬βββββββββ ββββββββββ¬βββββββββ β+βββββββββββββΌβββββββββββββββββββββΌβββββββββββββββββββββββββββββββββββββββββ+ β β+ βΌ βΌ+ ββββββββββββββ ββββββββββββββ+ β Vercel β β GitHub β+ β Sandbox βββββββββ Snapshot β+ β API β clone β Repo β+ ββββββββββββββ ββββββββββββββ+```++## Component Details++### 1. 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+// packages/sdk/src/index.ts+import { tool } from 'ai'+import { z } from 'zod'++export interface SavoirOptions {+ apiKey: string+ apiUrl: string+ /** Optional: reuse sandbox across calls */+ chatId?: string+}++export interface SavoirClient {+ /** Search and read files in one call (recommended) */+ searchAndRead: ReturnType<typeof tool>+ /** Search for files matching query */+ search: ReturnType<typeof tool>+ /** Read specific files by path */+ read: ReturnType<typeof tool>+}++export function createSavoir(options: SavoirOptions): SavoirClient {+ const client = createApiClient(options)++ return {+ searchAndRead: tool({+ description: 'Search documentation and read matching files. Use ONE simple keyword.',+ inputSchema: z.object({+ query: z.string().describe('ONE keyword to search'),+ limit: z.number().optional().describe('Max files (default 5)'),+ }),+ execute: async ({ query, limit }) => {+ return client.searchAndRead(query, limit)+ },+ }),++ search: tool({+ description: 'Search for file paths. Use searchAndRead for most cases.',+ inputSchema: z.object({+ query: z.string(),+ limit: z.number().optional(),+ }),+ execute: async ({ query, limit }) => {+ return client.search(query, limit)+ },+ }),++ read: tool({+ description: 'Read specific files by path.',+ inputSchema: z.object({+ paths: z.array(z.string()),+ }),+ execute: async ({ paths }) => {+ return client.read(paths)+ },+ }),+ }+}+```++### 2. API (`apps/api`)++A Nitro server providing REST endpoints for sandbox management and content synchronization.++#### Module Structure++```+apps/api/+βββ server/+β βββ api/+β β βββ sandbox/+β β β βββ create.post.ts+β β β βββ [id]/+β β β β βββ search.post.ts+β β β β βββ read.post.ts+β β β β βββ search-and-read.post.ts+β β βββ sync/+β β βββ index.post.ts+β β βββ [source].post.ts+β βββ tasks/+β β βββ sync-content.ts # Scheduled content sync+β β βββ cleanup-sandboxes.ts # Cleanup stale sandboxes+β βββ middleware/+β β βββ auth.ts # API key validation+β βββ utils/+β βββ sandbox.ts # Sandbox manager+β βββ content-sync.ts # Content synchronization+β βββ sources.ts # Source configuration+βββ nitro.config.ts+βββ package.json+```++### 3. Sandbox Manager++Manages the lifecycle of Vercel Sandboxes.++#### Lifecycle States++```+βββββββββββ create βββββββββββ+β None β ββββββββββββββββΆβ Running β+βββββββββββ ββββββ¬βββββ+ β+ ββββββββββββββββββββΌβββββββββββββββββββ+ β β β+ βΌ βΌ βΌ+ ββββββββββββββ βββββββββββββ βββββββββββββ+ β Timeout β β Stopped β β Failed β+ β Extended β β β β β+ ββββββββββββββ βββββββββββββ βββββββββββββ+ β β+ β β recover+ β βΌ+ β βββββββββββββ+ ββββββββββββΆβ Reused β+ βββββββββββββ+```++#### Key Functions++```typescript+// apps/api/server/utils/sandbox.ts++interface SandboxRecord {+ sandboxId: string+ createdAt: number+ fileTree?: string+}++// Get or create sandbox for a chat session+export async function getSandbox(+ chatId: string,+ log: LogFn+): Promise<SandboxContext>++// Recover existing sandbox from KV+async function recoverSandbox(+ record: SandboxRecord,+ log: LogFn+): Promise<Sandbox | null>++// Create new sandbox with cloned repo+async function createNewSandbox(log: LogFn): Promise<Sandbox>++// Execute search with ranking+async function searchWithRanking(+ sandbox: Sandbox,+ query: string,+ limit: number+): Promise<string[]>++// Batch read multiple files efficiently+async function batchReadFiles(+ sandbox: Sandbox,+ paths: string[]+): Promise<Array<{ path: string; content: string }>>+```++### 4. Content Sync++Synchronizes content from various sources to a GitHub snapshot repository.++#### Sync Flow++```+ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ+β Nitro Task: sync:content β+β (runs on schedule or trigger) β+βββββββββββββββββββββββββββββββββββββββ¬βββββββββββββββββββββββββββββββββββ+ β+ βΌ+ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ+β Load Source Config β+β (from sources.ts or API) β+βββββββββββββββββββββββββββββββββββββββ¬βββββββββββββββββββββββββββββββββββ+ β+ βββββββββββββββββββββββββΌββββββββββββββββββββββββ+ β β β+ βΌ βΌ βΌ+ ββββββββββββββ ββββββββββββββ ββββββββββββββ+ β GitHub β β YouTube β β Other β+ β Fetcher β β Fetcher β β Fetchers β+ βββββββ¬βββββββ βββββββ¬βββββββ βββββββ¬βββββββ+ β β β+ βΌ βΌ βΌ+ ββββββββββββββ ββββββββββββββ ββββββββββββββ+ β Normalize β β Normalize β β Normalize β+ β to Markdownβ β to Markdownβ β to Markdownβ+ βββββββ¬βββββββ βββββββ¬βββββββ βββββββ¬βββββββ+ β β β+ ββββββββββββββββββββββββΌβββββββββββββββββββββββ+ β+ βΌ+ βββββββββββββββββββ+ β Aggregate & β+ β Structure β+ ββββββββββ¬βββββββββ+ β+ βΌ+ βββββββββββββββββββ+ β Push to GitHub β+ β Snapshot Repo β+ βββββββββββββββββββ+```++#### Source Types++```typescript+// apps/api/server/utils/sources.ts++interface BaseSource {+ id: string+ label: string+ type: 'github' | 'youtube' | 'custom'+}++interface GitHubSource extends BaseSource {+ type: 'github'+ repo: string // e.g., 'nuxt/nuxt'+ branch: string // e.g., 'main'+ contentPath: string // e.g., 'docs/content'+ outputPath?: string // e.g., 'nuxt'+ readmeOnly?: boolean // Only fetch README.md+}++interface YouTubeSource extends BaseSource {+ type: 'youtube'+ channelId: string+ maxVideos?: number+}++interface CustomSource extends BaseSource {+ type: 'custom'+ fetchFn: () => Promise<ContentFile[]>+}++type Source = GitHubSource | YouTubeSource | CustomSource+```++## API Endpoints Specification++### Authentication++All endpoints require an API key in the `Authorization` header:++```+Authorization: Bearer <api-key>+```++### Sandbox Endpoints++#### POST /api/sandbox/create++Creates or recovers a sandbox for a chat session.++**Request:**+```json+{+ "chatId": "unique-chat-identifier"+}+```++**Response:**+```json+{+ "sandboxId": "sbx_abc123",+ "fileTree": "docs/\nβββ nuxt/ (45 files)\nβββ nitro/ (23 files)..."+}+```++#### POST /api/sandbox/:id/search-and-read++Combined search and read operation.++**Request:**+```json+{+ "query": "useAsyncData",+ "limit": 5+}+```++**Response:**+```json+{+ "query": "useAsyncData",+ "files": [+ {+ "path": "packages/content/docs/nuxt/composables/use-async-data.md",+ "content": "# useAsyncData\n\n..."+ }+ ]+}+```++#### POST /api/sandbox/:id/search++Search for files matching query.++**Request:**+```json+{+ "query": "middleware",+ "limit": 10+}+```++**Response:**+```json+{+ "files": [+ "packages/content/docs/nuxt/guide/middleware.md",+ "packages/content/docs/nitro/middleware.md"+ ]+}+```++#### POST /api/sandbox/:id/read++Read specific files.++**Request:**+```json+{+ "paths": [+ "packages/content/docs/nuxt/guide/middleware.md"+ ]+}+```++**Response:**+```json+{+ "files": [+ {+ "path": "packages/content/docs/nuxt/guide/middleware.md",+ "content": "# Middleware\n\n..."+ }+ ]+}+```++### Sync Endpoints++#### POST /api/sync++Triggers full content synchronization.++**Response:**+```json+{+ "status": "started",+ "sources": 25+}+```++#### GET /api/sources++Lists configured sources.++**Response:**+```json+{+ "sources": [+ {+ "id": "nuxt",+ "label": "Nuxt",+ "type": "github",+ "repo": "nuxt/nuxt"+ }+ ]+}+```++## Storage Strategy++### KV Store++Used for sandbox session management:++```typescript+// Key format+`sandbox:chat:${chatId}` -> SandboxRecord++// TTL: 30 minutes (sandbox timeout + buffer)+```++### Snapshot Repository++Structure:++```+content-snapshot-repo/+βββ docs/+β βββ nuxt/+β β βββ getting-started/+β β β βββ installation.md+β β βββ composables/+β β βββ use-async-data.md+β βββ nitro/+β βββ ...+βββ youtube/+ βββ alex-lichter/+ β βββ nuxt-4-overview-TAoTh4DqH6A.md+ βββ ...+```++## 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++### Sandbox Reuse++- Sandboxes are cached in KV by `chatId`+- Timeout extended when < 3 minutes remaining+- File tree cached to avoid regeneration++### 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++## Security++### API Key Validation++```typescript+// apps/api/server/middleware/auth.ts+export default defineEventHandler((event) => {+ const auth = getHeader(event, 'Authorization')+ const apiKey = auth?.replace('Bearer ', '')++ if (!apiKey || apiKey !== useRuntimeConfig().savoirSecretKey) {+ throw createError({ statusCode: 401, message: 'Unauthorized' })+ }+})+```++### Sandbox Isolation++- Each sandbox runs in isolated Vercel environment+- No network access from within sandbox+- Read-only filesystem (cloned repo)+- Commands limited to grep, cat, find, lsdiff --git a/docs/SOURCES.md b/docs/SOURCES.mdnew file mode 100644index 0000000..1e31459--- /dev/null+++ b/docs/SOURCES.md@@ -0,0 +1,477 @@+# Content Sources++Savoir aggregates documentation from multiple sources into a unified, searchable knowledge base. This document describes how to configure, add, and manage content sources.++## Overview++Sources are external data repositories that Savoir fetches, normalizes to Markdown, and stores in a snapshot repository. The AI agent then searches and reads from this snapshot via a Vercel Sandbox.++```+ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ+β Source Types β+β β+β ββββββββββββ ββββββββββββ ββββββββββββ ββββββββββββββββββββ β+β β GitHub β β YouTube β β MCP β β Custom (future) β β+β β Docs β β Transcriptsβ β Servers β β Blogs, APIs β β+β ββββββ¬ββββββ ββββββ¬ββββββ ββββββ¬ββββββ ββββββββββ¬ββββββββββ β+β β β β β β+β βββββββββββββββ΄βββββββ¬βββββββ΄βββββββββββββββββββ β+β β β+β βΌ β+β βββββββββββββββββββ β+β β Normalizer β β+β β (to Markdown) β β+β ββββββββββ¬βββββββββ β+β β β+β βΌ β+β βββββββββββββββββββ β+β β Snapshot Repo β β+β β (GitHub) β β+β βββββββββββββββββββ β+ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ+```++## Source Configuration++Sources are defined in `apps/api/server/utils/sources.ts`:++```typescript+// apps/api/server/utils/sources.ts+import type { Source } from './types'++export const SOURCES: Source[] = [+ // GitHub documentation+ {+ id: 'nuxt',+ label: 'Nuxt',+ type: 'github',+ repo: 'nuxt/nuxt',+ branch: 'main',+ contentPath: 'docs/content',+ outputPath: 'nuxt',+ },++ // README-only sources+ {+ id: 'unhead',+ label: 'Unhead',+ type: 'github',+ repo: 'unjs/unhead',+ branch: 'main',+ contentPath: '.',+ readmeOnly: true,+ },++ // YouTube channels+ {+ id: 'alex-lichter',+ label: 'Alex Lichter',+ type: 'youtube',+ channelId: 'UCqFPgMzGbLjd-MX-h3Z5aQA',+ maxVideos: 100,+ },+]+```++## Source Types++### GitHub Sources++Fetches Markdown documentation from GitHub repositories.++```typescript+interface GitHubSource {+ type: 'github'++ /** Unique identifier */+ id: string++ /** Display name */+ label: string++ /** GitHub repository (owner/repo) */+ repo: string++ /** Branch to fetch from */+ branch: string++ /** Path to content directory */+ contentPath: string++ /** Output directory in snapshot (defaults to id) */+ outputPath?: string++ /** Only fetch README.md */+ readmeOnly?: boolean++ /** Additional repos to merge into same output */+ additionalSyncs?: Array<{+ repo: string+ branch: string+ contentPath: string+ }>+}+```++**Examples:**++```typescript+// Full documentation tree+{+ id: 'nuxt',+ label: 'Nuxt',+ type: 'github',+ repo: 'nuxt/nuxt',+ branch: 'main',+ contentPath: 'docs/content',+ outputPath: 'nuxt',+}++// README only+{+ id: 'ofetch',+ label: 'ofetch',+ type: 'github',+ repo: 'unjs/ofetch',+ branch: 'main',+ contentPath: '.',+ readmeOnly: true,+ outputPath: 'ofetch',+}++// Multiple repos merged into one output+{+ id: 'nuxt-ui',+ label: 'Nuxt UI',+ type: 'github',+ repo: 'nuxt/ui',+ branch: 'v3',+ contentPath: 'docs/content',+ outputPath: 'nuxt-ui',+ additionalSyncs: [+ {+ repo: 'nuxt/ui-pro',+ branch: 'main',+ contentPath: 'docs/content',+ }+ ],+}+```++### YouTube Sources++Fetches video transcripts from YouTube channels.++```typescript+interface YouTubeSource {+ type: 'youtube'++ /** Unique identifier */+ id: string++ /** Display name */+ label: string++ /** YouTube channel ID */+ channelId: string++ /** Maximum videos to fetch (default: 50) */+ maxVideos?: number+}+```++**Output format:**++```markdown+---+title: "Nuxt 4: An Overview"+videoId: TAoTh4DqH6A+channelId: UCqFPgMzGbLjd-MX-h3Z5aQA+publishedAt: 2024-01-15T10:00:00Z+---++# Nuxt 4: An Overview++[Transcript content here...]+```++### Custom Sources (Extensible)++For sources that don't fit the standard patterns:++```typescript+interface CustomSource {+ type: 'custom'++ /** Unique identifier */+ id: string++ /** Display name */+ label: string++ /** Custom fetch function */+ fetchFn: () => Promise<ContentFile[]>+}++interface ContentFile {+ path: string // Relative path in output+ content: string // Markdown content+}+```++**Example:**++```typescript+{+ id: 'blog-posts',+ label: 'Community Blog',+ type: 'custom',+ fetchFn: async () => {+ const posts = await fetchBlogPosts()+ return posts.map(post => ({+ path: `blog/${post.slug}.md`,+ content: `---+title: ${post.title}+author: ${post.author}+date: ${post.date}+---++${post.content}`,+ }))+ },+}+```++## Adding a New Source++### Step 1: Define the Source++Add to `apps/api/server/utils/sources.ts`:++```typescript+export const SOURCES: Source[] = [+ // ... existing sources++ {+ id: 'my-project',+ label: 'My Project',+ type: 'github',+ repo: 'my-org/my-project',+ branch: 'main',+ contentPath: 'docs',+ },+]+```++### Step 2: Run Sync++Trigger synchronization:++```bash+# Sync all sources+pnpm sync++# Sync specific source+pnpm sync my-project+```++Or via API:++```bash+curl -X POST https://api.savoir.example.com/api/sync/my-project \+ -H "Authorization: Bearer $SAVOIR_API_KEY"+```++### Step 3: Verify++Check the snapshot repository for the new content:++```+content-snapshot-repo/+βββ docs/+ βββ my-project/+ βββ getting-started.md+ βββ api-reference.md+```++## Sync Process++### Nitro Tasks++Content synchronization is handled by Nitro scheduled tasks:++```typescript+// apps/api/server/tasks/sync-content.ts+export default defineTask({+ meta: {+ name: 'sync:content',+ description: 'Synchronize content from all sources',+ },+ async run() {+ for (const source of SOURCES) {+ await syncSource(source)+ }+ await pushToSnapshot()+ },+})+```++### Scheduling++Configure in `nitro.config.ts`:++```typescript+export default defineNitroConfig({+ experimental: {+ tasks: true,+ },+ scheduledTasks: {+ // Sync every 6 hours+ '0 */6 * * *': ['sync:content'],+ },+})+```++### Manual Trigger++```bash+# Via CLI+pnpm sync++# Via API+curl -X POST https://api.savoir.example.com/api/sync \+ -H "Authorization: Bearer $API_KEY"+```++## Content Normalization++All content is normalized to Markdown with consistent structure:++### File Types++| Input | Output |+|-------|--------|+| `.md` | Preserved as-is |+| `.mdx` | Converted to `.md` |+| `.yml`/`.yaml` | Preserved (for frontmatter) |+| `.json` | Preserved (for configs) |+| Other | Ignored |++### Excluded Files++Lock files and non-documentation are automatically excluded:++- `package-lock.json`, `yarn.lock`, `pnpm-lock.yaml`+- `node_modules/`+- Binary files+- Test files++### Directory Structure++Sources maintain their original hierarchy:++```+GitHub: nuxt/nuxt/docs/content/getting-started/installation.md+ β+Snapshot: docs/nuxt/getting-started/installation.md+```++## Snapshot Repository++The snapshot repository is a GitHub repo containing all aggregated content.++### Structure++```+{GITHUB_SNAPSHOT_REPO}/+βββ docs/+β βββ nuxt/+β β βββ getting-started/+β β β βββ installation.md+β β β βββ configuration.md+β β βββ composables/+β β β βββ use-async-data.md+β β β βββ use-fetch.md+β β βββ ...+β βββ nitro/+β βββ h3/+β βββ ...+βββ youtube/+ βββ alex-lichter/+ β βββ nuxt-4-overview-TAoTh4DqH6A.md+ β βββ ...+ βββ learn-vue/+```++### Configuration++Set via environment variable:++```bash+GITHUB_SNAPSHOT_REPO=my-org/content-snapshot+```++### Updates++The sync process:++1. Fetches content from all sources+2. Transforms and normalizes+3. Commits changes to snapshot repo+4. New sandboxes clone the updated snapshot++## Best Practices++### Source Selection++1. **Prioritize official documentation** over third-party content+2. **Include README-only sources** for smaller libraries+3. **Add YouTube sources** for tutorial content and explanations++### Performance++1. **Batch updates** rather than syncing after each change+2. **Use `readmeOnly`** for packages without full docs+3. **Limit YouTube videos** to prevent excessive API usage++### Content Quality++1. **Preserve frontmatter** for metadata+2. **Maintain original structure** for discoverability+3. **Include version info** in source paths when relevant++## Troubleshooting++### Sync Failures++Check logs for specific errors:++```bash+pnpm sync my-source --verbose+```++Common issues:+- **Rate limits**: Wait and retry, or use authenticated requests+- **Missing content path**: Verify `contentPath` exists in repo+- **Branch not found**: Check `branch` matches repository++### Missing Content++1. Verify source configuration+2. Check if files match allowed extensions+3. Ensure content isn't in excluded files list++### Stale Content++Force a fresh sync:++```bash+pnpm sync --reset+```++Or via API:++```bash+curl -X POST https://api.savoir.example.com/api/sync?reset=true \+ -H "Authorization: Bearer $API_KEY"+```diff --git a/package.json b/package.jsonnew file mode 100644index 0000000..88dd969--- /dev/null+++ b/package.json@@ -0,0 +1,31 @@+{+ "name": "@savoir/monorepo",+ "private": true,+ "type": "module",+ "description": "Monorepo for Savoir",+ "author": "HugoRCD",+ "funding": "https://github.com/sponsors/HugoRCD",+ "repository": {+ "type": "git",+ "url": "git+https://github.com/HugoRCD/savoir.git"+ },+ "bugs": {+ "url": "https://github.com/HugoRCD/savoir/issues"+ },+ "scripts": {+ "build": "turbo build",+ "dev": "turbo dev",+ "dev:web": "pnpm --filter @savoir/web dev",+ "lint": "turbo lint",+ "lint:fix": "turbo lint:fix",+ "typecheck": "turbo typecheck",+ "test": "turbo test",+ "automd": "automd",+ "workflow": "pnpm --filter @savoir/data exec workflow web"+ },+ "devDependencies": {+ "automd": "^0.4.2",+ "turbo": "^2.5.3"+ },+ "packageManager": "[email protected]"+}\ No newline at end of filediff --git a/packages/cli/.gitkeep b/packages/cli/.gitkeepnew file mode 100644index 0000000..e69de29diff --git a/packages/sdk/.gitkeep b/packages/sdk/.gitkeepnew file mode 100644index 0000000..e69de29diff --git a/pnpm-lock.yaml b/pnpm-lock.yamlnew file mode 100644index 0000000..62bf508--- /dev/null+++ b/pnpm-lock.yaml@@ -0,0 +1,1334 @@+lockfileVersion: '9.0'++settings:+ autoInstallPeers: true+ excludeLinksFromLockfile: false++importers:++ .:+ devDependencies:+ automd:+ specifier: ^0.4.2+ version: 0.4.2+ turbo:+ specifier: ^2.5.3+ version: 2.7.5++ apps/api:+ devDependencies:+ nitro:+ specifier: latest+ version: 3.0.1-alpha.1([email protected])([email protected])+ rolldown:+ specifier: latest+ version: 1.0.0-beta.60++packages:++ '@babel/[email protected]':+ resolution: {integrity: sha512-05WQkdpL9COIMz4LjTxGpPNCdlpyimKppYNoJ5Di5EUObifl8t4tuLuUBBZEpoLYOmfvIWrsp9fCl0HoPRVTdA==}+ engines: {node: '>=6.9.0'}++ '@emnapi/[email protected]':+ resolution: {integrity: sha512-AvT9QFpxK0Zd8J0jopedNm+w/2fIzvtPKPjqyw9jwvBaReTTqPBk9Hixaz7KbjimP+QNz605/XnjFcDAL2pqBg==}++ '@emnapi/[email protected]':+ resolution: {integrity: sha512-mehfKSMWjjNol8659Z8KxEMrdSJDDot5SXMq00dM8BN4o+CLNXQ0xH2V7EchNHV4RmbZLmmPdEaXZc5H2FXmDg==}++ '@emnapi/[email protected]':+ resolution: {integrity: sha512-WI0DdZ8xFSbgMjR1sFsKABJ/C5OnRrjT06JXbZKexJGrDuPTzZdDYfFlsgcCXCyf+suG5QU2e/y1Wo2V/OapLQ==}++ '@jridgewell/[email protected]':+ resolution: {integrity: sha512-cYQ9310grqxueWbl+WuIUIaiUaDcj7WOq5fVhEljNVgRfOUhY9fy2zTvfoqWsnebh8Sl70VScFbICvJnLKB0Og==}++ '@napi-rs/[email protected]':+ resolution: {integrity: sha512-p64ah1M1ld8xjWv3qbvFwHiFVWrq1yFvV4f7w+mzaqiR4IlSgkqhcRdHwsGgomwzBH51sRY4NEowLxnaBjcW/A==}++ '@oxc-minify/[email protected]':+ resolution: {integrity: sha512-lzeIEMu/v6Y+La5JSesq4hvyKtKBq84cgQpKYTYM/yGuNk2tfd5Ha31hnC+mTh48lp/5vZH+WBfjVUjjINCfug==}+ engines: {node: ^20.19.0 || >=22.12.0}+ cpu: [arm64]+ os: [android]++ '@oxc-minify/[email protected]':+ resolution: {integrity: sha512-i0LkJAUXb4BeBFrJQbMKQPoxf8+cFEffDyLSb7NEzzKuPcH8qrVsnEItoOzeAdYam8Sr6qCHVwmBNEQzl7PWpw==}+ engines: {node: ^20.19.0 || >=22.12.0}+ cpu: [arm64]+ os: [darwin]++ '@oxc-minify/[email protected]':+ resolution: {integrity: sha512-C5vI0WPR+KPIFAD5LMOJk2J8iiT+Nv65vDXmemzXEXouzfEOLYNqnW+u6NSsccpuZHHWAiLyPFkYvKFduveAUQ==}+ engines: {node: ^20.19.0 || >=22.12.0}+ cpu: [x64]+ os: [darwin]++ '@oxc-minify/[email protected]':+ resolution: {integrity: sha512-3//5DNx+xUjVBMLLk2sl6hfe4fwfENJtjVQUBXjxzwPuv8xgZUqASG4cRG3WqG5Qe8dV6SbCI4EgKQFjO4KCZA==}+ engines: {node: ^20.19.0 || >=22.12.0}+ cpu: [x64]+ os: [freebsd]++ '@oxc-minify/[email protected]':+ resolution: {integrity: sha512-WXChFKV7VdDk1NePDK1J31cpSvxACAVztJ7f7lJVYBTkH+iz5D0lCqPcE7a9eb7nC3xvz4yk7DM6dA9wlUQkQg==}+ engines: {node: ^20.19.0 || >=22.12.0}+ cpu: [arm]+ os: [linux]++ '@oxc-minify/[email protected]':+ resolution: {integrity: sha512-7B18glYMX4Z/YoqgE3VRLs/2YhVLxlxNKSgrtsRpuR8xv58xca+hEhiFwZN1Rn+NSMZ29Z33LWD7iYWnqYFvRA==}+ engines: {node: ^20.19.0 || >=22.12.0}+ cpu: [arm]+ os: [linux]++ '@oxc-minify/[email protected]':+ resolution: {integrity: sha512-Yl+KcTldsEJNcaYxxonwAXZ2q3gxIzn3kXYQWgKWdaGIpNhOCWqF+KE5WLsldoh5Ro5SHtomvb8GM6cXrIBMog==}+ engines: {node: ^20.19.0 || >=22.12.0}+ cpu: [arm64]+ os: [linux]++ '@oxc-minify/[email protected]':+ resolution: {integrity: sha512-rNqoFWOWaxwMmUY5fspd/h5HfvgUlA3sv9CUdA2MpnHFiyoJNovR7WU8tGh+Yn0qOAs0SNH0a05gIthHig14IA==}+ engines: {node: ^20.19.0 || >=22.12.0}+ cpu: [arm64]+ os: [linux]++ '@oxc-minify/[email protected]':+ resolution: {integrity: sha512-3paajIuzGnukHwSI3YBjYVqbd72pZd8NJxaayaNFR0AByIm8rmIT5RqFXbq8j2uhtpmNdZRXiu0em1zOmIScWA==}+ engines: {node: ^20.19.0 || >=22.12.0}+ cpu: [riscv64]+ os: [linux]++ '@oxc-minify/[email protected]':+ resolution: {integrity: sha512-9ESrpkB2XG0lQ89JlsxlZa86iQCOs+jkDZLl6O+u5wb7ynUy21bpJJ1joauCOSYIOUlSy3+LbtJLiqi7oSQt5Q==}+ engines: {node: ^20.19.0 || >=22.12.0}+ cpu: [s390x]+ os: [linux]++ '@oxc-minify/[email protected]':+ resolution: {integrity: sha512-UMM1jkns+p+WwwmdjC5giI3SfR2BCTga18x3C0cAu6vDVf4W37uTZeTtSIGmwatTBbgiq++Te24/DE0oCdm1iQ==}+ engines: {node: ^20.19.0 || >=22.12.0}+ cpu: [x64]+ os: [linux]++ '@oxc-minify/[email protected]':+ resolution: {integrity: sha512-8b1naiC7MdP7xeMi7cQ5tb9W1rZAP9Qz/jBRqp1Y5EOZ1yhSGnf1QWuZ/0pCc+XiB9vEHXEY3Aki/H+86m2eOg==}+ engines: {node: ^20.19.0 || >=22.12.0}+ cpu: [x64]+ os: [linux]++ '@oxc-minify/[email protected]':+ resolution: {integrity: sha512-bjGDjkGzo3GWU9Vg2qiFUrfoo5QxojPNV/2RHTlbIB5FWkkV4ExVjsfyqihFiAuj0NXIZqd2SAiEq9htVd3RFw==}+ engines: {node: '>=14.0.0'}+ cpu: [wasm32]++ '@oxc-minify/[email protected]':+ resolution: {integrity: sha512-4L4DlHUT47qMWQuTyUghpncR3NZHWtxvd0G1KgSjVgXf+cXzFdWQCWZZtCU0yrmOoVCNUf4S04IFCJyAe+Ie7A==}+ engines: {node: ^20.19.0 || >=22.12.0}+ cpu: [arm64]+ os: [win32]++ '@oxc-minify/[email protected]':+ resolution: {integrity: sha512-T2ijfqZLpV2bgGGocXV4SXTuMoouqN0asYTIm+7jVOLvT5XgDogf3ZvCmiEnSWmxl21+r5wHcs8voU2iUROXAg==}+ engines: {node: ^20.19.0 || >=22.12.0}+ cpu: [x64]+ os: [win32]++ '@oxc-project/[email protected]':+ resolution: {integrity: sha512-7lf13b2IA/kZO6xgnIZA88sq3vwrxWk+2vxf6cc+omwYCRTiA5e63Beqf3fz/v8jEviChWWmFYBwzfSeyrsj7Q==}++ '@oxc-transform/[email protected]':+ resolution: {integrity: sha512-wOm+ZsqFvyZ7B9RefUMsj0zcXw77Z2pXA51nbSQyPXqr+g0/pDGxriZWP8Sdpz/e4AEaKPA9DvrwyOZxu7GRDQ==}+ engines: {node: ^20.19.0 || >=22.12.0}+ cpu: [arm64]+ os: [android]++ '@oxc-transform/[email protected]':+ resolution: {integrity: sha512-td1sbcvzsyuoNRiNdIRodPXRtFFwxzPpC/6/yIUtRRhKn30XQcizxupIvQQVpJWWchxkphbBDh6UN+u+2CJ8Zw==}+ engines: {node: ^20.19.0 || >=22.12.0}+ cpu: [arm64]+ os: [darwin]++ '@oxc-transform/[email protected]':+ resolution: {integrity: sha512-xgqxnqhPYH2NYkgbqtnCJfhbXvxIf/pnhF/ig5UBK8PYpCEWIP/cfLpQRQ9DcQnRfuxi7RMIF6LdmB1AiS6Fkg==}+ engines: {node: ^20.19.0 || >=22.12.0}+ cpu: [x64]+ os: [darwin]++ '@oxc-transform/[email protected]':+ resolution: {integrity: sha512-1i67OXdl/rvSkcTXqDlh6qGRXYseEmf0rl/R+/i88scZ/o3A+FzlX56sThuaPzSSv9eVgesnoYUjIBJELFc1oA==}+ engines: {node: ^20.19.0 || >=22.12.0}+ cpu: [x64]+ os: [freebsd]++ '@oxc-transform/[email protected]':+ resolution: {integrity: sha512-9MJBs0SWODsqyzO3eAnacXgJ/sZu1xqinjEwBzkcZ3tQI8nKhMADOzu2NzbVWDWujeoC8DESXaO08tujvUru+Q==}+ engines: {node: ^20.19.0 || >=22.12.0}+ cpu: [arm]+ os: [linux]++ '@oxc-transform/[email protected]':+ resolution: {integrity: sha512-BQom57I2ScccixljNYh2Wy+5oVZtF1LXiiUPxSLtDHbsanpEvV/+kzCagQpTjk1BVzSQzOxfEUWjvL7mY53pRQ==}+ engines: {node: ^20.19.0 || >=22.12.0}+ cpu: [arm]+ os: [linux]++ '@oxc-transform/[email protected]':+ resolution: {integrity: sha512-kaqvUzNu8LL4aBSXqcqGVLFG13GmJEplRI2+yqzkgAItxoP/LfFMdEIErlTWLGyBwd0OLiNMHrOvkcCQRWadVg==}+ engines: {node: ^20.19.0 || >=22.12.0}+ cpu: [arm64]+ os: [linux]++ '@oxc-transform/[email protected]':+ resolution: {integrity: sha512-EiG/L3wEkPgTm4p906ufptyblBgtiQWTubGg/JEw82f8uLRroayr5zhbUqx40EgH037a3SfJthIyLZi7XPRFJw==}+ engines: {node: ^20.19.0 || >=22.12.0}+ cpu: [arm64]+ os: [linux]++ '@oxc-transform/[email protected]':+ resolution: {integrity: sha512-r01CY6OxKGtVeYnvH4mGmtkQMlLkXdPWWNXwo5o7fE2s/fgZPMpqh8bAuXEhuMXipZRJrjxTk1+ZQ4KCHpMn3Q==}+ engines: {node: ^20.19.0 || >=22.12.0}+ cpu: [riscv64]+ os: [linux]++ '@oxc-transform/[email protected]':+ resolution: {integrity: sha512-4djg2vYLGbVeS8YiA2K4RPPpZE4fxTGCX5g/bOMbCYyirDbmBAIop4eOAj8vOA9i1CcWbDtmp+PVJ1dSw7f3IQ==}+ engines: {node: ^20.19.0 || >=22.12.0}+ cpu: [s390x]+ os: [linux]++ '@oxc-transform/[email protected]':+ resolution: {integrity: sha512-f6pcWVz57Y8jXa2OS7cz3aRNuks34Q3j61+3nQ4xTE8H1KbalcEvHNmM92OEddaJ8QLs9YcE0kUC6eDTbY34+A==}+ engines: {node: ^20.19.0 || >=22.12.0}+ cpu: [x64]+ os: [linux]++ '@oxc-transform/[email protected]':+ resolution: {integrity: sha512-NSiRtFvR7Pbhv3mWyPMkTK38czIjcnK0+K5STo3CuzZRVbX1TM17zGdHzKBUHZu7v6IQ6/XsQ3ELa1BlEHPGWQ==}+ engines: {node: ^20.19.0 || >=22.12.0}+ cpu: [x64]+ os: [linux]++ '@oxc-transform/[email protected]':+ resolution: {integrity: sha512-A91ARLiuZHGN4hBds9s7bW3czUuLuHLsV+cz44iF9j8e1zX9m2hNGXf/acQRbg/zcFUXmjz5nmk8EkZyob876w==}+ engines: {node: '>=14.0.0'}+ cpu: [wasm32]++ '@oxc-transform/[email protected]':+ resolution: {integrity: sha512-IedJf40djKgDObomhYjdRAlmSYUEdfqX3A3M9KfUltl9AghTBBLkTzUMA7O09oo71vYf5TEhbFM7+Vn5vqw7AQ==}+ engines: {node: ^20.19.0 || >=22.12.0}+ cpu: [arm64]+ os: [win32]++ '@oxc-transform/[email protected]':+ resolution: {integrity: sha512-0fI0P0W7bSO/GCP/N5dkmtB9vBqCA4ggo1WmXTnxNJVmFFOtcA1vYm1I9jl8fxo+sucW2WnlpnI4fjKdo3JKxA==}+ 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'}+ cpu: [arm64]+ os: [android]++ '@parcel/[email protected]':+ resolution: {integrity: sha512-kphKy377pZiWpAOyTgQYPE5/XEKVMaj6VUjKT5VkNyUJlr2qZAn8gIc7CPzx+kbhvqHDT9d7EqdOqRXT6vk0zw==}+ engines: {node: '>= 10.0.0'}+ cpu: [arm64]+ os: [darwin]++ '@parcel/[email protected]':+ resolution: {integrity: sha512-UKaQFhCtNJW1A9YyVz3Ju7ydf6QgrpNQfRZ35wNKUhTQ3dxJ/3MULXN5JN/0Z80V/KUBDGa3RZaKq1EQT2a2gg==}+ engines: {node: '>= 10.0.0'}+ cpu: [x64]+ os: [darwin]++ '@parcel/[email protected]':+ resolution: {integrity: sha512-Dib0Wv3Ow/m2/ttvLdeI2DBXloO7t3Z0oCp4bAb2aqyqOjKPPGrg10pMJJAQ7tt8P4V2rwYwywkDhUia/FgS+Q==}+ engines: {node: '>= 10.0.0'}+ cpu: [x64]+ os: [freebsd]++ '@parcel/[email protected]':+ resolution: {integrity: sha512-I5Vb769pdf7Q7Sf4KNy8Pogl/URRCKu9ImMmnVKYayhynuyGYMzuI4UOWnegQNa2sGpsPSbzDsqbHNMyeyPCgw==}+ engines: {node: '>= 10.0.0'}+ cpu: [arm]+ os: [linux]++ '@parcel/[email protected]':+ resolution: {integrity: sha512-kGO8RPvVrcAotV4QcWh8kZuHr9bXi9a3bSZw7kFarYR0+fGliU7hd/zevhjw8fnvIKG3J9EO5G6sXNGCSNMYPQ==}+ engines: {node: '>= 10.0.0'}+ cpu: [arm]+ os: [linux]++ '@parcel/[email protected]':+ resolution: {integrity: sha512-KU75aooXhqGFY2W5/p8DYYHt4hrjHZod8AhcGAmhzPn/etTa+lYCDB2b1sJy3sWJ8ahFVTdy+EbqSBvMx3iFlw==}+ engines: {node: '>= 10.0.0'}+ cpu: [arm64]+ os: [linux]++ '@parcel/[email protected]':+ resolution: {integrity: sha512-Qx8uNiIekVutnzbVdrgSanM+cbpDD3boB1f8vMtnuG5Zau4/bdDbXyKwIn0ToqFhIuob73bcxV9NwRm04/hzHQ==}+ engines: {node: '>= 10.0.0'}+ cpu: [arm64]+ os: [linux]++ '@parcel/[email protected]':+ resolution: {integrity: sha512-UYBQvhYmgAv61LNUn24qGQdjtycFBKSK3EXr72DbJqX9aaLbtCOO8+1SkKhD/GNiJ97ExgcHBrukcYhVjrnogA==}+ engines: {node: '>= 10.0.0'}+ cpu: [x64]+ os: [linux]++ '@parcel/[email protected]':+ resolution: {integrity: sha512-YoRWCVgxv8akZrMhdyVi6/TyoeeMkQ0PGGOf2E4omODrvd1wxniXP+DBynKoHryStks7l+fDAMUBRzqNHrVOpg==}+ engines: {node: '>= 10.0.0'}+ cpu: [x64]+ os: [linux]++ '@parcel/[email protected]':+ resolution: {integrity: sha512-iby+D/YNXWkiQNYcIhg8P5hSjzXEHaQrk2SLrWOUD7VeC4Ohu0WQvmV+HDJokZVJ2UjJ4AGXW3bx7Lls9Ln4TQ==}+ engines: {node: '>= 10.0.0'}+ cpu: [arm64]+ os: [win32]++ '@parcel/[email protected]':+ resolution: {integrity: sha512-vQN+KIReG0a2ZDpVv8cgddlf67J8hk1WfZMMP7sMeZmJRSmEax5xNDNWKdgqSe2brOKTQQAs3aCCUal2qBHAyg==}+ engines: {node: '>= 10.0.0'}+ cpu: [ia32]+ os: [win32]++ '@parcel/[email protected]':+ resolution: {integrity: sha512-3A6efb6BOKwyw7yk9ro2vus2YTt2nvcd56AuzxdMiVOxL9umDyN5PKkKfZ/gZ9row41SjVmTVQNWQhaRRGpOKw==}+ engines: {node: '>= 10.0.0'}+ cpu: [x64]+ os: [win32]++ '@parcel/[email protected]':+ resolution: {integrity: sha512-WYa2tUVV5HiArWPB3ydlOc4R2ivq0IDrlqhMi3l7mVsFEXNcTfxYFPIHXHXIh/ca/y/V5N4E1zecyxdIBjYnkQ==}+ engines: {node: '>= 10.0.0'}++ '@rolldown/[email protected]':+ resolution: {integrity: sha512-hOW6iQXtpG4uCW1zGK56+KhEXGttSkTp2ykncW/nkOIF/jOKTqbM944Q73HVeMXP1mPRvE2cZwNp3xeLIeyIGQ==}+ engines: {node: ^20.19.0 || >=22.12.0}+ cpu: [arm64]+ os: [android]++ '@rolldown/[email protected]':+ resolution: {integrity: sha512-vyDA4HXY2mP8PPtl5UE17uGPxUNG4m1wkfa3kAkR8JWrFbarV97UmLq22IWrNhtBPa89xqerzLK8KoVmz5JqCQ==}+ engines: {node: ^20.19.0 || >=22.12.0}+ cpu: [arm64]+ os: [darwin]++ '@rolldown/[email protected]':+ resolution: {integrity: sha512-WnxyqxAKP2BsxouwGY/RCF5UFw/LA4QOHhJ7VEl+UCelHokiwqNHRbryLAyRy3TE1FZ5eae+vAFcaetAu/kWLw==}+ engines: {node: ^20.19.0 || >=22.12.0}+ cpu: [x64]+ os: [darwin]++ '@rolldown/[email protected]':+ resolution: {integrity: sha512-JtyWJ+zXOHof5gOUYwdTWI2kL6b8q9eNwqB/oD4mfUFaC/COEB2+47JMhcq78dey9Ahmec3DZKRDZPRh9hNAMQ==}+ engines: {node: ^20.19.0 || >=22.12.0}+ cpu: [x64]+ os: [freebsd]++ '@rolldown/[email protected]':+ resolution: {integrity: sha512-LrMoKqpHx+kCaNSk84iSBd4yVOymLIbxJQtvFjDN2CjQraownR+IXcwYDblFcj9ivmS54T3vCboXBbm3s1zbPQ==}+ engines: {node: ^20.19.0 || >=22.12.0}+ cpu: [arm]+ os: [linux]++ '@rolldown/[email protected]':+ resolution: {integrity: sha512-sqI+Vdx1gmXJMsXN3Fsewm3wlt7RHvRs1uysSp//NLsCoh9ZFEUr4ZzGhWKOg6Rvf+njNu/vCsz96x7wssLejQ==}+ engines: {node: ^20.19.0 || >=22.12.0}+ cpu: [arm64]+ os: [linux]++ '@rolldown/[email protected]':+ resolution: {integrity: sha512-8xlqGLDtTP8sBfYwneTDu8+PRm5reNEHAuI/+6WPy9y350ls0KTFd3EJCOWEXWGW0F35ko9Fn9azmurBTjqOrQ==}+ engines: {node: ^20.19.0 || >=22.12.0}+ cpu: [arm64]+ os: [linux]++ '@rolldown/[email protected]':+ resolution: {integrity: sha512-iR4nhVouVZK1CiGGGyz+prF5Lw9Lmz30Rl36Hajex+dFVFiegka604zBwzTp5Tl0BZnr50ztnVJ30tGrBhDr8Q==}+ engines: {node: ^20.19.0 || >=22.12.0}+ cpu: [x64]+ os: [linux]++ '@rolldown/[email protected]':+ resolution: {integrity: sha512-HbfNcqNeqxFjSMf1Kpe8itr2e2lr0Bm6HltD2qXtfU91bSSikVs9EWsa1ThshQ1v2ZvxXckGjlVLtah6IoslPg==}+ engines: {node: ^20.19.0 || >=22.12.0}+ cpu: [x64]+ os: [linux]++ '@rolldown/[email protected]':+ resolution: {integrity: sha512-BiiamFcgTJ+ZFOUIMO9AHXUo9WXvHVwGfSrJ+Sv0AsTd2w3VN7dJGiH3WRcxKFetljJHWvGbM4fdpY5lf6RIvw==}+ engines: {node: ^20.19.0 || >=22.12.0}+ cpu: [arm64]+ os: [openharmony]++ '@rolldown/[email protected]':+ resolution: {integrity: sha512-6roXGbHMdR2ucnxXuwbmQvk8tuYl3VGu0yv13KxspyKBxxBd4RS6iykzLD6mX2gMUHhfX8SVWz7n/62gfyKHow==}+ engines: {node: '>=14.0.0'}+ cpu: [wasm32]++ '@rolldown/[email protected]':+ resolution: {integrity: sha512-JBOm8/DC/CKnHyMHoJFdvzVHxUixid4dGkiTqGflxOxO43uSJMpl77pSPXvzwZ/VXwqblU2V0/PanyCBcRLowQ==}+ engines: {node: ^20.19.0 || >=22.12.0}+ cpu: [arm64]+ os: [win32]++ '@rolldown/[email protected]':+ resolution: {integrity: sha512-MKF0B823Efp+Ot8KsbwIuGhKH58pf+2rSM6VcqyNMlNBHheOM0Gf7JmEu+toc1jgN6fqjH7Et+8hAzsLVkIGfA==}+ engines: {node: ^20.19.0 || >=22.12.0}+ cpu: [x64]+ os: [win32]++ '@rolldown/[email protected]':+ resolution: {integrity: sha512-Jz4aqXRPVtqkH1E3jRDzLO5cgN5JwW+WG0wXGE4NiJd25nougv/AHzxmKCzmVQUYnxLmTM0M4wrZp+LlC2FKLg==}++ '@tybys/[email protected]':+ resolution: {integrity: sha512-9tTaPJLSiejZKx+Bmog4uSubteqTvFrVrURwkmHixBo0G4seD0zUxp98E1DzUBJxLQ3NPwXrGKDiVjwx/DpPsg==}++ resolution: {integrity: sha512-NZyJarBfL7nWwIq+FDL6Zp/yHEhePMNnnJ0y3qfieCrmNvYct8uvtiV41UvlSe6apAfk0fY1FbWx+NwfmpvtTg==}+ engines: {node: '>=0.4.0'}+ hasBin: true++ resolution: {integrity: sha512-9Gey0OG4gu2IzoLbwRj2fqyntJPbEFox/5KdOgg0zflkzq5lyOapWE324xYOvVdk9hgyjiMvDcT6XUPAIJhmag==}+ hasBin: true++ resolution: {integrity: sha512-750hTRvgBy5kcMNPdh95Qo+XUBeGo8C7nsKSmedDmaQI+E0r82DwHeM6vBewDe4rGFbnxoa4V9pw+sPh5+Iz8Q==}+ peerDependencies:+ magicast: '*'+ peerDependenciesMeta:+ magicast:+ optional: true++ resolution: {integrity: sha512-TQMmc3w+5AxjpL8iIiwebF73dRDF4fBIieAqGn9RGCWaEVwQ6Fb2cGe31Yns0RRIzii5goJ1Y7xbMwo1TxMplw==}+ engines: {node: '>= 20.19.0'}++ resolution: {integrity: sha512-tskPPKEs8D2KPafUypv2gxwJP8h/OaJmC82QQGGDQcHvXX43xF2VDACcJVmZ0EuSxkpO9Kc4MlrA3q0+FG58AQ==}++ resolution: {integrity: sha512-8csy5IBFI2ex2hTVpaHN2j+LNE199AgiI7y4dMintrr8i0lQiFn+0AWMZrWdHKIgMOer65f8IThysYhoReqjWA==}++ resolution: {integrity: sha512-RMtmw0iFkeR4YV+fUOSucriAQNb9g8zFR52MWCtl+cCZOFRNL6zeB395vPzFhEjjn4fMxXudmELnl/KF/WrK6w==}++ resolution: {integrity: sha512-1NB+BKqhtNipMsov4xI/NnhCKp9XG9NamYp5PVm9klAT0fsrNPjaFICsCFhNhwZJKNh7zB/3q8qXz0E9oaMNtQ==}++ resolution: {integrity: sha512-5IKcdX0nnYavi6G7TtOhwkYzyjfJlatbjMjuLSfE2kYT5pMDOilZ4OvMhi637CcDICTmz3wARPoyhqyX1Y+XvA==}+ engines: {node: ^14.18.0 || >=16.10.0}++ resolution: {integrity: sha512-lmf5mtwHiToP3HumOx53cqS0T5TK8GMBpsbSCXRB5OuszbltTgGOO4B1WhrDYqTeXOk3BAemibNjJx8E0/ecNw==}+ peerDependencies:+ srvx: '>=0.7.1'+ peerDependenciesMeta:+ srvx:+ optional: true++ resolution: {integrity: sha512-RiXXi4WaNzPTHEOu8UPQKMooIbqOEyqA1t7Z6MsdxSCeb8iUC9ko3LcmsLmeUt2SM5bctfArZKkRQggKZz7JNw==}+ peerDependencies:+ '@electric-sql/pglite': '*'+ '@libsql/client': '*'+ better-sqlite3: '*'+ drizzle-orm: '*'+ mysql2: '*'+ sqlite3: '*'+ peerDependenciesMeta:+ '@electric-sql/pglite':+ optional: true+ '@libsql/client':+ optional: true+ better-sqlite3:+ optional: true+ drizzle-orm:+ optional: true+ mysql2:+ optional: true+ sqlite3:+ optional: true++ resolution: {integrity: sha512-mEQCMmwJu317oSz8CwdIOdwf3xMif1ttiM8LTufzc3g6kR+9Pe236twL8j3IYT1F7GfRgGcW6MWxzZjLIkuHIg==}++ resolution: {integrity: sha512-ugFTXCtDZunbzasqBxrK93Ik/DRYsO6S/fedkWEMKqt04xZ4csmnmwGDBAb07QWNaGMAmnTIemsYZCksjATwsA==}++ resolution: {integrity: sha512-Btj2BOOO83o3WyH59e8MgXsxEQVcarkUOpEYrubB0urwnN10yQ364rsiByU11nZlqWYZm05i/of7io4mzihBtQ==}+ engines: {node: '>=8'}++ resolution: {integrity: sha512-+yW4SNY7W2DOWe2Jx5H4c2qMTFbLGM6wIyoDPkAPy66X+sD1KfYjBPAIWPVsYqMxelflaMQCloZDudELIPhLqA==}+ engines: {node: ^18.12.0 || >=20.9.0}++ resolution: {integrity: sha512-JVUnt+DUIzu87TABbhPmNfVdBDt18BLOWjMUFJMSi/Qqg7NTYtabbvSNJGOJ7afbRuv9D/lngizHtP7QyLQ+9w==}+ engines: {node: '>=12'}++ resolution: {integrity: sha512-LmDxfWXwcTArk8fUEnOfSZpHOJ6zOMUJKOtFLFqJLoKJetuQG874Uc7/Kki7zFLzYybmZhp1M7+98pfMqeX8yA==}++ resolution: {integrity: sha512-eRnCtTTtGZFpQCwhJiUOuxPQWRXVKYDn0b2PeHfXL6/Zi53SLAzAHfVhVWK2AryC/WH05kGfxhFIPvTF0SXQzg==}+ engines: {node: '>= 4.9.1'}++ resolution: {integrity: sha512-tIbYtZbucOs0BRGqPJkshJUYdL+SDH7dVM8gjy+ERp3WAUjLEFJE+02kanyHtwjWOnwrKYBiwAmM0p4kLJAnXg==}+ engines: {node: '>=12.0.0'}+ peerDependencies:+ picomatch: ^3 || ^4+ peerDependenciesMeta:+ picomatch:+ optional: true++ resolution: {integrity: sha512-L5bGsVkxJbJgdnwyuheIunkGatUF/zssUoxxjACCseZYAVbaqdh9Tsmmlkl8vYan09H7sbvKt4pS8GqKLBrEzA==}+ hasBin: true++ resolution: {integrity: sha512-qkohAzCab0nLzXNm78tBjZDvtKMTmtygS8BJLT3VPczAQofdqlFXDPkXdLMJN4r05+xqneG8snZJ0HgkERCZTg==}+ engines: {node: '>=20.11.1'}+ peerDependencies:+ crossws: ^0.4.1+ peerDependenciesMeta:+ crossws:+ optional: true++ resolution: {integrity: sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ==}+ engines: {node: '>=0.10.0'}++ resolution: {integrity: sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==}+ engines: {node: '>=0.10.0'}++ resolution: {integrity: sha512-ekilCSN1jwRvIbgeg/57YFh8qQDNbwDb9xT/qu2DAHbFFZUicIl4ygVaAvzveMhMVr3LnpSKTNnwt8PoOfmKhQ==}+ hasBin: true++ resolution: {integrity: sha512-4LqMNoONzR43B1W0ek0fhXMsDNW/zxa1NdFAVMY+k28pgZLovR4G3PB5MrpTxCy1QaZCqNoiaKPr5w5qZHfSNw==}++ resolution: {integrity: sha512-m/M1U1f3ddMCs6Hq2tAsYThTBDaAKFDX3dwDo97GEYzamXi9SqUpjWi/Rrj/gf3X2n8ktwgZrlP1z6E3v/IExQ==}++ resolution: {integrity: sha512-vd2F4YUyEXKGcLHoq+TEyCjxueSeHnFxyyjNp80yg0XV4vUhnDer/lvvlqM/arB5bXQN5K2/3oinyCRyx8T2CQ==}++ resolution: {integrity: sha512-lFM7vwk3d4MzkV2mija7aPkK6OjKXZDQsH2beX+e2cvccBoqc6RraheMtAO0Wcr/gjj5L+WS5zhb+06AmuGZrg==}++ resolution: {integrity: sha512-jvLISenzbLRPWWamTG3THlhTcMbKWzJQNyTi61AVXhCBOC+gsldNTUfUNH8d3Vay83zGehFw3wZpF3xChzkTIQ==}++ resolution: {integrity: sha512-l8D9ODSRWLe2KHJSifWGwBqpTZXIXTeo8mlKjY+E2HAakaTeNpqAyBZ8GSqLzHgw4XmHmC8whvpjJNMbFZN7/g==}++ resolution: {integrity: sha512-qbMXT7RTGh74MYWPeqTIED8nDW70NXOULVHpdWcdZ7IVHVnAsMV9fNugSNnvooipDc1FMOzpis7T9nXJEbJhvQ==}++ resolution: {integrity: sha512-U4AxIsXxdkxzkFrK0XAw0e5Qbojk8jQ50MjjRBtBakC4HurTtQoiZvF+lSe382jhuQZCfAyywGWOFa9QzXLFaw==}+ engines: {node: ^20.19.0 || >=22.12.0}+ hasBin: true+ peerDependencies:+ rolldown: '*'+ rollup: ^4+ vite: ^7+ xml2js: ^0.6.2+ peerDependenciesMeta:+ rolldown:+ optional: true+ rollup:+ optional: true+ vite:+ optional: true+ xml2js:+ optional: true++ resolution: {integrity: sha512-5m3bsyrjFWE1xf7nz7YXdN4udnVtXK6/Yfgn5qnahL6bCkf2yKt4k3nuTKAtT4r3IG8JNR2ncsIMdZuAzJjHQQ==}++ resolution: {integrity: sha512-g9yhqoedzIUm0nTnTqAQvueMPVOuIY16bqgAJJC8XOOubYFNwz6IER9qs0Gq2Xd0+CecCKFjtdDTMA4u4xG06Q==}++ resolution: {integrity: sha512-1TvCKjZyyklN+JJj2TS3P4uSQEInrM/HkkuSXsEzm1ApPgBffOn8gFguNnZf07r/1X6vlryfIqMUkJKQMzlZiw==}+ engines: {node: '>=18'}+ hasBin: true++ resolution: {integrity: sha512-2W4oUZlVaqAPAil6FUg/difl6YhqhUR7x2eZY4bQCko22UXg3hptq9KLQdqFClV+Wu85UX7hNtdGTngi/1BxcA==}++ resolution: {integrity: sha512-zpYTCs2byOuft65vI3z43Dd6iSdFbOZZLb9/d21aCpx2rGastVU9dOCv0lu4ykc1Ur1anAYjDi3SUvR0vq50JA==}++ resolution: {integrity: sha512-RdR9FQrFwNBNXAr4GixM8YaRZRJ5PUWbKYbE5eOsrwAjJW0q2REGcf79oYPsLyskQCZG1PLN+S/K1V00joZAoQ==}++ resolution: {integrity: sha512-dXeeGrfPJJ4rMdw+NrqiCRtbzVX2ogq//R0Xns08zql2HjV3Zi2SBJ65saqfDaJzd2bcHqvGWH+M44EQCHPAcA==}+ engines: {node: ^20.19.0 || >=22.12.0}++ resolution: {integrity: sha512-dQPNIF+gHpSkmC0+Vg9IktNyhcn28Y8R3eTLyzn52UNymkasLicl3sFAtz7oEVuFmCpgGjaUTKkwk+jW2cHpDQ==}+ engines: {node: ^20.19.0 || >=22.12.0}++ resolution: {integrity: sha512-WUjGcAqP1gQacoQe+OBJsFA7Ld4DyXuUIjZ5cc75cLHvJ7dtNsTugphxIADwspS+AraAUePCKrSVtPLFj/F88w==}++ resolution: {integrity: sha512-fkEH/OBiKrqqI/yIgjR92lMfs2K8105zt/VT6+7eTjNwisrsh47CeIED9z58zI7DfKdH3uHAn25ziRZn3kgAow==}++ resolution: {integrity: sha512-5gTmgEY/sqK6gFXLIsQNH19lWb4ebPDLA4SdLP7dsWkIXHWlG66oPuVvXSGFPppYZz8ZDZq0dYYrbHfBCVUb1Q==}+ engines: {node: '>=12'}++ resolution: {integrity: sha512-/Jm5M4RvtBFVkKWRu2BLUTNP8/M2a+UwuAX+ae4770q1qVGtfjG+WTCupoZixokjmHiry8uI+dlY8KXYV5HVVQ==}++ resolution: {integrity: sha512-SIqCzDRg0s9npO5XQ3tNZioRY1uK06lA41ynBC1YmFTmnY6FjUjVt6s4LoADmwoig1qqD0oK8h1p/8mlMx8Oig==}++ resolution: {integrity: sha512-btXCnMmRIBINM2LDZoEmOogIZU7Qe7zn4BpomSKZ/ykbLObuBdvG+mFq11DL6fjH1DRwHhrlgtYWG96bJiC7Cg==}++ resolution: {integrity: sha512-9u/XQ1pvrQtYyMpZe7DXKv2p5CNvyVwzUB6uhLAnQwHMSgKMBR62lc7AHljaeteeHXn11XTAaLLUVZYVZyuRBQ==}+ engines: {node: '>= 20.19.0'}++ resolution: {integrity: sha512-YYgpv7MiTp9LdLj1fzGzCtij8Yi2OKEc3HQtfbIxW4yuSgpQz9518I69U72T5ErPA/ATOXqlcisiLrWy+5V9YA==}+ engines: {node: ^20.19.0 || >=22.12.0}+ hasBin: true++ resolution: {integrity: sha512-iFE4hLDuloSWcD7mjdCDhx2bKcIsYbtOTpfH5MHHLSKMOUyjqQXTeZVa289uuwEGEKFoE/BAPbhaU4B774nceg==}++ resolution: {integrity: sha512-6FtHJEvt+pVMIB9IBY+IcCJ6Z5f1iQnytgyfKMhDKgmzYG+TeH/wx1y3l27rshSbLiSanrR9ffZDrEsmjlQF2g==}++ resolution: {integrity: sha512-RZaxTKJEE/14HYn8COLuUOJAt0U55N9l1Xf6jj+T0GoA01EUH1Xz5JtSUOI+EHn+AEgPCVn7gk6jHJffrr06fQ==}+ engines: {node: '>=20.16.0'}+ hasBin: true++ resolution: {integrity: sha512-W/KYk+NFhkmsYpuHq5JykngiOCnxeVL8v8dFnqxSD8qEEdRfXk1SDM6JzNqcERbcGYj9tMrDQBYV9cjgnunFIg==}+ engines: {node: '>=18'}++ resolution: {integrity: sha512-j2Zq4NyQYG5XMST4cbs02Ak8iJUdxRM0XI5QyxXuZOzKOINmWurp3smXu3y5wDcJrptwpSjgXHzIQxR0omXljQ==}+ engines: {node: '>=12.0.0'}++ resolution: {integrity: sha512-oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w==}++ resolution: {integrity: sha512-nN3wfLLj4OES/7awYyyM7fkU8U8sAFxsXau2bYJwAWi6T09jd87DgHD8N31zXaJ7LcpyppHWPRI2Ov9MuZEwnQ==}+ cpu: [x64]+ os: [darwin]++ resolution: {integrity: sha512-wCoDHMiTf3FgLAbZHDDx/unNNonSGhsF5AbbYODbxnpYyoKDpEYacUEPjZD895vDhNvYCH0Nnk24YsP4n/cD6g==}+ cpu: [arm64]+ os: [darwin]++ resolution: {integrity: sha512-KKPvhOmJMmzWj/yjeO4LywkQ85vOJyhru7AZk/+c4B6OUh/odQ++SiIJBSbTG2lm1CuV5gV5vXZnf/2AMlu3Zg==}+ cpu: [x64]+ os: [linux]++ resolution: {integrity: sha512-8PIva4L6BQhiPikUTds9lSFSHXVDAsEvV6QUlgwPsXrtXVQMVi6Sv9p+IxtlWQFvGkdYJUgX9GnK2rC030Xcmw==}+ cpu: [arm64]+ os: [linux]++ resolution: {integrity: sha512-rupskv/mkIUgQXzX/wUiK00mKMorQcK8yzhGFha/D5lm05FEnLx8dsip6rWzMcVpvh+4GUMA56PgtnOgpel2AA==}+ cpu: [x64]+ os: [win32]++ resolution: {integrity: sha512-G377Gxn6P42RnCzfMyDvsqQV7j69kVHKlhz9J4RhtJOB5+DyY4yYh/w0oTIxZQ4JRMmhjwLu3w9zncMoQ6nNDw==}+ cpu: [arm64]+ os: [win32]++ resolution: {integrity: sha512-7Imdmg37joOloTnj+DPrab9hIaQcDdJ5RwSzcauo/wMOSAgO+A/I/8b3hsGGs6PWQz70m/jkPgdqWsfNKtwwDQ==}+ hasBin: true++ resolution: {integrity: sha512-yDJTmhydvl5lJzBmy/hyOAA0d+aqCBuwl818haVdYCRrWV84o7YyeVm4QlVHStqNrrJSTb6jKuFAVqAFsr+K3Q==}++ resolution: {integrity: sha512-y+8YjDFzWdQlSE9N5nzKMT3g4a5UBX1HKowfdXh0uvAnTaqqwqB92Jt4UXBAeKekDs5IaDKyJFR4X1gYVCgXcw==}+ engines: {node: '>=20.18.1'}++ resolution: {integrity: sha512-i7qRCmY42zmCwnYlh9H2SvLEypEFGye5iRmEMKjcGi7zk9UquigRjFtTLz0TYqr0ZGLZhaMHl/foy1bZR+Cwlw==}++ 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-nwNCjxJTjNuLCgFr42fEak5OcLuB3ecca+9ksPFNvtfYSLpjf+iJqSIaSnIile6ZPbKYxI5k2AfXqeopGudK/g==}+ hasBin: true++snapshots:++ '@babel/[email protected]': {}++ '@emnapi/[email protected]':+ dependencies:+ '@emnapi/wasi-threads': 1.1.0+ tslib: 2.8.1+ optional: true++ '@emnapi/[email protected]':+ dependencies:+ tslib: 2.8.1+ optional: true++ '@emnapi/[email protected]':+ dependencies:+ tslib: 2.8.1+ optional: true++ '@jridgewell/[email protected]': {}++ '@napi-rs/[email protected]':+ dependencies:+ '@emnapi/core': 1.8.1+ '@emnapi/runtime': 1.8.1+ '@tybys/wasm-util': 0.10.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-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.1+ optional: true++ '@oxc-minify/[email protected]':+ optional: true++ '@oxc-minify/[email protected]':+ optional: true++ '@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]':+ dependencies:+ '@napi-rs/wasm-runtime': 1.1.1+ optional: true++ '@oxc-transform/[email protected]':+ optional: true++ '@oxc-transform/[email protected]':+ optional: true++ '@parcel/[email protected]':+ optional: true++ '@parcel/[email protected]':+ optional: true++ '@parcel/[email protected]':+ optional: true++ '@parcel/[email protected]':+ optional: true++ '@parcel/[email protected]':+ optional: true++ '@parcel/[email protected]':+ optional: true++ '@parcel/[email protected]':+ optional: true++ '@parcel/[email protected]':+ optional: true++ '@parcel/[email protected]':+ optional: true++ '@parcel/[email protected]':+ optional: true++ '@parcel/[email protected]':+ optional: true++ '@parcel/[email protected]':+ optional: true++ '@parcel/[email protected]':+ optional: true++ '@parcel/[email protected]':+ dependencies:+ detect-libc: 2.1.2+ is-glob: 4.0.3+ node-addon-api: 7.1.1+ picomatch: 4.0.3+ optionalDependencies:+ '@parcel/watcher-android-arm64': 2.5.4+ '@parcel/watcher-darwin-arm64': 2.5.4+ '@parcel/watcher-darwin-x64': 2.5.4+ '@parcel/watcher-freebsd-x64': 2.5.4+ '@parcel/watcher-linux-arm-glibc': 2.5.4+ '@parcel/watcher-linux-arm-musl': 2.5.4+ '@parcel/watcher-linux-arm64-glibc': 2.5.4+ '@parcel/watcher-linux-arm64-musl': 2.5.4+ '@parcel/watcher-linux-x64-glibc': 2.5.4+ '@parcel/watcher-linux-x64-musl': 2.5.4+ '@parcel/watcher-win32-arm64': 2.5.4+ '@parcel/watcher-win32-ia32': 2.5.4+ '@parcel/watcher-win32-x64': 2.5.4++ '@rolldown/[email protected]':+ optional: true++ '@rolldown/[email protected]':+ optional: true++ '@rolldown/[email protected]':+ optional: true++ '@rolldown/[email protected]':+ optional: true++ '@rolldown/[email protected]':+ optional: true++ '@rolldown/[email protected]':+ optional: true++ '@rolldown/[email protected]':+ optional: true++ '@rolldown/[email protected]':+ optional: true++ '@rolldown/[email protected]':+ optional: true++ '@rolldown/[email protected]':+ optional: true++ '@rolldown/[email protected]':+ dependencies:+ '@napi-rs/wasm-runtime': 1.1.1+ optional: true++ '@rolldown/[email protected]':+ optional: true++ '@rolldown/[email protected]':+ optional: true++ '@rolldown/[email protected]': {}++ '@tybys/[email protected]':+ dependencies:+ tslib: 2.8.1+ optional: true++ [email protected]: {}++ dependencies:+ '@parcel/watcher': 2.5.4+ c12: 3.3.3+ citty: 0.1.6+ consola: 3.4.2+ defu: 6.1.4+ destr: 2.0.5+ didyoumean2: 7.0.4+ magic-string: 0.30.21+ mdbox: 0.1.1+ mlly: 1.8.0+ ofetch: 1.5.1+ pathe: 2.0.3+ perfect-debounce: 2.0.0+ pkg-types: 2.3.0+ scule: 1.3.0+ tinyglobby: 0.2.15+ untyped: 2.0.0+ transitivePeerDependencies:+ - magicast++ dependencies:+ chokidar: 5.0.0+ confbox: 0.2.2+ defu: 6.1.4+ dotenv: 17.2.3+ exsolve: 1.0.8+ giget: 2.0.0+ jiti: 2.6.1+ ohash: 2.0.11+ pathe: 2.0.3+ perfect-debounce: 2.0.0+ pkg-types: 2.3.0+ rc9: 2.1.2++ dependencies:+ readdirp: 5.0.0++ dependencies:+ consola: 3.4.2++ [email protected]: {}++ [email protected]: {}++ [email protected]: {}++ [email protected]: {}++ optionalDependencies:+ srvx: 0.9.8++ [email protected]: {}++ [email protected]: {}++ [email protected]: {}++ [email protected]: {}++ dependencies:+ '@babel/runtime': 7.28.6+ fastest-levenshtein: 1.0.16+ lodash.deburr: 4.1.0++ [email protected]: {}++ [email protected]: {}++ [email protected]: {}++ optionalDependencies:+ picomatch: 4.0.3++ dependencies:+ citty: 0.1.6+ consola: 3.4.2+ defu: 6.1.4+ node-fetch-native: 1.6.7+ nypm: 0.6.4+ pathe: 2.0.3++ dependencies:+ rou3: 0.7.12+ srvx: 0.9.8+ optionalDependencies:+ crossws: 0.4.3([email protected])++ [email protected]: {}++ dependencies:+ is-extglob: 2.1.1++ [email protected]: {}++ [email protected]: {}++ [email protected]: {}++ dependencies:+ '@jridgewell/sourcemap-codec': 1.5.5++ [email protected]: {}++ dependencies:+ md4w: 0.2.7++ dependencies:+ acorn: 8.15.0+ pathe: 2.0.3+ pkg-types: 1.3.1+ ufo: 1.6.3++ [email protected]: {}++ dependencies:+ consola: 3.4.2+ crossws: 0.4.3([email protected])+ db0: 0.3.4+ h3: 2.0.1-rc.5([email protected]([email protected]))+ jiti: 2.6.1+ nf3: 0.1.12+ ofetch: 2.0.0-alpha.3+ ohash: 2.0.11+ oxc-minify: 0.96.0+ oxc-transform: 0.96.0+ srvx: 0.9.8+ undici: 7.18.2+ unenv: 2.0.0-rc.24+ optionalDependencies:+ rolldown: 1.0.0-beta.60+ 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]: {}++ [email protected]: {}++ dependencies:+ citty: 0.2.0+ pathe: 2.0.3+ tinyexec: 1.0.2++ dependencies:+ destr: 2.0.5+ node-fetch-native: 1.6.7+ ufo: 1.6.3++ [email protected]: {}++ [email protected]: {}++ optionalDependencies:+ '@oxc-minify/binding-android-arm64': 0.96.0+ '@oxc-minify/binding-darwin-arm64': 0.96.0+ '@oxc-minify/binding-darwin-x64': 0.96.0+ '@oxc-minify/binding-freebsd-x64': 0.96.0+ '@oxc-minify/binding-linux-arm-gnueabihf': 0.96.0+ '@oxc-minify/binding-linux-arm-musleabihf': 0.96.0+ '@oxc-minify/binding-linux-arm64-gnu': 0.96.0+ '@oxc-minify/binding-linux-arm64-musl': 0.96.0+ '@oxc-minify/binding-linux-riscv64-gnu': 0.96.0+ '@oxc-minify/binding-linux-s390x-gnu': 0.96.0+ '@oxc-minify/binding-linux-x64-gnu': 0.96.0+ '@oxc-minify/binding-linux-x64-musl': 0.96.0+ '@oxc-minify/binding-wasm32-wasi': 0.96.0+ '@oxc-minify/binding-win32-arm64-msvc': 0.96.0+ '@oxc-minify/binding-win32-x64-msvc': 0.96.0++ optionalDependencies:+ '@oxc-transform/binding-android-arm64': 0.96.0+ '@oxc-transform/binding-darwin-arm64': 0.96.0+ '@oxc-transform/binding-darwin-x64': 0.96.0+ '@oxc-transform/binding-freebsd-x64': 0.96.0+ '@oxc-transform/binding-linux-arm-gnueabihf': 0.96.0+ '@oxc-transform/binding-linux-arm-musleabihf': 0.96.0+ '@oxc-transform/binding-linux-arm64-gnu': 0.96.0+ '@oxc-transform/binding-linux-arm64-musl': 0.96.0+ '@oxc-transform/binding-linux-riscv64-gnu': 0.96.0+ '@oxc-transform/binding-linux-s390x-gnu': 0.96.0+ '@oxc-transform/binding-linux-x64-gnu': 0.96.0+ '@oxc-transform/binding-linux-x64-musl': 0.96.0+ '@oxc-transform/binding-wasm32-wasi': 0.96.0+ '@oxc-transform/binding-win32-arm64-msvc': 0.96.0+ '@oxc-transform/binding-win32-x64-msvc': 0.96.0++ [email protected]: {}++ [email protected]: {}++ [email protected]: {}++ dependencies:+ confbox: 0.1.8+ mlly: 1.8.0+ pathe: 2.0.3++ dependencies:+ confbox: 0.2.2+ exsolve: 1.0.8+ pathe: 2.0.3++ dependencies:+ defu: 6.1.4+ destr: 2.0.5++ [email protected]: {}++ dependencies:+ '@oxc-project/types': 0.108.0+ '@rolldown/pluginutils': 1.0.0-beta.60+ optionalDependencies:+ '@rolldown/binding-android-arm64': 1.0.0-beta.60+ '@rolldown/binding-darwin-arm64': 1.0.0-beta.60+ '@rolldown/binding-darwin-x64': 1.0.0-beta.60+ '@rolldown/binding-freebsd-x64': 1.0.0-beta.60+ '@rolldown/binding-linux-arm-gnueabihf': 1.0.0-beta.60+ '@rolldown/binding-linux-arm64-gnu': 1.0.0-beta.60+ '@rolldown/binding-linux-arm64-musl': 1.0.0-beta.60+ '@rolldown/binding-linux-x64-gnu': 1.0.0-beta.60+ '@rolldown/binding-linux-x64-musl': 1.0.0-beta.60+ '@rolldown/binding-openharmony-arm64': 1.0.0-beta.60+ '@rolldown/binding-wasm32-wasi': 1.0.0-beta.60+ '@rolldown/binding-win32-arm64-msvc': 1.0.0-beta.60+ '@rolldown/binding-win32-x64-msvc': 1.0.0-beta.60++ [email protected]: {}++ [email protected]: {}++ [email protected]: {}++ [email protected]: {}++ dependencies:+ fdir: 6.5.0([email protected])+ picomatch: 4.0.3++ optional: true++ optional: true++ optional: true++ optional: true++ optional: true++ optional: true++ optional: true++ optionalDependencies:+ turbo-darwin-64: 2.7.5+ turbo-darwin-arm64: 2.7.5+ turbo-linux-64: 2.7.5+ turbo-linux-arm64: 2.7.5+ turbo-windows-64: 2.7.5+ turbo-windows-arm64: 2.7.5++ [email protected]: {}++ [email protected]: {}++ dependencies:+ pathe: 2.0.3++ optionalDependencies:+ chokidar: 5.0.0+ db0: 0.3.4+ ofetch: 2.0.0-alpha.3++ dependencies:+ citty: 0.1.6+ defu: 6.1.4+ jiti: 2.6.1+ knitwork: 1.3.0+ scule: 1.3.0diff --git a/pnpm-workspace.yaml b/pnpm-workspace.yamlnew file mode 100644index 0000000..3ff5faa--- /dev/null+++ b/pnpm-workspace.yaml@@ -0,0 +1,3 @@+packages:+ - "apps/*"+ - "packages/*"diff --git a/renovate.json b/renovate.jsonnew file mode 100644index 0000000..4474ad1--- /dev/null+++ b/renovate.json@@ -0,0 +1,5 @@+{+ "extends": [+ "github>nuxt/renovate-config"+ ]+}diff --git a/turbo.json b/turbo.jsonnew file mode 100644index 0000000..a191e41--- /dev/null+++ b/turbo.json@@ -0,0 +1,40 @@+{+ "$schema": "https://turbo.build/schema.json",+ "tasks": {+ "build": {+ "dependsOn": ["^build"],+ "outputs": [".vercel/output/**", ".nuxt/**", ".output/**", "dist/**"],+ "env": [+ "AI_GATEWAY_API_KEY",+ "GITHUB_TOKEN",+ "TURSO_DATABASE_URL",+ "TURSO_AUTH_TOKEN",+ "DATABASE_URL_UNPOOLED",+ "BLOB_READ_WRITE_TOKEN",+ "KV_URL",+ "KV_REST_API_TOKEN",+ "KV_REST_API_URL"+ ]+ },+ "dev": {+ "cache": false,+ "persistent": true,+ "env": [+ "AI_GATEWAY_API_KEY",+ "GITHUB_TOKEN"+ ]+ },+ "lint": {+ "dependsOn": ["^build"]+ },+ "lint:fix": {+ "dependsOn": ["^build"]+ },+ "typecheck": {+ "dependsOn": ["^build"]+ },+ "test": {+ "dependsOn": ["^build"]+ }+ }+}