diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index ae48a202f..0a6084e1a 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -30,7 +30,10 @@ jobs: # enforced, and reformatting them in one sweep would conflict with every host repo # that vendors src/ as a subtree and carries local edits. So contributors are held to # the standard for their own changes, and the backlog is cleared separately. - if: github.event_name == 'pull_request' + # Sync PRs from chaibuilder/pro (sync/* branches, see SYNC.md) are skipped: they author + # nothing here, and their content already passed this same check where it was written. + # A sync touches hundreds of files at once and would otherwise surface the whole backlog. + if: github.event_name == 'pull_request' && !startsWith(github.head_ref, 'sync/') steps: - uses: actions/checkout@v7 with: @@ -67,27 +70,9 @@ jobs: steps: - uses: actions/checkout@v7 - uses: ./.github/actions/setup + # One tier: every test runs against a real in-memory SQLite DB (src/tests/setup). - run: pnpm test - integration: - name: Integration tests - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v7 - - uses: ./.github/actions/setup - - # .env.test is gitignored — recreate it for the dotenv loaders in vitest and drizzle. - - name: Write .env.test - run: echo 'TEST_DATABASE_URL=file:./.tmp/chaibuilder_test.sqlite' > .env.test - - - name: Generate SQLite migrations - run: pnpm db:test:generate - - - name: Run integration tests - env: - NODE_ENV: test - run: pnpm test:integration - build: name: Build runs-on: ubuntu-latest diff --git a/.sync-ref b/.sync-ref index 5763109c6..d7530ca73 100644 --- a/.sync-ref +++ b/.sync-ref @@ -1 +1 @@ -chaibuilder/pro@103c78ca9ad4b79792205a357c0f16748aa2ae17 +chaibuilder/pro@55058ebe503eb924ba1b9a9829f0a15989989ede diff --git a/drizzle.config.test.ts b/drizzle.config.test.ts index 728a3fd00..a52261529 100644 --- a/drizzle.config.test.ts +++ b/drizzle.config.test.ts @@ -3,11 +3,9 @@ import { defineConfig } from "drizzle-kit"; config({ path: ".env.test", override: true }); -const url = process.env.TEST_DATABASE_URL!; - -if (!url) { - throw new Error("TEST_DATABASE_URL is not set in .env.test"); -} +// Tests build their schema in memory (src/tests/setup/apply-schema.ts); this config only backs +// `db:test:generate` / `db:test:studio` for inspecting the schema by hand. +const url = process.env.TEST_DATABASE_URL || "file:./.tmp/chaibuilder_test.sqlite"; export default defineConfig({ // Edition-specific schema barrel (core tables only in chaicore, the full union in chaipro). diff --git a/eslint.config.mjs b/eslint.config.mjs index 32daa79b2..dc345305f 100644 --- a/eslint.config.mjs +++ b/eslint.config.mjs @@ -1,6 +1,83 @@ import { defineConfig, globalIgnores } from "eslint/config"; import tseslint from "typescript-eslint"; +// --------------------------------------------------------------------------------------------- +// `no-restricted-syntax` entries. Flat config replaces a rule's options wholesale for a file, so +// every block that sets this rule spreads the shared entries it still needs. + +/** Modules tests may replace with `vi.mock` / `vi.doMock`: code that talks to the outside world. */ +const MOCKABLE_MODULES = [ + "@openrouter/ai-sdk-provider", + "@ai-sdk/openai-compatible", + "workers-ai-provider", + "@ai-sdk/react", + "ai", + "sonner", +]; + +const escapeRegex = (value) => value.replace(/[.*+?^${}()|[\]\\/]/g, "\\$&"); + +const viMockEntries = (allowed) => [ + { + selector: + 'CallExpression[callee.object.name="vi"][callee.property.name=/^(mock|doMock)$/]' + + `:not([arguments.0.value=/^(${allowed.map(escapeRegex).join("|")})$/])`, + message: + "Do not mock internal or library modules — tests run against the real system. Use the harness: " + + "~/tests/setup (withTestDB, useTestChaiConfig, withChaiConfig, withRequestContext, installMemoryPersistentCache), " + + "~/tests/builder (renderInBuilder, renderHookInBuilder, mockChaiAction, registerTestBlocks), " + + "~/tests/utils/capture-consola. Only network SDKs (AI providers) and sonner may be mocked.", + }, + { + selector: + 'CallExpression[callee.object.name="vi"][callee.property.name=/^(mock|doMock)$/][arguments.0.type!="Literal"]', + message: "vi.mock target must be a string literal so the mock allowlist can be checked.", + }, +]; + +const DEFAULTS_BARREL_ENTRY = { + selector: "ImportDeclaration[source.value=/^~\\/server\\/defaults(\\/index)?$/]", + message: + "Import from ~/server/defaults/config-registry (or the specific submodule). The ~/server/defaults barrel loads " + + "builtin-chai-actions, which instantiates every action class and cycles back into action modules.", +}; + +/** + * Subtree boundary patterns, shared by the two blocks that enforce them. Flat config + * replaces a rule's options wholesale per file, so the block that exempts the MCP entry + * from the SDK restriction has to restate these rather than rely on an earlier block. + */ +const subtreeImportPatterns = [ + { + // Host apps alias their own source as @/ (Next.js default); ~~/ and #/ are the + // other conventions in use. This repo's own alias is ~/, mapped to ./src. + // "[#]/**" not "#/**": minimatch reads a leading # as a comment and the + // pattern would silently never match. + group: ["@/*", "@/**", "~~/*", "~~/**", "[#]/**"], + message: + "Host-app alias import. This subtree must build standalone — use ~/ (this repo's src) or a package dependency.", + }, + { + // Deepest legitimate import in src/ today is four levels; five would leave the + // subtree entirely when it sits at a shallow prefix in a host repo. + group: ["../../../../../*", "../../../../../**"], + message: "Relative import climbs out of the subtree. Use the ~/ alias to reach other modules in this repo.", + }, +]; + +/** + * Optional-peer boundary: `@modelcontextprotocol/sdk` may only be imported by the module + * behind the `/mcp` entry point. Anywhere else the static import would be pulled + * into an entry that hosts without the package also load, turning an optional peer into + * a required one and breaking their build. Tool authoring is SDK-free on purpose — see + * src/server/mcp/api.ts. + */ +const mcpSdkImportPattern = { + group: ["@modelcontextprotocol/sdk", "@modelcontextprotocol/sdk/*"], + message: + "Only ~/server/mcp/handle-request may import the MCP SDK (optional peer). Define tools with the SDK-free helpers in ~/server/mcp/api.", +}; + const eslintConfig = defineConfig([ // src/utils/vendor: vendored third-party code, kept verbatim — its inline eslint // directives reference plugins (react-hooks) this config does not install. @@ -85,29 +162,43 @@ const eslintConfig = defineConfig([ rules: { "@typescript-eslint/no-restricted-imports": [ "error", - { - patterns: [ - { - // Host apps alias their own source as @/ (Next.js default); ~~/ and #/ are the - // other conventions in use. This repo's own alias is ~/, mapped to ./src. - // "[#]/**" not "#/**": minimatch reads a leading # as a comment and the - // pattern would silently never match. - group: ["@/*", "@/**", "~~/*", "~~/**", "[#]/**"], - message: - "Host-app alias import. This subtree must build standalone — use ~/ (this repo's src) or a package dependency.", - }, - { - // Deepest legitimate import in src/ today is four levels; five would leave the - // subtree entirely when it sits at a shallow prefix in a host repo. - group: ["../../../../../*", "../../../../../**"], - message: - "Relative import climbs out of the subtree. Use the ~/ alias to reach other modules in this repo.", - }, - ], - }, + { patterns: [...subtreeImportPatterns, mcpSdkImportPattern] }, ], }, }, + { + // Tests run against the real system (in-memory DB, real config, real jotai store, real + // i18n, msw at the HTTP boundary). In-source `import.meta.vitest` blocks live in non-test + // files, so this covers all of src/. + files: ["src/**/*.{ts,tsx}"], + rules: { "no-restricted-syntax": ["error", ...viMockEntries(MOCKABLE_MODULES)] }, + }, + { + // Action and page-data modules are loaded by builtin-chai-actions; they must not import the barrel. + files: [ + "src/server/chai-actions/**/*.{ts,tsx}", + "src/server/chai-builder/**/*.{ts,tsx}", + "src/plugins/*/server/**/*.{ts,tsx}", + ], + rules: { "no-restricted-syntax": ["error", ...viMockEntries(MOCKABLE_MODULES), DEFAULTS_BARREL_ENTRY] }, + }, + { + // The Tailwind compat adapter's contract is the shape of its calls into tailwindcss across + // major versions; only a stand-in compiler can observe that. + files: ["src/utils/tailwind-css-compat.test.ts"], + rules: { "no-restricted-syntax": ["error", ...viMockEntries([...MOCKABLE_MODULES, "tailwindcss"])] }, + }, + { + // The one module allowed to resolve the optional MCP SDK peer, plus tests — a test + // never ships in a bundle, and measuring what a client actually receives means using + // the SDK's own schema conversion rather than a copy of it that can drift. Restates + // the subtree patterns because this rule's options replace the block above for these + // files. + files: ["src/server/mcp/handle-request.ts", "src/**/*.test.ts"], + rules: { + "@typescript-eslint/no-restricted-imports": ["error", { patterns: subtreeImportPatterns }], + }, + }, ]); export default eslintConfig; diff --git a/package.json b/package.json index 6c9158eb8..5cee73137 100644 --- a/package.json +++ b/package.json @@ -46,8 +46,7 @@ "build": "NODE_OPTIONS='--max-old-space-size=6144' tsup --format esm,cjs && NODE_OPTIONS='--max-old-space-size=6144' node scripts/build-dts.mjs", "build:dts": "NODE_OPTIONS='--max-old-space-size=6144' node scripts/build-dts.mjs", "test": "vitest --run", - "test:integration": "vitest --run --config vitest.config.integration.ts", - "test:integration:watch": "vitest --config vitest.config.integration.ts", + "test:watch": "vitest", "db:test:generate": "drizzle-kit generate --config drizzle.config.test.ts", "db:test:studio": "drizzle-kit studio --config drizzle.config.test.ts", "lint": "eslint src/", @@ -174,6 +173,7 @@ "peerDependencies": { "@ai-sdk/openai-compatible": ">=2.0.0", "@libsql/client": ">=0.14.0", + "@modelcontextprotocol/sdk": ">=1.26.0 <2", "@next/third-parties": ">=15.3.0", "@openrouter/ai-sdk-provider": ">=2.0.0", "@tailwindcss/postcss": "^4.0.0", @@ -184,7 +184,8 @@ "react": ">=19.0.0", "react-dom": ">=19.0.0", "tailwindcss": "^4.0.0", - "workers-ai-provider": ">=3.0.0" + "workers-ai-provider": ">=3.0.0", + "pg": ">=8.0.0" }, "peerDependenciesMeta": { "@ai-sdk/openai-compatible": { @@ -216,6 +217,12 @@ }, "workers-ai-provider": { "optional": true + }, + "@modelcontextprotocol/sdk": { + "optional": true + }, + "pg": { + "optional": true } }, "dependencies": { @@ -291,6 +298,7 @@ "react-i18next": "16.2.4", "sonner": "2.0.7", "streamdown": "2.5.0", + "virtual-react-json-diff": "1.0.20", "xss": "1.0.15", "zod": "4.3.5" }, @@ -300,6 +308,7 @@ "@commitlint/config-conventional": "21.2.2", "@faker-js/faker": "10.5.0", "@libsql/client": "0.17.3", + "@modelcontextprotocol/sdk": "1.26.0", "@next/third-parties": "^16.2.10", "@openrouter/ai-sdk-provider": "2.10.0", "@payloadcms/ui": "^3.86.0", @@ -325,6 +334,7 @@ "msw": "2.14.6", "next": "^16.3.3", "payload": "^3.89.0", + "pg": "8.16.3", "postgres": "3.4.9", "prettier": "3.8.3", "prettier-plugin-tailwindcss": "0.7.4", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index aec9c83c2..21a96368b 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -224,6 +224,9 @@ importers: streamdown: specifier: 2.5.0 version: 2.5.0(react-dom@19.2.7(react@19.2.7))(react@19.2.7) + virtual-react-json-diff: + specifier: 1.0.20 + version: 1.0.20(react-dom@19.2.7(react@19.2.7))(react@19.2.7) xss: specifier: 1.0.15 version: 1.0.15 @@ -246,6 +249,9 @@ importers: '@libsql/client': specifier: 0.17.3 version: 0.17.3 + '@modelcontextprotocol/sdk': + specifier: 1.26.0 + version: 1.26.0(zod@4.3.5) '@next/third-parties': specifier: ^16.2.10 version: 16.2.10(next@16.3.3(@opentelemetry/api@1.9.1)(@types/node@26.6.1)(babel-plugin-macros@3.1.0)(react-dom@19.2.7(react@19.2.7))(react@19.2.7))(react@19.2.7) @@ -302,7 +308,7 @@ importers: version: 0.31.10 drizzle-orm: specifier: 0.45.2 - version: 0.45.2(@libsql/client@0.17.3)(@opentelemetry/api@1.9.1)(@types/better-sqlite3@7.6.13)(better-sqlite3@13.0.3)(postgres@3.4.9) + version: 0.45.2(@libsql/client@0.17.3)(@opentelemetry/api@1.9.1)(@types/better-sqlite3@7.6.13)(better-sqlite3@13.0.3)(pg@8.16.3)(postgres@3.4.9) eslint: specifier: 10.3.0 version: 10.3.0(jiti@2.7.0) @@ -321,6 +327,9 @@ importers: payload: specifier: ^3.89.0 version: 3.89.0(graphql@16.14.0)(typescript@5.9.3) + pg: + specifier: 8.16.3 + version: 8.16.3 postgres: specifier: 3.4.9 version: 3.4.9 @@ -571,6 +580,9 @@ packages: resolution: {integrity: sha512-GsCw/qu92GI0EX6s7fxUi/SG1lmFjG9XZivxxEDZXqztuQKCn5o5wKdz4v005zci0Md7EZzgAwmQLoIEDZoaow==} engines: {node: '>=22'} + '@cronvel/get-pixels@3.4.1': + resolution: {integrity: sha512-gB5C5nDIacLUdsMuW8YsM9SzK3vaFANe4J11CVXpovpy7bZUGrcJKmc6m/0gWG789pKr6XSZY2aEetjFvSRw5g==} + '@date-fns/tz@1.2.0': resolution: {integrity: sha512-LBrd7MiJZ9McsOgxqWX7AaxrDjcFVjWH/tIKJd7pnR7McaslGYOP1QmmiBXdJH/H/yLCT+rcQ7FaPBUxRGUtrg==} @@ -1342,6 +1354,12 @@ packages: '@gerrit0/mini-shiki@3.23.0': resolution: {integrity: sha512-bEMORlG0cqdjVyCEuU0cDQbORWX+kYCeo0kV1lbxF5bt4r7SID2l9bqsxJEM0zndaxpOUT7riCyIVEuqq/Ynxg==} + '@hono/node-server@1.19.19': + resolution: {integrity: sha512-Fy9R7PACOzHU9LDpfnuzVyuVYevKQRcEG2mZhmfc+DRdmayEd3RVfa2XOt2IgGcPNgA77Yk63KBszepcMFK5Ng==} + engines: {node: '>=18.14.1'} + peerDependencies: + hono: ^4 + '@humanfs/core@0.19.2': resolution: {integrity: sha512-UhXNm+CFMWcbChXywFwkmhqjs3PRCmcSa/hfBgLIb7oQ5HNb1wS0icWsGtSAUNgefHeI+eBrA8I1fxmbHsGdvA==} engines: {node: '>=18.18.0'} @@ -1647,6 +1665,16 @@ packages: '@mermaid-js/parser@1.1.1': resolution: {integrity: sha512-VuHdsYMK1bT6X2JbcAaWAhugTRvRBRyuZgd+c22swUeI9g/ntaxF7CY7dYarhZovofCbUNO0G7JesfmNtjYOCw==} + '@modelcontextprotocol/sdk@1.26.0': + resolution: {integrity: sha512-Y5RmPncpiDtTXDbLKswIJzTqu2hyBKxTNsgKqKclDbhIgg1wgtf1fRuvxgTnRfcnxtvvgbIEcqUOzZrJ6iSReg==} + engines: {node: '>=18'} + peerDependencies: + '@cfworker/json-schema': ^4.1.1 + zod: ^3.25 || ^4.0 + peerDependenciesMeta: + '@cfworker/json-schema': + optional: true + '@monaco-editor/loader@1.7.0': resolution: {integrity: sha512-gIwR1HrJrrx+vfyOhYmCZ0/JcWqG5kbfG7+d3f/C1LXk2EvzAbHSg3MQ5lO2sMlo9izoAZ04shohfKLVT6crVA==} @@ -3339,6 +3367,10 @@ packages: '@vitest/utils@4.1.11': resolution: {integrity: sha512-zTCVGpyFsGWBhllOyKlTw/vnr6D9qxsfSDyfbyZmTyjHw5N/VuvzHpHoQjm2ZJzn4RJgx5w4r7V0er69CmLgPQ==} + accepts@2.0.0: + resolution: {integrity: sha512-5cvg6CtKwfgdmVqY1WIiXKc3Q1bkRqGLi+2W/6ao+6Y7gu/RCwRuAhGEzh5B4KlszSuTLgZYuqFqo5bImjNKng==} + engines: {node: '>= 0.6'} + acorn-jsx@5.3.2: resolution: {integrity: sha512-rq9s+JNhf0IChjtDXxllJ7g41oZk5SlXtp0LHwyA5cejwn7vKmKp4pPri6YEePv2PU65sAsegbXtIinmDFDXgQ==} peerDependencies: @@ -3364,6 +3396,9 @@ packages: ajv-formats@2.1.1: resolution: {integrity: sha512-Wx0Kx52hxE7C18hkMEggYlEifqWZtYaRgouJor+WMdPnQyEK13vgEWyVNup7SoeeoLMsr4kf5h6dOW11I15MUA==} + ajv-formats@3.0.1: + resolution: {integrity: sha512-8iUql50EUR+uUcdRQ3HDqa6EVyo3docL8g5WJ3FNcWmu62IbkGUue/pEyLBW8VGKKucTPgqeks4fIU1DA4yowQ==} + ajv@6.15.0: resolution: {integrity: sha512-fgFx7Hfoq60ytK2c7DhnF8jIvzYgOMxfugjLOSMHjLIPgenqa7S7oaagATUq99mV6IYvN2tRmC0wnTYX6iPbMw==} @@ -3445,6 +3480,10 @@ packages: blueimp-canvas-to-blob@3.29.0: resolution: {integrity: sha512-0pcSSGxC0QxT+yVkivxIqW0Y4VlO2XSDPofBAqoJ1qJxgH9eiUDLv50Rixij2cDuEfx4M6DpD9UGZpRhT5Q8qg==} + body-parser@2.4.0: + resolution: {integrity: sha512-Ifk1KcLrxaGt1occQagQNFNNOqRt1LFuehEnHHzB8Z6cRgIxRU1TBaiIsUiCdA+gy5PL7Y1IX31DNKkRmxtXjQ==} + engines: {node: '>=18'} + body-scroll-lock@4.0.0-beta.0: resolution: {integrity: sha512-a7tP5+0Mw3YlUJcGAKUqIBkYYGlYxk2fnCasq/FUph1hadxlTRjF+gAcZksxANnaMnALjxEddmSi/H3OR8ugcQ==} @@ -3468,10 +3507,22 @@ packages: resolution: {integrity: sha512-8SFQbg/0hQ9xy3UNTB0YEnsNBbWfhf7RtnzpL7TkBiTBRfrQ9Fxcnz7VJsleJpyp6rVLvXiuORqjlHi5q+PYuA==} engines: {node: '>=10.16.0'} + bytes@3.1.2: + resolution: {integrity: sha512-/Nf7TyzTx6S3yRJObOAV7956r8cr2+Oj8AC5dt8wSP3BQAoeX58NoHyCU8P8zGkNXStjTSi6fzO6F0pBdcYbEg==} + engines: {node: '>= 0.8'} + cac@6.7.14: resolution: {integrity: sha512-b6Ilus+c3RrdDk+JhLKUAQfzzgLEPy6wcXqS7f/xe1EETvsDP6GORG7SFuOs6cID5YkqchW/LXZbX5bc8j7ZcQ==} engines: {node: '>=8'} + call-bind-apply-helpers@1.0.2: + resolution: {integrity: sha512-Sp1ablJ0ivDkSzjcaJdxEunN5/XvksFJ2sMBFfq6x0ryhQV/2b/KwFe21cMpmHtPOSij8K99/wSfoEuTObmuMQ==} + engines: {node: '>= 0.4'} + + call-bound@1.0.4: + resolution: {integrity: sha512-+ys997U96po4Kx/ABpBCqhA9EuxJaQWDQg7295H4hBphv3IZg0boBKuwYpt4YXp6MZ5AmZQnU/tyMTlRpaSejg==} + engines: {node: '>= 0.4'} + callsites@3.1.0: resolution: {integrity: sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ==} engines: {node: '>=6'} @@ -3505,6 +3556,9 @@ packages: resolution: {integrity: sha512-Qgzu8kfBvo+cA4962jnP1KkS6Dop5NS6g7R5LFYJr4b8Ub94PPQXUksCw9PvXoeXPRRddRNC5C1JQUR2SMGtnA==} engines: {node: '>= 14.16.0'} + chroma-js@2.6.0: + resolution: {integrity: sha512-BLHvCB9s8Z1EV4ethr6xnkl/P2YRFOGqfgvuMG/MyCbZPrTA+NeiByY6XvgF0zP4/2deU2CXnWyMa3zu1LqQ3A==} + ci-info@4.4.0: resolution: {integrity: sha512-77PSwercCZU2Fc4sX94eF8k8Pxte6JAwL4/ICZLFjJLqegs7kCuAsqqj/70NQF6TvDpgFjkubQB2FW2ZZddvQg==} engines: {node: '>=8'} @@ -3558,6 +3612,10 @@ packages: comma-separated-tokens@2.0.3: resolution: {integrity: sha512-Fu4hJdvzeylCfQPp9SGWidpzrMs7tTrlu6Vb8XGaRGck8QSNZJJp538Wrb60Lax4fPwR64ViY468OIUTbRlGZg==} + commander@11.1.0: + resolution: {integrity: sha512-yPVavfyCcRhmorC7rWlkHn15b4wDVgVmBA7kV4QVBsF7kv/9TKJAbAXVTxvTnwP8HHKjRCJDClKbciiYS7p0DQ==} + engines: {node: '>=16'} + commander@2.20.3: resolution: {integrity: sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ==} @@ -3592,6 +3650,18 @@ packages: console-table-printer@2.12.1: resolution: {integrity: sha512-wKGOQRRvdnd89pCeH96e2Fn4wkbenSP6LMHfjfyNLMbGuHEFbMqQNuxXqd0oXG9caIOQ1FTvc5Uijp9/4jujnQ==} + content-disposition@2.0.1: + resolution: {integrity: sha512-e+H0ZXHSWYrENhQzw1LPuP4oF5MzVKmDU6d3hxlvaPEYLLg62MxtQNPRx4SYSuYJSBUgnQIG4HIN2tEtNv7Dog==} + engines: {node: '>=18'} + + content-type@1.0.5: + resolution: {integrity: sha512-nTjqfcBFEipKdXCv4YDQWCfmcLZKm81ldF0pAopTvyrFGVbcR6P/VAAd5G7N+0tTr8QqiU0tFadD6FK4NtJwOA==} + engines: {node: '>= 0.6'} + + content-type@2.1.0: + resolution: {integrity: sha512-mj7UPXE0jaqaOsukNZRUEfEi2AcL7C/vwmwcHV0O97eO1E1pxBZuyjlZrx5seTaNBg1U6+o35wpa35Qfcc+7ag==} + engines: {node: '>=18'} + conventional-changelog-angular@9.3.0: resolution: {integrity: sha512-0MWQLVUT1oVCsUGs9aAWteBVxPlLwJTn5VbQH7B0B3fDizZgrJ9QGnKl/2mp1+5P7153GCBCjO/v1aKJ6eysCg==} engines: {node: '>=22'} @@ -3611,10 +3681,22 @@ packages: convert-source-map@2.0.0: resolution: {integrity: sha512-Kvp459HrV2FEJ1CAsi1Ku+MY3kasH19TFykTz2xWmMeq6bk2NU3XXvfJ+Q61m0xktWwt+1HSYf3JZsTms3aRJg==} + cookie-signature@1.2.2: + resolution: {integrity: sha512-D76uU73ulSXrD1UXF4KE2TMxVVwhsnCgfAyTg9k8P6KGZjlXKrOLe4dJQKI3Bxi5wjesZoFXJWElNWBjPZMbhg==} + engines: {node: '>=6.6.0'} + + cookie@0.7.2: + resolution: {integrity: sha512-yki5XnKuf750l50uGTllt6kKILY4nQ1eNIQatoXEByZ5dWgnKqbnqmTrBE5B4N7lrMJKQ2ytWMiTO2o0v6Ew/w==} + engines: {node: '>= 0.6'} + cookie@1.1.1: resolution: {integrity: sha512-ei8Aos7ja0weRpFzJnEA9UHJ/7XQmqglbRwnf2ATjcB9Wq874VKH9kfjjirM6UhU2/E5fFYadylyhFldcqSidQ==} engines: {node: '>=18'} + cors@2.8.6: + resolution: {integrity: sha512-tJtZBBHA6vjIAaF6EnIaq6laBBP9aq/Y3ouVJjEfoHbRBcHBAHYcMh/w8LDrk2PvIMMq8gmopa5D4V8RmbrxGw==} + engines: {node: '>= 0.10'} + cose-base@1.0.3: resolution: {integrity: sha512-s9whTXInMSgAp/NVXVNuVxVKzGH2qck3aQlVHxDCdAEPgtMKwc4Wq6/QKhgdEdgbLSi9rBTAcPoRa6JpiG4ksg==} @@ -3671,6 +3753,9 @@ packages: resolution: {integrity: sha512-1+BhOB8ahCn4O0cep0Sh2l9KCOfOdY+BXJnKMHFFzDEouSr/el18QwXEMRlOj9UY5nCeA8UN3a/82rUWRBeyBw==} engines: {node: ^12.20.0 || ^14.13.1 || >=16.0.0} + cwise-compiler@1.1.3: + resolution: {integrity: sha512-WXlK/m+Di8DMMcCjcWr4i+XzcQra9eCdXIJrgh4TUgh0pIS/yJduLxS9JgefsHJ/YVLdgPtXm9r62W92MvanEQ==} + cytoscape-cose-bilkent@4.1.0: resolution: {integrity: sha512-wgQlVIUJF13Quxiv5e1gstZ08rnZj2XaLHGoFMYXz7SkNfCDOOteKBE6SYRfA9WxxI/iBc3ajfDoc6hb/MRAHQ==} peerDependencies: @@ -3864,6 +3949,10 @@ packages: delaunator@5.1.0: resolution: {integrity: sha512-AGrQ4QSgssa1NGmWmLPqN5NY2KajF5MqxetNEO+o0n3ZwZZeTmt7bBnvzHWrmkZFxGgr4HdyFgelzgi06otLuQ==} + depd@2.0.0: + resolution: {integrity: sha512-g7nH6P6dyDioJogAAGprGpCtVImJhpPk/roCzdb3fIh61/s/nPsfR6onyMwkCAR/OlC3yBC0lESvUoQEAssIrw==} + engines: {node: '>= 0.8'} + dequal@2.0.3: resolution: {integrity: sha512-0je+qPKHEMohvfRTCEo3CrPG6cAzAYgmzKyxRiYSSDkS6eGJdyVJm7WaYA5ECaAD9wLB2T4EEeymA5aFVcYXCA==} engines: {node: '>=6'} @@ -3998,12 +4087,23 @@ packages: sqlite3: optional: true + dunder-proto@1.0.1: + resolution: {integrity: sha512-KIN/nDJBQRcXw0MLVhZE9iQHmG68qAVIBg9CqmUYjmQIhgij9U5MFvrqkUL5FbtyyzZuOeOt0zdeRe4UY7ct+A==} + engines: {node: '>= 0.4'} + + ee-first@1.1.1: + resolution: {integrity: sha512-WMwm9LhRUo+WUaRN+vRuETqG89IgZphVSNkdFgeb6sS/E4OrDIN7t48CAewSHXc6C8lefD8KKfr5vY61brQlow==} + emoji-regex@10.6.0: resolution: {integrity: sha512-toUI84YS5YmxW219erniWD0CIVOo46xGKColeNQRgOzDorgBi1v4D71/OFzgD9GO2UGKIv1C3Sp8DAn0+j5w7A==} emoji-regex@8.0.0: resolution: {integrity: sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==} + encodeurl@2.0.3: + resolution: {integrity: sha512-mIteYONiEfc4xWf2F1WXovh1c8npzS00vNeiUPdwFF+QlVJni+gNvpQltLMQhob8rew/bWWc/bGTuUr0EUGt0w==} + engines: {node: '>= 0.8'} + end-of-stream@1.4.5: resolution: {integrity: sha512-ooEGc6HP26xXq/N+GCGOT0JKCLDGrq2bQUZrQ7gyrJiZANJ/8YDTxTpQBXGMn+WbIQXNVpyWymm7KYVICQnyOg==} @@ -4030,6 +4130,10 @@ packages: error-ex@1.3.4: resolution: {integrity: sha512-sqQamAnR14VgCr1A618A3sGrygcpK+HEbenA/HiEAkkUwcZIIB/tgWqHFxWgOyDh4nB4JCRimh79dR5Ywc9MDQ==} + es-define-property@1.0.1: + resolution: {integrity: sha512-e3nRfgfUZ4rNGL232gUgX06QNyyez04KdjFrF+LTRoOXmrOgFKDg4BCdsjW8EnT69eqdYGmRpJwiPVYNrCaW3g==} + engines: {node: '>= 0.4'} + es-errors@1.3.0: resolution: {integrity: sha512-Zf5H2Kxt2xjTvbJvP2ZWLEICxA6j+hAmMzIlypy4xcBg1vKVnx89Wy0GbS+kf5cwCVFFzdCFh2XSCFNULS6csw==} engines: {node: '>= 0.4'} @@ -4037,6 +4141,10 @@ packages: es-module-lexer@2.3.2: resolution: {integrity: sha512-poHGpORABojJJucnV9KbOavETW8lBVnphkW77ER5/BQ5Fz7oXSoCNek7IH3vR5nRjdsEz926ibFYX8KtLQmdyw==} + es-object-atoms@1.1.2: + resolution: {integrity: sha512-HWcBoN6NileqtSydK2FqHbS/LoDd2pqrnQHLyJzBj4kOp/ky2MWMN694xOfkK8/SnUsW2DH7EfyVlydKCsm1Zw==} + engines: {node: '>= 0.4'} + es-toolkit@1.46.1: resolution: {integrity: sha512-5eNtXOs3tbfxXOj04tjjseeWkRWaoCjdEI+96DgwzZoe6c9juL49pXlzAFTI72aWC9Y8p7168g6XIKjh7k6pyQ==} @@ -4067,6 +4175,9 @@ packages: resolution: {integrity: sha512-WUj2qlxaQtO4g6Pq5c29GTcWGDyd8itL8zTlipgECz3JesAiiOKotd8JU6otB3PACgG6xkJUyVhboMS+bje/jA==} engines: {node: '>=6'} + escape-html@1.0.3: + resolution: {integrity: sha512-NiSupZ4OeuGwr68lGIeym/ksIZMJodUGOSCZ/FSnTxcrekbvqrgdUxlJOMpijaKZVjAJrWrGs/6Jy8OMuyj9ow==} + escape-string-regexp@4.0.0: resolution: {integrity: sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA==} engines: {node: '>=10'} @@ -4123,6 +4234,10 @@ packages: resolution: {integrity: sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==} engines: {node: '>=0.10.0'} + etag@1.8.1: + resolution: {integrity: sha512-aIL5Fx7mawVa300al2BnEE4iNvo1qETxLrPI/o05L7z6go7fCw1J6EQmbK4FmJ2AS7kgVF/KEZWufBfdClMcPg==} + engines: {node: '>= 0.6'} + eventsource-parser@3.0.8: resolution: {integrity: sha512-70QWGkr4snxr0OXLRWsFLeRBIRPuQOvt4s8QYjmUlmlkyTZkRqS7EDVRZtzU3TiyDbXSzaOeF0XUKy8PchzukQ==} engines: {node: '>=18.0.0'} @@ -4131,10 +4246,24 @@ packages: resolution: {integrity: sha512-EKN1vKAMcZ8MlYMpaNuxN6R9yakzH6uajHcHVTqWJzvu5pWw9DyhbP35HH8MVBQ+dZjAfDxk+A8NiR9KWaXiyQ==} engines: {node: '>=18.0.0'} + eventsource@3.0.7: + resolution: {integrity: sha512-CRT1WTyuQoD771GW56XEZFQ/ZoSfWid1alKGDYMmkt2yl8UXrVR4pspqWNEcqKvVIzg6PAltWjxcSSPrboA4iA==} + engines: {node: '>=18.0.0'} + expect-type@1.4.0: resolution: {integrity: sha512-KfYbmpRm0VbLjEvVa9yGwCi9GI34xvi7A/HXYWQO65CSD2u3MczUJSuwXKFIxlGsgBQizV9q5J9NHj4VG0n+pA==} engines: {node: '>=12.0.0'} + express-rate-limit@8.7.4: + resolution: {integrity: sha512-LKBXzX700wz3zAGNNmVnjRI5mEbYkLv7UbMI4+9Xa+JPcg2UZh6AgY/2CZh9RrJjFM5ttC/N1lD+KzyFoZITCw==} + engines: {node: '>= 16'} + peerDependencies: + express: '>= 4.11' + + express@5.3.0: + resolution: {integrity: sha512-qCqy1xSoaugxOD4IVHb1ZWdkvCF2W3aE2okKouWj8VwJ+ztskSiXoBnCSJqfKT+cVPJhuJqe9YLbY425+Zh00g==} + engines: {node: '>= 18'} + extend@3.0.2: resolution: {integrity: sha512-fjquC59cD7CyW6urNXK0FBufkZcoiGG80wTuPujX590cB5Ttln20E2UB4S/WARVqhXffZl2LNgS+gQdPIIim/g==} @@ -4150,6 +4279,9 @@ packages: fast-levenshtein@2.0.6: resolution: {integrity: sha512-DCXu6Ifhqcks7TZKY3Hxp3y6qphY5SJZmrWMDrKcERSOXWQdMhU9Ig/PYrzyw/ul9jOIyh0N4M0tbC5hodg8dw==} + fast-myers-diff@3.2.0: + resolution: {integrity: sha512-DxNm4a3gnV35AluvqjeAV3Zx3CAySs0tsaDjnex5JhnJAa2rxEUVCwmaL2gpz42ea1B+IJorlo7XLThXUaTQog==} + fast-safe-stringify@2.1.1: resolution: {integrity: sha512-W+KJc2dmILlPplD/H4K9l9LcAHAfPtP6BY84uVLXQ6Evcz9Lcg33Y2z1IVblT6xdY54PXYVHEv+0Wpq8Io6zkA==} @@ -4159,9 +4291,6 @@ packages: fast-string-width@3.0.2: resolution: {integrity: sha512-gX8LrtNEI5hq8DVUfRQMbr5lpaS4nMIWV+7XEbXk2b8kiQIizgnlr12B4dA3ZEx3308ze0O4Q1R+cHts8kyUJg==} - fast-uri@3.1.2: - resolution: {integrity: sha512-rVjf7ArG3LTk+FS6Yw81V1DLuZl1bRbNrev6Tmd/9RaroeeRRJhAt7jg/6YFxbvAQXUCavSoZhPPj6oOx+5KjQ==} - fast-uri@3.1.7: resolution: {integrity: sha512-dOvZVzjdZdz7phd9v6jCbwxrBW3fK6n8Rc0CtdmM4bumzMnxywBYhuph6J819RRw/ku+rLbelwfMunktuzVVHg==} @@ -4189,6 +4318,10 @@ packages: resolution: {integrity: sha512-Ievi/yy8DS3ygGvT47PjSfdFoX+2isQueoYP1cntFW1JLYAuS4GD7NUPGg4zv2iZfV52uDyk5w5Z0TdpRS6Q1g==} engines: {node: '>=20'} + finalhandler@2.1.1: + resolution: {integrity: sha512-S8KoZgRZN+a5rNwqTxlZZePjT/4cnm0ROV70LedRHZ0p8u9fRID0hJUZQpkKLzro8LfmC8sx23bY6tVNxv8pQA==} + engines: {node: '>= 18.0.0'} + find-root@1.1.0: resolution: {integrity: sha512-NKfW6bec6GfKc0SGx1e07QZY9PE99u0Bft/0rzSD5k3sO/vwkVUpDUKVm5Gpp5Ue3YfShPFTX2070tDs5kB9Ng==} @@ -4209,6 +4342,10 @@ packages: focus-trap@7.5.4: resolution: {integrity: sha512-N7kHdlgsO/v+iD/dMoJKtsSqs5Dz/dXZVebRgJw23LDk+jMi/974zyiOYDziY2JPp8xivq9BmUGwIJMiuSBi7w==} + forwarded@0.2.0: + resolution: {integrity: sha512-buRG0fpBtRHSTCOASe6hD258tEubFoRLb4ZNA6NxMVHNw2gOcwHo9wyablzMzOA5z9xA9L1KNjk/Nt6MT9aYow==} + engines: {node: '>= 0.6'} + framer-motion@13.2.0: resolution: {integrity: sha512-9E33ebgMaO33w1nN/jEdW8z3/GO483fMi4rqbMG9rt83XgW9QLKRe4NcmJ8s+fQ3O34++UHrIQwlIWGIWTITjA==} peerDependencies: @@ -4220,6 +4357,10 @@ packages: react-dom: optional: true + fresh@2.0.0: + resolution: {integrity: sha512-Rx/WycZ60HOaqLKAi6cHRKKI7zxWbJ31MhntmtwMoaTeF7XFH9hhBp8vITaMidfljRQ6eYWCKkaTK+ykVJHP2A==} + engines: {node: '>= 0.8'} + fsevents@2.3.3: resolution: {integrity: sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==} engines: {node: ^8.16.0 || ^10.6.0 || >=11.0.0} @@ -4240,10 +4381,18 @@ packages: resolution: {integrity: sha512-QRbvDIbx6YklUe6RxeTeleMR0yv3cYH6PsPZHcnVn7xv7zO1BHN8r0XETu8n6Ye3Q+ahtSarc3WgtNWmehIBfA==} engines: {node: '>=18'} + get-intrinsic@1.3.0: + resolution: {integrity: sha512-9fSjSaos/fRIVIp+xSJlE6lfwhES7LNtKaCBIamHsjr2na1BiABJPo0mOjjz8GJDURarmCPGqaiVg5mfjb98CQ==} + engines: {node: '>= 0.4'} + get-nonce@1.0.1: resolution: {integrity: sha512-FJhYRoDaiatfEkUK8HKlicmu/3SGFD51q3itKDGoSTysQJBnfOcxU5GxnhE1E6soB76MbT0MBtnKJuXyAx+96Q==} engines: {node: '>=6'} + get-proto@1.0.1: + resolution: {integrity: sha512-sTSfBjoXBp89JvIKIefqw7U2CCebsc74kiY6awiGogKtoSGbgjYE/G/+l9sF3MWFPNc9IcoOC4ODfKHfxFmp0g==} + engines: {node: '>= 0.4'} + get-tsconfig@4.14.0: resolution: {integrity: sha512-yTb+8DXzDREzgvYmh6s9vHsSVCHeC0G3PI5bEXNBHtmshPnO+S5O7qgLEOn0I5QvMy6kpZN8K1NKGyilLb93wA==} @@ -4261,6 +4410,10 @@ packages: resolution: {integrity: sha512-1pgFdhK3J2LeM+dVf2Pd424yHx2ou338lC0ErNP2hPx4j8eW1Sp0XqSjNxtk6Tc4Kr5wlWtSvz8cn2yb7/SG/w==} engines: {node: '>=20'} + gopd@1.2.0: + resolution: {integrity: sha512-ZUKRh6/kUFoAiTAtTYPZJ3hw9wNxx+BIBOijnlG9PnrJsCcSjs1wyyD6vJpaYtgnzDrKYRSqf3OO6Rfa93xsRg==} + engines: {node: '>= 0.4'} + graceful-fs@4.2.11: resolution: {integrity: sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ==} @@ -4275,6 +4428,10 @@ packages: resolution: {integrity: sha512-GZZ9mKe8r646NUAf/zemnGbjYh4Bt8/MqASJY+pSm5ZDtc3YQox+4gsLI7yi1hba6o+eCsGxpHn5+iEVn31/FQ==} engines: {node: '>=20.0.0'} + has-symbols@1.1.0: + resolution: {integrity: sha512-1cDNdwJ2Jaohmb3sg4OmKaMBwuC48sYni5HUw2DvsC8LjGTLK9h+eb1X6RyuOHe4hT0ULCW68iomhjUoKUqlPQ==} + engines: {node: '>= 0.4'} + hasown@2.0.4: resolution: {integrity: sha512-T2UbfbBEF32wiepXIsMlTW9+dDYC6wMh/t/vYA4tuOMKqWz/n3vr1NFSxQiyP+zk2mXsoMA/i/7qV6LKut1t1A==} engines: {node: '>= 0.4'} @@ -4315,6 +4472,10 @@ packages: hoist-non-react-statics@3.3.2: resolution: {integrity: sha512-/gGivxi8JPKWNm/W0jSmzcMPpfpPLc3dY/6GxhX2hQ9iGj3aDfklV4ET7NjKpSinLpJ5vafa9iiGIEZg10SfBw==} + hono@4.13.18: + resolution: {integrity: sha512-H9q/E1XizaWstJxUW881dmLxEj+t/TrGGnyxINkm4+sK0qUwsMtFdo2BWI9Vs3cIS19MU6b6iCijoUoEf4f3DA==} + engines: {node: '>=16.9.0'} + html-parse-stringify@3.1.0: resolution: {integrity: sha512-E0oAXcELOtsXe+BmpJ2EZyedbldPpriV5vICzEuo6xjC/D1lDukOI7KrpfQGF2Qc4wWEy0nk3bFORS2K5ZAhFQ==} @@ -4324,6 +4485,10 @@ packages: html-void-elements@3.0.0: resolution: {integrity: sha512-bEqo66MRXsUGxWHV5IP0PUiAWwoEjba4VCzg0LjFJBpchPaTfyfCKTG6bc5F8ucKec3q5y6qOdGyYTSBEvhCrg==} + http-errors@2.0.1: + resolution: {integrity: sha512-4FbRdAX+bSdmo4AUFuS0WNiPz8NgFt+r8ThgNWmlrjQjt1Q7ZR9+zTlce2859x4KSXrwIsaeTqDoKQmtP8pLmQ==} + engines: {node: '>= 0.8'} + http-status@2.1.0: resolution: {integrity: sha512-O5kPr7AW7wYd/BBiOezTwnVAnmSNFY+J7hlZD2X5IOxVBetjcHAiTXhzj0gMrnojQlwy+UT1/Y3H3vJ3UlmvLA==} engines: {node: '>= 0.4.0'} @@ -4349,6 +4514,10 @@ packages: resolution: {integrity: sha512-4fCk79wshMdzMp2rH06qWrJE4iolqLhCUH+OiuIgU++RB0+94NlDL81atO7GX55uUKueo0txHNtvEyI6D7WdMw==} engines: {node: '>=0.10.0'} + iconv-lite@0.7.3: + resolution: {integrity: sha512-IKXpvIzjnC9XTAUbVBcMfGS0EPaIXtW6v+zr+RRp+hqULEpo0owZax6wyRwPOJbWbzjYspQwusTsfVr0ifh4uQ==} + engines: {node: '>=0.10.0'} + ieee754@1.2.1: resolution: {integrity: sha512-dcyqhDvX1C46lXZcVqCpK+FtMRQVdIMN6/Df5js2zouUsqG7I6sFxitIC+7KYK29KdXOLHdu9zL4sFnoVQnqaA==} @@ -4376,6 +4545,9 @@ packages: resolution: {integrity: sha512-JmXMZ6wuvDmLiHEml9ykzqO6lwFbof0GG4IkcGaENdCRDDmMVnny7s5HsIgHCbaq0w2MyPhDqkhTUgS2LU2PHA==} engines: {node: '>=0.8.19'} + inherits@2.0.4: + resolution: {integrity: sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==} + ini@6.0.0: resolution: {integrity: sha512-IBTdIkzZNOpqm7q3dRqJvMaldXjDHWkEDfrwGEQTs5eaQMWV+djAhR+wahyNNMAa+qpbDUhBMVt4ZKNwpPm7xQ==} engines: {node: ^20.17.0 || >=22.9.0} @@ -4390,6 +4562,17 @@ packages: resolution: {integrity: sha512-5Hh7Y1wQbvY5ooGgPbDaL5iYLAPzMTUrjMulskHLH6wnv/A+1q5rgEaiuqEjB+oxGXIVZs1FF+R/KPN3ZSQYYg==} engines: {node: '>=12'} + iota-array@1.0.0: + resolution: {integrity: sha512-pZ2xT+LOHckCatGQ3DcG/a+QuEqvoxqkiL7tvE8nn3uuu+f6i1TtpB5/FtWFbxUuVr5PZCx8KskuGatbJDXOWA==} + + ip-address@10.7.6: + resolution: {integrity: sha512-00LYkM6byILa9eQIx6qoaXCM40xTLd56AZ4vyaPW3YTyb49VZYPo5xsiAq4tuQ54GH4R7gVdYScJ1B7B77PuTg==} + engines: {node: '>= 12'} + + ipaddr.js@1.9.1: + resolution: {integrity: sha512-0KI/607xoxSToH7GjN1FfSbLoU0+btTicjsQSWQlh/hZykN8KpmMf7uYwPW3R+akZ6R/w18ZlXSHBYXiYUPO3g==} + engines: {node: '>= 0.10'} + ipaddr.js@2.2.0: resolution: {integrity: sha512-Ag3wB2o37wslZS19hZqorUnrnzSkpOVy+IiiDEiTqNubEYpYuHWIf6K4psgN2ZWKExS4xhVCrRVfb/wfW8fWJA==} engines: {node: '>= 10'} @@ -4439,6 +4622,9 @@ packages: resolution: {integrity: sha512-+Pgi+vMuUNkJyExiMBt5IlFoMyKnr5zhJ4Uspz58WOhBF5QoIZkFyNHIbBAtHwzVAgk5RtndVNsDRN61/mmDqg==} engines: {node: '>=12'} + is-promise@4.0.0: + resolution: {integrity: sha512-hvpoI6korhJMnej285dSg6nu1+e6uxs7zG3BYAm5byqDsgJNWwxzM6z6iZiAgQR4TJ30JmBTOwqZUw3WlyH3AQ==} + isexe@2.0.0: resolution: {integrity: sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==} @@ -4453,6 +4639,9 @@ packages: jose@5.10.0: resolution: {integrity: sha512-s+3Al/p9g32Iq+oqXxkW//7jk2Vig6FF1CFqzVXoTUXt2qz89YWbL+OwS17NFYEvxC35n0FKeGO2LGYSxeM2Gg==} + jose@6.2.17: + resolution: {integrity: sha512-wOuK9V1yujQFH5S0ZWmLcDZN7+IKh9bUCC2ZPCf2HDlol3WWHy+PPyNjEI75FXRLMp3vDKQcupP59xhVU95hcg==} + jotai@2.14.0: resolution: {integrity: sha512-JQkNkTnqjk1BlSUjHfXi+pGG/573bVN104gp6CymhrWDseZGDReTNniWrLhJ+zXbM6pH+82+UNJ2vwYQUkQMWQ==} engines: {node: '>=12.20.0'} @@ -4475,6 +4664,9 @@ packages: resolution: {integrity: sha512-34wB/Y7MW7bzjKRjUKTa46I2Z7eV62Rkhva+KkopW7Qvv/OSWBqvkSY7vusOPrNuZcUG3tApvdVgNB8POj3SPw==} engines: {node: '>=10'} + jpeg-js@0.4.4: + resolution: {integrity: sha512-WZzeDOEtTOBK4Mdsar0IqEU5sMr3vSV2RqkAIzUEV2BHnUfKGyswWFPFwK5EeDo93K3FohSHbLAjj0s1Wzd+dg==} + js-base64@3.7.8: resolution: {integrity: sha512-hNngCeKxIUQiEUN3GPJOkz4wF/YvdUdbNL9hsBcMQTkKzboD7T/q3OYOuuPZLUE6dBxSGpwhk5mwuDud7JVAow==} @@ -4497,6 +4689,10 @@ packages: json-buffer@3.0.1: resolution: {integrity: sha512-4bV5BfR2mqfQTJm+V5tPPdf+ZpuhiIvTuAB5g8kcrXOZpTT/QwwVRWBywX1ozr6lEuPdbHxwaJlm9G6mI2sfSQ==} + json-diff-kit@1.0.35: + resolution: {integrity: sha512-eq9CbkkH1eB8q/kUfzRE8IQjz7TUX1ERhodx3A5QEwpBumHr3/SFZ4lQqyfLxnjMlyuDqMjnaO2ESa4z+i72qw==} + hasBin: true + json-parse-even-better-errors@2.3.1: resolution: {integrity: sha512-xyFwyhro/JEof6Ghe2iz2NcXoj2sloNsWr/XsERDK/oiPCfaNhl5ONfp+jQdAZRQQ0IJWNzH9zIZF7li91kh2w==} @@ -4518,6 +4714,9 @@ packages: json-schema-traverse@1.0.0: resolution: {integrity: sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug==} + json-schema-typed@8.0.2: + resolution: {integrity: sha512-fQhoXdcvc3V28x7C7BMs4P5+kNlgUURe2jmUT1T//oBRMDrqy1QPelJimwZGo7Hg9VPV3EQV5Bnq4hbFy2vetA==} + json-schema@0.4.0: resolution: {integrity: sha512-es94M3nTIfsEPisRafak+HDLfHXnKBhV3vU5eqPcS3flIWqcxJWgXHXiey3YrpaNsanY5ei1VoYEbOzijuq9BA==} @@ -4538,6 +4737,10 @@ packages: khroma@2.1.0: resolution: {integrity: sha512-Ls993zuzfayK269Svk9hzpeGUKob/sIgZzyHYdjQoAdQetRKpOLj+k/QQQ/6Qi0Yz65mlROrfd+Ev+1+7dz9Kw==} + kleur@3.0.3: + resolution: {integrity: sha512-eTIzlVOSUR+JxdDFepEYcBMtZ9Qqdef+rnzWdRZuMbOywu5tO2w2N7rqjoANZ5k9vywhL6Br1VRjUIgTQx4E8w==} + engines: {node: '>=6'} + konva@9.3.6: resolution: {integrity: sha512-dqR8EbcM0hjuilZCBP6xauQ5V3kH3m9kBcsDkqPypQuRgsXbcXUrxqYxhNbdvKZpYNW8Amq94jAD/C0NY3qfBQ==} @@ -4547,6 +4750,10 @@ packages: layout-base@2.0.1: resolution: {integrity: sha512-dp3s92+uNI1hWIpPGH3jK2kxE2lMjdXdr+DH8ynZHpd6PUlH6x6cbuXnoMmiNumznqaNO31xu9e79F0uuZ0JFg==} + lazyness@1.2.0: + resolution: {integrity: sha512-KenL6EFbwxBwRxG93t0gcUyi0Nw0Ub31FJKN1laA4UscdkL1K1AxUd0gYZdcLU3v+x+wcFi4uQKS5hL+fk500g==} + engines: {node: '>=6.0.0'} + levn@0.4.1: resolution: {integrity: sha512-+bT2uH4E5LGE7h/n3evcS/sQlJXCpIp6ym8OWJ5eV6+67Dsql/LaaT7qJBAt2rzfoa/5QBGBhxDix1dMt2kQKQ==} engines: {node: '>= 0.8.0'} @@ -4782,6 +4989,10 @@ packages: engines: {node: '>= 20'} hasBin: true + math-intrinsics@1.1.0: + resolution: {integrity: sha512-/IXtbwEk5HTPyEwyKX6hGkYXxM9nbj64B+ilVJnC/R6B0pH5G4V3b0pVbL7DBj4tkhBAppbQUlf6F6Xl9LHu1g==} + engines: {node: '>= 0.4'} + md5@2.3.0: resolution: {integrity: sha512-T1GITYmFaKuO91vxyoQMFETst+O71VUPEU3ze5GNzDm0OWdP8v1ziTaAEPUr/3kLsY3Sftgz242A1SetQiDL7g==} @@ -4833,12 +5044,20 @@ packages: mdurl@2.0.0: resolution: {integrity: sha512-Lf+9+2r+Tdp5wXDXC4PcIBjTDtq4UKjCPMQhKIuzpJNW0b96kVqSwW0bT7FhRSfmAiFYgP+SCRvdrDozfh0U5w==} + media-typer@1.1.1: + resolution: {integrity: sha512-yz3xRaG20c6/BOzvYoDaGtPmGscs7YivItZEEqe6GbwNfHuxu9YNmvnEkMzKldAGY4/80pRcQRZSEnhquk9XuQ==} + engines: {node: '>= 0.8'} + memoize-one@5.2.1: resolution: {integrity: sha512-zYiwtZUcYyXKo/np96AGZAckk+FWWsUdJ3cHGGmld7+AhvcWmQyGCYUh1hc4Q/pkOhb65dQR/pqCyK0cOaHz4Q==} memoize-one@6.0.0: resolution: {integrity: sha512-rkpe71W0N0c0Xz6QD0eJETuWAJGnJ9afsl1srmwPrI+yBCkge5EycXXbYRyvL29zZVUWQCY7InPRCv3GDXuZNw==} + merge-descriptors@2.0.0: + resolution: {integrity: sha512-Snk314V5ayFLhp3fkUREub6WtjBfPdCPY1Ln8/8munuLuiYhsABgBVWsozAG+MWMbVEvcdcpbi9R7ww22l9Q3g==} + engines: {node: '>=18'} + mermaid@11.15.0: resolution: {integrity: sha512-pTMbcf3rWdtLiYGpmoTjHEpeY8seiy6sR+9nD7LOs8KfUbHE4lOUAprTRqRAcWSQ6MQpdX+YEsxShtGsINtPtw==} @@ -4926,6 +5145,14 @@ packages: micromark@4.0.2: resolution: {integrity: sha512-zpe98Q6kvavpCr1NPVSCMebCKfD7CA2NqZ+rykeNhONIJBpc1tFKt9hucLGwha3jNTNI8lHpctWJWoimVF4PfA==} + mime-db@1.54.0: + resolution: {integrity: sha512-aU5EJuIN2WDemCcAp2vFBfp/m4EAhWJnUNSSw0ixs7/kXbd6Pg64EmwJkNdFhB8aWt1sH2CTXrLxo/iAGV3oPQ==} + engines: {node: '>= 0.6'} + + mime-types@3.0.2: + resolution: {integrity: sha512-Lbgzdk0h4juoQ9fCKXW4by0UJqj+nOOrI9MJ1sSj4nI8aI2eo1qmvQEie4VD1glsS250n15LsWsYtCugiStS5A==} + engines: {node: '>=18'} + mini-svg-data-uri@1.4.4: resolution: {integrity: sha512-r9deDe9p5FJUPZAk3A59wGH7Ii9YrjjWw0jmw/liSbHl2CHiyXj6FcDXDu2K3TjVAXqiJdaw3xxwlZZr9E6nHg==} hasBin: true @@ -4990,6 +5217,16 @@ packages: natural-compare@1.4.0: resolution: {integrity: sha512-OWND8ei3VtNC9h7V60qff3SVobHr996CTwgxubgyQYEpg290h9J0buyECNNJexkFm5sOajh5G116RYA1c8ZMSw==} + ndarray-pack@1.2.1: + resolution: {integrity: sha512-51cECUJMT0rUZNQa09EoKsnFeDL4x2dHRT0VR5U2H5ZgEcm95ZDWcMA5JShroXjHOejmAD/fg8+H+OvUnVXz2g==} + + ndarray@1.1.1: + resolution: {integrity: sha512-AsE8w/M2MS+0pD3nP5qbRRtJFeJJJaJ+qXZaZr0XjVGXhy6LIj2TERTlkpdK2AI3WufoOP+pwPk3q2ilAJcZ9g==} + + negotiator@1.1.0: + resolution: {integrity: sha512-NMPBRMJgiQHjbd8phG3Vebdx4kZ1H121rbl5IkMqeOsahptB9BKo/d7oJ3zTXqTgagn2bWlNSXkh0QUGM31RYg==} + engines: {node: '>=18'} + next@16.3.3: resolution: {integrity: sha512-tuRTx1nQ/yVw83cwJBo9F+njGUgMn3UHQycreWHB8XsStvvAh1AthbI8/4IpKnFaF58F+iSiHejYOlMQ/eq83g==} engines: {node: '>=20.9.0'} @@ -5011,10 +5248,18 @@ packages: sass: optional: true + nextgen-events@1.5.3: + resolution: {integrity: sha512-P6qw6kenNXP+J9XlKJNi/MNHUQ+Lx5K8FEcSfX7/w8KJdZan5+BB5MKzuNgL2RTjHG1Svg8SehfseVEp8zAqwA==} + engines: {node: '>=6.0.0'} + node-addon-api@8.9.2: resolution: {integrity: sha512-VijLXbi3UACN69I0JVXJsX4tjACjNoQDgv2gTF6sx2wWEi8tkSg2eX8p5gSIFi8z2+DL3oHmY6OyKce38SDolg==} engines: {node: ^18 || ^20 || >= 21} + node-bitmap@0.0.1: + resolution: {integrity: sha512-Jx5lPaaLdIaOsj2mVLWMWulXF6GQVdyLvNSxmiYCvZ8Ma2hfKX0POoR2kgKOqz+oFsRreq0yYZjQ2wjE9VNzCA==} + engines: {node: '>=v0.6.5'} + object-assign@3.0.0: resolution: {integrity: sha512-jHP15vXVGeVh1HuaA2wY6lxk+whK/x4KBG88VXeRma7CCun7iGD5qPc4eYykQ9sdQvg8jkwFKsSxHln2ybW3xQ==} engines: {node: '>=0.10.0'} @@ -5023,6 +5268,10 @@ packages: resolution: {integrity: sha512-rJgTQnkUnH1sFw8yT6VSU3zD3sWmu6sZhIseY8VX+GRu3P6F7Fu+JNDoXfklElbLJSnc3FUQHVe4cU5hj+BcUg==} engines: {node: '>=0.10.0'} + object-inspect@1.13.4: + resolution: {integrity: sha512-W67iLl4J2EXEGTbfeHCffrjDfitvLANg0UlX3wFUUSTx92KXRFegMHUVgSqE+wvhAbi4WqjGg9czysTV2Epbew==} + engines: {node: '>= 0.4'} + object-to-formdata@4.5.1: resolution: {integrity: sha512-QiM9D0NiU5jV6J6tjE1g7b4Z2tcUnKs1OPUi4iMb2zH+7jwlcUrASghgkFk9GtzqNNq8rTQJtT8AzjBAvLoNMw==} @@ -5030,10 +5279,17 @@ packages: resolution: {integrity: sha512-XrsrhT5sybtKI6wakr2SPOlGZWWYbUXZ7a0jT8/QOeAPau+1X/bSegNe5YR75oJmEZQbKningirmGOEJCIk61Q==} engines: {node: '>=12.20.0'} + omggif@1.0.10: + resolution: {integrity: sha512-LMJTtvgc/nugXj0Vcrrs68Mn2D1r0zf630VNtqtpI1FEO7e+O9FP4gqs9AcnBaSEeoHIPm28u6qgPR0oyEpGSw==} + on-exit-leak-free@2.1.2: resolution: {integrity: sha512-0eJJY6hXLGf1udHwfNftBqH+g73EU4B504nZeKpz1sYRKafAghwxEJunB2O7rDZkL4PGfsMVnTXZ2EjibbqcsA==} engines: {node: '>=14.0.0'} + on-finished@2.4.2: + resolution: {integrity: sha512-ATWUv387i+nLD49EiDoOft5scf32Vsdz3ktrQJG9bi7jRFmaXTssvyvj1EmeKVVgvesbqUtvQQvaS2TpTukAZQ==} + engines: {node: '>= 0.8'} + once@1.4.0: resolution: {integrity: sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w==} @@ -5072,6 +5328,10 @@ packages: parse5@7.3.0: resolution: {integrity: sha512-IInvU7fabl34qmi9gY8XOVxhYyMyuH2xUNpb2q8/Y+7552KlejkRvqvD19nMoUW/uQGGbqNpA6Tufu5FL5BZgw==} + parseurl@1.3.3: + resolution: {integrity: sha512-CiyeOxFT/JZyN5m0z9PfXw4SCBJ6Sygz1Dpl0wqjlhDEGGBP1GnsUVEL0p63hoG1fcj3fHynXi9NYO4nWOL+qQ==} + engines: {node: '>= 0.8'} + path-data-parser@0.1.0: resolution: {integrity: sha512-NOnmBpt5Y2RWbuv0LMzsayp3lVylAHLPUTut412ZA3l+C4uw4ZVkQbjShYCQ8TCpUMdPapr4YjUqLYD6v68j+w==} @@ -5089,6 +5349,9 @@ packages: path-to-regexp@6.3.0: resolution: {integrity: sha512-Yhpw4T9C6hPpgPeA28us07OJeqZ5EzQTkbfwuhsUg0c237RomFoETJgmp2sa3F/41gfLE6G5cqcYwznmeEeOlQ==} + path-to-regexp@8.4.2: + resolution: {integrity: sha512-qRcuIdP69NPm4qbACK+aDogI5CBDMi1jKe0ry5rSQJz8JVLsC7jV8XpiJjGRLLol3N+R5ihGYcrPLTno6pAdBA==} + path-type@4.0.0: resolution: {integrity: sha512-gDKb8aZMDeD/tZWs9P6+q0J9Mwkdl6xMV8TjnGP3qJVJ06bdMgkbBlLU8IdfOsIsFz2BW1rNVT3XuNEl8zPAvw==} engines: {node: '>=8'} @@ -5106,6 +5369,40 @@ packages: penpal@7.0.6: resolution: {integrity: sha512-iZ70OhtiZ959V57j7vSKBuv1UEXwCEu7C+TK7YxAkrB1JahB4pElHs1S1ThzMuGYNQ+SbExOXmvqrEeGwX/A8g==} + pg-cloudflare@1.4.1: + resolution: {integrity: sha512-6PQbsFWZcp9EmJEwy5cGQ2La+AMWpP46lgbb8X+U/XsHIUweYDNCpeuKck5RxL2MdVFi7krbbEi5nX4Zh7JhrQ==} + + pg-connection-string@2.14.1: + resolution: {integrity: sha512-qR3kGNPBLpCNtz0evbKA0Y/MRFXwSSdT+pTJvYp/bXTcReZbvX1kzF0IyTc1QnxqF7AZbOeBhNL8R5mYQZV/MA==} + + pg-int8@1.0.1: + resolution: {integrity: sha512-WCtabS6t3c8SkpDBUlb1kjOs7l66xsGdKpIPZsg4wR+B3+u9UAum2odSsF9tnvxg80h4ZxLWMy4pRjOsFIqQpw==} + engines: {node: '>=4.0.0'} + + pg-pool@3.14.0: + resolution: {integrity: sha512-gKtPkFdQPU3DksooVLi9LsjZxrsBUZIpa+7aVx+LV5pNh0KzP4Zleud2po+ConrxbuXGBJ6Hfer6hdgpIBpBaw==} + peerDependencies: + pg: '>=8.0' + + pg-protocol@1.16.1: + resolution: {integrity: sha512-p9VOFMiHB/ZbJATetbg+99PxssTVSQRnyuPSQ67mN1+1KBOjZaZ83ZQzltnxPhJwSsC3nwVjJ10DVJlerbFzLg==} + + pg-types@2.2.0: + resolution: {integrity: sha512-qTAAlrEsl8s4OiEQY69wDvcMIdQN6wdz5ojQiOy6YRMuynxenON0O5oCpJI6lshc6scgAY8qvJ2On/p+CXY0GA==} + engines: {node: '>=4'} + + pg@8.16.3: + resolution: {integrity: sha512-enxc1h0jA/aq5oSDMvqyW3q89ra6XIIDZgCX9vkMrnz5DFTw/Ny3Li2lFQ+pt3L6MCgm/5o2o8HW9hiJji+xvw==} + engines: {node: '>= 16.0.0'} + peerDependencies: + pg-native: '>=3.0.1' + peerDependenciesMeta: + pg-native: + optional: true + + pgpass@1.0.5: + resolution: {integrity: sha512-FdW9r/jQZhSeohs1Z3sI1yxFQNFvMcnmfuj4WBMUTxOrAyLMaTcE1aAMBiTlbMNaXvBCQuVi0R7hd8udDSP7ug==} + picocolors@1.1.1: resolution: {integrity: sha512-xceH2snhtb5M9liqDsmEw56le376mTZkEX/jEb/RxNFyegNul7eNslCXP9FDj/Lcu0X8KEyMceP2ntpaHrDEVA==} @@ -5135,6 +5432,10 @@ packages: resolution: {integrity: sha512-TfySrs/5nm8fQJDcBDuUng3VOUKsd7S+zqvbOTiGXHfxX4wK31ard+hoNuvkicM/2YFzlpDgABOevKSsB4G/FA==} engines: {node: '>= 6'} + pkce-challenge@5.0.1: + resolution: {integrity: sha512-wQ0b/W4Fr01qtpHlqSqspcj3EhBvimsdh0KlHhH8HRZnMsEa0ea2fTULOXOS9ccQr3om+GcGRk4e+isrZWV8qQ==} + engines: {node: '>=16.20.0'} + pkg-types@1.3.1: resolution: {integrity: sha512-/Jm5M4RvtBFVkKWRu2BLUTNP8/M2a+UwuAX+ae4770q1qVGtfjG+WTCupoZixokjmHiry8uI+dlY8KXYV5HVVQ==} @@ -5142,6 +5443,10 @@ packages: resolution: {integrity: sha512-Nc3IT5yHzflTfbjgqWcCPpo7DaKy4FnpB0l/zCAW0Tc7jxAiuqSxHasntB3D7887LSrA93kDJ9IXovxJYxyLCA==} engines: {node: '>=4'} + pngjs@6.0.0: + resolution: {integrity: sha512-TRzzuFRRmEoSW/p1KVAmiOgPco2Irlah+bGFCeNfJXxxYGwSw7YwAOAcd7X28K/m5bjBWKsC29KyoMfHbypayg==} + engines: {node: '>=12.13.0'} + points-on-curve@0.2.0: resolution: {integrity: sha512-0mYKnYYe9ZcqMCWhUjItv/oHjvgEsfKvnUTg8sAtnHr3GVy7rGkXCb6d5cSyqrWqL4k81b9CPg3urd+T7aop3A==} @@ -5178,6 +5483,22 @@ packages: resolution: {integrity: sha512-RRuzqDtt5Y9h3quz5hWhK+TPnsmVs6WwSU6LkJMeY4HstUEDuYTG8UJSdawMRzmzAtV+KEoG8N3Qg2qLy5vM/A==} engines: {node: ^10 || ^12 || >=14} + postgres-array@2.0.0: + resolution: {integrity: sha512-VpZrUqU5A69eQyW2c5CA1jtLecCsN2U/bD6VilrFDWq5+5UIEVO7nazS3TEcHf1zuPYO/sqGvUvW62g86RXZuA==} + engines: {node: '>=4'} + + postgres-bytea@1.0.1: + resolution: {integrity: sha512-5+5HqXnsZPE65IJZSMkZtURARZelel2oXUEO8rH83VS/hxH5vv1uHquPg5wZs8yMAfdv971IU+kcPUczi7NVBQ==} + engines: {node: '>=0.10.0'} + + postgres-date@1.0.7: + resolution: {integrity: sha512-suDmjLVQg78nMK2UZ454hAG+OAW+HQPZ6n++TNDUX+L0+uUlLywnoxJKDou51Zm+zTCjrCl0Nq6J9C5hP9vK/Q==} + engines: {node: '>=0.10.0'} + + postgres-interval@1.2.0: + resolution: {integrity: sha512-9ZhXKM/rw350N1ovuWHbGxnGh/SNJ4cnxHiM0rxE4VN41wsg8P8zWn9hv/buK00RP4WvlOyr/RBDiptyxVbkZQ==} + engines: {node: '>=0.10.0'} + postgres@3.4.9: resolution: {integrity: sha512-GD3qdB0x1z9xgFI6cdRD6xu2Sp2WCOEoe3mtnyB5Ee0XrrL5Pe+e4CCnJrRMnL1zYtRDZmQQVbvOttLnKDLnaw==} engines: {node: '>=12'} @@ -5261,6 +5582,10 @@ packages: promise-limit@2.7.0: resolution: {integrity: sha512-7nJ6v5lnJsXwGprnGXga4wx6d1POjvi5Qmf1ivTRxTjH4Z/9Czja/UCMLVmB9N93GeWOU93XaFaEt6jbuoagNw==} + prompts@2.4.2: + resolution: {integrity: sha512-NxNv/kLguCA7p3jE8oL2aEBsrJWgAakBpgmgK6lpPWV+WuOmY6r2/zbAVnP+T8bQlA0nzHXSJSJW0Hq7ylaD2Q==} + engines: {node: '>= 6'} + prop-types@15.7.2: resolution: {integrity: sha512-8QQikdH7//R2vurIJSutZ1smHYTcLpRWEOlHnzcWHmBYrOGUysKwSsrC89BCiFj3CbrfJ/nXFdJepOVrY1GCHQ==} @@ -5328,6 +5653,10 @@ packages: prosemirror-view@1.41.8: resolution: {integrity: sha512-TnKDdohEatgyZNGCDWIdccOHXhYloJwbwU+phw/a23KBvJIR9lWQWW7WHHK3vBdOLDNuF7TaX98GObUZOWkOnA==} + proxy-addr@2.0.8: + resolution: {integrity: sha512-5nnx0yGyVUcY6t9RnWcARWtwT9F1D8O9rt08htPvnd49W1IgZtmLkhu9WfMzQj1cFxjHIO6connUNVW5k7AVyQ==} + engines: {node: '>= 0.10'} + pump@3.0.4: resolution: {integrity: sha512-VS7sjc6KR7e1ukRFhQSY5LM2uBWAUPiOPa/A3mkKmiMwSmRFUITt0xuj+/lesgnCv+dPIEYlkzrcyXgquIHMcA==} @@ -5343,6 +5672,10 @@ packages: resolution: {integrity: sha512-eZ7l+0ZVy3He9c85pEM9KEBR9DFA4jrmWvIjm9wpcHvScwc/vgZDl2TNOF0pm0JsWKw24XBUZOY0Wxn7/nvJnw==} engines: {node: '>=18'} + qs@6.17.1: + resolution: {integrity: sha512-jd3COkaKVgGUW+ZHyEHCG9bH7RoaaiWuMgzsIBjUMVjLAaWGWpoUAVwljVvBHxRu/2qEHnadLGZrkutYUBPQJA==} + engines: {node: '>=0.6'} + quick-format-unescaped@4.0.4: resolution: {integrity: sha512-tYC1Q1hgyRuHgloV/YXs2w15unPVh8qfu/qCTfhTYamaw7fyhumKa2yGpdSo87vY32rIclj+4fWYQXUMs9EHvg==} @@ -5350,6 +5683,10 @@ packages: resolution: {integrity: sha512-Hrgsx+orqoygnmhFbKaHE6c296J+HTAQXoxEF6gNupROmmGJRoyzfG3ccAveqCBrwr/2yxQ5BVd/GTl5agOwSg==} engines: {node: '>= 0.6'} + raw-body@3.0.2: + resolution: {integrity: sha512-K5zQjDllxWkf7Z5xJdV0/B0WTNqx6vxG70zJE4N0kBs4LovmEYWJzQGxC9bS9RAKu3bgM40lrd5zoLJ12MQ5BA==} + engines: {node: '>= 0.10'} + react-arborist@3.16.0: resolution: {integrity: sha512-Pp1TQXETKMeg/0yAMGBFIwze7IfZaghDScX4vekJ4Ge8/t7uYifbDBhEGUSOYaDuahE1f8fyBIrlN2pLD4ysTA==} peerDependencies: @@ -5600,6 +5937,10 @@ packages: roughjs@4.6.6: resolution: {integrity: sha512-ZUz/69+SYpFN/g/lUlo2FXcIjRkSu3nDarreVdGGndHEBJ6cXPdKguS8JGxwj5HA5xIbVKSmLgr5b3AWxtRfvQ==} + router@2.2.0: + resolution: {integrity: sha512-nLTrUKm2UyiL7rlhapu/Zl45FwNgkZGaCpZbIHajDYgwlJCOzLSk+cIPAnsEqV955GjILJnKbdQC1nVPz+gAYQ==} + engines: {node: '>= 18'} + rw@1.3.3: resolution: {integrity: sha512-PdhdWy89SiZogBLaw42zdeqtRJ//zFd2PgQavcICDUgJT5oW10QCRKbJ6bg4r0/UY2M6BWd5tkxuGFRvCkgfHQ==} @@ -5630,9 +5971,27 @@ packages: engines: {node: '>=10'} hasBin: true + send@1.2.1: + resolution: {integrity: sha512-1gnZf7DFcoIcajTjTwjwuDjzuz4PPcY2StKPlsGAQ1+YH20IRVrBaXSWmdjowTJ6u8Rc01PoYOGHXfP1mYcZNQ==} + engines: {node: '>= 18'} + + serve-static@2.2.1: + resolution: {integrity: sha512-xRXBn0pPqQTVQiC8wyQrKs2MOlX24zQ0POGaj0kultvoOCstBQM5yvOhAVSUwOMjQtTvsPWoNCHfPGwaaQJhTw==} + engines: {node: '>= 18'} + set-cookie-parser@3.1.0: resolution: {integrity: sha512-kjnC1DXBHcxaOaOXBHBeRtltsDG2nUiUni+jP92M9gYdW12rsmx92UsfpH7o5tDRs7I1ZZPSQJQGv3UaRfCiuw==} + setimmediate@1.0.5: + resolution: {integrity: sha512-MATJdZp8sLqDl/68LfQmbP8zKPLQNV6BIZoIgrscFDQ+RsvK/BxeDQOgyxKKoh0y/8h3BqVFnCqQ/gd+reiIXA==} + + setprototypeof@1.2.0: + resolution: {integrity: sha512-E5LDX7Wrp85Kil5bhZv46j8jOeboKq5JMmYM3gVGdGH8xFpPWXUMsNrlODCrkoxMEeNi/XZIwuRvY4XNwYMJpw==} + + seventh@0.9.4: + resolution: {integrity: sha512-O85mosi4sOfxG+slvqy0j7zLuFD4ylUgEMt7Pvt9Q/wnwNwG/6MNnHKzV9JkAoPoPM26t/DLFn17p7o7u5kIBA==} + engines: {node: '>=16.13.0'} + shallow-equal@1.2.1: resolution: {integrity: sha512-S4vJDjHHMBaiZuT9NPb616CSmLf618jawtv3sufLl6ivK8WocjAo58cXwbRV1cgqxH0Qbv+iUt6m05eqEa2IRA==} @@ -5656,6 +6015,22 @@ packages: resolution: {integrity: sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==} engines: {node: '>=8'} + side-channel-list@1.0.1: + resolution: {integrity: sha512-mjn/0bi/oUURjc5Xl7IaWi/OJJJumuoJFQJfDDyO46+hBWsfaVM65TBHq2eoZBhzl9EchxOijpkbRC8SVBQU0w==} + engines: {node: '>= 0.4'} + + side-channel-map@1.0.1: + resolution: {integrity: sha512-VCjCNfgMsby3tTdo02nbjtM/ewra6jPHmpThenkTYh8pG9ucZ/1P8So4u4FGBek/BjpOVsDCMoLA/iuBKIFXRA==} + engines: {node: '>= 0.4'} + + side-channel-weakmap@1.0.2: + resolution: {integrity: sha512-WPS/HvHQTYnHisLo9McqBHOJk2FkHO/tlpvldyrnem4aeQp4hai3gythswg6p01oSoTl58rcpiFAjF2br2Ak2A==} + engines: {node: '>= 0.4'} + + side-channel@1.1.1: + resolution: {integrity: sha512-6x6dK6zJdpTzF4sQeNYxwtvBzf6Eg4GtlesS94HOvTudUeyK2WXAaIfmDgsyslYrRBeFIlsi54AYsFGUuhmvrQ==} + engines: {node: '>= 0.4'} + siginfo@2.0.0: resolution: {integrity: sha512-ybx0WO1/8bSBLEWXZvEd7gMW3Sn3JFlW3TvX1nREbDLRNQNaeNN8WK0meBwPdAaOI7TtRRRJn/Es1zhrrCHu7g==} @@ -5666,6 +6041,9 @@ packages: simple-wcswidth@1.1.2: resolution: {integrity: sha512-j7piyCjAeTDSjzTSQ7DokZtMNwNlEAyxqSZeCS+CXH7fJ4jx3FuJ/mTW3mE+6JLs4VJBbcll0Kjn+KXI5t21Iw==} + sisteransi@1.0.5: + resolution: {integrity: sha512-bLGGlR1QxBcynn2d5YmDX4MGjlZvy2MRBDRNHLJ8VI6l6+9FUiyTFNJ0IveOSP0bcXgVDPRcfGqA0pjaqUpfVg==} + sonic-boom@4.2.1: resolution: {integrity: sha512-w6AxtubXa2wTXAUsZMMWERrsIRAdrK0Sc+FUytWvYAhBJLyuI4llrMIC1DtlNSdI99EI86KZum2MMq3EAZlF9Q==} @@ -5733,6 +6111,10 @@ packages: strict-event-emitter@0.5.1: resolution: {integrity: sha512-vMgjE/GGEPEFnhFub6pa4FmJBRBVOLpIII2hvCZ8Kzb7K0hlHo7mQv6xYrBvCL2LtAIBwFUK8wvuJgTVSQ5MFQ==} + string-kit@0.19.5: + resolution: {integrity: sha512-MqNWtQQw6xMFbOSa26HfyS5uyDu1tR4OEPz44VDP6JWa/S0E0N11uw8CXrPt5hme/tBXRp5AmoIvFl5B9lt7PA==} + engines: {node: '>=14.15.0'} + string-width@4.2.3: resolution: {integrity: sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==} engines: {node: '>=8'} @@ -5820,6 +6202,10 @@ packages: resolution: {integrity: sha512-uxc/zpqFg6x7C8vOE7lh6Lbda8eEL9zmVm/PLeTPBRhh1xCgdWaQ+J1CUieGpIfm2HdtsUpRv+HshiasBMcc6A==} engines: {node: '>=6'} + terminal-kit@3.1.4: + resolution: {integrity: sha512-0BfyIa7pY69E+UgV0P655uNk2rjp2eWTA0uZCTMlGzyrgcrH7kO6yZDGdHqB2vNF5uEjQ5+6ZilHfGtzrhLQNg==} + engines: {node: '>=16.13.0'} + thenify-all@1.6.0: resolution: {integrity: sha512-RNxQH/qI8/t3thXJDwcstUO4zeqo64+Uy/+sNVRBx4Xn2OX+OZ9oP+iJnNFqplFra2ZUVeKCSa2oVWi3T4uVmA==} engines: {node: '>=0.8'} @@ -5873,6 +6259,10 @@ packages: resolution: {integrity: sha512-5eDV0tK2NhLAAqBeXDAQ36+EwuStd1HbsSOnGsp+JbExITnExcALLL5M1kTH8gjDYN5QvwmUWimE3GoMZ2A7xQ==} hasBin: true + toidentifier@1.0.1: + resolution: {integrity: sha512-o5sSPKEkg/DIQNmH43V0/uerLrpzVedkUh8tGNvaeXpfpuwjKenlSox/2O/BTlZUtEe+JG7s5YhEz608PlAHRA==} + engines: {node: '>=0.6'} + token-types@6.1.2: resolution: {integrity: sha512-dRXchy+C0IgK8WPC6xvCHFRIWYUbqqdEIKPaKo/AcTUNzwLTK6AH7RjdLWsEZcAN/TBdtfUw3PYEgPr5VPr6ww==} engines: {node: '>=14.16'} @@ -5885,6 +6275,10 @@ packages: resolution: {integrity: sha512-L0Orpi8qGpRG//Nd+H90vFB+3iHnue1zSSGmNOOCh1GLJ7rUKVwV2HvijphGQS2UmhUZewS9VgvxYIdgr+fG1A==} hasBin: true + tree-kit@0.8.10: + resolution: {integrity: sha512-mwuV3lHL+utI9z7vxah/27wrMJprx925xhkw1N4KuGa1dqIi0DLHWfXJpHEyR+ZI0Ij80zN58ztiGp3KlH0wtw==} + engines: {node: '>=16.13.0'} + trim-lines@3.0.1: resolution: {integrity: sha512-kRj8B+YHZCc9kQYdWfJB2/oUl9rA99qbowYYBtr4ui4mZyAQ2JpvVBd/6U2YloATfqBhBTSMhTpgBHtU0Mf3Rg==} @@ -5955,6 +6349,10 @@ packages: resolution: {integrity: sha512-8ZiHFm91orbSAe2PSAiSVBVko18pbhbiB3U9GglSzF/zCGkR+rxpHx6sEMCUm4kxY4LjDIUGgCfUMtwfZfjfUA==} engines: {node: '>=20'} + type-is@2.1.0: + resolution: {integrity: sha512-faYHw0anBbc/kWF3zFTEnxSFOAGUX9GFbOBthvDdLsIlEoWOFOtS0zgCiQYwIskL9iGXZL3kAXD8OoZ4GmMATA==} + engines: {node: '>= 18'} + typedoc@0.28.19: resolution: {integrity: sha512-wKh+lhdmMFivMlc6vRRcMGXeGEHGU2g8a2CkPTJjJlwRf1iXbimWIPcFolCqe4E0d/FRtGszpIrsp3WLpDB8Pw==} engines: {node: '>= 18', pnpm: '>= 10'} @@ -5998,6 +6396,9 @@ packages: unified@11.0.5: resolution: {integrity: sha512-xKvGhPWw3k84Qjh8bI3ZeJjqnyadK+GEFtazSfZv/rKeTkTjOJho6mFqh2SM96iIcZokxiOpg78GazTSg8+KHA==} + uniq@1.0.1: + resolution: {integrity: sha512-Gw+zz50YNKPDKXs+9d+aKAjVwpjNwqzvNpLigIruT4HA9lMZNdMqs9x07kKHB/L9WRzqp4+DlTU5s4wG2esdoA==} + unist-util-is@6.0.1: resolution: {integrity: sha512-LsiILbtBETkDz8I9p1dQ0uyRUWuaQzd/cuEeS1hoRSyW5E5XGmTzlwY1OrNzzakGowI9Dr/I8HVaw4hTtnxy8g==} @@ -6013,6 +6414,10 @@ packages: unist-util-visit@5.1.0: resolution: {integrity: sha512-m+vIdyeCOpdr/QeQCu2EzxX/ohgS8KbnPDgFni4dQsfSCtpz8UqDyY5GjRru8PDKuYn7Fq19j1CQ+nJSsGKOzg==} + unpipe@1.0.0: + resolution: {integrity: sha512-pjy2bYhSsufwWlKwPc+l3cN7+wuJlK6uz0YdJEOlQDbl6jo/YlPi4mb8agUkVC8BF7V8NuzeyPNqRksA3hztKQ==} + engines: {node: '>= 0.8'} + until-async@3.0.2: resolution: {integrity: sha512-IiSk4HlzAMqTUseHHe3VhIGyuFmN90zMTpD3Z3y8jeQbzLIq500MVM7Jq2vUAnTKAFPJrqwkzr6PoTcPhGcOiw==} @@ -6093,6 +6498,10 @@ packages: validate.io-number@1.0.3: resolution: {integrity: sha512-kRAyotcbNaSYoDnXvb4MHg/0a1egJdLwS6oJ38TJY7aw9n93Fl/3blIXdyYvPOp55CNxywooG/3BcrwNrBpcSg==} + vary@1.1.2: + resolution: {integrity: sha512-BNGbWLfd0eUPabhkXUVm0j8uuvREyTh5ovRa/dyow/BqAbZJyC+5fU+IzQOzmAKzYqYRAISoRhdQr3eIZ/PXqg==} + engines: {node: '>= 0.8'} + vfile-location@5.0.3: resolution: {integrity: sha512-5yXvWDEgqeiYiBe1lbxYF7UMAIm/IcopxMHrMQDq3nvKcjPKIhZklUKL+AE7J7uApI4kwe2snsK+eI6UTj9EHg==} @@ -6102,6 +6511,11 @@ packages: vfile@6.0.3: resolution: {integrity: sha512-KzIbH/9tXat2u30jf+smMwFCsno4wHVdNmzFyL+T/L3UGqqk6JKfVqOFOZEpZSHADH1k40ab6NUIXZq422ov3Q==} + virtual-react-json-diff@1.0.20: + resolution: {integrity: sha512-sgFpWI2YFIvDCPbpQ7PKvOKZluYZk668Jr0E1/jFunHhfZnrYMLkjyehVKsKu5QK0VZPhRAHAcnTUSBEli26Jg==} + peerDependencies: + react: '>=18.0.0' + vite@8.3.0: resolution: {integrity: sha512-lhZBVvEHefgE+HQZC9O7EBJgCU/nVzFNl7vkS4RE0APtWLP02/8QVIkQtzBxPquh7lq5/78NHipTj7ODQ6XuyQ==} engines: {node: ^20.19.0 || >=22.12.0} @@ -6275,6 +6689,10 @@ packages: engines: {node: '>= 0.10.0'} hasBin: true + xtend@4.0.2: + resolution: {integrity: sha512-LKYU1iAXJXUgAXn9URjiu+MWhyUXHsvfp7mcuYm9dSUKK0/CjtrUwFAxD82/mCWbtLsGjFIad0wIsod4zrTAEQ==} + engines: {node: '>=0.4'} + y18n@5.0.8: resolution: {integrity: sha512-0pfFzegeDWJHJIAmTLRP2DwHjdF5s7jo9tuztdQxAhINCdvS+3nGINqPd00AphqJR/0LhANUS6/+7SCb98YOfA==} engines: {node: '>=10'} @@ -6308,6 +6726,11 @@ packages: resolution: {integrity: sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q==} engines: {node: '>=10'} + zod-to-json-schema@3.25.2: + resolution: {integrity: sha512-O/PgfnpT1xKSDeQYSCfRI5Gy3hPf91mKVDuYLUHZJMiDFptvP41MSnWofm8dnCm0256ZNfZIM7DSzuSMAFnjHA==} + peerDependencies: + zod: ^3.25.28 || ^4 + zod@4.3.5: resolution: {integrity: sha512-k7Nwx6vuWx1IJ9Bjuf4Zt1PEllcwe7cls3VNzm4CQ1/hgtFUK2bRNG3rvnpPUhFjmqJKAKtjV576KnUkHocg/g==} @@ -6340,7 +6763,7 @@ snapshots: dependencies: '@ai-sdk/provider': 3.0.13 '@standard-schema/spec': 1.1.0 - eventsource-parser: 3.0.8 + eventsource-parser: 3.1.1 zod: 4.3.5 '@ai-sdk/provider-utils@4.0.40(zod@4.3.5)': @@ -6576,6 +6999,16 @@ snapshots: '@conventional-changelog/template@1.3.0': {} + '@cronvel/get-pixels@3.4.1': + dependencies: + jpeg-js: 0.4.4 + ndarray: 1.1.1 + ndarray-pack: 1.2.1 + node-bitmap: 0.0.1 + omggif: 1.0.10 + pngjs: 6.0.0 + optional: true + '@date-fns/tz@1.2.0': {} '@dnd-kit/accessibility@3.1.1(react@19.2.7)': @@ -6613,7 +7046,7 @@ snapshots: '@emotion/babel-plugin@11.13.5': dependencies: '@babel/helper-module-imports': 7.29.7 - '@babel/runtime': 7.29.2 + '@babel/runtime': 7.29.7 '@emotion/hash': 0.9.2 '@emotion/memoize': 0.9.0 '@emotion/serialize': 1.3.3 @@ -7084,6 +7517,10 @@ snapshots: '@shikijs/types': 3.23.0 '@shikijs/vscode-textmate': 10.0.2 + '@hono/node-server@1.19.19(hono@4.13.18)': + dependencies: + hono: 4.13.18 + '@humanfs/core@0.19.2': dependencies: '@humanfs/types': 0.15.0 @@ -7328,6 +7765,28 @@ snapshots: dependencies: '@chevrotain/types': 11.1.2 + '@modelcontextprotocol/sdk@1.26.0(zod@4.3.5)': + dependencies: + '@hono/node-server': 1.19.19(hono@4.13.18) + ajv: 8.20.0 + ajv-formats: 3.0.1 + content-type: 1.0.5 + cors: 2.8.6 + cross-spawn: 7.0.6 + eventsource: 3.0.7 + eventsource-parser: 3.1.1 + express: 5.3.0 + express-rate-limit: 8.7.4(express@5.3.0) + hono: 4.13.18 + jose: 6.2.17 + json-schema-typed: 8.0.2 + pkce-challenge: 5.0.1 + raw-body: 3.0.2 + zod: 4.3.5 + zod-to-json-schema: 3.25.2(zod@4.3.5) + transitivePeerDependencies: + - supports-color + '@monaco-editor/loader@1.7.0': dependencies: state-local: 1.0.7 @@ -8990,6 +9449,11 @@ snapshots: convert-source-map: 2.0.0 tinyrainbow: 3.1.1 + accepts@2.0.0: + dependencies: + mime-types: 3.0.2 + negotiator: 1.1.0 + acorn-jsx@5.3.2(acorn@8.16.0): dependencies: acorn: 8.16.0 @@ -9016,6 +9480,10 @@ snapshots: dependencies: ajv: 8.20.0 + ajv-formats@3.0.1: + dependencies: + ajv: 8.20.0 + ajv@6.15.0: dependencies: fast-deep-equal: 3.1.3 @@ -9033,7 +9501,7 @@ snapshots: ajv@8.20.0: dependencies: fast-deep-equal: 3.1.3 - fast-uri: 3.1.2 + fast-uri: 3.1.7 json-schema-traverse: 1.0.0 require-from-string: 2.0.2 @@ -9087,6 +9555,20 @@ snapshots: blueimp-canvas-to-blob@3.29.0: {} + body-parser@2.4.0: + dependencies: + bytes: 3.1.2 + content-type: 2.1.0 + debug: 4.4.3 + http-errors: 2.0.1 + iconv-lite: 0.7.3 + on-finished: 2.4.2 + qs: 6.17.1 + raw-body: 3.0.2 + type-is: 2.1.0 + transitivePeerDependencies: + - supports-color + body-scroll-lock@4.0.0-beta.0: {} brace-expansion@5.0.6: @@ -9106,8 +9588,20 @@ snapshots: dependencies: streamsearch: 1.1.0 + bytes@3.1.2: {} + cac@6.7.14: {} + call-bind-apply-helpers@1.0.2: + dependencies: + es-errors: 1.3.0 + function-bind: 1.1.2 + + call-bound@1.0.4: + dependencies: + call-bind-apply-helpers: 1.0.2 + get-intrinsic: 1.3.0 + callsites@3.1.0: {} caniuse-lite@1.0.30001810: {} @@ -9130,6 +9624,9 @@ snapshots: dependencies: readdirp: 4.1.2 + chroma-js@2.6.0: + optional: true + ci-info@4.4.0: {} class-variance-authority@0.7.1: @@ -9180,6 +9677,8 @@ snapshots: comma-separated-tokens@2.0.3: {} + commander@11.1.0: {} + commander@2.20.3: {} commander@4.1.1: {} @@ -9214,6 +9713,12 @@ snapshots: dependencies: simple-wcswidth: 1.1.2 + content-disposition@2.0.1: {} + + content-type@1.0.5: {} + + content-type@2.1.0: {} + conventional-changelog-angular@9.3.0: dependencies: '@conventional-changelog/template': 1.3.0 @@ -9231,8 +9736,17 @@ snapshots: convert-source-map@2.0.0: {} + cookie-signature@1.2.2: {} + + cookie@0.7.2: {} + cookie@1.1.1: {} + cors@2.8.6: + dependencies: + object-assign: 4.1.1 + vary: 1.1.2 + cose-base@1.0.3: dependencies: layout-base: 1.0.2 @@ -9285,6 +9799,11 @@ snapshots: culori@4.0.2: {} + cwise-compiler@1.1.3: + dependencies: + uniq: 1.0.1 + optional: true + cytoscape-cose-bilkent@4.1.0(cytoscape@3.33.4): dependencies: cose-base: 1.0.3 @@ -9495,6 +10014,8 @@ snapshots: dependencies: robust-predicates: 3.0.3 + depd@2.0.0: {} + dequal@2.0.3: {} detect-libc@2.0.2: {} @@ -9519,7 +10040,7 @@ snapshots: dom-helpers@5.2.1: dependencies: - '@babel/runtime': 7.29.2 + '@babel/runtime': 7.29.7 csstype: 3.2.3 dompurify@3.4.5: @@ -9535,18 +10056,29 @@ snapshots: esbuild: 0.25.12 tsx: 4.22.3 - drizzle-orm@0.45.2(@libsql/client@0.17.3)(@opentelemetry/api@1.9.1)(@types/better-sqlite3@7.6.13)(better-sqlite3@13.0.3)(postgres@3.4.9): + drizzle-orm@0.45.2(@libsql/client@0.17.3)(@opentelemetry/api@1.9.1)(@types/better-sqlite3@7.6.13)(better-sqlite3@13.0.3)(pg@8.16.3)(postgres@3.4.9): optionalDependencies: '@libsql/client': 0.17.3 '@opentelemetry/api': 1.9.1 '@types/better-sqlite3': 7.6.13 better-sqlite3: 13.0.3 + pg: 8.16.3 postgres: 3.4.9 + dunder-proto@1.0.1: + dependencies: + call-bind-apply-helpers: 1.0.2 + es-errors: 1.3.0 + gopd: 1.2.0 + + ee-first@1.1.1: {} + emoji-regex@10.6.0: {} emoji-regex@8.0.0: {} + encodeurl@2.0.3: {} + end-of-stream@1.4.5: dependencies: once: 1.4.0 @@ -9568,10 +10100,16 @@ snapshots: dependencies: is-arrayish: 0.2.1 + es-define-property@1.0.1: {} + es-errors@1.3.0: {} es-module-lexer@2.3.2: {} + es-object-atoms@1.1.2: + dependencies: + es-errors: 1.3.0 + es-toolkit@1.46.1: {} es6-promise@4.2.8: {} @@ -9690,6 +10228,8 @@ snapshots: escalade@3.2.0: {} + escape-html@1.0.3: {} + escape-string-regexp@4.0.0: {} escape-string-regexp@5.0.0: {} @@ -9766,12 +10306,59 @@ snapshots: esutils@2.0.3: {} + etag@1.8.1: {} + eventsource-parser@3.0.8: {} eventsource-parser@3.1.1: {} + eventsource@3.0.7: + dependencies: + eventsource-parser: 3.1.1 + expect-type@1.4.0: {} + express-rate-limit@8.7.4(express@5.3.0): + dependencies: + debug: 4.4.3 + express: 5.3.0 + ip-address: 10.7.6 + transitivePeerDependencies: + - supports-color + + express@5.3.0: + dependencies: + accepts: 2.0.0 + body-parser: 2.4.0 + content-disposition: 2.0.1 + content-type: 2.1.0 + cookie: 0.7.2 + cookie-signature: 1.2.2 + debug: 4.4.3 + depd: 2.0.0 + encodeurl: 2.0.3 + escape-html: 1.0.3 + etag: 1.8.1 + finalhandler: 2.1.1 + fresh: 2.0.0 + http-errors: 2.0.1 + merge-descriptors: 2.0.0 + mime-types: 3.0.2 + on-finished: 2.4.2 + once: 1.4.0 + parseurl: 1.3.3 + proxy-addr: 2.0.8 + qs: 6.17.1 + range-parser: 1.2.1 + router: 2.2.0 + send: 1.2.1 + serve-static: 2.2.1 + statuses: 2.0.2 + type-is: 2.1.0 + vary: 1.1.2 + transitivePeerDependencies: + - supports-color + extend@3.0.2: {} fast-copy@3.1.0: {} @@ -9782,6 +10369,8 @@ snapshots: fast-levenshtein@2.0.6: {} + fast-myers-diff@3.2.0: {} + fast-safe-stringify@2.1.1: {} fast-string-truncated-width@3.0.3: {} @@ -9790,8 +10379,6 @@ snapshots: dependencies: fast-string-truncated-width: 3.0.3 - fast-uri@3.1.2: {} - fast-uri@3.1.7: {} fast-wrap-ansi@0.2.2: @@ -9821,6 +10408,17 @@ snapshots: transitivePeerDependencies: - supports-color + finalhandler@2.1.1: + dependencies: + debug: 4.4.3 + encodeurl: 2.0.3 + escape-html: 1.0.3 + on-finished: 2.4.2 + parseurl: 1.3.3 + statuses: 2.0.2 + transitivePeerDependencies: + - supports-color + find-root@1.1.0: {} find-up@5.0.0: @@ -9845,6 +10443,8 @@ snapshots: dependencies: tabbable: 6.5.0 + forwarded@0.2.0: {} + framer-motion@13.2.0(react-dom@19.2.7(react@19.2.7))(react@19.2.7): dependencies: motion-dom: 13.2.0 @@ -9854,6 +10454,8 @@ snapshots: react: 19.2.7 react-dom: 19.2.7(react@19.2.7) + fresh@2.0.0: {} + fsevents@2.3.3: optional: true @@ -9865,8 +10467,26 @@ snapshots: get-east-asian-width@1.6.0: {} + get-intrinsic@1.3.0: + dependencies: + call-bind-apply-helpers: 1.0.2 + es-define-property: 1.0.1 + es-errors: 1.3.0 + es-object-atoms: 1.1.2 + function-bind: 1.1.2 + get-proto: 1.0.1 + gopd: 1.2.0 + has-symbols: 1.1.0 + hasown: 2.0.4 + math-intrinsics: 1.1.0 + get-nonce@1.0.1: {} + get-proto@1.0.1: + dependencies: + dunder-proto: 1.0.1 + es-object-atoms: 1.1.2 + get-tsconfig@4.14.0: dependencies: resolve-pkg-maps: 1.0.0 @@ -9885,6 +10505,8 @@ snapshots: dependencies: ini: 6.0.0 + gopd@1.2.0: {} + graceful-fs@4.2.11: {} graphql@16.14.0: {} @@ -9903,6 +10525,8 @@ snapshots: - bufferutil - utf-8-validate + has-symbols@1.1.0: {} + hasown@2.0.4: dependencies: function-bind: 1.1.2 @@ -9999,6 +10623,8 @@ snapshots: dependencies: react-is: 16.13.1 + hono@4.13.18: {} + html-parse-stringify@3.1.0: dependencies: void-elements: 3.1.0 @@ -10007,6 +10633,14 @@ snapshots: html-void-elements@3.0.0: {} + http-errors@2.0.1: + dependencies: + depd: 2.0.0 + inherits: 2.0.4 + setprototypeof: 1.2.0 + statuses: 2.0.2 + toidentifier: 1.0.1 + http-status@2.1.0: {} husky@9.1.7: {} @@ -10023,6 +10657,10 @@ snapshots: dependencies: safer-buffer: 2.1.2 + iconv-lite@0.7.3: + dependencies: + safer-buffer: 2.1.2 + ieee754@1.2.1: {} ignore@5.3.2: {} @@ -10040,6 +10678,8 @@ snapshots: imurmurhash@0.1.4: {} + inherits@2.0.4: {} + ini@6.0.0: {} inline-style-parser@0.2.7: {} @@ -10048,6 +10688,13 @@ snapshots: internmap@2.0.3: {} + iota-array@1.0.0: + optional: true + + ip-address@10.7.6: {} + + ipaddr.js@1.9.1: {} + ipaddr.js@2.2.0: {} is-alphabetical@2.0.1: {} @@ -10083,6 +10730,8 @@ snapshots: is-plain-obj@4.1.0: {} + is-promise@4.0.0: {} + isexe@2.0.0: {} jiti@2.6.1: {} @@ -10091,6 +10740,8 @@ snapshots: jose@5.10.0: {} + jose@6.2.17: {} + jotai@2.14.0(@babel/template@7.29.7)(@types/react@19.2.7)(react@19.2.7): optionalDependencies: '@babel/template': 7.29.7 @@ -10099,6 +10750,9 @@ snapshots: joycon@3.1.1: {} + jpeg-js@0.4.4: + optional: true + js-base64@3.7.8: {} js-tokens@4.0.0: {} @@ -10115,6 +10769,15 @@ snapshots: json-buffer@3.0.1: {} + json-diff-kit@1.0.35: + dependencies: + commander: 11.1.0 + fast-myers-diff: 3.2.0 + lodash: 4.18.1 + prompts: 2.4.2 + optionalDependencies: + terminal-kit: 3.1.4 + json-parse-even-better-errors@2.3.1: {} json-schema-compare@0.2.2: @@ -10143,6 +10806,8 @@ snapshots: json-schema-traverse@1.0.0: {} + json-schema-typed@8.0.2: {} + json-schema@0.4.0: {} json-stable-stringify-without-jsonify@1.0.1: {} @@ -10159,12 +10824,17 @@ snapshots: khroma@2.1.0: {} + kleur@3.0.3: {} + konva@9.3.6: {} layout-base@1.0.2: {} layout-base@2.0.1: {} + lazyness@1.2.0: + optional: true + levn@0.4.1: dependencies: prelude-ls: 1.2.1 @@ -10342,6 +11012,8 @@ snapshots: marked@17.0.6: {} + math-intrinsics@1.1.0: {} + md5@2.3.0: dependencies: charenc: 0.0.2 @@ -10503,10 +11175,14 @@ snapshots: mdurl@2.0.0: {} + media-typer@1.1.1: {} + memoize-one@5.2.1: {} memoize-one@6.0.0: {} + merge-descriptors@2.0.0: {} + mermaid@11.15.0: dependencies: '@braintree/sanitize-url': 7.1.2 @@ -10722,6 +11398,12 @@ snapshots: transitivePeerDependencies: - supports-color + mime-db@1.54.0: {} + + mime-types@3.0.2: + dependencies: + mime-db: 1.54.0 + mini-svg-data-uri@1.4.4: {} minimatch@10.2.5: @@ -10792,6 +11474,22 @@ snapshots: natural-compare@1.4.0: {} + ndarray-pack@1.2.1: + dependencies: + cwise-compiler: 1.1.3 + ndarray: 1.1.1 + optional: true + + ndarray@1.1.1: + dependencies: + iota-array: 1.0.0 + is-buffer: 1.1.6 + optional: true + + negotiator@1.1.0: + dependencies: + content-type: 2.1.0 + next@16.3.3(@opentelemetry/api@1.9.1)(@types/node@26.6.1)(babel-plugin-macros@3.1.0)(react-dom@19.2.7(react@19.2.7))(react@19.2.7): dependencies: '@next/env': 16.3.3 @@ -10818,18 +11516,33 @@ snapshots: - '@types/node' - babel-plugin-macros + nextgen-events@1.5.3: + optional: true + node-addon-api@8.9.2: {} + node-bitmap@0.0.1: + optional: true + object-assign@3.0.0: {} object-assign@4.1.1: {} + object-inspect@1.13.4: {} + object-to-formdata@4.5.1: {} obug@2.2.1: {} + omggif@1.0.10: + optional: true + on-exit-leak-free@2.1.2: {} + on-finished@2.4.2: + dependencies: + ee-first: 1.1.1 + once@1.4.0: dependencies: wrappy: 1.0.2 @@ -10882,6 +11595,8 @@ snapshots: dependencies: entities: 6.0.1 + parseurl@1.3.3: {} + path-data-parser@0.1.0: {} path-exists@4.0.0: {} @@ -10892,6 +11607,8 @@ snapshots: path-to-regexp@6.3.0: {} + path-to-regexp@8.4.2: {} + path-type@4.0.0: {} pathe@2.0.3: {} @@ -10938,6 +11655,41 @@ snapshots: penpal@7.0.6: {} + pg-cloudflare@1.4.1: + optional: true + + pg-connection-string@2.14.1: {} + + pg-int8@1.0.1: {} + + pg-pool@3.14.0(pg@8.16.3): + dependencies: + pg: 8.16.3 + + pg-protocol@1.16.1: {} + + pg-types@2.2.0: + dependencies: + pg-int8: 1.0.1 + postgres-array: 2.0.0 + postgres-bytea: 1.0.1 + postgres-date: 1.0.7 + postgres-interval: 1.2.0 + + pg@8.16.3: + dependencies: + pg-connection-string: 2.14.1 + pg-pool: 3.14.0(pg@8.16.3) + pg-protocol: 1.16.1 + pg-types: 2.2.0 + pgpass: 1.0.5 + optionalDependencies: + pg-cloudflare: 1.4.1 + + pgpass@1.0.5: + dependencies: + split2: 4.2.0 + picocolors@1.1.1: {} picomatch@4.0.4: {} @@ -10982,6 +11734,8 @@ snapshots: pirates@4.0.7: {} + pkce-challenge@5.0.1: {} + pkg-types@1.3.1: dependencies: confbox: 0.1.8 @@ -10990,6 +11744,9 @@ snapshots: pluralize@8.0.0: {} + pngjs@6.0.0: + optional: true + points-on-curve@0.2.0: {} points-on-path@0.2.1: @@ -11023,6 +11780,16 @@ snapshots: picocolors: 1.1.1 source-map-js: 1.2.1 + postgres-array@2.0.0: {} + + postgres-bytea@1.0.1: {} + + postgres-date@1.0.7: {} + + postgres-interval@1.2.0: + dependencies: + xtend: 4.0.2 + postgres@3.4.9: {} prelude-ls@1.2.1: {} @@ -11045,6 +11812,11 @@ snapshots: promise-limit@2.7.0: {} + prompts@2.4.2: + dependencies: + kleur: 3.0.3 + sisteransi: 1.0.5 + prop-types@15.7.2: dependencies: loose-envify: 1.4.0 @@ -11162,6 +11934,11 @@ snapshots: prosemirror-state: 1.4.4 prosemirror-transform: 1.12.0 + proxy-addr@2.0.8: + dependencies: + forwarded: 0.2.0 + ipaddr.js: 1.9.1 + pump@3.0.4: dependencies: end-of-stream: 1.4.5 @@ -11173,10 +11950,22 @@ snapshots: qs-esm@8.0.1: {} + qs@6.17.1: + dependencies: + es-define-property: 1.0.1 + side-channel: 1.1.1 + quick-format-unescaped@4.0.4: {} range-parser@1.2.1: {} + raw-body@3.0.2: + dependencies: + bytes: 3.1.2 + http-errors: 2.0.1 + iconv-lite: 0.7.3 + unpipe: 1.0.0 + react-arborist@3.16.0(@types/node@26.6.1)(@types/react@19.2.7)(react-dom@19.2.7(react@19.2.7))(react@19.2.7): dependencies: react: 19.2.7 @@ -11345,7 +12134,7 @@ snapshots: react-transition-group@4.4.5(react-dom@19.2.7(react@19.2.7))(react@19.2.7): dependencies: - '@babel/runtime': 7.29.2 + '@babel/runtime': 7.29.7 dom-helpers: 5.2.1 loose-envify: 1.4.0 prop-types: 15.8.1 @@ -11367,7 +12156,7 @@ snapshots: redux@4.2.1: dependencies: - '@babel/runtime': 7.29.2 + '@babel/runtime': 7.29.7 redux@5.0.1: {} @@ -11504,6 +12293,16 @@ snapshots: points-on-curve: 0.2.0 points-on-path: 0.2.1 + router@2.2.0: + dependencies: + debug: 4.4.3 + depd: 2.0.0 + is-promise: 4.0.0 + parseurl: 1.3.3 + path-to-regexp: 8.4.2 + transitivePeerDependencies: + - supports-color + rw@1.3.3: {} safe-stable-stringify@2.5.0: {} @@ -11524,8 +12323,43 @@ snapshots: semver@7.8.5: {} + send@1.2.1: + dependencies: + debug: 4.4.3 + encodeurl: 2.0.3 + escape-html: 1.0.3 + etag: 1.8.1 + fresh: 2.0.0 + http-errors: 2.0.1 + mime-types: 3.0.2 + ms: 2.1.3 + on-finished: 2.4.2 + range-parser: 1.2.1 + statuses: 2.0.2 + transitivePeerDependencies: + - supports-color + + serve-static@2.2.1: + dependencies: + encodeurl: 2.0.3 + escape-html: 1.0.3 + parseurl: 1.3.3 + send: 1.2.1 + transitivePeerDependencies: + - supports-color + set-cookie-parser@3.1.0: {} + setimmediate@1.0.5: + optional: true + + setprototypeof@1.2.0: {} + + seventh@0.9.4: + dependencies: + setimmediate: 1.0.5 + optional: true + shallow-equal@1.2.1: {} shallow-equal@3.1.0: {} @@ -11569,12 +12403,42 @@ snapshots: shebang-regex@3.0.0: {} + side-channel-list@1.0.1: + dependencies: + es-errors: 1.3.0 + object-inspect: 1.13.4 + + side-channel-map@1.0.1: + dependencies: + call-bound: 1.0.4 + es-errors: 1.3.0 + get-intrinsic: 1.3.0 + object-inspect: 1.13.4 + + side-channel-weakmap@1.0.2: + dependencies: + call-bound: 1.0.4 + es-errors: 1.3.0 + get-intrinsic: 1.3.0 + object-inspect: 1.13.4 + side-channel-map: 1.0.1 + + side-channel@1.1.1: + dependencies: + es-errors: 1.3.0 + object-inspect: 1.13.4 + side-channel-list: 1.0.1 + side-channel-map: 1.0.1 + side-channel-weakmap: 1.0.2 + siginfo@2.0.0: {} signal-exit@4.1.0: {} simple-wcswidth@1.1.2: {} + sisteransi@1.0.5: {} + sonic-boom@4.2.1: dependencies: atomic-sleep: 1.0.0 @@ -11641,6 +12505,9 @@ snapshots: strict-event-emitter@0.5.1: {} + string-kit@0.19.5: + optional: true + string-width@4.2.3: dependencies: emoji-regex: 8.0.0 @@ -11724,6 +12591,18 @@ snapshots: tapable@2.3.3: {} + terminal-kit@3.1.4: + dependencies: + '@cronvel/get-pixels': 3.4.1 + chroma-js: 2.6.0 + lazyness: 1.2.0 + ndarray: 1.1.1 + nextgen-events: 1.5.3 + seventh: 0.9.4 + string-kit: 0.19.5 + tree-kit: 0.8.10 + optional: true + thenify-all@1.6.0: dependencies: thenify: 3.3.1 @@ -11770,6 +12649,8 @@ snapshots: dependencies: tldts-core: 7.0.32 + toidentifier@1.0.1: {} + token-types@6.1.2: dependencies: '@borewit/text-codec': 0.2.2 @@ -11782,6 +12663,9 @@ snapshots: tree-kill@1.2.2: {} + tree-kit@0.8.10: + optional: true + trim-lines@3.0.1: {} trough@2.2.0: {} @@ -11852,6 +12736,12 @@ snapshots: dependencies: tagged-tag: 1.0.0 + type-is@2.1.0: + dependencies: + content-type: 2.1.0 + media-typer: 1.1.1 + mime-types: 3.0.2 + typedoc@0.28.19(typescript@5.9.3): dependencies: '@gerrit0/mini-shiki': 3.23.0 @@ -11896,6 +12786,9 @@ snapshots: trough: 2.2.0 vfile: 6.0.3 + uniq@1.0.1: + optional: true + unist-util-is@6.0.1: dependencies: '@types/unist': 3.0.3 @@ -11919,6 +12812,8 @@ snapshots: unist-util-is: 6.0.1 unist-util-visit-parents: 6.0.2 + unpipe@1.0.0: {} + until-async@3.0.2: {} uri-js@4.4.1: @@ -11982,6 +12877,8 @@ snapshots: validate.io-number@1.0.3: {} + vary@1.1.2: {} + vfile-location@5.0.3: dependencies: '@types/unist': 3.0.3 @@ -11997,6 +12894,15 @@ snapshots: '@types/unist': 3.0.3 vfile-message: 4.0.3 + virtual-react-json-diff@1.0.20(react-dom@19.2.7(react@19.2.7))(react@19.2.7): + dependencies: + fast-myers-diff: 3.2.0 + json-diff-kit: 1.0.35 + react: 19.2.7 + react-window: 1.8.11(react-dom@19.2.7(react@19.2.7))(react@19.2.7) + transitivePeerDependencies: + - react-dom + vite@8.3.0(@types/node@26.6.1)(esbuild@0.28.0)(jiti@2.7.0)(tsx@4.22.4)(yaml@2.9.0): dependencies: lightningcss: 1.33.0 @@ -12103,6 +13009,8 @@ snapshots: commander: 2.20.3 cssfilter: 0.0.10 + xtend@4.0.2: {} + y18n@5.0.8: {} yaml@1.10.3: {} @@ -12134,6 +13042,10 @@ snapshots: yocto-queue@0.1.0: {} + zod-to-json-schema@3.25.2(zod@4.3.5): + dependencies: + zod: 4.3.5 + zod@4.3.5: {} zwitch@2.0.4: {} diff --git a/scripts/host-paths.mjs b/scripts/host-paths.mjs new file mode 100644 index 000000000..e1ab5f6d8 --- /dev/null +++ b/scripts/host-paths.mjs @@ -0,0 +1,63 @@ +#!/usr/bin/env node +// tsconfig `paths` for a host app that vendors this repo as a git subtree instead of installing +// the npm package. With them, host code imports `chaipro/` (or `chaicore/`) +// exactly as an npm host does, so docs, examples and the agent skills apply unchanged. +// +// node /scripts/host-paths.mjs # print the entries, run from the host root +// node /scripts/host-paths.mjs --write # merge them into ./tsconfig.json +// node /scripts/host-paths.mjs --tsconfig apps/web/tsconfig.json +// +// Next.js honours tsconfig `paths` for webpack and Turbopack, so no bundler alias is needed. +// The SDK's own source imports `~/…`, so `~/*` → `/src/*` is included too. +import { existsSync, readFileSync, writeFileSync } from "node:fs"; +import path from "node:path"; +import { fileURLToPath } from "node:url"; +import { readPackageEntries, toSpecifier } from "./package-entries.mjs"; + +const args = process.argv.slice(2); +const flag = (name) => (args.includes(name) ? args[args.indexOf(name) + 1] : null); +const write = args.includes("--write"); +const tsconfigPath = path.resolve(flag("--tsconfig") ?? "tsconfig.json"); + +const sdkRoot = path.resolve(path.dirname(fileURLToPath(import.meta.url)), ".."); +const { name, sources, nonSource } = readPackageEntries(sdkRoot); + +// tsconfig `paths` resolve against the directory of the tsconfig that declares them (no baseUrl). +let prefix = path.relative(path.dirname(tsconfigPath), sdkRoot).split(path.sep).join("/"); +if (!prefix.startsWith(".")) prefix = `./${prefix}`; +const at = (src) => `${prefix}/${src.replace(/^\.\//, "")}`; + +const paths = { [`~/*`]: [at("src/*")] }; +for (const [subpath, src] of Object.entries(sources)) paths[toSpecifier(name, subpath)] = [at(src)]; + +if (!write) { + console.log(JSON.stringify(paths, null, 2)); + console.error( + `\nAdd these to compilerOptions.paths in ${path.relative(process.cwd(), tsconfigPath) || "tsconfig.json"}` + + ` (or rerun with --write). ${nonSource.length} CSS export(s) have no source alias: ${nonSource.join(", ")}.`, + ); + process.exit(0); +} + +if (!existsSync(tsconfigPath)) { + console.error(`✖ ${tsconfigPath} not found; pass --tsconfig `); + process.exit(1); +} +let tsconfig; +try { + tsconfig = JSON.parse(readFileSync(tsconfigPath, "utf8")); +} catch { + console.error(`✖ ${tsconfigPath} is not plain JSON (comments?). Run without --write and paste the entries.`); + process.exit(1); +} +tsconfig.compilerOptions ??= {}; +const existing = tsconfig.compilerOptions.paths ?? {}; +if (existing["~/*"] && JSON.stringify(existing["~/*"]) !== JSON.stringify(paths["~/*"])) { + console.error( + `✖ "~/*" already maps to ${JSON.stringify(existing["~/*"])}; the SDK needs ${JSON.stringify(paths["~/*"])}.`, + ); + process.exit(1); +} +tsconfig.compilerOptions.paths = { ...existing, ...paths }; +writeFileSync(tsconfigPath, `${JSON.stringify(tsconfig, null, 2)}\n`); +console.log(`✓ ${Object.keys(paths).length} ${name} path aliases written to ${tsconfigPath}`); diff --git a/scripts/package-entries.mjs b/scripts/package-entries.mjs new file mode 100644 index 000000000..153f6eda5 --- /dev/null +++ b/scripts/package-entries.mjs @@ -0,0 +1,51 @@ +// The package's public subpaths and the TypeScript source behind each one. +// +// package.json "exports" points every JS subpath at `./dist/.js`; tsup.config.ts maps +// `` to its source file. Joining the two gives `chaipro/nextjs/server` → +// `./src/nextjs/server.ts`. Used by host-paths.mjs (aliases for subtree hosts) and by the +// agent-skills checks. Edition-agnostic: the package name comes from package.json. +import { readFileSync } from "node:fs"; +import path from "node:path"; + +/** + * @returns {{ name: string, version: string, sources: Record, nonSource: string[] }} + * `sources` maps export keys (`.`, `./registry`, `./ui/*`) to `./src/…` paths relative to `root`; + * `nonSource` lists export keys with no TypeScript source (CSS files). + */ +export function readPackageEntries(root) { + const pkg = JSON.parse(readFileSync(path.join(root, "package.json"), "utf8")); + const tsup = readFileSync(path.join(root, "tsup.config.ts"), "utf8"); + const block = /const entries = \{([\s\S]*?)\n\};/.exec(tsup); + if (!block) throw new Error("could not find `const entries = { … }` in tsup.config.ts"); + const entries = {}; + for (const m of block[1].matchAll(/^\s*"?([\w\-/]+)"?\s*:\s*"(\.\/src\/[^"]+)"/gm)) entries[m[1]] = m[2]; + + const sources = {}; + const nonSource = []; + for (const [key, target] of Object.entries(pkg.exports ?? {})) { + const file = typeof target === "string" ? target : (target.import ?? target.default); + const m = /^\.\/dist\/(.+)\.js$/.exec(file ?? ""); + if (!m) { + nonSource.push(key); + continue; + } + if (m[1].includes("*")) { + // `./ui/*` → `./dist/components/ui/*.js`: derive the source pattern from any matching entry. + const [head, tail] = m[1].split("*"); + const sample = Object.entries(entries).find(([e]) => e.startsWith(head) && e.endsWith(tail)); + if (sample) { + const stem = sample[0].slice(head.length, sample[0].length - tail.length); + const file = sample[1]; + const at = file.lastIndexOf(stem); + sources[key] = `${file.slice(0, at)}*${file.slice(at + stem.length).replace(/\.tsx?$/, "")}`; + } else nonSource.push(key); + continue; + } + if (entries[m[1]]) sources[key] = entries[m[1]]; + else nonSource.push(key); + } + return { name: pkg.name, version: pkg.version, sources, nonSource }; +} + +/** `.` → `chaipro`, `./nextjs/server` → `chaipro/nextjs/server`. */ +export const toSpecifier = (name, subpath) => (subpath === "." ? name : `${name}/${subpath.slice(2)}`); diff --git a/scripts/sync-lib.mjs b/scripts/sync-lib.mjs index e3cd6da83..fe0514f6c 100644 --- a/scripts/sync-lib.mjs +++ b/scripts/sync-lib.mjs @@ -25,6 +25,9 @@ export const ALSO_IDENTICAL = [ "scripts/sync-src.mjs", "scripts/sync-check.mjs", "scripts/sync-log.mjs", + // Path aliases for hosts that vendor either edition as a subtree; edition-agnostic. + "scripts/package-entries.mjs", + "scripts/host-paths.mjs", ]; const JUNK = new Set([".DS_Store", "Thumbs.db", "desktop.ini"]); diff --git a/src/builder/__mocks__/handlers.ts b/src/builder/__mocks__/handlers.ts deleted file mode 100644 index a410443d4..000000000 --- a/src/builder/__mocks__/handlers.ts +++ /dev/null @@ -1 +0,0 @@ -export { handlers } from "./handlers/index"; diff --git a/src/builder/__mocks__/server.ts b/src/builder/__mocks__/server.ts deleted file mode 100644 index 7b37f2acf..000000000 --- a/src/builder/__mocks__/server.ts +++ /dev/null @@ -1,4 +0,0 @@ -import { setupServer } from "msw/node"; -import { handlers } from "./handlers"; - -export const server = setupServer(...handlers); diff --git a/src/builder/atoms/blocks.ts b/src/builder/atoms/blocks.ts index 271fb6453..80cdb8f20 100644 --- a/src/builder/atoms/blocks.ts +++ b/src/builder/atoms/blocks.ts @@ -22,6 +22,7 @@ const OUTLINE_BLOCK_FIELDS = [ "_parent", "_type", "_name", + "_canMove", "tag", "_show", "_libBlockId", diff --git a/src/builder/atoms/ui.ts b/src/builder/atoms/ui.ts index 959e61154..488c20e0e 100644 --- a/src/builder/atoms/ui.ts +++ b/src/builder/atoms/ui.ts @@ -58,7 +58,28 @@ xShowBlocksAtom.debugLabel = "xShowBlocksAtom"; export const selectedLibraryAtom = atomWithStorage("_selectedLibrary", null); selectedLibraryAtom.debugLabel = "selectedLibraryAtom"; +// Last group picked in the Library tab, keyed by library id: each library has its own groups. +export const selectedLibraryGroupAtom = atomWithStorage>("_selectedLibraryGroup", {}); +selectedLibraryGroupAtom.debugLabel = "selectedLibraryGroupAtom"; + export const dataBindingActiveAtom = atom(true); dataBindingActiveAtom.debugLabel = "dataBindingActiveAtom"; + +/** + * @atom + * Collapsed settings-panel group labels (see `groupProps`), keyed by block type. + * A block type with no entry yet shows each group at its `defaultOpen`. + */ +export const collapsedSettingsGroupsAtom = atom>({}); +collapsedSettingsGroupsAtom.debugLabel = "collapsedSettingsGroupsAtom"; + +/** + * @atom + * Group labels the settings form is currently rendering, keyed by block type. Set + * by the grouped form template while mounted, so the expand/collapse-all toggle + * shows exactly when grouped sections are on screen. + */ +export const renderedSettingsGroupsAtom = atom>({}); +renderedSettingsGroupsAtom.debugLabel = "renderedSettingsGroupsAtom"; export const canvasThemeStorageKey = "chai-builder-canvas-theme"; export const lsThemeAtom = atomWithStorage(canvasThemeStorageKey, defaultThemeValues); diff --git a/src/builder/core/__tests__/test-utils.tsx b/src/builder/core/__tests__/test-utils.tsx deleted file mode 100644 index 76784e414..000000000 --- a/src/builder/core/__tests__/test-utils.tsx +++ /dev/null @@ -1,32 +0,0 @@ -import { render, RenderOptions } from "@testing-library/react"; -import { Provider } from "jotai"; -import { ReactElement, ReactNode } from "react"; -import { vi } from "vitest"; - -export type MockDocument = { - documentElement: { - classList: { - add: ReturnType void>>; - remove: ReturnType void>>; - }; - }; -}; - -interface CoreTestProviderProps { - children: ReactNode; -} - -export function CoreTestProvider({ children }: CoreTestProviderProps) { - return {children}; -} - -interface CustomRenderOptions extends Omit { - wrapper?: typeof CoreTestProvider; -} - -export function renderWithJotai(ui: ReactElement, options?: CustomRenderOptions) { - return render(ui, { wrapper: CoreTestProvider, ...options }); -} - -export * from "@testing-library/react"; -export { renderWithJotai as render }; diff --git a/src/builder/core/components/canvas/IframeInitialContent.ts b/src/builder/core/components/canvas/IframeInitialContent.ts index e26894112..7476cf00c 100644 --- a/src/builder/core/components/canvas/IframeInitialContent.ts +++ b/src/builder/core/components/canvas/IframeInitialContent.ts @@ -1,3 +1,4 @@ +import { TAILWIND_V4_PLUGIN_CSS } from "./tailwind-plugins.generated"; import { typeset } from "./typeset"; // NOTE: React may warn about script tags in this HTML string, but this is safe. @@ -41,7 +42,8 @@ export const IframeInitialContent: string = ` [data-drop="yes"] { outline: 2px dashed orange !important; outline-offset: -2px } [data-dnd="yes"] { pointer-events: auto !important} [data-dnd="no"],[data-block-type="GlobalBlock"],[data-block-type="PartialBlock"] > * { pointer-events: none !important; } - [data-block-type="GlobalBlock"],[data-block-type="PartialBlock"] { position: relative !important;display: inherit !important; } + [data-block-type="GlobalBlock"],[data-block-type="PartialBlock"]:not([data-partial-wrapper]) { position: relative !important;display: inherit !important; } + :where([data-partial-wrapper]) { position: relative; } .partial-overlay { pointer-events: auto !important; } [data-dnd-dragged="yes"] { opacity: 0.6; pointer-events: none; } [data-dnd-dragged="no"] { opacity: 1; pointer-events: auto !important; } @@ -134,6 +136,32 @@ const RTE_UTILITIES = ` } }`; +// The canvas iframe is not a real screen: it is scaled to fit the editor, and in pannable mode +// it is sized to its content. PanZoomHandler sets --chai-screen-height to what one screen should +// be, and every viewport-height utility reads it (unset = plain vh). Redefining the utilities +// instead of overriding matched classes keeps variants intact: `lg:h-screen` stays inside its +// media query and `lg:min-h-0` still beats a base `min-h-screen`. +export const SCREEN_HEIGHT_VAR = "--chai-screen-height"; +const SCREEN_UNITS = ["screen", "dvh", "svh", "lvh"] as const; +const screenHeightValue = (unit: (typeof SCREEN_UNITS)[number]) => + `var(${SCREEN_HEIGHT_VAR}, ${unit === "screen" ? "100vh" : `100${unit}`})`; +const SCREEN_HEIGHT_PROPERTIES = { h: "height", "min-h": "min-height", "max-h": "max-height" } as const; + +// v4: an @utility named like a core utility appends its declaration after the core one, so it wins. +const V4_SCREEN_HEIGHT_UTILITIES = Object.entries(SCREEN_HEIGHT_PROPERTIES) + .flatMap(([prefix, property]) => + SCREEN_UNITS.map((unit) => `@utility ${prefix}-${unit} { ${property}: ${screenHeightValue(unit)}; }`), + ) + .join("\n "); + +// v3: the same values as theme keys, merged into the Play CDN config by HeadTags. +export const V3_SCREEN_HEIGHT_THEME = Object.fromEntries( + (["height", "minHeight", "maxHeight"] as const).map((key) => [ + key, + Object.fromEntries(SCREEN_UNITS.map((unit) => [unit, screenHeightValue(unit)])), + ]), +); + // v3 Play CDN resolves `border-border` from the config pushed via `window.tailwind.config`. const TAILWIND_V3_STYLE = `