From f953b17350b41fd9109c9e38958323d187878f8b Mon Sep 17 00:00:00 2001 From: Cameron Pak Date: Thu, 23 Jul 2026 12:37:47 -0500 Subject: [PATCH 01/59] chore(spike): scaffold lunora outline Phase 0 Greenfield Lunora Vite+React app under spikes/lunora-outline to prove ADR 0009 invariants without Dotflowy custom sync. Co-authored-by: Cursor --- HANDOFF.md | 32 + spikes/lunora-outline/.env.example | 5 + spikes/lunora-outline/.gitignore | 38 + spikes/lunora-outline/README.md | 46 + spikes/lunora-outline/_oxlintrc.json | 8 + spikes/lunora-outline/index.html | 13 + spikes/lunora-outline/lunora/messages.ts | 45 + .../lunora-outline/lunora/ratelimit/schema.ts | 49 + spikes/lunora-outline/lunora/schema.ts | 12 + spikes/lunora-outline/package.json | 39 + spikes/lunora-outline/pnpm-lock.yaml | 7396 +++++++++++++++++ spikes/lunora-outline/pnpm-workspace.yaml | 28 + spikes/lunora-outline/public/favicon.svg | 1 + spikes/lunora-outline/public/icons.svg | 24 + spikes/lunora-outline/src/App.css | 184 + spikes/lunora-outline/src/App.tsx | 224 + spikes/lunora-outline/src/assets/hero.png | Bin 0 -> 13057 bytes spikes/lunora-outline/src/assets/react.svg | 1 + spikes/lunora-outline/src/assets/vite.svg | 1 + spikes/lunora-outline/src/index.css | 418 + spikes/lunora-outline/src/main.tsx | 29 + spikes/lunora-outline/src/server.ts | 14 + spikes/lunora-outline/tsconfig.app.json | 26 + spikes/lunora-outline/tsconfig.json | 7 + spikes/lunora-outline/tsconfig.node.json | 23 + spikes/lunora-outline/vite.config.ts | 8 + spikes/lunora-outline/wrangler.jsonc | 12 + 27 files changed, 8683 insertions(+) create mode 100644 HANDOFF.md create mode 100644 spikes/lunora-outline/.env.example create mode 100644 spikes/lunora-outline/.gitignore create mode 100644 spikes/lunora-outline/README.md create mode 100644 spikes/lunora-outline/_oxlintrc.json create mode 100644 spikes/lunora-outline/index.html create mode 100644 spikes/lunora-outline/lunora/messages.ts create mode 100644 spikes/lunora-outline/lunora/ratelimit/schema.ts create mode 100644 spikes/lunora-outline/lunora/schema.ts create mode 100644 spikes/lunora-outline/package.json create mode 100644 spikes/lunora-outline/pnpm-lock.yaml create mode 100644 spikes/lunora-outline/pnpm-workspace.yaml create mode 100644 spikes/lunora-outline/public/favicon.svg create mode 100644 spikes/lunora-outline/public/icons.svg create mode 100644 spikes/lunora-outline/src/App.css create mode 100644 spikes/lunora-outline/src/App.tsx create mode 100644 spikes/lunora-outline/src/assets/hero.png create mode 100644 spikes/lunora-outline/src/assets/react.svg create mode 100644 spikes/lunora-outline/src/assets/vite.svg create mode 100644 spikes/lunora-outline/src/index.css create mode 100644 spikes/lunora-outline/src/main.tsx create mode 100644 spikes/lunora-outline/src/server.ts create mode 100644 spikes/lunora-outline/tsconfig.app.json create mode 100644 spikes/lunora-outline/tsconfig.json create mode 100644 spikes/lunora-outline/tsconfig.node.json create mode 100644 spikes/lunora-outline/vite.config.ts create mode 100644 spikes/lunora-outline/wrangler.jsonc diff --git a/HANDOFF.md b/HANDOFF.md new file mode 100644 index 00000000..d6c0b803 --- /dev/null +++ b/HANDOFF.md @@ -0,0 +1,32 @@ +# HANDOFF — spike/lunora-outline + +**Delete this file before merging to `main`.** Branch-local build coordination only. + +## Status + +`scaffolded` — Phase 0 bootstrap done under `spikes/lunora-outline/`. + +## Sources of truth + +- Spike README: `spikes/lunora-outline/README.md` +- ADRs: `docs/adr/0008-…`, `docs/adr/0009-…` +- Research clone (machine-local): `/tmp/lunora-research` (`alpha` branch) + +## Tree state + +- Vite + React Lunora scaffold via `pnpm dlx lunorash@alpha init … --vite react` +- Demo schema: `lunora/schema.ts` (`messages` sharded by `channelId`) + ratelimit extension +- Demo mutators: `lunora/messages.ts` (`list` query, `send` mutation) +- `@lunora/db@1.0.0-alpha.27` added; outline shapes/mutators **not** written yet +- `.dev.vars` gitignored (do not commit) + +## Next + +1. Schema + shapes for outline nodes (sibling chain) +2. Structural mutators + watermark-aware optimistic overlay +3. Client UI exercising live sync / two-tab convergence +4. `authorizeShard: identity.userId === shardKey` + +## Note + +Root Dotflowy = bun. Always `cd spikes/lunora-outline` before any `pnpm` command. diff --git a/spikes/lunora-outline/.env.example b/spikes/lunora-outline/.env.example new file mode 100644 index 00000000..749b94bb --- /dev/null +++ b/spikes/lunora-outline/.env.example @@ -0,0 +1,5 @@ +# Lunora endpoint for the browser client. +# Vite statically replaces `import.meta.env.VITE_LUNORA_URL` at `vite dev` / build. +# Leave it unset to use the page origin; set it to point at a deployed Worker: +# +# VITE_LUNORA_URL=https://my-app.example.workers.dev diff --git a/spikes/lunora-outline/.gitignore b/spikes/lunora-outline/.gitignore new file mode 100644 index 00000000..43cf296f --- /dev/null +++ b/spikes/lunora-outline/.gitignore @@ -0,0 +1,38 @@ +# Logs +logs +*.log +npm-debug.log* +yarn-debug.log* +yarn-error.log* +pnpm-debug.log* +lerna-debug.log* + +node_modules +dist +dist-ssr +*.local + +# Editor directories and files +.vscode/* +!.vscode/extensions.json +.idea +.DS_Store +*.suo +*.ntvs* +*.njsproj +*.sln +*.sw? + +# Lunora +.wrangler +.env +.env.* +!.env.example +.lunora/ +.lunora-cache +lunora/_generated + +# Local secrets (wrangler / Lunora) +.dev.vars +.dev.vars.* +lunora/.lunora-schema.json diff --git a/spikes/lunora-outline/README.md b/spikes/lunora-outline/README.md new file mode 100644 index 00000000..324b894a --- /dev/null +++ b/spikes/lunora-outline/README.md @@ -0,0 +1,46 @@ +# Lunora outline spike (Phase 0) + +Proof that Dotflowy outline semantics can run on Lunora (shapes + mutators + watermark) **without** Dotflowy’s custom `{ops}` sync. + +## Purpose + +Greenfield Vite + React Lunora app. Next phases replace the scaffold `messages` demo with outline nodes, structural mutators, and ADR 0009-style optimistic hold until server watermark confirm. + +Constraining ADRs (repo root): + +- [ADR 0008 — Sync via a per-user Durable Object](../../docs/adr/0008-sync-via-a-per-user-durable-object.md) +- [ADR 0009 — Atomic structural writes](../../docs/adr/0009-atomic-structural-writes.md) + +## How to run + +**Always run pnpm from this directory.** Root Dotflowy uses bun (`packageManager: bun@…`); pnpm belongs only here. + +```sh +cd spikes/lunora-outline +pnpm install +pnpm dev +``` + +Other scripts: `pnpm build`, `pnpm codegen`, `pnpm lint`, `pnpm preview`. + +Local secrets: `.dev.vars` is gitignored (scaffold also ignores `.env` / `.env.*`). Copy from `.env.example` if you need `VITE_LUNORA_URL`. + +## Exit criteria + +1. Sibling-chain invariant under rapid structural edits (planner unit tests) +2. Two browsers, same user: live convergence without refresh +3. Optimistic overlay held until server watermark confirm (ADR 0009 P2 analogue) +4. Cross-user shard access denied (`authorizeShard: identity.userId === shardKey`) +5. Hard reload restores outline from shape seed + +## Pinned Lunora packages + +| Package | Version | +| ------------------- | ---------------- | +| `lunorash` | `1.0.0-alpha.98` | +| `@lunora/db` | `1.0.0-alpha.27` | +| `@lunora/react` | `1.0.0-alpha.31` | +| `@lunora/ratelimit` | `1.0.0-alpha.9` | +| `@lunora/vite` | `1.0.0-alpha.78` | +| `@lunora/studio` | `1.0.0-alpha.58` | +| `packageManager` | `pnpm@11.9.0` | diff --git a/spikes/lunora-outline/_oxlintrc.json b/spikes/lunora-outline/_oxlintrc.json new file mode 100644 index 00000000..6fa991da --- /dev/null +++ b/spikes/lunora-outline/_oxlintrc.json @@ -0,0 +1,8 @@ +{ + "$schema": "./node_modules/oxlint/configuration_schema.json", + "plugins": ["react", "typescript", "oxc"], + "rules": { + "react/rules-of-hooks": "error", + "react/only-export-components": ["warn", { "allowConstantExport": true }] + } +} diff --git a/spikes/lunora-outline/index.html b/spikes/lunora-outline/index.html new file mode 100644 index 00000000..3d38e144 --- /dev/null +++ b/spikes/lunora-outline/index.html @@ -0,0 +1,13 @@ + + + + + + + Vite + React + TS + + +
+ + + diff --git a/spikes/lunora-outline/lunora/messages.ts b/spikes/lunora-outline/lunora/messages.ts new file mode 100644 index 00000000..020c723d --- /dev/null +++ b/spikes/lunora-outline/lunora/messages.ts @@ -0,0 +1,45 @@ +import { RateLimiter, rateLimit, createDbStore } from "lunorash/ratelimit"; + +import type { MutationCtx } from "#lunora/_generated/server.js"; + +import { mutation, query, v } from "#lunora/_generated/server.js"; + +// Typed against the generated MutationCtx so `rateLimit(limiter, ...)` infers +// the full procedure context — `ctx.auth` in the key callback and a typed +// `ctx.db` in the downstream handler both depend on it. +const limiter = (ctx: MutationCtx) => + new RateLimiter({ + config: { + send: { kind: "token bucket", period: 60_000, rate: 30 }, + }, + store: createDbStore({ db: ctx.db as never, table: "ratelimit_buckets" }), + }); + +export const list = query + .input({ + channelId: v.string().meta({ schema: { maxLength: 256 } }), + limit: v.optional(v.number()), + }) + .query(async ({ args, ctx }) => { + const messages = await ctx.db + .query("messages") + .withIndex("by_channel", (q) => q.eq("channelId", args.channelId)) + .take(args.limit ?? 50); + + return { channelId: args.channelId, messages }; + }); + +export const send = mutation + .input({ + channelId: v.string().meta({ schema: { maxLength: 256 } }), + text: v.string().meta({ schema: { maxLength: 4096 } }), + }) + .use(rateLimit(limiter, "send", { key: (ctx) => ctx.auth.userId ?? "anon" })) + .mutation(async ({ args, ctx }) => { + const id = await ctx.db.insert("messages", { + channelId: args.channelId, + text: args.text, + }); + + return { channelId: args.channelId, id, text: args.text }; + }); diff --git a/spikes/lunora-outline/lunora/ratelimit/schema.ts b/spikes/lunora-outline/lunora/ratelimit/schema.ts new file mode 100644 index 00000000..70dbe3e0 --- /dev/null +++ b/spikes/lunora-outline/lunora/ratelimit/schema.ts @@ -0,0 +1,49 @@ +import type { RateLimitConfigMap } from "lunorash/ratelimit"; +import type { Middleware } from "lunorash/server"; + +import { createDbStore, RateLimiter } from "lunorash/ratelimit"; +import { + defineSchemaExtension, + defineTable, + definePlugin, + v, +} from "lunorash/server"; + +export const limits = { + default: { kind: "token bucket", period: 60_000, rate: 10 }, +} as const satisfies RateLimitConfigMap; + +export type LimitName = keyof typeof limits; + +export const makeRateLimiter = (ctx: { db: unknown }): RateLimiter => + new RateLimiter({ + config: limits, + store: createDbStore({ db: ctx.db as never, table: "ratelimit_buckets" }), + }); + +const middleware: Middleware< + { api?: Record; db: unknown }, + { api: Record; db: unknown } +> = ({ ctx, next }) => + next({ + ctx: { + ...ctx, + api: { ...ctx.api, ratelimit: makeRateLimiter(ctx) }, + }, + }); + +export const ratelimit = definePlugin("ratelimit", { + extension: defineSchemaExtension("ratelimit", { + tables: { + buckets: defineTable({ + key: v.string(), + value: v.number(), + ts: v.number(), + prev: v.optional(v.number()), + }) + .index("by_key", ["key"]) + .externallyManaged(), + }, + }), + middleware, +}); diff --git a/spikes/lunora-outline/lunora/schema.ts b/spikes/lunora-outline/lunora/schema.ts new file mode 100644 index 00000000..0461c536 --- /dev/null +++ b/spikes/lunora-outline/lunora/schema.ts @@ -0,0 +1,12 @@ +import { defineSchema, defineTable, v } from "lunorash/server"; + +import { ratelimit } from "./ratelimit/schema.js"; + +export default defineSchema({ + messages: defineTable({ + channelId: v.string(), + text: v.string(), + }) + .shardBy("channelId") + .index("by_channel", ["channelId"]), +}).extend(ratelimit.extension); diff --git a/spikes/lunora-outline/package.json b/spikes/lunora-outline/package.json new file mode 100644 index 00000000..ea4183b6 --- /dev/null +++ b/spikes/lunora-outline/package.json @@ -0,0 +1,39 @@ +{ + "name": "lunora-outline", + "version": "0.0.0", + "private": true, + "type": "module", + "imports": { + "#lunora/*": "./lunora/*" + }, + "scripts": { + "dev": "vite", + "build": "tsc -b && vite build", + "lint": "oxlint", + "preview": "vite preview", + "codegen": "lunora codegen", + "deploy": "vite build && lunora deploy" + }, + "dependencies": { + "@lunora/db": "1.0.0-alpha.27", + "@lunora/ratelimit": "1.0.0-alpha.9", + "@lunora/react": "1.0.0-alpha.31", + "lunorash": "1.0.0-alpha.98", + "react": "^19.2.7", + "react-dom": "^19.2.7" + }, + "devDependencies": { + "@cloudflare/workers-types": "^4.20260611.1", + "@lunora/studio": "1.0.0-alpha.58", + "@lunora/vite": "1.0.0-alpha.78", + "@types/node": "^24.13.3", + "@types/react": "^19.2.17", + "@types/react-dom": "^19.2.3", + "@vitejs/plugin-react": "^6.0.3", + "oxlint": "^1.74.0", + "typescript": "~6.0.2", + "vite": "^8.1.5", + "wrangler": "^4.100.0" + }, + "packageManager": "pnpm@11.9.0" +} diff --git a/spikes/lunora-outline/pnpm-lock.yaml b/spikes/lunora-outline/pnpm-lock.yaml new file mode 100644 index 00000000..8dd45780 --- /dev/null +++ b/spikes/lunora-outline/pnpm-lock.yaml @@ -0,0 +1,7396 @@ +lockfileVersion: '9.0' + +settings: + autoInstallPeers: true + excludeLinksFromLockfile: false + +importers: + + .: + dependencies: + '@lunora/db': + specifier: 1.0.0-alpha.27 + version: 1.0.0-alpha.27(@tanstack/db@0.6.16(typescript@6.0.3))(@tanstack/offline-transactions@1.0.41(typescript@6.0.3))(@tanstack/react-query@5.101.4(react@19.2.8))(@tanstack/solid-query@5.101.4(solid-js@1.9.14))(@tanstack/svelte-query@6.1.38(svelte@5.56.7))(@tanstack/vue-query@5.101.4(vue@3.5.40(typescript@6.0.3)))(react@19.2.8)(solid-js@1.9.14)(svelte@5.56.7)(vue@3.5.40(typescript@6.0.3)) + '@lunora/ratelimit': + specifier: 1.0.0-alpha.9 + version: 1.0.0-alpha.9 + '@lunora/react': + specifier: 1.0.0-alpha.31 + version: 1.0.0-alpha.31(@tanstack/react-query@5.101.4(react@19.2.8))(@tanstack/solid-query@5.101.4(solid-js@1.9.14))(@tanstack/svelte-query@6.1.38(svelte@5.56.7))(@tanstack/vue-query@5.101.4(vue@3.5.40(typescript@6.0.3)))(react-dom@19.2.8(react@19.2.8))(react@19.2.8)(solid-js@1.9.14)(svelte@5.56.7)(vue@3.5.40(typescript@6.0.3)) + lunorash: + specifier: 1.0.0-alpha.98 + version: 1.0.0-alpha.98(f40c1a55ed907cdb607493dafc6daaa5) + react: + specifier: ^19.2.7 + version: 19.2.8 + react-dom: + specifier: ^19.2.7 + version: 19.2.8(react@19.2.8) + devDependencies: + '@cloudflare/workers-types': + specifier: ^4.20260611.1 + version: 4.20260702.1 + '@lunora/studio': + specifier: 1.0.0-alpha.58 + version: 1.0.0-alpha.58(@cloudflare/workers-types@4.20260702.1)(@tanstack/solid-query@5.101.4(solid-js@1.9.14))(@tanstack/svelte-query@6.1.38(svelte@5.56.7))(@tanstack/vue-query@5.101.4(vue@3.5.40(typescript@6.0.3)))(@types/react-dom@19.2.3(@types/react@19.2.17))(@types/react@19.2.17)(immer@11.1.15)(react-dom@19.2.8(react@19.2.8))(react-is@18.3.1)(react@19.2.8)(redux@5.0.1)(solid-js@1.9.14)(svelte@5.56.7)(vue@3.5.40(typescript@6.0.3)) + '@lunora/vite': + specifier: 1.0.0-alpha.78 + version: 1.0.0-alpha.78(@ai-sdk/provider@4.0.3)(@cloudflare/workers-types@4.20260702.1)(@lunora/server@1.0.0-alpha.30(@cloudflare/workers-types@4.20260702.1))(@lunora/studio@1.0.0-alpha.58(@cloudflare/workers-types@4.20260702.1)(@tanstack/solid-query@5.101.4(solid-js@1.9.14))(@tanstack/svelte-query@6.1.38(svelte@5.56.7))(@tanstack/vue-query@5.101.4(vue@3.5.40(typescript@6.0.3)))(@types/react-dom@19.2.3(@types/react@19.2.17))(@types/react@19.2.17)(immer@11.1.15)(react-dom@19.2.8(react@19.2.8))(react-is@18.3.1)(react@19.2.8)(redux@5.0.1)(solid-js@1.9.14)(svelte@5.56.7)(vue@3.5.40(typescript@6.0.3)))(@lunora/values@1.0.0-alpha.10)(@types/node@24.13.3)(ai@7.0.31(zod@4.4.3))(luxon@3.7.2)(react-dom@19.2.8(react@19.2.8))(react@19.2.8)(vite@8.1.5(@types/node@24.13.3)(esbuild@0.28.1)(jiti@2.7.0)(yaml@2.9.0))(wrangler@4.113.0(@cloudflare/workers-types@4.20260702.1))(zod@4.4.3) + '@types/node': + specifier: ^24.13.3 + version: 24.13.3 + '@types/react': + specifier: ^19.2.17 + version: 19.2.17 + '@types/react-dom': + specifier: ^19.2.3 + version: 19.2.3(@types/react@19.2.17) + '@vitejs/plugin-react': + specifier: ^6.0.3 + version: 6.0.4(vite@8.1.5(@types/node@24.13.3)(esbuild@0.28.1)(jiti@2.7.0)(yaml@2.9.0)) + oxlint: + specifier: ^1.74.0 + version: 1.75.0 + typescript: + specifier: ~6.0.2 + version: 6.0.3 + vite: + specifier: ^8.1.5 + version: 8.1.5(@types/node@24.13.3)(esbuild@0.28.1)(jiti@2.7.0)(yaml@2.9.0) + wrangler: + specifier: ^4.100.0 + version: 4.113.0(@cloudflare/workers-types@4.20260702.1) + +packages: + + '@ai-sdk/gateway@4.0.23': + resolution: {integrity: sha512-f85diFdPMXYJpxCjOYZchMQkRH8h3r6lhK4Q2xmzJ7UA2OQ80L3W7tFu61742xGQK7zHWm5AhxYhNuc50H9SGQ==} + engines: {node: '>=22'} + peerDependencies: + zod: ^3.25.76 || ^4.1.8 + + '@ai-sdk/provider-utils@5.0.11': + resolution: {integrity: sha512-7/96wE+ZsKB35iS9ASyllrE4Ym/EolXEB7AkuJ5FI++fmS85BVTAs77890C+1Z2jwHfBKjBQSBmsliOsAh0iFQ==} + engines: {node: '>=22'} + peerDependencies: + zod: ^3.25.76 || ^4.1.8 + + '@ai-sdk/provider@4.0.3': + resolution: {integrity: sha512-e0CpNWJUY7OxAFAnCZkw+ri9QOHWwTs1tXP42782KFGCU07qt8NiXCrCVowyCB5dP2r5/Uls+g2oPd8kOJn9dw==} + engines: {node: '>=22'} + + '@antfu/install-pkg@1.1.0': + resolution: {integrity: sha512-MGQsmw10ZyI+EJo45CdSER4zEb+p31LpDAFp2Z3gkSd1yqVZGi0Ebx++YTEMonJy4oChEMLsxZ64j8FH6sSqtQ==} + + '@babel/code-frame@7.29.7': + resolution: {integrity: sha512-Aup7aUOfpbAUg2ROOJN6Iw5f9DMBlzu0mIkm/malLQFN/YQgO48wCj0Kxa3sEHJvPVFg7siR+qRInwXd2qhQKw==} + engines: {node: '>=6.9.0'} + + '@babel/compat-data@7.29.7': + resolution: {integrity: sha512-locTkQyKvwIEgBzVrn8693ebc97F2U8ZHjbXwDXJ5Fn2TCpNwTlKcaKLkdHop5c/icOFE7qt7Q9JC5hnKNa6Gg==} + engines: {node: '>=6.9.0'} + + '@babel/core@7.29.7': + resolution: {integrity: sha512-RgHBCvtjbOK2gXSNBNIkNoEc9qoVEtau3hj8gEqKQuL3HZAibKarWFEI3Lfm6EYKkLalOh8eSrj9b+ch9H/VBA==} + engines: {node: '>=6.9.0'} + + '@babel/generator@7.29.7': + resolution: {integrity: sha512-DkXD5OJQaAQIdZ1bt3UZdEnHAn9Imd3IVBdX03UFe+ony9Ojw5pzr9YVKGDY1jt+Gcn/FnGkNf8r+Vj5NOJWtQ==} + engines: {node: '>=6.9.0'} + + '@babel/helper-compilation-targets@7.29.7': + resolution: {integrity: sha512-wem6WaBj4NaVYVdNhLPPVacES6ZJ+KBBfSkTMD3YZxbP3rm3Di85tJU5ljaUNhaOynt+Aj0xruhYuzQBt8n71g==} + engines: {node: '>=6.9.0'} + + '@babel/helper-globals@7.29.7': + resolution: {integrity: sha512-3nQVUAtvkKH9zahfWgw96Jc/uFOmjACE1kQz82E2lqWmHBgjzbNlsC22nuQTfahmWeQtTq5nQ/4Nnd2A1wj4zA==} + engines: {node: '>=6.9.0'} + + '@babel/helper-module-imports@7.29.7': + resolution: {integrity: sha512-ejHwrQQYcm9xnTivShn2IDOlIzInN34AXskvq9QicvCtEzq1Vzclu/tKF8Jq1Cg8JG2GL6/EmjgsCT7lXepE3g==} + engines: {node: '>=6.9.0'} + + '@babel/helper-module-transforms@7.29.7': + resolution: {integrity: sha512-UPUVSyXbOh627KiCIGQSgwWzGeBKLkaJ9PJEdrngIwMSzxLR4jS4+f1f1jb7VzBbg8nFLaYotvVPFCTqdrmTAg==} + engines: {node: '>=6.9.0'} + peerDependencies: + '@babel/core': ^7.0.0 + + '@babel/helper-string-parser@7.29.7': + resolution: {integrity: sha512-Pb5ijPrZ89GDH8223L4UP8i6QApWxs04RbPQJTeWDV0/keR2E36MeKnyr6LYmUUvqRRI+Iv87SuF1W6ErINzYw==} + engines: {node: '>=6.9.0'} + + '@babel/helper-validator-identifier@7.29.7': + resolution: {integrity: sha512-qehxGkRj55h/ff8EMaJ+cYhyaKlHIxqYDn682wQD7RNp9UujOQsHog2uS0r2vzr4pW+sXf90NeeayjcNaX3fFg==} + engines: {node: '>=6.9.0'} + + '@babel/helper-validator-option@7.29.7': + resolution: {integrity: sha512-N9ZErrD+yW5geCDtBqnOoxmR8+tNKiGuxKlDpuJxfsqpa2dFcexaziGAE/qoHLiDDreVNMupxGmSoNlyvsA3gw==} + engines: {node: '>=6.9.0'} + + '@babel/helpers@7.29.7': + resolution: {integrity: sha512-1k2lAGRMfHTcwuNYcCNUmaUffmQv8KWMfh2iJUUeRlwlwH4FdNG7mfPI10NPfLHJFThE4Tyr4mv7kTNZOiPuBg==} + engines: {node: '>=6.9.0'} + + '@babel/parser@7.29.7': + resolution: {integrity: sha512-hnORnjP/1P/zFEndoeX+n+t1RwWRJiJpM/jO7FW32Kn9r5+sJB2JWOdYo4L6k78j15eCwY3Gm/7364B1EMwtNg==} + engines: {node: '>=6.0.0'} + hasBin: true + + '@babel/runtime@7.29.7': + resolution: {integrity: sha512-Nq8OhGWiZIZGV6hLHoyAKLLcJihP/xFeBMGJoUrxTX2psI8dCifzLhZISFb+VWS3wFMRDmCGw5R+dOySCqPLhw==} + engines: {node: '>=6.9.0'} + + '@babel/template@7.29.7': + resolution: {integrity: sha512-puq+Gf35oI24FeN11LkoUQFqv9uwNeWpxXZi/Ji3rRIoKAzKnxRaZ+Gkj0vKS9ZCiTESfng1N9LyOyXvo+m+Gg==} + engines: {node: '>=6.9.0'} + + '@babel/traverse@7.29.7': + resolution: {integrity: sha512-EhlfNQtZ+NK22w5BM61ciuiq1m58ed33Wr1Xan//ZRTy6hgjnwyCffRYwzsGXdASJSUJ1guZILsErh1eQcl+zw==} + engines: {node: '>=6.9.0'} + + '@babel/types@7.29.7': + resolution: {integrity: sha512-4zBIxpPzowiZpusoFkyGVwakdRJUyuH5PxQ/PrqghfdFWWasvnCdPfQXHrenDai+gyLARulZjZowCOj6fjT4pA==} + engines: {node: '>=6.9.0'} + + '@balena/dockerignore@1.0.2': + resolution: {integrity: sha512-wMue2Sy4GAVTk6Ic4tJVcnfdau+gx2EnG7S+uAEe+TWJFqE4YoWN4/H8MSLj4eYJKxGg26lZwboEniNiNwZQ6Q==} + + '@base-ui/react@1.6.0': + resolution: {integrity: sha512-/jzjTWJYXhRFO45Bev9lc3cHbmjzCMpUqbMZ2AgKy/z25mY9B6shGSNcXcjQar9n5doM0KYW1W8fcFv2jZBuMw==} + engines: {node: '>=14.0.0'} + peerDependencies: + '@date-fns/tz': ^1.2.0 + '@types/react': ^17 || ^18 || ^19 + date-fns: ^4.0.0 + react: ^17 || ^18 || ^19 + react-dom: ^17 || ^18 || ^19 + peerDependenciesMeta: + '@date-fns/tz': + optional: true + '@types/react': + optional: true + date-fns: + optional: true + + '@base-ui/utils@0.3.1': + resolution: {integrity: sha512-gFFiltORVmW/N6IILTGxizP3PBpVpysqML1ALY5Vk0mH+7faVkCknOU31goYHN5Aoek2dkjxva1XOD2Ce9WuIg==} + peerDependencies: + '@types/react': ^17 || ^18 || ^19 + react: ^17 || ^18 || ^19 + react-dom: ^17 || ^18 || ^19 + peerDependenciesMeta: + '@types/react': + optional: true + + '@bomb.sh/tab@0.0.19': + resolution: {integrity: sha512-dTRfo9Q9B+lbLG3JCu8a/AGQSfD2XXcFcnakQzVjSOX+VvR/s9zpsH8TlqV3iHqazniRn1Ypwd1hcRlXcu/4BA==} + hasBin: true + peerDependencies: + cac: ^6.7.14 + citty: ^0.1.6 || ^0.2.0 + commander: ^13.1.0 || ^14.0.0 || ^15.0.0 + peerDependenciesMeta: + cac: + optional: true + citty: + optional: true + commander: + optional: true + + '@cloudflare/kv-asset-handler@0.5.0': + resolution: {integrity: sha512-jxQYkj8dSIzc0cD6cMMNdOc1UVjqSqu8BZdor5s8cGjW2I8BjODt/kWPVdY+u9zj3ms75Q5qaZgnxUad83+eAg==} + engines: {node: '>=22.0.0'} + + '@cloudflare/unenv-preset@2.16.1': + resolution: {integrity: sha512-ECxObrMfyTl5bhQf/lZCXwo5G6xX9IAUo+nDMKK4SZ8m4Jvvxp52vilxyySSWh2YTZz8+HQ07qGH/2rEom1vDw==} + peerDependencies: + unenv: 2.0.0-rc.24 + workerd: '>1.20260305.0 <2.0.0-0' + peerDependenciesMeta: + workerd: + optional: true + + '@cloudflare/vite-plugin@1.45.1': + resolution: {integrity: sha512-C+iDpO9pVH7IqrjdYtUV+obcTAdpiNk0OSinGEZZyd2ZWyGVjGk7iJ2p3xpMBpZuTa1I4hfAECNp0yN/8f3PIQ==} + hasBin: true + peerDependencies: + vite: ^6.1.0 || ^7.0.0 || ^8.0.0 + wrangler: ^4.112.0 + + '@cloudflare/workerd-darwin-64@1.20260714.1': + resolution: {integrity: sha512-ZWXqAN8G7Cx9hMRQuk+59ziJhR3j1F4iO+Qs8aHdfKZ3Dq5Yi/57xvkJTgCGBnW1YU/L78r8f6HEy51bwbTpNw==} + engines: {node: '>=16'} + cpu: [x64] + os: [darwin] + + '@cloudflare/workerd-darwin-64@1.20260721.1': + resolution: {integrity: sha512-VivNMhiEdZIB4JBWxf1RMJGROErv53qmQ+dvhjA1evrCouvqRYW718VqDideU3PSV7Ythl5Df48NqZYWoaEHpQ==} + engines: {node: '>=16'} + cpu: [x64] + os: [darwin] + + '@cloudflare/workerd-darwin-arm64@1.20260714.1': + resolution: {integrity: sha512-tueWxWC3wyCbMG6zRAxsMXX0YLgrRWbiAPYFQ2uJ7dUH8G+5E7UTWaQS9B1HdJ0bpKFW1NWxhs1o2noKVFSUYg==} + engines: {node: '>=16'} + cpu: [arm64] + os: [darwin] + + '@cloudflare/workerd-darwin-arm64@1.20260721.1': + resolution: {integrity: sha512-k7oye1ZiuwnnBBA2eTMduconr/ud5ZxFtRNTsYwMdmJeeeislw2+M72otrHxxvybCP7JWPPlJ38uhfajpcyhOA==} + engines: {node: '>=16'} + cpu: [arm64] + os: [darwin] + + '@cloudflare/workerd-linux-64@1.20260714.1': + resolution: {integrity: sha512-1VChTZRb0l0F7R4e1G5RtLKV4oFi6x+rQgxh2+yu887j3l/3TLgatuv1L8/5zhc9gKEhATTxOh0e52Rtd9dDWQ==} + engines: {node: '>=16'} + cpu: [x64] + os: [linux] + + '@cloudflare/workerd-linux-64@1.20260721.1': + resolution: {integrity: sha512-hon0lW4ZQ4boAVgaw+0ZFTNS8v5MWPWvK0HZnt4tDpKYnDUviLZawtUW3KqvFmCQTipVHl1S34j3J8Eqb93hGQ==} + engines: {node: '>=16'} + cpu: [x64] + os: [linux] + + '@cloudflare/workerd-linux-arm64@1.20260714.1': + resolution: {integrity: sha512-rMm3G+NirG2UdgHIRDdF1asNC6FqgIzZzkRG+VDhhDGcVxAQwvrMT1E38BivEvHr3G04MB4AfhcOczX0+GtRkQ==} + engines: {node: '>=16'} + cpu: [arm64] + os: [linux] + + '@cloudflare/workerd-linux-arm64@1.20260721.1': + resolution: {integrity: sha512-nAl+HRQqpX5b7xVwWcvLPZmCk8NQ2yjI0yvJTWcHiRswbMEg1ZZckVmjJUAn0PHzZARbCSyIV7v3UjM+SPRmIQ==} + engines: {node: '>=16'} + cpu: [arm64] + os: [linux] + + '@cloudflare/workerd-windows-64@1.20260714.1': + resolution: {integrity: sha512-cGqnU3Hg2YZS/k3SAqrMp1DjpdsyFde72tWltdl6ZT9+SFz/Zrk/8gyTU1TcxC4YApXeNVH5TyU5cOGPgUJ0pg==} + engines: {node: '>=16'} + cpu: [x64] + os: [win32] + + '@cloudflare/workerd-windows-64@1.20260721.1': + resolution: {integrity: sha512-9paFG5cMTKz/CRixnEEnZbe5uvFPBFSDthxJHANfCWhUtBj49GSL1FPIokIg+Q+H8DGJEExU0lL92LtxD0lTxQ==} + engines: {node: '>=16'} + cpu: [x64] + os: [win32] + + '@cloudflare/workers-types@4.20260702.1': + resolution: {integrity: sha512-mOhf5TUEB1m2vPrxtqoIGfz0fUC9xyxRDx5gWHy5s+OCo6dcV+g7wI1R7gYCMFohhqF/2y2xeKVwMwCJjfn/WA==} + + '@cspotcode/source-map-support@0.8.1': + resolution: {integrity: sha512-IchNf6dN4tHoMFIn/7OE8LWZ19Y6q/67Bmf6vnGREv8RSbBVb9LPJxEcnwrcwX6ixSvaiGoomAUvu4YSxXrVgw==} + engines: {node: '>=12'} + + '@emnapi/core@1.11.1': + resolution: {integrity: sha512-RSvbQmHzdKzNsLYa/wHrbc3KN4sYLKAdPZxqiM2HATqv/SBk2/ENSHpvXGaLOMcsAyz0poEGqkmmKYG3OWiJEQ==} + + '@emnapi/runtime@1.11.1': + resolution: {integrity: sha512-vgj7R3y3Wgx24IQaGPA/R6YFXLHVMOZ0uVEyIQPaWs+rd1AzfEMXlAC22FYwO1XkKR6NPsq7mUandH8oIRdZFw==} + + '@emnapi/runtime@1.11.2': + resolution: {integrity: sha512-kyOl3X0DuTiT1h2ft8r2fYO8JYtU9a9Xis/zBSiGArNaagCOWx90N1k2wxp18czFDH+OgcWGb5ZP/XMt3dcyPA==} + + '@emnapi/wasi-threads@1.2.2': + resolution: {integrity: sha512-c95qOXkHdydNKhscBTebqEC1CVAZpyqOfVfBzQ1qgzyl3gfeldUjIggDbIZgDKsHLgnsM+igH7TJ/eAasaVuMA==} + + '@esbuild/aix-ppc64@0.28.1': + resolution: {integrity: sha512-Svl7tq8k/08+p6CXPpRjQ1fKX+1odH/BQbb48fV6fj3CWHhsoIOoY87w1oHXm0qEpkIK3ZfVgp0hed3XBXzXMQ==} + engines: {node: '>=18'} + cpu: [ppc64] + os: [aix] + + '@esbuild/android-arm64@0.28.1': + resolution: {integrity: sha512-34EGEbCIAgosYz6goLcopX6Mo7NyGv9tfwEM2/7Ce2VcVRk568iSvniGWcUXIy7wEDR1wzolcxcriFVrWYcwBg==} + engines: {node: '>=18'} + cpu: [arm64] + os: [android] + + '@esbuild/android-arm@0.28.1': + resolution: {integrity: sha512-0k2F129Xdio1TdJfzJ8sy1Q47vUD2NnwdhiAf7drUN1EBTfPf4hsFCtmMgu/6m8JSzsBrlmVjudMBQqOfG8usQ==} + engines: {node: '>=18'} + cpu: [arm] + os: [android] + + '@esbuild/android-x64@0.28.1': + resolution: {integrity: sha512-dbwY7ltSMDWsRatcRpCnES4F+im88OCUgGZjy52shC7GqHRE/cYlxNbB4Z4UpJswpcc4Qxd2oE/ufM0p61IKng==} + engines: {node: '>=18'} + cpu: [x64] + os: [android] + + '@esbuild/darwin-arm64@0.28.1': + resolution: {integrity: sha512-TZbWkQY7kvTAXbXUT7uVACR5cMHsDiSz9z7ZKAX/RTq/WJEk3QyRr0wZpNhBDX+/0CtdqUIJlOiodQcta6tY3Q==} + engines: {node: '>=18'} + cpu: [arm64] + os: [darwin] + + '@esbuild/darwin-x64@0.28.1': + resolution: {integrity: sha512-zfdzgK9ACBNZLI/CyHTOx81SyNbM6YXn7rxSgX97VjyiPl9W1i4Ka4fgKECEoFCKGpvBj5qArWIGgQjOwkgskQ==} + engines: {node: '>=18'} + cpu: [x64] + os: [darwin] + + '@esbuild/freebsd-arm64@0.28.1': + resolution: {integrity: sha512-wG2EA8ENdEI0qhkSZMjfqrdY+ziCYCPMmtZjjIwOmXFjmyzEHn+UUxk5of+SYsjtfs3VpnlC7QLzSI5hY/rOAw==} + engines: {node: '>=18'} + cpu: [arm64] + os: [freebsd] + + '@esbuild/freebsd-x64@0.28.1': + resolution: {integrity: sha512-i7dZ9vQgnvSCzi/rYCXNgtF/U+eKZNJBzu3eTQbRgHnM7tNSizLOkRFAl3qzVc/Op/u5YkHHa4pf/3DOYHthLQ==} + engines: {node: '>=18'} + cpu: [x64] + os: [freebsd] + + '@esbuild/linux-arm64@0.28.1': + resolution: {integrity: sha512-yHs+0uc8+nvEAfAfxrWQKK5peSNzBc4PegcMO0EJ2hT71uA7vB8Ihg2e77R2P7SG5uYjPbHlLLmve4LLLRCf0g==} + engines: {node: '>=18'} + cpu: [arm64] + os: [linux] + + '@esbuild/linux-arm@0.28.1': + resolution: {integrity: sha512-qVXBOHQS+d5Y722GwJzJUtOLlX7km3CraOaGormF1pDtPd2C/l1SHRPgjLunLGe51Sh5YYWKMFDyV4SxgMQYTQ==} + engines: {node: '>=18'} + cpu: [arm] + os: [linux] + + '@esbuild/linux-ia32@0.28.1': + resolution: {integrity: sha512-d1z4ZuP0ajrfz/FhGT4vv278rX8KnPPJx8i5+AtK7TYbx9Le9F1hyzurZpkEyjkGa9dUGhQow4C1NmeGvqxN2w==} + engines: {node: '>=18'} + cpu: [ia32] + os: [linux] + + '@esbuild/linux-loong64@0.28.1': + resolution: {integrity: sha512-M5sRjUVZrkm1OAPR3dlOYzNmN+loZKGVi1VUQGrwuqLcbR6qeAz+famMhjASeH3YVKvZz+zT1jlh/keC3Rj/lg==} + engines: {node: '>=18'} + cpu: [loong64] + os: [linux] + + '@esbuild/linux-mips64el@0.28.1': + resolution: {integrity: sha512-mRObBZeHh2OxcBFPWE/FjylkRgZdYuiTR3vaTozquCGOH14iP9oN4x4Ge81CoIDYQrXmIxpFumJBu5MtZpnQJQ==} + engines: {node: '>=18'} + cpu: [mips64el] + os: [linux] + + '@esbuild/linux-ppc64@0.28.1': + resolution: {integrity: sha512-slScBsMAb3GFDcdrCgLwZtPYRoH2H/youv10QiZyRjmsP48fznoveWytSgCI/R0ZcUgpc0ZhIUEx6LHts8yrfQ==} + engines: {node: '>=18'} + cpu: [ppc64] + os: [linux] + + '@esbuild/linux-riscv64@0.28.1': + resolution: {integrity: sha512-kw0owk1o0GFETUJyW0jc0G4Yzs0BHZn0JDZ8JRT088vjJYX777BAs1fDGxAC+q831qOs2DTC96mNsG2opdfyyQ==} + engines: {node: '>=18'} + cpu: [riscv64] + os: [linux] + + '@esbuild/linux-s390x@0.28.1': + resolution: {integrity: sha512-/lAIjX8aYFRByhh6L5rYtPEDRqa9de/4V/juOXcta5frjvzXO4/sqEtyytse0g3zZFuWu5cDN0MkLz2qRDD2Ag==} + engines: {node: '>=18'} + cpu: [s390x] + os: [linux] + + '@esbuild/linux-x64@0.28.1': + resolution: {integrity: sha512-u/anNYF2mmVOEDwLtnQ1wOr3EZ9sTNGLWrsYGYwHWzGA3Si84IOkHXlbWTD1NB+9/1lcnweYKO54uhxZydNzfA==} + engines: {node: '>=18'} + cpu: [x64] + os: [linux] + + '@esbuild/netbsd-arm64@0.28.1': + resolution: {integrity: sha512-oks0DYbLwWMmaakTsCb+zL4E+aHRVLom9IJZOAthMQEPiQmydXHkziYEsGYRx0uNV/IjEKGAV941JzH02pflqw==} + engines: {node: '>=18'} + cpu: [arm64] + os: [netbsd] + + '@esbuild/netbsd-x64@0.28.1': + resolution: {integrity: sha512-aeL6lAnN89Hz43Mlh1G8ARasbuoYvSITDEx0tHh5b7jJnHcssqgjy9Yx430GDpmCa6OyrKoS0aNRjKundRizGg==} + engines: {node: '>=18'} + cpu: [x64] + os: [netbsd] + + '@esbuild/openbsd-arm64@0.28.1': + resolution: {integrity: sha512-MEFJe5C3R8pwXdZ5Y21oo6m7ePiS0d9pWucn99O/wvyJZChoIQKrQDxKrGeW8F5+T0okTHesAmDeiHDTIq0V/Q==} + engines: {node: '>=18'} + cpu: [arm64] + os: [openbsd] + + '@esbuild/openbsd-x64@0.28.1': + resolution: {integrity: sha512-i/ZLIOafE0Z8cI/XANJAixoJL/uRAoS2xOA3rb0xN+KK0K177cMAsQYkzHtBrtMXAKuAc7HGgcWiZ/sRC1Nxgw==} + engines: {node: '>=18'} + cpu: [x64] + os: [openbsd] + + '@esbuild/openharmony-arm64@0.28.1': + resolution: {integrity: sha512-ge+Z7EXFNt2BO1oAMsVpiQ8EwndV9i1xXerAeTIK7AtPs3bKFXQM7nlRxDSIUIMeueR1CNXxqztLzdNeReKBJg==} + engines: {node: '>=18'} + cpu: [arm64] + os: [openharmony] + + '@esbuild/sunos-x64@0.28.1': + resolution: {integrity: sha512-BEjgtECkL3vY+SaSQ6nzVfiALUeFxpawyp8Jmf5PtYhf1Ug40N1h/hxlhts+f1FvSvarEigdxS3BlSMI2PJLcQ==} + engines: {node: '>=18'} + cpu: [x64] + os: [sunos] + + '@esbuild/win32-arm64@0.28.1': + resolution: {integrity: sha512-lCv9eK/H6ZJWbE7bh2nw54CZ9M2nupBxJcTsdk/QQnWkdSjKGuxmmH8/GWrlT1eMmZfn4dGcCjRte397WqfQXA==} + engines: {node: '>=18'} + cpu: [arm64] + os: [win32] + + '@esbuild/win32-ia32@0.28.1': + resolution: {integrity: sha512-zvb/mB2bSCoJOpoCBgYKKpX6YM6mJBlBUVUtVj41DlZJVEB6/0CKlRYxP5wWl1C1ILiCoAU5wZZ4q1P3qeS6Eg==} + engines: {node: '>=18'} + cpu: [ia32] + os: [win32] + + '@esbuild/win32-x64@0.28.1': + resolution: {integrity: sha512-bm4Mowrv+GXMlpWX++EcXw/iLyd1o3+bJkC2DkWXYVvgZCqD/bSj9ctZeAMC3cIxgjRVR2Dufaiu4YPxr5gW1A==} + engines: {node: '>=18'} + cpu: [x64] + os: [win32] + + '@faker-js/faker@10.5.0': + resolution: {integrity: sha512-bsxD8WLS5lIj7aaoCx1YJkktqYj5vlBUE6HWzu2Q51ksrGJ0H737ECCKlFU7Yf8Br45z9t99frBp/J7kzbMPAg==} + engines: {node: ^20.19.0 || ^22.13.0 || ^23.5.0 || >=24.0.0, npm: '>=10'} + + '@floating-ui/core@1.8.0': + resolution: {integrity: sha512-0CIZ5itps/8x7BG8dEIhs53BvCUH2PCoogtakwRTut+Arm58sJooJ0AuZhLw2HJYIR5cMLNPBSS728sPho2khQ==} + + '@floating-ui/dom@1.8.0': + resolution: {integrity: sha512-yXSrzeHZBTZadLOlfyhCkJHNeLJnHRnRInwdZ40L7ZiaAtrBwoYlsDrX3v5zB1Utk7CLfzcOVnVVWoXEky7Ceg==} + + '@floating-ui/react-dom@2.1.9': + resolution: {integrity: sha512-JDjEFGCpImxDCA7JJKviA0M9+RtmJdj0m/NVU5IMgBK+AmZouAQQ7/+2GLH0GXXY0YMw9oXPB8hKdbPYg5QLYg==} + peerDependencies: + react: '>=16.8.0' + react-dom: '>=16.8.0' + + '@floating-ui/utils@0.2.12': + resolution: {integrity: sha512-HpCo8tmWzLVad5s2d19EhAz5zqrrQ6s69qd6moPMQvkOuSwDT1YgRfWSVuc4ennqrgv3OHppiOGMQ7oC13yIww==} + + '@grpc/grpc-js@1.14.4': + resolution: {integrity: sha512-k9Dj3DV/itK9D06Y8f190Qgop7/Ui+D0njFV3LHMPwPT75DpXLQohE9Wmz0QElrJnzsjB7KPWiKJbOl7IPDArQ==} + engines: {node: '>=12.10.0'} + + '@grpc/proto-loader@0.7.15': + resolution: {integrity: sha512-tMXdRCfYVixjuFK+Hk0Q1s38gV9zDiDJfWL3h1rv4Qc39oILCu1TRTDt7+fGUI8K4G1Fj125Hx/ru3azECWTyQ==} + engines: {node: '>=6'} + hasBin: true + + '@grpc/proto-loader@0.8.1': + resolution: {integrity: sha512-wtF6h+DY6M3YaDBPAmvuuA6jV8Sif9MjtOI5euKFWRgCDl5PeDpPsHR9u2l6St5ceY8AZgoNDww5+HvEsXFsGg==} + engines: {node: '>=6'} + hasBin: true + + '@hono/node-server@1.19.14': + resolution: {integrity: sha512-GwtvgtXxnWsucXvbQXkRgqksiH2Qed37H9xHZocE5sA3N8O8O8/8FA3uclQXxXVzc9XBZuEOMK7+r02FmSpHtw==} + engines: {node: '>=18.14.1'} + peerDependencies: + hono: ^4 + + '@hugeicons/core-free-icons@4.2.3': + resolution: {integrity: sha512-fpiU0qFZkv4ABi23xJ2m4qNr0BBfuIaYjPboN8WDA6aj9D+OzXa7eykxKOpACZRuGbDz1U9S5DsNx1d5KNnsgA==} + + '@hugeicons/react@1.1.9': + resolution: {integrity: sha512-O+lWSWjbijoAvMCxn4K2bQWCGN5+mP1y5j+X99j23mXMj+s0X25fs71T6t9YJLaBodwmZdaewD27dzS/PiboQw==} + peerDependencies: + react: '>=16.0.0' + + '@img/colour@1.1.0': + resolution: {integrity: sha512-Td76q7j57o/tLVdgS746cYARfSyxk8iEfRxewL9h4OMzYhbW4TAcppl0mT4eyqXddh6L/jwoM75mo7ixa/pCeQ==} + engines: {node: '>=18'} + + '@img/sharp-darwin-arm64@0.34.5': + resolution: {integrity: sha512-imtQ3WMJXbMY4fxb/Ndp6HBTNVtWCUI0WdobyheGf5+ad6xX8VIDO8u2xE4qc/fr08CKG/7dDseFtn6M6g/r3w==} + engines: {node: ^18.17.0 || ^20.3.0 || >=21.0.0} + cpu: [arm64] + os: [darwin] + + '@img/sharp-darwin-x64@0.34.5': + resolution: {integrity: sha512-YNEFAF/4KQ/PeW0N+r+aVVsoIY0/qxxikF2SWdp+NRkmMB7y9LBZAVqQ4yhGCm/H3H270OSykqmQMKLBhBJDEw==} + engines: {node: ^18.17.0 || ^20.3.0 || >=21.0.0} + cpu: [x64] + os: [darwin] + + '@img/sharp-libvips-darwin-arm64@1.2.4': + resolution: {integrity: sha512-zqjjo7RatFfFoP0MkQ51jfuFZBnVE2pRiaydKJ1G/rHZvnsrHAOcQALIi9sA5co5xenQdTugCvtb1cuf78Vf4g==} + cpu: [arm64] + os: [darwin] + + '@img/sharp-libvips-darwin-x64@1.2.4': + resolution: {integrity: sha512-1IOd5xfVhlGwX+zXv2N93k0yMONvUlANylbJw1eTah8K/Jtpi15KC+WSiaX/nBmbm2HxRM1gZ0nSdjSsrZbGKg==} + cpu: [x64] + os: [darwin] + + '@img/sharp-libvips-linux-arm64@1.2.4': + resolution: {integrity: sha512-excjX8DfsIcJ10x1Kzr4RcWe1edC9PquDRRPx3YVCvQv+U5p7Yin2s32ftzikXojb1PIFc/9Mt28/y+iRklkrw==} + cpu: [arm64] + os: [linux] + libc: [glibc] + + '@img/sharp-libvips-linux-arm@1.2.4': + resolution: {integrity: sha512-bFI7xcKFELdiNCVov8e44Ia4u2byA+l3XtsAj+Q8tfCwO6BQ8iDojYdvoPMqsKDkuoOo+X6HZA0s0q11ANMQ8A==} + cpu: [arm] + os: [linux] + libc: [glibc] + + '@img/sharp-libvips-linux-ppc64@1.2.4': + resolution: {integrity: sha512-FMuvGijLDYG6lW+b/UvyilUWu5Ayu+3r2d1S8notiGCIyYU/76eig1UfMmkZ7vwgOrzKzlQbFSuQfgm7GYUPpA==} + cpu: [ppc64] + os: [linux] + libc: [glibc] + + '@img/sharp-libvips-linux-riscv64@1.2.4': + resolution: {integrity: sha512-oVDbcR4zUC0ce82teubSm+x6ETixtKZBh/qbREIOcI3cULzDyb18Sr/Wcyx7NRQeQzOiHTNbZFF1UwPS2scyGA==} + cpu: [riscv64] + os: [linux] + libc: [glibc] + + '@img/sharp-libvips-linux-s390x@1.2.4': + resolution: {integrity: sha512-qmp9VrzgPgMoGZyPvrQHqk02uyjA0/QrTO26Tqk6l4ZV0MPWIW6LTkqOIov+J1yEu7MbFQaDpwdwJKhbJvuRxQ==} + cpu: [s390x] + os: [linux] + libc: [glibc] + + '@img/sharp-libvips-linux-x64@1.2.4': + resolution: {integrity: sha512-tJxiiLsmHc9Ax1bz3oaOYBURTXGIRDODBqhveVHonrHJ9/+k89qbLl0bcJns+e4t4rvaNBxaEZsFtSfAdquPrw==} + cpu: [x64] + os: [linux] + libc: [glibc] + + '@img/sharp-libvips-linuxmusl-arm64@1.2.4': + resolution: {integrity: sha512-FVQHuwx1IIuNow9QAbYUzJ+En8KcVm9Lk5+uGUQJHaZmMECZmOlix9HnH7n1TRkXMS0pGxIJokIVB9SuqZGGXw==} + cpu: [arm64] + os: [linux] + libc: [musl] + + '@img/sharp-libvips-linuxmusl-x64@1.2.4': + resolution: {integrity: sha512-+LpyBk7L44ZIXwz/VYfglaX/okxezESc6UxDSoyo2Ks6Jxc4Y7sGjpgU9s4PMgqgjj1gZCylTieNamqA1MF7Dg==} + cpu: [x64] + os: [linux] + libc: [musl] + + '@img/sharp-linux-arm64@0.34.5': + resolution: {integrity: sha512-bKQzaJRY/bkPOXyKx5EVup7qkaojECG6NLYswgktOZjaXecSAeCWiZwwiFf3/Y+O1HrauiE3FVsGxFg8c24rZg==} + engines: {node: ^18.17.0 || ^20.3.0 || >=21.0.0} + cpu: [arm64] + os: [linux] + libc: [glibc] + + '@img/sharp-linux-arm@0.34.5': + resolution: {integrity: sha512-9dLqsvwtg1uuXBGZKsxem9595+ujv0sJ6Vi8wcTANSFpwV/GONat5eCkzQo/1O6zRIkh0m/8+5BjrRr7jDUSZw==} + engines: {node: ^18.17.0 || ^20.3.0 || >=21.0.0} + cpu: [arm] + os: [linux] + libc: [glibc] + + '@img/sharp-linux-ppc64@0.34.5': + resolution: {integrity: sha512-7zznwNaqW6YtsfrGGDA6BRkISKAAE1Jo0QdpNYXNMHu2+0dTrPflTLNkpc8l7MUP5M16ZJcUvysVWWrMefZquA==} + engines: {node: ^18.17.0 || ^20.3.0 || >=21.0.0} + cpu: [ppc64] + os: [linux] + libc: [glibc] + + '@img/sharp-linux-riscv64@0.34.5': + resolution: {integrity: sha512-51gJuLPTKa7piYPaVs8GmByo7/U7/7TZOq+cnXJIHZKavIRHAP77e3N2HEl3dgiqdD/w0yUfiJnII77PuDDFdw==} + engines: {node: ^18.17.0 || ^20.3.0 || >=21.0.0} + cpu: [riscv64] + os: [linux] + libc: [glibc] + + '@img/sharp-linux-s390x@0.34.5': + resolution: {integrity: sha512-nQtCk0PdKfho3eC5MrbQoigJ2gd1CgddUMkabUj+rBevs8tZ2cULOx46E7oyX+04WGfABgIwmMC0VqieTiR4jg==} + engines: {node: ^18.17.0 || ^20.3.0 || >=21.0.0} + cpu: [s390x] + os: [linux] + libc: [glibc] + + '@img/sharp-linux-x64@0.34.5': + resolution: {integrity: sha512-MEzd8HPKxVxVenwAa+JRPwEC7QFjoPWuS5NZnBt6B3pu7EG2Ge0id1oLHZpPJdn3OQK+BQDiw9zStiHBTJQQQQ==} + engines: {node: ^18.17.0 || ^20.3.0 || >=21.0.0} + cpu: [x64] + os: [linux] + libc: [glibc] + + '@img/sharp-linuxmusl-arm64@0.34.5': + resolution: {integrity: sha512-fprJR6GtRsMt6Kyfq44IsChVZeGN97gTD331weR1ex1c1rypDEABN6Tm2xa1wE6lYb5DdEnk03NZPqA7Id21yg==} + engines: {node: ^18.17.0 || ^20.3.0 || >=21.0.0} + cpu: [arm64] + os: [linux] + libc: [musl] + + '@img/sharp-linuxmusl-x64@0.34.5': + resolution: {integrity: sha512-Jg8wNT1MUzIvhBFxViqrEhWDGzqymo3sV7z7ZsaWbZNDLXRJZoRGrjulp60YYtV4wfY8VIKcWidjojlLcWrd8Q==} + engines: {node: ^18.17.0 || ^20.3.0 || >=21.0.0} + cpu: [x64] + os: [linux] + libc: [musl] + + '@img/sharp-wasm32@0.34.5': + resolution: {integrity: sha512-OdWTEiVkY2PHwqkbBI8frFxQQFekHaSSkUIJkwzclWZe64O1X4UlUjqqqLaPbUpMOQk6FBu/HtlGXNblIs0huw==} + engines: {node: ^18.17.0 || ^20.3.0 || >=21.0.0} + cpu: [wasm32] + + '@img/sharp-win32-arm64@0.34.5': + resolution: {integrity: sha512-WQ3AgWCWYSb2yt+IG8mnC6Jdk9Whs7O0gxphblsLvdhSpSTtmu69ZG1Gkb6NuvxsNACwiPV6cNSZNzt0KPsw7g==} + engines: {node: ^18.17.0 || ^20.3.0 || >=21.0.0} + cpu: [arm64] + os: [win32] + + '@img/sharp-win32-ia32@0.34.5': + resolution: {integrity: sha512-FV9m/7NmeCmSHDD5j4+4pNI8Cp3aW+JvLoXcTUo0IqyjSfAZJ8dIUmijx1qaJsIiU+Hosw6xM5KijAWRJCSgNg==} + engines: {node: ^18.17.0 || ^20.3.0 || >=21.0.0} + cpu: [ia32] + os: [win32] + + '@img/sharp-win32-x64@0.34.5': + resolution: {integrity: sha512-+29YMsqY2/9eFEiW93eqWnuLcWcufowXewwSNIT6UwZdUUCrM3oFjMWH/Z6/TMmb4hlFenmfAVbpWeup2jryCw==} + engines: {node: ^18.17.0 || ^20.3.0 || >=21.0.0} + cpu: [x64] + os: [win32] + + '@jest/schemas@29.6.3': + resolution: {integrity: sha512-mo5j5X+jIZmJQveBKeS/clAueipV7KgiX1vMgCxam1RNYiqE1w62n0/tJJnHtjW8ZHcQco5gY85jA3mi0L+nSA==} + engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} + + '@jest/types@29.6.3': + resolution: {integrity: sha512-u3UPsIilWKOM3F9CXtrG8LEJmNxwoCQC/XVj4IKYXvvpx7QIi/Kg1LI5uDmDpKlac62NUtX7eLjRh+jVZcLOzw==} + engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} + + '@jridgewell/gen-mapping@0.3.13': + resolution: {integrity: sha512-2kkt/7niJ6MgEPxF0bYdQ6etZaA+fQvDcLKckhy1yIQOzaoKjBBjSj63/aLVjYE3qhRt5dvM+uUyfCg6UKCBbA==} + + '@jridgewell/remapping@2.3.5': + resolution: {integrity: sha512-LI9u/+laYG4Ds1TDKSJW2YPrIlcVYOwi2fUC6xB43lueCjgxV4lffOCZCtYFiH6TNOX+tQKXx97T4IKHbhyHEQ==} + + '@jridgewell/resolve-uri@3.1.2': + resolution: {integrity: sha512-bRISgCIjP20/tbWSPWMEi54QVPRZExkuD9lJL+UIxUKtwVJA8wW1Trb1jMs1RFXo1CBTNZ/5hpC9QvmKWdopKw==} + engines: {node: '>=6.0.0'} + + '@jridgewell/sourcemap-codec@1.5.5': + resolution: {integrity: sha512-cYQ9310grqxueWbl+WuIUIaiUaDcj7WOq5fVhEljNVgRfOUhY9fy2zTvfoqWsnebh8Sl70VScFbICvJnLKB0Og==} + + '@jridgewell/trace-mapping@0.3.31': + resolution: {integrity: sha512-zzNR+SdQSDJzc8joaeP8QQoCQr8NuYx2dIIytl1QeBEZHJ9uW6hebsrYgbz8hJwUQao3TWCMtmfV8Nu1twOLAw==} + + '@jridgewell/trace-mapping@0.3.9': + resolution: {integrity: sha512-3Belt6tdc8bPgAtbcmdtNJlirVoTmEb5e2gC94PnkwEW9jI6CAHUeoG85tjWP5WquqfavoMtMwiG4P926ZKKuQ==} + + '@js-sdsl/ordered-map@4.4.2': + resolution: {integrity: sha512-iUKgm52T8HOE/makSxjqoWhe95ZJA1/G1sYsGev2JDKUSS14KAgg1LHb+Ba+IPow0xflbnSkOsZcO08C7w1gYw==} + + '@lingui/babel-plugin-lingui-macro@6.5.0': + resolution: {integrity: sha512-p80TT6WMGXpFnAe9nP9ad/BJsADBxBvTa1QFy07tZqpg/5G5eOxUn641koQjHHr/EQ3yNstLohPV9aAVoKKsiA==} + engines: {node: '>=22.19.0'} + + '@lingui/conf@6.5.0': + resolution: {integrity: sha512-zfR4uuzev2mz9ayVB2AwEQlzodDKgMcq/OR3pdHiJFCl80UQRsFA5Oqe67TmxA7SSbTygK+U0nS0qrotmXjyrA==} + engines: {node: '>=22.19.0'} + + '@lingui/core@6.5.0': + resolution: {integrity: sha512-zAoD/fIMNqtgvH15BJBtyHSMRssnMSumCEggj4c4kGYU0hh5rWn1JoOw/xLbA0Xe2iH4oBG9/SDnvVjJ4VvWrA==} + engines: {node: '>=22.19.0'} + peerDependencies: + babel-plugin-macros: 2 || 3 + peerDependenciesMeta: + babel-plugin-macros: + optional: true + + '@lingui/message-utils@6.5.0': + resolution: {integrity: sha512-qZZijYERMADeWVJbpQGyFxicW3F17CjtR2hnzo0VgT4cICPE27e0zBieQHxuUD/pj4dmyOOldVhWhHs5CN6ABw==} + engines: {node: '>=22.19.0'} + + '@lunora/advisor@1.0.0-alpha.33': + resolution: {integrity: sha512-RkrNaxzUIAU06BWqIzTgWpE131aL9HKlxBqtJnsXddZtIrub/Ysps4xb7ddtv6LqPUbSrkq4IgvVtp2iIT2+IQ==} + engines: {node: ^22.15.0 || >=24.11.0} + + '@lunora/agent@1.0.0-alpha.9': + resolution: {integrity: sha512-zEscfULS0fh5khpSsWHpcGEHWZpOCe5nhxhDLvvQLibZttJHYMKnNdwOV3uMIiZPliI1RKMjD0OtlzrnO+DDEQ==} + engines: {node: ^22.15.0 || >=24.11.0} + + '@lunora/ai@1.0.0-alpha.24': + resolution: {integrity: sha512-2eNTvES3QcpKES6h6hUgyRRInz4a9uPh8gwSi2ghnaey9hNZq7P93NeYeQoNZFjiBqywTmyY04z1zkjC15UJCw==} + engines: {node: ^22.15.0 || >=24.11.0} + peerDependencies: + '@ai-sdk/anthropic': 4.0.16 + '@ai-sdk/openai': 4.0.16 + peerDependenciesMeta: + '@ai-sdk/anthropic': + optional: true + '@ai-sdk/openai': + optional: true + + '@lunora/bindings@1.0.0-alpha.10': + resolution: {integrity: sha512-KNZhIQ7WpB2AJT5NXnc7456XQPYGQsXj2NCpEzH3e/ltQurS+p6mAba3hekUAxSYSiTKF8MPsQIBJ40nGb6B+A==} + engines: {node: ^22.15.0 || >=24.11.0} + + '@lunora/cli@1.0.0-alpha.97': + resolution: {integrity: sha512-CJuRYaoAdRnY76d+55SBQorHNSzGsYrUIukcTMW2YDmAFURDyVCD/tCG9lIB6worid4qC9iZ94v1KwG2Mvjfaw==} + engines: {node: ^22.15.0 || >=24.11.0} + hasBin: true + + '@lunora/client@1.0.0-alpha.27': + resolution: {integrity: sha512-42Fi8R5KEw4fzYEJjgQs1aEhCgf/9h+d2UdgrSe1mxM1bNaW/ogJkccy6gk2ZKtlfR4XN3p38QDQWO/QPJNU9g==} + engines: {node: ^22.15.0 || >=24.11.0} + + '@lunora/codegen@1.0.0-alpha.52': + resolution: {integrity: sha512-CtRkXDtn8BD1hZIaZFoqSRBLU4ieELXIp4yjdtoRcwkZ0NO0OgZHAzKdwzdkJ6CEu3DO0jw5GA+3C1E5cNp47w==} + engines: {node: ^22.15.0 || >=24.11.0} + + '@lunora/config@1.0.0-alpha.78': + resolution: {integrity: sha512-O98w3XnEwAJEfTcpvhoeJjBY8hEHJcdZZYUjH10fcnsfcZeDS+7Na5tJ9xTkMeonV0VIBZLE23GGQMFZL5jKlQ==} + engines: {node: ^22.15.0 || >=24.11.0} + peerDependencies: + '@lunora/studio': '>=1.0.0-alpha.50 <2.0.0-0' + peerDependenciesMeta: + '@lunora/studio': + optional: true + + '@lunora/container@1.0.0-alpha.14': + resolution: {integrity: sha512-NF2/jwn026x6pEzoizJdUi9pcwisgl+JKCkVAq+AKGjbmA9kED0McbOc6osnpUcaAojV9eygwCDdLQlWLrFl4w==} + engines: {node: ^22.15.0 || >=24.11.0} + + '@lunora/d1@1.0.0-alpha.37': + resolution: {integrity: sha512-HxqNikMv/qVKquYMPVEtOWQOIxIwMa9lY6bGgSH8wUWio6yAHrXt9OLYJwTHN4v0lW12LpalnxpXZGrPpVLAaQ==} + engines: {node: ^22.15.0 || >=24.11.0} + + '@lunora/db@1.0.0-alpha.27': + resolution: {integrity: sha512-zJBaP0PRX72kFLM92KCBa1EtxK1YcEzkK7NJpxddaUr5qdXBt+6/WGGwGv7oQ2dhb0YrNHQvLtt8tyk5xxYkAA==} + engines: {node: ^22.15.0 || >=24.11.0} + peerDependencies: + '@tanstack/db': ^0.6.0 + '@tanstack/offline-transactions': ^1.0.0 + + '@lunora/do@1.0.0-alpha.41': + resolution: {integrity: sha512-sC9vb1O034H0UpQmJBSmz4wqn5l+7EBb2kiILjSTQMQJB6U/mjdKKsx20tuVFpntKa6lXh1lj7n+vTZSY7IJXQ==} + engines: {node: ^22.15.0 || >=24.11.0} + + '@lunora/errors@1.0.0-alpha.6': + resolution: {integrity: sha512-IBn86WYhsT2bZrwnDrp88aIn+GENPzr9qtjHsuwU3bcbNrjQoe1GKbMMCmPP6AVl6mAe3/6UqJhIE3Cw5r8MIA==} + engines: {node: ^22.15.0 || >=24.11.0} + + '@lunora/errors@1.0.0-alpha.7': + resolution: {integrity: sha512-8OAPVm28DDbz6ygJA9Jju0Ik1fRf85vO1HeM295bD0C67vCbg7RhEUh9NCfhNJqtU5Mq0PF6IM3sSpw8TLxQHw==} + engines: {node: ^22.15.0 || >=24.11.0} + + '@lunora/fingerprint@1.0.0-alpha.3': + resolution: {integrity: sha512-Yzn7jvDWPFEaWIwXXWYC0DPMvDkhX26vv2hdlGIqIyHLK3lATdfmjcQ3WSqn5PMBWzYN/6NKLjQ7MTP/OiDYpw==} + engines: {node: ^22.15.0 || >=24.11.0} + + '@lunora/flags@1.0.0-alpha.15': + resolution: {integrity: sha512-vdlS6WqWGjZCa+pVLasHORtO0iOUSTt0Njn/ch4HiDSbGpbipKoi/9h9n9h9D7wOsJXfLmY3nM7tbYBI0ZduOQ==} + engines: {node: ^22.15.0 || >=24.11.0} + peerDependencies: + '@cloudflare/flagship': ^0.4.2 + '@openfeature/web-sdk': ^1.9.0 + peerDependenciesMeta: + '@cloudflare/flagship': + optional: true + '@openfeature/web-sdk': + optional: true + + '@lunora/mail@1.0.0-alpha.17': + resolution: {integrity: sha512-p8pSGzjp60LaD/nY5A4f6Q9yjL2KOAQfhqxGo78r9Cx0mnymSD6aQSCKLWliw7iYChJGzX/lYNWpEHqtrnZs8A==} + engines: {node: ^22.15.0 || >=24.11.0} + peerDependencies: + react: ^19.2.7 + peerDependenciesMeta: + react: + optional: true + + '@lunora/queue@1.0.0-alpha.9': + resolution: {integrity: sha512-1czZdLukS6ydRoL5ky+hjVp8/7npKVbIoui8+cizV1nTT4QEXVa9Q6iQC4N6NKSdUiyyvxLmAoWdHLnfxo4pbA==} + engines: {node: ^22.15.0 || >=24.11.0} + + '@lunora/ratelimit@1.0.0-alpha.9': + resolution: {integrity: sha512-QGoBK6PfaGbD2kkj/h1GHfDwHksFc3SOGvxb1Z1ySPi6x8wruOcAw3z2bYyztYiy0M5DBgBgQSjjdu2iV6mraQ==} + engines: {node: ^22.15.0 || >=24.11.0} + + '@lunora/react@1.0.0-alpha.31': + resolution: {integrity: sha512-Cg6v3i/KVRk+Qpgu+VrInhw0Ln61M8h35Wa77WxwHLi6VtO6xD3re6LxE5PfA9YGJDfNCDnqu+ApCYkK+tJQrw==} + engines: {node: ^22.15.0 || >=24.11.0} + peerDependencies: + '@tanstack/react-query': ^5.101.0 + react: ^19.2.7 + react-dom: ^19.2.7 + peerDependenciesMeta: + react-dom: + optional: true + + '@lunora/runtime@1.0.0-alpha.35': + resolution: {integrity: sha512-GOQ+yfLGuA1/zE/9c+HHF1CEJG5NlfATict0L25kz6krXJKwI+f047aUiEvuMAQw21qVUkinDkw8WJmPMz6Wgg==} + engines: {node: ^22.15.0 || >=24.11.0} + + '@lunora/scheduler@1.0.0-alpha.11': + resolution: {integrity: sha512-WL69zUMEIBg20SgSYW33IHuulsI1RF+wG3NQPiT9VzWiL1aiO0phjmnRNO1k2rfM0ZdeGJ3Uq4chy5p1D3fAOw==} + engines: {node: ^22.15.0 || >=24.11.0} + + '@lunora/seed@1.0.0-alpha.29': + resolution: {integrity: sha512-wrlvkSLSSv0TW3z8EBcb16ZWzqC9fzIqhG4nuUhwe30L6tJxYpyDwtf5B2JWjBvpKvuWU/N9KKPicZg/Ssy2Gg==} + engines: {node: ^22.15.0 || >=24.11.0} + peerDependencies: + '@lunora/server': '>=1.0.0-alpha.24 <2.0.0-0' + '@lunora/values': '>=1.0.0-alpha.7 <2.0.0-0' + + '@lunora/server@1.0.0-alpha.30': + resolution: {integrity: sha512-PPmxINwxI9NCkMu1FEMczIehVRh9zj5H46bupj9gu3Q0k4sQy9/gb1+0aJP/W5WKo7kPpgzrqNrepqSllcgqMw==} + engines: {node: ^22.15.0 || >=24.11.0} + + '@lunora/sql-store@1.0.0-alpha.38': + resolution: {integrity: sha512-Yo0taNzAE5ar6gV6vLxC1CnISCRvh6Zk+CPx7BMqtLL8KkumIeQrop9j5Jq2cRGc0mv1RjpyK32yDPWpaBAg9w==} + engines: {node: ^22.15.0 || >=24.11.0} + + '@lunora/studio@1.0.0-alpha.58': + resolution: {integrity: sha512-GseUcrcAqS6fV5zxsEtSpsa1CSSmIa/h0wkRj3ndUJljOCJVcbBBedGbrMsybv2I0FEUkaSVwUYw9wTvBVKcyw==} + engines: {node: ^22.15.0 || >=24.11.0} + peerDependencies: + react: ^19.2.7 + react-dom: ^19.2.7 + + '@lunora/values@1.0.0-alpha.10': + resolution: {integrity: sha512-kHY0iarVf5WqekBOkAmeiSnbb1bM9I0iIjmnmZflJXC40CgmATRni25bCpeX3MZASdiPEGaD7c1Al3oMpII5/g==} + engines: {node: ^22.15.0 || >=24.11.0} + + '@lunora/vite@1.0.0-alpha.78': + resolution: {integrity: sha512-m+KCkYJSGW6QIV/YYIzHkK9I0qZ/6KPPGEga7Azf4duzQ7dV5JFkbpO8LZoAr68jcfBO15TPPCmtDXgHiJPfMg==} + engines: {node: ^22.15.0 || >=24.11.0} + peerDependencies: + '@lunora/studio': '>=1.0.0-alpha.50 <2.0.0-0' + vite: ^8.1.5 + peerDependenciesMeta: + '@lunora/studio': + optional: true + + '@lunora/workflow@1.0.0-alpha.12': + resolution: {integrity: sha512-mmV9YuKkpCBCdnf1vs+a8UIAUB8nsQbzNKjbPC5JV46uZGeMF7Cmo1wekXcscCKbeK1PoIvX52K6WrwZxObISA==} + engines: {node: ^22.15.0 || >=24.11.0} + + '@messageformat/date-skeleton@1.1.0': + resolution: {integrity: sha512-rmGAfB1tIPER+gh3p/RgA+PVeRE/gxuQ2w4snFWPF5xtb5mbWR7Cbw7wCOftcUypbD6HVoxrVdyyghPm3WzP5A==} + + '@messageformat/parser@5.1.1': + resolution: {integrity: sha512-3p0YRGCcTUCYvBKLIxtDDyrJ0YijGIwrTRu1DT8gIviIDZru8H23+FkY6MJBzM1n9n20CiM4VeDYuBsrrwnLjg==} + + '@modelcontextprotocol/sdk@1.29.0': + resolution: {integrity: sha512-zo37mZA9hJWpULgkRpowewez1y6ML5GsXJPY8FI0tBBCd77HEvza4jDqRKOXgHNn867PVGCyTdzqpz0izu5ZjQ==} + engines: {node: '>=18'} + peerDependencies: + '@cfworker/json-schema': ^4.1.1 + zod: ^3.25 || ^4.0 + peerDependenciesMeta: + '@cfworker/json-schema': + optional: true + + '@napi-rs/wasm-runtime@1.1.6': + resolution: {integrity: sha512-ZLv/JdUfkvOy9eCnnBaGfiO+XimbjebAeO+MRQqD/B+FR1tnRN0tpKSJHRbE8sFfS6aqsXZ67TQjfwfsxULVbg==} + peerDependencies: + '@emnapi/core': ^1.7.1 + '@emnapi/runtime': ^1.7.1 + + '@openfeature/core@1.11.0': + resolution: {integrity: sha512-P0u3/ht/oZCQT89fOed+laLk0kZR529a825cS02uPDglxXbE97irWYpDAeRGGVETIzKfuy+H2g8c3Ccv/tXJNQ==} + + '@openfeature/server-sdk@1.22.0': + resolution: {integrity: sha512-YBrf6SQkn0FNB/dRAtLEs41dvFMUE8CrQTwI+iLaMFUIqWlqGNJfGnulKSneEKS+2OgKTAC6DdmKcZ6tK7kBcg==} + engines: {node: '>=20'} + peerDependencies: + '@openfeature/core': ^1.11.0 + + '@oxc-project/types@0.139.0': + resolution: {integrity: sha512-r9gHphtCs+1M7J0pw6Sn/hh/Wpa/iQrOOkrNAlVLF/gHq+/CJmHIWKKUUhdWjcD6CIa8idarspCsASiXCXvFUw==} + + '@oxlint/binding-android-arm-eabi@1.75.0': + resolution: {integrity: sha512-lutovtFzJqlRaqpZrCqSSGaHZzl9nIxxpjLzhSRLunN6dCLylj0uzlCyQGaQDIys7rrv8kVXiFO+R4Zpn0bX7g==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [arm] + os: [android] + + '@oxlint/binding-android-arm64@1.75.0': + resolution: {integrity: sha512-hXI0hDgHkw4w5nfru72aG7y+2iQJmC4waH/KV6H/hbgA6yAP5jYNx0P9yug15Hs0tWl/+mda3Jjn/2gmDT48tw==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [arm64] + os: [android] + + '@oxlint/binding-darwin-arm64@1.75.0': + resolution: {integrity: sha512-D91BWbK/dMYfCcrghspPIuKs2D9LF4Z/OabVSQjw1AO6PWxArD7teDA48bm0ySFqWDaPVqmQRl5GMWNglTXyrQ==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [arm64] + os: [darwin] + + '@oxlint/binding-darwin-x64@1.75.0': + resolution: {integrity: sha512-02mpwzf12BonZ6PT0TuQoomvEh2kVl2WGBIKWezCyToIS+rYkQZ6GXnARBAl9A4Ovm2V+Xe7M4KretyqmmcnJQ==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [x64] + os: [darwin] + + '@oxlint/binding-freebsd-x64@1.75.0': + resolution: {integrity: sha512-qZJgLnDaBsiL5YESx2t/TZ8eXkL9fEkKoXEdzegROhlz9A0lgyGnZ0dAzJrh7LJAHQl2K9RdRueN2s/9N7+odg==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [x64] + os: [freebsd] + + '@oxlint/binding-linux-arm-gnueabihf@1.75.0': + resolution: {integrity: sha512-7XlaWA5BJD3XpCfrEqjEe6Zseeb14S7QGa304XfwKignRaKQ+eIj775BQ7nIslggWickl4IsPUFqJ+/gAyNHVg==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [arm] + os: [linux] + + '@oxlint/binding-linux-arm-musleabihf@1.75.0': + resolution: {integrity: sha512-av6Tpv8yrcMMMOadOqENBhlsLRcGFXXwoQ0hzHhsmS9FJ4Wioy8we427GbcMe2XTxmL2e60T67H1Dyr3up+tAA==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [arm] + os: [linux] + + '@oxlint/binding-linux-arm64-gnu@1.75.0': + resolution: {integrity: sha512-WcUhd8fHT5plrA14lANevl+hOl815mVI5t2hU21oFWrZKFXIVV/Sr4rWQV0NzSvzBupbMLNc5ErEA6Ehxh5jMg==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [arm64] + os: [linux] + libc: [glibc] + + '@oxlint/binding-linux-arm64-musl@1.75.0': + resolution: {integrity: sha512-UWzp5wRHFe/ESO3+eEaxXsTkYTGLYjnTsi/I5neEacXSItQ6WNleapfOAeA4x2b8nyhJ4uQxqvtv9pHv8kWJtQ==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [arm64] + os: [linux] + libc: [musl] + + '@oxlint/binding-linux-ppc64-gnu@1.75.0': + resolution: {integrity: sha512-XEVRwGMLKCUKrvhLAz4F6AIh8MJrQVdSZtAmPpRZt9tGPsUnamPOcl3dS/ZQzJnar/Ymgc//+xho0L60Emzuxg==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [ppc64] + os: [linux] + libc: [glibc] + + '@oxlint/binding-linux-riscv64-gnu@1.75.0': + resolution: {integrity: sha512-mAG4DUXqfLC8cTjMD2kt3jDmVzFREYtDyeLNdLdsCcBc4Zbl2EMuiFektGBilQwkNjYnMvCqJs55U+Hyb+b+jw==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [riscv64] + os: [linux] + libc: [glibc] + + '@oxlint/binding-linux-riscv64-musl@1.75.0': + resolution: {integrity: sha512-95hrAvriAlI+pekSomTFIn0+bawMDlDwTNVmdjsFusTHyL2JWh7TWvRNG/Lkim72uN8OiCcO9wcaC6omLP5E3w==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [riscv64] + os: [linux] + libc: [musl] + + '@oxlint/binding-linux-s390x-gnu@1.75.0': + resolution: {integrity: sha512-4b6f2+FrtruAESrCqIKcrarzfrSx+wk2QNcp+RT91/Prc+pMQMAfyZ1rG1c3tFQNl8Bc616tx40uNXyxNBRPbQ==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [s390x] + os: [linux] + libc: [glibc] + + '@oxlint/binding-linux-x64-gnu@1.75.0': + resolution: {integrity: sha512-nshAhrUvXFUWOvqQ2soIw7HFNWvpvEV4o0cYSqPtzLiPF5gKyYTDOOTJ6Rn8g8K/iGvPIrbDA4v8+5MvnjJrrg==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [x64] + os: [linux] + libc: [glibc] + + '@oxlint/binding-linux-x64-musl@1.75.0': + resolution: {integrity: sha512-e4jNxLKnxLC6sYBQRxrI2pgIIxnmMtF8U/VwNYcjTT/CLS+spH624cYVnj07bTKwaEWT37/e025isOs6j/0xqA==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [x64] + os: [linux] + libc: [musl] + + '@oxlint/binding-openharmony-arm64@1.75.0': + resolution: {integrity: sha512-hZ2lH+1qLf/DiEP9UWuQTK2JWj/BgvMB4jhIV4SmNU1wfEiYYX4TynQyAZXx0j9X4qRYizAL042SKaV+8ynh4w==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [arm64] + os: [openharmony] + + '@oxlint/binding-win32-arm64-msvc@1.75.0': + resolution: {integrity: sha512-Ilj6PNzGDS3bCU0MSJH7Msh0NhH+T/mRp2shwg+q+GHeVlPwP5LEboW96aW+3kVKFk6zYZy1Xi5pZkqZh6X8KQ==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [arm64] + os: [win32] + + '@oxlint/binding-win32-ia32-msvc@1.75.0': + resolution: {integrity: sha512-QVit2nOEOiPhkmsrksPSkoGCdnZRNkspt8fwoYyP09te1VEbnSj4LAxua4rc8FKTmWkySVe05j8iz9GXYfF1AQ==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [ia32] + os: [win32] + + '@oxlint/binding-win32-x64-msvc@1.75.0': + resolution: {integrity: sha512-DSxnNkBUAYARPwJtR12Ig3deWr8w0H997xP6jy33i+e0SyYJw8FKuz4+cZtpmPEhQmvlPJE3X/2vNxDmLkd/rA==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [x64] + os: [win32] + + '@poppinss/colors@4.1.6': + resolution: {integrity: sha512-H9xkIdFswbS8n1d6vmRd8+c10t2Qe+rZITbbDHHkQixH5+2x1FDGmi/0K+WgWiqQFKPSlIYB7jlH6Kpfn6Fleg==} + + '@poppinss/dumper@0.6.5': + resolution: {integrity: sha512-NBdYIb90J7LfOI32dOewKI1r7wnkiH6m920puQ3qHUeZkxNkQiFnXVWoE6YtFSv6QOiPPf7ys6i+HWWecDz7sw==} + + '@poppinss/exception@1.2.3': + resolution: {integrity: sha512-dCED+QRChTVatE9ibtoaxc+WkdzOSjYTKi/+uacHWIsfodVfpsueo3+DKpgU5Px8qXjgmXkSvhXvSCz3fnP9lw==} + + '@protobufjs/aspromise@1.1.2': + resolution: {integrity: sha512-j+gKExEuLmKwvz3OgROXtrJ2UG2x8Ch2YZUxahh+s1F2HZ+wAceUNLkvy6zKCPVRkU++ZWQrdxsUeQXmcg4uoQ==} + + '@protobufjs/base64@1.1.2': + resolution: {integrity: sha512-AZkcAA5vnN/v4PDqKyMR5lx7hZttPDgClv83E//FMNhR2TMcLUhfRUBHCmSl0oi9zMgDDqRUJkSxO3wm85+XLg==} + + '@protobufjs/codegen@2.0.5': + resolution: {integrity: sha512-zgXFLzW3Ap33e6d0Wlj4MGIm6Ce8O89n/apUaGNB/jx+hw+ruWEp7EwGUshdLKVRCxZW12fp9r40E1mQrf/34g==} + + '@protobufjs/eventemitter@1.1.1': + resolution: {integrity: sha512-vW1GmwMZNnL+gMRaovlh9yZX74kc+TTU3FObkkurpMaRtBfLP3ldjS9KQWlwZgraRE0+dheEEoAxdzcJQ8eXZg==} + + '@protobufjs/fetch@1.1.1': + resolution: {integrity: sha512-GpptLrs57adMSuHi3VNj0mAF8dwh36LMaYF6XyJ6JMWlVsc+t42tm1HSEDmOs3A8fC9yyeisgLhsTVQokOZ0zw==} + + '@protobufjs/float@1.0.2': + resolution: {integrity: sha512-Ddb+kVXlXst9d+R9PfTIxh1EdNkgoRe5tOX6t01f1lYWOvJnSPDBlG241QLzcyPdoNTsblLUdujGSE4RzrTZGQ==} + + '@protobufjs/path@1.1.2': + resolution: {integrity: sha512-6JOcJ5Tm08dOHAbdR3GrvP+yUUfkjG5ePsHYczMFLq3ZmMkAD98cDgcT2iA1lJ9NVwFd4tH/iSSoe44YWkltEA==} + + '@protobufjs/pool@1.1.0': + resolution: {integrity: sha512-0kELaGSIDBKvcgS4zkjz1PeddatrjYcmMWOlAuAPwAeccUrPHdUqo/J6LiymHHEiJT5NrF1UVwxY14f+fy4WQw==} + + '@protobufjs/utf8@1.1.2': + resolution: {integrity: sha512-b1UQwcEZ4yCnMCD8DAL1VlbvBJE9/IX4FTIp7BG1xYpf29SLazLSrqUkj4w7Y5y7cCVP6E5tcqqcI0xemPkHug==} + + '@react-email/render@2.1.0': + resolution: {integrity: sha512-F+zE3O6d6sW6Aj2UjvZAA17R7tJKM7kcq2mgV6k4HCT8jeLLFaVP2txMtH1lgqYFRMZ0Gxsd37q2PRyiXLXXxA==} + engines: {node: '>=20.0.0'} + peerDependencies: + react: ^18.0 || ^19.0 || ^19.0.0-rc + react-dom: ^18.0 || ^19.0 || ^19.0.0-rc + + '@reduxjs/toolkit@2.12.0': + resolution: {integrity: sha512-KiT+RzZbp6mQET+Mg+h2c97+9j1sNflUxQkIHI7Yuzf6Peu+OYpmkn6nbHWmLLWj+1ZODUJFwGZ7gx3L9R9EOw==} + peerDependencies: + react: ^16.9.0 || ^17.0.0 || ^18 || ^19 + react-redux: ^7.2.1 || ^8.1.3 || ^9.0.0 + peerDependenciesMeta: + react: + optional: true + react-redux: + optional: true + + '@rolldown/binding-android-arm64@1.1.5': + resolution: {integrity: sha512-lZg8fqIv2v7FF237bwMgzGZEJvGL79/s5knJ/i6FmsGF4XXlzccZ4jb+TrFIxtSSxFtIpdsgrPZeMk1I9AFcyQ==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [arm64] + os: [android] + + '@rolldown/binding-darwin-arm64@1.1.5': + resolution: {integrity: sha512-51Bnx9pNiMRKSUNtBfySkNJ9vMU9Hh3I1ozDd6gyPPYzaXCfnptUcEZxXGYFn+ul2dtcMUiqGR1Yai2K10uoTw==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [arm64] + os: [darwin] + + '@rolldown/binding-darwin-x64@1.1.5': + resolution: {integrity: sha512-Tm+gbfC0aHu1tBA/JvKQh32S0K6YgCHkiAF4/W6xX0K0RmNuc94VeK419dJoE65R5aRxmo+noZQSWrAMF6yb6g==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [x64] + os: [darwin] + + '@rolldown/binding-freebsd-x64@1.1.5': + resolution: {integrity: sha512-JMzDKCCXq93YccG5gz3hvOs1oXRKAf0XYpfOS88e+wZrC8Iugj6j68867vrYZkvpDDpKn/KoKORThmchMpF6TA==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [x64] + os: [freebsd] + + '@rolldown/binding-linux-arm-gnueabihf@1.1.5': + resolution: {integrity: sha512-uML21j2K5TfPGutKxub+M+nLjZIrWjXQ5Grx4lCe/nimTj9B4L63zHpjXLl4y0L3mcm2htEQIb06oCG/szerNw==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [arm] + os: [linux] + + '@rolldown/binding-linux-arm64-gnu@1.1.5': + resolution: {integrity: sha512-navSiuTMogvnQoZoM/v+l3ZWo50/NTwSHSzheABx/RCnmUPaKwq9qSo4Br2OYRs21+Fz8uFqITZM3H4opOB0/Q==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [arm64] + os: [linux] + libc: [glibc] + + '@rolldown/binding-linux-arm64-musl@1.1.5': + resolution: {integrity: sha512-lAryqH7IteztmCXQXk0etKj4wBQ7Gx5S6LjKhsgp9zb8I5bsuvU/2llH1hDQcjsFeqIsovMVN339/8pUDDBXxA==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [arm64] + os: [linux] + libc: [musl] + + '@rolldown/binding-linux-ppc64-gnu@1.1.5': + resolution: {integrity: sha512-fsK/sNBnxzBlL4O1JNrZakVQxPspqpED5dLtNsZS9oOKmtSpdNIzxH2kkol5HYTWJN47sE20ztMJPxfZ89qGOg==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [ppc64] + os: [linux] + libc: [glibc] + + '@rolldown/binding-linux-s390x-gnu@1.1.5': + resolution: {integrity: sha512-gLYb4BIadlfTOYT5gO503n8zQjXflgzpD0FcyKh0Mzx3rqCZKnHoJWV9xe1KXUJ5lx2JfcSHr/mhzS0PC/McAA==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [s390x] + os: [linux] + libc: [glibc] + + '@rolldown/binding-linux-x64-gnu@1.1.5': + resolution: {integrity: sha512-FjcpEKUyJygHgs1o50VYNvkt5+7Le/VEdYt0AkRpkL33MnyQfwr8l5mXwMmfmTbyMPr5vJLC+8/Gd9gXnwU1QQ==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [x64] + os: [linux] + libc: [glibc] + + '@rolldown/binding-linux-x64-musl@1.1.5': + resolution: {integrity: sha512-Me+PfPI2TMeOQk0gYWfLQZtTktrmzbr8cDboqX83XKc7UrgAi55gF+2dUkWdxd19n55Essp2yeca+O9N5rBxHg==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [x64] + os: [linux] + libc: [musl] + + '@rolldown/binding-openharmony-arm64@1.1.5': + resolution: {integrity: sha512-yc5WrLzXks6zCQfn9Oxr8pORKyl/pF+QjHmW/Qx3qu0oyrrNC+y2JLTU1E2rcWYAmzlnqngWXHQjy51VzW70Vw==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [arm64] + os: [openharmony] + + '@rolldown/binding-wasm32-wasi@1.1.5': + resolution: {integrity: sha512-VbQGPX2b4r48TAMIM2cjgluIM1HYutm4pcTEJsle7iEP7sB1dFqtPLBVbdLAZCxy1txCcPxf4QFf4v8uvltPqA==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [wasm32] + + '@rolldown/binding-win32-arm64-msvc@1.1.5': + resolution: {integrity: sha512-gHv82k63z4qpV5+Q1y/12KrK0ltWBukVDI8nZcbT7Tt/ZlOIVwppazneq0F93oDxTo3IgAMEDIoQh3E2n6mVsw==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [arm64] + os: [win32] + + '@rolldown/binding-win32-x64-msvc@1.1.5': + resolution: {integrity: sha512-tTZuDBPw85tEN5PQi1pnEBzDy0Z49HtScLAbD5t6hyeU92A95pRWaSMw1GZZi/RwgSgUIl0xrSlXIT/9QzvYSA==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [x64] + os: [win32] + + '@rolldown/pluginutils@1.0.1': + resolution: {integrity: sha512-2j9bGt5Jh8hj+vPtgzPtl72j0yRxHAyumoo6TNfAjsLB04UtpSvPbPcDcBMxz7n+9CYB0c1GxQFxYRg2jimqGw==} + + '@selderee/plugin-htmlparser2@0.11.0': + resolution: {integrity: sha512-P33hHGdldxGabLFjPPpaTxVolMrzrcegejx+0GxjrIb9Zv48D8yAIA/QTDR2dFl7Uz7urX8aX6+5bCZslr+gWQ==} + + '@selderee/plugin-htmlparser2@0.12.0': + resolution: {integrity: sha512-oELmoyA6ML9jDRMV3kgcMQFKxUfBU0yFVn6yTctVaLT5ygXnxH52I3TZEgV9EhXJC68/uFvE5Daj1/25c0Xa/A==} + peerDependencies: + selderee: ~0.12.0 + + '@shikijs/cli@4.3.0': + resolution: {integrity: sha512-On4JSevjRHpFFix8Dh/2BWk3xwXL9u0PRl33Gy/Ho5l2pQlgnIZ+8jXLDYp/Qq8S6lOookd/+ZUu4ihIy2tWBQ==} + engines: {node: '>=20'} + hasBin: true + + '@shikijs/core@4.3.0': + resolution: {integrity: sha512-EooU3i9F6IAE8kEu+AnGf9DFZWkQBZ+hJn3tLVbsH+61mtQiva5biai66fAA6nvFPXkLgvrh7BrR7YcJU83xQQ==} + engines: {node: '>=20'} + + '@shikijs/core@4.3.1': + resolution: {integrity: sha512-ANMDxuaPsNMdDC1m4vfvhlDmJweMwkE5XitTwrq2rWHx5jM+dlm4MmHt2PP6t0uejfR77SuhrhJ0zEijIF/uhA==} + engines: {node: '>=20'} + + '@shikijs/engine-javascript@4.3.0': + resolution: {integrity: sha512-hTv/KiFf2tpiqlACPiztGGurEARWIutB8YUhcrA1pUC7VzzwKO+g5crUocrLztrZ5ro5Z4hbXg7bYclETn3gSQ==} + engines: {node: '>=20'} + + '@shikijs/engine-javascript@4.3.1': + resolution: {integrity: sha512-JBItcnPuYq7jVJdZo/vMj94r+szT7XEjHFX+mvFDGSEIbVAXAGyHAHzhbWzpGOwYidCZrErJLLgn2PVeiokHnQ==} + engines: {node: '>=20'} + + '@shikijs/engine-oniguruma@4.3.0': + resolution: {integrity: sha512-1vMdN3gHfnKfLYwecUI2ITJI4RhHt96xEaJumVn7Heb0IlJ8WQMIH0Voak+2j22BpSNKdnOfB/pCTPnPm2gq7A==} + engines: {node: '>=20'} + + '@shikijs/engine-oniguruma@4.3.1': + resolution: {integrity: sha512-OXyNMzg0pews+msMj4cHeqT4xiYKKvbnn6VbdAXxfoFl3SSx4fJTc8FadECuc5/H9p3BzhNAoAUXKwAu9rWYhg==} + engines: {node: '>=20'} + + '@shikijs/langs@4.3.0': + resolution: {integrity: sha512-rnlqFbBRSys9bT4gl/5rw9RnS0W/I84ZldXPkO7cvlEMoV85TyF/aU01N7/NbSR776RNLjrJKjfFUXJR6wN1Cg==} + engines: {node: '>=20'} + + '@shikijs/langs@4.3.1': + resolution: {integrity: sha512-m0l9nsDqgBHvbZbk7A0/kXz/impK3uB/c6rAn6Gpg/uPtdZRQ+alsN/17MU5thb68XTj/4DxkZAotrM0GGSpDQ==} + engines: {node: '>=20'} + + '@shikijs/primitive@4.3.0': + resolution: {integrity: sha512-CPkz64PTa5diRW1ggzMZH9VM/du4RNChYgVtgqrFcgruvIybmCvySv8GkiHSczUHXYuuR8TdKEwFx+UnZMpgdg==} + engines: {node: '>=20'} + + '@shikijs/primitive@4.3.1': + resolution: {integrity: sha512-CXQRQOYy1leqQ8ceTeJdmXv/bsUY++6QyLpXJ94LZAAYj5X2SKRdc5ipguv4NPyGVKItB2PPwUpRNe0Sjh5S1A==} + engines: {node: '>=20'} + + '@shikijs/themes@4.3.0': + resolution: {integrity: sha512-Avgt05YiT+Y3prjIc9lmQxhJzHBcCfR6cjiFW4OyaMBbt2A6trX5rfjUzx+Vj/mE9qpArYjatnqo9XPjQNW/AQ==} + engines: {node: '>=20'} + + '@shikijs/themes@4.3.1': + resolution: {integrity: sha512-dgpoJ4WqNi2yTmizQHBJ5zcX6j2lE6icN/0yt4l1kkf16jrY/pwPLoTb1ETsWMz0OBLf9ZNvwmxft+cH+N9qSA==} + engines: {node: '>=20'} + + '@shikijs/types@4.3.0': + resolution: {integrity: sha512-oc8b9U2SYvofKZk8e/737nIX0qwf6eV2vHFATeObAu7r+mUVpLs8Re0BmVkIjAWAYgkmG/CzLNo7rzuBzRu/wQ==} + engines: {node: '>=20'} + + '@shikijs/types@4.3.1': + resolution: {integrity: sha512-CHFxE0jztBIZRHH6gxXE7DXUCFXjReEGxZ/j0rfSLGKZuwp2xBYycEP14875DSa9KLL/6700oxIq6oO6ef9K2g==} + engines: {node: '>=20'} + + '@shikijs/vscode-textmate@10.0.2': + resolution: {integrity: sha512-83yeghZ2xxin3Nj8z1NMd/NCuca+gsYXswywDy5bHvwlWL8tpTQmzGeUuHd9FC3E/SBEMvzJRwWEOz5gGes9Qg==} + + '@sinclair/typebox@0.27.12': + resolution: {integrity: sha512-hhyNJ+nbR6ZR7pToHvllEFun9TL0sbL+tk/ON75lo+Xas054uez98qRbsuNt7MBCyZKK4+8Yli/OAGZhmfBZ/g==} + + '@sindresorhus/is@7.2.0': + resolution: {integrity: sha512-P1Cz1dWaFfR4IR+U13mqqiGsLFf1KbayybWwdd2vfctdV6hDpUkgCY0nKOLLTMSoRd/jJNjtbqzf13K8DCCXQw==} + engines: {node: '>=18'} + + '@speed-highlight/core@1.2.17': + resolution: {integrity: sha512-Z92FwKpCtfaW1V0jTU/fh3QzYEZN8wDwrzRIBoADCJfn4mJCNcJN/XegifX7BDrQ8/h9Xh/JnbyMchL0FqXrkg==} + + '@standard-schema/spec@1.1.0': + resolution: {integrity: sha512-l2aFy5jALhniG5HgqrD6jXLi/rUWrKvqN/qJx6yoJsgKhblVd+iqqU4RCXavm/jPityDo5TCvKMnpjKnOriy0w==} + + '@standard-schema/utils@0.3.0': + resolution: {integrity: sha512-e7Mew686owMaPJVNNLs55PUvgz371nKgwsc4vxE49zsODpJEnxgxRo2y/OKrqueavXgZNMDVj3DdHFlaSAeU8g==} + + '@sveltejs/acorn-typescript@1.0.11': + resolution: {integrity: sha512-LFuZUkjJ9iF7JZye/aG5XM0SFcQ5VyL0oVX4WJ9dc0Va3R3s0OauX1BESVCb+YN/ol8TAfqGDDAQsTG627Y5kw==} + peerDependencies: + acorn: ^8.9.0 + + '@tanstack/db-ivm@0.1.18': + resolution: {integrity: sha512-+pZJiRKdoKRM5Epq9T7otD9ZJl82pRFauo7LKuJGrarjVKQ7r+QQlPe3kGdN9LEKSnuNGIWjX9OOY4M8kH4eLw==} + peerDependencies: + typescript: '>=4.7' + + '@tanstack/db@0.6.16': + resolution: {integrity: sha512-6tZ4sAyh7g4G5awO4Q4D/UQVPoPEBsqqDBImjCZNTRJznrpwGqFJZxozov197k8ty8QxZC++eGcbo+BBKF3nzw==} + peerDependencies: + typescript: '>=4.7' + + '@tanstack/history@1.162.0': + resolution: {integrity: sha512-79pf/RkhteYZTRgcR4F9kbk84P2N8rugQJswxfIqovlbRiT3yI7eBE+5QorIrZaOKktsgzRlXh1l/du/xpl4iA==} + engines: {node: '>=20.19'} + + '@tanstack/match-sorter-utils@8.19.4': + resolution: {integrity: sha512-Wo1iKt2b9OT7d+YGhvEPD3DXvPv2etTusIMhMUoG7fbhmxcXCtIjJDEygy91Y2JFlwGyjqiBPRozme7UD8hoqg==} + engines: {node: '>=12'} + + '@tanstack/offline-transactions@1.0.41': + resolution: {integrity: sha512-74Exr8H9dSWsWnmyqE3fTNa2ypB+2GV90u6JNQilDitd+MAtU5ZZV8aaTueL1D/ZDn7XNmvZgfyBTQNvonIpjw==} + peerDependencies: + '@react-native-community/netinfo': '>=11.0.0' + react-native: '>=0.70.0' + peerDependenciesMeta: + '@react-native-community/netinfo': + optional: true + react-native: + optional: true + + '@tanstack/pacer-lite@0.2.2': + resolution: {integrity: sha512-eQ1MyLKCHyXiH7NbdmB80W77OhiMgGBUb+qDx/8WMGbwg5Lf/NlfD0TfNYAqY77i8V3AxoDoYdICrQE5ADw4Yw==} + engines: {node: '>=18'} + + '@tanstack/query-core@5.101.4': + resolution: {integrity: sha512-gNwcvOJcRbLWPOLG/2OBm+zM+Yv+MKsXKEOWC57USuZDEsI71hEErQsiEGx5wX9rzWWkfwM0fVSPoiIFSsxfiw==} + + '@tanstack/react-query@5.101.4': + resolution: {integrity: sha512-yRg2pfOCxIs4ZJW3XYYHU/WgtD04FHSnfHlpRT7h7pR77hwkdRG4wxbKe4aq6P0RvXUTBSQpQeadS1SUYUe+KA==} + peerDependencies: + react: ^18 || ^19 + + '@tanstack/react-router@1.170.18': + resolution: {integrity: sha512-wpbGYZEp/fmz1q4bn7BD8VZ+/VZ7GBqSJv5V969pU+chP8y7dquWDmKTFMohvUegb9lg12m1uPVvD6kB2wORvQ==} + engines: {node: '>=20.19'} + peerDependencies: + react: '>=18.0.0 || >=19.0.0' + react-dom: '>=18.0.0 || >=19.0.0' + + '@tanstack/react-store@0.9.3': + resolution: {integrity: sha512-y2iHd/N9OkoQbFJLUX1T9vbc2O9tjH0pQRgTcx1/Nz4IlwLvkgpuglXUx+mXt0g5ZDFrEeDnONPqkbfxXJKwRg==} + peerDependencies: + react: ^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0 + react-dom: ^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0 + + '@tanstack/react-table@8.21.3': + resolution: {integrity: sha512-5nNMTSETP4ykGegmVkhjcS8tTLW6Vl4axfEGQN3v0zdHYbK4UfoqfPChclTrJ4EoK9QynqAu9oUf8VEmrpZ5Ww==} + engines: {node: '>=12'} + peerDependencies: + react: '>=16.8' + react-dom: '>=16.8' + + '@tanstack/react-virtual@3.14.8': + resolution: {integrity: sha512-O39GJQpAYEJcIu3uN1//YtmhjSEOyw75vg9CKCatBDPiD5hKtZQoJHfferyrB/LdOD3UWaoMLWtdEjarwIwdDw==} + peerDependencies: + react: ^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0 + react-dom: ^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0 + + '@tanstack/router-core@1.171.15': + resolution: {integrity: sha512-IILCDcLaItMZQ2jEmCABHY1Nhjjn5XUvwpQp3e4Nmu+vfg0BgYFuu/QASz2SwE2ZNbVMrvt8X/wxa+Gg5aErxA==} + engines: {node: '>=20.19'} + + '@tanstack/solid-query@5.101.4': + resolution: {integrity: sha512-w+QNX4al4zkfOfO6FYILouPX3yAxLANvBNz0cZqaBrSRKfBP3qNC179wu/eS2w1asH+QqEeI0rR2/s7gRGxnFA==} + peerDependencies: + solid-js: ^1.6.0 + + '@tanstack/store@0.9.3': + resolution: {integrity: sha512-8reSzl/qGWGGVKhBoxXPMWzATSbZLZFWhwBAFO9NAyp0TxzfBP0mIrGb8CP8KrQTmvzXlR/vFPPUrHTLBGyFyw==} + + '@tanstack/svelte-query@6.1.38': + resolution: {integrity: sha512-oV5S/+uAot23p3lJChLAHr82+8ApgQMyIgroWPpN0d6Y6TlThRbLSXnhx6CoUk6AkwlCPxf9vh4SOHa0eXHiWg==} + peerDependencies: + svelte: ^5.25.0 + + '@tanstack/table-core@8.21.3': + resolution: {integrity: sha512-ldZXEhOBb8Is7xLs01fR3YEc3DERiz5silj8tnGkFZytt1abEvl/GhUmCE0PMLaMPTa3Jk4HbKmRlHmu+gCftg==} + engines: {node: '>=12'} + + '@tanstack/virtual-core@3.17.6': + resolution: {integrity: sha512-h0/Ebo18CkOrChlQIhNtQkM5ySUnh/GumQ/D1st3hG2HWUPEF+ILUc2k29UtivCi/9G7w7G3/f7Xyd5cCFbKBw==} + + '@tanstack/vue-query@5.101.4': + resolution: {integrity: sha512-UYjkUZhnWQIFGNb7SdgjCitAftNyYQfOIVUh6vBUQAG4SQKNMSBKeQERFDubpxLAMpIBJTaOrE8fM4c1kZcIGQ==} + peerDependencies: + '@vue/composition-api': ^1.1.2 + vue: ^2.6.0 || ^3.3.0 + peerDependenciesMeta: + '@vue/composition-api': + optional: true + + '@ts-morph/common@0.29.0': + resolution: {integrity: sha512-35oUmphHbJvQ/+UTwFNme/t2p3FoKiGJ5auTjjpNTop2dyREspirjMy82PLSC1pnDJ8ah1GU98hwpVt64YXQsg==} + + '@tybys/wasm-util@0.10.3': + resolution: {integrity: sha512-F3fo1MYrRJYL3zER0OUOmkutjr1Vp23m7OsSgp7nq4SP6OqX6C/56XFIPAl5bt3zaBRjmW7SGz3u/6LwFpYcOg==} + + '@types/d3-array@3.2.2': + resolution: {integrity: sha512-hOLWVbm7uRza0BYXpIIW5pxfrKe0W+D5lrFiAEYR+pb6w3N2SwSMaJbXdUfSEv+dT4MfHBLtn5js0LAWaO6otw==} + + '@types/d3-color@3.1.3': + resolution: {integrity: sha512-iO90scth9WAbmgv7ogoq57O9YpKmFBbmoEoCHDB2xMBY0+/KVrqAaCDyCE16dUspeOvIxFFRI+0sEtqDqy2b4A==} + + '@types/d3-drag@3.0.7': + resolution: {integrity: sha512-HE3jVKlzU9AaMazNufooRJ5ZpWmLIoc90A37WU2JMmeq28w1FQqCZswHZ3xR+SuxYftzHq6WU6KJHvqxKzTxxQ==} + + '@types/d3-ease@3.0.2': + resolution: {integrity: sha512-NcV1JjO5oDzoK26oMzbILE6HW7uVXOHLQvHshBUW4UMdZGfiY6v5BeQwh9a9tCzv+CeefZQHJt5SRgK154RtiA==} + + '@types/d3-interpolate@3.0.4': + resolution: {integrity: sha512-mgLPETlrpVV1YRJIglr4Ez47g7Yxjl1lj7YKsiMCb27VJH9W8NVM6Bb9d8kkpG/uAQS5AmbA48q2IAolKKo1MA==} + + '@types/d3-path@3.1.1': + resolution: {integrity: sha512-VMZBYyQvbGmWyWVea0EHs/BwLgxc+MKi1zLDCONksozI4YJMcTt8ZEuIR4Sb1MMTE8MMW49v0IwI5+b7RmfWlg==} + + '@types/d3-scale@4.0.9': + resolution: {integrity: sha512-dLmtwB8zkAeO/juAMfnV+sItKjlsw2lKdZVVy6LRr0cBmegxSABiLEpGVmSJJ8O08i4+sGR6qQtb6WtuwJdvVw==} + + '@types/d3-selection@3.0.11': + resolution: {integrity: sha512-bhAXu23DJWsrI45xafYpkQ4NtcKMwWnAC/vKrd2l+nxMFuvOT3XMYTIj2opv8vq8AO5Yh7Qac/nSeP/3zjTK0w==} + + '@types/d3-shape@3.1.8': + resolution: {integrity: sha512-lae0iWfcDeR7qt7rA88BNiqdvPS5pFVPpo5OfjElwNaT2yyekbM0C9vK+yqBqEmHr6lDkRnYNoTBYlAgJa7a4w==} + + '@types/d3-time@3.0.4': + resolution: {integrity: sha512-yuzZug1nkAAaBlBBikKZTgzCeA+k1uy4ZFwWANOfKw5z5LRhV0gNA7gNkKm7HoK+HRN0wX3EkxGk0fpbWhmB7g==} + + '@types/d3-timer@3.0.2': + resolution: {integrity: sha512-Ps3T8E8dZDam6fUyNiMkekK3XUsaUEik+idO9/YjPtfj2qruF8tFBXS7XhtE4iIXBLxhmLjP3SXpLhVf21I9Lw==} + + '@types/d3-transition@3.0.9': + resolution: {integrity: sha512-uZS5shfxzO3rGlu0cC3bjmMFKsXv+SmZZcgp0KD22ts4uGXp5EVYGzu/0YdwZeKmddhcAccYtREJKkPfXkZuCg==} + + '@types/d3-zoom@3.0.8': + resolution: {integrity: sha512-iqMC4/YlFCSlO8+2Ii1GGGliCAY4XdeG748w5vQUbevlbDu0zSjH/+jojorQVBK/se0j6DUFNPBGSqD3YWYnDw==} + + '@types/estree@1.0.9': + resolution: {integrity: sha512-GhdPgy1el4/ImP05X05Uw4cw2/M93BCUmnEvWZNStlCzEKME4Fkk+YpoA5OiHNQmoS7Cafb8Xa3Pya8m1Qrzeg==} + + '@types/hast@3.0.5': + resolution: {integrity: sha512-rp/ezSWaD1m44dPKICGhiskI13nVr7qTloFwDa/IYkhhf5nzwP+zIQcIJh3WIFSBOy/H1PzB40jPjMDksN4F+g==} + + '@types/istanbul-lib-coverage@2.0.6': + resolution: {integrity: sha512-2QF/t/auWm0lsy8XtKVPG19v3sSOQlJe/YHZgfjb/KBBHOGSV+J2q/S671rcq9uTBrLAXmZpqJiaQbMT+zNU1w==} + + '@types/istanbul-lib-report@3.0.3': + resolution: {integrity: sha512-NQn7AHQnk/RSLOxrBbGyJM/aVQ+pjj5HCgasFxc0K/KhoATfQ/47AyUl15I2yBUpihjmas+a+VJBOqecrFH+uA==} + + '@types/istanbul-reports@3.0.4': + resolution: {integrity: sha512-pk2B1NWalF9toCRu6gjBzR69syFjP4Od8WRAX+0mmf9lAjCRicLOWc+ZrxZHx/0XRjotgkF9t6iaMJ+aXcOdZQ==} + + '@types/mdast@4.0.4': + resolution: {integrity: sha512-kGaNbPh1k7AFzgpud/gMdvIm5xuECykRR+JnWKQno9TAXVa6WIVCGTPvYGekIDL4uwCZQSYbUxNBSb1aUo79oA==} + + '@types/node@24.13.3': + resolution: {integrity: sha512-Dh8vAsV36ig5wa9OX4pXvMc9D3Veibfw2wix0CUwYODLD8nkj9UsLjASr49nPg+2eKzxhBV+v7L8pXvT4e639Q==} + + '@types/react-dom@19.2.3': + resolution: {integrity: sha512-jp2L/eY6fn+KgVVQAOqYItbF0VY/YApe5Mz2F0aykSO8gx31bYCZyvSeYxCHKvzHG5eZjc+zyaS5BrBWya2+kQ==} + peerDependencies: + '@types/react': ^19.2.0 + + '@types/react@19.2.17': + resolution: {integrity: sha512-MXfmqaVPEVgkBT/aY0aGCkRWWtByiYQXo3xdQ8r5RzuFrPiRn8Gar2tQdXSUQ2GKV3bkXckek89V8wQBY2Q/Aw==} + + '@types/trusted-types@2.0.7': + resolution: {integrity: sha512-ScaPdn1dQczgbl0QFTeTOmVHFULt394XJgOQNoyVhZ6r2vLnMLJfBPd53SB52T/3G36VI1/g2MZaX0cwDuXsfw==} + + '@types/unist@3.0.3': + resolution: {integrity: sha512-ko/gIFJRv177XgZsZcBwnqJN5x/Gien8qNOn0D5bQU/zAzVf9Zt3BlcUiLqhV9y4ARk0GbT3tnUiPNgnTXzc/Q==} + + '@types/use-sync-external-store@0.0.6': + resolution: {integrity: sha512-zFDAD+tlpf2r4asuHEj0XH6pY6i0g5NeAHPn+15wk3BV6JA69eERFXC1gyGThDkVa1zCyKr5jox1+2LbV/AMLg==} + + '@types/yargs-parser@21.0.3': + resolution: {integrity: sha512-I4q9QU9MQv4oEOz4tAHJtNz1cwuLxn2F3xcc2iV5WdqLPpUnj30aUuxt1mAxYTG+oe8CZMV/+6rU4S4gRDzqtQ==} + + '@types/yargs@17.0.35': + resolution: {integrity: sha512-qUHkeCyQFxMXg79wQfTtfndEC+N9ZZg76HJftDJp+qH2tV7Gj4OJi7l+PiWwJ+pWtW8GwSmqsDj/oymhrTWXjg==} + + '@ungap/structured-clone@1.3.3': + resolution: {integrity: sha512-60YRaenCQcVjYEKOcG824+DRGGIQ3VKErcBoAEDJZz5bKIs2ZG+X/H9Nk+Q6EVkwJk5QNApxbrc5QtBSwtrXAg==} + + '@vercel/oidc@3.2.0': + resolution: {integrity: sha512-UycprH3T6n3jH0k44NHMa7pnFHGu/N05MjojYr+Mc6I7obkoLIJujSWwin1pCvdy/eOxrI/l3uDLQsmcrOb4ug==} + engines: {node: '>= 20'} + + '@visulima/ansi@4.0.0': + resolution: {integrity: sha512-UUYBvGNiXdM3PCd7ICsTkhbxdNSsOZFfYknTH435qDhhNo4ftv6unpiEDZOwrWNl1dtuE5mraUGG3/DMIwLqDA==} + engines: {node: ^22.14.0 || >=24.10.0} + + '@visulima/cerebro@3.0.0': + resolution: {integrity: sha512-DuwJbqND+Ie3niYLm79OBD5ECETj5daBd5Srqf8Syf+duwLWi02XgSU3wZ99N3LKs8NJs13dJl2Aq4/cuuCpcw==} + engines: {node: ^22.14.0 || >=24.10.0} + os: [darwin, linux, win32] + peerDependencies: + '@bomb.sh/tab': '>=0.0.16' + '@visulima/boxen': 3.0.0 + '@visulima/find-cache-dir': 3.0.0 + '@visulima/pail': 4.0.0 + github-slugger: '>=2.0.0' + peerDependenciesMeta: + '@bomb.sh/tab': + optional: true + '@visulima/boxen': + optional: true + '@visulima/find-cache-dir': + optional: true + '@visulima/pail': + optional: true + github-slugger: + optional: true + + '@visulima/colorize@2.0.0': + resolution: {integrity: sha512-qG+VECZOOSQZdr63eqSl2HjjBTzmbziqQ/tOAzSZD8MexSKvBUWfNB30L4vhz6vLPo+CxHHwytX7iyasi3Ma6Q==} + engines: {node: ^22.14.0 || >=24.10.0} + os: [darwin, linux, win32] + + '@visulima/email@2.1.1': + resolution: {integrity: sha512-HMvn+WJb+gH0nDfbsBi5bSbsBlfwApCiJLtXbdrOW1ug5kn1+OHgdHEjLxbJjccDmR+Cmmo4p7W/+XT6iReb0A==} + engines: {node: ^22.14.0 || >=24.10.0} + peerDependencies: + '@opentelemetry/api': ^1.0.0 || ^2.0.0 + '@react-email/render': ^2.0.10 + '@vue-email/render': 0.0.9 + asn1js: '>=3.0.10' + fast-xml-parser: ^4.5.0 + handlebars: '>=4.7.9' + jsx-email: ^2.0.0 + juice: ^11.0.0 + liquidjs: ^10.0.0 + mjml: '>=5.4.0' + nodemailer: '>=7' + pkijs: '>=3.4.0' + unstorage: ^1.13.0 + peerDependenciesMeta: + '@opentelemetry/api': + optional: true + '@react-email/render': + optional: true + '@vue-email/render': + optional: true + asn1js: + optional: true + fast-xml-parser: + optional: true + handlebars: + optional: true + jsx-email: + optional: true + juice: + optional: true + liquidjs: + optional: true + mjml: + optional: true + nodemailer: + optional: true + pkijs: + optional: true + unstorage: + optional: true + + '@visulima/error@6.0.0': + resolution: {integrity: sha512-kBuOlM1FVQ0ekaIznGA9AByvYX6OpJ+0H8zSLmHh1hRKaVboEB0zbegvRZXCcXg1bES8HUbLiJPN+7zZT3NUmA==} + engines: {node: ^22.14.0 || >=24.10.0} + os: [darwin, linux, win32] + peerDependencies: + ai: '>=6.0.202' + peerDependenciesMeta: + ai: + optional: true + + '@visulima/find-ai-runner@1.0.0': + resolution: {integrity: sha512-NQmdERt6NoOT3nWHgvQn4SHG31iubH9oeB80eo/A8nthG4tfLY2codwL9BtZlV3DCctMQRAJwsfRZ+CLGhghhw==} + engines: {node: ^22.14.0 || >=24.10.0} + hasBin: true + + '@visulima/fs@5.0.4': + resolution: {integrity: sha512-eJAJGtezASY/UNUkKJwqgZkVcrqdLyp9rJ282Bud2bx98Mekx667aBZ5UOsrB4IduZQ7bMfdqccNVGtnM8TnEg==} + engines: {node: ^22.14.0 || >=24.10.0} + os: [darwin, linux, win32] + peerDependencies: + ini: ^7.0.0 + json5: ^2.2.3 + jsonc-parser: ^3.3.1 + smol-toml: ^1.7.0 + yaml: '>=2.9.0' + peerDependenciesMeta: + ini: + optional: true + json5: + optional: true + jsonc-parser: + optional: true + smol-toml: + optional: true + yaml: + optional: true + + '@visulima/interactive-manager@1.0.0': + resolution: {integrity: sha512-sPiEitNQbO81FnuMQJ3d/Anef5vTd9xDwB1o2MJQtI52taG8HXbgtESqVWajnpjBLpgY5n4Gn/Sw1ut8WUN90A==} + engines: {node: ^22.14.0 || >=24.10.0} + + '@visulima/is-ansi-color-supported@3.0.0': + resolution: {integrity: sha512-uHSrAgO9qrBlP+VQbkXh+/jKHzW2aKZNyrwrBXA0qR/Ro4dsrt3A6oZ9CMB7jVlCmHR/WKLP16o7ch+B1XhItw==} + engines: {node: ^22.14.0 || >=24.10.0} + + '@visulima/package@5.0.4': + resolution: {integrity: sha512-xge9CbB/ShmufIucxpzGmBogGTUOZH79f261CLEYWroi8thlS+kymo8Puqac8bLYAcaIZUpltdt8hi1D2aQcTA==} + engines: {node: ^22.14.0 || >=24.10.0} + os: [darwin, linux, win32] + + '@visulima/pail@4.0.0': + resolution: {integrity: sha512-g6s0/Sxq1JYA7NojRkjjXWwHj0JP81WVmxMThiQJcT+5v9GXJNSEurwEL7ljjT92ySp1vs4q/hXUZN9RCgMdfA==} + engines: {node: ^22.14.0 || >=24.10.0} + os: [darwin, linux, win32] + peerDependencies: + '@opentelemetry/api': ^1.9.1 + '@sveltejs/kit': '>=2.0' + '@visulima/redact': 3.0.0 + elysia: '>=1.0' + express: '>=4.0' + fastify: '>=4.0' + hono: '>=4.0' + next: '>=14.0' + rotating-file-stream: '>=3.2.9' + peerDependenciesMeta: + '@opentelemetry/api': + optional: true + '@sveltejs/kit': + optional: true + '@visulima/redact': + optional: true + elysia: + optional: true + express: + optional: true + fastify: + optional: true + hono: + optional: true + next: + optional: true + rotating-file-stream: + optional: true + + '@visulima/path@3.0.0': + resolution: {integrity: sha512-l9vlDaoFrmPlG3OFuC+ZitAT8fMB2AJu1ILNZhgToVQ0HCAFVG8X1pIM/GIBQeDULveW+unIRYR4HOhS+plsCA==} + engines: {node: ^22.14.0 || >=24.10.0} + os: [darwin, linux, win32] + + '@visulima/redact@3.0.0': + resolution: {integrity: sha512-WC4HCu+zwVrrP8c0pw9TGO7E9S4OxlJrqNzLltDJTYZxXfzjN5yEqA7cCVtbLSgcWgiTLVc8QOa6n6Fm6y0lCw==} + engines: {node: ^22.14.0 || >=24.10.0} + + '@visulima/spinner@1.0.0': + resolution: {integrity: sha512-3gCKLOUw4EGXWuf/Y6wabQkBsXyTAe3LSmwgZjn0a5S/EbY00jC/ZlpBAB/Zp6rqS/4yKjanhu6oEtwV5ZVaHw==} + engines: {node: ^22.14.0 || >=24.10.0} + + '@visulima/storage-client@1.0.0': + resolution: {integrity: sha512-wWtf7dGLouySavWzbhRMu3+4IGsdsTpOxAjcsHa5zxGV0lgMsY/+qs29STOg4BYSKs8ux8vDhW+dLy9qNba8Bg==} + engines: {node: ^22.14.0 || >=24.10.0} + peerDependencies: + '@tanstack/react-query': '>=5.100.9' + '@tanstack/solid-query': '>=5.100.9' + '@tanstack/svelte-query': '>=6.1.28' + '@tanstack/vue-query': '>=5.100.9' + react: '>=19.2.6' + solid-js: '>=1.9.12' + svelte: '>=3.0.0' + vue: '>=3.5.34' + + '@visulima/string@3.0.0': + resolution: {integrity: sha512-XflLJ8DelNZGrHoyywidrFUG+pG8zr1+aR31hyH8NhgdED31cHjY5w0n0pmjG/1yZBQNLNVhwvBbC+H6Od9YeA==} + engines: {node: ^22.14.0 || >=24.10.0} + + '@visulima/tabular@4.0.0': + resolution: {integrity: sha512-2BZVeNojH++U2AiMM8sIJb/Ofcrp8Pz2VnSJLyPH5kAGpE0c/KgFgUW8D6SPJIa5aylzMvK11p9YDPjaJ3igHQ==} + engines: {node: ^22.14.0 || >=24.10.0} + + '@visulima/tui-binding-darwin-arm64@1.0.4': + resolution: {integrity: sha512-CniUOHk6NPvy/Mf42ggTLpDvQQk33fyr+3ylKL0EunxtQm5Co0KZG4nogsrD4sq7pYwDeJGRutqUu4mY+CgHGQ==} + engines: {node: ^22.14.0 || >=24.10.0} + cpu: [arm64] + os: [darwin] + + '@visulima/tui-binding-darwin-x64@1.0.4': + resolution: {integrity: sha512-5gROWmnjF6X9vZbd8u7wimAr2BcGVWDHE8LTMHWBdBCDNYeYs5R4P+JIw2XqKhbYq+6JHsJtvFQ5mHphTk3b7A==} + engines: {node: ^22.14.0 || >=24.10.0} + cpu: [x64] + os: [darwin] + + '@visulima/tui-binding-linux-arm64-gnu@1.0.4': + resolution: {integrity: sha512-io6ZZ50UND6+9WJtVnv8k0Cl9KSX1i6Hec/GzkrK38BiNCaySa1Tu3L+uSbpemn6/42jUwGzFKBfeR4PnHwsEw==} + engines: {node: ^22.14.0 || >=24.10.0} + cpu: [arm64] + os: [linux] + libc: [glibc] + + '@visulima/tui-binding-linux-arm64-musl@1.0.4': + resolution: {integrity: sha512-2RuiO6NXJGo4X5fqj7ZnOXVqXTmHIETjK1HZqSrMwOSYB9KbC9PZ7pN7Uq1tnYnzHpwl6avbP0QYW0POFvkZVg==} + engines: {node: ^22.14.0 || >=24.10.0} + cpu: [arm64] + os: [linux] + libc: [musl] + + '@visulima/tui-binding-linux-x64-gnu@1.0.4': + resolution: {integrity: sha512-SBpgX9wOYE2EUgG4P+afyCeSyu/HWGiW3V0zrzGe7PaCNnsQqvy85rbT1i3W7u1wJE1yXTx/Kn4aMUSl4WYUcw==} + engines: {node: ^22.14.0 || >=24.10.0} + cpu: [x64] + os: [linux] + libc: [glibc] + + '@visulima/tui-binding-linux-x64-musl@1.0.4': + resolution: {integrity: sha512-wjR24V0Gw1pJlJGzvLEt0sbjUBFtR58eYA1s+H0VQsEMdCeW1SIoId+Hl3FdhjqISc0ozi0Wl2oWMvx0TcOs/w==} + engines: {node: ^22.14.0 || >=24.10.0} + cpu: [x64] + os: [linux] + libc: [musl] + + '@visulima/tui-binding-win32-arm64-msvc@1.0.4': + resolution: {integrity: sha512-7kNPxAxEjVwn14AF5S5zm61kjM7pEFh6Izh59QUUkYh78SNdTiiA956vlq7G4+ZebpOcwRrmmkdGHa0sgA+jAg==} + engines: {node: ^22.14.0 || >=24.10.0} + cpu: [arm64] + os: [win32] + + '@visulima/tui-binding-win32-x64-msvc@1.0.4': + resolution: {integrity: sha512-jogXEQq+Yei2qCOa31ipwqk5bAo17czmMUHc0TRmh34XxTGlTdMPSxxum0xIetr/A0Ije2z1rE1CDdSe3eatAA==} + engines: {node: ^22.14.0 || >=24.10.0} + cpu: [x64] + os: [win32] + + '@visulima/tui@1.0.4': + resolution: {integrity: sha512-8FqrzHi/JitHHZ25/hivZYVGL/HGt1iqZ8vN+RyZbl4jOkhZ0c4g4gOxvjPGF3yLKXicWj+JrfrwEyXD1v7Trg==} + engines: {node: ^22.14.0 || >=24.10.0} + peerDependencies: + '@shikijs/langs': ^4.3.0 + '@shikijs/themes': ^4.3.0 + '@visulima/tabular': 4.0.0 + cfonts: ^3.3.1 + diff: ^9.0.0 + marked: ^18.0.5 + react: ^19.2.6 + react-devtools-core: ^7.0.1 + react-reconciler: ^0.33.0 + shiki: ^4.3.0 + ws: ^8.21.0 + peerDependenciesMeta: + '@shikijs/langs': + optional: true + '@shikijs/themes': + optional: true + '@visulima/tabular': + optional: true + cfonts: + optional: true + diff: + optional: true + marked: + optional: true + react-devtools-core: + optional: true + shiki: + optional: true + ws: + optional: true + + '@visulima/vite-overlay@2.0.4': + resolution: {integrity: sha512-Vl0CTX3iZgXhVxrbxvdAtqA/EVMtGQ9jKEsfk6Nk8hwej6xZMQTc9oW6PUiDYMMk/yYZrAfeW90o5CLU2vX+zA==} + engines: {node: ^22.14.0 || >=24.10.0} + peerDependencies: + vite: ^6 || ^7 || ^8 + + '@vitejs/plugin-react@6.0.4': + resolution: {integrity: sha512-XcCQz0TBpBgljhj0gMuuDj49i6Ytqh5q1osT/Gp5uAVJUCTWxyskk/l1jwYYiu2xcNHHipdMz40EGfM1VdamVg==} + engines: {node: ^20.19.0 || >=22.12.0} + peerDependencies: + '@rolldown/plugin-babel': ^0.1.7 || ^0.2.0 + babel-plugin-react-compiler: ^1.0.0 + vite: ^8.0.0 + peerDependenciesMeta: + '@rolldown/plugin-babel': + optional: true + babel-plugin-react-compiler: + optional: true + + '@vue/compiler-core@3.5.40': + resolution: {integrity: sha512-39E8IgOhTbVDnoJFMKc2DvYnypcZwUqgUhQkccva/0m6FUwtIKSGV7n1hpVmYcFaoRAwf9pBcwnKlCEsN63ZEQ==} + + '@vue/compiler-dom@3.5.40': + resolution: {integrity: sha512-pwkx4vqlqOspFstrcmzwkKLePVMD3PT65imRzLhanU2V1Fj4K13g6OXjanOyzw3aTAuRk84BOmY8f3rEHqPaVA==} + + '@vue/compiler-sfc@3.5.40': + resolution: {integrity: sha512-gIf497P4kpuALcvs5n3AEg1Vdn0pSY4XbjASIfHNYF1/MP3T2Mf2STERTubysBxCRxzJGJYtF/O7vwJrxFB3Vw==} + + '@vue/compiler-ssr@3.5.40': + resolution: {integrity: sha512-rrE5xiXG663+vHCHa3J9p2z5OcBRjXmoqenprJxAFQxg5pSshzeBiCE6pu46axapRJ2Adk0YDA2BRZVjiHXnhg==} + + '@vue/devtools-api@6.6.4': + resolution: {integrity: sha512-sGhTPMuXqZ1rVOk32RylztWkfXTRhuS7vgAKv0zjqk8gbsHkJ7xfFf+jbySxt7tWObEJwyKaHMikV/WGDiQm8g==} + + '@vue/reactivity@3.5.40': + resolution: {integrity: sha512-B7ot9UlUZOi1zbq61/LvE88ZLTV8IlajTdiZTAEiDQgrnIMIZoPr9kGw0Zw46ObW62O9+H/Be3kMbfb7kYPQZA==} + + '@vue/runtime-core@3.5.40': + resolution: {integrity: sha512-KAZLweuZ6uUJPK1PMSQPgBU5gCjgrrfjUhSglmU9NhH+Zjepa8cnwSydPWDWHDwOgY4g3VcZ+PljbiHlURNCbw==} + + '@vue/runtime-dom@3.5.40': + resolution: {integrity: sha512-ZfrX8ssZQds900L9pr8AuK05ddnMsR4MPMZr8cPN9GoqoPWcXLhjvvbIA2SMv+7a97sJ1vv9pj/zxK0Cq/eEFQ==} + + '@vue/server-renderer@3.5.40': + resolution: {integrity: sha512-XNJym9WpevhTVt1HuwOrCRJ5Q+9z4BjTMrDtjTrvx74SmUll8spNTw6whWJa9mEkO4PKn5TihI/bm/8ds2QVJw==} + + '@vue/shared@3.5.40': + resolution: {integrity: sha512-WxnBtruIqOoV3rA4jeKDWzrYI5h7Cp4+pjwDi8kWGHz+IslhiN+wguLVVhtv2l8VoU02rzDCVfDjgCl1lNpZVg==} + + '@workflow/serde@4.1.0': + resolution: {integrity: sha512-pav4F2BoirECWR7Nf1TKt+2eETcBj7jj4cBefQ8VXQCA6NPkaKeLfj/zMgi+3zYV5ZIBT4GuUiphsj0/b9hPQQ==} + + '@xyflow/react@12.11.2': + resolution: {integrity: sha512-eLAlDWJfWnQEhJwGMjlWdAXO9eYllKpliUmPQlAmOLxz6mExXuzMVDUKLMquixgkrtmMFFtug3jGKmYYld12cA==} + peerDependencies: + '@types/react': '>=17' + '@types/react-dom': '>=17' + react: '>=17' + react-dom: '>=17' + peerDependenciesMeta: + '@types/react': + optional: true + '@types/react-dom': + optional: true + + '@xyflow/system@0.0.79': + resolution: {integrity: sha512-czLyOh91NF0hIzbNzwi8I6GlqG23BHh2435OddfI6uiaLH3xdrdygO93gqgH1Bv9mhy8XPFQJOBn1FTq4LvEWA==} + + accepts@2.0.0: + resolution: {integrity: sha512-5cvg6CtKwfgdmVqY1WIiXKc3Q1bkRqGLi+2W/6ao+6Y7gu/RCwRuAhGEzh5B4KlszSuTLgZYuqFqo5bImjNKng==} + engines: {node: '>= 0.6'} + + acorn@8.17.0: + resolution: {integrity: sha512-xRQbDb9BnwDafYNn6Vwl839DYVjqXYb1XVGtWAZ1kcDc6iwAL4hg3B1dZlRiuENFeO2H53gFG3in621AdERVAg==} + engines: {node: '>=0.4.0'} + hasBin: true + + ai@7.0.31: + resolution: {integrity: sha512-pJfwKXjF5kw0rKRTePwYo60EfWb8wfzJAgf3ojln/YkOsVVKttzZAJVcRPsg37Z3a06ZdKkxX+DSrMAFlPm5Mw==} + engines: {node: '>=22'} + peerDependencies: + zod: ^3.25.76 || ^4.1.8 + + ajv-formats@3.0.1: + resolution: {integrity: sha512-8iUql50EUR+uUcdRQ3HDqa6EVyo3docL8g5WJ3FNcWmu62IbkGUue/pEyLBW8VGKKucTPgqeks4fIU1DA4yowQ==} + peerDependencies: + ajv: ^8.0.0 + peerDependenciesMeta: + ajv: + optional: true + + ajv@8.20.0: + resolution: {integrity: sha512-Thbli+OlOj+iMPYFBVBfJ3OmCAnaSyNn4M1vz9T6Gka5Jt9ba/HIR56joy65tY6kx/FCF5VXNB819Y7/GUrBGA==} + + ansi-regex@5.0.1: + resolution: {integrity: sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==} + engines: {node: '>=8'} + + ansi-styles@4.3.0: + resolution: {integrity: sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==} + engines: {node: '>=8'} + + ansi-styles@5.2.0: + resolution: {integrity: sha512-Cxwpt2SfTzTtXcfOlzGEee8O+c+MmUgGrNiBcXnuWxuFJHe6a5Hz7qwhwe5OgaSYI0IJvkLqWX1ASG+cJOkEiA==} + engines: {node: '>=10'} + + ansis@4.3.1: + resolution: {integrity: sha512-BJ8/l4R5LRE7hW9WdSuGYrLSHi2ynxeFpDFbH0K/CgNeY/tyhk+vO6TYxXC5r5CpUhNVX310xzPsN/H9lCdfOA==} + engines: {node: '>=14'} + + aria-query@5.3.1: + resolution: {integrity: sha512-Z/ZeOgVl7bcSYZ/u/rh0fOpvEpq//LZmdbkXyc7syVzjPAhfOa9ebsdTSjEBDU4vs5nC98Kfduj1uFo0qyET3g==} + engines: {node: '>= 0.4'} + + asn1@0.2.6: + resolution: {integrity: sha512-ix/FxPn0MDjeyJ7i/yoHGFt/EX6LyNbxSEhPPXODPL+KB0VPk86UYfL0lMdy+KCnv+fmvIzySwaK5COwqVbWTQ==} + + axobject-query@4.1.0: + resolution: {integrity: sha512-qIj0G9wZbMGNLjLmg1PT6v2mE9AH2zlnADJD/2tC6E00hgmhUOfEB6greHPAfLRSufHqROIUTkw6E+M3lH0PTQ==} + engines: {node: '>= 0.4'} + + balanced-match@4.0.4: + resolution: {integrity: sha512-BLrgEcRTwX2o6gGxGOCNyMvGSp35YofuYzw9h1IMTRmKqttAZZVU67bdb9Pr2vUHA8+j3i2tJfjO6C6+4myGTA==} + engines: {node: 18 || 20 || >=22} + + base64-js@1.5.1: + resolution: {integrity: sha512-AKpaYlHn8t4SVbOHCy+b5+KKgvR4vrsD8vbvrbiQJps7fKDTkjkDry6ji0rUJjC0kzbNePLwzxq8iypo41qeWA==} + + baseline-browser-mapping@2.11.1: + resolution: {integrity: sha512-HYXq73DDpCtNzOmrFsm9eSwCvWCql0RzqjpDzXN9EadiLJ4DNat0nsZ/Bzmy+Ud12mb4/zKDY0cQ805ZzN+i0A==} + engines: {node: '>=6.0.0'} + hasBin: true + + bcrypt-pbkdf@1.0.2: + resolution: {integrity: sha512-qeFIXtP4MSoi6NLqO12WfqARWWuCKi2Rn/9hJLEmtB5yTNr9DqFWkJRCf2qShWzPeAMRnOgCrq0sg/KLv5ES9w==} + + bl@4.1.0: + resolution: {integrity: sha512-1W07cM9gS6DcLperZfFSj+bWLtaPGSOHWhPiGzXmvVJbRLdG82sH/Kn8EtW1VqWVA54AKf2h5k5BbnIbwF3h6w==} + + blake3-wasm@2.1.5: + resolution: {integrity: sha512-F1+K8EbfOZE49dtoPtmxUQrpXaBIl3ICvasLh+nJta0xkz+9kF/7uet9fLnwKqhDrmj6g+6K3Tw9yQPUg2ka5g==} + + body-parser@2.3.0: + resolution: {integrity: sha512-2cGmJupaNgg+QUwVLAucDuWuoMZ6EX9iHDRswZ5lsNYEmwPaRknMPCLZz07yTzVq/83p4o/wzbDZbBrTvGGTIw==} + engines: {node: '>=18'} + + brace-expansion@5.0.7: + resolution: {integrity: sha512-7oFy703dxfY3/NLxC1fh2SUCQ0H9rmAY+5EpDVfXjUTTs+HEwR2nYaqLv+GWcTsumwxPfiz6CzCNkwXwBUwqCA==} + engines: {node: 18 || 20 || >=22} + + browserslist@4.28.7: + resolution: {integrity: sha512-JxV13hNrFxqjOc8alRbq9dK1MM79NEXYpma2B2J4wAtpWS5zIEIKqWPGCl7N4o7Uc7B7itylh7SuDujATRyyTw==} + engines: {node: ^6 || ^7 || ^8 || ^9 || ^10 || ^11 || ^12 || >=13.7} + hasBin: true + + buffer@5.7.1: + resolution: {integrity: sha512-EHcyIPBQ4BSGlvjB16k5KgAJ27CIsHY/2JBmCRReo48y9rQ3MaUzWX3KVlBa4U7MyX02HdVj0K7C3WaB3ju7FQ==} + + buildcheck@0.0.7: + resolution: {integrity: sha512-lHblz4ahamxpTmnsk+MNTRWsjYKv965MwOrSJyeD588rR3Jcu7swE+0wN5F+PbL5cjgu/9ObkhfzEPuofEMwLA==} + engines: {node: '>=10.0.0'} + + bytes@3.1.2: + resolution: {integrity: sha512-/Nf7TyzTx6S3yRJObOAV7956r8cr2+Oj8AC5dt8wSP3BQAoeX58NoHyCU8P8zGkNXStjTSi6fzO6F0pBdcYbEg==} + engines: {node: '>= 0.8'} + + cac@7.0.0: + resolution: {integrity: sha512-tixWYgm5ZoOD+3g6UTea91eow5z6AAHaho3g0V9CNSNb45gM8SmflpAc+GRd1InC4AqN/07Unrgp56Y94N9hJQ==} + engines: {node: '>=20.19.0'} + + 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'} + + camelcase@6.3.0: + resolution: {integrity: sha512-Gmy6FhYlCY7uOElZUSbxo2UCDH8owEk996gkbrpsgGtrJLM3J7jGxl9Ic7Qwwj4ivOE5AWZWRMecDdF7hqGjFA==} + engines: {node: '>=10'} + + caniuse-lite@1.0.30001806: + resolution: {integrity: sha512-72Cuvd95zbSYPKq6Fhg8eDJRlzgWDf7/mtoZv6Qe/DYNCEBdNxoA3+rZAU2ZhGCpZlns3EssFavaZomckT5Uuw==} + + ccount@2.0.1: + resolution: {integrity: sha512-eyrF0jiFpY+3drT6383f1qhkbGsLSifNAjA61IUjZjmLCWjItY6LB9ft9YhoDgwfmclB2zhu51Lc7+95b8NRAg==} + + cfonts@3.3.1: + resolution: {integrity: sha512-ZGEmN3W9mViWEDjsuPo4nK4h39sfh6YtoneFYp9WLPI/rw8BaSSrfQC6jkrGW3JMvV3ZnExJB/AEqXc/nHYxkw==} + engines: {node: '>=10'} + hasBin: true + + chalk@4.1.2: + resolution: {integrity: sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==} + engines: {node: '>=10'} + + character-entities-html4@2.1.0: + resolution: {integrity: sha512-1v7fgQRj6hnSwFpq1Eu0ynr/CDEw0rXo2B61qXrLNdHZmPKgb7fqS1a2JwF0rISo9q77jDI8VMEHoApn8qDoZA==} + + character-entities-legacy@3.0.0: + resolution: {integrity: sha512-RpPp0asT/6ufRm//AJVwpViZbGM/MkjQFxJccQRHmISF/22NBtsHqAWmL+/pmkPWoIUJdWyeVleTl1wydHATVQ==} + + chownr@1.1.4: + resolution: {integrity: sha512-jJ0bqzaylmJtVnNgzTeSOs8DPavpbYgEr/b0YL8/2GO3xJEhInFmhKMUnEJQjZumK7KXGFhUy89PrsJWlakBVg==} + + class-variance-authority@0.7.1: + resolution: {integrity: sha512-Ka+9Trutv7G8M6WT6SeiRWz792K5qEqIGEGzXKhAE6xOWAY6pPH8U+9IY3oCMv6kqTmLsv7Xh/2w2RigkePMsg==} + + classcat@5.0.5: + resolution: {integrity: sha512-JhZUT7JFcQy/EzW605k/ktHtncoo9vnyW/2GspNYwFlN1C/WmjuV/xtS04e9SOkL2sTdw0VAZ2UGCcQ9lR6p6w==} + + cli-boxes@4.0.1: + resolution: {integrity: sha512-5IOn+jcCEHEraYolBPs/sT4BxYCe2nHg374OPiItB1O96KZFseS2gthU4twyYzeDcFew4DaUM/xwc5BQf08JJw==} + engines: {node: '>=18.20 <19 || >=20.10'} + + cliui@8.0.1: + resolution: {integrity: sha512-BSeNnyus75C4//NQ9gQt1/csTXyo/8Sb+afLAkzAptFuMsod9HFokGNudZpi/oQV73hnVK+sR+5PVRMd+Dr7YQ==} + engines: {node: '>=12'} + + clsx@2.1.1: + resolution: {integrity: sha512-eYm0QWBtUrBWZWG0d386OGAw16Z995PiOVo2B7bjWSbHedGl5e0ZWaq65kOGgUSNesEIDkB9ISbTg/JK9dhCZA==} + engines: {node: '>=6'} + + code-block-writer@13.0.3: + resolution: {integrity: sha512-Oofo0pq3IKnsFtuHqSF7TqBfr71aeyZDVJ0HpmqB7FBM2qEigL0iPONSCZSO9pE9dZTAxANe5XHG9Uy0YMv8cg==} + + code-excerpt@4.0.0: + resolution: {integrity: sha512-xxodCmBen3iy2i0WtAK8FlFNrRzjUqjRsMfho58xT/wvZU1YTM3fCnRjcy1gJPMepaRlgm/0e6w8SpWHpn3/cA==} + engines: {node: ^12.20.0 || ^14.13.1 || >=16.0.0} + + color-convert@2.0.1: + resolution: {integrity: sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==} + engines: {node: '>=7.0.0'} + + color-name@1.1.4: + resolution: {integrity: sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==} + + comma-separated-tokens@2.0.3: + resolution: {integrity: sha512-Fu4hJdvzeylCfQPp9SGWidpzrMs7tTrlu6Vb8XGaRGck8QSNZJJp538Wrb60Lax4fPwR64ViY468OIUTbRlGZg==} + + compromise@14.16.0: + resolution: {integrity: sha512-4DFYl/Hl7sW4XWUDfx9S5vxqyYKpZDwwqrpXsQv5acdbVP+joKceIcIaLb0lhVWUpDBV0OnExk/o/dnYUwXnhQ==} + engines: {node: '>=12.0.0'} + + content-disposition@1.1.0: + resolution: {integrity: sha512-5jRCH9Z/+DRP7rkvY83B+yGIGX96OYdJmzngqnw2SBSxqCFPd0w2km3s5iawpGX8krnwSGmF0FW5Nhr0Hfai3g==} + engines: {node: '>=18'} + + content-type@1.0.5: + resolution: {integrity: sha512-nTjqfcBFEipKdXCv4YDQWCfmcLZKm81ldF0pAopTvyrFGVbcR6P/VAAd5G7N+0tTr8QqiU0tFadD6FK4NtJwOA==} + engines: {node: '>= 0.6'} + + content-type@2.0.0: + resolution: {integrity: sha512-j/O/d7GcZCyNl7/hwZAb606rzqkyvaDctLmckbxLzHvFBzTJHuGEdodATcP3yIRoDrLHkIATJuvzbFlp/ki2cQ==} + engines: {node: '>=18'} + + convert-source-map@2.0.0: + resolution: {integrity: sha512-Kvp459HrV2FEJ1CAsi1Ku+MY3kasH19TFykTz2xWmMeq6bk2NU3XXvfJ+Q61m0xktWwt+1HSYf3JZsTms3aRJg==} + + convert-to-spaces@2.0.1: + resolution: {integrity: sha512-rcQ1bsQO9799wq24uE5AM2tAILy4gXGIK/njFWcVQkGNZ96edlpY+A7bjwvzjYvLDyzmG1MmMLZhpcsb+klNMQ==} + engines: {node: ^12.20.0 || ^14.13.1 || >=16.0.0} + + cookie-es@3.1.1: + resolution: {integrity: sha512-UaXxwISYJPTr9hwQxMFYZ7kNhSXboMXP+Z3TRX6f1/NyaGPfuNUZOWP1pUEb75B2HjfklIYLVRfWiFZJyC6Npg==} + + 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'} + + cpu-features@0.0.10: + resolution: {integrity: sha512-9IkYqtX3YHPCzoVg1Py+o9057a3i0fp7S530UWokCSaFVTc7CwXPRiOjRjBQQ18ZCNafx78YfnG+HALxtVmOGA==} + engines: {node: '>=10.0.0'} + + cron-parser@5.6.2: + resolution: {integrity: sha512-yJ/G1LVir6CnlkLI40CsampPLKl1SprGGlUagWtGJxewytRVYezv5xVyzzbT+Pvzx+VIRvZVF7/a0eEMTxdnTA==} + engines: {node: '>=18'} + + cross-spawn@7.0.6: + resolution: {integrity: sha512-uV2QOWP2nWzsy2aMp8aRibhi9dlzF5Hgh5SHaB9OiTGEyDTiJJyx0uy51QXdyWbtAHNua4XJzUKca3OzKUd3vA==} + engines: {node: '>= 8'} + + csstype@3.2.3: + resolution: {integrity: sha512-z1HGKcYy2xA8AGQfwrn0PAy+PB7X/GSj3UVJW9qKyn43xWa+gl5nXmU4qqLMRzWVLFC8KusUX8T/0kCiOYpAIQ==} + + d3-array@3.2.4: + resolution: {integrity: sha512-tdQAmyA18i4J7wprpYq8ClcxZy3SC31QMeByyCFyRt7BVHdREQZ5lpzoe5mFEYZUWe+oq8HBvk9JjpibyEV4Jg==} + engines: {node: '>=12'} + + d3-color@3.1.0: + resolution: {integrity: sha512-zg/chbXyeBtMQ1LbD/WSoW2DpC3I0mpmPdW+ynRTj/x2DAWYrIY7qeZIHidozwV24m4iavr15lNwIwLxRmOxhA==} + engines: {node: '>=12'} + + d3-dispatch@3.0.1: + resolution: {integrity: sha512-rzUyPU/S7rwUflMyLc1ETDeBj0NRuHKKAcvukozwhshr6g6c5d8zh4c2gQjY2bZ0dXeGLWc1PF174P2tVvKhfg==} + engines: {node: '>=12'} + + d3-drag@3.0.0: + resolution: {integrity: sha512-pWbUJLdETVA8lQNJecMxoXfH6x+mO2UQo8rSmZ+QqxcbyA3hfeprFgIT//HW2nlHChWeIIMwS2Fq+gEARkhTkg==} + engines: {node: '>=12'} + + d3-ease@3.0.1: + resolution: {integrity: sha512-wR/XK3D3XcLIZwpbvQwQ5fK+8Ykds1ip7A2Txe0yxncXSdq1L9skcG7blcedkOX+ZcgxGAmLX1FrRGbADwzi0w==} + engines: {node: '>=12'} + + d3-format@3.1.2: + resolution: {integrity: sha512-AJDdYOdnyRDV5b6ArilzCPPwc1ejkHcoyFarqlPqT7zRYjhavcT3uSrqcMvsgh2CgoPbK3RCwyHaVyxYcP2Arg==} + engines: {node: '>=12'} + + d3-interpolate@3.0.1: + resolution: {integrity: sha512-3bYs1rOD33uo8aqJfKP3JWPAibgw8Zm2+L9vBKEHJ2Rg+viTR7o5Mmv5mZcieN+FRYaAOWX5SJATX6k1PWz72g==} + engines: {node: '>=12'} + + d3-path@3.1.0: + resolution: {integrity: sha512-p3KP5HCf/bvjBSSKuXid6Zqijx7wIfNW+J/maPs+iwR35at5JCbLUT0LzF1cnjbCHWhqzQTIN2Jpe8pRebIEFQ==} + engines: {node: '>=12'} + + d3-scale@4.0.2: + resolution: {integrity: sha512-GZW464g1SH7ag3Y7hXjf8RoUuAFIqklOAq3MRl4OaWabTFJY9PN/E1YklhXLh+OQ3fM9yS2nOkCoS+WLZ6kvxQ==} + engines: {node: '>=12'} + + d3-selection@3.0.0: + resolution: {integrity: sha512-fmTRWbNMmsmWq6xJV8D19U/gw/bwrHfNXxrIN+HfZgnzqTHp9jOmKMhsTUjXOJnZOdZY9Q28y4yebKzqDKlxlQ==} + engines: {node: '>=12'} + + d3-shape@3.2.0: + resolution: {integrity: sha512-SaLBuwGm3MOViRq2ABk3eLoxwZELpH6zhl3FbAoJ7Vm1gofKx6El1Ib5z23NUEhF9AsGl7y+dzLe5Cw2AArGTA==} + engines: {node: '>=12'} + + d3-time-format@4.1.0: + resolution: {integrity: sha512-dJxPBlzC7NugB2PDLwo9Q8JiTR3M3e4/XANkreKSUxF8vvXKqm1Yfq4Q5dl8budlunRVlUUaDUgFt7eA8D6NLg==} + engines: {node: '>=12'} + + d3-time@3.1.0: + resolution: {integrity: sha512-VqKjzBLejbSMT4IgbmVgDjpkYrNWUYJnbCGo874u7MMKIWsILRX+OpX/gTk8MqjpT1A/c6HY2dCA77ZN0lkQ2Q==} + engines: {node: '>=12'} + + d3-timer@3.0.1: + resolution: {integrity: sha512-ndfJ/JxxMd3nw31uyKoY2naivF+r29V+Lc0svZxe1JvvIRmi8hUsrMvdOwgS1o6uBHmiz91geQ0ylPP0aj1VUA==} + engines: {node: '>=12'} + + d3-transition@3.0.1: + resolution: {integrity: sha512-ApKvfjsSR6tg06xrL434C0WydLr7JewBB3V+/39RMHsaXTOG0zmt/OAXeng5M5LBm0ojmxJrpomQVZ1aPvBL4w==} + engines: {node: '>=12'} + peerDependencies: + d3-selection: 2 - 3 + + d3-zoom@3.0.0: + resolution: {integrity: sha512-b8AmV3kfQaqWAuacbPuNbL6vahnOJflOhexLzMMNLga62+/nh0JzvJ0aO/5a5MVgUFGS7Hu1P9P03o3fJkDCyw==} + engines: {node: '>=12'} + + debug@4.4.3: + resolution: {integrity: sha512-RGwwWnwQvkVfavKVt22FGLw+xYSdzARwm0ru6DhTVA3umU5hZc28V3kO4stgYryrTlLpuvgI9GiijltAjNbcqA==} + engines: {node: '>=6.0'} + peerDependencies: + supports-color: '*' + peerDependenciesMeta: + supports-color: + optional: true + + decimal.js-light@2.5.1: + resolution: {integrity: sha512-qIMFpTMZmny+MMIitAB6D7iVPEorVw6YQRWkvarTkT4tBeSLLiHzcwj6q0MmYSFCiVpiqPJTJEYIrpcPzVEIvg==} + + deepmerge-ts@7.1.5: + resolution: {integrity: sha512-HOJkrhaYsweh+W+e74Yn7YStZOilkoPb6fycpwNLKzSPtruFs48nYis0zy5yJz1+ktUhHxoRDJ27RQAWLIJVJw==} + engines: {node: '>=16.0.0'} + + deepmerge@4.3.1: + resolution: {integrity: sha512-3sUqbMEc77XqpdNO7FRyRog+eW3ph+GYCbj+rK+uYyRMuwsVy0rMiVtPn+QJlKFvWP/1PYpapqYn0Me2knFn+A==} + engines: {node: '>=0.10.0'} + + define-property@1.0.0: + resolution: {integrity: sha512-cZTYKFWspt9jZsMscWo8sc/5lbPC9Q0N5nBLgb+Yd915iL3udB1uFgS3B8YCx66UVHq018DAVFoee7x+gxggeA==} + engines: {node: '>=0.10.0'} + + 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'} + + detect-libc@2.1.2: + resolution: {integrity: sha512-Btj2BOOO83o3WyH59e8MgXsxEQVcarkUOpEYrubB0urwnN10yQ364rsiByU11nZlqWYZm05i/of7io4mzihBtQ==} + engines: {node: '>=8'} + + devalue@5.8.2: + resolution: {integrity: sha512-DObPPAfdtFbXjxLqK8s2Xk9ZuWz5+ZoFEhC7J76es4GU/rEiXwHTmbImoCdyoCOcBH1UF3+Cz6Z2sYD4hyl5TA==} + + devlop@1.1.0: + resolution: {integrity: sha512-RWmIqhcFf1lRYBvNmr7qTNuyCt/7/ns2jbpp1+PalgE/rDQcBT0fioSMUpJ93irlUhC5hrg4cYqe6U+0ImW0rA==} + + docker-modem@5.0.7: + resolution: {integrity: sha512-XJgGhoR/CLpqshm4d3L7rzH6t8NgDFUIIpztYlLHIApeJjMZKYJMz2zxPsYxnejq5h3ELYSw/RBsi3t5h7gNTA==} + engines: {node: '>= 8.0'} + + dockerode@5.0.1: + resolution: {integrity: sha512-avsq/xk4YPIrn0CgleX5bjT9Y8IT1p9PxrNQ++RBQ2WEyFfHCTDsT9kmyxz+H/axnjAwg8wJWEIuPGOUuNupiA==} + engines: {node: '>= 14.17'} + + dom-serializer@2.0.0: + resolution: {integrity: sha512-wIkAryiqt/nV5EQKqQpo3SToSOV9J0DnbJqwK7Wv/Trc92zIAYZ4FlMu+JPFW1DfGFt81ZTCGgDEabffXeLyJg==} + + domelementtype@2.3.0: + resolution: {integrity: sha512-OLETBj6w0OsagBwdXnPdN0cnMfF9opN69co+7ZrbfPGrdpPVNBUj02spi6B1N7wChLQiPn4CSH/zJvXw56gmHw==} + + domhandler@5.0.3: + resolution: {integrity: sha512-cgwlv/1iFQiFnU96XXgROh8xTeetsnJiDsTc7TYCLFd9+/WNkIqPTxiM/8pSd8VIrhXGTf1Ny1q1hquVqDJB5w==} + engines: {node: '>= 4'} + + domutils@3.2.2: + resolution: {integrity: sha512-6kZKyUajlDuqlHKVX1w7gyslj9MPIXzIFiz/rGu35uC1wMi+kMhQwGhl4lt9unC9Vb9INnY9Z3/ZA3+FhASLaw==} + + drizzle-orm@0.45.2: + resolution: {integrity: sha512-kY0BSaTNYWnoDMVoyY8uxmyHjpJW1geOmBMdSSicKo9CIIWkSxMIj2rkeSR51b8KAPB7m+qysjuHme5nKP+E5Q==} + peerDependencies: + '@aws-sdk/client-rds-data': '>=3' + '@cloudflare/workers-types': '>=4' + '@electric-sql/pglite': '>=0.2.0' + '@libsql/client': '>=0.10.0' + '@libsql/client-wasm': '>=0.10.0' + '@neondatabase/serverless': '>=0.10.0' + '@op-engineering/op-sqlite': '>=2' + '@opentelemetry/api': ^1.4.1 + '@planetscale/database': '>=1.13' + '@prisma/client': '*' + '@tidbcloud/serverless': '*' + '@types/better-sqlite3': '*' + '@types/pg': '*' + '@types/sql.js': '*' + '@upstash/redis': '>=1.34.7' + '@vercel/postgres': '>=0.8.0' + '@xata.io/client': '*' + better-sqlite3: '>=7' + bun-types: '*' + expo-sqlite: '>=14.0.0' + gel: '>=2' + knex: '*' + kysely: '*' + mysql2: '>=2' + pg: '>=8' + postgres: '>=3' + prisma: '*' + sql.js: '>=1' + sqlite3: '>=5' + peerDependenciesMeta: + '@aws-sdk/client-rds-data': + optional: true + '@cloudflare/workers-types': + optional: true + '@electric-sql/pglite': + optional: true + '@libsql/client': + optional: true + '@libsql/client-wasm': + optional: true + '@neondatabase/serverless': + optional: true + '@op-engineering/op-sqlite': + optional: true + '@opentelemetry/api': + optional: true + '@planetscale/database': + optional: true + '@prisma/client': + optional: true + '@tidbcloud/serverless': + optional: true + '@types/better-sqlite3': + optional: true + '@types/pg': + optional: true + '@types/sql.js': + optional: true + '@upstash/redis': + optional: true + '@vercel/postgres': + optional: true + '@xata.io/client': + optional: true + better-sqlite3: + optional: true + bun-types: + optional: true + expo-sqlite: + optional: true + gel: + optional: true + knex: + optional: true + kysely: + optional: true + mysql2: + optional: true + pg: + optional: true + postgres: + optional: true + prisma: + optional: true + sql.js: + optional: true + 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==} + + efrt@2.7.0: + resolution: {integrity: sha512-/RInbCy1d4P6Zdfa+TMVsf/ufZVotat5hCw3QXmWtjU+3pFEOvOQ7ibo3aIxyCJw2leIeAMjmPj+1SLJiCpdrQ==} + engines: {node: '>=12.0.0'} + + electron-to-chromium@1.5.395: + resolution: {integrity: sha512-7zt9Aw+SrmxLWLN0zhaTWZQiCdryLVrYTq5R7iZakLvi2UQPYMMsROYV/2qVCzMeCiSXHwKOU+sZ4zOVVlrtKA==} + + emoji-regex@8.0.0: + resolution: {integrity: sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==} + + encodeurl@2.0.0: + resolution: {integrity: sha512-Q0n9HRi4m6JuGIV1eFlmvJB7ZEVxu93IrMyiMsGC0lrMJMWzRgx6WGquyfQgZVb31vhGgXnfmPNNXmxnOkRBrg==} + engines: {node: '>= 0.8'} + + end-of-stream@1.4.5: + resolution: {integrity: sha512-ooEGc6HP26xXq/N+GCGOT0JKCLDGrq2bQUZrQ7gyrJiZANJ/8YDTxTpQBXGMn+WbIQXNVpyWymm7KYVICQnyOg==} + + entities@4.5.0: + resolution: {integrity: sha512-V0hjH4dGPh9Ao5p0MoRY6BVqtwCjhz6vI5LT8AJ55H+4g9/4vbHx1I54fS0XuclLhDHArPQCiMjDxjaL8fPxhw==} + engines: {node: '>=0.12'} + + entities@7.0.1: + resolution: {integrity: sha512-TWrgLOFUQTH994YUyl1yT4uyavY5nNB5muff+RtWaqNVCAK408b5ZnnbNAUEWLTCpum9w6arT70i1XdQ4UeOPA==} + engines: {node: '>=0.12'} + + error-stack-parser-es@1.0.5: + resolution: {integrity: sha512-5qucVt2XcuGMcEGgWI7i+yZpmpByQ8J1lHhcL7PwqCwu9FPP3VUXzT4ltHe5i2z9dePwEHcDVOAfSnHsOlCXRA==} + + 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'} + + es-module-lexer@2.3.1: + resolution: {integrity: sha512-shc1dbU90Yl/xq1QrC7QRtfcwURZuVRfPhZbDoldJ1cn1gzDvBaBWlv0eFolj5+0znnPJz5TXLxsN77X/12KTA==} + + es-object-atoms@1.1.2: + resolution: {integrity: sha512-HWcBoN6NileqtSydK2FqHbS/LoDd2pqrnQHLyJzBj4kOp/ky2MWMN694xOfkK8/SnUsW2DH7EfyVlydKCsm1Zw==} + engines: {node: '>= 0.4'} + + es-toolkit@1.49.0: + resolution: {integrity: sha512-G5iZ6Pc/FNRY/soKZHC+TxGDD83rHUDXxzaWhGCX44vAv/tMs56WMusnm/KMNK+luUPsgA9U28cGr4RDlSzL2g==} + + esbuild@0.28.1: + resolution: {integrity: sha512-HrJrvZv5ayxBzPfwphOoNzkzOIIlifzk0KJrGK2c8R4+LKpMtpYLQeUdjnwjWv/LZlkH2laZk+4w78pi99D4Vw==} + engines: {node: '>=18'} + hasBin: true + + escalade@3.2.0: + resolution: {integrity: sha512-WUj2qlxaQtO4g6Pq5c29GTcWGDyd8itL8zTlipgECz3JesAiiOKotd8JU6otB3PACgG6xkJUyVhboMS+bje/jA==} + engines: {node: '>=6'} + + escape-html@1.0.3: + resolution: {integrity: sha512-NiSupZ4OeuGwr68lGIeym/ksIZMJodUGOSCZ/FSnTxcrekbvqrgdUxlJOMpijaKZVjAJrWrGs/6Jy8OMuyj9ow==} + + esm-env@1.2.2: + resolution: {integrity: sha512-Epxrv+Nr/CaL4ZcFGPJIYLWFom+YeV1DqMLHJoEd9SYRxNbaFruBwfEX/kkHUJf55j2+TUbmDcmuilbP1TmXHA==} + + esrap@2.3.0: + resolution: {integrity: sha512-GQ/7RN8uOtEfNpzZzBMTzW9JBcX42oaSVtPzdF+6cEL8pqIL094iUpr9jzYGn4O4P/1S60dJ6izyT8F4LYARng==} + peerDependencies: + '@typescript-eslint/types': ^8.2.0 + peerDependenciesMeta: + '@typescript-eslint/types': + optional: true + + estree-walker@2.0.2: + resolution: {integrity: sha512-Rfkk/Mp/DL7JVje3u18FxFujQlTNR2q6QfMSMB7AvCBx91NGj/ba3kCfza0f6dVDbw7YlRf/nDrn7pQrCCyQ/w==} + + etag@1.8.1: + resolution: {integrity: sha512-aIL5Fx7mawVa300al2BnEE4iNvo1qETxLrPI/o05L7z6go7fCw1J6EQmbK4FmJ2AS7kgVF/KEZWufBfdClMcPg==} + engines: {node: '>= 0.6'} + + eventemitter3@5.0.4: + resolution: {integrity: sha512-mlsTRyGaPBjPedk6Bvw+aqbsXDtoAyAzm5MO7JgU+yVRyMQ5O8bD4Kcci7BS85f93veegeCPkL8R4GLClnjLFw==} + + eventsource-parser@3.1.0: + resolution: {integrity: sha512-kJezFj9YFAMLeORyi7aCLxLbD5/qWMQnoMVlVPyHIll7lgRJCc3JVln9Vgl9nwQi0YkMnhdGTMNn7CkRRAptMg==} + engines: {node: '>=18.0.0'} + + eventsource@3.0.7: + resolution: {integrity: sha512-CRT1WTyuQoD771GW56XEZFQ/ZoSfWid1alKGDYMmkt2yl8UXrVR4pspqWNEcqKvVIzg6PAltWjxcSSPrboA4iA==} + engines: {node: '>=18.0.0'} + + express-rate-limit@8.6.0: + resolution: {integrity: sha512-XKJXDsASUOo0LLtFwW5hCcQGH0N4WQc/Rn8/Pvoia+TJFOkkFPvrtW9lZOeeNcxQJspvOIERMwiRLsVFlhHEkA==} + engines: {node: '>= 16'} + peerDependencies: + express: '>= 4.11' + + express@5.2.1: + resolution: {integrity: sha512-hIS4idWWai69NezIdRt2xFVofaF4j+6INOpJlVOLDO8zXGpUVEVzIYk12UUi2JzjEzWL3IOAxcTubgz9Po0yXw==} + engines: {node: '>= 18'} + + fast-deep-equal@3.1.3: + resolution: {integrity: sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==} + + fast-uri@3.1.4: + resolution: {integrity: sha512-8JnbkQ4juDyvYs4mgFGQqg4yCYtFDtUtmp2QIQq11ZZe5CFQ5wcqm1rqDgAh/QdMySuBnPzMUiJUNZG5N/AiQw==} + + fastest-levenshtein@1.0.16: + resolution: {integrity: sha512-eRnCtTTtGZFpQCwhJiUOuxPQWRXVKYDn0b2PeHfXL6/Zi53SLAzAHfVhVWK2AryC/WH05kGfxhFIPvTF0SXQzg==} + engines: {node: '>= 4.9.1'} + + fdir@6.5.0: + resolution: {integrity: sha512-tIbYtZbucOs0BRGqPJkshJUYdL+SDH7dVM8gjy+ERp3WAUjLEFJE+02kanyHtwjWOnwrKYBiwAmM0p4kLJAnXg==} + engines: {node: '>=12.0.0'} + peerDependencies: + picomatch: ^3 || ^4 + peerDependenciesMeta: + picomatch: + optional: true + + finalhandler@2.1.1: + resolution: {integrity: sha512-S8KoZgRZN+a5rNwqTxlZZePjT/4cnm0ROV70LedRHZ0p8u9fRID0hJUZQpkKLzro8LfmC8sx23bY6tVNxv8pQA==} + engines: {node: '>= 18.0.0'} + + forwarded@0.2.0: + resolution: {integrity: sha512-buRG0fpBtRHSTCOASe6hD258tEubFoRLb4ZNA6NxMVHNw2gOcwHo9wyablzMzOA5z9xA9L1KNjk/Nt6MT9aYow==} + engines: {node: '>= 0.6'} + + fractional-indexing@3.4.0: + resolution: {integrity: sha512-8J3glhz2rrpKG6KmI7wmJo3zH1VjeOpN+vTJSw1fOyO+Viqq3zX6/5NGh6oaZB2qIAYdOYuu5Dz9xp4faOO0Pg==} + engines: {node: ^14.13.1 || >=16.0.0} + + framer-motion@12.42.2: + resolution: {integrity: sha512-5XY9luDiu0oHfHBjpDthFMh0ES+122w6p/papSJBweMkO8Sn+PW2QaEgRblQBpWFnuvZS5qvarpt/hO2pjGmnw==} + peerDependencies: + '@emotion/is-prop-valid': '*' + react: ^18.0.0 || ^19.0.0 + react-dom: ^18.0.0 || ^19.0.0 + peerDependenciesMeta: + '@emotion/is-prop-valid': + optional: true + react: + optional: true + react-dom: + optional: true + + fresh@2.0.0: + resolution: {integrity: sha512-Rx/WycZ60HOaqLKAi6cHRKKI7zxWbJ31MhntmtwMoaTeF7XFH9hhBp8vITaMidfljRQ6eYWCKkaTK+ykVJHP2A==} + engines: {node: '>= 0.8'} + + fs-constants@1.0.0: + resolution: {integrity: sha512-y6OAwoSIf7FyjMIv94u+b5rdheZEjzR63GTyZJm5qh4Bi+2YgwLCcI/fPFZkL5PSixOt6ZNKm+w+Hfp/Bciwow==} + + fsevents@2.3.3: + resolution: {integrity: sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==} + engines: {node: ^8.16.0 || ^10.6.0 || >=11.0.0} + os: [darwin] + + function-bind@1.1.2: + resolution: {integrity: sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA==} + + gensync@1.0.0-beta.2: + resolution: {integrity: sha512-3hN7NaskYvMDLQY55gnW3NQ+mesEAepTqlg+VEbj7zzqEMBVNhzcGYYeqFo/TlYz6eQiFcp1HcsCZO+nGgS8zg==} + engines: {node: '>=6.9.0'} + + get-caller-file@2.0.5: + resolution: {integrity: sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg==} + engines: {node: 6.* || 8.* || >= 10.*} + + get-intrinsic@1.3.0: + resolution: {integrity: sha512-9fSjSaos/fRIVIp+xSJlE6lfwhES7LNtKaCBIamHsjr2na1BiABJPo0mOjjz8GJDURarmCPGqaiVg5mfjb98CQ==} + engines: {node: '>= 0.4'} + + get-proto@1.0.1: + resolution: {integrity: sha512-sTSfBjoXBp89JvIKIefqw7U2CCebsc74kiY6awiGogKtoSGbgjYE/G/+l9sF3MWFPNc9IcoOC4ODfKHfxFmp0g==} + engines: {node: '>= 0.4'} + + giget@3.3.0: + resolution: {integrity: sha512-gzi2D96p+AMfDcmJHGDj3KJ9NRiwvlFAU5yfa3ROwWZmFUjX4P43x3BcyRaOMMLto1vUo7C+86+MFhYTl6Ryiw==} + hasBin: true + + gopd@1.2.0: + resolution: {integrity: sha512-ZUKRh6/kUFoAiTAtTYPZJ3hw9wNxx+BIBOijnlG9PnrJsCcSjs1wyyD6vJpaYtgnzDrKYRSqf3OO6Rfa93xsRg==} + engines: {node: '>= 0.4'} + + grad-school@0.0.5: + resolution: {integrity: sha512-rXunEHF9M9EkMydTBux7+IryYXEZinRk6g8OBOGDBzo/qWJjhTxy86i5q7lQYpCLHN8Sqv1XX3OIOc7ka2gtvQ==} + engines: {node: '>=8.0.0'} + + has-flag@4.0.0: + resolution: {integrity: sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==} + engines: {node: '>=8'} + + 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'} + + hast-util-to-html@9.0.5: + resolution: {integrity: sha512-OguPdidb+fbHQSU4Q4ZiLKnzWo8Wwsf5bZfbvu7//a9oTYoqD/fWpe96NuHkoS9h0ccGOTe0C4NGXdtS0iObOw==} + + hast-util-whitespace@3.0.0: + resolution: {integrity: sha512-88JUN06ipLwsnv+dVn+OIYOvAuvBMy/Qoi6O7mQHxdPXpjy+Cd6xRkWwux7DKO+4sYILtLBRIKgsdpS2gQc7qw==} + + hono@4.12.31: + resolution: {integrity: sha512-zJIHFrl6bq3RDd2YusFNCDlM8qUprxKswyi/OPzPyzKDdyBXDqWx8bZlZ7R+saTdSTatUmb3O7K4SspGPaEOQg==} + engines: {node: '>=16.9.0'} + + hosted-git-info@10.1.1: + resolution: {integrity: sha512-DeOnSPAvOndYKfw075gt8yZzQ7S2hNztw34zBTfhIzLhmBTswIBg5/y+pqu/VD5cYWm5goAFTusDmUEmKZ0PEQ==} + engines: {node: ^22.22.2 || ^24.15.0 || >=26.0.0} + + html-to-image@1.11.13: + resolution: {integrity: sha512-cuOPoI7WApyhBElTTb9oqsawRvZ0rHhaHwghRLlTuffoD1B2aDemlCruLeZrUIIdvG7gs9xeELEPm6PhuASqrg==} + + html-to-text@10.0.0: + resolution: {integrity: sha512-2OH59Gtprdczel+7Rxgpz9hGVJREaf8Lt1H4kZwWHpEn70VQKRuMNGsb2eDbwaTzrYzb0hheiOG1P7Dim0B4dQ==} + engines: {node: '>=20.19.0'} + + html-to-text@9.0.5: + resolution: {integrity: sha512-qY60FjREgVZL03vJU6IfMV4GDjGBIoOyvuFdpBDIX9yTlDw0TjxVBQp+P8NvpdIXNJvfWBTNul7fsAQJq2FNpg==} + engines: {node: '>=14'} + + html-void-elements@3.0.0: + resolution: {integrity: sha512-bEqo66MRXsUGxWHV5IP0PUiAWwoEjba4VCzg0LjFJBpchPaTfyfCKTG6bc5F8ucKec3q5y6qOdGyYTSBEvhCrg==} + + html5parser@3.0.0: + resolution: {integrity: sha512-iNpSopa+4YHX50UOk825tBy7MghmXHo/ZpLskBYN0kAr1xhH8GlIMk5bLRXcZlfP3AnLUcSuFMu8C4MdOUxA8A==} + + htmlparser2@10.1.0: + resolution: {integrity: sha512-VTZkM9GWRAtEpveh7MSF6SjjrpNVNNVJfFup7xTY3UpFtm67foy9HDVXneLtFVt4pMz5kZtgNcvCniNFb1hlEQ==} + + htmlparser2@8.0.2: + resolution: {integrity: sha512-GYdjWKDkbRLkZ5geuHs5NY1puJ+PXwP7+fHPRz06Eirsb9ugf6d8kkXav6ADhcODhFFPMIXyxkxSuMf3D6NCFA==} + + http-errors@2.0.1: + resolution: {integrity: sha512-4FbRdAX+bSdmo4AUFuS0WNiPz8NgFt+r8ThgNWmlrjQjt1Q7ZR9+zTlce2859x4KSXrwIsaeTqDoKQmtP8pLmQ==} + engines: {node: '>= 0.8'} + + ical-generator@11.0.0: + resolution: {integrity: sha512-OScZbXduIbjqtJzq0WLyPpAuKnc106+l28wszD+Wi2O9jXn76NVBfr4Ksv2XFyQn4JNZ9vWr5xAac0uT/FhVag==} + engines: {node: 22 || >=24.0.0} + peerDependencies: + '@touch4it/ical-timezones': '>=1.6.0' + '@types/luxon': '>= 1.26.0' + '@types/mocha': '>= 8.2.1' + '@types/node': '*' + dayjs: '>= 1.10.0' + luxon: '>= 1.26.0' + moment: '>= 2.29.0' + moment-timezone: '>= 0.5.33' + rrule: '>= 2.6.8' + peerDependenciesMeta: + '@touch4it/ical-timezones': + optional: true + '@types/luxon': + optional: true + '@types/mocha': + optional: true + '@types/node': + optional: true + dayjs: + optional: true + luxon: + optional: true + moment: + optional: true + moment-timezone: + optional: true + rrule: + optional: true + + 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==} + + immer@11.1.15: + resolution: {integrity: sha512-VrNANlmnWQnh5COXIIOQXM9oOJw7naGKlBT74ZOOR6lpVXc3gFEu9FJLDFcpCJ2j+NWr8TIwtWD//T6ZX6TKiQ==} + + inherits@2.0.4: + resolution: {integrity: sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==} + + internmap@2.0.3: + resolution: {integrity: sha512-5Hh7Y1wQbvY5ooGgPbDaL5iYLAPzMTUrjMulskHLH6wnv/A+1q5rgEaiuqEjB+oxGXIVZs1FF+R/KPN3ZSQYYg==} + engines: {node: '>=12'} + + ip-address@10.2.0: + resolution: {integrity: sha512-/+S6j4E9AHvW9SWMSEY9Xfy66O5PWvVEJ08O0y5JGyEKQpojb0K0GKpz/v5HJ/G0vi3D2sjGK78119oXZeE0qA==} + engines: {node: '>= 12'} + + ipaddr.js@1.9.1: + resolution: {integrity: sha512-0KI/607xoxSToH7GjN1FfSbLoU0+btTicjsQSWQlh/hZykN8KpmMf7uYwPW3R+akZ6R/w18ZlXSHBYXiYUPO3g==} + engines: {node: '>= 0.10'} + + is-accessor-descriptor@1.0.2: + resolution: {integrity: sha512-AIbwAcazqP3R65dGvqk1V+a+vE5Fg1yu/ZKMOiBWSUIXXiwQkYmXQcVa2O0nh0tSDKDFKxG2mY7dB1Sr4hEP1g==} + engines: {node: '>= 0.4'} + + is-buffer@1.1.6: + resolution: {integrity: sha512-NcdALwpXkTm5Zvvbk7owOUSvVvBKDgKP5/ewfXEznmQFfs4ZRmanOeKBTjRVjka3QFoN6XJ+9F3USqfHqTaU5w==} + + is-data-descriptor@1.0.1: + resolution: {integrity: sha512-bc4NlCDiCr28U4aEsQ3Qs2491gVq4V8G7MQyws968ImqjKuYtTJXrl7Vq7jsN7Ly/C3xj5KWFrY7sHNeDkAzXw==} + engines: {node: '>= 0.4'} + + is-descriptor@1.0.4: + resolution: {integrity: sha512-bv5z95W0dDtLfKwDfkTNxaRxmISBD3eQBKJeVxv2AQ7MjuUnDNG7cIQqvFtMOUYhsILWHhMayWdoGqNqYYYjww==} + engines: {node: '>= 0.4'} + + is-fullwidth-code-point@3.0.0: + resolution: {integrity: sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==} + engines: {node: '>=8'} + + is-in-ci@2.0.0: + resolution: {integrity: sha512-cFeerHriAnhrQSbpAxL37W1wcJKUUX07HyLWZCW1URJT/ra3GyUTzBgUnh24TMVfNTV2Hij2HLxkPHFZfOZy5w==} + engines: {node: '>=20'} + hasBin: true + + is-number@3.0.0: + resolution: {integrity: sha512-4cboCqIpliH+mAvFNegjZQ4kgKc3ZUhQVr3HvWbSh5q3WH2v82ct+T2Y1hdU5Gdtorx/cLifQjqCbL7bpznLTg==} + engines: {node: '>=0.10.0'} + + is-promise@4.0.0: + resolution: {integrity: sha512-hvpoI6korhJMnej285dSg6nu1+e6uxs7zG3BYAm5byqDsgJNWwxzM6z6iZiAgQR4TJ30JmBTOwqZUw3WlyH3AQ==} + + is-reference@3.0.3: + resolution: {integrity: sha512-ixkJoqQvAP88E6wLydLGGqCJsrFUnqoH6HnaczB8XmDH1oaWU+xxdptvikTgaEhtZ53Ky6YXiBuUI2WXLMCwjw==} + + isbot@5.2.1: + resolution: {integrity: sha512-dJ+LpKyClQZ7NG+j3OensC/mAZkGpukE9YUrgPYvAZj2doVL0edfDgywTUh5CXa0o+nW9a1V9e5+CJTX8+SxRw==} + engines: {node: '>=18'} + + isexe@2.0.0: + resolution: {integrity: sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==} + + jest-get-type@29.6.3: + resolution: {integrity: sha512-zrteXnqYxfQh7l5FHyL38jL39di8H8rHoecLH3JNxH3BwOrBsNeabdap5e0I23lD4HHI8W5VFBZqG4Eaq5LNcw==} + engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} + + jest-validate@29.7.0: + resolution: {integrity: sha512-ZB7wHqaRGVw/9hST/OuFUReG7M8vKeq0/J2egIGLdvjHCmYqGARhzXmtgi+gVeZ5uXFF219aOc3Ls2yLg27tkw==} + engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} + + jiti@2.7.0: + resolution: {integrity: sha512-AC/7JofJvZGrrneWNaEnJeOLUx+JlGt7tNa0wZiRPT4MY1wmfKjt2+6O2p2uz2+skll8OZZmJMNqeke7kKbNgQ==} + hasBin: true + + jose@6.2.4: + resolution: {integrity: sha512-N8acGzVsQy6M/fjFcxtysNc4Q379TcM5dM/qKkNtsHFji88yANnXTr7BLeP75iPnFwBfQzM/jg2BZ9+HZrHCZA==} + + js-sha256@0.10.1: + resolution: {integrity: sha512-5obBtsz9301ULlsgggLg542s/jqtddfOpV5KJc4hajc9JV8GeY2gZHSVpYBn4nWqAUTJ9v+xwtbJ1mIBgIH5Vw==} + + js-tokens@4.0.0: + resolution: {integrity: sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==} + + jsesc@3.1.0: + resolution: {integrity: sha512-/sM3dO2FOzXjKQhJuo0Q173wf2KOo8t4I8vHy6lF9poUp7bKT0/NHE8fPX23PwfhnykfqnC2xRxOnVw5XuGIaA==} + engines: {node: '>=6'} + hasBin: true + + 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==} + + json5@2.2.3: + resolution: {integrity: sha512-XmOWe7eyHYH14cLdVPoyg+GOH3rYX++KpzrylJwSW98t3Nk+U8XOl8FWKOgwtzdb8lXGf6zYwDUzeHMWfxasyg==} + engines: {node: '>=6'} + hasBin: true + + jsonc-parser@3.3.1: + resolution: {integrity: sha512-HUgH65KyejrUFPvHFPbqOY0rsFip3Bo5wb4ngvdi1EpCYWUQDC5V+Y7mZws+DLkr4M//zQJoanu1SP+87Dv1oQ==} + + kind-of@3.2.2: + resolution: {integrity: sha512-NOW9QQXMoZGg/oqnVNoNTTIFEIid1627WCffUBJEdMxYApq7mNE7CpzucIPc+ZQg25Phej7IJSmX3hO+oblOtQ==} + engines: {node: '>=0.10.0'} + + kleur@4.1.5: + resolution: {integrity: sha512-o+NO+8WrRiQEE4/7nwRJhN1HWpVmJm511pBHUxPLtp0BUISzlBplORYSmTclCnJvQq2tKu/sgl3xVpkc7ZWuQQ==} + engines: {node: '>=6'} + + leac@0.6.0: + resolution: {integrity: sha512-y+SqErxb8h7nE/fiEX07jsbuhrpO9lL8eca7/Y1nuWV2moNlXhyd59iDGcRf6moVyDMbmTNzL40SUyrFU/yDpg==} + + leac@0.7.0: + resolution: {integrity: sha512-qMrZeyEekgdRQ9o6a4NAB2EQZrv827GJdn1vnapwSJ90hWRB4TzUSunvacPkxQ2TnNqHNI1/zSt0hlo0crG8Jw==} + + leven@3.1.0: + resolution: {integrity: sha512-qsda+H8jTaUaN/x5vzW2rzc+8Rw4TAQ/4KjB46IwK5VH+IlVeeeje/EoZRpiXvIqjFgK84QffqPztGI3VBLG1A==} + engines: {node: '>=6'} + + lightningcss-android-arm64@1.33.0: + resolution: {integrity: sha512-gEpRTalKdosp4Bb8qWtc2iOgE5SeIHlpS1up9bFq2wAyYhl1UdTObYiHe98zEM9SQvSoqQZ1IQD0JNpg3Ml5pg==} + engines: {node: '>= 12.0.0'} + cpu: [arm64] + os: [android] + + lightningcss-darwin-arm64@1.33.0: + resolution: {integrity: sha512-Sciaz8eenNTKn9b3t7+xr0ipTp9YxKQY4npwQ3mrRuL0BAVHBLyZxofhaKBAVtzmtRZ/zTyo0/to4B1uWG/Djg==} + engines: {node: '>= 12.0.0'} + cpu: [arm64] + os: [darwin] + + lightningcss-darwin-x64@1.33.0: + resolution: {integrity: sha512-Z5UPAxzrjlWNNyGy6i65cJzzvgJ5D3T6wMvs+gWpY9d7qRhANrxqAp6LhxIgZhWEw18RfJTGcRxjuLIBr+m8XQ==} + engines: {node: '>= 12.0.0'} + cpu: [x64] + os: [darwin] + + lightningcss-freebsd-x64@1.33.0: + resolution: {integrity: sha512-QQM/Ti/hQajJwCY+RiWuCZ9sdtI/XQk7nDK5vC8kkdwixezOlDgvDx7+RT+QjK6FcFT4MpsuoBnHIo/O3StRRg==} + engines: {node: '>= 12.0.0'} + cpu: [x64] + os: [freebsd] + + lightningcss-linux-arm-gnueabihf@1.33.0: + resolution: {integrity: sha512-N7FVBe6iS24MlM6R/4RBTxGhQheZGs7tiQ9U32UtF75NzP5Q7xWPRqLBCKxlRQRk3rY1jCIPLzx7WzOhuUIRLQ==} + engines: {node: '>= 12.0.0'} + cpu: [arm] + os: [linux] + + lightningcss-linux-arm64-gnu@1.33.0: + resolution: {integrity: sha512-j2v/itmy4HlNxlc6voKXYgBqNi0Ng2LShg4z7GufpEgs05P+2suBVyi9I6YHq5uoVFx9ETin3eCEhLVyXGQnKg==} + engines: {node: '>= 12.0.0'} + cpu: [arm64] + os: [linux] + libc: [glibc] + + lightningcss-linux-arm64-musl@1.33.0: + resolution: {integrity: sha512-yiO5ROMuYQgXbC60yjZU5CYSFZGKXL0HFATXt9mHJn1+zW55oCtMI9NfcVhYLMFDL7gV7oBPon/EmMMGg2OvtQ==} + engines: {node: '>= 12.0.0'} + cpu: [arm64] + os: [linux] + libc: [musl] + + lightningcss-linux-x64-gnu@1.33.0: + resolution: {integrity: sha512-ar+Ju7LmcN0Jo4FpL4hpFybwNG9/3A/Br5KW2n2jyODg3MEZXaDYADdemoNS+BDNfMgKvylJLj4S5tyRActuAg==} + engines: {node: '>= 12.0.0'} + cpu: [x64] + os: [linux] + libc: [glibc] + + lightningcss-linux-x64-musl@1.33.0: + resolution: {integrity: sha512-RYiYbkokw0trfKqqzfF55lginwEPrD3OJDfTuJzFs1MK6iFnDenaz1fqLLtX4ITG3OktJQXOeTaw1awrBAlZPw==} + engines: {node: '>= 12.0.0'} + cpu: [x64] + os: [linux] + libc: [musl] + + lightningcss-win32-arm64-msvc@1.33.0: + resolution: {integrity: sha512-1K+MPfLSFVpphzpdbfkhlWk6wBrTObBzS2T6db10PNOZgR9GoVsAWzwNyuhUYYbTp23j+4RrncfujZ4uAzXvwA==} + engines: {node: '>= 12.0.0'} + cpu: [arm64] + os: [win32] + + lightningcss-win32-x64-msvc@1.33.0: + resolution: {integrity: sha512-OlEICDx/Xl0FqSp4bry8zFnCvGpig3Gl4gCquvYwHuqJKEC1+n9NgDniFvqHGmMv1ZkqDJrDqKKSykTDX+ehuA==} + engines: {node: '>= 12.0.0'} + cpu: [x64] + os: [win32] + + lightningcss@1.33.0: + resolution: {integrity: sha512-WkUDrojuJs0xkgGf2udWxa3yGBRxPtxUkB79i6aCZLRgc7PM8fZe9TosfPDcvEpQZbuFASnHYmRLBLUbmLOIIA==} + engines: {node: '>= 12.0.0'} + + lilconfig@3.1.3: + resolution: {integrity: sha512-/vlFKAoH5Cgt3Ie+JLhRbwOsCQePABiU3tJ1egGvyQ+33R/vcwM2Zl2QR/LzjsBeItPt3oSVXapn+m4nQDvpzw==} + engines: {node: '>=14'} + + locate-character@3.0.0: + resolution: {integrity: sha512-SW13ws7BjaeJ6p7Q6CO2nchbYEc3X3J6WrmTTDto7yMPqVSZTUyY5Tjbid+Ab8gLnATtygYtiDIJGQRRn2ZOiA==} + + lodash.camelcase@4.3.0: + resolution: {integrity: sha512-TwuEnCnxbc3rAvhf/LbG7tJUDzhqXyFnv3dtzLOPgCG/hODL7WFnsbwktkD7yUV0RrreP/l1PALq/YSg6VvjlA==} + + long@5.3.2: + resolution: {integrity: sha512-mNAgZ1GmyNhD7AuqnTG3/VQ26o760+ZYBPKjPvugO8+nLbYfX6TVpJPseBvopbdY+qpZ/lKUnmEc1LeZYS3QAA==} + + lru-cache@11.5.1: + resolution: {integrity: sha512-RPimw/7aMdv2oqRrxKwvZXcPfwBrn/JZ2xYcY9Hus/6LaS3VOAKVWKWgNLCFSiOm1ESXinjsDlidVU7JlnCN2A==} + engines: {node: 20 || >=22} + + lru-cache@11.5.2: + resolution: {integrity: sha512-4pfM1Ff0x50o0tQwb5ucw/RzNyD0/YJME6IVcStalZuMWxdt3sR3huStTtxz4PUmvZfRguvDejasvQ2kifR11g==} + engines: {node: 20 || >=22} + + lru-cache@5.1.1: + resolution: {integrity: sha512-KpNARQA3Iwv+jTA0utUVVbrh+Jlrr1Fv0e56GGzAFOXN7dk/FviaDW8LHmK52DlcH4WP2n6gI8vN1aesBFgo9w==} + + lunorash@1.0.0-alpha.98: + resolution: {integrity: sha512-AEb+KNKlHaTb2slZZn7Jku1cPJPfXweFfdT4tCJFj6VymGanH3PHPSeHpcJ1jBx+x+LyzNuhYeqT/lQwu3dJfQ==} + engines: {node: ^22.15.0 || >=24.11.0} + hasBin: true + + luxon@3.7.2: + resolution: {integrity: sha512-vtEhXh/gNjI9Yg1u4jX/0YVPMvxzHuGgCm6tC5kZyb08yjGWGnqAjGJvcXbqQR2P3MyMEFnRbpcdFS6PBcLqew==} + engines: {node: '>=12'} + + magic-string@0.30.21: + resolution: {integrity: sha512-vd2F4YUyEXKGcLHoq+TEyCjxueSeHnFxyyjNp80yg0XV4vUhnDer/lvvlqM/arB5bXQN5K2/3oinyCRyx8T2CQ==} + + magic-string@1.0.0: + resolution: {integrity: sha512-CGvjzMN08iv6w1mm4/x3Gh1hLb4VnyRUA15FFpl6CsCIGGoe36k7kY5KNz9QDbSBN5I/fWHM6ZlIkUTa5xdUEA==} + + math-intrinsics@1.1.0: + resolution: {integrity: sha512-/IXtbwEk5HTPyEwyKX6hGkYXxM9nbj64B+ilVJnC/R6B0pH5G4V3b0pVbL7DBj4tkhBAppbQUlf6F6Xl9LHu1g==} + engines: {node: '>= 0.4'} + + mdast-util-to-hast@13.2.1: + resolution: {integrity: sha512-cctsq2wp5vTsLIcaymblUriiTcZd0CwWtCbLvrOzYCDZoWyMNV8sZ7krj09FSnsiJi3WVsHLM4k6Dq/yaPyCXA==} + + media-typer@1.1.0: + resolution: {integrity: sha512-aisnrDP4GNe06UcKFnV5bfMNPBUw4jsLGaWwWfnH3v02GnBuXX2MCVn5RbrWo0j3pczUilYblq7fQ7Nw2t5XKw==} + engines: {node: '>= 0.8'} + + merge-descriptors@2.0.0: + resolution: {integrity: sha512-Snk314V5ayFLhp3fkUREub6WtjBfPdCPY1Ln8/8munuLuiYhsABgBVWsozAG+MWMbVEvcdcpbi9R7ww22l9Q3g==} + engines: {node: '>=18'} + + micromark-util-character@2.1.1: + resolution: {integrity: sha512-wv8tdUTJ3thSFFFJKtpYKOYiGP2+v96Hvk4Tu8KpCAsTMs6yi+nVmGh1syvSCsaxz45J6Jbw+9DD6g97+NV67Q==} + + micromark-util-encode@2.0.1: + resolution: {integrity: sha512-c3cVx2y4KqUnwopcO9b/SCdo2O67LwJJ/UyqGfbigahfegL9myoEFoDYZgkT7f36T0bLrM9hZTAaAyH+PCAXjw==} + + micromark-util-sanitize-uri@2.0.1: + resolution: {integrity: sha512-9N9IomZ/YuGGZZmQec1MbgxtlgougxTodVwDzzEouPKo3qFWvymFHWcnDi2vzV1ff6kas9ucW+o3yzJK9YB1AQ==} + + micromark-util-symbol@2.0.1: + resolution: {integrity: sha512-vs5t8Apaud9N28kgCrRUdEed4UJ+wWNvicHLPxCa9ENlYuAY31M0ETy5y1vA33YoNPDFTghEbnh6efaE8h4x0Q==} + + micromark-util-types@2.0.2: + resolution: {integrity: sha512-Yw0ECSpJoViF1qTU4DC6NwtC4aWGt1EkzaQB8KPPyCRR8z9TWeV0HbEFGTO+ZY1wB22zmxnJqhPyTpOVCpeHTA==} + + 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'} + + mime@4.1.0: + resolution: {integrity: sha512-X5ju04+cAzsojXKes0B/S4tcYtFAJ6tTMuSPBEn9CPGlrWr8Fiw7qYeLT0XyH80HSoAoqWCaz+MWKh22P7G1cw==} + engines: {node: '>=16'} + hasBin: true + + miniflare@4.20260714.0: + resolution: {integrity: sha512-MYlTCLdWCPqvrYY2uLwOjXwmglXuiHE3TGGkbOW4BwjUPa1r07E0iuHwrNDIs/sxK21r+o90Jx58AV2KeNdJZw==} + engines: {node: '>=22.0.0'} + hasBin: true + + miniflare@4.20260721.0: + resolution: {integrity: sha512-fBLaCxZ2i/nPH8iyLzvza0C8/sSF4sjD1ma1Skf+pkZVK0TlaW5ujHJlUHwcwR66v2JZt+Q28d4DCX/oaLG0cA==} + engines: {node: '>=22.0.0'} + hasBin: true + + minimatch@10.2.5: + resolution: {integrity: sha512-MULkVLfKGYDFYejP07QOurDLLQpcjk7Fw+7jXS2R2czRQzR56yHRveU5NDJEOviH+hETZKSkIk5c+T23GjFUMg==} + engines: {node: 18 || 20 || >=22} + + mkdirp-classic@0.5.3: + resolution: {integrity: sha512-gKLcREMhtuZRwRAfqP3RFW+TK4JqApVBtOIftVgjuABpAtpxhPGaDcfvbhNvD0B8iD1oUr/txX35NjcaY6Ns/A==} + + moo@0.5.3: + resolution: {integrity: sha512-m2fmM2dDm7GZQsY7KK2cme8agi+AAljILjQnof7p1ZMDe6dQ4bdnSMx0cPppudoeNv5hEFQirN6u+O4fDE0IWA==} + + motion-dom@12.42.2: + resolution: {integrity: sha512-5gIMWLp/PycBtJRJWRgjxke5n8dlvkSn2DrYW+tr3XcqAZY1xZh6BJyooJXCM8wdfM7wfMjkBJNLge1CKPUIRA==} + + motion-utils@12.39.0: + resolution: {integrity: sha512-8nadJAJjTtqRkmRF36FoJTrywK9nnFmnPwnSMyxaOCU7GDjN9RTMJIxx9De8ErM+vpPhMccr/6fo5WciyQLnMQ==} + + motion@12.42.2: + resolution: {integrity: sha512-Atvv11yUKIid41cVrRBDVX5m8tF8kNpExRSlbpt6APClhDjtwQssgFHhQzejxw7/7YYbjHSPKBVbHo05BuJT5Q==} + peerDependencies: + '@emotion/is-prop-valid': '*' + react: ^18.0.0 || ^19.0.0 + react-dom: ^18.0.0 || ^19.0.0 + peerDependenciesMeta: + '@emotion/is-prop-valid': + optional: true + react: + optional: true + react-dom: + optional: true + + ms@2.1.3: + resolution: {integrity: sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==} + + nan@2.28.0: + resolution: {integrity: sha512-fTsDz99OTq2sVePhGdp4qQhggZFtKr64ZNVyVajRKtMOkJxYekplBh577PiJB12v/D3s2E5cGtOI45LWp6rnLQ==} + + nanoid@3.3.16: + resolution: {integrity: sha512-bzlKTyNJ7+LdGIIwy8ijFpIqEQIvafahV7eYykJ8Cvh42EdJeODoJ6gUJXpQJvej1BddH8OqTXZNE/KfbWAu8Q==} + engines: {node: ^10 || ^12 || ^13.7 || ^14 || >=15.0.1} + hasBin: true + + negotiator@1.0.0: + resolution: {integrity: sha512-8Ofs/AUQh8MaEcrlq5xOX0CQ9ypTF5dl78mjlMNfOK08fzpgTHQRQPBxcPlEtIw0yRpws+Zo/3r+5WRby7u3Gg==} + engines: {node: '>= 0.6'} + + node-releases@2.0.51: + resolution: {integrity: sha512-wRNIrw4DmVLKQlbgOMdkMx27Wrpzes2hh5Jtbi2bjPd+4wJstWIqP5A+lscnqbm0xxmT5Bpg8Lec5ItEBwx6BQ==} + engines: {node: '>=18'} + + normalize-package-data@9.0.0: + resolution: {integrity: sha512-la34cHOCAT6itNOYCvPi40XP8r0y6OHuNkooOfnfFUHdgy5MBw665qq5xsuS02AEC7WPQvhwvb7E9PI1gipplw==} + engines: {node: ^22.22.2 || ^24.15.0 || >=26.0.0} + + normalize-path@3.0.0: + resolution: {integrity: sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA==} + engines: {node: '>=0.10.0'} + + object-assign@4.1.1: + 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'} + + on-finished@2.4.1: + resolution: {integrity: sha512-oVlzkg3ENAhCk2zdv7IJwd/QUD4z2RxRwpkcGY8psCVcCYZNq4wYnVWALHM+brtuJjePWiYF/ClmuDr8Ch5+kg==} + engines: {node: '>= 0.8'} + + once@1.4.0: + resolution: {integrity: sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w==} + + oniguruma-parser@0.12.2: + resolution: {integrity: sha512-6HVa5oIrgMC6aA6WF6XyyqbhRPJrKR02L20+2+zpDtO5QAzGHAUGw5TKQvwi5vctNnRHkJYmjAhRVQF2EKdTQw==} + + oniguruma-to-es@4.3.6: + resolution: {integrity: sha512-csuQ9x3Yr0cEIs/Zgx/OEt9iBw9vqIunAPQkx19R/fiMq2oGVTgcMqO/V3Ybqefr1TBvosI6jU539ksaBULJyA==} + + oxlint@1.75.0: + resolution: {integrity: sha512-m9WzjRcRYA/uqIZDa9tclrieoPJ/ln1QYTKdFx6NUOs8uY5DiHlIwRQoCrHT6OM6O3ww3l2skY5gO7G7ZphE7g==} + engines: {node: ^20.19.0 || >=22.12.0} + hasBin: true + peerDependencies: + oxlint-tsgolint: '>=7.0.2001' + vite-plus: '*' + peerDependenciesMeta: + oxlint-tsgolint: + optional: true + vite-plus: + optional: true + + package-manager-detector@1.8.0: + resolution: {integrity: sha512-yQA4H19AmPEoMUeavPMDIe1higySl/gH/yaQrkT/s07Qp+7pp2hYz30N3z2l5BkjVkF9Ow6o0wjJamm2y7Sn0A==} + + parseley@0.12.1: + resolution: {integrity: sha512-e6qHKe3a9HWr0oMRVDTRhKce+bRO8VGQR3NyVwcjwrbhMmFCX9KszEV35+rn4AdilFAq9VPxP/Fe1wC9Qjd2lw==} + + parseley@0.13.1: + resolution: {integrity: sha512-uNBJZzmb60l6p6VWLTmevizNAGnE0xoSf1n0B4q3ntegDNzcS68NRCcBDZTcyXHxt2XhBChsCuqj4M+nChvE/A==} + + parseurl@1.3.3: + resolution: {integrity: sha512-CiyeOxFT/JZyN5m0z9PfXw4SCBJ6Sygz1Dpl0wqjlhDEGGBP1GnsUVEL0p63hoG1fcj3fHynXi9NYO4nWOL+qQ==} + engines: {node: '>= 0.8'} + + patch-console@2.0.0: + resolution: {integrity: sha512-0YNdUceMdaQwoKce1gatDScmMo5pu/tfABfnzEqeG0gtTmd7mh/WcwgUjtAeOU7N8nFFlbQBnFK2gXW5fGvmMA==} + engines: {node: ^12.20.0 || ^14.13.1 || >=16.0.0} + + path-browserify@1.0.1: + resolution: {integrity: sha512-b7uo2UCUOYZcnF/3ID0lulOJi/bafxa1xPe7ZPsammBSpjSWQkjNxlt635YGS2MiR9GjvuXCtz2emr3jbsz98g==} + + path-key@3.1.1: + resolution: {integrity: sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==} + engines: {node: '>=8'} + + path-to-regexp@6.3.0: + resolution: {integrity: sha512-Yhpw4T9C6hPpgPeA28us07OJeqZ5EzQTkbfwuhsUg0c237RomFoETJgmp2sa3F/41gfLE6G5cqcYwznmeEeOlQ==} + + path-to-regexp@8.4.2: + resolution: {integrity: sha512-qRcuIdP69NPm4qbACK+aDogI5CBDMi1jKe0ry5rSQJz8JVLsC7jV8XpiJjGRLLol3N+R5ihGYcrPLTno6pAdBA==} + + pathe@2.0.3: + resolution: {integrity: sha512-WUjGcAqP1gQacoQe+OBJsFA7Ld4DyXuUIjZ5cc75cLHvJ7dtNsTugphxIADwspS+AraAUePCKrSVtPLFj/F88w==} + + peberminta@0.10.0: + resolution: {integrity: sha512-80B2AsU+I4Qdb0ZAPSfe9UwvGzwkM37IKIFEvdS3D/3Ndgv2bsuJ0bfG1+iEYO+l7Gfd4EUJmuRyq7efLgRMzQ==} + + peberminta@0.9.0: + resolution: {integrity: sha512-XIxfHpEuSJbITd1H3EeQwpcZbTLHc+VVr8ANI9t5sit565tsI4/xK3KWTUFE2e6QiangUkh3B0jihzmGnNrRsQ==} + + picocolors@1.1.1: + resolution: {integrity: sha512-xceH2snhtb5M9liqDsmEw56le376mTZkEX/jEb/RxNFyegNul7eNslCXP9FDj/Lcu0X8KEyMceP2ntpaHrDEVA==} + + picomatch@4.0.5: + resolution: {integrity: sha512-RvwwcruNjI1ncT5xRakeyS9Lf8lcItv34KD+aif+VH9kduAyfYBipGh12274xtenIPZ119/R9BdTBa8gAwSh0A==} + engines: {node: '>=12'} + + pkce-challenge@5.0.1: + resolution: {integrity: sha512-wQ0b/W4Fr01qtpHlqSqspcj3EhBvimsdh0KlHhH8HRZnMsEa0ea2fTULOXOS9ccQr3om+GcGRk4e+isrZWV8qQ==} + engines: {node: '>=16.20.0'} + + postal-mime@2.7.5: + resolution: {integrity: sha512-GNEXKvWFQnbgO5NlrGzVa0FmWzBZ24PersAWErttSg1Hjpf0ATxTwS5DOMGaOpTG6bUh5cTr7xi0jAD942wCJA==} + + postcss@8.5.22: + resolution: {integrity: sha512-KBDEIpLrvpv16pp3K0Fw+UCoZfopFjjgeB+0tA/aaThfEE74kKDLrgg603YvOWJyg3+WYtyq3xYsQWsIyZlPqQ==} + engines: {node: ^10 || ^12 || >=14} + + prettier@3.9.6: + resolution: {integrity: sha512-OpN0zzVdiaiAhxpuuj5efpIS4sY9j7bY6uR5mnj5yPzGkdkjNKSJeUThPb60Jw29QuAZgA4o+/iB49kFiaBX6g==} + engines: {node: '>=14'} + hasBin: true + + pretty-format@29.7.0: + resolution: {integrity: sha512-Pdlw/oPxN+aXdmM9R00JVC9WVFoCLTKJvDVLgmJ+qAffBMxsV85l/Lu7sNx4zSzPyoL2euImuEwHhOXdEgNFZQ==} + engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} + + property-information@7.2.0: + resolution: {integrity: sha512-IAtzIB6sUiWaJYrX9smp3V46pBGbBeLFRGdh25kg1334VcBlD8HzhPeNIWQH9zhGmo2itIe25EHt9dQP7G5hmg==} + + protobufjs@7.6.5: + resolution: {integrity: sha512-/FPD0nUc9jH6rfFjji9IBqOz4pcSE3CsT1m7Ep6Mdb0LxSUMj8hgl6GomOvZzpNpAqqGaXA0P3VSrZLFzIhQrw==} + engines: {node: '>=12.0.0'} + + proxy-addr@2.0.7: + resolution: {integrity: sha512-llQsMLSUDUPT44jdrU/O37qlnifitDP+ZwrmmZcoSKyLKvtZxpyV0n2/bD/N4tBAAZ/gJEdZU7KMraoK1+XYAg==} + engines: {node: '>= 0.10'} + + pump@3.0.4: + resolution: {integrity: sha512-VS7sjc6KR7e1ukRFhQSY5LM2uBWAUPiOPa/A3mkKmiMwSmRFUITt0xuj+/lesgnCv+dPIEYlkzrcyXgquIHMcA==} + + qs@6.15.3: + resolution: {integrity: sha512-O9gl3zCl5h5blw1KGUzQKhA5oUXSl8rwUIM5o0S3nCXMliSvy5Dzx7/DJcI+SwgICv+IneSZwhBh1oSyEHA71A==} + engines: {node: '>=0.6'} + + range-parser@1.3.0: + resolution: {integrity: sha512-hek2mFQpPuI4E1BBKrSto+BU3e3x4xuarsbiwr3+lf7p44juvFMV0XFWQAP3xUyqXA4RrXLIoaSUGbSt056ZMw==} + engines: {node: '>= 0.6'} + + raw-body@3.0.2: + resolution: {integrity: sha512-K5zQjDllxWkf7Z5xJdV0/B0WTNqx6vxG70zJE4N0kBs4LovmEYWJzQGxC9bS9RAKu3bgM40lrd5zoLJ12MQ5BA==} + engines: {node: '>= 0.10'} + + react-dom@19.2.8: + resolution: {integrity: sha512-rVprimfGBG3DR+Tq0IQG2DT5PxKth1WIGDmj5yPmlzr4YBe7uyE+Du4oVqTDXZSHGGGXRtTJEGSSePyQCMBglQ==} + peerDependencies: + react: ^19.2.8 + + react-is@18.3.1: + resolution: {integrity: sha512-/LLMVyas0ljjAtoYiPqYiL8VWXzUUdThrmU5+n20DZv+a+ClRoevUzw5JxU+Ieh5/c87ytoTBV9G1FiKfNJdmg==} + + react-reconciler@0.33.0: + resolution: {integrity: sha512-KetWRytFv1epdpJc3J4G75I4WrplZE5jOL7Yq0p34+OVOKF4Se7WrdIdVC45XsSSmUTlht2FM/fM1FZb1mfQeA==} + engines: {node: '>=0.10.0'} + peerDependencies: + react: ^19.2.0 + + react-redux@9.3.0: + resolution: {integrity: sha512-KQopgqFo/p/fgmAs5qz6p5RWaNAzq40WAu7fJIXnQpYxFPbJYtsJPWvGeF2rOBaY/kEuV77AVsX8TsQzKm+A/g==} + peerDependencies: + '@types/react': ^18.2.25 || ^19 + react: ^18.0 || ^19 + redux: ^5.0.0 + peerDependenciesMeta: + '@types/react': + optional: true + redux: + optional: true + + react@19.2.8: + resolution: {integrity: sha512-PWaYA1L/q9u2u7xYQi+Y3L3Yfnie7XyLeaJICV1MGD6LprsBxcAqGjYyr0eY3p+QdsA+x/Irkt4Qif8D63+Sbw==} + engines: {node: '>=0.10.0'} + + readable-stream@3.6.2: + resolution: {integrity: sha512-9u/sniCrY3D5WdsERHzHE4G2YCXqoG5FTHUiCC4SIbr6XcLZBY05ya9EKjYek9O5xOAwjGq+1JdGBAS7Q9ScoA==} + engines: {node: '>= 6'} + + recharts@3.10.0: + resolution: {integrity: sha512-wulMvfncpIlmu2uFtRU/mE5/+NiVtASXkw2KdwJTdHs3WsASX0WxZlX+rpKgyn5BDbIhkPtCpUKkB9XNK5KE0w==} + engines: {node: '>=18'} + peerDependencies: + react: ^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0 + react-dom: ^16.0.0 || ^17.0.0 || ^18.0.0 || ^19.0.0 + react-is: ^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0 + + redux-thunk@3.1.0: + resolution: {integrity: sha512-NW2r5T6ksUKXCabzhL9z+h206HQw/NJkcLm1GPImRQ8IzfXwRGqjVhKJGauHirT0DAuyy6hjdnMZaRoAcy0Klw==} + peerDependencies: + redux: ^5.0.0 + + redux@5.0.1: + resolution: {integrity: sha512-M9/ELqF6fy8FwmkpnF0S3YKOqMyoWJ4+CS5Efg2ct3oY9daQvd/Pc71FpGZsVsbl3Cpb+IIcjBDUnnyBdQbq4w==} + + regex-recursion@6.0.2: + resolution: {integrity: sha512-0YCaSCq2VRIebiaUviZNs0cBz1kg5kVS2UKUfNIx8YVs1cN3AV7NTctO5FOKBA+UT2BPJIWZauYHPqJODG50cg==} + + regex-utilities@2.3.0: + resolution: {integrity: sha512-8VhliFJAWRaUiVvREIiW2NXXTmHs4vMNnSzuJVhscgmGav3g9VDxLrQndI3dZZVVdp0ZO/5v0xmX516/7M9cng==} + + regex@6.1.0: + resolution: {integrity: sha512-6VwtthbV4o/7+OaAF9I5L5V3llLEsoPyq9P1JVXkedTP33c7MfCG0/5NOPcSJn0TzXcG9YUrR0gQSWioew3LDg==} + + remove-accents@0.5.0: + resolution: {integrity: sha512-8g3/Otx1eJaVD12e31UbJj1YzdtVvzH85HV7t+9MJYk/u3XmkOUJ5Ys9wQrf9PCPK8+xn4ymzqYCiZl6QWKn+A==} + + require-directory@2.1.1: + resolution: {integrity: sha512-fGxEI7+wsG9xrvdjsrlmL22OMTTiHRwAMroiEeMgq8gzoLC/PQr7RsRDSTLUg/bZAZtF+TVIkHc6/4RIKrui+Q==} + engines: {node: '>=0.10.0'} + + require-from-string@2.0.2: + resolution: {integrity: sha512-Xf0nWe6RseziFMu+Ap9biiUbmplq6S9/p+7w7YXP/JBHhrUDDUhwa+vANyubuqfZWTveU//DYVGsDG7RKL/vEw==} + engines: {node: '>=0.10.0'} + + reselect@5.2.0: + resolution: {integrity: sha512-AgZ3UOZm3YndfrJ4OYjgrT7bmCm/1iqkjvEfH/oYjzh6PD2qw4QuT3jjnXIrpdt4MTpMXclMT3lXbmRY+XRakw==} + + rolldown@1.1.5: + resolution: {integrity: sha512-t9z29cJjXf/vxQ8dyhCSpt6H6aSwHTk8cT5I3iy6SMXuFpk5mB6PL6XfC8PCwrPTx93udwKUm9HRteAlTGBLiA==} + engines: {node: ^20.19.0 || >=22.12.0} + hasBin: true + + router@2.2.0: + resolution: {integrity: sha512-nLTrUKm2UyiL7rlhapu/Zl45FwNgkZGaCpZbIHajDYgwlJCOzLSk+cIPAnsEqV955GjILJnKbdQC1nVPz+gAYQ==} + engines: {node: '>= 18'} + + safe-buffer@5.2.1: + resolution: {integrity: sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==} + + safer-buffer@2.1.2: + resolution: {integrity: sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==} + + scheduler@0.27.0: + resolution: {integrity: sha512-eNv+WrVbKu1f3vbYJT/xtiF5syA5HPIMtf9IgY/nKg0sWqzAUEvqY/xm7OcZc/qafLx/iO9FgOmeSAp4v5ti/Q==} + + selderee@0.11.0: + resolution: {integrity: sha512-5TF+l7p4+OsnP8BCCvSyZiSPc4x4//p5uPwK8TCnVPJYRmU2aYKMpOXvw8zM5a5JvuuCGN1jmsMwuU2W02ukfA==} + + selderee@0.12.0: + resolution: {integrity: sha512-b1YMh3+DHZp59DLna3qVwQ5iOla/nrI6mLBNW02XxU77M3046Df6VLkoaJyFz20VsGIG5kkp+FK0kg4K4HnUFw==} + + semver@6.3.1: + resolution: {integrity: sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==} + hasBin: true + + semver@7.8.5: + resolution: {integrity: sha512-Y7/KDsb8LjooZpwaqGyulO6DQlksgCncchHGk+sZIY4SBvUocMBEFH5Ur1fI4dV+Jvl0w6cjvucaIi40puRioA==} + engines: {node: '>=10'} + hasBin: true + + send@1.2.1: + resolution: {integrity: sha512-1gnZf7DFcoIcajTjTwjwuDjzuz4PPcY2StKPlsGAQ1+YH20IRVrBaXSWmdjowTJ6u8Rc01PoYOGHXfP1mYcZNQ==} + engines: {node: '>= 18'} + + seroval-plugins@1.5.6: + resolution: {integrity: sha512-HXuLAX2pu/UByPpaeo/TaMfvMIi+1QqIoPJYCcAtU8QkVNwgR6MPlGuCQTErV1JwraaMbYaWVIBX7mppzGLATQ==} + engines: {node: '>=10'} + peerDependencies: + seroval: ^1.0 + + seroval@1.5.6: + resolution: {integrity: sha512-rVQVWjjSvlINzaQPZH5JFqsqEsIWdTxY3iJZCnTL/5gQbXIRooVZKI60tVCkOVfzcRPejboxO2t0P89dg5mQaA==} + engines: {node: '>=10'} + + serve-static@2.2.1: + resolution: {integrity: sha512-xRXBn0pPqQTVQiC8wyQrKs2MOlX24zQ0POGaj0kultvoOCstBQM5yvOhAVSUwOMjQtTvsPWoNCHfPGwaaQJhTw==} + engines: {node: '>= 18'} + + setprototypeof@1.2.0: + resolution: {integrity: sha512-E5LDX7Wrp85Kil5bhZv46j8jOeboKq5JMmYM3gVGdGH8xFpPWXUMsNrlODCrkoxMEeNi/XZIwuRvY4XNwYMJpw==} + + sharp@0.34.5: + resolution: {integrity: sha512-Ou9I5Ft9WNcCbXrU9cMgPBcCK8LiwLqcbywW3t4oDV37n1pzpuNLsYiAV8eODnjbtQlSDwZ2cUEeQz4E54Hltg==} + engines: {node: ^18.17.0 || ^20.3.0 || >=21.0.0} + + shebang-command@2.0.0: + resolution: {integrity: sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==} + engines: {node: '>=8'} + + shebang-regex@3.0.0: + resolution: {integrity: sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==} + engines: {node: '>=8'} + + shiki@4.3.0: + resolution: {integrity: sha512-NKKjWzR6LIGL3sXBrWDw9sDS9cxx42/DkysaNqJEeOWE8Kix5gpak0bc00OfDVEO4oyXSyz8+aRaqKoBD1yo7A==} + engines: {node: '>=20'} + + shiki@4.3.1: + resolution: {integrity: sha512-oR+qDVi2OjX1tmDpyv+3KviX01KzO6Af+0NNnKnsp9491UEGz2YpxTuJboS/6VhYpTdqzmuJBuiTlrAWWJAssw==} + engines: {node: '>=20'} + + 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'} + + signal-exit@4.1.0: + resolution: {integrity: sha512-bzyZ1e88w9O1iNJbKnOlvYTrWPDl46O1bG0D3XInv+9tkPrxrN8jUUTiFlDkkmKWgn1M6CfIA13SuGqOa9Korw==} + engines: {node: '>=14'} + + solid-js@1.9.14: + resolution: {integrity: sha512-sAEXC0Kk0S1EDg+8ysEWJDbYhA3RRoEjwuySUGlKIemeo0I5YZfOyumNjNs9Sv3y2nmhD+0rW66ag2HsMuQiGQ==} + + sorted-btree@1.8.1: + resolution: {integrity: sha512-395+XIP+wqNn3USkFSrNz7G3Ss/MXlZEqesxvzCRFwL14h6e8LukDHdLBePn5pwbm5OQ9vGu8mDyz2lLDIqamQ==} + + source-map-js@1.2.1: + resolution: {integrity: sha512-UXWMKhLOwVKb728IUtQPXxfYU+usdybtUrK/8uGE8CQMvrhOpwvzDBwj0QhSL7MQc7vIsISBG8VQ8+IDQxpfQA==} + engines: {node: '>=0.10.0'} + + space-separated-tokens@2.0.2: + resolution: {integrity: sha512-PEGlAwrG8yXGXRjW32fGbg66JAlOAwbObuqVoJpv/mRgoWDQfgH1wDPvtzWyUSNAXBGSk8h755YDbbcEy3SH2Q==} + + spdx-correct@3.2.0: + resolution: {integrity: sha512-kN9dJbvnySHULIluDHy32WHRUu3Og7B9sbY7tsFLctQkIqnMh3hErYgdMjTYuqmcXX+lK5T1lnUt3G7zNswmZA==} + + spdx-exceptions@2.5.0: + resolution: {integrity: sha512-PiU42r+xO4UbUS1buo3LPJkjlO7430Xn5SVAhdpzzsPHsjbYVflnnFdATgabnLude+Cqu25p6N+g2lw/PFsa4w==} + + spdx-expression-parse@3.0.1: + resolution: {integrity: sha512-cbqHunsQWnJNE6KhVSMsMeH5H/L9EpymbzqTQ3uLwNCLZ1Q481oWaofqH7nO6V07xlXwY6PhQdQ2IedWx/ZK4Q==} + + spdx-license-ids@3.0.23: + resolution: {integrity: sha512-CWLcCCH7VLu13TgOH+r8p1O/Znwhqv/dbb6lqWy67G+pT1kHmeD/+V36AVb/vq8QMIQwVShJ6Ssl5FPh0fuSdw==} + + split-ca@1.0.1: + resolution: {integrity: sha512-Q5thBSxp5t8WPTTJQS59LrGqOZqOsrhDGDVm8azCqIBjSBd7nd9o2PM+mDulQQkh8h//4U6hFZnc/mul8t5pWQ==} + + ssh2@1.17.0: + resolution: {integrity: sha512-wPldCk3asibAjQ/kziWQQt1Wh3PgDFpC0XpwclzKcdT1vql6KeYxf5LIt4nlFkUeR8WuphYMKqUA56X4rjbfgQ==} + engines: {node: '>=10.16.0'} + + statuses@2.0.2: + resolution: {integrity: sha512-DvEy55V3DB7uknRo+4iOGT5fP1slR8wQohVdknigZPMpMstaKJQWhwiYBACJE3Ul2pTnATihhBYnRhZQHGBiRw==} + engines: {node: '>= 0.8'} + + string-width@4.2.3: + resolution: {integrity: sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==} + engines: {node: '>=8'} + + string_decoder@1.3.0: + resolution: {integrity: sha512-hkRX8U1WjJFd8LsDJ2yQ/wWWxaopEsABU1XfkM8A+j0+85JAGppt16cr1Whg6KIbb4okU6Mql6BOj+uup/wKeA==} + + stringify-entities@4.0.4: + resolution: {integrity: sha512-IwfBptatlO+QCJUo19AqvrPNqlVMpW9YEL2LIVY+Rpv2qsjCGxaDLNRgeGsQWJhfItebuJhsGSLjaBbNSQ+ieg==} + + strip-ansi@6.0.1: + resolution: {integrity: sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==} + engines: {node: '>=8'} + + suffix-thumb@5.0.2: + resolution: {integrity: sha512-I5PWXAFKx3FYnI9a+dQMWNqTxoRt6vdBdb0O+BJ1sxXCWtSoQCusc13E58f+9p4MYx/qCnEMkD5jac6K2j3dgA==} + + supports-color@10.2.2: + resolution: {integrity: sha512-SS+jx45GF1QjgEXQx4NJZV9ImqmO2NPz5FNsIHrsDjh2YsHnawpan7SNQ1o8NuhrbHZy9AZhIoCUiCeaW/C80g==} + engines: {node: '>=18'} + + supports-color@7.2.0: + resolution: {integrity: sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==} + engines: {node: '>=8'} + + supports-color@8.1.1: + resolution: {integrity: sha512-MpUEN2OodtUzxvKQl72cUF7RQ5EiHsGvSsVG0ia9c5RbWGL2CI4C7EpPS8UTBIplnlzZiNuV56w+FuNxy3ty2Q==} + engines: {node: '>=10'} + + svelte@5.56.7: + resolution: {integrity: sha512-5qERUZX80oQj6XrDMUmD2Uhd/cIpCPDWWKBK3ZHmyRUC9apPyamWM8xMo31mbWsIQxwG2hVoSnOJ/EcnhVkkzQ==} + engines: {node: '>=18'} + + tailwind-merge@3.6.0: + resolution: {integrity: sha512-uxL7qAVQriqRQPAyK3pj66VqskWqoZ37PW94jwOTwNfq/z9oyu1V+eqrZqtR2+fCiXdYOZe/Modt8GtvqNzu+w==} + + tar-fs@2.1.5: + resolution: {integrity: sha512-OboTd8mmMhZDNPV+UjQcK9yKAatXu2aJ+r1w4im1Otd4M4fl2hwvdoXUxIYHFTHWK/3y3FarBP70v3vwmGlOxw==} + + tar-stream@2.2.0: + resolution: {integrity: sha512-ujeqbceABgwMZxEJnk2HDY2DlnUZ+9oEcb1KzTVfYHio0UE6dG71n60d8D2I4qNvleWrrXpmjpt7vZeF1LnMZQ==} + engines: {node: '>=6'} + + terminal-size@4.0.1: + resolution: {integrity: sha512-avMLDQpUI9I5XFrklECw1ZEUPJhqzcwSWsyyI8blhRLT+8N1jLJWLWWYQpB2q2xthq8xDvjZPISVh53T/+CLYQ==} + engines: {node: '>=18'} + + tiny-invariant@1.3.3: + resolution: {integrity: sha512-+FbBPE1o9QAYvviau/qC5SE3caw21q3xkvWKBtja5vgqOWIHHJ3ioaq1VPfn/Szqctz2bU/oYeKd9/z5BL+PVg==} + + tinyexec@1.2.4: + resolution: {integrity: sha512-SHf/r48b7vOrjve9PxJo3MN5v5yuyjHvdUcrQffT3WXMUfnGmHDVbC4k3sHJaJTgZCwpUplIaAo5ANtMyp3YHg==} + engines: {node: '>=18'} + + tinyglobby@0.2.17: + resolution: {integrity: sha512-wXR/dYpcqKmfWpEdZjiKJOwCNFndD0DMnrW/cYjVGttEkBfVgcLFHoNrlj47mjOVic9yyNu65alsgF4NQyTa2g==} + engines: {node: '>=12.0.0'} + + toidentifier@1.0.1: + resolution: {integrity: sha512-o5sSPKEkg/DIQNmH43V0/uerLrpzVedkUh8tGNvaeXpfpuwjKenlSox/2O/BTlZUtEe+JG7s5YhEz608PlAHRA==} + engines: {node: '>=0.6'} + + trim-lines@3.0.1: + resolution: {integrity: sha512-kRj8B+YHZCc9kQYdWfJB2/oUl9rA99qbowYYBtr4ui4mZyAQ2JpvVBd/6U2YloATfqBhBTSMhTpgBHtU0Mf3Rg==} + + ts-morph@28.0.0: + resolution: {integrity: sha512-Wp3tnZ2bzwxyTZMtgWVzXDfm7lB1Drz+y9DmmYH/L702PQhPyVrp3pkou3yIz4qjS14GY9kcpmLiOOMvl8oG1g==} + + tseep@1.3.1: + resolution: {integrity: sha512-ZPtfk1tQnZVyr7BPtbJ93qaAh2lZuIOpTMjhrYa4XctT8xe7t4SAW9LIxrySDuYMsfNNayE51E/WNGrNVgVicQ==} + + tslib@2.8.1: + resolution: {integrity: sha512-oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w==} + + tweetnacl@0.14.5: + resolution: {integrity: sha512-KXXFFdAbFXY4geFIwoyNK+f5Z1b7swfXABfL7HXCmoIWMKU3dmS26672A4EeQtDzLKy7SXmfBu51JolvEKwtGA==} + + type-is@2.1.0: + resolution: {integrity: sha512-faYHw0anBbc/kWF3zFTEnxSFOAGUX9GFbOBthvDdLsIlEoWOFOtS0zgCiQYwIskL9iGXZL3kAXD8OoZ4GmMATA==} + engines: {node: '>= 18'} + + typescript@6.0.3: + resolution: {integrity: sha512-y2TvuxSZPDyQakkFRPZHKFm+KKVqIisdg9/CZwm9ftvKXLP8NRWj38/ODjNbr43SsoXqNuAisEf1GdCxqWcdBw==} + engines: {node: '>=14.17'} + hasBin: true + + undici-types@7.18.2: + resolution: {integrity: sha512-AsuCzffGHJybSaRrmr5eHr81mwJU3kjw6M+uprWvCXiNeN9SOGwQ3Jn8jb8m3Z6izVgknn1R0FTCEAP2QrLY/w==} + + undici@7.28.0: + resolution: {integrity: sha512-cRZYrTDwWznlnRiPjggAGxZXanty6M8RV1ff8Wm4LWXBp7/IG8v5DnOm74DtUBp9OONpK75YlPnIjQqX0dBDtA==} + engines: {node: '>=20.18.1'} + + unenv@2.0.0-rc.24: + resolution: {integrity: sha512-i7qRCmY42zmCwnYlh9H2SvLEypEFGye5iRmEMKjcGi7zk9UquigRjFtTLz0TYqr0ZGLZhaMHl/foy1bZR+Cwlw==} + + unist-util-is@6.0.1: + resolution: {integrity: sha512-LsiILbtBETkDz8I9p1dQ0uyRUWuaQzd/cuEeS1hoRSyW5E5XGmTzlwY1OrNzzakGowI9Dr/I8HVaw4hTtnxy8g==} + + unist-util-position@5.0.0: + resolution: {integrity: sha512-fucsC7HjXvkB5R3kTCO7kUjRdrS0BJt3M/FPxmHMBOm8JQi2BsHAHFsy27E0EolP8rp0NzXsJ+jNPyDWvOJZPA==} + + unist-util-stringify-position@4.0.0: + resolution: {integrity: sha512-0ASV06AAoKCDkS2+xw5RXJywruurpbC4JZSm7nr7MOt1ojAzvyyaO+UxZf18j8FCF6kmzCZKcAgN/yu2gm2XgQ==} + + unist-util-visit-parents@6.0.2: + resolution: {integrity: sha512-goh1s1TBrqSqukSc8wrjwWhL0hiJxgA8m4kFxGlQ+8FYQ3C/m11FcTs4YYem7V664AhHVvgoQLk890Ssdsr2IQ==} + + 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'} + + update-browserslist-db@1.2.3: + resolution: {integrity: sha512-Js0m9cx+qOgDxo0eMiFGEueWztz+d4+M3rGlmKPT+T4IS/jP4ylw3Nwpu6cpTTP8R1MAC1kF4VbdLt3ARf209w==} + hasBin: true + peerDependencies: + browserslist: '>= 4.21.0' + + use-sync-external-store@1.6.0: + resolution: {integrity: sha512-Pp6GSwGP/NrPIrxVFAIkOQeyw8lFenOHijQWkUTrDvrF4ALqylP2C/KCkeS9dpUM3KvYRQhna5vt7IL95+ZQ9w==} + peerDependencies: + react: ^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0 + + util-deprecate@1.0.2: + resolution: {integrity: sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw==} + + validate-npm-package-license@3.0.4: + resolution: {integrity: sha512-DpKm2Ui/xN7/HQKCtpZxoRWBhZ9Z0kqtygG8XCgNQ8ZlDnxuQmWhj566j8fN4Cu3/JmbhsDo7fcAJq4s9h27Ew==} + + vary@1.1.2: + resolution: {integrity: sha512-BNGbWLfd0eUPabhkXUVm0j8uuvREyTh5ovRa/dyow/BqAbZJyC+5fU+IzQOzmAKzYqYRAISoRhdQr3eIZ/PXqg==} + engines: {node: '>= 0.8'} + + vfile-message@4.0.3: + resolution: {integrity: sha512-QTHzsGd1EhbZs4AsQ20JX1rC3cOlt/IWJruk893DfLRr57lcnOeMaWG4K0JrRta4mIJZKth2Au3mM3u03/JWKw==} + + vfile@6.0.3: + resolution: {integrity: sha512-KzIbH/9tXat2u30jf+smMwFCsno4wHVdNmzFyL+T/L3UGqqk6JKfVqOFOZEpZSHADH1k40ab6NUIXZq422ov3Q==} + + victory-vendor@37.3.6: + resolution: {integrity: sha512-SbPDPdDBYp+5MJHhBCAyI7wKM3d5ivekigc2Dk2s7pgbZ9wIgIBYGVw4zGHBml/qTFbexrofXW6Gu4noGxrOwQ==} + + vite@8.1.5: + resolution: {integrity: sha512-7ULLwsCdYx/nRyrpiEwvqb5TFHrMVZyBt+rg/OAXT7rgj/z+DtTDyKFeLAdDkubDVDKD8jOsndmy7m55XcfUsw==} + engines: {node: ^20.19.0 || >=22.12.0} + hasBin: true + peerDependencies: + '@types/node': ^20.19.0 || >=22.12.0 + '@vitejs/devtools': ^0.3.0 + esbuild: ^0.27.0 || ^0.28.0 + jiti: '>=1.21.0' + less: ^4.0.0 + sass: ^1.70.0 + sass-embedded: ^1.70.0 + stylus: '>=0.54.8' + sugarss: ^5.0.0 + terser: ^5.16.0 + tsx: ^4.8.1 + yaml: ^2.4.2 + peerDependenciesMeta: + '@types/node': + optional: true + '@vitejs/devtools': + optional: true + esbuild: + optional: true + jiti: + optional: true + less: + optional: true + sass: + optional: true + sass-embedded: + optional: true + stylus: + optional: true + sugarss: + optional: true + terser: + optional: true + tsx: + optional: true + yaml: + optional: true + + vue-demi@0.14.10: + resolution: {integrity: sha512-nMZBOwuzabUO0nLgIcc6rycZEebF6eeUfaiQx9+WSk8e29IbLvPU9feI6tqW4kTo3hvoYAJkMh8n8D0fuISphg==} + engines: {node: '>=12'} + hasBin: true + peerDependencies: + '@vue/composition-api': ^1.0.0-rc.1 + vue: ^3.0.0-0 || ^2.6.0 + peerDependenciesMeta: + '@vue/composition-api': + optional: true + + vue@3.5.40: + resolution: {integrity: sha512-+8PJ4SJXdn/cHGImF4CKdxlWHIN5Dkt7DoufRREM6h6uVCx2m7QxgcEQmmzyOK8A9mcafg7sFbJFYsdFVubTig==} + peerDependencies: + typescript: '*' + peerDependenciesMeta: + typescript: + optional: true + + which@2.0.2: + resolution: {integrity: sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==} + engines: {node: '>= 8'} + hasBin: true + + window-size@1.1.1: + resolution: {integrity: sha512-5D/9vujkmVQ7pSmc0SCBmHXbkv6eaHwXEx65MywhmUMsI8sGqJ972APq1lotfcwMKPFLuCFfL8xGHLIp7jaBmA==} + engines: {node: '>= 0.10.0'} + hasBin: true + + workerd@1.20260714.1: + resolution: {integrity: sha512-oIbQzfdyl9UQUnG6XLegcSq0Mgt/7WKDbFOoqGgOWCS+/fhyGB460uKEgdAQQ9RHCO/ttcNCX/KiMIQzdoeu3Q==} + engines: {node: '>=16'} + hasBin: true + + workerd@1.20260721.1: + resolution: {integrity: sha512-b/DWhpV0jTudzQpLhDovcOgBz233386q+3Hbari7CLCNT9UXxjQziSTZ9yCoKdT2K3TSx5jrwlOisq8hlLWXYg==} + engines: {node: '>=16'} + hasBin: true + + workers-ai-provider@3.3.1: + resolution: {integrity: sha512-vArwnmiAxQQF1clsXJd9ADn1xK9YUZVxE4umaMhrdsxM2kucxP430LfaoH4rn0AfoqtnuH3bfRhW1ak0r1x/8A==} + peerDependencies: + '@ai-sdk/anthropic': ^3.0.0 + '@ai-sdk/google': ^3.0.0 + '@ai-sdk/openai': ^3.0.0 + '@ai-sdk/provider': ^3.0.0 + ai: ^6.0.0 + peerDependenciesMeta: + '@ai-sdk/anthropic': + optional: true + '@ai-sdk/google': + optional: true + '@ai-sdk/openai': + optional: true + + wrangler@4.113.0: + resolution: {integrity: sha512-ROGzSloJv0y21It6Oc9LaruNcu1tdiQ/XzL3Jc3YkFjzXEMXzTqVhA8vQaGMTdZHTjFP0PVcwAHNgaw3gXu4wA==} + engines: {node: '>=22.0.0'} + hasBin: true + peerDependencies: + '@cloudflare/workers-types': ^5.20260721.1 + peerDependenciesMeta: + '@cloudflare/workers-types': + optional: true + + wrap-ansi@7.0.0: + resolution: {integrity: sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==} + engines: {node: '>=10'} + + wrappy@1.0.2: + resolution: {integrity: sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==} + + ws@8.21.0: + resolution: {integrity: sha512-Vsp28b7DRcimFQvrqu2Wek3z1iYxDCWqHYB8Qsnk/S4RfaCQzPGPyBNuVjJV3cd6UiKtUtp6sNM77gWvzcCH+g==} + engines: {node: '>=10.0.0'} + peerDependencies: + bufferutil: ^4.0.1 + utf-8-validate: '>=5.0.2' + peerDependenciesMeta: + bufferutil: + optional: true + utf-8-validate: + optional: true + + y18n@5.0.8: + resolution: {integrity: sha512-0pfFzegeDWJHJIAmTLRP2DwHjdF5s7jo9tuztdQxAhINCdvS+3nGINqPd00AphqJR/0LhANUS6/+7SCb98YOfA==} + engines: {node: '>=10'} + + yallist@3.1.1: + resolution: {integrity: sha512-a4UGQaWPH59mOXUYnAG2ewncQS4i4F43Tv3JoAM+s2VDAmS9NsK8GpDMLrCHPksFT7h3K6TOoUNn2pb7RoXx4g==} + + yaml@2.9.0: + resolution: {integrity: sha512-2AvhNX3mb8zd6Zy7INTtSpl1F15HW6Wnqj0srWlkKLcpYl/gMIMJiyuGq2KeI2YFxUPjdlB+3Lc10seMLtL4cA==} + engines: {node: '>= 14.6'} + hasBin: true + + yargs-parser@21.1.1: + resolution: {integrity: sha512-tVpsJW7DdjecAiFpbIB1e3qxIQsE6NoPc5/eTdrbbIC4h0LVsWhnoa3g+m2HclBIujHzsxZ4VJVA+GUuc2/LBw==} + engines: {node: '>=12'} + + yargs@17.7.3: + resolution: {integrity: sha512-GZtjxm/J/4TSxuL3FNYjCmLktBTnIw/rVmKSIyKeYAZpmJB2ig9VauCC5xsa82GNKVKDAqpOn3KVzNt0zmrU0g==} + engines: {node: '>=12'} + + yoga-layout@3.2.1: + resolution: {integrity: sha512-0LPOt3AxKqMdFBZA3HBAt/t/8vIKq7VaQYbuA8WxCgung+p9TVyKRYdpvCb80HcdTN2NkbIKbhNwKUfm3tQywQ==} + + youch-core@0.3.3: + resolution: {integrity: sha512-ho7XuGjLaJ2hWHoK8yFnsUGy2Y5uDpqSTq1FkHLK4/oqKtyUU1AFbOOxY4IpC9f0fTLjwYbslUz0Po5BpD1wrA==} + + youch@4.1.0-beta.10: + resolution: {integrity: sha512-rLfVLB4FgQneDr0dv1oddCVZmKjcJ6yX6mS4pU82Mq/Dt9a3cLZQ62pDBL4AUO+uVrCvtWz3ZFUL2HFAFJ/BXQ==} + + zimmerframe@1.1.4: + resolution: {integrity: sha512-B58NGBEoc8Y9MWWCQGl/gq9xBCe4IiKM0a2x7GZdQKOW5Exr8S1W24J6OgM1njK8xCRGvAJIL/MxXHf6SkmQKQ==} + + zod-to-json-schema@3.25.2: + resolution: {integrity: sha512-O/PgfnpT1xKSDeQYSCfRI5Gy3hPf91mKVDuYLUHZJMiDFptvP41MSnWofm8dnCm0256ZNfZIM7DSzuSMAFnjHA==} + peerDependencies: + zod: ^3.25.28 || ^4 + + zod@4.4.3: + resolution: {integrity: sha512-ytENFjIJFl2UwYglde2jchW2Hwm4GJFLDiSXWdTrJQBIN9Fcyp7n4DhxJEiWNAJMV1/BqWfW/kkg71UDcHJyTQ==} + + zustand@4.5.7: + resolution: {integrity: sha512-CHOUy7mu3lbD6o6LJLfllpjkzhHXSBlX8B9+qPddUsIfeF5S/UZ5q0kmCsnRqT1UHFQZchNFDDzMbQsuesHWlw==} + engines: {node: '>=12.7.0'} + peerDependencies: + '@types/react': '>=16.8' + immer: '>=9.0.6' + react: '>=16.8' + peerDependenciesMeta: + '@types/react': + optional: true + immer: + optional: true + react: + optional: true + + zwitch@2.0.4: + resolution: {integrity: sha512-bXE4cR/kVZhKZX/RjPEflHaKVhUVl85noU3v6b8apfQEc1x4A+zBxjZ4lN8LqGd6WZ3dl98pY4o717VFmoPp+A==} + +snapshots: + + '@ai-sdk/gateway@4.0.23(zod@4.4.3)': + dependencies: + '@ai-sdk/provider': 4.0.3 + '@ai-sdk/provider-utils': 5.0.11(zod@4.4.3) + '@vercel/oidc': 3.2.0 + zod: 4.4.3 + + '@ai-sdk/provider-utils@5.0.11(zod@4.4.3)': + dependencies: + '@ai-sdk/provider': 4.0.3 + '@standard-schema/spec': 1.1.0 + '@workflow/serde': 4.1.0 + eventsource-parser: 3.1.0 + zod: 4.4.3 + + '@ai-sdk/provider@4.0.3': + dependencies: + json-schema: 0.4.0 + + '@antfu/install-pkg@1.1.0': + dependencies: + package-manager-detector: 1.8.0 + tinyexec: 1.2.4 + + '@babel/code-frame@7.29.7': + dependencies: + '@babel/helper-validator-identifier': 7.29.7 + js-tokens: 4.0.0 + picocolors: 1.1.1 + + '@babel/compat-data@7.29.7': {} + + '@babel/core@7.29.7': + dependencies: + '@babel/code-frame': 7.29.7 + '@babel/generator': 7.29.7 + '@babel/helper-compilation-targets': 7.29.7 + '@babel/helper-module-transforms': 7.29.7(@babel/core@7.29.7) + '@babel/helpers': 7.29.7 + '@babel/parser': 7.29.7 + '@babel/template': 7.29.7 + '@babel/traverse': 7.29.7 + '@babel/types': 7.29.7 + '@jridgewell/remapping': 2.3.5 + convert-source-map: 2.0.0 + debug: 4.4.3 + gensync: 1.0.0-beta.2 + json5: 2.2.3 + semver: 6.3.1 + transitivePeerDependencies: + - supports-color + + '@babel/generator@7.29.7': + dependencies: + '@babel/parser': 7.29.7 + '@babel/types': 7.29.7 + '@jridgewell/gen-mapping': 0.3.13 + '@jridgewell/trace-mapping': 0.3.31 + jsesc: 3.1.0 + + '@babel/helper-compilation-targets@7.29.7': + dependencies: + '@babel/compat-data': 7.29.7 + '@babel/helper-validator-option': 7.29.7 + browserslist: 4.28.7 + lru-cache: 5.1.1 + semver: 6.3.1 + + '@babel/helper-globals@7.29.7': {} + + '@babel/helper-module-imports@7.29.7': + dependencies: + '@babel/traverse': 7.29.7 + '@babel/types': 7.29.7 + transitivePeerDependencies: + - supports-color + + '@babel/helper-module-transforms@7.29.7(@babel/core@7.29.7)': + dependencies: + '@babel/core': 7.29.7 + '@babel/helper-module-imports': 7.29.7 + '@babel/helper-validator-identifier': 7.29.7 + '@babel/traverse': 7.29.7 + transitivePeerDependencies: + - supports-color + + '@babel/helper-string-parser@7.29.7': {} + + '@babel/helper-validator-identifier@7.29.7': {} + + '@babel/helper-validator-option@7.29.7': {} + + '@babel/helpers@7.29.7': + dependencies: + '@babel/template': 7.29.7 + '@babel/types': 7.29.7 + + '@babel/parser@7.29.7': + dependencies: + '@babel/types': 7.29.7 + + '@babel/runtime@7.29.7': {} + + '@babel/template@7.29.7': + dependencies: + '@babel/code-frame': 7.29.7 + '@babel/parser': 7.29.7 + '@babel/types': 7.29.7 + + '@babel/traverse@7.29.7': + dependencies: + '@babel/code-frame': 7.29.7 + '@babel/generator': 7.29.7 + '@babel/helper-globals': 7.29.7 + '@babel/parser': 7.29.7 + '@babel/template': 7.29.7 + '@babel/types': 7.29.7 + debug: 4.4.3 + transitivePeerDependencies: + - supports-color + + '@babel/types@7.29.7': + dependencies: + '@babel/helper-string-parser': 7.29.7 + '@babel/helper-validator-identifier': 7.29.7 + + '@balena/dockerignore@1.0.2': {} + + '@base-ui/react@1.6.0(@types/react@19.2.17)(react-dom@19.2.8(react@19.2.8))(react@19.2.8)': + dependencies: + '@babel/runtime': 7.29.7 + '@base-ui/utils': 0.3.1(@types/react@19.2.17)(react-dom@19.2.8(react@19.2.8))(react@19.2.8) + '@floating-ui/react-dom': 2.1.9(react-dom@19.2.8(react@19.2.8))(react@19.2.8) + '@floating-ui/utils': 0.2.12 + react: 19.2.8 + react-dom: 19.2.8(react@19.2.8) + use-sync-external-store: 1.6.0(react@19.2.8) + optionalDependencies: + '@types/react': 19.2.17 + + '@base-ui/utils@0.3.1(@types/react@19.2.17)(react-dom@19.2.8(react@19.2.8))(react@19.2.8)': + dependencies: + '@babel/runtime': 7.29.7 + '@floating-ui/utils': 0.2.12 + react: 19.2.8 + react-dom: 19.2.8(react@19.2.8) + reselect: 5.2.0 + use-sync-external-store: 1.6.0(react@19.2.8) + optionalDependencies: + '@types/react': 19.2.17 + + '@bomb.sh/tab@0.0.19': {} + + '@cloudflare/kv-asset-handler@0.5.0': {} + + '@cloudflare/unenv-preset@2.16.1(unenv@2.0.0-rc.24)(workerd@1.20260714.1)': + dependencies: + unenv: 2.0.0-rc.24 + optionalDependencies: + workerd: 1.20260714.1 + + '@cloudflare/unenv-preset@2.16.1(unenv@2.0.0-rc.24)(workerd@1.20260721.1)': + dependencies: + unenv: 2.0.0-rc.24 + optionalDependencies: + workerd: 1.20260721.1 + + '@cloudflare/vite-plugin@1.45.1(vite@8.1.5(@types/node@24.13.3)(esbuild@0.28.1)(jiti@2.7.0)(yaml@2.9.0))(wrangler@4.113.0(@cloudflare/workers-types@4.20260702.1))': + dependencies: + '@cloudflare/unenv-preset': 2.16.1(unenv@2.0.0-rc.24)(workerd@1.20260714.1) + miniflare: 4.20260714.0 + unenv: 2.0.0-rc.24 + vite: 8.1.5(@types/node@24.13.3)(esbuild@0.28.1)(jiti@2.7.0)(yaml@2.9.0) + workerd: 1.20260714.1 + wrangler: 4.113.0(@cloudflare/workers-types@4.20260702.1) + ws: 8.21.0 + transitivePeerDependencies: + - bufferutil + - utf-8-validate + + '@cloudflare/workerd-darwin-64@1.20260714.1': + optional: true + + '@cloudflare/workerd-darwin-64@1.20260721.1': + optional: true + + '@cloudflare/workerd-darwin-arm64@1.20260714.1': + optional: true + + '@cloudflare/workerd-darwin-arm64@1.20260721.1': + optional: true + + '@cloudflare/workerd-linux-64@1.20260714.1': + optional: true + + '@cloudflare/workerd-linux-64@1.20260721.1': + optional: true + + '@cloudflare/workerd-linux-arm64@1.20260714.1': + optional: true + + '@cloudflare/workerd-linux-arm64@1.20260721.1': + optional: true + + '@cloudflare/workerd-windows-64@1.20260714.1': + optional: true + + '@cloudflare/workerd-windows-64@1.20260721.1': + optional: true + + '@cloudflare/workers-types@4.20260702.1': {} + + '@cspotcode/source-map-support@0.8.1': + dependencies: + '@jridgewell/trace-mapping': 0.3.9 + + '@emnapi/core@1.11.1': + dependencies: + '@emnapi/wasi-threads': 1.2.2 + tslib: 2.8.1 + optional: true + + '@emnapi/runtime@1.11.1': + dependencies: + tslib: 2.8.1 + optional: true + + '@emnapi/runtime@1.11.2': + dependencies: + tslib: 2.8.1 + optional: true + + '@emnapi/wasi-threads@1.2.2': + dependencies: + tslib: 2.8.1 + optional: true + + '@esbuild/aix-ppc64@0.28.1': + optional: true + + '@esbuild/android-arm64@0.28.1': + optional: true + + '@esbuild/android-arm@0.28.1': + optional: true + + '@esbuild/android-x64@0.28.1': + optional: true + + '@esbuild/darwin-arm64@0.28.1': + optional: true + + '@esbuild/darwin-x64@0.28.1': + optional: true + + '@esbuild/freebsd-arm64@0.28.1': + optional: true + + '@esbuild/freebsd-x64@0.28.1': + optional: true + + '@esbuild/linux-arm64@0.28.1': + optional: true + + '@esbuild/linux-arm@0.28.1': + optional: true + + '@esbuild/linux-ia32@0.28.1': + optional: true + + '@esbuild/linux-loong64@0.28.1': + optional: true + + '@esbuild/linux-mips64el@0.28.1': + optional: true + + '@esbuild/linux-ppc64@0.28.1': + optional: true + + '@esbuild/linux-riscv64@0.28.1': + optional: true + + '@esbuild/linux-s390x@0.28.1': + optional: true + + '@esbuild/linux-x64@0.28.1': + optional: true + + '@esbuild/netbsd-arm64@0.28.1': + optional: true + + '@esbuild/netbsd-x64@0.28.1': + optional: true + + '@esbuild/openbsd-arm64@0.28.1': + optional: true + + '@esbuild/openbsd-x64@0.28.1': + optional: true + + '@esbuild/openharmony-arm64@0.28.1': + optional: true + + '@esbuild/sunos-x64@0.28.1': + optional: true + + '@esbuild/win32-arm64@0.28.1': + optional: true + + '@esbuild/win32-ia32@0.28.1': + optional: true + + '@esbuild/win32-x64@0.28.1': + optional: true + + '@faker-js/faker@10.5.0': {} + + '@floating-ui/core@1.8.0': + dependencies: + '@floating-ui/utils': 0.2.12 + + '@floating-ui/dom@1.8.0': + dependencies: + '@floating-ui/core': 1.8.0 + '@floating-ui/utils': 0.2.12 + + '@floating-ui/react-dom@2.1.9(react-dom@19.2.8(react@19.2.8))(react@19.2.8)': + dependencies: + '@floating-ui/dom': 1.8.0 + react: 19.2.8 + react-dom: 19.2.8(react@19.2.8) + + '@floating-ui/utils@0.2.12': {} + + '@grpc/grpc-js@1.14.4': + dependencies: + '@grpc/proto-loader': 0.8.1 + '@js-sdsl/ordered-map': 4.4.2 + + '@grpc/proto-loader@0.7.15': + dependencies: + lodash.camelcase: 4.3.0 + long: 5.3.2 + protobufjs: 7.6.5 + yargs: 17.7.3 + + '@grpc/proto-loader@0.8.1': + dependencies: + lodash.camelcase: 4.3.0 + long: 5.3.2 + protobufjs: 7.6.5 + yargs: 17.7.3 + + '@hono/node-server@1.19.14(hono@4.12.31)': + dependencies: + hono: 4.12.31 + + '@hugeicons/core-free-icons@4.2.3': {} + + '@hugeicons/react@1.1.9(react@19.2.8)': + dependencies: + react: 19.2.8 + + '@img/colour@1.1.0': {} + + '@img/sharp-darwin-arm64@0.34.5': + optionalDependencies: + '@img/sharp-libvips-darwin-arm64': 1.2.4 + optional: true + + '@img/sharp-darwin-x64@0.34.5': + optionalDependencies: + '@img/sharp-libvips-darwin-x64': 1.2.4 + optional: true + + '@img/sharp-libvips-darwin-arm64@1.2.4': + optional: true + + '@img/sharp-libvips-darwin-x64@1.2.4': + optional: true + + '@img/sharp-libvips-linux-arm64@1.2.4': + optional: true + + '@img/sharp-libvips-linux-arm@1.2.4': + optional: true + + '@img/sharp-libvips-linux-ppc64@1.2.4': + optional: true + + '@img/sharp-libvips-linux-riscv64@1.2.4': + optional: true + + '@img/sharp-libvips-linux-s390x@1.2.4': + optional: true + + '@img/sharp-libvips-linux-x64@1.2.4': + optional: true + + '@img/sharp-libvips-linuxmusl-arm64@1.2.4': + optional: true + + '@img/sharp-libvips-linuxmusl-x64@1.2.4': + optional: true + + '@img/sharp-linux-arm64@0.34.5': + optionalDependencies: + '@img/sharp-libvips-linux-arm64': 1.2.4 + optional: true + + '@img/sharp-linux-arm@0.34.5': + optionalDependencies: + '@img/sharp-libvips-linux-arm': 1.2.4 + optional: true + + '@img/sharp-linux-ppc64@0.34.5': + optionalDependencies: + '@img/sharp-libvips-linux-ppc64': 1.2.4 + optional: true + + '@img/sharp-linux-riscv64@0.34.5': + optionalDependencies: + '@img/sharp-libvips-linux-riscv64': 1.2.4 + optional: true + + '@img/sharp-linux-s390x@0.34.5': + optionalDependencies: + '@img/sharp-libvips-linux-s390x': 1.2.4 + optional: true + + '@img/sharp-linux-x64@0.34.5': + optionalDependencies: + '@img/sharp-libvips-linux-x64': 1.2.4 + optional: true + + '@img/sharp-linuxmusl-arm64@0.34.5': + optionalDependencies: + '@img/sharp-libvips-linuxmusl-arm64': 1.2.4 + optional: true + + '@img/sharp-linuxmusl-x64@0.34.5': + optionalDependencies: + '@img/sharp-libvips-linuxmusl-x64': 1.2.4 + optional: true + + '@img/sharp-wasm32@0.34.5': + dependencies: + '@emnapi/runtime': 1.11.2 + optional: true + + '@img/sharp-win32-arm64@0.34.5': + optional: true + + '@img/sharp-win32-ia32@0.34.5': + optional: true + + '@img/sharp-win32-x64@0.34.5': + optional: true + + '@jest/schemas@29.6.3': + dependencies: + '@sinclair/typebox': 0.27.12 + + '@jest/types@29.6.3': + dependencies: + '@jest/schemas': 29.6.3 + '@types/istanbul-lib-coverage': 2.0.6 + '@types/istanbul-reports': 3.0.4 + '@types/node': 24.13.3 + '@types/yargs': 17.0.35 + chalk: 4.1.2 + + '@jridgewell/gen-mapping@0.3.13': + dependencies: + '@jridgewell/sourcemap-codec': 1.5.5 + '@jridgewell/trace-mapping': 0.3.31 + + '@jridgewell/remapping@2.3.5': + dependencies: + '@jridgewell/gen-mapping': 0.3.13 + '@jridgewell/trace-mapping': 0.3.31 + + '@jridgewell/resolve-uri@3.1.2': {} + + '@jridgewell/sourcemap-codec@1.5.5': {} + + '@jridgewell/trace-mapping@0.3.31': + dependencies: + '@jridgewell/resolve-uri': 3.1.2 + '@jridgewell/sourcemap-codec': 1.5.5 + + '@jridgewell/trace-mapping@0.3.9': + dependencies: + '@jridgewell/resolve-uri': 3.1.2 + '@jridgewell/sourcemap-codec': 1.5.5 + + '@js-sdsl/ordered-map@4.4.2': {} + + '@lingui/babel-plugin-lingui-macro@6.5.0': + dependencies: + '@babel/core': 7.29.7 + '@babel/types': 7.29.7 + '@lingui/conf': 6.5.0 + '@lingui/message-utils': 6.5.0 + transitivePeerDependencies: + - supports-color + + '@lingui/conf@6.5.0': + dependencies: + jest-validate: 29.7.0 + jiti: 2.7.0 + lilconfig: 3.1.3 + normalize-path: 3.0.0 + + '@lingui/core@6.5.0': + dependencies: + '@lingui/babel-plugin-lingui-macro': 6.5.0 + '@lingui/message-utils': 6.5.0 + transitivePeerDependencies: + - supports-color + + '@lingui/message-utils@6.5.0': + dependencies: + '@messageformat/date-skeleton': 1.1.0 + '@messageformat/parser': 5.1.1 + js-sha256: 0.10.1 + + '@lunora/advisor@1.0.0-alpha.33(@cloudflare/workers-types@4.20260702.1)': + dependencies: + '@lunora/errors': 1.0.0-alpha.7 + '@lunora/server': 1.0.0-alpha.30(@cloudflare/workers-types@4.20260702.1) + transitivePeerDependencies: + - '@aws-sdk/client-rds-data' + - '@cloudflare/workers-types' + - '@electric-sql/pglite' + - '@libsql/client' + - '@libsql/client-wasm' + - '@neondatabase/serverless' + - '@op-engineering/op-sqlite' + - '@opentelemetry/api' + - '@planetscale/database' + - '@prisma/client' + - '@tidbcloud/serverless' + - '@types/better-sqlite3' + - '@types/pg' + - '@types/sql.js' + - '@upstash/redis' + - '@vercel/postgres' + - '@xata.io/client' + - better-sqlite3 + - bun-types + - expo-sqlite + - gel + - knex + - kysely + - mysql2 + - pg + - postgres + - prisma + - sql.js + - sqlite3 + + '@lunora/agent@1.0.0-alpha.9(@ai-sdk/provider@4.0.3)(@cloudflare/workers-types@4.20260702.1)(@types/node@24.13.3)(luxon@3.7.2)(react-dom@19.2.8(react@19.2.8))(react@19.2.8)(zod@4.4.3)': + dependencies: + '@lunora/ai': 1.0.0-alpha.24(@ai-sdk/provider@4.0.3)(zod@4.4.3) + '@lunora/errors': 1.0.0-alpha.7 + '@lunora/mail': 1.0.0-alpha.17(@types/node@24.13.3)(luxon@3.7.2)(react-dom@19.2.8(react@19.2.8))(react@19.2.8) + '@lunora/server': 1.0.0-alpha.30(@cloudflare/workers-types@4.20260702.1) + '@lunora/values': 1.0.0-alpha.10 + '@lunora/workflow': 1.0.0-alpha.12 + '@modelcontextprotocol/sdk': 1.29.0(zod@4.4.3) + ai: 7.0.31(zod@4.4.3) + transitivePeerDependencies: + - '@ai-sdk/anthropic' + - '@ai-sdk/google' + - '@ai-sdk/openai' + - '@ai-sdk/provider' + - '@aws-sdk/client-rds-data' + - '@cfworker/json-schema' + - '@cloudflare/workers-types' + - '@electric-sql/pglite' + - '@libsql/client' + - '@libsql/client-wasm' + - '@neondatabase/serverless' + - '@op-engineering/op-sqlite' + - '@opentelemetry/api' + - '@planetscale/database' + - '@prisma/client' + - '@tidbcloud/serverless' + - '@touch4it/ical-timezones' + - '@types/better-sqlite3' + - '@types/luxon' + - '@types/mocha' + - '@types/node' + - '@types/pg' + - '@types/sql.js' + - '@upstash/redis' + - '@vercel/postgres' + - '@vue-email/render' + - '@xata.io/client' + - asn1js + - better-sqlite3 + - bun-types + - dayjs + - expo-sqlite + - fast-xml-parser + - gel + - handlebars + - jsx-email + - juice + - knex + - kysely + - liquidjs + - luxon + - mjml + - moment + - moment-timezone + - mysql2 + - nodemailer + - pg + - pkijs + - postgres + - prisma + - react + - react-dom + - rrule + - sql.js + - sqlite3 + - supports-color + - unstorage + - zod + + '@lunora/ai@1.0.0-alpha.24(@ai-sdk/provider@4.0.3)(zod@4.4.3)': + dependencies: + '@lunora/errors': 1.0.0-alpha.7 + ai: 7.0.31(zod@4.4.3) + workers-ai-provider: 3.3.1(@ai-sdk/provider@4.0.3)(ai@7.0.31(zod@4.4.3)) + transitivePeerDependencies: + - '@ai-sdk/google' + - '@ai-sdk/provider' + - zod + + '@lunora/bindings@1.0.0-alpha.10': + dependencies: + '@lunora/errors': 1.0.0-alpha.7 + + '@lunora/cli@1.0.0-alpha.97(@ai-sdk/provider@4.0.3)(@cloudflare/workers-types@4.20260702.1)(@lunora/server@1.0.0-alpha.30(@cloudflare/workers-types@4.20260702.1))(@lunora/studio@1.0.0-alpha.58(@cloudflare/workers-types@4.20260702.1)(@tanstack/solid-query@5.101.4(solid-js@1.9.14))(@tanstack/svelte-query@6.1.38(svelte@5.56.7))(@tanstack/vue-query@5.101.4(vue@3.5.40(typescript@6.0.3)))(@types/react-dom@19.2.3(@types/react@19.2.17))(@types/react@19.2.17)(immer@11.1.15)(react-dom@19.2.8(react@19.2.8))(react-is@18.3.1)(react@19.2.8)(redux@5.0.1)(solid-js@1.9.14)(svelte@5.56.7)(vue@3.5.40(typescript@6.0.3)))(@lunora/values@1.0.0-alpha.10)(@shikijs/langs@4.3.1)(@shikijs/themes@4.3.1)(@types/node@24.13.3)(@visulima/redact@3.0.0)(@visulima/tabular@4.0.0)(ai@7.0.31(zod@4.4.3))(express@5.2.1)(hono@4.12.31)(json5@2.2.3)(luxon@3.7.2)(react-dom@19.2.8(react@19.2.8))(shiki@4.3.1)(ws@8.21.0)(yaml@2.9.0)(zod@4.4.3)': + dependencies: + '@bomb.sh/tab': 0.0.19 + '@lunora/bindings': 1.0.0-alpha.10 + '@lunora/codegen': 1.0.0-alpha.52(@ai-sdk/provider@4.0.3)(@cloudflare/workers-types@4.20260702.1)(@types/node@24.13.3)(luxon@3.7.2)(react-dom@19.2.8(react@19.2.8))(react@19.2.8)(zod@4.4.3) + '@lunora/config': 1.0.0-alpha.78(@ai-sdk/provider@4.0.3)(@cloudflare/workers-types@4.20260702.1)(@lunora/server@1.0.0-alpha.30(@cloudflare/workers-types@4.20260702.1))(@lunora/studio@1.0.0-alpha.58(@cloudflare/workers-types@4.20260702.1)(@tanstack/solid-query@5.101.4(solid-js@1.9.14))(@tanstack/svelte-query@6.1.38(svelte@5.56.7))(@tanstack/vue-query@5.101.4(vue@3.5.40(typescript@6.0.3)))(@types/react-dom@19.2.3(@types/react@19.2.17))(@types/react@19.2.17)(immer@11.1.15)(react-dom@19.2.8(react@19.2.8))(react-is@18.3.1)(react@19.2.8)(redux@5.0.1)(solid-js@1.9.14)(svelte@5.56.7)(vue@3.5.40(typescript@6.0.3)))(@lunora/values@1.0.0-alpha.10)(@types/node@24.13.3)(luxon@3.7.2)(react-dom@19.2.8(react@19.2.8))(react@19.2.8)(zod@4.4.3) + '@lunora/container': 1.0.0-alpha.14 + '@lunora/d1': 1.0.0-alpha.37(@cloudflare/workers-types@4.20260702.1) + '@lunora/errors': 1.0.0-alpha.7 + '@lunora/runtime': 1.0.0-alpha.35 + '@lunora/seed': 1.0.0-alpha.29(@lunora/server@1.0.0-alpha.30(@cloudflare/workers-types@4.20260702.1))(@lunora/values@1.0.0-alpha.10) + '@visulima/cerebro': 3.0.0(@bomb.sh/tab@0.0.19)(@visulima/pail@4.0.0(@visulima/redact@3.0.0)(express@5.2.1)(hono@4.12.31)) + '@visulima/error': 6.0.0(ai@7.0.31(zod@4.4.3)) + '@visulima/fs': 5.0.4(json5@2.2.3)(jsonc-parser@3.3.1)(yaml@2.9.0) + '@visulima/package': 5.0.4(jsonc-parser@3.3.1) + '@visulima/pail': 4.0.0(@visulima/redact@3.0.0)(express@5.2.1)(hono@4.12.31) + '@visulima/path': 3.0.0 + '@visulima/spinner': 1.0.0 + '@visulima/tui': 1.0.4(@shikijs/langs@4.3.1)(@shikijs/themes@4.3.1)(@visulima/tabular@4.0.0)(ai@7.0.31(zod@4.4.3))(cfonts@3.3.1)(react-reconciler@0.33.0(react@19.2.8))(react@19.2.8)(shiki@4.3.1)(ws@8.21.0) + cfonts: 3.3.1 + giget: 3.3.0 + jsonc-parser: 3.3.1 + magic-string: 1.0.0 + react: 19.2.8 + react-reconciler: 0.33.0(react@19.2.8) + ts-morph: 28.0.0 + transitivePeerDependencies: + - '@ai-sdk/anthropic' + - '@ai-sdk/google' + - '@ai-sdk/openai' + - '@ai-sdk/provider' + - '@aws-sdk/client-rds-data' + - '@cfworker/json-schema' + - '@cloudflare/workers-types' + - '@electric-sql/pglite' + - '@libsql/client' + - '@libsql/client-wasm' + - '@lunora/server' + - '@lunora/studio' + - '@lunora/values' + - '@neondatabase/serverless' + - '@op-engineering/op-sqlite' + - '@opentelemetry/api' + - '@planetscale/database' + - '@prisma/client' + - '@shikijs/langs' + - '@shikijs/themes' + - '@sveltejs/kit' + - '@tidbcloud/serverless' + - '@touch4it/ical-timezones' + - '@types/better-sqlite3' + - '@types/luxon' + - '@types/mocha' + - '@types/node' + - '@types/pg' + - '@types/sql.js' + - '@upstash/redis' + - '@vercel/postgres' + - '@visulima/boxen' + - '@visulima/find-cache-dir' + - '@visulima/redact' + - '@visulima/tabular' + - '@vue-email/render' + - '@xata.io/client' + - ai + - asn1js + - better-sqlite3 + - bun-types + - cac + - citty + - commander + - dayjs + - diff + - elysia + - expo-sqlite + - express + - fast-xml-parser + - fastify + - gel + - github-slugger + - handlebars + - hono + - ini + - json5 + - jsx-email + - juice + - knex + - kysely + - liquidjs + - luxon + - marked + - mjml + - moment + - moment-timezone + - mysql2 + - next + - nodemailer + - pg + - pkijs + - postgres + - prisma + - react-devtools-core + - react-dom + - rotating-file-stream + - rrule + - shiki + - smol-toml + - sql.js + - sqlite3 + - supports-color + - unstorage + - ws + - yaml + - zod + + '@lunora/client@1.0.0-alpha.27(@tanstack/react-query@5.101.4(react@19.2.8))(@tanstack/solid-query@5.101.4(solid-js@1.9.14))(@tanstack/svelte-query@6.1.38(svelte@5.56.7))(@tanstack/vue-query@5.101.4(vue@3.5.40(typescript@6.0.3)))(react@19.2.8)(solid-js@1.9.14)(svelte@5.56.7)(vue@3.5.40(typescript@6.0.3))': + dependencies: + '@lunora/errors': 1.0.0-alpha.7 + '@visulima/storage-client': 1.0.0(@tanstack/react-query@5.101.4(react@19.2.8))(@tanstack/solid-query@5.101.4(solid-js@1.9.14))(@tanstack/svelte-query@6.1.38(svelte@5.56.7))(@tanstack/vue-query@5.101.4(vue@3.5.40(typescript@6.0.3)))(react@19.2.8)(solid-js@1.9.14)(svelte@5.56.7)(vue@3.5.40(typescript@6.0.3)) + transitivePeerDependencies: + - '@tanstack/react-query' + - '@tanstack/solid-query' + - '@tanstack/svelte-query' + - '@tanstack/vue-query' + - react + - solid-js + - svelte + - vue + + '@lunora/codegen@1.0.0-alpha.52(@ai-sdk/provider@4.0.3)(@cloudflare/workers-types@4.20260702.1)(@types/node@24.13.3)(luxon@3.7.2)(react-dom@19.2.8(react@19.2.8))(react@19.2.8)(zod@4.4.3)': + dependencies: + '@lunora/advisor': 1.0.0-alpha.33(@cloudflare/workers-types@4.20260702.1) + '@lunora/agent': 1.0.0-alpha.9(@ai-sdk/provider@4.0.3)(@cloudflare/workers-types@4.20260702.1)(@types/node@24.13.3)(luxon@3.7.2)(react-dom@19.2.8(react@19.2.8))(react@19.2.8)(zod@4.4.3) + '@lunora/container': 1.0.0-alpha.14 + '@lunora/errors': 1.0.0-alpha.7 + '@lunora/queue': 1.0.0-alpha.9 + '@lunora/scheduler': 1.0.0-alpha.11 + '@lunora/values': 1.0.0-alpha.10 + '@lunora/workflow': 1.0.0-alpha.12 + ts-morph: 28.0.0 + transitivePeerDependencies: + - '@ai-sdk/anthropic' + - '@ai-sdk/google' + - '@ai-sdk/openai' + - '@ai-sdk/provider' + - '@aws-sdk/client-rds-data' + - '@cfworker/json-schema' + - '@cloudflare/workers-types' + - '@electric-sql/pglite' + - '@libsql/client' + - '@libsql/client-wasm' + - '@neondatabase/serverless' + - '@op-engineering/op-sqlite' + - '@opentelemetry/api' + - '@planetscale/database' + - '@prisma/client' + - '@tidbcloud/serverless' + - '@touch4it/ical-timezones' + - '@types/better-sqlite3' + - '@types/luxon' + - '@types/mocha' + - '@types/node' + - '@types/pg' + - '@types/sql.js' + - '@upstash/redis' + - '@vercel/postgres' + - '@vue-email/render' + - '@xata.io/client' + - asn1js + - better-sqlite3 + - bun-types + - dayjs + - expo-sqlite + - fast-xml-parser + - gel + - handlebars + - jsx-email + - juice + - knex + - kysely + - liquidjs + - luxon + - mjml + - moment + - moment-timezone + - mysql2 + - nodemailer + - pg + - pkijs + - postgres + - prisma + - react + - react-dom + - rrule + - sql.js + - sqlite3 + - supports-color + - unstorage + - zod + + '@lunora/config@1.0.0-alpha.78(@ai-sdk/provider@4.0.3)(@cloudflare/workers-types@4.20260702.1)(@lunora/server@1.0.0-alpha.30(@cloudflare/workers-types@4.20260702.1))(@lunora/studio@1.0.0-alpha.58(@cloudflare/workers-types@4.20260702.1)(@tanstack/solid-query@5.101.4(solid-js@1.9.14))(@tanstack/svelte-query@6.1.38(svelte@5.56.7))(@tanstack/vue-query@5.101.4(vue@3.5.40(typescript@6.0.3)))(@types/react-dom@19.2.3(@types/react@19.2.17))(@types/react@19.2.17)(immer@11.1.15)(react-dom@19.2.8(react@19.2.8))(react-is@18.3.1)(react@19.2.8)(redux@5.0.1)(solid-js@1.9.14)(svelte@5.56.7)(vue@3.5.40(typescript@6.0.3)))(@lunora/values@1.0.0-alpha.10)(@types/node@24.13.3)(luxon@3.7.2)(react-dom@19.2.8(react@19.2.8))(react@19.2.8)(zod@4.4.3)': + dependencies: + '@lunora/codegen': 1.0.0-alpha.52(@ai-sdk/provider@4.0.3)(@cloudflare/workers-types@4.20260702.1)(@types/node@24.13.3)(luxon@3.7.2)(react-dom@19.2.8(react@19.2.8))(react@19.2.8)(zod@4.4.3) + '@lunora/container': 1.0.0-alpha.14 + '@lunora/errors': 1.0.0-alpha.7 + '@lunora/seed': 1.0.0-alpha.29(@lunora/server@1.0.0-alpha.30(@cloudflare/workers-types@4.20260702.1))(@lunora/values@1.0.0-alpha.10) + '@visulima/colorize': 2.0.0 + '@visulima/find-ai-runner': 1.0.0 + dockerode: 5.0.1 + es-module-lexer: 2.3.1 + jsonc-parser: 3.3.1 + ts-morph: 28.0.0 + optionalDependencies: + '@lunora/studio': 1.0.0-alpha.58(@cloudflare/workers-types@4.20260702.1)(@tanstack/solid-query@5.101.4(solid-js@1.9.14))(@tanstack/svelte-query@6.1.38(svelte@5.56.7))(@tanstack/vue-query@5.101.4(vue@3.5.40(typescript@6.0.3)))(@types/react-dom@19.2.3(@types/react@19.2.17))(@types/react@19.2.17)(immer@11.1.15)(react-dom@19.2.8(react@19.2.8))(react-is@18.3.1)(react@19.2.8)(redux@5.0.1)(solid-js@1.9.14)(svelte@5.56.7)(vue@3.5.40(typescript@6.0.3)) + transitivePeerDependencies: + - '@ai-sdk/anthropic' + - '@ai-sdk/google' + - '@ai-sdk/openai' + - '@ai-sdk/provider' + - '@aws-sdk/client-rds-data' + - '@cfworker/json-schema' + - '@cloudflare/workers-types' + - '@electric-sql/pglite' + - '@libsql/client' + - '@libsql/client-wasm' + - '@lunora/server' + - '@lunora/values' + - '@neondatabase/serverless' + - '@op-engineering/op-sqlite' + - '@opentelemetry/api' + - '@planetscale/database' + - '@prisma/client' + - '@tidbcloud/serverless' + - '@touch4it/ical-timezones' + - '@types/better-sqlite3' + - '@types/luxon' + - '@types/mocha' + - '@types/node' + - '@types/pg' + - '@types/sql.js' + - '@upstash/redis' + - '@vercel/postgres' + - '@vue-email/render' + - '@xata.io/client' + - asn1js + - better-sqlite3 + - bun-types + - dayjs + - expo-sqlite + - fast-xml-parser + - gel + - handlebars + - jsx-email + - juice + - knex + - kysely + - liquidjs + - luxon + - mjml + - moment + - moment-timezone + - mysql2 + - nodemailer + - pg + - pkijs + - postgres + - prisma + - react + - react-dom + - rrule + - sql.js + - sqlite3 + - supports-color + - unstorage + - zod + + '@lunora/container@1.0.0-alpha.14': + dependencies: + '@lunora/errors': 1.0.0-alpha.7 + + '@lunora/d1@1.0.0-alpha.37(@cloudflare/workers-types@4.20260702.1)': + dependencies: + '@lunora/do': 1.0.0-alpha.41(@cloudflare/workers-types@4.20260702.1) + '@lunora/errors': 1.0.0-alpha.7 + '@lunora/sql-store': 1.0.0-alpha.38(@cloudflare/workers-types@4.20260702.1) + drizzle-orm: 0.45.2(@cloudflare/workers-types@4.20260702.1) + transitivePeerDependencies: + - '@aws-sdk/client-rds-data' + - '@cloudflare/workers-types' + - '@electric-sql/pglite' + - '@libsql/client' + - '@libsql/client-wasm' + - '@neondatabase/serverless' + - '@op-engineering/op-sqlite' + - '@opentelemetry/api' + - '@planetscale/database' + - '@prisma/client' + - '@tidbcloud/serverless' + - '@types/better-sqlite3' + - '@types/pg' + - '@types/sql.js' + - '@upstash/redis' + - '@vercel/postgres' + - '@xata.io/client' + - better-sqlite3 + - bun-types + - expo-sqlite + - gel + - knex + - kysely + - mysql2 + - pg + - postgres + - prisma + - sql.js + - sqlite3 + + '@lunora/db@1.0.0-alpha.27(@tanstack/db@0.6.16(typescript@6.0.3))(@tanstack/offline-transactions@1.0.41(typescript@6.0.3))(@tanstack/react-query@5.101.4(react@19.2.8))(@tanstack/solid-query@5.101.4(solid-js@1.9.14))(@tanstack/svelte-query@6.1.38(svelte@5.56.7))(@tanstack/vue-query@5.101.4(vue@3.5.40(typescript@6.0.3)))(react@19.2.8)(solid-js@1.9.14)(svelte@5.56.7)(vue@3.5.40(typescript@6.0.3))': + dependencies: + '@lunora/client': 1.0.0-alpha.27(@tanstack/react-query@5.101.4(react@19.2.8))(@tanstack/solid-query@5.101.4(solid-js@1.9.14))(@tanstack/svelte-query@6.1.38(svelte@5.56.7))(@tanstack/vue-query@5.101.4(vue@3.5.40(typescript@6.0.3)))(react@19.2.8)(solid-js@1.9.14)(svelte@5.56.7)(vue@3.5.40(typescript@6.0.3)) + '@lunora/errors': 1.0.0-alpha.7 + '@tanstack/db': 0.6.16(typescript@6.0.3) + '@tanstack/offline-transactions': 1.0.41(typescript@6.0.3) + transitivePeerDependencies: + - '@tanstack/react-query' + - '@tanstack/solid-query' + - '@tanstack/svelte-query' + - '@tanstack/vue-query' + - react + - solid-js + - svelte + - vue + + '@lunora/do@1.0.0-alpha.41(@cloudflare/workers-types@4.20260702.1)': + dependencies: + '@lunora/errors': 1.0.0-alpha.7 + '@lunora/fingerprint': 1.0.0-alpha.3 + '@visulima/redact': 3.0.0 + drizzle-orm: 0.45.2(@cloudflare/workers-types@4.20260702.1) + transitivePeerDependencies: + - '@aws-sdk/client-rds-data' + - '@cloudflare/workers-types' + - '@electric-sql/pglite' + - '@libsql/client' + - '@libsql/client-wasm' + - '@neondatabase/serverless' + - '@op-engineering/op-sqlite' + - '@opentelemetry/api' + - '@planetscale/database' + - '@prisma/client' + - '@tidbcloud/serverless' + - '@types/better-sqlite3' + - '@types/pg' + - '@types/sql.js' + - '@upstash/redis' + - '@vercel/postgres' + - '@xata.io/client' + - better-sqlite3 + - bun-types + - expo-sqlite + - gel + - knex + - kysely + - mysql2 + - pg + - postgres + - prisma + - sql.js + - sqlite3 + + '@lunora/errors@1.0.0-alpha.6': {} + + '@lunora/errors@1.0.0-alpha.7': {} + + '@lunora/fingerprint@1.0.0-alpha.3': {} + + '@lunora/flags@1.0.0-alpha.15(@openfeature/core@1.11.0)': + dependencies: + '@lunora/errors': 1.0.0-alpha.7 + '@openfeature/server-sdk': 1.22.0(@openfeature/core@1.11.0) + transitivePeerDependencies: + - '@openfeature/core' + + '@lunora/mail@1.0.0-alpha.17(@types/node@24.13.3)(luxon@3.7.2)(react-dom@19.2.8(react@19.2.8))(react@19.2.8)': + dependencies: + '@lunora/errors': 1.0.0-alpha.7 + '@react-email/render': 2.1.0(react-dom@19.2.8(react@19.2.8))(react@19.2.8) + '@visulima/email': 2.1.1(@react-email/render@2.1.0(react-dom@19.2.8(react@19.2.8))(react@19.2.8))(@types/node@24.13.3)(luxon@3.7.2) + postal-mime: 2.7.5 + optionalDependencies: + react: 19.2.8 + transitivePeerDependencies: + - '@opentelemetry/api' + - '@touch4it/ical-timezones' + - '@types/luxon' + - '@types/mocha' + - '@types/node' + - '@vue-email/render' + - asn1js + - dayjs + - fast-xml-parser + - handlebars + - jsx-email + - juice + - liquidjs + - luxon + - mjml + - moment + - moment-timezone + - nodemailer + - pkijs + - react-dom + - rrule + - unstorage + + '@lunora/queue@1.0.0-alpha.9': + dependencies: + '@lunora/errors': 1.0.0-alpha.6 + + '@lunora/ratelimit@1.0.0-alpha.9': + dependencies: + '@lunora/errors': 1.0.0-alpha.6 + + '@lunora/react@1.0.0-alpha.31(@tanstack/react-query@5.101.4(react@19.2.8))(@tanstack/solid-query@5.101.4(solid-js@1.9.14))(@tanstack/svelte-query@6.1.38(svelte@5.56.7))(@tanstack/vue-query@5.101.4(vue@3.5.40(typescript@6.0.3)))(react-dom@19.2.8(react@19.2.8))(react@19.2.8)(solid-js@1.9.14)(svelte@5.56.7)(vue@3.5.40(typescript@6.0.3))': + dependencies: + '@lunora/client': 1.0.0-alpha.27(@tanstack/react-query@5.101.4(react@19.2.8))(@tanstack/solid-query@5.101.4(solid-js@1.9.14))(@tanstack/svelte-query@6.1.38(svelte@5.56.7))(@tanstack/vue-query@5.101.4(vue@3.5.40(typescript@6.0.3)))(react@19.2.8)(solid-js@1.9.14)(svelte@5.56.7)(vue@3.5.40(typescript@6.0.3)) + '@lunora/errors': 1.0.0-alpha.7 + '@lunora/ratelimit': 1.0.0-alpha.9 + '@tanstack/react-query': 5.101.4(react@19.2.8) + '@visulima/storage-client': 1.0.0(@tanstack/react-query@5.101.4(react@19.2.8))(@tanstack/solid-query@5.101.4(solid-js@1.9.14))(@tanstack/svelte-query@6.1.38(svelte@5.56.7))(@tanstack/vue-query@5.101.4(vue@3.5.40(typescript@6.0.3)))(react@19.2.8)(solid-js@1.9.14)(svelte@5.56.7)(vue@3.5.40(typescript@6.0.3)) + react: 19.2.8 + optionalDependencies: + react-dom: 19.2.8(react@19.2.8) + transitivePeerDependencies: + - '@tanstack/solid-query' + - '@tanstack/svelte-query' + - '@tanstack/vue-query' + - solid-js + - svelte + - vue + + '@lunora/runtime@1.0.0-alpha.35': + dependencies: + '@lunora/bindings': 1.0.0-alpha.10 + '@lunora/errors': 1.0.0-alpha.7 + + '@lunora/scheduler@1.0.0-alpha.11': + dependencies: + '@lunora/errors': 1.0.0-alpha.6 + cron-parser: 5.6.2 + + '@lunora/seed@1.0.0-alpha.29(@lunora/server@1.0.0-alpha.30(@cloudflare/workers-types@4.20260702.1))(@lunora/values@1.0.0-alpha.10)': + dependencies: + '@faker-js/faker': 10.5.0 + '@lunora/errors': 1.0.0-alpha.7 + '@lunora/server': 1.0.0-alpha.30(@cloudflare/workers-types@4.20260702.1) + '@lunora/values': 1.0.0-alpha.10 + + '@lunora/server@1.0.0-alpha.30(@cloudflare/workers-types@4.20260702.1)': + dependencies: + '@lunora/errors': 1.0.0-alpha.7 + '@lunora/scheduler': 1.0.0-alpha.11 + '@lunora/values': 1.0.0-alpha.10 + drizzle-orm: 0.45.2(@cloudflare/workers-types@4.20260702.1) + hono: 4.12.31 + transitivePeerDependencies: + - '@aws-sdk/client-rds-data' + - '@cloudflare/workers-types' + - '@electric-sql/pglite' + - '@libsql/client' + - '@libsql/client-wasm' + - '@neondatabase/serverless' + - '@op-engineering/op-sqlite' + - '@opentelemetry/api' + - '@planetscale/database' + - '@prisma/client' + - '@tidbcloud/serverless' + - '@types/better-sqlite3' + - '@types/pg' + - '@types/sql.js' + - '@upstash/redis' + - '@vercel/postgres' + - '@xata.io/client' + - better-sqlite3 + - bun-types + - expo-sqlite + - gel + - knex + - kysely + - mysql2 + - pg + - postgres + - prisma + - sql.js + - sqlite3 + + '@lunora/sql-store@1.0.0-alpha.38(@cloudflare/workers-types@4.20260702.1)': + dependencies: + '@lunora/do': 1.0.0-alpha.41(@cloudflare/workers-types@4.20260702.1) + '@lunora/errors': 1.0.0-alpha.7 + drizzle-orm: 0.45.2(@cloudflare/workers-types@4.20260702.1) + transitivePeerDependencies: + - '@aws-sdk/client-rds-data' + - '@cloudflare/workers-types' + - '@electric-sql/pglite' + - '@libsql/client' + - '@libsql/client-wasm' + - '@neondatabase/serverless' + - '@op-engineering/op-sqlite' + - '@opentelemetry/api' + - '@planetscale/database' + - '@prisma/client' + - '@tidbcloud/serverless' + - '@types/better-sqlite3' + - '@types/pg' + - '@types/sql.js' + - '@upstash/redis' + - '@vercel/postgres' + - '@xata.io/client' + - better-sqlite3 + - bun-types + - expo-sqlite + - gel + - knex + - kysely + - mysql2 + - pg + - postgres + - prisma + - sql.js + - sqlite3 + + '@lunora/studio@1.0.0-alpha.58(@cloudflare/workers-types@4.20260702.1)(@tanstack/solid-query@5.101.4(solid-js@1.9.14))(@tanstack/svelte-query@6.1.38(svelte@5.56.7))(@tanstack/vue-query@5.101.4(vue@3.5.40(typescript@6.0.3)))(@types/react-dom@19.2.3(@types/react@19.2.17))(@types/react@19.2.17)(immer@11.1.15)(react-dom@19.2.8(react@19.2.8))(react-is@18.3.1)(react@19.2.8)(redux@5.0.1)(solid-js@1.9.14)(svelte@5.56.7)(vue@3.5.40(typescript@6.0.3))': + dependencies: + '@base-ui/react': 1.6.0(@types/react@19.2.17)(react-dom@19.2.8(react@19.2.8))(react@19.2.8) + '@hugeicons/core-free-icons': 4.2.3 + '@hugeicons/react': 1.1.9(react@19.2.8) + '@lingui/core': 6.5.0 + '@lingui/message-utils': 6.5.0 + '@lunora/advisor': 1.0.0-alpha.33(@cloudflare/workers-types@4.20260702.1) + '@lunora/bindings': 1.0.0-alpha.10 + '@lunora/client': 1.0.0-alpha.27(@tanstack/react-query@5.101.4(react@19.2.8))(@tanstack/solid-query@5.101.4(solid-js@1.9.14))(@tanstack/svelte-query@6.1.38(svelte@5.56.7))(@tanstack/vue-query@5.101.4(vue@3.5.40(typescript@6.0.3)))(react@19.2.8)(solid-js@1.9.14)(svelte@5.56.7)(vue@3.5.40(typescript@6.0.3)) + '@lunora/errors': 1.0.0-alpha.7 + '@lunora/react': 1.0.0-alpha.31(@tanstack/react-query@5.101.4(react@19.2.8))(@tanstack/solid-query@5.101.4(solid-js@1.9.14))(@tanstack/svelte-query@6.1.38(svelte@5.56.7))(@tanstack/vue-query@5.101.4(vue@3.5.40(typescript@6.0.3)))(react-dom@19.2.8(react@19.2.8))(react@19.2.8)(solid-js@1.9.14)(svelte@5.56.7)(vue@3.5.40(typescript@6.0.3)) + '@tanstack/react-query': 5.101.4(react@19.2.8) + '@tanstack/react-router': 1.170.18(react-dom@19.2.8(react@19.2.8))(react@19.2.8) + '@tanstack/react-table': 8.21.3(react-dom@19.2.8(react@19.2.8))(react@19.2.8) + '@tanstack/react-virtual': 3.14.8(react-dom@19.2.8(react@19.2.8))(react@19.2.8) + '@xyflow/react': 12.11.2(@types/react-dom@19.2.3(@types/react@19.2.17))(@types/react@19.2.17)(immer@11.1.15)(react-dom@19.2.8(react@19.2.8))(react@19.2.8) + class-variance-authority: 0.7.1 + clsx: 2.1.1 + html-to-image: 1.11.13 + motion: 12.42.2(react-dom@19.2.8(react@19.2.8))(react@19.2.8) + react: 19.2.8 + react-dom: 19.2.8(react@19.2.8) + recharts: 3.10.0(@types/react@19.2.17)(react-dom@19.2.8(react@19.2.8))(react-is@18.3.1)(react@19.2.8)(redux@5.0.1) + tailwind-merge: 3.6.0 + transitivePeerDependencies: + - '@aws-sdk/client-rds-data' + - '@cloudflare/workers-types' + - '@date-fns/tz' + - '@electric-sql/pglite' + - '@emotion/is-prop-valid' + - '@libsql/client' + - '@libsql/client-wasm' + - '@neondatabase/serverless' + - '@op-engineering/op-sqlite' + - '@opentelemetry/api' + - '@planetscale/database' + - '@prisma/client' + - '@tanstack/solid-query' + - '@tanstack/svelte-query' + - '@tanstack/vue-query' + - '@tidbcloud/serverless' + - '@types/better-sqlite3' + - '@types/pg' + - '@types/react' + - '@types/react-dom' + - '@types/sql.js' + - '@upstash/redis' + - '@vercel/postgres' + - '@xata.io/client' + - babel-plugin-macros + - better-sqlite3 + - bun-types + - date-fns + - expo-sqlite + - gel + - immer + - knex + - kysely + - mysql2 + - pg + - postgres + - prisma + - react-is + - redux + - solid-js + - sql.js + - sqlite3 + - supports-color + - svelte + - vue + + '@lunora/values@1.0.0-alpha.10': + dependencies: + '@lunora/errors': 1.0.0-alpha.7 + + '@lunora/vite@1.0.0-alpha.78(@ai-sdk/provider@4.0.3)(@cloudflare/workers-types@4.20260702.1)(@lunora/server@1.0.0-alpha.30(@cloudflare/workers-types@4.20260702.1))(@lunora/studio@1.0.0-alpha.58(@cloudflare/workers-types@4.20260702.1)(@tanstack/solid-query@5.101.4(solid-js@1.9.14))(@tanstack/svelte-query@6.1.38(svelte@5.56.7))(@tanstack/vue-query@5.101.4(vue@3.5.40(typescript@6.0.3)))(@types/react-dom@19.2.3(@types/react@19.2.17))(@types/react@19.2.17)(immer@11.1.15)(react-dom@19.2.8(react@19.2.8))(react-is@18.3.1)(react@19.2.8)(redux@5.0.1)(solid-js@1.9.14)(svelte@5.56.7)(vue@3.5.40(typescript@6.0.3)))(@lunora/values@1.0.0-alpha.10)(@types/node@24.13.3)(ai@7.0.31(zod@4.4.3))(luxon@3.7.2)(react-dom@19.2.8(react@19.2.8))(react@19.2.8)(vite@8.1.5(@types/node@24.13.3)(esbuild@0.28.1)(jiti@2.7.0)(yaml@2.9.0))(wrangler@4.113.0(@cloudflare/workers-types@4.20260702.1))(zod@4.4.3)': + dependencies: + '@cloudflare/vite-plugin': 1.45.1(vite@8.1.5(@types/node@24.13.3)(esbuild@0.28.1)(jiti@2.7.0)(yaml@2.9.0))(wrangler@4.113.0(@cloudflare/workers-types@4.20260702.1)) + '@lunora/codegen': 1.0.0-alpha.52(@ai-sdk/provider@4.0.3)(@cloudflare/workers-types@4.20260702.1)(@types/node@24.13.3)(luxon@3.7.2)(react-dom@19.2.8(react@19.2.8))(react@19.2.8)(zod@4.4.3) + '@lunora/config': 1.0.0-alpha.78(@ai-sdk/provider@4.0.3)(@cloudflare/workers-types@4.20260702.1)(@lunora/server@1.0.0-alpha.30(@cloudflare/workers-types@4.20260702.1))(@lunora/studio@1.0.0-alpha.58(@cloudflare/workers-types@4.20260702.1)(@tanstack/solid-query@5.101.4(solid-js@1.9.14))(@tanstack/svelte-query@6.1.38(svelte@5.56.7))(@tanstack/vue-query@5.101.4(vue@3.5.40(typescript@6.0.3)))(@types/react-dom@19.2.3(@types/react@19.2.17))(@types/react@19.2.17)(immer@11.1.15)(react-dom@19.2.8(react@19.2.8))(react-is@18.3.1)(react@19.2.8)(redux@5.0.1)(solid-js@1.9.14)(svelte@5.56.7)(vue@3.5.40(typescript@6.0.3)))(@lunora/values@1.0.0-alpha.10)(@types/node@24.13.3)(luxon@3.7.2)(react-dom@19.2.8(react@19.2.8))(react@19.2.8)(zod@4.4.3) + '@lunora/errors': 1.0.0-alpha.7 + '@visulima/vite-overlay': 2.0.4(ai@7.0.31(zod@4.4.3))(vite@8.1.5(@types/node@24.13.3)(esbuild@0.28.1)(jiti@2.7.0)(yaml@2.9.0)) + jsonc-parser: 3.3.1 + ts-morph: 28.0.0 + vite: 8.1.5(@types/node@24.13.3)(esbuild@0.28.1)(jiti@2.7.0)(yaml@2.9.0) + optionalDependencies: + '@lunora/studio': 1.0.0-alpha.58(@cloudflare/workers-types@4.20260702.1)(@tanstack/solid-query@5.101.4(solid-js@1.9.14))(@tanstack/svelte-query@6.1.38(svelte@5.56.7))(@tanstack/vue-query@5.101.4(vue@3.5.40(typescript@6.0.3)))(@types/react-dom@19.2.3(@types/react@19.2.17))(@types/react@19.2.17)(immer@11.1.15)(react-dom@19.2.8(react@19.2.8))(react-is@18.3.1)(react@19.2.8)(redux@5.0.1)(solid-js@1.9.14)(svelte@5.56.7)(vue@3.5.40(typescript@6.0.3)) + transitivePeerDependencies: + - '@ai-sdk/anthropic' + - '@ai-sdk/google' + - '@ai-sdk/openai' + - '@ai-sdk/provider' + - '@aws-sdk/client-rds-data' + - '@cfworker/json-schema' + - '@cloudflare/workers-types' + - '@electric-sql/pglite' + - '@libsql/client' + - '@libsql/client-wasm' + - '@lunora/server' + - '@lunora/values' + - '@neondatabase/serverless' + - '@op-engineering/op-sqlite' + - '@opentelemetry/api' + - '@planetscale/database' + - '@prisma/client' + - '@tidbcloud/serverless' + - '@touch4it/ical-timezones' + - '@types/better-sqlite3' + - '@types/luxon' + - '@types/mocha' + - '@types/node' + - '@types/pg' + - '@types/sql.js' + - '@upstash/redis' + - '@vercel/postgres' + - '@vue-email/render' + - '@xata.io/client' + - ai + - asn1js + - better-sqlite3 + - bufferutil + - bun-types + - dayjs + - expo-sqlite + - fast-xml-parser + - gel + - handlebars + - jsx-email + - juice + - knex + - kysely + - liquidjs + - luxon + - mjml + - moment + - moment-timezone + - mysql2 + - nodemailer + - pg + - pkijs + - postgres + - prisma + - react + - react-dom + - rrule + - sql.js + - sqlite3 + - supports-color + - unstorage + - utf-8-validate + - wrangler + - zod + + '@lunora/workflow@1.0.0-alpha.12': + dependencies: + '@lunora/errors': 1.0.0-alpha.7 + '@lunora/values': 1.0.0-alpha.10 + + '@messageformat/date-skeleton@1.1.0': {} + + '@messageformat/parser@5.1.1': + dependencies: + moo: 0.5.3 + + '@modelcontextprotocol/sdk@1.29.0(zod@4.4.3)': + dependencies: + '@hono/node-server': 1.19.14(hono@4.12.31) + ajv: 8.20.0 + ajv-formats: 3.0.1(ajv@8.20.0) + content-type: 1.0.5 + cors: 2.8.6 + cross-spawn: 7.0.6 + eventsource: 3.0.7 + eventsource-parser: 3.1.0 + express: 5.2.1 + express-rate-limit: 8.6.0(express@5.2.1) + hono: 4.12.31 + jose: 6.2.4 + json-schema-typed: 8.0.2 + pkce-challenge: 5.0.1 + raw-body: 3.0.2 + zod: 4.4.3 + zod-to-json-schema: 3.25.2(zod@4.4.3) + transitivePeerDependencies: + - supports-color + + '@napi-rs/wasm-runtime@1.1.6(@emnapi/core@1.11.1)(@emnapi/runtime@1.11.1)': + dependencies: + '@emnapi/core': 1.11.1 + '@emnapi/runtime': 1.11.1 + '@tybys/wasm-util': 0.10.3 + optional: true + + '@openfeature/core@1.11.0': {} + + '@openfeature/server-sdk@1.22.0(@openfeature/core@1.11.0)': + dependencies: + '@openfeature/core': 1.11.0 + + '@oxc-project/types@0.139.0': {} + + '@oxlint/binding-android-arm-eabi@1.75.0': + optional: true + + '@oxlint/binding-android-arm64@1.75.0': + optional: true + + '@oxlint/binding-darwin-arm64@1.75.0': + optional: true + + '@oxlint/binding-darwin-x64@1.75.0': + optional: true + + '@oxlint/binding-freebsd-x64@1.75.0': + optional: true + + '@oxlint/binding-linux-arm-gnueabihf@1.75.0': + optional: true + + '@oxlint/binding-linux-arm-musleabihf@1.75.0': + optional: true + + '@oxlint/binding-linux-arm64-gnu@1.75.0': + optional: true + + '@oxlint/binding-linux-arm64-musl@1.75.0': + optional: true + + '@oxlint/binding-linux-ppc64-gnu@1.75.0': + optional: true + + '@oxlint/binding-linux-riscv64-gnu@1.75.0': + optional: true + + '@oxlint/binding-linux-riscv64-musl@1.75.0': + optional: true + + '@oxlint/binding-linux-s390x-gnu@1.75.0': + optional: true + + '@oxlint/binding-linux-x64-gnu@1.75.0': + optional: true + + '@oxlint/binding-linux-x64-musl@1.75.0': + optional: true + + '@oxlint/binding-openharmony-arm64@1.75.0': + optional: true + + '@oxlint/binding-win32-arm64-msvc@1.75.0': + optional: true + + '@oxlint/binding-win32-ia32-msvc@1.75.0': + optional: true + + '@oxlint/binding-win32-x64-msvc@1.75.0': + optional: true + + '@poppinss/colors@4.1.6': + dependencies: + kleur: 4.1.5 + + '@poppinss/dumper@0.6.5': + dependencies: + '@poppinss/colors': 4.1.6 + '@sindresorhus/is': 7.2.0 + supports-color: 10.2.2 + + '@poppinss/exception@1.2.3': {} + + '@protobufjs/aspromise@1.1.2': {} + + '@protobufjs/base64@1.1.2': {} + + '@protobufjs/codegen@2.0.5': {} + + '@protobufjs/eventemitter@1.1.1': {} + + '@protobufjs/fetch@1.1.1': + dependencies: + '@protobufjs/aspromise': 1.1.2 + + '@protobufjs/float@1.0.2': {} + + '@protobufjs/path@1.1.2': {} + + '@protobufjs/pool@1.1.0': {} + + '@protobufjs/utf8@1.1.2': {} + + '@react-email/render@2.1.0(react-dom@19.2.8(react@19.2.8))(react@19.2.8)': + dependencies: + entities: 4.5.0 + html-to-text: 9.0.5 + html5parser: 3.0.0 + prettier: 3.9.6 + react: 19.2.8 + react-dom: 19.2.8(react@19.2.8) + + '@reduxjs/toolkit@2.12.0(react-redux@9.3.0(@types/react@19.2.17)(react@19.2.8)(redux@5.0.1))(react@19.2.8)': + dependencies: + '@standard-schema/spec': 1.1.0 + '@standard-schema/utils': 0.3.0 + immer: 11.1.15 + redux: 5.0.1 + redux-thunk: 3.1.0(redux@5.0.1) + reselect: 5.2.0 + optionalDependencies: + react: 19.2.8 + react-redux: 9.3.0(@types/react@19.2.17)(react@19.2.8)(redux@5.0.1) + + '@rolldown/binding-android-arm64@1.1.5': + optional: true + + '@rolldown/binding-darwin-arm64@1.1.5': + optional: true + + '@rolldown/binding-darwin-x64@1.1.5': + optional: true + + '@rolldown/binding-freebsd-x64@1.1.5': + optional: true + + '@rolldown/binding-linux-arm-gnueabihf@1.1.5': + optional: true + + '@rolldown/binding-linux-arm64-gnu@1.1.5': + optional: true + + '@rolldown/binding-linux-arm64-musl@1.1.5': + optional: true + + '@rolldown/binding-linux-ppc64-gnu@1.1.5': + optional: true + + '@rolldown/binding-linux-s390x-gnu@1.1.5': + optional: true + + '@rolldown/binding-linux-x64-gnu@1.1.5': + optional: true + + '@rolldown/binding-linux-x64-musl@1.1.5': + optional: true + + '@rolldown/binding-openharmony-arm64@1.1.5': + optional: true + + '@rolldown/binding-wasm32-wasi@1.1.5': + dependencies: + '@emnapi/core': 1.11.1 + '@emnapi/runtime': 1.11.1 + '@napi-rs/wasm-runtime': 1.1.6(@emnapi/core@1.11.1)(@emnapi/runtime@1.11.1) + optional: true + + '@rolldown/binding-win32-arm64-msvc@1.1.5': + optional: true + + '@rolldown/binding-win32-x64-msvc@1.1.5': + optional: true + + '@rolldown/pluginutils@1.0.1': {} + + '@selderee/plugin-htmlparser2@0.11.0': + dependencies: + domhandler: 5.0.3 + selderee: 0.11.0 + + '@selderee/plugin-htmlparser2@0.12.0(selderee@0.12.0)': + dependencies: + domelementtype: 2.3.0 + domhandler: 5.0.3 + selderee: 0.12.0 + + '@shikijs/cli@4.3.0': + dependencies: + '@shikijs/vscode-textmate': 10.0.2 + ansis: 4.3.1 + cac: 7.0.0 + shiki: 4.3.0 + + '@shikijs/core@4.3.0': + dependencies: + '@shikijs/primitive': 4.3.0 + '@shikijs/types': 4.3.0 + '@shikijs/vscode-textmate': 10.0.2 + '@types/hast': 3.0.5 + hast-util-to-html: 9.0.5 + + '@shikijs/core@4.3.1': + dependencies: + '@shikijs/primitive': 4.3.1 + '@shikijs/types': 4.3.1 + '@shikijs/vscode-textmate': 10.0.2 + '@types/hast': 3.0.5 + hast-util-to-html: 9.0.5 + + '@shikijs/engine-javascript@4.3.0': + dependencies: + '@shikijs/types': 4.3.0 + '@shikijs/vscode-textmate': 10.0.2 + oniguruma-to-es: 4.3.6 + + '@shikijs/engine-javascript@4.3.1': + dependencies: + '@shikijs/types': 4.3.1 + '@shikijs/vscode-textmate': 10.0.2 + oniguruma-to-es: 4.3.6 + + '@shikijs/engine-oniguruma@4.3.0': + dependencies: + '@shikijs/types': 4.3.0 + '@shikijs/vscode-textmate': 10.0.2 + + '@shikijs/engine-oniguruma@4.3.1': + dependencies: + '@shikijs/types': 4.3.1 + '@shikijs/vscode-textmate': 10.0.2 + + '@shikijs/langs@4.3.0': + dependencies: + '@shikijs/types': 4.3.0 + + '@shikijs/langs@4.3.1': + dependencies: + '@shikijs/types': 4.3.1 + + '@shikijs/primitive@4.3.0': + dependencies: + '@shikijs/types': 4.3.0 + '@shikijs/vscode-textmate': 10.0.2 + '@types/hast': 3.0.5 + + '@shikijs/primitive@4.3.1': + dependencies: + '@shikijs/types': 4.3.1 + '@shikijs/vscode-textmate': 10.0.2 + '@types/hast': 3.0.5 + + '@shikijs/themes@4.3.0': + dependencies: + '@shikijs/types': 4.3.0 + + '@shikijs/themes@4.3.1': + dependencies: + '@shikijs/types': 4.3.1 + + '@shikijs/types@4.3.0': + dependencies: + '@shikijs/vscode-textmate': 10.0.2 + '@types/hast': 3.0.5 + + '@shikijs/types@4.3.1': + dependencies: + '@shikijs/vscode-textmate': 10.0.2 + '@types/hast': 3.0.5 + + '@shikijs/vscode-textmate@10.0.2': {} + + '@sinclair/typebox@0.27.12': {} + + '@sindresorhus/is@7.2.0': {} + + '@speed-highlight/core@1.2.17': {} + + '@standard-schema/spec@1.1.0': {} + + '@standard-schema/utils@0.3.0': {} + + '@sveltejs/acorn-typescript@1.0.11(acorn@8.17.0)': + dependencies: + acorn: 8.17.0 + + '@tanstack/db-ivm@0.1.18(typescript@6.0.3)': + dependencies: + fractional-indexing: 3.4.0 + sorted-btree: 1.8.1 + typescript: 6.0.3 + + '@tanstack/db@0.6.16(typescript@6.0.3)': + dependencies: + '@standard-schema/spec': 1.1.0 + '@tanstack/db-ivm': 0.1.18(typescript@6.0.3) + '@tanstack/pacer-lite': 0.2.2 + typescript: 6.0.3 + + '@tanstack/history@1.162.0': {} + + '@tanstack/match-sorter-utils@8.19.4': + dependencies: + remove-accents: 0.5.0 + + '@tanstack/offline-transactions@1.0.41(typescript@6.0.3)': + dependencies: + '@tanstack/db': 0.6.16(typescript@6.0.3) + transitivePeerDependencies: + - typescript + + '@tanstack/pacer-lite@0.2.2': {} + + '@tanstack/query-core@5.101.4': {} + + '@tanstack/react-query@5.101.4(react@19.2.8)': + dependencies: + '@tanstack/query-core': 5.101.4 + react: 19.2.8 + + '@tanstack/react-router@1.170.18(react-dom@19.2.8(react@19.2.8))(react@19.2.8)': + dependencies: + '@tanstack/history': 1.162.0 + '@tanstack/react-store': 0.9.3(react-dom@19.2.8(react@19.2.8))(react@19.2.8) + '@tanstack/router-core': 1.171.15 + isbot: 5.2.1 + react: 19.2.8 + react-dom: 19.2.8(react@19.2.8) + + '@tanstack/react-store@0.9.3(react-dom@19.2.8(react@19.2.8))(react@19.2.8)': + dependencies: + '@tanstack/store': 0.9.3 + react: 19.2.8 + react-dom: 19.2.8(react@19.2.8) + use-sync-external-store: 1.6.0(react@19.2.8) + + '@tanstack/react-table@8.21.3(react-dom@19.2.8(react@19.2.8))(react@19.2.8)': + dependencies: + '@tanstack/table-core': 8.21.3 + react: 19.2.8 + react-dom: 19.2.8(react@19.2.8) + + '@tanstack/react-virtual@3.14.8(react-dom@19.2.8(react@19.2.8))(react@19.2.8)': + dependencies: + '@tanstack/virtual-core': 3.17.6 + react: 19.2.8 + react-dom: 19.2.8(react@19.2.8) + + '@tanstack/router-core@1.171.15': + dependencies: + '@tanstack/history': 1.162.0 + cookie-es: 3.1.1 + seroval: 1.5.6 + seroval-plugins: 1.5.6(seroval@1.5.6) + + '@tanstack/solid-query@5.101.4(solid-js@1.9.14)': + dependencies: + '@tanstack/query-core': 5.101.4 + solid-js: 1.9.14 + + '@tanstack/store@0.9.3': {} + + '@tanstack/svelte-query@6.1.38(svelte@5.56.7)': + dependencies: + '@tanstack/query-core': 5.101.4 + svelte: 5.56.7 + + '@tanstack/table-core@8.21.3': {} + + '@tanstack/virtual-core@3.17.6': {} + + '@tanstack/vue-query@5.101.4(vue@3.5.40(typescript@6.0.3))': + dependencies: + '@tanstack/match-sorter-utils': 8.19.4 + '@tanstack/query-core': 5.101.4 + '@vue/devtools-api': 6.6.4 + vue: 3.5.40(typescript@6.0.3) + vue-demi: 0.14.10(vue@3.5.40(typescript@6.0.3)) + + '@ts-morph/common@0.29.0': + dependencies: + minimatch: 10.2.5 + path-browserify: 1.0.1 + tinyglobby: 0.2.17 + + '@tybys/wasm-util@0.10.3': + dependencies: + tslib: 2.8.1 + optional: true + + '@types/d3-array@3.2.2': {} + + '@types/d3-color@3.1.3': {} + + '@types/d3-drag@3.0.7': + dependencies: + '@types/d3-selection': 3.0.11 + + '@types/d3-ease@3.0.2': {} + + '@types/d3-interpolate@3.0.4': + dependencies: + '@types/d3-color': 3.1.3 + + '@types/d3-path@3.1.1': {} + + '@types/d3-scale@4.0.9': + dependencies: + '@types/d3-time': 3.0.4 + + '@types/d3-selection@3.0.11': {} + + '@types/d3-shape@3.1.8': + dependencies: + '@types/d3-path': 3.1.1 + + '@types/d3-time@3.0.4': {} + + '@types/d3-timer@3.0.2': {} + + '@types/d3-transition@3.0.9': + dependencies: + '@types/d3-selection': 3.0.11 + + '@types/d3-zoom@3.0.8': + dependencies: + '@types/d3-interpolate': 3.0.4 + '@types/d3-selection': 3.0.11 + + '@types/estree@1.0.9': {} + + '@types/hast@3.0.5': + dependencies: + '@types/unist': 3.0.3 + + '@types/istanbul-lib-coverage@2.0.6': {} + + '@types/istanbul-lib-report@3.0.3': + dependencies: + '@types/istanbul-lib-coverage': 2.0.6 + + '@types/istanbul-reports@3.0.4': + dependencies: + '@types/istanbul-lib-report': 3.0.3 + + '@types/mdast@4.0.4': + dependencies: + '@types/unist': 3.0.3 + + '@types/node@24.13.3': + dependencies: + undici-types: 7.18.2 + + '@types/react-dom@19.2.3(@types/react@19.2.17)': + dependencies: + '@types/react': 19.2.17 + + '@types/react@19.2.17': + dependencies: + csstype: 3.2.3 + + '@types/trusted-types@2.0.7': {} + + '@types/unist@3.0.3': {} + + '@types/use-sync-external-store@0.0.6': {} + + '@types/yargs-parser@21.0.3': {} + + '@types/yargs@17.0.35': + dependencies: + '@types/yargs-parser': 21.0.3 + + '@ungap/structured-clone@1.3.3': {} + + '@vercel/oidc@3.2.0': {} + + '@visulima/ansi@4.0.0': {} + + '@visulima/cerebro@3.0.0(@bomb.sh/tab@0.0.19)(@visulima/pail@4.0.0(@visulima/redact@3.0.0)(express@5.2.1)(hono@4.12.31))': + dependencies: + '@visulima/colorize': 2.0.0 + '@visulima/tabular': 4.0.0 + fastest-levenshtein: 1.0.16 + optionalDependencies: + '@bomb.sh/tab': 0.0.19 + '@visulima/pail': 4.0.0(@visulima/redact@3.0.0)(express@5.2.1)(hono@4.12.31) + + '@visulima/colorize@2.0.0': + dependencies: + '@visulima/is-ansi-color-supported': 3.0.0 + + '@visulima/email@2.1.1(@react-email/render@2.1.0(react-dom@19.2.8(react@19.2.8))(react@19.2.8))(@types/node@24.13.3)(luxon@3.7.2)': + dependencies: + html-to-text: 10.0.0 + ical-generator: 11.0.0(@types/node@24.13.3)(luxon@3.7.2) + lru-cache: 11.5.1 + mime: 4.1.0 + optionalDependencies: + '@react-email/render': 2.1.0(react-dom@19.2.8(react@19.2.8))(react@19.2.8) + transitivePeerDependencies: + - '@touch4it/ical-timezones' + - '@types/luxon' + - '@types/mocha' + - '@types/node' + - dayjs + - luxon + - moment + - moment-timezone + - rrule + + '@visulima/error@6.0.0(ai@7.0.31(zod@4.4.3))': + optionalDependencies: + ai: 7.0.31(zod@4.4.3) + + '@visulima/find-ai-runner@1.0.0': {} + + '@visulima/fs@5.0.4(json5@2.2.3)(jsonc-parser@3.3.1)(yaml@2.9.0)': + dependencies: + '@visulima/path': 3.0.0 + optionalDependencies: + json5: 2.2.3 + jsonc-parser: 3.3.1 + yaml: 2.9.0 + + '@visulima/interactive-manager@1.0.0': {} + + '@visulima/is-ansi-color-supported@3.0.0': {} + + '@visulima/package@5.0.4(jsonc-parser@3.3.1)': + dependencies: + '@antfu/install-pkg': 1.1.0 + '@visulima/fs': 5.0.4(json5@2.2.3)(jsonc-parser@3.3.1)(yaml@2.9.0) + '@visulima/path': 3.0.0 + json5: 2.2.3 + normalize-package-data: 9.0.0 + yaml: 2.9.0 + transitivePeerDependencies: + - ini + - jsonc-parser + - smol-toml + + '@visulima/pail@4.0.0(@visulima/redact@3.0.0)(express@5.2.1)(hono@4.12.31)': + dependencies: + '@visulima/colorize': 2.0.0 + '@visulima/interactive-manager': 1.0.0 + optionalDependencies: + '@visulima/redact': 3.0.0 + express: 5.2.1 + hono: 4.12.31 + + '@visulima/path@3.0.0': {} + + '@visulima/redact@3.0.0': + dependencies: + compromise: 14.16.0 + + '@visulima/spinner@1.0.0': + dependencies: + '@visulima/interactive-manager': 1.0.0 + + '@visulima/storage-client@1.0.0(@tanstack/react-query@5.101.4(react@19.2.8))(@tanstack/solid-query@5.101.4(solid-js@1.9.14))(@tanstack/svelte-query@6.1.38(svelte@5.56.7))(@tanstack/vue-query@5.101.4(vue@3.5.40(typescript@6.0.3)))(react@19.2.8)(solid-js@1.9.14)(svelte@5.56.7)(vue@3.5.40(typescript@6.0.3))': + dependencies: + '@tanstack/react-query': 5.101.4(react@19.2.8) + '@tanstack/solid-query': 5.101.4(solid-js@1.9.14) + '@tanstack/svelte-query': 6.1.38(svelte@5.56.7) + '@tanstack/vue-query': 5.101.4(vue@3.5.40(typescript@6.0.3)) + react: 19.2.8 + solid-js: 1.9.14 + svelte: 5.56.7 + vue: 3.5.40(typescript@6.0.3) + + '@visulima/string@3.0.0': {} + + '@visulima/tabular@4.0.0': {} + + '@visulima/tui-binding-darwin-arm64@1.0.4': + optional: true + + '@visulima/tui-binding-darwin-x64@1.0.4': + optional: true + + '@visulima/tui-binding-linux-arm64-gnu@1.0.4': + optional: true + + '@visulima/tui-binding-linux-arm64-musl@1.0.4': + optional: true + + '@visulima/tui-binding-linux-x64-gnu@1.0.4': + optional: true + + '@visulima/tui-binding-linux-x64-musl@1.0.4': + optional: true + + '@visulima/tui-binding-win32-arm64-msvc@1.0.4': + optional: true + + '@visulima/tui-binding-win32-x64-msvc@1.0.4': + optional: true + + '@visulima/tui@1.0.4(@shikijs/langs@4.3.1)(@shikijs/themes@4.3.1)(@visulima/tabular@4.0.0)(ai@7.0.31(zod@4.4.3))(cfonts@3.3.1)(react-reconciler@0.33.0(react@19.2.8))(react@19.2.8)(shiki@4.3.1)(ws@8.21.0)': + dependencies: + '@visulima/ansi': 4.0.0 + '@visulima/colorize': 2.0.0 + '@visulima/error': 6.0.0(ai@7.0.31(zod@4.4.3)) + '@visulima/spinner': 1.0.0 + '@visulima/string': 3.0.0 + cli-boxes: 4.0.1 + code-excerpt: 4.0.0 + is-in-ci: 2.0.0 + patch-console: 2.0.0 + react: 19.2.8 + react-reconciler: 0.33.0(react@19.2.8) + scheduler: 0.27.0 + signal-exit: 4.1.0 + terminal-size: 4.0.1 + tseep: 1.3.1 + yoga-layout: 3.2.1 + optionalDependencies: + '@shikijs/langs': 4.3.1 + '@shikijs/themes': 4.3.1 + '@visulima/tabular': 4.0.0 + '@visulima/tui-binding-darwin-arm64': 1.0.4 + '@visulima/tui-binding-darwin-x64': 1.0.4 + '@visulima/tui-binding-linux-arm64-gnu': 1.0.4 + '@visulima/tui-binding-linux-arm64-musl': 1.0.4 + '@visulima/tui-binding-linux-x64-gnu': 1.0.4 + '@visulima/tui-binding-linux-x64-musl': 1.0.4 + '@visulima/tui-binding-win32-arm64-msvc': 1.0.4 + '@visulima/tui-binding-win32-x64-msvc': 1.0.4 + cfonts: 3.3.1 + shiki: 4.3.1 + ws: 8.21.0 + transitivePeerDependencies: + - ai + + '@visulima/vite-overlay@2.0.4(ai@7.0.31(zod@4.4.3))(vite@8.1.5(@types/node@24.13.3)(esbuild@0.28.1)(jiti@2.7.0)(yaml@2.9.0))': + dependencies: + '@shikijs/cli': 4.3.0 + '@shikijs/langs': 4.3.1 + '@visulima/error': 6.0.0(ai@7.0.31(zod@4.4.3)) + fastest-levenshtein: 1.0.16 + shiki: 4.3.1 + vite: 8.1.5(@types/node@24.13.3)(esbuild@0.28.1)(jiti@2.7.0)(yaml@2.9.0) + transitivePeerDependencies: + - ai + + '@vitejs/plugin-react@6.0.4(vite@8.1.5(@types/node@24.13.3)(esbuild@0.28.1)(jiti@2.7.0)(yaml@2.9.0))': + dependencies: + '@rolldown/pluginutils': 1.0.1 + vite: 8.1.5(@types/node@24.13.3)(esbuild@0.28.1)(jiti@2.7.0)(yaml@2.9.0) + + '@vue/compiler-core@3.5.40': + dependencies: + '@babel/parser': 7.29.7 + '@vue/shared': 3.5.40 + entities: 7.0.1 + estree-walker: 2.0.2 + source-map-js: 1.2.1 + + '@vue/compiler-dom@3.5.40': + dependencies: + '@vue/compiler-core': 3.5.40 + '@vue/shared': 3.5.40 + + '@vue/compiler-sfc@3.5.40': + dependencies: + '@babel/parser': 7.29.7 + '@vue/compiler-core': 3.5.40 + '@vue/compiler-dom': 3.5.40 + '@vue/compiler-ssr': 3.5.40 + '@vue/shared': 3.5.40 + estree-walker: 2.0.2 + magic-string: 0.30.21 + postcss: 8.5.22 + source-map-js: 1.2.1 + + '@vue/compiler-ssr@3.5.40': + dependencies: + '@vue/compiler-dom': 3.5.40 + '@vue/shared': 3.5.40 + + '@vue/devtools-api@6.6.4': {} + + '@vue/reactivity@3.5.40': + dependencies: + '@vue/shared': 3.5.40 + + '@vue/runtime-core@3.5.40': + dependencies: + '@vue/reactivity': 3.5.40 + '@vue/shared': 3.5.40 + + '@vue/runtime-dom@3.5.40': + dependencies: + '@vue/reactivity': 3.5.40 + '@vue/runtime-core': 3.5.40 + '@vue/shared': 3.5.40 + csstype: 3.2.3 + + '@vue/server-renderer@3.5.40': + dependencies: + '@vue/compiler-ssr': 3.5.40 + '@vue/runtime-dom': 3.5.40 + '@vue/shared': 3.5.40 + + '@vue/shared@3.5.40': {} + + '@workflow/serde@4.1.0': {} + + '@xyflow/react@12.11.2(@types/react-dom@19.2.3(@types/react@19.2.17))(@types/react@19.2.17)(immer@11.1.15)(react-dom@19.2.8(react@19.2.8))(react@19.2.8)': + dependencies: + '@xyflow/system': 0.0.79 + classcat: 5.0.5 + react: 19.2.8 + react-dom: 19.2.8(react@19.2.8) + zustand: 4.5.7(@types/react@19.2.17)(immer@11.1.15)(react@19.2.8) + optionalDependencies: + '@types/react': 19.2.17 + '@types/react-dom': 19.2.3(@types/react@19.2.17) + transitivePeerDependencies: + - immer + + '@xyflow/system@0.0.79': + dependencies: + '@types/d3-drag': 3.0.7 + '@types/d3-interpolate': 3.0.4 + '@types/d3-selection': 3.0.11 + '@types/d3-transition': 3.0.9 + '@types/d3-zoom': 3.0.8 + d3-drag: 3.0.0 + d3-interpolate: 3.0.1 + d3-selection: 3.0.0 + d3-zoom: 3.0.0 + + accepts@2.0.0: + dependencies: + mime-types: 3.0.2 + negotiator: 1.0.0 + + acorn@8.17.0: {} + + ai@7.0.31(zod@4.4.3): + dependencies: + '@ai-sdk/gateway': 4.0.23(zod@4.4.3) + '@ai-sdk/provider': 4.0.3 + '@ai-sdk/provider-utils': 5.0.11(zod@4.4.3) + zod: 4.4.3 + + ajv-formats@3.0.1(ajv@8.20.0): + optionalDependencies: + ajv: 8.20.0 + + ajv@8.20.0: + dependencies: + fast-deep-equal: 3.1.3 + fast-uri: 3.1.4 + json-schema-traverse: 1.0.0 + require-from-string: 2.0.2 + + ansi-regex@5.0.1: {} + + ansi-styles@4.3.0: + dependencies: + color-convert: 2.0.1 + + ansi-styles@5.2.0: {} + + ansis@4.3.1: {} + + aria-query@5.3.1: {} + + asn1@0.2.6: + dependencies: + safer-buffer: 2.1.2 + + axobject-query@4.1.0: {} + + balanced-match@4.0.4: {} + + base64-js@1.5.1: {} + + baseline-browser-mapping@2.11.1: {} + + bcrypt-pbkdf@1.0.2: + dependencies: + tweetnacl: 0.14.5 + + bl@4.1.0: + dependencies: + buffer: 5.7.1 + inherits: 2.0.4 + readable-stream: 3.6.2 + + blake3-wasm@2.1.5: {} + + body-parser@2.3.0: + dependencies: + bytes: 3.1.2 + content-type: 2.0.0 + debug: 4.4.3 + http-errors: 2.0.1 + iconv-lite: 0.7.3 + on-finished: 2.4.1 + qs: 6.15.3 + raw-body: 3.0.2 + type-is: 2.1.0 + transitivePeerDependencies: + - supports-color + + brace-expansion@5.0.7: + dependencies: + balanced-match: 4.0.4 + + browserslist@4.28.7: + dependencies: + baseline-browser-mapping: 2.11.1 + caniuse-lite: 1.0.30001806 + electron-to-chromium: 1.5.395 + node-releases: 2.0.51 + update-browserslist-db: 1.2.3(browserslist@4.28.7) + + buffer@5.7.1: + dependencies: + base64-js: 1.5.1 + ieee754: 1.2.1 + + buildcheck@0.0.7: + optional: true + + bytes@3.1.2: {} + + cac@7.0.0: {} + + 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 + + camelcase@6.3.0: {} + + caniuse-lite@1.0.30001806: {} + + ccount@2.0.1: {} + + cfonts@3.3.1: + dependencies: + supports-color: 8.1.1 + window-size: 1.1.1 + + chalk@4.1.2: + dependencies: + ansi-styles: 4.3.0 + supports-color: 7.2.0 + + character-entities-html4@2.1.0: {} + + character-entities-legacy@3.0.0: {} + + chownr@1.1.4: {} + + class-variance-authority@0.7.1: + dependencies: + clsx: 2.1.1 + + classcat@5.0.5: {} + + cli-boxes@4.0.1: {} + + cliui@8.0.1: + dependencies: + string-width: 4.2.3 + strip-ansi: 6.0.1 + wrap-ansi: 7.0.0 + + clsx@2.1.1: {} + + code-block-writer@13.0.3: {} + + code-excerpt@4.0.0: + dependencies: + convert-to-spaces: 2.0.1 + + color-convert@2.0.1: + dependencies: + color-name: 1.1.4 + + color-name@1.1.4: {} + + comma-separated-tokens@2.0.3: {} + + compromise@14.16.0: + dependencies: + efrt: 2.7.0 + grad-school: 0.0.5 + suffix-thumb: 5.0.2 + + content-disposition@1.1.0: {} + + content-type@1.0.5: {} + + content-type@2.0.0: {} + + convert-source-map@2.0.0: {} + + convert-to-spaces@2.0.1: {} + + cookie-es@3.1.1: {} + + 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 + + cpu-features@0.0.10: + dependencies: + buildcheck: 0.0.7 + nan: 2.28.0 + optional: true + + cron-parser@5.6.2: + dependencies: + luxon: 3.7.2 + + cross-spawn@7.0.6: + dependencies: + path-key: 3.1.1 + shebang-command: 2.0.0 + which: 2.0.2 + + csstype@3.2.3: {} + + d3-array@3.2.4: + dependencies: + internmap: 2.0.3 + + d3-color@3.1.0: {} + + d3-dispatch@3.0.1: {} + + d3-drag@3.0.0: + dependencies: + d3-dispatch: 3.0.1 + d3-selection: 3.0.0 + + d3-ease@3.0.1: {} + + d3-format@3.1.2: {} + + d3-interpolate@3.0.1: + dependencies: + d3-color: 3.1.0 + + d3-path@3.1.0: {} + + d3-scale@4.0.2: + dependencies: + d3-array: 3.2.4 + d3-format: 3.1.2 + d3-interpolate: 3.0.1 + d3-time: 3.1.0 + d3-time-format: 4.1.0 + + d3-selection@3.0.0: {} + + d3-shape@3.2.0: + dependencies: + d3-path: 3.1.0 + + d3-time-format@4.1.0: + dependencies: + d3-time: 3.1.0 + + d3-time@3.1.0: + dependencies: + d3-array: 3.2.4 + + d3-timer@3.0.1: {} + + d3-transition@3.0.1(d3-selection@3.0.0): + dependencies: + d3-color: 3.1.0 + d3-dispatch: 3.0.1 + d3-ease: 3.0.1 + d3-interpolate: 3.0.1 + d3-selection: 3.0.0 + d3-timer: 3.0.1 + + d3-zoom@3.0.0: + dependencies: + d3-dispatch: 3.0.1 + d3-drag: 3.0.0 + d3-interpolate: 3.0.1 + d3-selection: 3.0.0 + d3-transition: 3.0.1(d3-selection@3.0.0) + + debug@4.4.3: + dependencies: + ms: 2.1.3 + + decimal.js-light@2.5.1: {} + + deepmerge-ts@7.1.5: {} + + deepmerge@4.3.1: {} + + define-property@1.0.0: + dependencies: + is-descriptor: 1.0.4 + + depd@2.0.0: {} + + dequal@2.0.3: {} + + detect-libc@2.1.2: {} + + devalue@5.8.2: {} + + devlop@1.1.0: + dependencies: + dequal: 2.0.3 + + docker-modem@5.0.7: + dependencies: + debug: 4.4.3 + readable-stream: 3.6.2 + split-ca: 1.0.1 + ssh2: 1.17.0 + transitivePeerDependencies: + - supports-color + + dockerode@5.0.1: + dependencies: + '@balena/dockerignore': 1.0.2 + '@grpc/grpc-js': 1.14.4 + '@grpc/proto-loader': 0.7.15 + docker-modem: 5.0.7 + protobufjs: 7.6.5 + tar-fs: 2.1.5 + transitivePeerDependencies: + - supports-color + + dom-serializer@2.0.0: + dependencies: + domelementtype: 2.3.0 + domhandler: 5.0.3 + entities: 4.5.0 + + domelementtype@2.3.0: {} + + domhandler@5.0.3: + dependencies: + domelementtype: 2.3.0 + + domutils@3.2.2: + dependencies: + dom-serializer: 2.0.0 + domelementtype: 2.3.0 + domhandler: 5.0.3 + + drizzle-orm@0.45.2(@cloudflare/workers-types@4.20260702.1): + optionalDependencies: + '@cloudflare/workers-types': 4.20260702.1 + + 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: {} + + efrt@2.7.0: {} + + electron-to-chromium@1.5.395: {} + + emoji-regex@8.0.0: {} + + encodeurl@2.0.0: {} + + end-of-stream@1.4.5: + dependencies: + once: 1.4.0 + + entities@4.5.0: {} + + entities@7.0.1: {} + + error-stack-parser-es@1.0.5: {} + + es-define-property@1.0.1: {} + + es-errors@1.3.0: {} + + es-module-lexer@2.3.1: {} + + es-object-atoms@1.1.2: + dependencies: + es-errors: 1.3.0 + + es-toolkit@1.49.0: {} + + esbuild@0.28.1: + optionalDependencies: + '@esbuild/aix-ppc64': 0.28.1 + '@esbuild/android-arm': 0.28.1 + '@esbuild/android-arm64': 0.28.1 + '@esbuild/android-x64': 0.28.1 + '@esbuild/darwin-arm64': 0.28.1 + '@esbuild/darwin-x64': 0.28.1 + '@esbuild/freebsd-arm64': 0.28.1 + '@esbuild/freebsd-x64': 0.28.1 + '@esbuild/linux-arm': 0.28.1 + '@esbuild/linux-arm64': 0.28.1 + '@esbuild/linux-ia32': 0.28.1 + '@esbuild/linux-loong64': 0.28.1 + '@esbuild/linux-mips64el': 0.28.1 + '@esbuild/linux-ppc64': 0.28.1 + '@esbuild/linux-riscv64': 0.28.1 + '@esbuild/linux-s390x': 0.28.1 + '@esbuild/linux-x64': 0.28.1 + '@esbuild/netbsd-arm64': 0.28.1 + '@esbuild/netbsd-x64': 0.28.1 + '@esbuild/openbsd-arm64': 0.28.1 + '@esbuild/openbsd-x64': 0.28.1 + '@esbuild/openharmony-arm64': 0.28.1 + '@esbuild/sunos-x64': 0.28.1 + '@esbuild/win32-arm64': 0.28.1 + '@esbuild/win32-ia32': 0.28.1 + '@esbuild/win32-x64': 0.28.1 + + escalade@3.2.0: {} + + escape-html@1.0.3: {} + + esm-env@1.2.2: {} + + esrap@2.3.0: + dependencies: + '@jridgewell/sourcemap-codec': 1.5.5 + + estree-walker@2.0.2: {} + + etag@1.8.1: {} + + eventemitter3@5.0.4: {} + + eventsource-parser@3.1.0: {} + + eventsource@3.0.7: + dependencies: + eventsource-parser: 3.1.0 + + express-rate-limit@8.6.0(express@5.2.1): + dependencies: + debug: 4.4.3 + express: 5.2.1 + ip-address: 10.2.0 + transitivePeerDependencies: + - supports-color + + express@5.2.1: + dependencies: + accepts: 2.0.0 + body-parser: 2.3.0 + content-disposition: 1.1.0 + content-type: 1.0.5 + cookie: 0.7.2 + cookie-signature: 1.2.2 + debug: 4.4.3 + depd: 2.0.0 + encodeurl: 2.0.0 + 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.1 + once: 1.4.0 + parseurl: 1.3.3 + proxy-addr: 2.0.7 + qs: 6.15.3 + range-parser: 1.3.0 + 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 + + fast-deep-equal@3.1.3: {} + + fast-uri@3.1.4: {} + + fastest-levenshtein@1.0.16: {} + + fdir@6.5.0(picomatch@4.0.5): + optionalDependencies: + picomatch: 4.0.5 + + finalhandler@2.1.1: + dependencies: + debug: 4.4.3 + encodeurl: 2.0.0 + escape-html: 1.0.3 + on-finished: 2.4.1 + parseurl: 1.3.3 + statuses: 2.0.2 + transitivePeerDependencies: + - supports-color + + forwarded@0.2.0: {} + + fractional-indexing@3.4.0: {} + + framer-motion@12.42.2(react-dom@19.2.8(react@19.2.8))(react@19.2.8): + dependencies: + motion-dom: 12.42.2 + motion-utils: 12.39.0 + tslib: 2.8.1 + optionalDependencies: + react: 19.2.8 + react-dom: 19.2.8(react@19.2.8) + + fresh@2.0.0: {} + + fs-constants@1.0.0: {} + + fsevents@2.3.3: + optional: true + + function-bind@1.1.2: {} + + gensync@1.0.0-beta.2: {} + + get-caller-file@2.0.5: {} + + 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-proto@1.0.1: + dependencies: + dunder-proto: 1.0.1 + es-object-atoms: 1.1.2 + + giget@3.3.0: {} + + gopd@1.2.0: {} + + grad-school@0.0.5: {} + + has-flag@4.0.0: {} + + has-symbols@1.1.0: {} + + hasown@2.0.4: + dependencies: + function-bind: 1.1.2 + + hast-util-to-html@9.0.5: + dependencies: + '@types/hast': 3.0.5 + '@types/unist': 3.0.3 + ccount: 2.0.1 + comma-separated-tokens: 2.0.3 + hast-util-whitespace: 3.0.0 + html-void-elements: 3.0.0 + mdast-util-to-hast: 13.2.1 + property-information: 7.2.0 + space-separated-tokens: 2.0.2 + stringify-entities: 4.0.4 + zwitch: 2.0.4 + + hast-util-whitespace@3.0.0: + dependencies: + '@types/hast': 3.0.5 + + hono@4.12.31: {} + + hosted-git-info@10.1.1: + dependencies: + lru-cache: 11.5.2 + + html-to-image@1.11.13: {} + + html-to-text@10.0.0: + dependencies: + '@selderee/plugin-htmlparser2': 0.12.0(selderee@0.12.0) + deepmerge-ts: 7.1.5 + dom-serializer: 2.0.0 + htmlparser2: 10.1.0 + selderee: 0.12.0 + + html-to-text@9.0.5: + dependencies: + '@selderee/plugin-htmlparser2': 0.11.0 + deepmerge: 4.3.1 + dom-serializer: 2.0.0 + htmlparser2: 8.0.2 + selderee: 0.11.0 + + html-void-elements@3.0.0: {} + + html5parser@3.0.0: {} + + htmlparser2@10.1.0: + dependencies: + domelementtype: 2.3.0 + domhandler: 5.0.3 + domutils: 3.2.2 + entities: 7.0.1 + + htmlparser2@8.0.2: + dependencies: + domelementtype: 2.3.0 + domhandler: 5.0.3 + domutils: 3.2.2 + entities: 4.5.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 + + ical-generator@11.0.0(@types/node@24.13.3)(luxon@3.7.2): + optionalDependencies: + '@types/node': 24.13.3 + luxon: 3.7.2 + + iconv-lite@0.7.3: + dependencies: + safer-buffer: 2.1.2 + + ieee754@1.2.1: {} + + immer@11.1.15: {} + + inherits@2.0.4: {} + + internmap@2.0.3: {} + + ip-address@10.2.0: {} + + ipaddr.js@1.9.1: {} + + is-accessor-descriptor@1.0.2: + dependencies: + hasown: 2.0.4 + + is-buffer@1.1.6: {} + + is-data-descriptor@1.0.1: + dependencies: + hasown: 2.0.4 + + is-descriptor@1.0.4: + dependencies: + is-accessor-descriptor: 1.0.2 + is-data-descriptor: 1.0.1 + + is-fullwidth-code-point@3.0.0: {} + + is-in-ci@2.0.0: {} + + is-number@3.0.0: + dependencies: + kind-of: 3.2.2 + + is-promise@4.0.0: {} + + is-reference@3.0.3: + dependencies: + '@types/estree': 1.0.9 + + isbot@5.2.1: {} + + isexe@2.0.0: {} + + jest-get-type@29.6.3: {} + + jest-validate@29.7.0: + dependencies: + '@jest/types': 29.6.3 + camelcase: 6.3.0 + chalk: 4.1.2 + jest-get-type: 29.6.3 + leven: 3.1.0 + pretty-format: 29.7.0 + + jiti@2.7.0: {} + + jose@6.2.4: {} + + js-sha256@0.10.1: {} + + js-tokens@4.0.0: {} + + jsesc@3.1.0: {} + + json-schema-traverse@1.0.0: {} + + json-schema-typed@8.0.2: {} + + json-schema@0.4.0: {} + + json5@2.2.3: {} + + jsonc-parser@3.3.1: {} + + kind-of@3.2.2: + dependencies: + is-buffer: 1.1.6 + + kleur@4.1.5: {} + + leac@0.6.0: {} + + leac@0.7.0: {} + + leven@3.1.0: {} + + lightningcss-android-arm64@1.33.0: + optional: true + + lightningcss-darwin-arm64@1.33.0: + optional: true + + lightningcss-darwin-x64@1.33.0: + optional: true + + lightningcss-freebsd-x64@1.33.0: + optional: true + + lightningcss-linux-arm-gnueabihf@1.33.0: + optional: true + + lightningcss-linux-arm64-gnu@1.33.0: + optional: true + + lightningcss-linux-arm64-musl@1.33.0: + optional: true + + lightningcss-linux-x64-gnu@1.33.0: + optional: true + + lightningcss-linux-x64-musl@1.33.0: + optional: true + + lightningcss-win32-arm64-msvc@1.33.0: + optional: true + + lightningcss-win32-x64-msvc@1.33.0: + optional: true + + lightningcss@1.33.0: + dependencies: + detect-libc: 2.1.2 + optionalDependencies: + lightningcss-android-arm64: 1.33.0 + lightningcss-darwin-arm64: 1.33.0 + lightningcss-darwin-x64: 1.33.0 + lightningcss-freebsd-x64: 1.33.0 + lightningcss-linux-arm-gnueabihf: 1.33.0 + lightningcss-linux-arm64-gnu: 1.33.0 + lightningcss-linux-arm64-musl: 1.33.0 + lightningcss-linux-x64-gnu: 1.33.0 + lightningcss-linux-x64-musl: 1.33.0 + lightningcss-win32-arm64-msvc: 1.33.0 + lightningcss-win32-x64-msvc: 1.33.0 + + lilconfig@3.1.3: {} + + locate-character@3.0.0: {} + + lodash.camelcase@4.3.0: {} + + long@5.3.2: {} + + lru-cache@11.5.1: {} + + lru-cache@11.5.2: {} + + lru-cache@5.1.1: + dependencies: + yallist: 3.1.1 + + lunorash@1.0.0-alpha.98(f40c1a55ed907cdb607493dafc6daaa5): + dependencies: + '@lunora/cli': 1.0.0-alpha.97(@ai-sdk/provider@4.0.3)(@cloudflare/workers-types@4.20260702.1)(@lunora/server@1.0.0-alpha.30(@cloudflare/workers-types@4.20260702.1))(@lunora/studio@1.0.0-alpha.58(@cloudflare/workers-types@4.20260702.1)(@tanstack/solid-query@5.101.4(solid-js@1.9.14))(@tanstack/svelte-query@6.1.38(svelte@5.56.7))(@tanstack/vue-query@5.101.4(vue@3.5.40(typescript@6.0.3)))(@types/react-dom@19.2.3(@types/react@19.2.17))(@types/react@19.2.17)(immer@11.1.15)(react-dom@19.2.8(react@19.2.8))(react-is@18.3.1)(react@19.2.8)(redux@5.0.1)(solid-js@1.9.14)(svelte@5.56.7)(vue@3.5.40(typescript@6.0.3)))(@lunora/values@1.0.0-alpha.10)(@shikijs/langs@4.3.1)(@shikijs/themes@4.3.1)(@types/node@24.13.3)(@visulima/redact@3.0.0)(@visulima/tabular@4.0.0)(ai@7.0.31(zod@4.4.3))(express@5.2.1)(hono@4.12.31)(json5@2.2.3)(luxon@3.7.2)(react-dom@19.2.8(react@19.2.8))(shiki@4.3.1)(ws@8.21.0)(yaml@2.9.0)(zod@4.4.3) + '@lunora/client': 1.0.0-alpha.27(@tanstack/react-query@5.101.4(react@19.2.8))(@tanstack/solid-query@5.101.4(solid-js@1.9.14))(@tanstack/svelte-query@6.1.38(svelte@5.56.7))(@tanstack/vue-query@5.101.4(vue@3.5.40(typescript@6.0.3)))(react@19.2.8)(solid-js@1.9.14)(svelte@5.56.7)(vue@3.5.40(typescript@6.0.3)) + '@lunora/do': 1.0.0-alpha.41(@cloudflare/workers-types@4.20260702.1) + '@lunora/errors': 1.0.0-alpha.7 + '@lunora/flags': 1.0.0-alpha.15(@openfeature/core@1.11.0) + '@lunora/ratelimit': 1.0.0-alpha.9 + '@lunora/runtime': 1.0.0-alpha.35 + '@lunora/server': 1.0.0-alpha.30(@cloudflare/workers-types@4.20260702.1) + '@lunora/values': 1.0.0-alpha.10 + transitivePeerDependencies: + - '@ai-sdk/anthropic' + - '@ai-sdk/google' + - '@ai-sdk/openai' + - '@ai-sdk/provider' + - '@aws-sdk/client-rds-data' + - '@cfworker/json-schema' + - '@cloudflare/flagship' + - '@cloudflare/workers-types' + - '@electric-sql/pglite' + - '@libsql/client' + - '@libsql/client-wasm' + - '@lunora/studio' + - '@neondatabase/serverless' + - '@op-engineering/op-sqlite' + - '@openfeature/core' + - '@openfeature/web-sdk' + - '@opentelemetry/api' + - '@planetscale/database' + - '@prisma/client' + - '@shikijs/langs' + - '@shikijs/themes' + - '@sveltejs/kit' + - '@tanstack/react-query' + - '@tanstack/solid-query' + - '@tanstack/svelte-query' + - '@tanstack/vue-query' + - '@tidbcloud/serverless' + - '@touch4it/ical-timezones' + - '@types/better-sqlite3' + - '@types/luxon' + - '@types/mocha' + - '@types/node' + - '@types/pg' + - '@types/sql.js' + - '@upstash/redis' + - '@vercel/postgres' + - '@visulima/boxen' + - '@visulima/find-cache-dir' + - '@visulima/redact' + - '@visulima/tabular' + - '@vue-email/render' + - '@xata.io/client' + - ai + - asn1js + - better-sqlite3 + - bun-types + - cac + - citty + - commander + - dayjs + - diff + - elysia + - expo-sqlite + - express + - fast-xml-parser + - fastify + - gel + - github-slugger + - handlebars + - hono + - ini + - json5 + - jsx-email + - juice + - knex + - kysely + - liquidjs + - luxon + - marked + - mjml + - moment + - moment-timezone + - mysql2 + - next + - nodemailer + - pg + - pkijs + - postgres + - prisma + - react + - react-devtools-core + - react-dom + - rotating-file-stream + - rrule + - shiki + - smol-toml + - solid-js + - sql.js + - sqlite3 + - supports-color + - svelte + - unstorage + - vue + - ws + - yaml + - zod + + luxon@3.7.2: {} + + magic-string@0.30.21: + dependencies: + '@jridgewell/sourcemap-codec': 1.5.5 + + magic-string@1.0.0: + dependencies: + '@jridgewell/sourcemap-codec': 1.5.5 + + math-intrinsics@1.1.0: {} + + mdast-util-to-hast@13.2.1: + dependencies: + '@types/hast': 3.0.5 + '@types/mdast': 4.0.4 + '@ungap/structured-clone': 1.3.3 + devlop: 1.1.0 + micromark-util-sanitize-uri: 2.0.1 + trim-lines: 3.0.1 + unist-util-position: 5.0.0 + unist-util-visit: 5.1.0 + vfile: 6.0.3 + + media-typer@1.1.0: {} + + merge-descriptors@2.0.0: {} + + micromark-util-character@2.1.1: + dependencies: + micromark-util-symbol: 2.0.1 + micromark-util-types: 2.0.2 + + micromark-util-encode@2.0.1: {} + + micromark-util-sanitize-uri@2.0.1: + dependencies: + micromark-util-character: 2.1.1 + micromark-util-encode: 2.0.1 + micromark-util-symbol: 2.0.1 + + micromark-util-symbol@2.0.1: {} + + micromark-util-types@2.0.2: {} + + mime-db@1.54.0: {} + + mime-types@3.0.2: + dependencies: + mime-db: 1.54.0 + + mime@4.1.0: {} + + miniflare@4.20260714.0: + dependencies: + '@cspotcode/source-map-support': 0.8.1 + sharp: 0.34.5 + undici: 7.28.0 + workerd: 1.20260714.1 + ws: 8.21.0 + youch: 4.1.0-beta.10 + transitivePeerDependencies: + - bufferutil + - utf-8-validate + + miniflare@4.20260721.0: + dependencies: + '@cspotcode/source-map-support': 0.8.1 + sharp: 0.34.5 + undici: 7.28.0 + workerd: 1.20260721.1 + ws: 8.21.0 + youch: 4.1.0-beta.10 + transitivePeerDependencies: + - bufferutil + - utf-8-validate + + minimatch@10.2.5: + dependencies: + brace-expansion: 5.0.7 + + mkdirp-classic@0.5.3: {} + + moo@0.5.3: {} + + motion-dom@12.42.2: + dependencies: + motion-utils: 12.39.0 + + motion-utils@12.39.0: {} + + motion@12.42.2(react-dom@19.2.8(react@19.2.8))(react@19.2.8): + dependencies: + framer-motion: 12.42.2(react-dom@19.2.8(react@19.2.8))(react@19.2.8) + tslib: 2.8.1 + optionalDependencies: + react: 19.2.8 + react-dom: 19.2.8(react@19.2.8) + + ms@2.1.3: {} + + nan@2.28.0: + optional: true + + nanoid@3.3.16: {} + + negotiator@1.0.0: {} + + node-releases@2.0.51: {} + + normalize-package-data@9.0.0: + dependencies: + hosted-git-info: 10.1.1 + semver: 7.8.5 + validate-npm-package-license: 3.0.4 + + normalize-path@3.0.0: {} + + object-assign@4.1.1: {} + + object-inspect@1.13.4: {} + + on-finished@2.4.1: + dependencies: + ee-first: 1.1.1 + + once@1.4.0: + dependencies: + wrappy: 1.0.2 + + oniguruma-parser@0.12.2: {} + + oniguruma-to-es@4.3.6: + dependencies: + oniguruma-parser: 0.12.2 + regex: 6.1.0 + regex-recursion: 6.0.2 + + oxlint@1.75.0: + optionalDependencies: + '@oxlint/binding-android-arm-eabi': 1.75.0 + '@oxlint/binding-android-arm64': 1.75.0 + '@oxlint/binding-darwin-arm64': 1.75.0 + '@oxlint/binding-darwin-x64': 1.75.0 + '@oxlint/binding-freebsd-x64': 1.75.0 + '@oxlint/binding-linux-arm-gnueabihf': 1.75.0 + '@oxlint/binding-linux-arm-musleabihf': 1.75.0 + '@oxlint/binding-linux-arm64-gnu': 1.75.0 + '@oxlint/binding-linux-arm64-musl': 1.75.0 + '@oxlint/binding-linux-ppc64-gnu': 1.75.0 + '@oxlint/binding-linux-riscv64-gnu': 1.75.0 + '@oxlint/binding-linux-riscv64-musl': 1.75.0 + '@oxlint/binding-linux-s390x-gnu': 1.75.0 + '@oxlint/binding-linux-x64-gnu': 1.75.0 + '@oxlint/binding-linux-x64-musl': 1.75.0 + '@oxlint/binding-openharmony-arm64': 1.75.0 + '@oxlint/binding-win32-arm64-msvc': 1.75.0 + '@oxlint/binding-win32-ia32-msvc': 1.75.0 + '@oxlint/binding-win32-x64-msvc': 1.75.0 + + package-manager-detector@1.8.0: {} + + parseley@0.12.1: + dependencies: + leac: 0.6.0 + peberminta: 0.9.0 + + parseley@0.13.1: + dependencies: + leac: 0.7.0 + peberminta: 0.10.0 + + parseurl@1.3.3: {} + + patch-console@2.0.0: {} + + path-browserify@1.0.1: {} + + path-key@3.1.1: {} + + path-to-regexp@6.3.0: {} + + path-to-regexp@8.4.2: {} + + pathe@2.0.3: {} + + peberminta@0.10.0: {} + + peberminta@0.9.0: {} + + picocolors@1.1.1: {} + + picomatch@4.0.5: {} + + pkce-challenge@5.0.1: {} + + postal-mime@2.7.5: {} + + postcss@8.5.22: + dependencies: + nanoid: 3.3.16 + picocolors: 1.1.1 + source-map-js: 1.2.1 + + prettier@3.9.6: {} + + pretty-format@29.7.0: + dependencies: + '@jest/schemas': 29.6.3 + ansi-styles: 5.2.0 + react-is: 18.3.1 + + property-information@7.2.0: {} + + protobufjs@7.6.5: + dependencies: + '@protobufjs/aspromise': 1.1.2 + '@protobufjs/base64': 1.1.2 + '@protobufjs/codegen': 2.0.5 + '@protobufjs/eventemitter': 1.1.1 + '@protobufjs/fetch': 1.1.1 + '@protobufjs/float': 1.0.2 + '@protobufjs/path': 1.1.2 + '@protobufjs/pool': 1.1.0 + '@protobufjs/utf8': 1.1.2 + '@types/node': 24.13.3 + long: 5.3.2 + + proxy-addr@2.0.7: + dependencies: + forwarded: 0.2.0 + ipaddr.js: 1.9.1 + + pump@3.0.4: + dependencies: + end-of-stream: 1.4.5 + once: 1.4.0 + + qs@6.15.3: + dependencies: + es-define-property: 1.0.1 + side-channel: 1.1.1 + + range-parser@1.3.0: {} + + 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-dom@19.2.8(react@19.2.8): + dependencies: + react: 19.2.8 + scheduler: 0.27.0 + + react-is@18.3.1: {} + + react-reconciler@0.33.0(react@19.2.8): + dependencies: + react: 19.2.8 + scheduler: 0.27.0 + + react-redux@9.3.0(@types/react@19.2.17)(react@19.2.8)(redux@5.0.1): + dependencies: + '@types/use-sync-external-store': 0.0.6 + react: 19.2.8 + use-sync-external-store: 1.6.0(react@19.2.8) + optionalDependencies: + '@types/react': 19.2.17 + redux: 5.0.1 + + react@19.2.8: {} + + readable-stream@3.6.2: + dependencies: + inherits: 2.0.4 + string_decoder: 1.3.0 + util-deprecate: 1.0.2 + + recharts@3.10.0(@types/react@19.2.17)(react-dom@19.2.8(react@19.2.8))(react-is@18.3.1)(react@19.2.8)(redux@5.0.1): + dependencies: + '@reduxjs/toolkit': 2.12.0(react-redux@9.3.0(@types/react@19.2.17)(react@19.2.8)(redux@5.0.1))(react@19.2.8) + clsx: 2.1.1 + decimal.js-light: 2.5.1 + es-toolkit: 1.49.0 + eventemitter3: 5.0.4 + immer: 11.1.15 + react: 19.2.8 + react-dom: 19.2.8(react@19.2.8) + react-is: 18.3.1 + react-redux: 9.3.0(@types/react@19.2.17)(react@19.2.8)(redux@5.0.1) + reselect: 5.2.0 + tiny-invariant: 1.3.3 + use-sync-external-store: 1.6.0(react@19.2.8) + victory-vendor: 37.3.6 + transitivePeerDependencies: + - '@types/react' + - redux + + redux-thunk@3.1.0(redux@5.0.1): + dependencies: + redux: 5.0.1 + + redux@5.0.1: {} + + regex-recursion@6.0.2: + dependencies: + regex-utilities: 2.3.0 + + regex-utilities@2.3.0: {} + + regex@6.1.0: + dependencies: + regex-utilities: 2.3.0 + + remove-accents@0.5.0: {} + + require-directory@2.1.1: {} + + require-from-string@2.0.2: {} + + reselect@5.2.0: {} + + rolldown@1.1.5: + dependencies: + '@oxc-project/types': 0.139.0 + '@rolldown/pluginutils': 1.0.1 + optionalDependencies: + '@rolldown/binding-android-arm64': 1.1.5 + '@rolldown/binding-darwin-arm64': 1.1.5 + '@rolldown/binding-darwin-x64': 1.1.5 + '@rolldown/binding-freebsd-x64': 1.1.5 + '@rolldown/binding-linux-arm-gnueabihf': 1.1.5 + '@rolldown/binding-linux-arm64-gnu': 1.1.5 + '@rolldown/binding-linux-arm64-musl': 1.1.5 + '@rolldown/binding-linux-ppc64-gnu': 1.1.5 + '@rolldown/binding-linux-s390x-gnu': 1.1.5 + '@rolldown/binding-linux-x64-gnu': 1.1.5 + '@rolldown/binding-linux-x64-musl': 1.1.5 + '@rolldown/binding-openharmony-arm64': 1.1.5 + '@rolldown/binding-wasm32-wasi': 1.1.5 + '@rolldown/binding-win32-arm64-msvc': 1.1.5 + '@rolldown/binding-win32-x64-msvc': 1.1.5 + + 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 + + safe-buffer@5.2.1: {} + + safer-buffer@2.1.2: {} + + scheduler@0.27.0: {} + + selderee@0.11.0: + dependencies: + parseley: 0.12.1 + + selderee@0.12.0: + dependencies: + parseley: 0.13.1 + + semver@6.3.1: {} + + semver@7.8.5: {} + + send@1.2.1: + dependencies: + debug: 4.4.3 + encodeurl: 2.0.0 + 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.1 + range-parser: 1.3.0 + statuses: 2.0.2 + transitivePeerDependencies: + - supports-color + + seroval-plugins@1.5.6(seroval@1.5.6): + dependencies: + seroval: 1.5.6 + + seroval@1.5.6: {} + + serve-static@2.2.1: + dependencies: + encodeurl: 2.0.0 + escape-html: 1.0.3 + parseurl: 1.3.3 + send: 1.2.1 + transitivePeerDependencies: + - supports-color + + setprototypeof@1.2.0: {} + + sharp@0.34.5: + dependencies: + '@img/colour': 1.1.0 + detect-libc: 2.1.2 + semver: 7.8.5 + optionalDependencies: + '@img/sharp-darwin-arm64': 0.34.5 + '@img/sharp-darwin-x64': 0.34.5 + '@img/sharp-libvips-darwin-arm64': 1.2.4 + '@img/sharp-libvips-darwin-x64': 1.2.4 + '@img/sharp-libvips-linux-arm': 1.2.4 + '@img/sharp-libvips-linux-arm64': 1.2.4 + '@img/sharp-libvips-linux-ppc64': 1.2.4 + '@img/sharp-libvips-linux-riscv64': 1.2.4 + '@img/sharp-libvips-linux-s390x': 1.2.4 + '@img/sharp-libvips-linux-x64': 1.2.4 + '@img/sharp-libvips-linuxmusl-arm64': 1.2.4 + '@img/sharp-libvips-linuxmusl-x64': 1.2.4 + '@img/sharp-linux-arm': 0.34.5 + '@img/sharp-linux-arm64': 0.34.5 + '@img/sharp-linux-ppc64': 0.34.5 + '@img/sharp-linux-riscv64': 0.34.5 + '@img/sharp-linux-s390x': 0.34.5 + '@img/sharp-linux-x64': 0.34.5 + '@img/sharp-linuxmusl-arm64': 0.34.5 + '@img/sharp-linuxmusl-x64': 0.34.5 + '@img/sharp-wasm32': 0.34.5 + '@img/sharp-win32-arm64': 0.34.5 + '@img/sharp-win32-ia32': 0.34.5 + '@img/sharp-win32-x64': 0.34.5 + + shebang-command@2.0.0: + dependencies: + shebang-regex: 3.0.0 + + shebang-regex@3.0.0: {} + + shiki@4.3.0: + dependencies: + '@shikijs/core': 4.3.0 + '@shikijs/engine-javascript': 4.3.0 + '@shikijs/engine-oniguruma': 4.3.0 + '@shikijs/langs': 4.3.0 + '@shikijs/themes': 4.3.0 + '@shikijs/types': 4.3.0 + '@shikijs/vscode-textmate': 10.0.2 + '@types/hast': 3.0.5 + + shiki@4.3.1: + dependencies: + '@shikijs/core': 4.3.1 + '@shikijs/engine-javascript': 4.3.1 + '@shikijs/engine-oniguruma': 4.3.1 + '@shikijs/langs': 4.3.1 + '@shikijs/themes': 4.3.1 + '@shikijs/types': 4.3.1 + '@shikijs/vscode-textmate': 10.0.2 + '@types/hast': 3.0.5 + + 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 + + signal-exit@4.1.0: {} + + solid-js@1.9.14: + dependencies: + csstype: 3.2.3 + seroval: 1.5.6 + seroval-plugins: 1.5.6(seroval@1.5.6) + + sorted-btree@1.8.1: {} + + source-map-js@1.2.1: {} + + space-separated-tokens@2.0.2: {} + + spdx-correct@3.2.0: + dependencies: + spdx-expression-parse: 3.0.1 + spdx-license-ids: 3.0.23 + + spdx-exceptions@2.5.0: {} + + spdx-expression-parse@3.0.1: + dependencies: + spdx-exceptions: 2.5.0 + spdx-license-ids: 3.0.23 + + spdx-license-ids@3.0.23: {} + + split-ca@1.0.1: {} + + ssh2@1.17.0: + dependencies: + asn1: 0.2.6 + bcrypt-pbkdf: 1.0.2 + optionalDependencies: + cpu-features: 0.0.10 + nan: 2.28.0 + + statuses@2.0.2: {} + + string-width@4.2.3: + dependencies: + emoji-regex: 8.0.0 + is-fullwidth-code-point: 3.0.0 + strip-ansi: 6.0.1 + + string_decoder@1.3.0: + dependencies: + safe-buffer: 5.2.1 + + stringify-entities@4.0.4: + dependencies: + character-entities-html4: 2.1.0 + character-entities-legacy: 3.0.0 + + strip-ansi@6.0.1: + dependencies: + ansi-regex: 5.0.1 + + suffix-thumb@5.0.2: {} + + supports-color@10.2.2: {} + + supports-color@7.2.0: + dependencies: + has-flag: 4.0.0 + + supports-color@8.1.1: + dependencies: + has-flag: 4.0.0 + + svelte@5.56.7: + dependencies: + '@jridgewell/remapping': 2.3.5 + '@jridgewell/sourcemap-codec': 1.5.5 + '@sveltejs/acorn-typescript': 1.0.11(acorn@8.17.0) + '@types/estree': 1.0.9 + '@types/trusted-types': 2.0.7 + acorn: 8.17.0 + aria-query: 5.3.1 + axobject-query: 4.1.0 + clsx: 2.1.1 + devalue: 5.8.2 + esm-env: 1.2.2 + esrap: 2.3.0 + is-reference: 3.0.3 + locate-character: 3.0.0 + magic-string: 0.30.21 + zimmerframe: 1.1.4 + transitivePeerDependencies: + - '@typescript-eslint/types' + + tailwind-merge@3.6.0: {} + + tar-fs@2.1.5: + dependencies: + chownr: 1.1.4 + mkdirp-classic: 0.5.3 + pump: 3.0.4 + tar-stream: 2.2.0 + + tar-stream@2.2.0: + dependencies: + bl: 4.1.0 + end-of-stream: 1.4.5 + fs-constants: 1.0.0 + inherits: 2.0.4 + readable-stream: 3.6.2 + + terminal-size@4.0.1: {} + + tiny-invariant@1.3.3: {} + + tinyexec@1.2.4: {} + + tinyglobby@0.2.17: + dependencies: + fdir: 6.5.0(picomatch@4.0.5) + picomatch: 4.0.5 + + toidentifier@1.0.1: {} + + trim-lines@3.0.1: {} + + ts-morph@28.0.0: + dependencies: + '@ts-morph/common': 0.29.0 + code-block-writer: 13.0.3 + + tseep@1.3.1: {} + + tslib@2.8.1: {} + + tweetnacl@0.14.5: {} + + type-is@2.1.0: + dependencies: + content-type: 2.0.0 + media-typer: 1.1.0 + mime-types: 3.0.2 + + typescript@6.0.3: {} + + undici-types@7.18.2: {} + + undici@7.28.0: {} + + unenv@2.0.0-rc.24: + dependencies: + pathe: 2.0.3 + + unist-util-is@6.0.1: + dependencies: + '@types/unist': 3.0.3 + + unist-util-position@5.0.0: + dependencies: + '@types/unist': 3.0.3 + + unist-util-stringify-position@4.0.0: + dependencies: + '@types/unist': 3.0.3 + + unist-util-visit-parents@6.0.2: + dependencies: + '@types/unist': 3.0.3 + unist-util-is: 6.0.1 + + unist-util-visit@5.1.0: + dependencies: + '@types/unist': 3.0.3 + unist-util-is: 6.0.1 + unist-util-visit-parents: 6.0.2 + + unpipe@1.0.0: {} + + update-browserslist-db@1.2.3(browserslist@4.28.7): + dependencies: + browserslist: 4.28.7 + escalade: 3.2.0 + picocolors: 1.1.1 + + use-sync-external-store@1.6.0(react@19.2.8): + dependencies: + react: 19.2.8 + + util-deprecate@1.0.2: {} + + validate-npm-package-license@3.0.4: + dependencies: + spdx-correct: 3.2.0 + spdx-expression-parse: 3.0.1 + + vary@1.1.2: {} + + vfile-message@4.0.3: + dependencies: + '@types/unist': 3.0.3 + unist-util-stringify-position: 4.0.0 + + vfile@6.0.3: + dependencies: + '@types/unist': 3.0.3 + vfile-message: 4.0.3 + + victory-vendor@37.3.6: + dependencies: + '@types/d3-array': 3.2.2 + '@types/d3-ease': 3.0.2 + '@types/d3-interpolate': 3.0.4 + '@types/d3-scale': 4.0.9 + '@types/d3-shape': 3.1.8 + '@types/d3-time': 3.0.4 + '@types/d3-timer': 3.0.2 + d3-array: 3.2.4 + d3-ease: 3.0.1 + d3-interpolate: 3.0.1 + d3-scale: 4.0.2 + d3-shape: 3.2.0 + d3-time: 3.1.0 + d3-timer: 3.0.1 + + vite@8.1.5(@types/node@24.13.3)(esbuild@0.28.1)(jiti@2.7.0)(yaml@2.9.0): + dependencies: + lightningcss: 1.33.0 + picomatch: 4.0.5 + postcss: 8.5.22 + rolldown: 1.1.5 + tinyglobby: 0.2.17 + optionalDependencies: + '@types/node': 24.13.3 + esbuild: 0.28.1 + fsevents: 2.3.3 + jiti: 2.7.0 + yaml: 2.9.0 + + vue-demi@0.14.10(vue@3.5.40(typescript@6.0.3)): + dependencies: + vue: 3.5.40(typescript@6.0.3) + + vue@3.5.40(typescript@6.0.3): + dependencies: + '@vue/compiler-dom': 3.5.40 + '@vue/compiler-sfc': 3.5.40 + '@vue/runtime-dom': 3.5.40 + '@vue/server-renderer': 3.5.40 + '@vue/shared': 3.5.40 + optionalDependencies: + typescript: 6.0.3 + + which@2.0.2: + dependencies: + isexe: 2.0.0 + + window-size@1.1.1: + dependencies: + define-property: 1.0.0 + is-number: 3.0.0 + + workerd@1.20260714.1: + optionalDependencies: + '@cloudflare/workerd-darwin-64': 1.20260714.1 + '@cloudflare/workerd-darwin-arm64': 1.20260714.1 + '@cloudflare/workerd-linux-64': 1.20260714.1 + '@cloudflare/workerd-linux-arm64': 1.20260714.1 + '@cloudflare/workerd-windows-64': 1.20260714.1 + + workerd@1.20260721.1: + optionalDependencies: + '@cloudflare/workerd-darwin-64': 1.20260721.1 + '@cloudflare/workerd-darwin-arm64': 1.20260721.1 + '@cloudflare/workerd-linux-64': 1.20260721.1 + '@cloudflare/workerd-linux-arm64': 1.20260721.1 + '@cloudflare/workerd-windows-64': 1.20260721.1 + + workers-ai-provider@3.3.1(@ai-sdk/provider@4.0.3)(ai@7.0.31(zod@4.4.3)): + dependencies: + '@ai-sdk/provider': 4.0.3 + ai: 7.0.31(zod@4.4.3) + + wrangler@4.113.0(@cloudflare/workers-types@4.20260702.1): + dependencies: + '@cloudflare/kv-asset-handler': 0.5.0 + '@cloudflare/unenv-preset': 2.16.1(unenv@2.0.0-rc.24)(workerd@1.20260721.1) + blake3-wasm: 2.1.5 + esbuild: 0.28.1 + miniflare: 4.20260721.0 + path-to-regexp: 6.3.0 + unenv: 2.0.0-rc.24 + workerd: 1.20260721.1 + optionalDependencies: + '@cloudflare/workers-types': 4.20260702.1 + fsevents: 2.3.3 + transitivePeerDependencies: + - bufferutil + - utf-8-validate + + wrap-ansi@7.0.0: + dependencies: + ansi-styles: 4.3.0 + string-width: 4.2.3 + strip-ansi: 6.0.1 + + wrappy@1.0.2: {} + + ws@8.21.0: {} + + y18n@5.0.8: {} + + yallist@3.1.1: {} + + yaml@2.9.0: {} + + yargs-parser@21.1.1: {} + + yargs@17.7.3: + dependencies: + cliui: 8.0.1 + escalade: 3.2.0 + get-caller-file: 2.0.5 + require-directory: 2.1.1 + string-width: 4.2.3 + y18n: 5.0.8 + yargs-parser: 21.1.1 + + yoga-layout@3.2.1: {} + + youch-core@0.3.3: + dependencies: + '@poppinss/exception': 1.2.3 + error-stack-parser-es: 1.0.5 + + youch@4.1.0-beta.10: + dependencies: + '@poppinss/colors': 4.1.6 + '@poppinss/dumper': 0.6.5 + '@speed-highlight/core': 1.2.17 + cookie: 1.1.1 + youch-core: 0.3.3 + + zimmerframe@1.1.4: {} + + zod-to-json-schema@3.25.2(zod@4.4.3): + dependencies: + zod: 4.4.3 + + zod@4.4.3: {} + + zustand@4.5.7(@types/react@19.2.17)(immer@11.1.15)(react@19.2.8): + dependencies: + use-sync-external-store: 1.6.0(react@19.2.8) + optionalDependencies: + '@types/react': 19.2.17 + immer: 11.1.15 + react: 19.2.8 + + zwitch@2.0.4: {} diff --git a/spikes/lunora-outline/pnpm-workspace.yaml b/spikes/lunora-outline/pnpm-workspace.yaml new file mode 100644 index 00000000..7e8efd7f --- /dev/null +++ b/spikes/lunora-outline/pnpm-workspace.yaml @@ -0,0 +1,28 @@ +allowBuilds: + cpu-features: false + esbuild: true + protobufjs: false + sharp: false + ssh2: false + vue-demi: false + workerd: true +minimumReleaseAgeExclude: + - "@lunora/advisor@1.0.0-alpha.33" + - "@lunora/agent@1.0.0-alpha.9" + - "@lunora/ai@1.0.0-alpha.24" + - "@lunora/cli@1.0.0-alpha.97" + - "@lunora/client@1.0.0-alpha.27" + - "@lunora/codegen@1.0.0-alpha.52" + - "@lunora/config@1.0.0-alpha.78" + - "@lunora/d1@1.0.0-alpha.37" + - "@lunora/react@1.0.0-alpha.31" + - "@lunora/runtime@1.0.0-alpha.35" + - "@lunora/seed@1.0.0-alpha.29" + - "@lunora/server@1.0.0-alpha.30" + - "@lunora/sql-store@1.0.0-alpha.38" + - "@lunora/studio@1.0.0-alpha.58" + - "@lunora/values@1.0.0-alpha.10" + - "@lunora/vite@1.0.0-alpha.78" + - "@lunora/workflow@1.0.0-alpha.12" + - lunorash@1.0.0-alpha.98 + - "@lunora/db@1.0.0-alpha.27" diff --git a/spikes/lunora-outline/public/favicon.svg b/spikes/lunora-outline/public/favicon.svg new file mode 100644 index 00000000..6893eb13 --- /dev/null +++ b/spikes/lunora-outline/public/favicon.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/spikes/lunora-outline/public/icons.svg b/spikes/lunora-outline/public/icons.svg new file mode 100644 index 00000000..e9522193 --- /dev/null +++ b/spikes/lunora-outline/public/icons.svg @@ -0,0 +1,24 @@ + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/spikes/lunora-outline/src/App.css b/spikes/lunora-outline/src/App.css new file mode 100644 index 00000000..f460279c --- /dev/null +++ b/spikes/lunora-outline/src/App.css @@ -0,0 +1,184 @@ +.counter { + font-size: 16px; + padding: 5px 10px; + border-radius: 5px; + color: var(--accent); + background: var(--accent-bg); + border: 2px solid transparent; + transition: border-color 0.3s; + margin-bottom: 24px; + + &:hover { + border-color: var(--accent-border); + } + &:focus-visible { + outline: 2px solid var(--accent); + outline-offset: 2px; + } +} + +.hero { + position: relative; + + .base, + .framework, + .vite { + inset-inline: 0; + margin: 0 auto; + } + + .base { + width: 170px; + position: relative; + z-index: 0; + } + + .framework, + .vite { + position: absolute; + } + + .framework { + z-index: 1; + top: 34px; + height: 28px; + transform: perspective(2000px) rotateZ(300deg) rotateX(44deg) rotateY(39deg) + scale(1.4); + } + + .vite { + z-index: 0; + top: 107px; + height: 26px; + width: auto; + transform: perspective(2000px) rotateZ(300deg) rotateX(40deg) rotateY(39deg) + scale(0.8); + } +} + +#center { + display: flex; + flex-direction: column; + gap: 25px; + place-content: center; + place-items: center; + flex-grow: 1; + + @media (max-width: 1024px) { + padding: 32px 20px 24px; + gap: 18px; + } +} + +#next-steps { + display: flex; + border-top: 1px solid var(--border); + text-align: left; + + & > div { + flex: 1 1 0; + padding: 32px; + @media (max-width: 1024px) { + padding: 24px 20px; + } + } + + .icon { + margin-bottom: 16px; + width: 22px; + height: 22px; + } + + @media (max-width: 1024px) { + flex-direction: column; + text-align: center; + } +} + +#docs { + border-right: 1px solid var(--border); + + @media (max-width: 1024px) { + border-right: none; + border-bottom: 1px solid var(--border); + } +} + +#next-steps ul { + list-style: none; + padding: 0; + display: flex; + gap: 8px; + margin: 32px 0 0; + + .logo { + height: 18px; + } + + a { + color: var(--text-h); + font-size: 16px; + border-radius: 6px; + background: var(--social-bg); + display: flex; + padding: 6px 12px; + align-items: center; + gap: 8px; + text-decoration: none; + transition: box-shadow 0.3s; + + &:hover { + box-shadow: var(--shadow); + } + .button-icon { + height: 18px; + width: 18px; + } + } + + @media (max-width: 1024px) { + margin-top: 20px; + flex-wrap: wrap; + justify-content: center; + + li { + flex: 1 1 calc(50% - 8px); + } + + a { + width: 100%; + justify-content: center; + box-sizing: border-box; + } + } +} + +#spacer { + height: 88px; + border-top: 1px solid var(--border); + @media (max-width: 1024px) { + height: 48px; + } +} + +.ticks { + position: relative; + width: 100%; + + &::before, + &::after { + content: ""; + position: absolute; + top: -4.5px; + border: 5px solid transparent; + } + + &::before { + left: 0; + border-left-color: var(--border); + } + &::after { + right: 0; + border-right-color: var(--border); + } +} diff --git a/spikes/lunora-outline/src/App.tsx b/spikes/lunora-outline/src/App.tsx new file mode 100644 index 00000000..9e599c87 --- /dev/null +++ b/spikes/lunora-outline/src/App.tsx @@ -0,0 +1,224 @@ +import { useEffect, useState } from "react"; + +type Theme = "dark" | "light"; + +export default function App() { + // Default to "dark" for a stable first paint, then reconcile to the OS + // preference; the toggle takes over after that. + const [theme, setTheme] = useState("dark"); + + useEffect(() => { + if ( + typeof window !== "undefined" && + window.matchMedia("(prefers-color-scheme: light)").matches + ) { + setTheme("light"); + } + }, []); + + const isLight = theme === "light"; + + return ( +
+
+
+ + ); +} diff --git a/spikes/lunora-outline/src/assets/hero.png b/spikes/lunora-outline/src/assets/hero.png new file mode 100644 index 0000000000000000000000000000000000000000..02251f4b956c55af2d76fd0788124d7eee2b45eb GIT binary patch literal 13057 zcmV+cGycqpP)V|)f$;Qooc7=_G zlYe)HToTQIc!$)^+J1M1y0*T%w!p~7%ux`!eRhO?c80XDxKQ*R^lUUMnA>6NT^?feoZ8xxvP32D&s-9ow zqjcM}eesrC)NeDmsf)*P7wJ|K!&xP%Zy4iI8lF)Tv2!reW)tCzg_1=PmOwd1SQfxa z8;58t!=z~Ba7CYlNWVG>he8aRPY|+-JmozNhn!#9i#77Aa_Edt$ijyCWL#=~I>~2X zZNrQ8I0=D+NWD4pq=7~(i zhfThMNw|G>g^y9pGzxX7ZSApl@tIxFcs{p#MX{Ax&XZT+cR#U+OWc@S)pkIuI}dzu zH?^Q=<(y&Vq-oxSLfc0Zmq81bjZWf}RnssBaD6}2g-XJHLcN_|*IOu>m|x$nbm(?E zyNy!Zp=RroS;?Vg*kmoJYBi!n5{_^@rA!)=t#a^;N$8GL!*DsQb}`yvEuX!G@||An znOfUZAevPrkV_qjl|<~3QRZzG&h@C9Y5z zqpNH4xqbF_InIPh)kX}Vn^5kyed|mOuq+2>M;v~KO37a#yrEn3XDqtOl=rc6_KZ!; zreo)DFVB4|>1Zd(bvMI%8uM;3!)YMYu&cG?(PE!B~y@3yKBMt|R zAf=I16tFwPsl)!jDqvYkLHaAQ+f@W1m6F5aZvwhm4JL z{_l)@b;)mDSzle2gyFP5-r1x-5X{G}ot%VyWP@vEW80!Q=f%RTfpg>B*TA^pyWYUQ z<=xPtz}WcZ!;rFl4m1D&FFHv?K~#9!?A%+fn=lXt;9!Fc#kQ;zk~gZFsH z8e5iu@c_pzX&qb8&Dum*oXwB+fm6l6gFfC|o*wgEiy6tw~&co z9Vd_4)P%wP-KwQW7|lN-znGK#?N+j24U=$982myIBM+vsiKsc*@4-rwJxuAaHKna6 zT3wi!C~a4ZKH03qU}_1bKyx0&$CaK7_%Z+Kl$)fF5^op zZApQF2TvDav!s|krTjw-8US6ep z%!VmX4luub+fseQz_D9ATJQ?iQQwD}TZz{-yo#l12a%+7bT@E(X-hyaVS-5vuXc#^ zx^w;L21;NphGVoj*{s3f4dme0y2LC=G1-7THd`#z?;tuC{^9k(dM{Rf2GOxg7Jzho z7nSZHl7?M9kdalX`)YgoKEfiae5+;$(OGeN1eqxrv!ZCVKyH>xiyNqfe8xzY8*7)H zQls8KMp)F4D>ED;idMOU^^WhVF@q>ZSmeB0y~qC~|DB648hr%Sh|*T(4q|w2l?m2+ zvBVw3@7+Mz?^Yc#+se6KM;a<=(W-I>k)$-qL2V*t}VaW`;?P4)WqI%maIDq8!oUcSYAD`}wWjkSyAVsnF65#2zQ zZ>(K*TlS(E#4y$4Zq+e^_&}d)q20hCe3!LfLYP%nQpLJ~gM6a1hJlz3)aS<9C9me| zAcmJ#>tOwBy{HoP0Sm1&_(E+S@6 zgBIFUoei8zJmdpiq8q5=OY7t@`)JWxn_&GvKVr=Zdb_pEL_j|=?f;WK^U9Q0efd#K z9q7SfJTl4pmA$jsZ5oK8@O9#!I3Cv-kL)<8SalSsp#dcpvJ}Nz#G6FC0%9|7Fi#8; zGDJXtj!&GljT3*HE@0EE>G8Se&d)*nkqe}-?`3vPl&UqK?xG z!3XJ4M-x`EuQjhBbu?ik-)rmIt=DF_N?TVMP)8Gjn)TZ2V%H|zENbeix}kOxd@0}Q z>)HuH6Ean!uS#~4g2Ne2WsMGel|h%j9*W_quQheG^JqmKhc*RYzp0wKlGjBq2VzY_ zgOv8WC1+%W=W)k)Yp_`8kfE=uiiwOZTXi8Uj9YGr$f@yJcJ;#&-Nq~sJ7anE(@;QN z=~br%7%7`isKStX|7!1?L(apl^QvPKlrHV4S+6tNVQ*R1iGdC~WMNE1$a+=rpQmcB z>wxiLIBvOnm;u*;9Y!kJdy(T4lk|8>JAm(&wEsFIF1$_*{>2ZNd$V6DS=SfrGxAv0 zzKe377JI`&o9Ljr+VnS*EwehA{f&{cKZF(6*MG5!p5MvrFA3ll{fmRG*L@6^cb;o^ z3Wm8c?Sc6$`>~VEWw(c$Y?nRO;2Q$=ulpqPtM^=1IZx;@xK0PgO7rKQ^WHVLwtgUT z%|JF{^f(VH)wLKQ%dYiu2RmchBdxL0-M?wxxul_z*{h6ZZ`>-k(vizs((vW8Lt6Z6 zY;Dt?@JWyN`O`f;&d1Mb?e%9oyRK1ql?EE5XB2(W)|D1~Rx35$H6@6)$F?)7V|zEO zI}fu0-0}8W5=6sg$fPnZ~7=tTudl?Ecb@pxbo)vni%gP-?hL|%*?62C;x6?@E`VRnJv z?fTb;k4x;TS7Cu-z%J}uy}e-pwpLQ17Q@4DC+FCdAmNKklG$`I_pyw7E{fYmw~{Fj zi?6KcVy=Wrel)EB_DWO|0CKmI|13!gBV?X`Ozp7x>?6jr`>Qz=^4ea35!$*f}) zS$i+x_k+@P2q1RFUH^ZTTk7=n?cjfR>hTq3l3SY~#w+I8SSutXGyhw;Ws~=zMQ%Vc z>$On~47Ut?P*_!TOQ&PFmLAyJieB2X4_Fd_!WxI-AY`q1Lc-oK?+qcOTzlQ?@~x@OT}*9jTVNfl@3rGvZpWI=eKg>T zZb@6YWz)J=IhP7CF|c?G62vMEG%#U}?#86$0jR4sG~i(jRd#jmn`7b(O#?N;3a;1t zhXLssmUwGhp79luw#(*V8WL0|8+E z6=YZ_O@er~$LrD_PYGc(kJgB=;yw#+Z3X6LDUZ(NcwN=B-hjdiHm!JFar%m{(5bEW z@@_VEtG$5;`EJZ|OkJ@l&G9n((w@uNFwmU%bG|s#TbcJJos!{e+bjCjrCq_}LcN!UFgKtgg7siV*7# z!}1whTRRi*-avJPu->C}Z8EiuK$#886+H_#_!btv+rsiBbv2jAJvJ+O0{#}y(%L3H zfjU-kq_-L@2XrL*ae{{qYJkD{@dw%*bkh2P&YS-0!Xt!PRz7KHV0+~j(t9W8lAVWR zt@B*DgURgEz4>WuN>o?_iKcw$?k{||Pg7{Q2o4|VmJ)mg?{VQJA<}zEr^YAAS zgGm5RT4T3p)U;yz-tfBO^kw8?IoG!IVmc+Z3m#}AOQ?5MRa>)OcU!$N^_+yK6ayn? zK>~WK0!#ysuj^oNLakm)Zvu+J)OSubX^kv!c*xgdIvs;kln!rgG4*uZ;w0mQQO4XD zO9P{GNdv!=cQ(CAL{S(%KtuV^zC&Q{%g)PoXnp^gn^>c*`E>$hLYg2HjnbVGtWLa{7zHdG1jT@B{|Dm16 z7K2(jsfG+m*Zxof)iXxu+!H5Mo-0$pkyV3VV4B@Qms46M zuBxGRV@HxU7Wwx-6CB zaU*HO<_qn$5GH>&@?nRy1{z zkik!sLfWQ)r#75)vVwCBU*r_)Q6mp?!j85{#Xqse)ApRdE$V0%I0*~e(_{)5H)`Mk z#rExC>yjhZxuL@|+#v4#<Axw$+VpV zuT;!2Vww$je$DpAW`$FX_Ab|Ip%$;&T$-lW8jS~B$>G}rd>eQG+$h9lQx4Mx0w={m zx9?T6VU`>sR}XClkAhHEShOUe8awiq zmizhL+}5UKs3}6~It7vBTig9dfQ2Q8coo+Miiaw7n~>4ybv2Ptt0^^=VqX(t*Yya9 zr`FxxFX8(v*H=+uJ#JJWIB2A(==HDYx~^zZ2nu?2`}|Wsa*f3h3ixc+U|FDtAG$Y! z*lc_7se5Oso-Cgqe0){{!8H4g$3<8!R<6JOurD;((({c$1(pwb>(#TT!sge@4>r2@ zVL7>U`0`nsWAYErezk4(Z!gMI2?UTo{J3Ajo(u4)KYIRd>BRcG4BoS3G0EXyEp@tw z%P7__?A^a>Q&AKL@ayDO9D*Qkc!NHnO9l}kpp_6hXbMppYL(X1L?njdFT|-h2<_$; zAtDZ!1Rf%|yb!qbWKd}%0b`LzBeyNy43|QO(&h2mxQLUL)|0%agVOW)6TV!&Ip^Ls z`PG2cygM8)IecQx=Fc+nqYRo4hS^^-nM_&-y8?EJXUczP=DIw(GkTJdpEdh<_STs{ z|A)4n1GKdE=Wu!!nYoZHcUQ4S&R;oDOKX2lrkdF(mK>hz<$Pp>igjOcvoRIjlN=W8 zu8Gx5(roqn8$>gEE5vy{GiGeW8Tq{vnf3hS-V=$tZkQuftUVuU8o6k&dn=Yg3)6MOIH>nlK^-2+C6BZITr~1@So?NvG#TwL)|~=1YXGMTLpS<)ziK_CSOabe z=cB#5)yz|@0i9dSo?*CX)}UP=s6)B+F@~Em(u@Q(I9J9i_V{LmMu8BfXYMh~*oPP+ z!3~xTv|(>|=n6ZOtT~C@V!z!w%18*8T2t6}U2S##rC)mekBql&VsBX;$~ByGE$oA9 z`0Wzq8p?R{4)$l*on;!cLa}Dh^Xe?owiQZt9nH1fxxh$pN9K%CtOw?u3>85L7rr!d zXs)l{TZ{xXP&U8exz?9cv~dNNibOmt*K4I$?RxqIBZ0(?Mg-9FS{*9Bc49Qc1`=sIF-rye`aNT1G@4NwXcnyc@+bw_mTsR>5< zF<2;X0QesG_pw|TonqVBhRtfqI>ty(SIu&VOXd0CrLlfp+;WH7HYjhqnu^oAY!9cB z=B6#R?Rfz9BP`dJ=@v_?70s3HxQPk+{6Y+lM85f2NF^00*^OcM0~?JOZfR9ZPYF+# zYSs}(_BUYV8{n@2a1hD^SV41bwmi2uztR;PeBgF1F-`9>`zoNss-@3LaF2sjl~>OaaVmp7PNp+UT`6@}gR%uzqHDVeEZ14{Yt?n%JeQm+t(1_u zSc}oj^{b;+rlS|ME%+LjzSI&xu0Bblxo$MJ-J$kJ?Qu_XUXh}*@*-x@ny|}wVM%Lg z3tNB`yvr*}N?ClGL;H2cglcvErIccU3(eP7>@~4nOIcI~-`P8tSQnx=jI&{9)!1}l z;gQ%_h>ZlPSV@o@Azq1R$C6ja5!^ZGh;YRhhxs58qJWo9@Bceac&yy(pET1hnn`~7@}2L0&dfPKYs$ih7m2}R!25!(hxqA(!UIw; zK4+~Jowy3=RNC6nE=ncU{LH5?*9@W24lacJlvCZXB$CYtE@>c+~H zkV=(5I&gb{xn2!~f&fs2NQgAL6`p|kyt6kpWk}iVlqIp(H;ig`{_U9yxs1jzu^ETM z7~)Rg8C-NueqTYP&U8l{DY=Y47cR zOR@U%$KQV{mkRF|4)z9Y^t3K`@p>duY&QLUFeh6VoV`a`$U@)(z!-N*5Cj<11$EZW&hJLX83TO{lJYP74rlDZQPkm@t<=U^I)x@|UnHHkdQlh?!ltZwl92rE;;^ zZuIappj4dhld1}kttYYV-j|KF1Kus zWBnzttD^00%LFK(wrwNragFub6xiV8QE2rm<`&fcR4SLFcdtLxVuN!Aal-g6dE4%k zARZ}|xeo;K{0yf7@9aua%2j5o)CPcIOc6uLHFJOcgtB5owlcNAwyAHc0QB0Dts?c@ zUemG~j_E&W7R%+x-IO4FJl8e&*2Blmp1S#RA|)geVrxvP)NHdYuxi~g&Etn?QdNK8ZDKZ?QFLU?zh30G|t9G>a_X4zk}Ygw<^$7K!GIn(Io$>(d4ODJQ2XSd%jpK zm7>ptl$a3GyB}5-%p4>Q*p#VL^B{yQMuFCM^#l#+N!Ne z5_PrJWB=@Iy+t)H`g1lX`{bm($KE5I?0c(JEYm#t{F}j!xtsbob0{xu@0TB_*>G7w0ICn zr#VoBktqHZ~XxhiKD*lcG|b;H*|Ny3P^8ceV`sfBRfrhwZ!T+MFZ!F1Bt{q$8d9i6o?~ zODj^POr}&ivSa^R^YFIq7o0giLBKCycH_aU`F6)O6JX%nPTwh~Q`eq6*0iE#Srj2^ z*_hN3%*b83zfafy60@Cp3{J({RlSaEn&E?mrxRNC9GQ7#+f=s! z0KBf-9Ny_v2VbE%aB|Di)5kNJ^t&C`4D(>t7zYUWUFtbxt+Oq=!@O7BU)}>d*R72o zFF)3jQD_lLe4is&xzyJYC1-c{8TX$RU>&>P$%)ufpez0XSAukmh!xcekg`s$c<>-q zI#zn^JU0zzF}V60)o$_gY}PQH>b2M9&8fRZa#OauglPb zeQ@pMm&=!vNgos4CluQjLMV!pfkmxK+35bi^k&=k>9h02?l+u+m0agG;(h2|Jslc-llvtEwn~*w3bx7qnvZACG<8}AGeaDVvcHbKd2>3G^ zSFPULUn-?Pmo^-_`mLZr??uNH`2=I&yajlrF{DtUxMy#Nu}z=3y7qbUA;5`)hibMR zhXL@@uKyV0-2&A@t@!xyrBnMJl&^o@Gx$&5_q6?D=ji5grd-~=?dlg;ur(_V0wjh! zA=JV^C1m+DDkOsgr<%O9ZQFg!0}pD(#PSz4Dr_EyS5$`)VIAv);4n-SFP~YtC7sH= z7&*MfpH;gd*FHbkmD#)hVxb6xjc9~`t?_{=JS+@ip_cTicXxG<=7m9& zPX+Z8IC*GSAXuGCrZDHgR$r%jyk-fctis2Kx4HvZ|B~8uC@o)m^>Hy-O!&TKA?$&n zkP2Xc54w~!=z2?^NafyL*L0V9cbYrugHBBUj`xVyZmGFR&kvk#>1J*Z~i zNTz}?IAdJ$gkqd2!Gw(%LzE!O5s4C7q4%T~e_P{+z=DNDKrG**p=U`d5yg^vp`;Zn zsU=8gd0a9s4s0FPJePWR9eH5=+O^Kks&kC-iblNqTh2&Pw*^(4384f+D8N|fewZu_ zg2ejQ)ov;ztz;NQl7yj;A`(!H!XQu_$sqY9h_IrH*}_%1{L&_YLDvO?%R5Z-t+ClW z_qERbL?HKUZ!nt+!E9S`uoh^5A|DaIHe*_gf1`E_Vq+}{&T@t$EGhMnRjJ4z2w_W8 zp+qjs7as22^&S3wY1?+}^j-I=RcCE>#|39)g(lU7v_8;?=qK(9D8-*pPdiy)P3lIblG`+?%ea| zYoD3dopYt!tKgFicfNmNi(EWE=E4hC6(r|PYtanqJlmt57YOVrr2^tfrG(eG9C##X zu&1t@%L$RIvpj!wUA z8i>Pqot#_+Cnp6L2XPcZy1ar|9MnY+7eNvK1E)@Tr#2KsXq1*>)uUCozT7L##ok?o zhA6ofP4E|b*9tAfG?uf$#}>TIR&1A!yslP8}i7w-EzW(x#9VEvx18k%Tn=-$VV zkOtUr0b2!w3t>h?#8AZl^Az*(6KCGlD;4j~yx};`#2gN1_gv=%7KVzecIRakN{f*4 zeaI>yH;-o4OGhvGTU)(quWI)-q?V*(sVesSMv|wMUQ3hLEt=lBB$KZ9TyHr>)f7o%) zPYeU<3P)*P10*7vE)nA5#{c=6-E-_>r_u4e3i!I2+UksELwDqwMeBZ9FSP$;^Ajro z_@M#_Ss$?ejoB@!wN|kbGKs(0zLo%0QpQXW#t;oC$B0MZYZ&Ej?8~fNhcCVvPo3vo zFn0WWZaPliF^8_}yzb`*f@yg0uWv6HgNI)xa=pO%Ck(C<=-60l#uD3(wXP~c7!NoX z0&^6=N`zcc90F#qt@=Rn@r!3(*1v(Tl{B!m?Mc7yIA+nEHpY{YWr$=)F7rhR1P}(v zt{YhY#;jsW6G>#xhP*B`OCk|Pf+NN;ju1rxa*HAgoGq*rvqw&xe~;t1JA31$s?GBb z*g7&@cbKo4n<`>)!UlIAgR6q&))B0KYU8r66GbFj?8Guw4E%&}Qi_lT003LtoIZei zwD~=XZmeo+yZ2Pq3KYCF-R&11^p= z@H%s+=G`}wrbJ{()Mh71#2SP3Zy3m>l1n?0N-N1Q;z6?oSxr-G(H5m4EO>~&;}VKi zfY}3w+9z>vp#d)hVuu`)vG_aaH%3b=WKMnSu&c31;<3O;bz2iD=w+o4#oBb36 z5ZCF*Gu?zjZIR0S>_%pHY2$k8D^n7Sz_K8tCDeXM+dO<#LSg%h6`~dnVG1N@T7v&e z%wEd1!k{^zfz_1BTW{!$!B%g)J^2b87!9Y>>100X1SgT7s0z$o>^lAA=Gp_cC1(h=*5Tmf8z&LGJJ>$|K^~s`z9*OWz5MFUr?>Bi?_PGBB)#psD5?>n+q{o_ zz7~ez&;t#h8l$jwGPCC&xq2YetXYQT+0F3j(`xmNGf8dj#an|p#I*pvI*kwW4iuB> z+q3_7xB8y;pLzHG-S%+UHQA zvqp;$kmGJY>lLsN4C~&TcvAS1SErTcwcw0r@wngk zShAUA1M9b#g}^pL-zH7Q#z^&j#r9F8BTVfkR&qF<=e35goTu7c|GN)0mokj4m0%~0 zXJ8j4Hc_l;HJ&uU*Iw`8d_EscJ``s0tk9mkKo^&#TYXm-EoAzTQObxa@^u~g2t#T) zJz|rE!I_?i4dCJC=B8(_pZ{YR>|V?0iCcnU;E@$239^x?SYCfNaMHN;CtHIS_zHN9 zTkQc1v@O35okiFtq5_u+5FkY55ap@pi)O?}x0D1c*qB0KpYR}>Ul+B0Vmr}Z@+%mJ|As}sis_=ROPbov@*2thpE&?!V#Qgu$snYvCZ zrkhmkMU+fSf-s8(L37fPr&M*jRs{{THb!aXQu|P9l_-vJhHvLzMGH zE?1U0H_+PmNABp9`|KzkGfrrZ%XvdGo6*<{d5m9~L7 z_^`M;X6xDo=m6LY6RfvJEvsTK1!u8d2HPx|$S}p;sRy!I zWL55Yxu~_B`OP@~(q6&W3#)~I&+MGL%GWR$#udC151^wsswhqlii;rP9jJpiI7o&Z zAb})=HY7?4HA|re3ns`%$)FuvKCFWjhb~?IE)F6dF2K5}poj-NK6Gf;hw$t3=1txY zoxQxZWrQU6K!%|~!m?~Bnw-6Rr!F3BZ{u5!LqnZTDON}Coj9^@&le)V!NYrVwS~B% zEL+>Sr@}qGwGvu|HrOo|gSt__ezN^&%~{*)a=rf7y1HujUcr`zZB<4#l@T#eN)si} z)lZA<{=tKx8E%c9>A(##6}_p+~EZpKsl5a4pj`E*;_-6`ysiv zffA!7=MT1vCz}-m4~tjVey1b2KSR4OEtLd-(_DdUqYZ74LaDkhH?KFh?%WAOP2WbX zp@zT+Dx|5_f%JQiAGvVw!oh+g3e50u!aPfMxdC=E)XB{F5IcEZhePIM- zph6Y`$Oy?JBL<8Ex(SqEhLeQ@XcrdA>a?rx+_~HLA;l14)WmmpH}_w?Pg#HBZs0eS zwypwAW?M-x+3AU-(GGWSJ=ngxUEcEZ5OsX(Qlt!MQ zn^(`S{GHkAv(8@D`EAfSYig%Cxv?z!{=w^F#y)5_d7FuKZH7qlR-#5B0bt806%D0I zT7VdVP_?q*%Rq8UR;JkD4i^RXowt+E%#V2U>TfDqzZSDZ+dR!a#T3I>-z_$q9@k|m zy5~A*m~&JWP@E7a=pc}4kVHTc4h&R;Li7d@f`|hKMLkbb^uhOakNr3&FLjlm~i5NBM< zFaYI{;cpiHCNRdE0dg*>qIm(_t?#$h=(SCw?h3rJV2*ER8{O4^3#=dO)KwklZkoqU zS8i5c%YL*y*4;FY#D=XmkQnYj%LH)?02~gSJH`Qp1XY64g>%c_K$xseI&|e)7vRoL zAqRba$G@%fSGA7X7hQk%_3NVOYVS+$leU_!&6*5uN)8#5ZBz_6ASCA;azYS-Rt@ki zg2NWz(=;t}SC(~Ibl63$5C8FPmhXqb^)5#jaJ~I{Ex3xZ!+2h8$}}h_g@Be>HZ;72 z6#y#>AY3^skuVKF#0WxFBQ()5d5_nWb?c6c>EeMM|Mh+*&wEpPyxHCq{R-Gdr-`hN zF=1sxl&mBoK+#qRLl9#CEN|Fg8>nbmsTg3a1;#M9enQ$RgWk}kp#-5wh=EF&1tl%mJln2V^8o%Qv(*=zEuO7y z=m*8?xpUn-*@h5Cl_3BK3joiGkyaScK+>|MWdMRWm@RT!Q1piAlv5hL@B6>3&GI8) zP!xBc6}ZNIpJLL%2a8Y!+(<=f%WX>_uWVxlga9!D*oYt$l0cxRDMvqfU;Kq_mLK5k z)dvqYcgLa_Lz?3HyeF)@$%$&6lI?r4I>6W#M*<)vq{?&Oqrx``d`mhpVPr> z#q078F6gw_X<=?KR>8%^t%@wbITvNMu!hKiTSkCTJkw>1!e*Y{%31#_yMf=LW7{RJ zYoC^w$6%3cBtVG5)x#{Hg6IVTh9XEcM{gQwXk!R^y95^f-hZ`d{aVa+xW1EO4wDV4 zB?JgD7*?qkvc|$nIykTvNl2x0j3Q!MXoLL^)~}d7jcYf(H8D~c+?$pKL(px>Z3`eb z04RzS6_AgFT6Pn#iZAg$Sl_j8#;6ShF%&(Fag#E2asU@@LaN;=b=Wf7sgPKhfzhBM zC@eFL8^MrnA*9&Khe*Ab@CC9*uyJGXyi(;y2>lQLJZt;ShtJi?3Yf_t`F+$hY!+Q2Ndsx=U+bjTiAy7djLji>7k%k`$9&--f<*BNA3Hy&ZrHH|4 zG5H&9cB?O#zI1_OOf0Ce%mDfQxdtp3vU%(iY6yji3iISS61XLv#z|!zI_sZqza@B+ zyu9st5-h+`H7QUKx9}3w@oU@EO}&cEzG?fu!!bLO->%zkcg;i9^j`S~=WKMnDi1f= P00000NkvXXu0mjft=yBf literal 0 HcmV?d00001 diff --git a/spikes/lunora-outline/src/assets/react.svg b/spikes/lunora-outline/src/assets/react.svg new file mode 100644 index 00000000..6c87de9b --- /dev/null +++ b/spikes/lunora-outline/src/assets/react.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/spikes/lunora-outline/src/assets/vite.svg b/spikes/lunora-outline/src/assets/vite.svg new file mode 100644 index 00000000..5101b674 --- /dev/null +++ b/spikes/lunora-outline/src/assets/vite.svg @@ -0,0 +1 @@ +Vite diff --git a/spikes/lunora-outline/src/index.css b/spikes/lunora-outline/src/index.css new file mode 100644 index 00000000..b867311f --- /dev/null +++ b/spikes/lunora-outline/src/index.css @@ -0,0 +1,418 @@ +/* The welcome page is a full-bleed starter — reset the browser's default + body margin/padding so it sits flush; everything else is scoped under + .lunora-welcome (collision-safe). */ +body { + margin: 0; + padding: 0; +} + +.lunora-welcome { + --cyan: hsl(186 84% 56%); + --violet: hsl(256 72% 68%); + --rose: hsl(330 80% 64%); + --ribbon: linear-gradient( + 115deg, + var(--cyan), + var(--violet) 52%, + var(--rose) + ); + --sans: + "Geist Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, + "Helvetica Neue", Arial, sans-serif; + --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace; + /* NIGHT (default) */ + --bg: #0e0e11; + --surface: hsl(240 12% 8% / 0.72); + --surface-2: hsl(240 11% 11% / 0.82); + --line: hsl(0 0% 100% / 0.08); + --line-2: hsl(0 0% 100% / 0.14); + --t-display: hsl(228 30% 97%); + --t-primary: hsl(228 26% 90%); + --t-secondary: hsl(228 12% 62%); + --t-faint: hsl(228 10% 44%); + --logo: hsl(228 30% 97%); + --accent: var(--violet); + --shot-bg: hsl(240 12% 6%); + --glow-1: hsl(256 80% 52% / 0.3); + --glow-2: hsl(196 84% 52% / 0.13); + --arc: hsl(256 60% 70% / 0.11); + + position: relative; + min-height: 100vh; + background: var(--bg); + color: var(--t-primary); + font-family: var(--sans); + line-height: 1.55; + -webkit-font-smoothing: antialiased; + overflow-x: hidden; + transition: + background 0.3s, + color 0.3s; +} +.lunora-welcome[data-theme="light"] { + --bg: hsl(228 32% 97%); + --surface: hsl(0 0% 100% / 0.82); + --surface-2: hsl(0 0% 100% / 0.95); + --line: hsl(228 16% 88%); + --line-2: hsl(228 14% 80%); + --t-display: hsl(240 14% 10%); + --t-primary: hsl(240 12% 18%); + --t-secondary: hsl(235 9% 42%); + --t-faint: hsl(235 8% 58%); + --logo: hsl(240 16% 9%); + --accent: hsl(256 58% 56%); + --shot-bg: hsl(228 26% 99%); + --glow-1: hsl(256 80% 60% / 0.14); + --glow-2: hsl(196 84% 58% / 0.08); + --arc: hsl(256 40% 55% / 0.12); +} +.lunora-welcome *, +.lunora-welcome *::before, +.lunora-welcome *::after { + box-sizing: border-box; +} +.lunora-welcome a { + color: inherit; + text-decoration: none; +} +.lunora-welcome button { + font-family: inherit; + cursor: pointer; +} +.lunora-welcome ::selection { + background: hsl(256 72% 68% / 0.3); +} +.lunora-welcome code { + font-family: var(--mono); +} + +/* glow background */ +.lunora-welcome .lw-bg { + position: fixed; + inset: 0; + z-index: 0; + pointer-events: none; + overflow: hidden; +} +.lunora-welcome .lw-bg .glow { + position: absolute; + left: 50%; + top: -4%; + width: 860px; + height: 720px; + transform: translateX(-50%); + border-radius: 50%; + background: radial-gradient( + circle at 50% 50%, + var(--glow-1), + var(--glow-2) 40%, + transparent 66% + ); +} +.lunora-welcome .lw-bg .arc { + position: absolute; + left: 50%; + border-radius: 50%; + border: 1px solid var(--arc); + transform: translateX(-50%); +} +.lunora-welcome .lw-bg .arc.a1 { + top: -340px; + width: 980px; + height: 980px; +} +.lunora-welcome .lw-bg .arc.a2 { + top: -240px; + width: 720px; + height: 720px; + opacity: 0.7; +} + +/* theme toggle */ +.lunora-welcome .lw-toggle { + position: fixed; + z-index: 5; + top: 20px; + right: clamp(16px, 4vw, 36px); + display: inline-flex; + align-items: center; + gap: 7px; + border: 1px solid var(--line-2); + background: var(--surface); + backdrop-filter: blur(12px); + color: var(--t-secondary); + font-family: var(--mono); + font-size: 10.5px; + letter-spacing: 0.1em; + text-transform: uppercase; + padding: 7px 11px; + transition: 0.15s; +} +.lunora-welcome .lw-toggle:hover { + color: var(--t-display); + border-color: var(--accent); +} +.lunora-welcome .lw-toggle svg { + width: 13px; + height: 13px; +} + +.lunora-welcome .lw-wrap { + position: relative; + z-index: 2; + width: 100%; + max-width: 1080px; + margin: 0 auto; + padding: clamp(44px, 8vh, 92px) clamp(20px, 5vw, 48px); + display: flex; + flex-direction: column; + min-height: 100vh; +} +.lunora-welcome .brand { + display: flex; + align-items: center; + justify-content: center; + gap: 15px; + margin-bottom: clamp(38px, 6vh, 68px); + color: var(--logo); +} +.lunora-welcome .brand svg { + width: 54px; + height: auto; + display: block; +} +.lunora-welcome .brand .word { + font-size: 34px; + font-weight: 600; + letter-spacing: -0.03em; + color: var(--t-display); +} + +.lunora-welcome .grid { + display: grid; + grid-template-columns: 1.06fr 0.94fr; + gap: 16px; + align-items: stretch; + flex: 1; + max-height: 580px; +} +@media (max-width: 820px) { + .lunora-welcome .grid { + grid-template-columns: 1fr; + max-height: none; + } +} + +.lunora-welcome .card { + border: 1px solid var(--line); + background: var(--surface); + backdrop-filter: blur(10px); + transition: + border-color 0.2s, + background 0.2s; +} +.lunora-welcome .card:hover { + border-color: var(--line-2); + background: var(--surface-2); +} +.lunora-welcome .card:hover .arrow { + color: var(--accent); + transform: translateX(3px); +} +.lunora-welcome .arrow { + color: var(--t-faint); + transition: + color 0.2s, + transform 0.2s; +} +.lunora-welcome .arrow svg { + width: 20px; + height: 20px; + display: block; +} +.lunora-welcome .ic { + display: grid; + place-items: center; + color: var(--accent); + border: 1px solid color-mix(in oklab, var(--accent) 36%, transparent); + background: color-mix(in oklab, var(--accent) 12%, transparent); +} +.lunora-welcome .ic svg { + display: block; +} + +/* left feature card — stretches to fill the box height */ +.lunora-welcome .feature { + padding: clamp(18px, 2vw, 24px); + display: flex; + flex-direction: column; +} +.lunora-welcome .shot { + border: 1px solid var(--line); + overflow: hidden; + background: var(--shot-bg); + -webkit-mask-image: linear-gradient(to bottom, #000 56%, transparent 100%); + mask-image: linear-gradient(to bottom, #000 56%, transparent 100%); +} +.lunora-welcome .shot .top { + display: flex; + align-items: center; + gap: 12px; + padding: 11px 14px; + border-bottom: 1px solid var(--line); +} +.lunora-welcome .shot .wm { + display: flex; + align-items: center; + gap: 7px; + font-size: 12px; + font-weight: 600; + color: var(--t-primary); +} +.lunora-welcome .shot .wm i { + width: 11px; + height: 11px; + background: var(--ribbon); + -webkit-mask: radial-gradient(circle, #000 60%, transparent 62%); + mask: radial-gradient(circle, #000 60%, transparent 62%); +} +.lunora-welcome .shot .search { + flex: 1; + height: 22px; + border: 1px solid var(--line); + border-radius: 4px; +} +.lunora-welcome .shot .ver { + font-family: var(--mono); + font-size: 8px; + letter-spacing: 0.08em; + color: var(--t-faint); +} +.lunora-welcome .shot .body { + display: grid; + grid-template-columns: 92px 1fr; + min-height: 224px; +} +.lunora-welcome .shot .nav { + border-right: 1px solid var(--line); + padding: 14px 12px; + display: flex; + flex-direction: column; + gap: 11px; +} +.lunora-welcome .shot .nav i, +.lunora-welcome .shot .doc i { + height: 5px; + border-radius: 2px; + background: var(--line); +} +.lunora-welcome .shot .doc { + padding: 16px 18px; + display: flex; + flex-direction: column; + gap: 9px; +} +.lunora-welcome .shot .doc .h { + height: 8px; + width: 46%; + border-radius: 2px; + background: var(--line-2); + margin-bottom: 5px; +} +.lunora-welcome .shot .doc .accent { + height: 5px; + width: 26%; + border-radius: 2px; + background: var(--accent); +} +.lunora-welcome .feature .info { + margin-top: auto; + padding-top: clamp(18px, 2.4vh, 28px); +} +.lunora-welcome .feature .ic { + width: 40px; + height: 40px; + margin-bottom: 15px; +} +.lunora-welcome .feature .ic svg { + width: 19px; + height: 19px; +} +.lunora-welcome .feature h2 { + margin: 0 0 10px; + font-size: 19px; + font-weight: 600; + letter-spacing: -0.015em; + color: var(--t-display); +} +.lunora-welcome .feature .row { + display: flex; + align-items: flex-end; + gap: 16px; +} +.lunora-welcome .feature p { + margin: 0; + color: var(--t-secondary); + font-size: 14px; + max-width: 50ch; +} +.lunora-welcome .feature .row .arrow { + margin-left: auto; +} + +/* right stack — smaller cards, spread to align bottoms with the feature */ +.lunora-welcome .stack { + display: flex; + flex-direction: column; + gap: 16px; + height: 100%; +} +.lunora-welcome .mini { + flex: 1; + padding: 15px 17px; + display: flex; + align-items: center; + gap: 16px; + min-height: 0; +} +.lunora-welcome .mini .mc { + flex: 1; +} +.lunora-welcome .mini .ic { + width: 32px; + height: 32px; + margin-bottom: 10px; +} +.lunora-welcome .mini .ic svg { + width: 16px; + height: 16px; +} +.lunora-welcome .mini h3 { + margin: 0 0 5px; + font-size: 16px; + font-weight: 600; + letter-spacing: -0.01em; + color: var(--t-display); +} +.lunora-welcome .mini p { + margin: 0; + color: var(--t-secondary); + font-size: 12.5px; + line-height: 1.45; +} + +.lunora-welcome .lw-foot { + text-align: center; + padding-top: 26px; + font-family: var(--mono); + font-size: 11px; + letter-spacing: 0.1em; + text-transform: uppercase; + color: var(--t-faint); +} + +@media (prefers-reduced-motion: reduce) { + .lunora-welcome * { + transition: none !important; + } +} diff --git a/spikes/lunora-outline/src/main.tsx b/spikes/lunora-outline/src/main.tsx new file mode 100644 index 00000000..47e8b5d0 --- /dev/null +++ b/spikes/lunora-outline/src/main.tsx @@ -0,0 +1,29 @@ +import "./index.css"; +import { LunoraProvider } from "@lunora/react"; +import { LunoraClient } from "lunorash/client"; +import { StrictMode } from "react"; +import { createRoot } from "react-dom/client"; + +import App from "./App.tsx"; + +// `@lunora/vite` runs the Worker on the same origin as Vite, so default to +// `location.origin`. Point `VITE_LUNORA_URL` at a deployed Worker to develop +// the client against production data. +const url = + (import.meta.env.VITE_LUNORA_URL as string | undefined) ?? + globalThis.location.origin; +const client = new LunoraClient({ url }); + +const root = document.getElementById("root"); + +if (!root) { + throw new Error("missing #root mount node"); +} + +createRoot(root).render( + + + + + , +); diff --git a/spikes/lunora-outline/src/server.ts b/spikes/lunora-outline/src/server.ts new file mode 100644 index 00000000..3aeb4408 --- /dev/null +++ b/spikes/lunora-outline/src/server.ts @@ -0,0 +1,14 @@ +import type { ShardNamespaceLike } from "lunorash/runtime"; + +import { defineApp } from "../lunora/_generated/app.js"; + +interface Env extends Record { + SHARD: ShardNamespaceLike; +} + +const app = defineApp() + .shard((env) => env.SHARD) + .build(); + +export const ShardDO = app.ShardDO; +export default app; diff --git a/spikes/lunora-outline/tsconfig.app.json b/spikes/lunora-outline/tsconfig.app.json new file mode 100644 index 00000000..6830b6f7 --- /dev/null +++ b/spikes/lunora-outline/tsconfig.app.json @@ -0,0 +1,26 @@ +{ + "compilerOptions": { + "tsBuildInfoFile": "./node_modules/.tmp/tsconfig.app.tsbuildinfo", + "target": "es2023", + "lib": ["ES2023", "DOM"], + "module": "esnext", + "types": ["vite/client"], + "allowArbitraryExtensions": true, + "skipLibCheck": true, + + /* Bundler mode */ + "moduleResolution": "bundler", + "allowImportingTsExtensions": true, + "verbatimModuleSyntax": true, + "moduleDetection": "force", + "noEmit": true, + "jsx": "react-jsx", + + /* Linting */ + "noUnusedLocals": true, + "noUnusedParameters": true, + "erasableSyntaxOnly": true, + "noFallthroughCasesInSwitch": true + }, + "include": ["src"] +} diff --git a/spikes/lunora-outline/tsconfig.json b/spikes/lunora-outline/tsconfig.json new file mode 100644 index 00000000..1ffef600 --- /dev/null +++ b/spikes/lunora-outline/tsconfig.json @@ -0,0 +1,7 @@ +{ + "files": [], + "references": [ + { "path": "./tsconfig.app.json" }, + { "path": "./tsconfig.node.json" } + ] +} diff --git a/spikes/lunora-outline/tsconfig.node.json b/spikes/lunora-outline/tsconfig.node.json new file mode 100644 index 00000000..8455dcbc --- /dev/null +++ b/spikes/lunora-outline/tsconfig.node.json @@ -0,0 +1,23 @@ +{ + "compilerOptions": { + "tsBuildInfoFile": "./node_modules/.tmp/tsconfig.node.tsbuildinfo", + "target": "es2023", + "lib": ["ES2023"], + "types": ["node"], + "skipLibCheck": true, + + /* Bundler mode */ + "module": "nodenext", + "allowImportingTsExtensions": true, + "verbatimModuleSyntax": true, + "moduleDetection": "force", + "noEmit": true, + + /* Linting */ + "noUnusedLocals": true, + "noUnusedParameters": true, + "erasableSyntaxOnly": true, + "noFallthroughCasesInSwitch": true + }, + "include": ["vite.config.ts"] +} diff --git a/spikes/lunora-outline/vite.config.ts b/spikes/lunora-outline/vite.config.ts new file mode 100644 index 00000000..4a691e6e --- /dev/null +++ b/spikes/lunora-outline/vite.config.ts @@ -0,0 +1,8 @@ +import { lunora } from "@lunora/vite"; +import react from "@vitejs/plugin-react"; +import { defineConfig } from "vite"; + +// https://vite.dev/config/ +export default defineConfig({ + plugins: [lunora(), react()], +}); diff --git a/spikes/lunora-outline/wrangler.jsonc b/spikes/lunora-outline/wrangler.jsonc new file mode 100644 index 00000000..454eb4a4 --- /dev/null +++ b/spikes/lunora-outline/wrangler.jsonc @@ -0,0 +1,12 @@ +{ + "$schema": "node_modules/wrangler/config-schema.json", + "name": "lunora-outline", + "main": "src/server.ts", + "compatibility_date": "2026-06-10", + "compatibility_flags": ["nodejs_compat"], + "durable_objects": { + "bindings": [{ "name": "SHARD", "class_name": "ShardDO" }], + }, + "migrations": [{ "tag": "v1", "new_sqlite_classes": ["ShardDO"] }], + "observability": { "enabled": true, "head_sampling_rate": 1 }, +} From 6a171ddf2f7232885b0a8a694b1e6bcaefd870e0 Mon Sep 17 00:00:00 2001 From: Cameron Pak Date: Thu, 23 Jul 2026 12:41:51 -0500 Subject: [PATCH 02/59] feat(spike): nodes schema, wholeOutline shape, auth shard gate Replace messages demo with outline nodes (Dotflowy field parity), wholeOutline shape (owner-only where), and Better Auth + authorizeShard identity.userId === shardKey. Co-authored-by: Cursor --- spikes/lunora-outline/lunora/messages.ts | 45 - spikes/lunora-outline/lunora/schema.ts | 23 +- spikes/lunora-outline/lunora/shapes.ts | 17 + spikes/lunora-outline/package.json | 6 + spikes/lunora-outline/pnpm-lock.yaml | 961 ++++++++++++++++++++-- spikes/lunora-outline/pnpm-workspace.yaml | 1 + spikes/lunora-outline/src/server.ts | 27 + spikes/lunora-outline/wrangler.jsonc | 7 + 8 files changed, 991 insertions(+), 96 deletions(-) delete mode 100644 spikes/lunora-outline/lunora/messages.ts create mode 100644 spikes/lunora-outline/lunora/shapes.ts diff --git a/spikes/lunora-outline/lunora/messages.ts b/spikes/lunora-outline/lunora/messages.ts deleted file mode 100644 index 020c723d..00000000 --- a/spikes/lunora-outline/lunora/messages.ts +++ /dev/null @@ -1,45 +0,0 @@ -import { RateLimiter, rateLimit, createDbStore } from "lunorash/ratelimit"; - -import type { MutationCtx } from "#lunora/_generated/server.js"; - -import { mutation, query, v } from "#lunora/_generated/server.js"; - -// Typed against the generated MutationCtx so `rateLimit(limiter, ...)` infers -// the full procedure context — `ctx.auth` in the key callback and a typed -// `ctx.db` in the downstream handler both depend on it. -const limiter = (ctx: MutationCtx) => - new RateLimiter({ - config: { - send: { kind: "token bucket", period: 60_000, rate: 30 }, - }, - store: createDbStore({ db: ctx.db as never, table: "ratelimit_buckets" }), - }); - -export const list = query - .input({ - channelId: v.string().meta({ schema: { maxLength: 256 } }), - limit: v.optional(v.number()), - }) - .query(async ({ args, ctx }) => { - const messages = await ctx.db - .query("messages") - .withIndex("by_channel", (q) => q.eq("channelId", args.channelId)) - .take(args.limit ?? 50); - - return { channelId: args.channelId, messages }; - }); - -export const send = mutation - .input({ - channelId: v.string().meta({ schema: { maxLength: 256 } }), - text: v.string().meta({ schema: { maxLength: 4096 } }), - }) - .use(rateLimit(limiter, "send", { key: (ctx) => ctx.auth.userId ?? "anon" })) - .mutation(async ({ args, ctx }) => { - const id = await ctx.db.insert("messages", { - channelId: args.channelId, - text: args.text, - }); - - return { channelId: args.channelId, id, text: args.text }; - }); diff --git a/spikes/lunora-outline/lunora/schema.ts b/spikes/lunora-outline/lunora/schema.ts index 0461c536..0cc00f10 100644 --- a/spikes/lunora-outline/lunora/schema.ts +++ b/spikes/lunora-outline/lunora/schema.ts @@ -2,11 +2,26 @@ import { defineSchema, defineTable, v } from "lunorash/server"; import { ratelimit } from "./ratelimit/schema.js"; +/** + * Outline nodes — full Dotflowy Node field parity, sharded per user. + * Dotflowy `id` maps to Lunora `_id` via `clientId` on insert. + */ export default defineSchema({ - messages: defineTable({ - channelId: v.string(), + nodes: defineTable({ + parentId: v.string().nullable(), + prevSiblingId: v.string().nullable(), text: v.string(), + isTask: v.boolean(), + completed: v.boolean(), + collapsed: v.boolean(), + bookmarkedAt: v.number().nullable(), + mirrorOf: v.string().nullable(), + createdAt: v.number(), + updatedAt: v.number(), + origin: v.string().nullable(), + kind: v.literal("paragraph").nullable(), + userId: v.string(), }) - .shardBy("channelId") - .index("by_channel", ["channelId"]), + .shardBy("userId") + .index("by_parent", ["parentId"]), }).extend(ratelimit.extension); diff --git a/spikes/lunora-outline/lunora/shapes.ts b/spikes/lunora-outline/lunora/shapes.ts new file mode 100644 index 00000000..2b80ad92 --- /dev/null +++ b/spikes/lunora-outline/lunora/shapes.ts @@ -0,0 +1,17 @@ +import { defineShape, v } from "lunorash/server"; + +/** + * Whole-outline replication for one user shard. + * Read-as-permission: only the authenticated owner may subscribe, and the + * row filter is pinned to their `userId` (never a forged arg alone). + */ +export const wholeOutline = defineShape({ + args: { userId: v.string() }, + table: "nodes", + where: (ctx, { userId }) => { + // Shape `where` returns WhereInput (not boolean). `{ OR: [] }` is the + // vacuously-false deny sentinel used by Lunora RLS/shapes. + if (!ctx.auth.userId || ctx.auth.userId !== userId) return { OR: [] }; + return { userId }; + }, +}); diff --git a/spikes/lunora-outline/package.json b/spikes/lunora-outline/package.json index ea4183b6..1b6bb0f3 100644 --- a/spikes/lunora-outline/package.json +++ b/spikes/lunora-outline/package.json @@ -15,9 +15,14 @@ "deploy": "vite build && lunora deploy" }, "dependencies": { + "@lunora/auth": "1.0.0-alpha.36", "@lunora/db": "1.0.0-alpha.27", "@lunora/ratelimit": "1.0.0-alpha.9", "@lunora/react": "1.0.0-alpha.31", + "@tanstack/db": "^0.6.16", + "@tanstack/offline-transactions": "^1.0.41", + "@tanstack/react-db": "^0.1.94", + "better-auth": "^1.6.24", "lunorash": "1.0.0-alpha.98", "react": "^19.2.7", "react-dom": "^19.2.7" @@ -33,6 +38,7 @@ "oxlint": "^1.74.0", "typescript": "~6.0.2", "vite": "^8.1.5", + "vitest": "^4.1.10", "wrangler": "^4.100.0" }, "packageManager": "pnpm@11.9.0" diff --git a/spikes/lunora-outline/pnpm-lock.yaml b/spikes/lunora-outline/pnpm-lock.yaml index 8dd45780..b500a6dc 100644 --- a/spikes/lunora-outline/pnpm-lock.yaml +++ b/spikes/lunora-outline/pnpm-lock.yaml @@ -8,6 +8,9 @@ importers: .: dependencies: + '@lunora/auth': + specifier: 1.0.0-alpha.36 + version: 1.0.0-alpha.36(@better-auth/core@1.6.24(@better-auth/utils@0.4.2)(@better-fetch/fetch@1.3.1)(@cloudflare/workers-types@4.20260702.1)(better-call@1.3.7(zod@4.4.3))(jose@6.2.4)(kysely@0.29.4)(nanostores@1.4.1))(@better-auth/utils@0.4.2)(@better-fetch/fetch@1.3.1)(@cloudflare/workers-types@4.20260702.1)(better-call@1.3.7(zod@4.4.3))(drizzle-orm@0.45.2(@cloudflare/workers-types@4.20260702.1)(kysely@0.29.4))(kysely@0.29.4)(nanostores@1.4.1)(react-dom@19.2.8(react@19.2.8))(react@19.2.8)(solid-js@1.9.14)(svelte@5.56.7)(vitest@4.1.10(@types/node@24.13.3)(vite@8.1.5(@types/node@24.13.3)(esbuild@0.28.1)(jiti@2.7.0)(yaml@2.9.0)))(vue@3.5.40(typescript@6.0.3)) '@lunora/db': specifier: 1.0.0-alpha.27 version: 1.0.0-alpha.27(@tanstack/db@0.6.16(typescript@6.0.3))(@tanstack/offline-transactions@1.0.41(typescript@6.0.3))(@tanstack/react-query@5.101.4(react@19.2.8))(@tanstack/solid-query@5.101.4(solid-js@1.9.14))(@tanstack/svelte-query@6.1.38(svelte@5.56.7))(@tanstack/vue-query@5.101.4(vue@3.5.40(typescript@6.0.3)))(react@19.2.8)(solid-js@1.9.14)(svelte@5.56.7)(vue@3.5.40(typescript@6.0.3)) @@ -17,9 +20,21 @@ importers: '@lunora/react': specifier: 1.0.0-alpha.31 version: 1.0.0-alpha.31(@tanstack/react-query@5.101.4(react@19.2.8))(@tanstack/solid-query@5.101.4(solid-js@1.9.14))(@tanstack/svelte-query@6.1.38(svelte@5.56.7))(@tanstack/vue-query@5.101.4(vue@3.5.40(typescript@6.0.3)))(react-dom@19.2.8(react@19.2.8))(react@19.2.8)(solid-js@1.9.14)(svelte@5.56.7)(vue@3.5.40(typescript@6.0.3)) + '@tanstack/db': + specifier: ^0.6.16 + version: 0.6.16(typescript@6.0.3) + '@tanstack/offline-transactions': + specifier: ^1.0.41 + version: 1.0.41(typescript@6.0.3) + '@tanstack/react-db': + specifier: ^0.1.94 + version: 0.1.94(react@19.2.8)(typescript@6.0.3) + better-auth: + specifier: ^1.6.24 + version: 1.6.24(@cloudflare/workers-types@4.20260702.1)(drizzle-orm@0.45.2(@cloudflare/workers-types@4.20260702.1)(kysely@0.29.4))(react-dom@19.2.8(react@19.2.8))(react@19.2.8)(solid-js@1.9.14)(svelte@5.56.7)(vitest@4.1.10(@types/node@24.13.3)(vite@8.1.5(@types/node@24.13.3)(esbuild@0.28.1)(jiti@2.7.0)(yaml@2.9.0)))(vue@3.5.40(typescript@6.0.3)) lunorash: specifier: 1.0.0-alpha.98 - version: 1.0.0-alpha.98(f40c1a55ed907cdb607493dafc6daaa5) + version: 1.0.0-alpha.98(b1170eeda25a14142d7dd6aa1a0018b2) react: specifier: ^19.2.7 version: 19.2.8 @@ -32,10 +47,10 @@ importers: version: 4.20260702.1 '@lunora/studio': specifier: 1.0.0-alpha.58 - version: 1.0.0-alpha.58(@cloudflare/workers-types@4.20260702.1)(@tanstack/solid-query@5.101.4(solid-js@1.9.14))(@tanstack/svelte-query@6.1.38(svelte@5.56.7))(@tanstack/vue-query@5.101.4(vue@3.5.40(typescript@6.0.3)))(@types/react-dom@19.2.3(@types/react@19.2.17))(@types/react@19.2.17)(immer@11.1.15)(react-dom@19.2.8(react@19.2.8))(react-is@18.3.1)(react@19.2.8)(redux@5.0.1)(solid-js@1.9.14)(svelte@5.56.7)(vue@3.5.40(typescript@6.0.3)) + version: 1.0.0-alpha.58(@cloudflare/workers-types@4.20260702.1)(@tanstack/solid-query@5.101.4(solid-js@1.9.14))(@tanstack/svelte-query@6.1.38(svelte@5.56.7))(@tanstack/vue-query@5.101.4(vue@3.5.40(typescript@6.0.3)))(@types/react-dom@19.2.3(@types/react@19.2.17))(@types/react@19.2.17)(immer@11.1.15)(kysely@0.29.4)(react-dom@19.2.8(react@19.2.8))(react-is@18.3.1)(react@19.2.8)(redux@5.0.1)(solid-js@1.9.14)(svelte@5.56.7)(vue@3.5.40(typescript@6.0.3)) '@lunora/vite': specifier: 1.0.0-alpha.78 - version: 1.0.0-alpha.78(@ai-sdk/provider@4.0.3)(@cloudflare/workers-types@4.20260702.1)(@lunora/server@1.0.0-alpha.30(@cloudflare/workers-types@4.20260702.1))(@lunora/studio@1.0.0-alpha.58(@cloudflare/workers-types@4.20260702.1)(@tanstack/solid-query@5.101.4(solid-js@1.9.14))(@tanstack/svelte-query@6.1.38(svelte@5.56.7))(@tanstack/vue-query@5.101.4(vue@3.5.40(typescript@6.0.3)))(@types/react-dom@19.2.3(@types/react@19.2.17))(@types/react@19.2.17)(immer@11.1.15)(react-dom@19.2.8(react@19.2.8))(react-is@18.3.1)(react@19.2.8)(redux@5.0.1)(solid-js@1.9.14)(svelte@5.56.7)(vue@3.5.40(typescript@6.0.3)))(@lunora/values@1.0.0-alpha.10)(@types/node@24.13.3)(ai@7.0.31(zod@4.4.3))(luxon@3.7.2)(react-dom@19.2.8(react@19.2.8))(react@19.2.8)(vite@8.1.5(@types/node@24.13.3)(esbuild@0.28.1)(jiti@2.7.0)(yaml@2.9.0))(wrangler@4.113.0(@cloudflare/workers-types@4.20260702.1))(zod@4.4.3) + version: 1.0.0-alpha.78(@ai-sdk/provider@4.0.3)(@cloudflare/workers-types@4.20260702.1)(@lunora/server@1.0.0-alpha.30(@cloudflare/workers-types@4.20260702.1)(kysely@0.29.4))(@lunora/studio@1.0.0-alpha.58(@cloudflare/workers-types@4.20260702.1)(@tanstack/solid-query@5.101.4(solid-js@1.9.14))(@tanstack/svelte-query@6.1.38(svelte@5.56.7))(@tanstack/vue-query@5.101.4(vue@3.5.40(typescript@6.0.3)))(@types/react-dom@19.2.3(@types/react@19.2.17))(@types/react@19.2.17)(immer@11.1.15)(kysely@0.29.4)(react-dom@19.2.8(react@19.2.8))(react-is@18.3.1)(react@19.2.8)(redux@5.0.1)(solid-js@1.9.14)(svelte@5.56.7)(vue@3.5.40(typescript@6.0.3)))(@lunora/values@1.0.0-alpha.10)(@types/node@24.13.3)(ai@7.0.31(zod@4.4.3))(asn1js@3.0.10)(kysely@0.29.4)(luxon@3.7.2)(react-dom@19.2.8(react@19.2.8))(react@19.2.8)(vite@8.1.5(@types/node@24.13.3)(esbuild@0.28.1)(jiti@2.7.0)(yaml@2.9.0))(wrangler@4.113.0(@cloudflare/workers-types@4.20260702.1))(zod@4.4.3) '@types/node': specifier: ^24.13.3 version: 24.13.3 @@ -57,6 +72,9 @@ importers: vite: specifier: ^8.1.5 version: 8.1.5(@types/node@24.13.3)(esbuild@0.28.1)(jiti@2.7.0)(yaml@2.9.0) + vitest: + specifier: ^4.1.10 + version: 4.1.10(@types/node@24.13.3)(vite@8.1.5(@types/node@24.13.3)(esbuild@0.28.1)(jiti@2.7.0)(yaml@2.9.0)) wrangler: specifier: ^4.100.0 version: 4.113.0(@cloudflare/workers-types@4.20260702.1) @@ -183,6 +201,95 @@ packages: '@types/react': optional: true + '@better-auth/core@1.6.24': + resolution: {integrity: sha512-zQuYZgwGvUcnQt/qyLYZv+d4UEwMzg3mKKPiYDZoGx4jhRORjV8214b3EpieYfiFAeBY/EAJo1zGhZLJ+7VFeQ==} + peerDependencies: + '@better-auth/utils': 0.4.2 + '@better-fetch/fetch': 1.3.1 + '@cloudflare/workers-types': '>=4' + '@opentelemetry/api': ^1.9.0 + better-call: 1.3.7 + jose: ^6.1.0 + kysely: ^0.28.5 || ^0.29.0 + nanostores: ^1.0.1 + peerDependenciesMeta: + '@cloudflare/workers-types': + optional: true + '@opentelemetry/api': + optional: true + + '@better-auth/drizzle-adapter@1.6.24': + resolution: {integrity: sha512-sdzSegGWDH+pjSMYLpuX51sAOAtCOpDeXOyFYoQbAUuV0qONvVg5haS9Uezul2cfXxC5S5HPQeY2lXp+BzZJ5Q==} + peerDependencies: + '@better-auth/core': ^1.6.24 + '@better-auth/utils': 0.4.2 + drizzle-orm: ^0.45.2 + peerDependenciesMeta: + drizzle-orm: + optional: true + + '@better-auth/kysely-adapter@1.6.24': + resolution: {integrity: sha512-dj3DsCMdW6ybOeASZmQZwyRkaYYQ76Mhzo/wSxcI7i1llypbvRS35Cr1YwcZnN4IekFTyw9jhVWxT+yBzfQRZA==} + peerDependencies: + '@better-auth/core': ^1.6.24 + '@better-auth/utils': 0.4.2 + kysely: ^0.28.17 || ^0.29.0 + peerDependenciesMeta: + kysely: + optional: true + + '@better-auth/memory-adapter@1.6.24': + resolution: {integrity: sha512-pAp49UWXE32sW/47ra9SlJTUYrzvB/8jayh6QM9DD3ivs1TgPbq10iwwJOecJIi5WkHWw64up7g8ZhhDpAqqIg==} + peerDependencies: + '@better-auth/core': ^1.6.24 + '@better-auth/utils': 0.4.2 + + '@better-auth/mongo-adapter@1.6.24': + resolution: {integrity: sha512-2Snbv2v/gJNGHGHRgAEfKSHwoDYQ+mqcGO2sih+KYK50AW6LQX93OXZPtwkUOZAmyN70gz4/GgM2yWPC+dPiow==} + peerDependencies: + '@better-auth/core': ^1.6.24 + '@better-auth/utils': 0.4.2 + mongodb: ^6.0.0 || ^7.0.0 + peerDependenciesMeta: + mongodb: + optional: true + + '@better-auth/passkey@1.6.24': + resolution: {integrity: sha512-kuv/vKDNOAbehNEkYGIusK0HHV3PZ79JAquBjMLvsNBMKFETsfsjW306YDs8LPzCwLz8QlVgUD1gV6+VfButEg==} + peerDependencies: + '@better-auth/core': ^1.6.24 + '@better-auth/utils': 0.4.2 + '@better-fetch/fetch': 1.3.1 + better-auth: ^1.6.24 + better-call: 1.3.7 + nanostores: ^1.0.1 + + '@better-auth/prisma-adapter@1.6.24': + resolution: {integrity: sha512-TZRhUEzV6BhWM4/l2ystZaY59MuNoaqqYp7IJrSTHT3l363LWLD9ZYUBNPZZ7+hlpMC0obPgfR7nbRQ+trniHg==} + peerDependencies: + '@better-auth/core': ^1.6.24 + '@better-auth/utils': 0.4.2 + '@prisma/client': ^5.0.0 || ^6.0.0 || ^7.0.0 + prisma: ^5.0.0 || ^6.0.0 || ^7.0.0 + peerDependenciesMeta: + '@prisma/client': + optional: true + prisma: + optional: true + + '@better-auth/telemetry@1.6.24': + resolution: {integrity: sha512-q4NeSDLPKMQIhip76OQ9OXgUXU/7XoQu5dAqptX2VxtPoQNn/cbgxs+daYsZSwJQT1+ZSz5fUvbacKlt6J6Luw==} + peerDependencies: + '@better-auth/core': ^1.6.24 + '@better-auth/utils': 0.4.2 + '@better-fetch/fetch': 1.3.1 + + '@better-auth/utils@0.4.2': + resolution: {integrity: sha512-AUxrvu+HaaODsUyzDxFgwd/8RZ1yZaYo42LXKSrU2oGgR38pS1ij8nqQKNgtTWoYGpNevNXtCfgTy6loHveW9A==} + + '@better-fetch/fetch@1.3.1': + resolution: {integrity: sha512-ABkD1WhyfPZprKRQI3bhATjeiFuNWC9PXhfGWqL+sg/gKrM977oFrYkdb4msM3hgUGonr7KlOsOFT5TU2rht9g==} + '@bomb.sh/tab@0.0.19': resolution: {integrity: sha512-dTRfo9Q9B+lbLG3JCu8a/AGQSfD2XXcFcnakQzVjSOX+VvR/s9zpsH8TlqV3iHqazniRn1Ypwd1hcRlXcu/4BA==} hasBin: true @@ -486,6 +593,9 @@ packages: engines: {node: '>=6'} hasBin: true + '@hexagon/base64@1.1.28': + resolution: {integrity: sha512-lhqDEAvWixy3bZ+UOYbPwUbBkwBq5C1LAJ/xPC8Oi+lL54oyakv/npbA0aU2hgCsx/1NUd4IBvV03+aUBWxerw==} + '@hono/node-server@1.19.14': resolution: {integrity: sha512-GwtvgtXxnWsucXvbQXkRgqksiH2Qed37H9xHZocE5sA3N8O8O8/8FA3uclQXxXVzc9XBZuEOMK7+r02FmSpHtw==} engines: {node: '>=18.14.1'} @@ -683,6 +793,9 @@ packages: '@js-sdsl/ordered-map@4.4.2': resolution: {integrity: sha512-iUKgm52T8HOE/makSxjqoWhe95ZJA1/G1sYsGev2JDKUSS14KAgg1LHb+Ba+IPow0xflbnSkOsZcO08C7w1gYw==} + '@levischuck/tiny-cbor@0.2.11': + resolution: {integrity: sha512-llBRm4dT4Z89aRsm6u2oEZ8tfwL/2l6BwpZ7JcyieouniDECM5AqNgr/y08zalEIvW3RSK4upYyybDcmjXqAow==} + '@lingui/babel-plugin-lingui-macro@6.5.0': resolution: {integrity: sha512-p80TT6WMGXpFnAe9nP9ad/BJsADBxBvTa1QFy07tZqpg/5G5eOxUn641koQjHHr/EQ3yNstLohPV9aAVoKKsiA==} engines: {node: '>=22.19.0'} @@ -724,6 +837,10 @@ packages: '@ai-sdk/openai': optional: true + '@lunora/auth@1.0.0-alpha.36': + resolution: {integrity: sha512-tCDS9DU/S2zyn/4lCOFLhF/1fnDe5a2tDpv+/5q8T7xNgRc+t3byrGCsK1udneY7Rt4egH9NSrjDZ7cW8ju6Hw==} + engines: {node: ^22.15.0 || >=24.11.0} + '@lunora/bindings@1.0.0-alpha.10': resolution: {integrity: sha512-KNZhIQ7WpB2AJT5NXnc7456XQPYGQsXj2NCpEzH3e/ltQurS+p6mAba3hekUAxSYSiTKF8MPsQIBJ40nGb6B+A==} engines: {node: ^22.15.0 || >=24.11.0} @@ -891,6 +1008,14 @@ packages: '@emnapi/core': ^1.7.1 '@emnapi/runtime': ^1.7.1 + '@noble/ciphers@2.2.0': + resolution: {integrity: sha512-Z6pjIZ/8IJcCGzb2S/0Px5J81yij85xASuk1teLNeg75bfT07MV3a/O2Mtn1I2se43k3lkVEcFaR10N4cgQcZA==} + engines: {node: '>= 20.19.0'} + + '@noble/hashes@2.2.0': + resolution: {integrity: sha512-IYqDGiTXab6FniAgnSdZwgWbomxpy9FtYvLKs7wCUs2a8RkITG+DFGO1DM9cr+E3/RgADRpFjrKVaJ1z6sjtEg==} + engines: {node: '>= 20.19.0'} + '@openfeature/core@1.11.0': resolution: {integrity: sha512-P0u3/ht/oZCQT89fOed+laLk0kZR529a825cS02uPDglxXbE97irWYpDAeRGGVETIzKfuy+H2g8c3Ccv/tXJNQ==} @@ -900,6 +1025,10 @@ packages: peerDependencies: '@openfeature/core': ^1.11.0 + '@opentelemetry/semantic-conventions@1.43.0': + resolution: {integrity: sha512-eSYWTm620tTk45EKSedaUL8MFYI8hW164hIXsgIHyxu3VobUB3fFCu5t0hQby6OoWRPsG1KkKUG2M5UadiLiVg==} + engines: {node: '>=14'} + '@oxc-project/types@0.139.0': resolution: {integrity: sha512-r9gHphtCs+1M7J0pw6Sn/hh/Wpa/iQrOOkrNAlVLF/gHq+/CJmHIWKKUUhdWjcD6CIa8idarspCsASiXCXvFUw==} @@ -1025,6 +1154,46 @@ packages: cpu: [x64] os: [win32] + '@peculiar/asn1-android@2.8.0': + resolution: {integrity: sha512-skLbS+IOGv1lUgDqtChr8xvtvEr3HMse/JGBaL2r1J1o/n7a8wqOrovMtlRq/UXLhxvmLaONP67hwtshgzwfzA==} + + '@peculiar/asn1-cms@2.8.0': + resolution: {integrity: sha512-NgekZOrSJFSBFLFoLfwePguAWAx7z1+f2TEsWFUMyiqqfntZ4+S/S5hzqME3q4pCA0iOsFKdwiQ35dwY24eVqA==} + + '@peculiar/asn1-csr@2.8.0': + resolution: {integrity: sha512-akbF8+uvleHs8sejNPQxwmVFuInAg6FMNHOwMILXfP518YfFJwdR3jr6oNUPOaEJfuEhn/vkNOCIT6ASUd4mbg==} + + '@peculiar/asn1-ecc@2.8.0': + resolution: {integrity: sha512-ohwlk+u9Rv2NOAY1c6MfHj45ATVF8R1DUN/WCgABiRtLi2ZftlZWZX7KvpAbU8v9xPcmoILfELeEABj/rn18AQ==} + + '@peculiar/asn1-pfx@2.8.0': + resolution: {integrity: sha512-5yof1ytoB++RQtaFbqSUJ8pxDJtZT6vbVqZ8XoJ61ph7UjNVvfFwAilnCodqkNsAodpy13gDhoxZXw00pghnyg==} + + '@peculiar/asn1-pkcs8@2.8.0': + resolution: {integrity: sha512-qAKXtLpBEw9LqhKpjw3ajZSXlBur+ipW+y2ivVBQAG6F6qRx94yO+1ZR4mvw+YaCfKSaOzLeYEzsPaBp4SJELA==} + + '@peculiar/asn1-pkcs9@2.8.0': + resolution: {integrity: sha512-b5nDWCnkV60+cQ141D6sVVwK9nz64R5n3zSVnklGd+ECdkW2Ol3U1a6yYFlalpSOaD557yuJB64A+q42jG7lUQ==} + + '@peculiar/asn1-rsa@2.8.0': + resolution: {integrity: sha512-zHEUlCqB2mk7x2lxDwHHJy7hWZOPdGHVlsmITWKB5/PbQo61atbu9PJ/0r9dQNMwFzbKPXZ8uK8/91eUhRznSg==} + + '@peculiar/asn1-schema@2.8.0': + resolution: {integrity: sha512-7YT0U/ze0tF2QOBbE15gKZwy5tvgGyLRiRHLzhlbOpf7BT032oBSd0haZqXn5W6l26WLlu3dyxzjM+2638/z2Q==} + + '@peculiar/asn1-x509-attr@2.8.0': + resolution: {integrity: sha512-tHjkfS/qhMnmrlB2J9NhflQlQ7In3khO3CfmVrriOlpTeErY9ZIKOso1hQ5JQiyrJ7ShvqVPk7E5fQmbclkSKA==} + + '@peculiar/asn1-x509@2.8.0': + resolution: {integrity: sha512-N0CMuhWUzsWEVq6F1q9X6+VKUnWzSW+cSVg+aPaGGwDdbFoFWTYgin5MHwXgpWd6y9COMBxnfy/Qc+Xc7F0Zwg==} + + '@peculiar/utils@2.0.3': + resolution: {integrity: sha512-+oL3HPFRIZ1St2K50lWCXiioIgSoxzz7R1J3uF6neO2yl1sgmpgY6XXJH4BdpoDkMWznQTeYF6oWNDZLCdQ4eQ==} + + '@peculiar/x509@1.14.3': + resolution: {integrity: sha512-C2Xj8FZ0uHWeCXXqX5B4/gVFQmtSkiuOolzAgutjTfseNOHT3pUjljDZsTSxXFGgio54bCzVFqmEOUrIVk8RDA==} + engines: {node: '>=20.0.0'} + '@poppinss/colors@4.1.6': resolution: {integrity: sha512-H9xkIdFswbS8n1d6vmRd8+c10t2Qe+rZITbbDHHkQixH5+2x1FDGmi/0K+WgWiqQFKPSlIYB7jlH6Kpfn6Fleg==} @@ -1249,6 +1418,13 @@ packages: '@shikijs/vscode-textmate@10.0.2': resolution: {integrity: sha512-83yeghZ2xxin3Nj8z1NMd/NCuca+gsYXswywDy5bHvwlWL8tpTQmzGeUuHd9FC3E/SBEMvzJRwWEOz5gGes9Qg==} + '@simplewebauthn/browser@13.3.0': + resolution: {integrity: sha512-BE/UWv6FOToAdVk0EokzkqQQDOWtNydYlY6+OrmiZ5SCNmb41VehttboTetUM3T/fr6EAFYVXjz4My2wg230rQ==} + + '@simplewebauthn/server@13.3.2': + resolution: {integrity: sha512-KEDhfcGP1PAKRVSDjA3npTQFqS2b/srm+ipoNBNHdkzrHAlaRQUTE+a5f4ywsx6thxAw1NU2rYcLEY1949RGbQ==} + engines: {node: '>=20.0.0'} + '@sinclair/typebox@0.27.12': resolution: {integrity: sha512-hhyNJ+nbR6ZR7pToHvllEFun9TL0sbL+tk/ON75lo+Xas054uez98qRbsuNt7MBCyZKK4+8Yli/OAGZhmfBZ/g==} @@ -1306,6 +1482,11 @@ packages: '@tanstack/query-core@5.101.4': resolution: {integrity: sha512-gNwcvOJcRbLWPOLG/2OBm+zM+Yv+MKsXKEOWC57USuZDEsI71hEErQsiEGx5wX9rzWWkfwM0fVSPoiIFSsxfiw==} + '@tanstack/react-db@0.1.94': + resolution: {integrity: sha512-ZtSMBOCdR/ElcBxg84uboXrqQ+kqiOwlq6kTy+o54UDywYr/by02jmWKHqayrnoiPVlrx83WNHDaomfe141f4A==} + peerDependencies: + react: '>=16.8.0' + '@tanstack/react-query@5.101.4': resolution: {integrity: sha512-yRg2pfOCxIs4ZJW3XYYHU/WgtD04FHSnfHlpRT7h7pR77hwkdRG4wxbKe4aq6P0RvXUTBSQpQeadS1SUYUe+KA==} peerDependencies: @@ -1376,6 +1557,9 @@ packages: '@tybys/wasm-util@0.10.3': resolution: {integrity: sha512-F3fo1MYrRJYL3zER0OUOmkutjr1Vp23m7OsSgp7nq4SP6OqX6C/56XFIPAl5bt3zaBRjmW7SGz3u/6LwFpYcOg==} + '@types/chai@5.2.3': + resolution: {integrity: sha512-Mw558oeA9fFbv65/y4mHtXDs9bPnFMZAL/jxdPFUpOHHIXX91mcgEHbS5Lahr+pwZFR8A7GQleRWeI6cGFC2UA==} + '@types/d3-array@3.2.2': resolution: {integrity: sha512-hOLWVbm7uRza0BYXpIIW5pxfrKe0W+D5lrFiAEYR+pb6w3N2SwSMaJbXdUfSEv+dT4MfHBLtn5js0LAWaO6otw==} @@ -1415,6 +1599,9 @@ packages: '@types/d3-zoom@3.0.8': resolution: {integrity: sha512-iqMC4/YlFCSlO8+2Ii1GGGliCAY4XdeG748w5vQUbevlbDu0zSjH/+jojorQVBK/se0j6DUFNPBGSqD3YWYnDw==} + '@types/deep-eql@4.0.2': + resolution: {integrity: sha512-c9h9dVVMigMPc4bwTvC5dxqtqJZwQPePsWjPlpSOnojbor6pGqdk541lfA7AqFQr5pB1BRdq0juY9db81BwyFw==} + '@types/estree@1.0.9': resolution: {integrity: sha512-GhdPgy1el4/ImP05X05Uw4cw2/M93BCUmnEvWZNStlCzEKME4Fkk+YpoA5OiHNQmoS7Cafb8Xa3Pya8m1Qrzeg==} @@ -1497,6 +1684,18 @@ packages: engines: {node: ^22.14.0 || >=24.10.0} os: [darwin, linux, win32] + '@visulima/disposable-email-domains@1.0.1': + resolution: {integrity: sha512-G5YIQOqr6np1aOpIJiI0Tk63i4cRcXMY3HtEapguu32eyUizUyg/ICjMvn15mP7sWjm7a2xWEvtYlVJAIH7guQ==} + engines: {node: ^22.14.0 || >=24.10.0} + + '@visulima/email-provider-mx@1.0.0': + resolution: {integrity: sha512-ado7nF5ow9tozAgYioHCeFs56T0yGP3QT/4Ta6928/GAyJJqKakWCAguIqzQvDUW+W7aYLC9sSIWTTa0FxSWvw==} + engines: {node: ^22.14.0 || >=24.10.0} + + '@visulima/email-verifier@1.0.1': + resolution: {integrity: sha512-GqIELl0Cud0vpcUPlH0Lcoy/FYp8cpggkJwn4sivH9Ar69p5SK9VrPWy4sRPptiaAO5CL1unfRDn1hmSlh0YdQ==} + engines: {node: ^22.14.0 || >=24.10.0} + '@visulima/email@2.1.1': resolution: {integrity: sha512-HMvn+WJb+gH0nDfbsBi5bSbsBlfwApCiJLtXbdrOW1ug5kn1+OHgdHEjLxbJjccDmR+Cmmo4p7W/+XT6iReb0A==} engines: {node: ^22.14.0 || >=24.10.0} @@ -1557,6 +1756,10 @@ packages: engines: {node: ^22.14.0 || >=24.10.0} hasBin: true + '@visulima/free-email-domains@1.0.0': + resolution: {integrity: sha512-PZ8dXsi5brBcY0SUwjeUVvRf3+6hH4jQGAWtKGYrwS07m2r9JJUWKmfQzljxptDt5ex/6kE3oImQ6UyY0ed2rw==} + engines: {node: ^22.14.0 || >=24.10.0} + '@visulima/fs@5.0.4': resolution: {integrity: sha512-eJAJGtezASY/UNUkKJwqgZkVcrqdLyp9rJ282Bud2bx98Mekx667aBZ5UOsrB4IduZQ7bMfdqccNVGtnM8TnEg==} engines: {node: ^22.14.0 || >=24.10.0} @@ -1766,6 +1969,35 @@ packages: babel-plugin-react-compiler: optional: true + '@vitest/expect@4.1.10': + resolution: {integrity: sha512-YsCn+qAk1GWjQOWFEsEcL2gNQ0zmVmQu3T03qP6UyjhtmdtwtbuI+DASn/7iQB3HGTXkdBwGddzxPlmiql5vlA==} + + '@vitest/mocker@4.1.10': + resolution: {integrity: sha512-v0xaezt+DKEmKfaxg133ldzADrwLGd7Ze1MfQQTYfvs8OqZIwbxyxaYURivwV7sWy5fqn3rH5uOrSp07bp44Ow==} + peerDependencies: + msw: ^2.4.9 + vite: ^6.0.0 || ^7.0.0 || ^8.0.0 + peerDependenciesMeta: + msw: + optional: true + vite: + optional: true + + '@vitest/pretty-format@4.1.10': + resolution: {integrity: sha512-W1HsjSH4MXQ9YfmmhLAoIYf1HRfekQCGngeIgcei6MP5QQGWUe0gkopdZQaVCFO+JDJMrAJGwa5pRpNpvy4P8Q==} + + '@vitest/runner@4.1.10': + resolution: {integrity: sha512-IKI6kpIH+LmpROplyLwBBaCfMgOZOMsygVa6BARD6ahA04VRuJSa6OaVG7kRvSEMD870Vd91rSSw0eegtWyLGg==} + + '@vitest/snapshot@4.1.10': + resolution: {integrity: sha512-xRkfOT1qpTAi/Ti4Y1LtfRc3kEuqxGw59eN2jN9pRWMtS/XDevekhcFSqvQqjUNGksfjMJu3Y+oJ+4Ypn2OaJw==} + + '@vitest/spy@4.1.10': + resolution: {integrity: sha512-PLf/Ugvoq5wO/b4rwYCR1h2PSIdXz7wnkQFMiUpLdtM7l6pqVFcQIBEHyT1+l+cj7mNwAfZHzqXqDyjvOuwbDw==} + + '@vitest/utils@4.1.10': + resolution: {integrity: sha512-fy9am/HWxbaGt/Sawrp90vt6Y6jQwf1RX77cz3uwoJwJVMli/e1IEwRPnMNJ7vKfPTwo0diXifkpPvwH9v7nGA==} + '@vue/compiler-core@3.5.40': resolution: {integrity: sha512-39E8IgOhTbVDnoJFMKc2DvYnypcZwUqgUhQkccva/0m6FUwtIKSGV7n1hpVmYcFaoRAwf9pBcwnKlCEsN63ZEQ==} @@ -1864,6 +2096,14 @@ packages: asn1@0.2.6: resolution: {integrity: sha512-ix/FxPn0MDjeyJ7i/yoHGFt/EX6LyNbxSEhPPXODPL+KB0VPk86UYfL0lMdy+KCnv+fmvIzySwaK5COwqVbWTQ==} + asn1js@3.0.10: + resolution: {integrity: sha512-S2s3aOytiKdFRdulw2qPE51MzjzVOisppcVv7jVFR+Kw0kxwvFrDcYA0h7Ndqbmj0HkMIXYWaoj7fli8kgx1eg==} + engines: {node: '>=12.0.0'} + + assertion-error@2.0.1: + resolution: {integrity: sha512-Izi8RQcffqCeNVgFigKli1ssklIbpHnCYc6AknXGYoB6grJqyeby7jv12JUQgmTAnIDnbck1uxksT4dzN3PWBA==} + engines: {node: '>=12'} + axobject-query@4.1.0: resolution: {integrity: sha512-qIj0G9wZbMGNLjLmg1PT6v2mE9AH2zlnADJD/2tC6E00hgmhUOfEB6greHPAfLRSufHqROIUTkw6E+M3lH0PTQ==} engines: {node: '>= 0.4'} @@ -1883,6 +2123,76 @@ packages: bcrypt-pbkdf@1.0.2: resolution: {integrity: sha512-qeFIXtP4MSoi6NLqO12WfqARWWuCKi2Rn/9hJLEmtB5yTNr9DqFWkJRCf2qShWzPeAMRnOgCrq0sg/KLv5ES9w==} + better-auth@1.6.24: + resolution: {integrity: sha512-MtBxUKI2y5hXBBLU1MAXkUA/xTEPJ2lkzWLKCTQyG/IKNQQ8ve3tZK0uvq4AIv9iOLZHKUpBOBsDoqTEHaRb9Q==} + peerDependencies: + '@lynx-js/react': '*' + '@prisma/client': ^5.0.0 || ^6.0.0 || ^7.0.0 + '@sveltejs/kit': ^2.0.0 + '@tanstack/react-start': ^1.0.0 + '@tanstack/solid-start': ^1.0.0 + better-sqlite3: ^12.0.0 + drizzle-kit: '>=0.31.4' + drizzle-orm: ^0.45.2 + mongodb: ^6.0.0 || ^7.0.0 + mysql2: ^3.0.0 + next: ^14.0.0 || ^15.0.0 || ^16.0.0 + pg: ^8.0.0 + prisma: ^5.0.0 || ^6.0.0 || ^7.0.0 + react: ^18.0.0 || ^19.0.0 + react-dom: ^18.0.0 || ^19.0.0 + solid-js: ^1.0.0 + svelte: ^4.0.0 || ^5.0.0 + vitest: ^2.0.0 || ^3.0.0 || ^4.0.0 + vue: ^3.0.0 + peerDependenciesMeta: + '@lynx-js/react': + optional: true + '@prisma/client': + optional: true + '@sveltejs/kit': + optional: true + '@tanstack/react-start': + optional: true + '@tanstack/solid-start': + optional: true + better-sqlite3: + optional: true + drizzle-kit: + optional: true + drizzle-orm: + optional: true + mongodb: + optional: true + mysql2: + optional: true + next: + optional: true + pg: + optional: true + prisma: + optional: true + react: + optional: true + react-dom: + optional: true + solid-js: + optional: true + svelte: + optional: true + vitest: + optional: true + vue: + optional: true + + better-call@1.3.7: + resolution: {integrity: sha512-Al51/hjp2SSp6CRTa3F2ptcx4yQVS1xWKoY6jcVXqNYOap6mHFP2jUBn5EwIL4iIed1/Sq4hlQ+Umm6EflZG+w==} + peerDependencies: + zod: ^4.0.0 + peerDependenciesMeta: + zod: + optional: true + bl@4.1.0: resolution: {integrity: sha512-1W07cM9gS6DcLperZfFSj+bWLtaPGSOHWhPiGzXmvVJbRLdG82sH/Kn8EtW1VqWVA54AKf2h5k5BbnIbwF3h6w==} @@ -1940,6 +2250,10 @@ packages: engines: {node: '>=10'} hasBin: true + chai@6.2.2: + resolution: {integrity: sha512-NUPRluOfOiTKBKvWPtSD4PhFvWCqOi0BGStNWs57X9js7XGTprSmFoz5F0tWhR4WPjNeR9jXqdC7/UpSJTnlRg==} + engines: {node: '>=18'} + chalk@4.1.2: resolution: {integrity: sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==} engines: {node: '>=10'} @@ -2135,6 +2449,9 @@ packages: resolution: {integrity: sha512-cZTYKFWspt9jZsMscWo8sc/5lbPC9Q0N5nBLgb+Yd915iL3udB1uFgS3B8YCx66UVHq018DAVFoee7x+gxggeA==} engines: {node: '>=0.10.0'} + defu@6.1.7: + resolution: {integrity: sha512-7z22QmUWiQ/2d0KkdYmANbRUVABpZ9SNYyH5vx6PZ+nE5bcC0l7uFvEfHlyld/HcGBFTL536ClDt3DEcSlEJAQ==} + depd@2.0.0: resolution: {integrity: sha512-g7nH6P6dyDioJogAAGprGpCtVImJhpPk/roCzdb3fIh61/s/nPsfR6onyMwkCAR/OlC3yBC0lESvUoQEAssIrw==} engines: {node: '>= 0.8'} @@ -2345,6 +2662,9 @@ packages: estree-walker@2.0.2: resolution: {integrity: sha512-Rfkk/Mp/DL7JVje3u18FxFujQlTNR2q6QfMSMB7AvCBx91NGj/ba3kCfza0f6dVDbw7YlRf/nDrn7pQrCCyQ/w==} + estree-walker@3.0.3: + resolution: {integrity: sha512-7RUKfXgSMMkzt6ZuXmqapOurLGPPfgj6l9uRZ7lRGolvk0y2yocc35LdcxKC5PQZdn2DMqioAQ2NoWcrTKmm6g==} + etag@1.8.1: resolution: {integrity: sha512-aIL5Fx7mawVa300al2BnEE4iNvo1qETxLrPI/o05L7z6go7fCw1J6EQmbK4FmJ2AS7kgVF/KEZWufBfdClMcPg==} engines: {node: '>= 0.6'} @@ -2360,6 +2680,10 @@ packages: 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.6.0: resolution: {integrity: sha512-XKJXDsASUOo0LLtFwW5hCcQGH0N4WQc/Rn8/Pvoia+TJFOkkFPvrtW9lZOeeNcxQJspvOIERMwiRLsVFlhHEkA==} engines: {node: '>= 16'} @@ -2661,6 +2985,10 @@ packages: resolution: {integrity: sha512-o+NO+8WrRiQEE4/7nwRJhN1HWpVmJm511pBHUxPLtp0BUISzlBplORYSmTclCnJvQq2tKu/sgl3xVpkc7ZWuQQ==} engines: {node: '>=6'} + kysely@0.29.4: + resolution: {integrity: sha512-y5mVgQNkMbs1eK9Xyc0pmNdabN2wHhRYY/5r4W5HrUT1rYCEPeVNSj1RUJeSDKT3U0p+mXCvLgkrFuIafYI6BA==} + engines: {node: '>=22.0.0'} + leac@0.6.0: resolution: {integrity: sha512-y+SqErxb8h7nE/fiEX07jsbuhrpO9lL8eca7/Y1nuWV2moNlXhyd59iDGcRf6moVyDMbmTNzL40SUyrFU/yDpg==} @@ -2878,6 +3206,10 @@ packages: engines: {node: ^10 || ^12 || ^13.7 || ^14 || >=15.0.1} hasBin: true + nanostores@1.4.1: + resolution: {integrity: sha512-PGd3uPojJB9Z07d5NX3Db/SOSBbyy3wLMUGq0GpnEEJfVzY9mq7daPMAZ3jObV5D3Jn+YKND636eI5ULg7F80Q==} + engines: {node: ^20.0.0 || >=22.0.0} + negotiator@1.0.0: resolution: {integrity: sha512-8Ofs/AUQh8MaEcrlq5xOX0CQ9ypTF5dl78mjlMNfOK08fzpgTHQRQPBxcPlEtIw0yRpws+Zo/3r+5WRby7u3Gg==} engines: {node: '>= 0.6'} @@ -2902,6 +3234,10 @@ packages: resolution: {integrity: sha512-W67iLl4J2EXEGTbfeHCffrjDfitvLANg0UlX3wFUUSTx92KXRFegMHUVgSqE+wvhAbi4WqjGg9czysTV2Epbew==} engines: {node: '>= 0.4'} + obug@2.1.4: + resolution: {integrity: sha512-4a+OsYv9UktOJKE+l1A4OufDgdRF9PifWj+tJnHURo/P+WOxpG4GzUFL9qCalmWauao6ogiG+QvnCovwPoyAWA==} + engines: {node: '>=12.20.0'} + on-finished@2.4.1: resolution: {integrity: sha512-oVlzkg3ENAhCk2zdv7IJwd/QUD4z2RxRwpkcGY8psCVcCYZNq4wYnVWALHM+brtuJjePWiYF/ClmuDr8Ch5+kg==} engines: {node: '>= 0.8'} @@ -3008,6 +3344,13 @@ packages: pump@3.0.4: resolution: {integrity: sha512-VS7sjc6KR7e1ukRFhQSY5LM2uBWAUPiOPa/A3mkKmiMwSmRFUITt0xuj+/lesgnCv+dPIEYlkzrcyXgquIHMcA==} + pvtsutils@1.3.6: + resolution: {integrity: sha512-PLgQXQ6H2FWCaeRak8vvk1GW462lMxB5s3Jm673N82zI4vqtVUPuZdffdZbPDFRoU8kAhItWFtPCWiPpp4/EDg==} + + pvutils@1.1.5: + resolution: {integrity: sha512-KTqnxsgGiQ6ZAzZCVlJH5eOjSnvlyEgx1m8bkRJfOhmGRqfo5KLvmAlACQkrjEtOQ4B7wF9TdSLIs9O90MX9xA==} + engines: {node: '>=16.0.0'} + qs@6.15.3: resolution: {integrity: sha512-O9gl3zCl5h5blw1KGUzQKhA5oUXSl8rwUIM5o0S3nCXMliSvy5Dzx7/DJcI+SwgICv+IneSZwhBh1oSyEHA71A==} engines: {node: '>=0.6'} @@ -3070,6 +3413,9 @@ packages: redux@5.0.1: resolution: {integrity: sha512-M9/ELqF6fy8FwmkpnF0S3YKOqMyoWJ4+CS5Efg2ct3oY9daQvd/Pc71FpGZsVsbl3Cpb+IIcjBDUnnyBdQbq4w==} + reflect-metadata@0.2.2: + resolution: {integrity: sha512-urBwgfrvVP/eAyXx4hluJivBKzuEbSQs9rKWCrCkbSxNv8mxPcUZKeuoF3Uy4mJl3Lwprp6yy5/39VWigZ4K6Q==} + regex-recursion@6.0.2: resolution: {integrity: sha512-0YCaSCq2VRIebiaUviZNs0cBz1kg5kVS2UKUfNIx8YVs1cN3AV7NTctO5FOKBA+UT2BPJIWZauYHPqJODG50cg==} @@ -3098,6 +3444,9 @@ packages: engines: {node: ^20.19.0 || >=22.12.0} hasBin: true + rou3@0.7.12: + resolution: {integrity: sha512-iFE4hLDuloSWcD7mjdCDhx2bKcIsYbtOTpfH5MHHLSKMOUyjqQXTeZVa289uuwEGEKFoE/BAPbhaU4B774nceg==} + router@2.2.0: resolution: {integrity: sha512-nLTrUKm2UyiL7rlhapu/Zl45FwNgkZGaCpZbIHajDYgwlJCOzLSk+cIPAnsEqV955GjILJnKbdQC1nVPz+gAYQ==} engines: {node: '>= 18'} @@ -3144,6 +3493,9 @@ packages: resolution: {integrity: sha512-xRXBn0pPqQTVQiC8wyQrKs2MOlX24zQ0POGaj0kultvoOCstBQM5yvOhAVSUwOMjQtTvsPWoNCHfPGwaaQJhTw==} engines: {node: '>= 18'} + set-cookie-parser@3.1.2: + resolution: {integrity: sha512-5/r/lTwbJ3zQ+qwdUFZYeRNqda7P5HD8zQKqlSjdGt1/S0cjLAphHusj4Y58ahDtWn/g32xrIS58/ikOvwl0Lw==} + setprototypeof@1.2.0: resolution: {integrity: sha512-E5LDX7Wrp85Kil5bhZv46j8jOeboKq5JMmYM3gVGdGH8xFpPWXUMsNrlODCrkoxMEeNi/XZIwuRvY4XNwYMJpw==} @@ -3183,6 +3535,9 @@ packages: resolution: {integrity: sha512-6x6dK6zJdpTzF4sQeNYxwtvBzf6Eg4GtlesS94HOvTudUeyK2WXAaIfmDgsyslYrRBeFIlsi54AYsFGUuhmvrQ==} engines: {node: '>= 0.4'} + siginfo@2.0.0: + resolution: {integrity: sha512-ybx0WO1/8bSBLEWXZvEd7gMW3Sn3JFlW3TvX1nREbDLRNQNaeNN8WK0meBwPdAaOI7TtRRRJn/Es1zhrrCHu7g==} + signal-exit@4.1.0: resolution: {integrity: sha512-bzyZ1e88w9O1iNJbKnOlvYTrWPDl46O1bG0D3XInv+9tkPrxrN8jUUTiFlDkkmKWgn1M6CfIA13SuGqOa9Korw==} engines: {node: '>=14'} @@ -3219,10 +3574,16 @@ packages: resolution: {integrity: sha512-wPldCk3asibAjQ/kziWQQt1Wh3PgDFpC0XpwclzKcdT1vql6KeYxf5LIt4nlFkUeR8WuphYMKqUA56X4rjbfgQ==} engines: {node: '>=10.16.0'} + stackback@0.0.2: + resolution: {integrity: sha512-1XMJE5fQo1jGH6Y/7ebnwPOBEkIEnT4QF32d5R1+VXdXveM0IBMJt8zfaxX1P3QhVwrYe+576+jkANtSS2mBbw==} + statuses@2.0.2: resolution: {integrity: sha512-DvEy55V3DB7uknRo+4iOGT5fP1slR8wQohVdknigZPMpMstaKJQWhwiYBACJE3Ul2pTnATihhBYnRhZQHGBiRw==} engines: {node: '>= 0.8'} + std-env@4.2.0: + resolution: {integrity: sha512-oCUKSupKTHX53EyjDtuZQ64pjLJ6yYCtpmEw0goYxtjG9KpbRe8KAsl2tBUGU9DyMcJ0RwJ8GqJAFzMXcXW1Rw==} + string-width@4.2.3: resolution: {integrity: sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==} engines: {node: '>=8'} @@ -3273,6 +3634,9 @@ packages: tiny-invariant@1.3.3: resolution: {integrity: sha512-+FbBPE1o9QAYvviau/qC5SE3caw21q3xkvWKBtja5vgqOWIHHJ3ioaq1VPfn/Szqctz2bU/oYeKd9/z5BL+PVg==} + tinybench@2.9.0: + resolution: {integrity: sha512-0+DUvqWMValLmha6lr4kD8iAMK1HzV0/aKnCtWb9v9641TnP/MFb7Pc2bxoxQjTXAErryXVgUOfv2YqNllqGeg==} + tinyexec@1.2.4: resolution: {integrity: sha512-SHf/r48b7vOrjve9PxJo3MN5v5yuyjHvdUcrQffT3WXMUfnGmHDVbC4k3sHJaJTgZCwpUplIaAo5ANtMyp3YHg==} engines: {node: '>=18'} @@ -3281,6 +3645,10 @@ packages: resolution: {integrity: sha512-wXR/dYpcqKmfWpEdZjiKJOwCNFndD0DMnrW/cYjVGttEkBfVgcLFHoNrlj47mjOVic9yyNu65alsgF4NQyTa2g==} engines: {node: '>=12.0.0'} + tinyrainbow@3.1.0: + resolution: {integrity: sha512-Bf+ILmBgretUrdJxzXM0SgXLZ3XfiaUuOj/IKQHuTXip+05Xn+uyEYdVg0kYDipTBcLrCVyUzAPz7QmArb0mmw==} + engines: {node: '>=14.0.0'} + toidentifier@1.0.1: resolution: {integrity: sha512-o5sSPKEkg/DIQNmH43V0/uerLrpzVedkUh8tGNvaeXpfpuwjKenlSox/2O/BTlZUtEe+JG7s5YhEz608PlAHRA==} engines: {node: '>=0.6'} @@ -3294,9 +3662,16 @@ packages: tseep@1.3.1: resolution: {integrity: sha512-ZPtfk1tQnZVyr7BPtbJ93qaAh2lZuIOpTMjhrYa4XctT8xe7t4SAW9LIxrySDuYMsfNNayE51E/WNGrNVgVicQ==} + tslib@1.14.1: + resolution: {integrity: sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==} + tslib@2.8.1: resolution: {integrity: sha512-oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w==} + tsyringe@4.10.0: + resolution: {integrity: sha512-axr3IdNuVIxnaK5XGEUFTu3YmAQ6lllgrvqfEoR16g/HGnYY/6We4oWENtAnzK6/LpJ2ur9PAb80RBt7/U4ugw==} + engines: {node: '>= 6.0.0'} + tweetnacl@0.14.5: resolution: {integrity: sha512-KXXFFdAbFXY4geFIwoyNK+f5Z1b7swfXABfL7HXCmoIWMKU3dmS26672A4EeQtDzLKy7SXmfBu51JolvEKwtGA==} @@ -3411,6 +3786,47 @@ packages: yaml: optional: true + vitest@4.1.10: + resolution: {integrity: sha512-R9jUTe5S4Qb0HCd4TNqpC7oGcrMssMRGXLW80ubjWsW9VH5GF8y1Y0SFLY9AbqSk6nt0PnOx4H4WNJYZ13GUPw==} + engines: {node: ^20.0.0 || ^22.0.0 || >=24.0.0} + hasBin: true + peerDependencies: + '@edge-runtime/vm': '*' + '@opentelemetry/api': ^1.9.0 + '@types/node': ^20.0.0 || ^22.0.0 || >=24.0.0 + '@vitest/browser-playwright': 4.1.10 + '@vitest/browser-preview': 4.1.10 + '@vitest/browser-webdriverio': 4.1.10 + '@vitest/coverage-istanbul': 4.1.10 + '@vitest/coverage-v8': 4.1.10 + '@vitest/ui': 4.1.10 + happy-dom: '*' + jsdom: '*' + vite: ^6.0.0 || ^7.0.0 || ^8.0.0 + peerDependenciesMeta: + '@edge-runtime/vm': + optional: true + '@opentelemetry/api': + optional: true + '@types/node': + optional: true + '@vitest/browser-playwright': + optional: true + '@vitest/browser-preview': + optional: true + '@vitest/browser-webdriverio': + optional: true + '@vitest/coverage-istanbul': + optional: true + '@vitest/coverage-v8': + optional: true + '@vitest/ui': + optional: true + happy-dom: + optional: true + jsdom: + optional: true + vue-demi@0.14.10: resolution: {integrity: sha512-nMZBOwuzabUO0nLgIcc6rycZEebF6eeUfaiQx9+WSk8e29IbLvPU9feI6tqW4kTo3hvoYAJkMh8n8D0fuISphg==} engines: {node: '>=12'} @@ -3435,6 +3851,11 @@ packages: engines: {node: '>= 8'} hasBin: true + why-is-node-running@2.3.0: + resolution: {integrity: sha512-hUrmaWBdVDcxvYqnyh09zunKzROWjbZTiNy8dBEjkS7ehEDQibXJ7XvlmtbwuTclUiIyN+CyXQD4Vmko8fNm8w==} + engines: {node: '>=8'} + hasBin: true + window-size@1.1.1: resolution: {integrity: sha512-5D/9vujkmVQ7pSmc0SCBmHXbkv6eaHwXEx65MywhmUMsI8sGqJ972APq1lotfcwMKPFLuCFfL8xGHLIp7jaBmA==} engines: {node: '>= 0.10.0'} @@ -3706,6 +4127,73 @@ snapshots: optionalDependencies: '@types/react': 19.2.17 + '@better-auth/core@1.6.24(@better-auth/utils@0.4.2)(@better-fetch/fetch@1.3.1)(@cloudflare/workers-types@4.20260702.1)(better-call@1.3.7(zod@4.4.3))(jose@6.2.4)(kysely@0.29.4)(nanostores@1.4.1)': + dependencies: + '@better-auth/utils': 0.4.2 + '@better-fetch/fetch': 1.3.1 + '@opentelemetry/semantic-conventions': 1.43.0 + '@standard-schema/spec': 1.1.0 + better-call: 1.3.7(zod@4.4.3) + jose: 6.2.4 + kysely: 0.29.4 + nanostores: 1.4.1 + zod: 4.4.3 + optionalDependencies: + '@cloudflare/workers-types': 4.20260702.1 + + '@better-auth/drizzle-adapter@1.6.24(@better-auth/core@1.6.24(@better-auth/utils@0.4.2)(@better-fetch/fetch@1.3.1)(@cloudflare/workers-types@4.20260702.1)(better-call@1.3.7(zod@4.4.3))(jose@6.2.4)(kysely@0.29.4)(nanostores@1.4.1))(@better-auth/utils@0.4.2)(drizzle-orm@0.45.2(@cloudflare/workers-types@4.20260702.1)(kysely@0.29.4))': + dependencies: + '@better-auth/core': 1.6.24(@better-auth/utils@0.4.2)(@better-fetch/fetch@1.3.1)(@cloudflare/workers-types@4.20260702.1)(better-call@1.3.7(zod@4.4.3))(jose@6.2.4)(kysely@0.29.4)(nanostores@1.4.1) + '@better-auth/utils': 0.4.2 + optionalDependencies: + drizzle-orm: 0.45.2(@cloudflare/workers-types@4.20260702.1)(kysely@0.29.4) + + '@better-auth/kysely-adapter@1.6.24(@better-auth/core@1.6.24(@better-auth/utils@0.4.2)(@better-fetch/fetch@1.3.1)(@cloudflare/workers-types@4.20260702.1)(better-call@1.3.7(zod@4.4.3))(jose@6.2.4)(kysely@0.29.4)(nanostores@1.4.1))(@better-auth/utils@0.4.2)(kysely@0.29.4)': + dependencies: + '@better-auth/core': 1.6.24(@better-auth/utils@0.4.2)(@better-fetch/fetch@1.3.1)(@cloudflare/workers-types@4.20260702.1)(better-call@1.3.7(zod@4.4.3))(jose@6.2.4)(kysely@0.29.4)(nanostores@1.4.1) + '@better-auth/utils': 0.4.2 + optionalDependencies: + kysely: 0.29.4 + + '@better-auth/memory-adapter@1.6.24(@better-auth/core@1.6.24(@better-auth/utils@0.4.2)(@better-fetch/fetch@1.3.1)(@cloudflare/workers-types@4.20260702.1)(better-call@1.3.7(zod@4.4.3))(jose@6.2.4)(kysely@0.29.4)(nanostores@1.4.1))(@better-auth/utils@0.4.2)': + dependencies: + '@better-auth/core': 1.6.24(@better-auth/utils@0.4.2)(@better-fetch/fetch@1.3.1)(@cloudflare/workers-types@4.20260702.1)(better-call@1.3.7(zod@4.4.3))(jose@6.2.4)(kysely@0.29.4)(nanostores@1.4.1) + '@better-auth/utils': 0.4.2 + + '@better-auth/mongo-adapter@1.6.24(@better-auth/core@1.6.24(@better-auth/utils@0.4.2)(@better-fetch/fetch@1.3.1)(@cloudflare/workers-types@4.20260702.1)(better-call@1.3.7(zod@4.4.3))(jose@6.2.4)(kysely@0.29.4)(nanostores@1.4.1))(@better-auth/utils@0.4.2)': + dependencies: + '@better-auth/core': 1.6.24(@better-auth/utils@0.4.2)(@better-fetch/fetch@1.3.1)(@cloudflare/workers-types@4.20260702.1)(better-call@1.3.7(zod@4.4.3))(jose@6.2.4)(kysely@0.29.4)(nanostores@1.4.1) + '@better-auth/utils': 0.4.2 + + '@better-auth/passkey@1.6.24(@better-auth/core@1.6.24(@better-auth/utils@0.4.2)(@better-fetch/fetch@1.3.1)(@cloudflare/workers-types@4.20260702.1)(better-call@1.3.7(zod@4.4.3))(jose@6.2.4)(kysely@0.29.4)(nanostores@1.4.1))(@better-auth/utils@0.4.2)(@better-fetch/fetch@1.3.1)(better-auth@1.6.24(@cloudflare/workers-types@4.20260702.1)(drizzle-orm@0.45.2(@cloudflare/workers-types@4.20260702.1)(kysely@0.29.4))(react-dom@19.2.8(react@19.2.8))(react@19.2.8)(solid-js@1.9.14)(svelte@5.56.7)(vitest@4.1.10(@types/node@24.13.3)(vite@8.1.5(@types/node@24.13.3)(esbuild@0.28.1)(jiti@2.7.0)(yaml@2.9.0)))(vue@3.5.40(typescript@6.0.3)))(better-call@1.3.7(zod@4.4.3))(nanostores@1.4.1)': + dependencies: + '@better-auth/core': 1.6.24(@better-auth/utils@0.4.2)(@better-fetch/fetch@1.3.1)(@cloudflare/workers-types@4.20260702.1)(better-call@1.3.7(zod@4.4.3))(jose@6.2.4)(kysely@0.29.4)(nanostores@1.4.1) + '@better-auth/utils': 0.4.2 + '@better-fetch/fetch': 1.3.1 + '@simplewebauthn/browser': 13.3.0 + '@simplewebauthn/server': 13.3.2 + better-auth: 1.6.24(@cloudflare/workers-types@4.20260702.1)(drizzle-orm@0.45.2(@cloudflare/workers-types@4.20260702.1)(kysely@0.29.4))(react-dom@19.2.8(react@19.2.8))(react@19.2.8)(solid-js@1.9.14)(svelte@5.56.7)(vitest@4.1.10(@types/node@24.13.3)(vite@8.1.5(@types/node@24.13.3)(esbuild@0.28.1)(jiti@2.7.0)(yaml@2.9.0)))(vue@3.5.40(typescript@6.0.3)) + better-call: 1.3.7(zod@4.4.3) + nanostores: 1.4.1 + zod: 4.4.3 + + '@better-auth/prisma-adapter@1.6.24(@better-auth/core@1.6.24(@better-auth/utils@0.4.2)(@better-fetch/fetch@1.3.1)(@cloudflare/workers-types@4.20260702.1)(better-call@1.3.7(zod@4.4.3))(jose@6.2.4)(kysely@0.29.4)(nanostores@1.4.1))(@better-auth/utils@0.4.2)': + dependencies: + '@better-auth/core': 1.6.24(@better-auth/utils@0.4.2)(@better-fetch/fetch@1.3.1)(@cloudflare/workers-types@4.20260702.1)(better-call@1.3.7(zod@4.4.3))(jose@6.2.4)(kysely@0.29.4)(nanostores@1.4.1) + '@better-auth/utils': 0.4.2 + + '@better-auth/telemetry@1.6.24(@better-auth/core@1.6.24(@better-auth/utils@0.4.2)(@better-fetch/fetch@1.3.1)(@cloudflare/workers-types@4.20260702.1)(better-call@1.3.7(zod@4.4.3))(jose@6.2.4)(kysely@0.29.4)(nanostores@1.4.1))(@better-auth/utils@0.4.2)(@better-fetch/fetch@1.3.1)': + dependencies: + '@better-auth/core': 1.6.24(@better-auth/utils@0.4.2)(@better-fetch/fetch@1.3.1)(@cloudflare/workers-types@4.20260702.1)(better-call@1.3.7(zod@4.4.3))(jose@6.2.4)(kysely@0.29.4)(nanostores@1.4.1) + '@better-auth/utils': 0.4.2 + '@better-fetch/fetch': 1.3.1 + + '@better-auth/utils@0.4.2': + dependencies: + '@noble/hashes': 2.2.0 + + '@better-fetch/fetch@1.3.1': {} + '@bomb.sh/tab@0.0.19': {} '@cloudflare/kv-asset-handler@0.5.0': {} @@ -3908,6 +4396,8 @@ snapshots: protobufjs: 7.6.5 yargs: 17.7.3 + '@hexagon/base64@1.1.28': {} + '@hono/node-server@1.19.14(hono@4.12.31)': dependencies: hono: 4.12.31 @@ -4053,6 +4543,8 @@ snapshots: '@js-sdsl/ordered-map@4.4.2': {} + '@levischuck/tiny-cbor@0.2.11': {} + '@lingui/babel-plugin-lingui-macro@6.5.0': dependencies: '@babel/core': 7.29.7 @@ -4082,10 +4574,10 @@ snapshots: '@messageformat/parser': 5.1.1 js-sha256: 0.10.1 - '@lunora/advisor@1.0.0-alpha.33(@cloudflare/workers-types@4.20260702.1)': + '@lunora/advisor@1.0.0-alpha.33(@cloudflare/workers-types@4.20260702.1)(kysely@0.29.4)': dependencies: '@lunora/errors': 1.0.0-alpha.7 - '@lunora/server': 1.0.0-alpha.30(@cloudflare/workers-types@4.20260702.1) + '@lunora/server': 1.0.0-alpha.30(@cloudflare/workers-types@4.20260702.1)(kysely@0.29.4) transitivePeerDependencies: - '@aws-sdk/client-rds-data' - '@cloudflare/workers-types' @@ -4117,12 +4609,12 @@ snapshots: - sql.js - sqlite3 - '@lunora/agent@1.0.0-alpha.9(@ai-sdk/provider@4.0.3)(@cloudflare/workers-types@4.20260702.1)(@types/node@24.13.3)(luxon@3.7.2)(react-dom@19.2.8(react@19.2.8))(react@19.2.8)(zod@4.4.3)': + '@lunora/agent@1.0.0-alpha.9(@ai-sdk/provider@4.0.3)(@cloudflare/workers-types@4.20260702.1)(@types/node@24.13.3)(asn1js@3.0.10)(kysely@0.29.4)(luxon@3.7.2)(react-dom@19.2.8(react@19.2.8))(react@19.2.8)(zod@4.4.3)': dependencies: '@lunora/ai': 1.0.0-alpha.24(@ai-sdk/provider@4.0.3)(zod@4.4.3) '@lunora/errors': 1.0.0-alpha.7 - '@lunora/mail': 1.0.0-alpha.17(@types/node@24.13.3)(luxon@3.7.2)(react-dom@19.2.8(react@19.2.8))(react@19.2.8) - '@lunora/server': 1.0.0-alpha.30(@cloudflare/workers-types@4.20260702.1) + '@lunora/mail': 1.0.0-alpha.17(@types/node@24.13.3)(asn1js@3.0.10)(luxon@3.7.2)(react-dom@19.2.8(react@19.2.8))(react@19.2.8) + '@lunora/server': 1.0.0-alpha.30(@cloudflare/workers-types@4.20260702.1)(kysely@0.29.4) '@lunora/values': 1.0.0-alpha.10 '@lunora/workflow': 1.0.0-alpha.12 '@modelcontextprotocol/sdk': 1.29.0(zod@4.4.3) @@ -4197,21 +4689,82 @@ snapshots: - '@ai-sdk/provider' - zod + '@lunora/auth@1.0.0-alpha.36(@better-auth/core@1.6.24(@better-auth/utils@0.4.2)(@better-fetch/fetch@1.3.1)(@cloudflare/workers-types@4.20260702.1)(better-call@1.3.7(zod@4.4.3))(jose@6.2.4)(kysely@0.29.4)(nanostores@1.4.1))(@better-auth/utils@0.4.2)(@better-fetch/fetch@1.3.1)(@cloudflare/workers-types@4.20260702.1)(better-call@1.3.7(zod@4.4.3))(drizzle-orm@0.45.2(@cloudflare/workers-types@4.20260702.1)(kysely@0.29.4))(kysely@0.29.4)(nanostores@1.4.1)(react-dom@19.2.8(react@19.2.8))(react@19.2.8)(solid-js@1.9.14)(svelte@5.56.7)(vitest@4.1.10(@types/node@24.13.3)(vite@8.1.5(@types/node@24.13.3)(esbuild@0.28.1)(jiti@2.7.0)(yaml@2.9.0)))(vue@3.5.40(typescript@6.0.3))': + dependencies: + '@better-auth/passkey': 1.6.24(@better-auth/core@1.6.24(@better-auth/utils@0.4.2)(@better-fetch/fetch@1.3.1)(@cloudflare/workers-types@4.20260702.1)(better-call@1.3.7(zod@4.4.3))(jose@6.2.4)(kysely@0.29.4)(nanostores@1.4.1))(@better-auth/utils@0.4.2)(@better-fetch/fetch@1.3.1)(better-auth@1.6.24(@cloudflare/workers-types@4.20260702.1)(drizzle-orm@0.45.2(@cloudflare/workers-types@4.20260702.1)(kysely@0.29.4))(react-dom@19.2.8(react@19.2.8))(react@19.2.8)(solid-js@1.9.14)(svelte@5.56.7)(vitest@4.1.10(@types/node@24.13.3)(vite@8.1.5(@types/node@24.13.3)(esbuild@0.28.1)(jiti@2.7.0)(yaml@2.9.0)))(vue@3.5.40(typescript@6.0.3)))(better-call@1.3.7(zod@4.4.3))(nanostores@1.4.1) + '@lunora/errors': 1.0.0-alpha.7 + '@lunora/server': 1.0.0-alpha.30(@cloudflare/workers-types@4.20260702.1)(kysely@0.29.4) + '@lunora/values': 1.0.0-alpha.10 + '@visulima/disposable-email-domains': 1.0.1 + '@visulima/email-verifier': 1.0.1 + '@visulima/free-email-domains': 1.0.0 + '@visulima/redact': 3.0.0 + better-auth: 1.6.24(@cloudflare/workers-types@4.20260702.1)(drizzle-orm@0.45.2(@cloudflare/workers-types@4.20260702.1)(kysely@0.29.4))(react-dom@19.2.8(react@19.2.8))(react@19.2.8)(solid-js@1.9.14)(svelte@5.56.7)(vitest@4.1.10(@types/node@24.13.3)(vite@8.1.5(@types/node@24.13.3)(esbuild@0.28.1)(jiti@2.7.0)(yaml@2.9.0)))(vue@3.5.40(typescript@6.0.3)) + transitivePeerDependencies: + - '@aws-sdk/client-rds-data' + - '@better-auth/core' + - '@better-auth/utils' + - '@better-fetch/fetch' + - '@cloudflare/workers-types' + - '@electric-sql/pglite' + - '@libsql/client' + - '@libsql/client-wasm' + - '@lynx-js/react' + - '@neondatabase/serverless' + - '@op-engineering/op-sqlite' + - '@opentelemetry/api' + - '@planetscale/database' + - '@prisma/client' + - '@sveltejs/kit' + - '@tanstack/react-start' + - '@tanstack/solid-start' + - '@tidbcloud/serverless' + - '@types/better-sqlite3' + - '@types/pg' + - '@types/sql.js' + - '@upstash/redis' + - '@vercel/postgres' + - '@xata.io/client' + - better-call + - better-sqlite3 + - bun-types + - drizzle-kit + - drizzle-orm + - expo-sqlite + - gel + - knex + - kysely + - mongodb + - mysql2 + - nanostores + - next + - pg + - postgres + - prisma + - react + - react-dom + - solid-js + - sql.js + - sqlite3 + - svelte + - vitest + - vue + '@lunora/bindings@1.0.0-alpha.10': dependencies: '@lunora/errors': 1.0.0-alpha.7 - '@lunora/cli@1.0.0-alpha.97(@ai-sdk/provider@4.0.3)(@cloudflare/workers-types@4.20260702.1)(@lunora/server@1.0.0-alpha.30(@cloudflare/workers-types@4.20260702.1))(@lunora/studio@1.0.0-alpha.58(@cloudflare/workers-types@4.20260702.1)(@tanstack/solid-query@5.101.4(solid-js@1.9.14))(@tanstack/svelte-query@6.1.38(svelte@5.56.7))(@tanstack/vue-query@5.101.4(vue@3.5.40(typescript@6.0.3)))(@types/react-dom@19.2.3(@types/react@19.2.17))(@types/react@19.2.17)(immer@11.1.15)(react-dom@19.2.8(react@19.2.8))(react-is@18.3.1)(react@19.2.8)(redux@5.0.1)(solid-js@1.9.14)(svelte@5.56.7)(vue@3.5.40(typescript@6.0.3)))(@lunora/values@1.0.0-alpha.10)(@shikijs/langs@4.3.1)(@shikijs/themes@4.3.1)(@types/node@24.13.3)(@visulima/redact@3.0.0)(@visulima/tabular@4.0.0)(ai@7.0.31(zod@4.4.3))(express@5.2.1)(hono@4.12.31)(json5@2.2.3)(luxon@3.7.2)(react-dom@19.2.8(react@19.2.8))(shiki@4.3.1)(ws@8.21.0)(yaml@2.9.0)(zod@4.4.3)': + '@lunora/cli@1.0.0-alpha.97(@ai-sdk/provider@4.0.3)(@cloudflare/workers-types@4.20260702.1)(@lunora/server@1.0.0-alpha.30(@cloudflare/workers-types@4.20260702.1)(kysely@0.29.4))(@lunora/studio@1.0.0-alpha.58(@cloudflare/workers-types@4.20260702.1)(@tanstack/solid-query@5.101.4(solid-js@1.9.14))(@tanstack/svelte-query@6.1.38(svelte@5.56.7))(@tanstack/vue-query@5.101.4(vue@3.5.40(typescript@6.0.3)))(@types/react-dom@19.2.3(@types/react@19.2.17))(@types/react@19.2.17)(immer@11.1.15)(kysely@0.29.4)(react-dom@19.2.8(react@19.2.8))(react-is@18.3.1)(react@19.2.8)(redux@5.0.1)(solid-js@1.9.14)(svelte@5.56.7)(vue@3.5.40(typescript@6.0.3)))(@lunora/values@1.0.0-alpha.10)(@shikijs/langs@4.3.1)(@shikijs/themes@4.3.1)(@types/node@24.13.3)(@visulima/redact@3.0.0)(@visulima/tabular@4.0.0)(ai@7.0.31(zod@4.4.3))(asn1js@3.0.10)(express@5.2.1)(hono@4.12.31)(json5@2.2.3)(kysely@0.29.4)(luxon@3.7.2)(react-dom@19.2.8(react@19.2.8))(shiki@4.3.1)(ws@8.21.0)(yaml@2.9.0)(zod@4.4.3)': dependencies: '@bomb.sh/tab': 0.0.19 '@lunora/bindings': 1.0.0-alpha.10 - '@lunora/codegen': 1.0.0-alpha.52(@ai-sdk/provider@4.0.3)(@cloudflare/workers-types@4.20260702.1)(@types/node@24.13.3)(luxon@3.7.2)(react-dom@19.2.8(react@19.2.8))(react@19.2.8)(zod@4.4.3) - '@lunora/config': 1.0.0-alpha.78(@ai-sdk/provider@4.0.3)(@cloudflare/workers-types@4.20260702.1)(@lunora/server@1.0.0-alpha.30(@cloudflare/workers-types@4.20260702.1))(@lunora/studio@1.0.0-alpha.58(@cloudflare/workers-types@4.20260702.1)(@tanstack/solid-query@5.101.4(solid-js@1.9.14))(@tanstack/svelte-query@6.1.38(svelte@5.56.7))(@tanstack/vue-query@5.101.4(vue@3.5.40(typescript@6.0.3)))(@types/react-dom@19.2.3(@types/react@19.2.17))(@types/react@19.2.17)(immer@11.1.15)(react-dom@19.2.8(react@19.2.8))(react-is@18.3.1)(react@19.2.8)(redux@5.0.1)(solid-js@1.9.14)(svelte@5.56.7)(vue@3.5.40(typescript@6.0.3)))(@lunora/values@1.0.0-alpha.10)(@types/node@24.13.3)(luxon@3.7.2)(react-dom@19.2.8(react@19.2.8))(react@19.2.8)(zod@4.4.3) + '@lunora/codegen': 1.0.0-alpha.52(@ai-sdk/provider@4.0.3)(@cloudflare/workers-types@4.20260702.1)(@types/node@24.13.3)(asn1js@3.0.10)(kysely@0.29.4)(luxon@3.7.2)(react-dom@19.2.8(react@19.2.8))(react@19.2.8)(zod@4.4.3) + '@lunora/config': 1.0.0-alpha.78(@ai-sdk/provider@4.0.3)(@cloudflare/workers-types@4.20260702.1)(@lunora/server@1.0.0-alpha.30(@cloudflare/workers-types@4.20260702.1)(kysely@0.29.4))(@lunora/studio@1.0.0-alpha.58(@cloudflare/workers-types@4.20260702.1)(@tanstack/solid-query@5.101.4(solid-js@1.9.14))(@tanstack/svelte-query@6.1.38(svelte@5.56.7))(@tanstack/vue-query@5.101.4(vue@3.5.40(typescript@6.0.3)))(@types/react-dom@19.2.3(@types/react@19.2.17))(@types/react@19.2.17)(immer@11.1.15)(kysely@0.29.4)(react-dom@19.2.8(react@19.2.8))(react-is@18.3.1)(react@19.2.8)(redux@5.0.1)(solid-js@1.9.14)(svelte@5.56.7)(vue@3.5.40(typescript@6.0.3)))(@lunora/values@1.0.0-alpha.10)(@types/node@24.13.3)(asn1js@3.0.10)(kysely@0.29.4)(luxon@3.7.2)(react-dom@19.2.8(react@19.2.8))(react@19.2.8)(zod@4.4.3) '@lunora/container': 1.0.0-alpha.14 - '@lunora/d1': 1.0.0-alpha.37(@cloudflare/workers-types@4.20260702.1) + '@lunora/d1': 1.0.0-alpha.37(@cloudflare/workers-types@4.20260702.1)(kysely@0.29.4) '@lunora/errors': 1.0.0-alpha.7 '@lunora/runtime': 1.0.0-alpha.35 - '@lunora/seed': 1.0.0-alpha.29(@lunora/server@1.0.0-alpha.30(@cloudflare/workers-types@4.20260702.1))(@lunora/values@1.0.0-alpha.10) + '@lunora/seed': 1.0.0-alpha.29(@lunora/server@1.0.0-alpha.30(@cloudflare/workers-types@4.20260702.1)(kysely@0.29.4))(@lunora/values@1.0.0-alpha.10) '@visulima/cerebro': 3.0.0(@bomb.sh/tab@0.0.19)(@visulima/pail@4.0.0(@visulima/redact@3.0.0)(express@5.2.1)(hono@4.12.31)) '@visulima/error': 6.0.0(ai@7.0.31(zod@4.4.3)) '@visulima/fs': 5.0.4(json5@2.2.3)(jsonc-parser@3.3.1)(yaml@2.9.0) @@ -4330,10 +4883,10 @@ snapshots: - svelte - vue - '@lunora/codegen@1.0.0-alpha.52(@ai-sdk/provider@4.0.3)(@cloudflare/workers-types@4.20260702.1)(@types/node@24.13.3)(luxon@3.7.2)(react-dom@19.2.8(react@19.2.8))(react@19.2.8)(zod@4.4.3)': + '@lunora/codegen@1.0.0-alpha.52(@ai-sdk/provider@4.0.3)(@cloudflare/workers-types@4.20260702.1)(@types/node@24.13.3)(asn1js@3.0.10)(kysely@0.29.4)(luxon@3.7.2)(react-dom@19.2.8(react@19.2.8))(react@19.2.8)(zod@4.4.3)': dependencies: - '@lunora/advisor': 1.0.0-alpha.33(@cloudflare/workers-types@4.20260702.1) - '@lunora/agent': 1.0.0-alpha.9(@ai-sdk/provider@4.0.3)(@cloudflare/workers-types@4.20260702.1)(@types/node@24.13.3)(luxon@3.7.2)(react-dom@19.2.8(react@19.2.8))(react@19.2.8)(zod@4.4.3) + '@lunora/advisor': 1.0.0-alpha.33(@cloudflare/workers-types@4.20260702.1)(kysely@0.29.4) + '@lunora/agent': 1.0.0-alpha.9(@ai-sdk/provider@4.0.3)(@cloudflare/workers-types@4.20260702.1)(@types/node@24.13.3)(asn1js@3.0.10)(kysely@0.29.4)(luxon@3.7.2)(react-dom@19.2.8(react@19.2.8))(react@19.2.8)(zod@4.4.3) '@lunora/container': 1.0.0-alpha.14 '@lunora/errors': 1.0.0-alpha.7 '@lunora/queue': 1.0.0-alpha.9 @@ -4401,12 +4954,12 @@ snapshots: - unstorage - zod - '@lunora/config@1.0.0-alpha.78(@ai-sdk/provider@4.0.3)(@cloudflare/workers-types@4.20260702.1)(@lunora/server@1.0.0-alpha.30(@cloudflare/workers-types@4.20260702.1))(@lunora/studio@1.0.0-alpha.58(@cloudflare/workers-types@4.20260702.1)(@tanstack/solid-query@5.101.4(solid-js@1.9.14))(@tanstack/svelte-query@6.1.38(svelte@5.56.7))(@tanstack/vue-query@5.101.4(vue@3.5.40(typescript@6.0.3)))(@types/react-dom@19.2.3(@types/react@19.2.17))(@types/react@19.2.17)(immer@11.1.15)(react-dom@19.2.8(react@19.2.8))(react-is@18.3.1)(react@19.2.8)(redux@5.0.1)(solid-js@1.9.14)(svelte@5.56.7)(vue@3.5.40(typescript@6.0.3)))(@lunora/values@1.0.0-alpha.10)(@types/node@24.13.3)(luxon@3.7.2)(react-dom@19.2.8(react@19.2.8))(react@19.2.8)(zod@4.4.3)': + '@lunora/config@1.0.0-alpha.78(@ai-sdk/provider@4.0.3)(@cloudflare/workers-types@4.20260702.1)(@lunora/server@1.0.0-alpha.30(@cloudflare/workers-types@4.20260702.1)(kysely@0.29.4))(@lunora/studio@1.0.0-alpha.58(@cloudflare/workers-types@4.20260702.1)(@tanstack/solid-query@5.101.4(solid-js@1.9.14))(@tanstack/svelte-query@6.1.38(svelte@5.56.7))(@tanstack/vue-query@5.101.4(vue@3.5.40(typescript@6.0.3)))(@types/react-dom@19.2.3(@types/react@19.2.17))(@types/react@19.2.17)(immer@11.1.15)(kysely@0.29.4)(react-dom@19.2.8(react@19.2.8))(react-is@18.3.1)(react@19.2.8)(redux@5.0.1)(solid-js@1.9.14)(svelte@5.56.7)(vue@3.5.40(typescript@6.0.3)))(@lunora/values@1.0.0-alpha.10)(@types/node@24.13.3)(asn1js@3.0.10)(kysely@0.29.4)(luxon@3.7.2)(react-dom@19.2.8(react@19.2.8))(react@19.2.8)(zod@4.4.3)': dependencies: - '@lunora/codegen': 1.0.0-alpha.52(@ai-sdk/provider@4.0.3)(@cloudflare/workers-types@4.20260702.1)(@types/node@24.13.3)(luxon@3.7.2)(react-dom@19.2.8(react@19.2.8))(react@19.2.8)(zod@4.4.3) + '@lunora/codegen': 1.0.0-alpha.52(@ai-sdk/provider@4.0.3)(@cloudflare/workers-types@4.20260702.1)(@types/node@24.13.3)(asn1js@3.0.10)(kysely@0.29.4)(luxon@3.7.2)(react-dom@19.2.8(react@19.2.8))(react@19.2.8)(zod@4.4.3) '@lunora/container': 1.0.0-alpha.14 '@lunora/errors': 1.0.0-alpha.7 - '@lunora/seed': 1.0.0-alpha.29(@lunora/server@1.0.0-alpha.30(@cloudflare/workers-types@4.20260702.1))(@lunora/values@1.0.0-alpha.10) + '@lunora/seed': 1.0.0-alpha.29(@lunora/server@1.0.0-alpha.30(@cloudflare/workers-types@4.20260702.1)(kysely@0.29.4))(@lunora/values@1.0.0-alpha.10) '@visulima/colorize': 2.0.0 '@visulima/find-ai-runner': 1.0.0 dockerode: 5.0.1 @@ -4414,7 +4967,7 @@ snapshots: jsonc-parser: 3.3.1 ts-morph: 28.0.0 optionalDependencies: - '@lunora/studio': 1.0.0-alpha.58(@cloudflare/workers-types@4.20260702.1)(@tanstack/solid-query@5.101.4(solid-js@1.9.14))(@tanstack/svelte-query@6.1.38(svelte@5.56.7))(@tanstack/vue-query@5.101.4(vue@3.5.40(typescript@6.0.3)))(@types/react-dom@19.2.3(@types/react@19.2.17))(@types/react@19.2.17)(immer@11.1.15)(react-dom@19.2.8(react@19.2.8))(react-is@18.3.1)(react@19.2.8)(redux@5.0.1)(solid-js@1.9.14)(svelte@5.56.7)(vue@3.5.40(typescript@6.0.3)) + '@lunora/studio': 1.0.0-alpha.58(@cloudflare/workers-types@4.20260702.1)(@tanstack/solid-query@5.101.4(solid-js@1.9.14))(@tanstack/svelte-query@6.1.38(svelte@5.56.7))(@tanstack/vue-query@5.101.4(vue@3.5.40(typescript@6.0.3)))(@types/react-dom@19.2.3(@types/react@19.2.17))(@types/react@19.2.17)(immer@11.1.15)(kysely@0.29.4)(react-dom@19.2.8(react@19.2.8))(react-is@18.3.1)(react@19.2.8)(redux@5.0.1)(solid-js@1.9.14)(svelte@5.56.7)(vue@3.5.40(typescript@6.0.3)) transitivePeerDependencies: - '@ai-sdk/anthropic' - '@ai-sdk/google' @@ -4481,12 +5034,12 @@ snapshots: dependencies: '@lunora/errors': 1.0.0-alpha.7 - '@lunora/d1@1.0.0-alpha.37(@cloudflare/workers-types@4.20260702.1)': + '@lunora/d1@1.0.0-alpha.37(@cloudflare/workers-types@4.20260702.1)(kysely@0.29.4)': dependencies: - '@lunora/do': 1.0.0-alpha.41(@cloudflare/workers-types@4.20260702.1) + '@lunora/do': 1.0.0-alpha.41(@cloudflare/workers-types@4.20260702.1)(kysely@0.29.4) '@lunora/errors': 1.0.0-alpha.7 - '@lunora/sql-store': 1.0.0-alpha.38(@cloudflare/workers-types@4.20260702.1) - drizzle-orm: 0.45.2(@cloudflare/workers-types@4.20260702.1) + '@lunora/sql-store': 1.0.0-alpha.38(@cloudflare/workers-types@4.20260702.1)(kysely@0.29.4) + drizzle-orm: 0.45.2(@cloudflare/workers-types@4.20260702.1)(kysely@0.29.4) transitivePeerDependencies: - '@aws-sdk/client-rds-data' - '@cloudflare/workers-types' @@ -4534,12 +5087,12 @@ snapshots: - svelte - vue - '@lunora/do@1.0.0-alpha.41(@cloudflare/workers-types@4.20260702.1)': + '@lunora/do@1.0.0-alpha.41(@cloudflare/workers-types@4.20260702.1)(kysely@0.29.4)': dependencies: '@lunora/errors': 1.0.0-alpha.7 '@lunora/fingerprint': 1.0.0-alpha.3 '@visulima/redact': 3.0.0 - drizzle-orm: 0.45.2(@cloudflare/workers-types@4.20260702.1) + drizzle-orm: 0.45.2(@cloudflare/workers-types@4.20260702.1)(kysely@0.29.4) transitivePeerDependencies: - '@aws-sdk/client-rds-data' - '@cloudflare/workers-types' @@ -4584,11 +5137,11 @@ snapshots: transitivePeerDependencies: - '@openfeature/core' - '@lunora/mail@1.0.0-alpha.17(@types/node@24.13.3)(luxon@3.7.2)(react-dom@19.2.8(react@19.2.8))(react@19.2.8)': + '@lunora/mail@1.0.0-alpha.17(@types/node@24.13.3)(asn1js@3.0.10)(luxon@3.7.2)(react-dom@19.2.8(react@19.2.8))(react@19.2.8)': dependencies: '@lunora/errors': 1.0.0-alpha.7 '@react-email/render': 2.1.0(react-dom@19.2.8(react@19.2.8))(react@19.2.8) - '@visulima/email': 2.1.1(@react-email/render@2.1.0(react-dom@19.2.8(react@19.2.8))(react@19.2.8))(@types/node@24.13.3)(luxon@3.7.2) + '@visulima/email': 2.1.1(@react-email/render@2.1.0(react-dom@19.2.8(react@19.2.8))(react@19.2.8))(@types/node@24.13.3)(asn1js@3.0.10)(luxon@3.7.2) postal-mime: 2.7.5 optionalDependencies: react: 19.2.8 @@ -4652,19 +5205,19 @@ snapshots: '@lunora/errors': 1.0.0-alpha.6 cron-parser: 5.6.2 - '@lunora/seed@1.0.0-alpha.29(@lunora/server@1.0.0-alpha.30(@cloudflare/workers-types@4.20260702.1))(@lunora/values@1.0.0-alpha.10)': + '@lunora/seed@1.0.0-alpha.29(@lunora/server@1.0.0-alpha.30(@cloudflare/workers-types@4.20260702.1)(kysely@0.29.4))(@lunora/values@1.0.0-alpha.10)': dependencies: '@faker-js/faker': 10.5.0 '@lunora/errors': 1.0.0-alpha.7 - '@lunora/server': 1.0.0-alpha.30(@cloudflare/workers-types@4.20260702.1) + '@lunora/server': 1.0.0-alpha.30(@cloudflare/workers-types@4.20260702.1)(kysely@0.29.4) '@lunora/values': 1.0.0-alpha.10 - '@lunora/server@1.0.0-alpha.30(@cloudflare/workers-types@4.20260702.1)': + '@lunora/server@1.0.0-alpha.30(@cloudflare/workers-types@4.20260702.1)(kysely@0.29.4)': dependencies: '@lunora/errors': 1.0.0-alpha.7 '@lunora/scheduler': 1.0.0-alpha.11 '@lunora/values': 1.0.0-alpha.10 - drizzle-orm: 0.45.2(@cloudflare/workers-types@4.20260702.1) + drizzle-orm: 0.45.2(@cloudflare/workers-types@4.20260702.1)(kysely@0.29.4) hono: 4.12.31 transitivePeerDependencies: - '@aws-sdk/client-rds-data' @@ -4697,11 +5250,11 @@ snapshots: - sql.js - sqlite3 - '@lunora/sql-store@1.0.0-alpha.38(@cloudflare/workers-types@4.20260702.1)': + '@lunora/sql-store@1.0.0-alpha.38(@cloudflare/workers-types@4.20260702.1)(kysely@0.29.4)': dependencies: - '@lunora/do': 1.0.0-alpha.41(@cloudflare/workers-types@4.20260702.1) + '@lunora/do': 1.0.0-alpha.41(@cloudflare/workers-types@4.20260702.1)(kysely@0.29.4) '@lunora/errors': 1.0.0-alpha.7 - drizzle-orm: 0.45.2(@cloudflare/workers-types@4.20260702.1) + drizzle-orm: 0.45.2(@cloudflare/workers-types@4.20260702.1)(kysely@0.29.4) transitivePeerDependencies: - '@aws-sdk/client-rds-data' - '@cloudflare/workers-types' @@ -4733,14 +5286,14 @@ snapshots: - sql.js - sqlite3 - '@lunora/studio@1.0.0-alpha.58(@cloudflare/workers-types@4.20260702.1)(@tanstack/solid-query@5.101.4(solid-js@1.9.14))(@tanstack/svelte-query@6.1.38(svelte@5.56.7))(@tanstack/vue-query@5.101.4(vue@3.5.40(typescript@6.0.3)))(@types/react-dom@19.2.3(@types/react@19.2.17))(@types/react@19.2.17)(immer@11.1.15)(react-dom@19.2.8(react@19.2.8))(react-is@18.3.1)(react@19.2.8)(redux@5.0.1)(solid-js@1.9.14)(svelte@5.56.7)(vue@3.5.40(typescript@6.0.3))': + '@lunora/studio@1.0.0-alpha.58(@cloudflare/workers-types@4.20260702.1)(@tanstack/solid-query@5.101.4(solid-js@1.9.14))(@tanstack/svelte-query@6.1.38(svelte@5.56.7))(@tanstack/vue-query@5.101.4(vue@3.5.40(typescript@6.0.3)))(@types/react-dom@19.2.3(@types/react@19.2.17))(@types/react@19.2.17)(immer@11.1.15)(kysely@0.29.4)(react-dom@19.2.8(react@19.2.8))(react-is@18.3.1)(react@19.2.8)(redux@5.0.1)(solid-js@1.9.14)(svelte@5.56.7)(vue@3.5.40(typescript@6.0.3))': dependencies: '@base-ui/react': 1.6.0(@types/react@19.2.17)(react-dom@19.2.8(react@19.2.8))(react@19.2.8) '@hugeicons/core-free-icons': 4.2.3 '@hugeicons/react': 1.1.9(react@19.2.8) '@lingui/core': 6.5.0 '@lingui/message-utils': 6.5.0 - '@lunora/advisor': 1.0.0-alpha.33(@cloudflare/workers-types@4.20260702.1) + '@lunora/advisor': 1.0.0-alpha.33(@cloudflare/workers-types@4.20260702.1)(kysely@0.29.4) '@lunora/bindings': 1.0.0-alpha.10 '@lunora/client': 1.0.0-alpha.27(@tanstack/react-query@5.101.4(react@19.2.8))(@tanstack/solid-query@5.101.4(solid-js@1.9.14))(@tanstack/svelte-query@6.1.38(svelte@5.56.7))(@tanstack/vue-query@5.101.4(vue@3.5.40(typescript@6.0.3)))(react@19.2.8)(solid-js@1.9.14)(svelte@5.56.7)(vue@3.5.40(typescript@6.0.3)) '@lunora/errors': 1.0.0-alpha.7 @@ -4809,18 +5362,18 @@ snapshots: dependencies: '@lunora/errors': 1.0.0-alpha.7 - '@lunora/vite@1.0.0-alpha.78(@ai-sdk/provider@4.0.3)(@cloudflare/workers-types@4.20260702.1)(@lunora/server@1.0.0-alpha.30(@cloudflare/workers-types@4.20260702.1))(@lunora/studio@1.0.0-alpha.58(@cloudflare/workers-types@4.20260702.1)(@tanstack/solid-query@5.101.4(solid-js@1.9.14))(@tanstack/svelte-query@6.1.38(svelte@5.56.7))(@tanstack/vue-query@5.101.4(vue@3.5.40(typescript@6.0.3)))(@types/react-dom@19.2.3(@types/react@19.2.17))(@types/react@19.2.17)(immer@11.1.15)(react-dom@19.2.8(react@19.2.8))(react-is@18.3.1)(react@19.2.8)(redux@5.0.1)(solid-js@1.9.14)(svelte@5.56.7)(vue@3.5.40(typescript@6.0.3)))(@lunora/values@1.0.0-alpha.10)(@types/node@24.13.3)(ai@7.0.31(zod@4.4.3))(luxon@3.7.2)(react-dom@19.2.8(react@19.2.8))(react@19.2.8)(vite@8.1.5(@types/node@24.13.3)(esbuild@0.28.1)(jiti@2.7.0)(yaml@2.9.0))(wrangler@4.113.0(@cloudflare/workers-types@4.20260702.1))(zod@4.4.3)': + '@lunora/vite@1.0.0-alpha.78(@ai-sdk/provider@4.0.3)(@cloudflare/workers-types@4.20260702.1)(@lunora/server@1.0.0-alpha.30(@cloudflare/workers-types@4.20260702.1)(kysely@0.29.4))(@lunora/studio@1.0.0-alpha.58(@cloudflare/workers-types@4.20260702.1)(@tanstack/solid-query@5.101.4(solid-js@1.9.14))(@tanstack/svelte-query@6.1.38(svelte@5.56.7))(@tanstack/vue-query@5.101.4(vue@3.5.40(typescript@6.0.3)))(@types/react-dom@19.2.3(@types/react@19.2.17))(@types/react@19.2.17)(immer@11.1.15)(kysely@0.29.4)(react-dom@19.2.8(react@19.2.8))(react-is@18.3.1)(react@19.2.8)(redux@5.0.1)(solid-js@1.9.14)(svelte@5.56.7)(vue@3.5.40(typescript@6.0.3)))(@lunora/values@1.0.0-alpha.10)(@types/node@24.13.3)(ai@7.0.31(zod@4.4.3))(asn1js@3.0.10)(kysely@0.29.4)(luxon@3.7.2)(react-dom@19.2.8(react@19.2.8))(react@19.2.8)(vite@8.1.5(@types/node@24.13.3)(esbuild@0.28.1)(jiti@2.7.0)(yaml@2.9.0))(wrangler@4.113.0(@cloudflare/workers-types@4.20260702.1))(zod@4.4.3)': dependencies: '@cloudflare/vite-plugin': 1.45.1(vite@8.1.5(@types/node@24.13.3)(esbuild@0.28.1)(jiti@2.7.0)(yaml@2.9.0))(wrangler@4.113.0(@cloudflare/workers-types@4.20260702.1)) - '@lunora/codegen': 1.0.0-alpha.52(@ai-sdk/provider@4.0.3)(@cloudflare/workers-types@4.20260702.1)(@types/node@24.13.3)(luxon@3.7.2)(react-dom@19.2.8(react@19.2.8))(react@19.2.8)(zod@4.4.3) - '@lunora/config': 1.0.0-alpha.78(@ai-sdk/provider@4.0.3)(@cloudflare/workers-types@4.20260702.1)(@lunora/server@1.0.0-alpha.30(@cloudflare/workers-types@4.20260702.1))(@lunora/studio@1.0.0-alpha.58(@cloudflare/workers-types@4.20260702.1)(@tanstack/solid-query@5.101.4(solid-js@1.9.14))(@tanstack/svelte-query@6.1.38(svelte@5.56.7))(@tanstack/vue-query@5.101.4(vue@3.5.40(typescript@6.0.3)))(@types/react-dom@19.2.3(@types/react@19.2.17))(@types/react@19.2.17)(immer@11.1.15)(react-dom@19.2.8(react@19.2.8))(react-is@18.3.1)(react@19.2.8)(redux@5.0.1)(solid-js@1.9.14)(svelte@5.56.7)(vue@3.5.40(typescript@6.0.3)))(@lunora/values@1.0.0-alpha.10)(@types/node@24.13.3)(luxon@3.7.2)(react-dom@19.2.8(react@19.2.8))(react@19.2.8)(zod@4.4.3) + '@lunora/codegen': 1.0.0-alpha.52(@ai-sdk/provider@4.0.3)(@cloudflare/workers-types@4.20260702.1)(@types/node@24.13.3)(asn1js@3.0.10)(kysely@0.29.4)(luxon@3.7.2)(react-dom@19.2.8(react@19.2.8))(react@19.2.8)(zod@4.4.3) + '@lunora/config': 1.0.0-alpha.78(@ai-sdk/provider@4.0.3)(@cloudflare/workers-types@4.20260702.1)(@lunora/server@1.0.0-alpha.30(@cloudflare/workers-types@4.20260702.1)(kysely@0.29.4))(@lunora/studio@1.0.0-alpha.58(@cloudflare/workers-types@4.20260702.1)(@tanstack/solid-query@5.101.4(solid-js@1.9.14))(@tanstack/svelte-query@6.1.38(svelte@5.56.7))(@tanstack/vue-query@5.101.4(vue@3.5.40(typescript@6.0.3)))(@types/react-dom@19.2.3(@types/react@19.2.17))(@types/react@19.2.17)(immer@11.1.15)(kysely@0.29.4)(react-dom@19.2.8(react@19.2.8))(react-is@18.3.1)(react@19.2.8)(redux@5.0.1)(solid-js@1.9.14)(svelte@5.56.7)(vue@3.5.40(typescript@6.0.3)))(@lunora/values@1.0.0-alpha.10)(@types/node@24.13.3)(asn1js@3.0.10)(kysely@0.29.4)(luxon@3.7.2)(react-dom@19.2.8(react@19.2.8))(react@19.2.8)(zod@4.4.3) '@lunora/errors': 1.0.0-alpha.7 '@visulima/vite-overlay': 2.0.4(ai@7.0.31(zod@4.4.3))(vite@8.1.5(@types/node@24.13.3)(esbuild@0.28.1)(jiti@2.7.0)(yaml@2.9.0)) jsonc-parser: 3.3.1 ts-morph: 28.0.0 vite: 8.1.5(@types/node@24.13.3)(esbuild@0.28.1)(jiti@2.7.0)(yaml@2.9.0) optionalDependencies: - '@lunora/studio': 1.0.0-alpha.58(@cloudflare/workers-types@4.20260702.1)(@tanstack/solid-query@5.101.4(solid-js@1.9.14))(@tanstack/svelte-query@6.1.38(svelte@5.56.7))(@tanstack/vue-query@5.101.4(vue@3.5.40(typescript@6.0.3)))(@types/react-dom@19.2.3(@types/react@19.2.17))(@types/react@19.2.17)(immer@11.1.15)(react-dom@19.2.8(react@19.2.8))(react-is@18.3.1)(react@19.2.8)(redux@5.0.1)(solid-js@1.9.14)(svelte@5.56.7)(vue@3.5.40(typescript@6.0.3)) + '@lunora/studio': 1.0.0-alpha.58(@cloudflare/workers-types@4.20260702.1)(@tanstack/solid-query@5.101.4(solid-js@1.9.14))(@tanstack/svelte-query@6.1.38(svelte@5.56.7))(@tanstack/vue-query@5.101.4(vue@3.5.40(typescript@6.0.3)))(@types/react-dom@19.2.3(@types/react@19.2.17))(@types/react@19.2.17)(immer@11.1.15)(kysely@0.29.4)(react-dom@19.2.8(react@19.2.8))(react-is@18.3.1)(react@19.2.8)(redux@5.0.1)(solid-js@1.9.14)(svelte@5.56.7)(vue@3.5.40(typescript@6.0.3)) transitivePeerDependencies: - '@ai-sdk/anthropic' - '@ai-sdk/google' @@ -4927,12 +5480,18 @@ snapshots: '@tybys/wasm-util': 0.10.3 optional: true + '@noble/ciphers@2.2.0': {} + + '@noble/hashes@2.2.0': {} + '@openfeature/core@1.11.0': {} '@openfeature/server-sdk@1.22.0(@openfeature/core@1.11.0)': dependencies: '@openfeature/core': 1.11.0 + '@opentelemetry/semantic-conventions@1.43.0': {} + '@oxc-project/types@0.139.0': {} '@oxlint/binding-android-arm-eabi@1.75.0': @@ -4992,6 +5551,106 @@ snapshots: '@oxlint/binding-win32-x64-msvc@1.75.0': optional: true + '@peculiar/asn1-android@2.8.0': + dependencies: + '@peculiar/asn1-schema': 2.8.0 + asn1js: 3.0.10 + tslib: 2.8.1 + + '@peculiar/asn1-cms@2.8.0': + dependencies: + '@peculiar/asn1-schema': 2.8.0 + '@peculiar/asn1-x509': 2.8.0 + '@peculiar/asn1-x509-attr': 2.8.0 + asn1js: 3.0.10 + tslib: 2.8.1 + + '@peculiar/asn1-csr@2.8.0': + dependencies: + '@peculiar/asn1-schema': 2.8.0 + '@peculiar/asn1-x509': 2.8.0 + asn1js: 3.0.10 + tslib: 2.8.1 + + '@peculiar/asn1-ecc@2.8.0': + dependencies: + '@peculiar/asn1-schema': 2.8.0 + '@peculiar/asn1-x509': 2.8.0 + asn1js: 3.0.10 + tslib: 2.8.1 + + '@peculiar/asn1-pfx@2.8.0': + dependencies: + '@peculiar/asn1-cms': 2.8.0 + '@peculiar/asn1-pkcs8': 2.8.0 + '@peculiar/asn1-rsa': 2.8.0 + '@peculiar/asn1-schema': 2.8.0 + asn1js: 3.0.10 + tslib: 2.8.1 + + '@peculiar/asn1-pkcs8@2.8.0': + dependencies: + '@peculiar/asn1-schema': 2.8.0 + '@peculiar/asn1-x509': 2.8.0 + asn1js: 3.0.10 + tslib: 2.8.1 + + '@peculiar/asn1-pkcs9@2.8.0': + dependencies: + '@peculiar/asn1-cms': 2.8.0 + '@peculiar/asn1-pfx': 2.8.0 + '@peculiar/asn1-pkcs8': 2.8.0 + '@peculiar/asn1-schema': 2.8.0 + '@peculiar/asn1-x509': 2.8.0 + '@peculiar/asn1-x509-attr': 2.8.0 + asn1js: 3.0.10 + tslib: 2.8.1 + + '@peculiar/asn1-rsa@2.8.0': + dependencies: + '@peculiar/asn1-schema': 2.8.0 + '@peculiar/asn1-x509': 2.8.0 + asn1js: 3.0.10 + tslib: 2.8.1 + + '@peculiar/asn1-schema@2.8.0': + dependencies: + '@peculiar/utils': 2.0.3 + asn1js: 3.0.10 + tslib: 2.8.1 + + '@peculiar/asn1-x509-attr@2.8.0': + dependencies: + '@peculiar/asn1-schema': 2.8.0 + '@peculiar/asn1-x509': 2.8.0 + asn1js: 3.0.10 + tslib: 2.8.1 + + '@peculiar/asn1-x509@2.8.0': + dependencies: + '@peculiar/asn1-schema': 2.8.0 + '@peculiar/utils': 2.0.3 + asn1js: 3.0.10 + tslib: 2.8.1 + + '@peculiar/utils@2.0.3': + dependencies: + tslib: 2.8.1 + + '@peculiar/x509@1.14.3': + dependencies: + '@peculiar/asn1-cms': 2.8.0 + '@peculiar/asn1-csr': 2.8.0 + '@peculiar/asn1-ecc': 2.8.0 + '@peculiar/asn1-pkcs9': 2.8.0 + '@peculiar/asn1-rsa': 2.8.0 + '@peculiar/asn1-schema': 2.8.0 + '@peculiar/asn1-x509': 2.8.0 + pvtsutils: 1.3.6 + reflect-metadata: 0.2.2 + tslib: 2.8.1 + tsyringe: 4.10.0 + '@poppinss/colors@4.1.6': dependencies: kleur: 4.1.5 @@ -5192,6 +5851,19 @@ snapshots: '@shikijs/vscode-textmate@10.0.2': {} + '@simplewebauthn/browser@13.3.0': {} + + '@simplewebauthn/server@13.3.2': + dependencies: + '@hexagon/base64': 1.1.28 + '@levischuck/tiny-cbor': 0.2.11 + '@peculiar/asn1-android': 2.8.0 + '@peculiar/asn1-ecc': 2.8.0 + '@peculiar/asn1-rsa': 2.8.0 + '@peculiar/asn1-schema': 2.8.0 + '@peculiar/asn1-x509': 2.8.0 + '@peculiar/x509': 1.14.3 + '@sinclair/typebox@0.27.12': {} '@sindresorhus/is@7.2.0': {} @@ -5235,6 +5907,14 @@ snapshots: '@tanstack/query-core@5.101.4': {} + '@tanstack/react-db@0.1.94(react@19.2.8)(typescript@6.0.3)': + dependencies: + '@tanstack/db': 0.6.16(typescript@6.0.3) + react: 19.2.8 + use-sync-external-store: 1.6.0(react@19.2.8) + transitivePeerDependencies: + - typescript + '@tanstack/react-query@5.101.4(react@19.2.8)': dependencies: '@tanstack/query-core': 5.101.4 @@ -5310,6 +5990,11 @@ snapshots: tslib: 2.8.1 optional: true + '@types/chai@5.2.3': + dependencies: + '@types/deep-eql': 4.0.2 + assertion-error: 2.0.1 + '@types/d3-array@3.2.2': {} '@types/d3-color@3.1.3': {} @@ -5349,6 +6034,8 @@ snapshots: '@types/d3-interpolate': 3.0.4 '@types/d3-selection': 3.0.11 + '@types/deep-eql@4.0.2': {} + '@types/estree@1.0.9': {} '@types/hast@3.0.5': @@ -5412,7 +6099,18 @@ snapshots: dependencies: '@visulima/is-ansi-color-supported': 3.0.0 - '@visulima/email@2.1.1(@react-email/render@2.1.0(react-dom@19.2.8(react@19.2.8))(react@19.2.8))(@types/node@24.13.3)(luxon@3.7.2)': + '@visulima/disposable-email-domains@1.0.1': {} + + '@visulima/email-provider-mx@1.0.0': {} + + '@visulima/email-verifier@1.0.1': + dependencies: + '@visulima/disposable-email-domains': 1.0.1 + '@visulima/email-provider-mx': 1.0.0 + '@visulima/free-email-domains': 1.0.0 + lru-cache: 11.5.1 + + '@visulima/email@2.1.1(@react-email/render@2.1.0(react-dom@19.2.8(react@19.2.8))(react@19.2.8))(@types/node@24.13.3)(asn1js@3.0.10)(luxon@3.7.2)': dependencies: html-to-text: 10.0.0 ical-generator: 11.0.0(@types/node@24.13.3)(luxon@3.7.2) @@ -5420,6 +6118,7 @@ snapshots: mime: 4.1.0 optionalDependencies: '@react-email/render': 2.1.0(react-dom@19.2.8(react@19.2.8))(react@19.2.8) + asn1js: 3.0.10 transitivePeerDependencies: - '@touch4it/ical-timezones' - '@types/luxon' @@ -5437,6 +6136,8 @@ snapshots: '@visulima/find-ai-runner@1.0.0': {} + '@visulima/free-email-domains@1.0.0': {} + '@visulima/fs@5.0.4(json5@2.2.3)(jsonc-parser@3.3.1)(yaml@2.9.0)': dependencies: '@visulima/path': 3.0.0 @@ -5572,6 +6273,47 @@ snapshots: '@rolldown/pluginutils': 1.0.1 vite: 8.1.5(@types/node@24.13.3)(esbuild@0.28.1)(jiti@2.7.0)(yaml@2.9.0) + '@vitest/expect@4.1.10': + dependencies: + '@standard-schema/spec': 1.1.0 + '@types/chai': 5.2.3 + '@vitest/spy': 4.1.10 + '@vitest/utils': 4.1.10 + chai: 6.2.2 + tinyrainbow: 3.1.0 + + '@vitest/mocker@4.1.10(vite@8.1.5(@types/node@24.13.3)(esbuild@0.28.1)(jiti@2.7.0)(yaml@2.9.0))': + dependencies: + '@vitest/spy': 4.1.10 + estree-walker: 3.0.3 + magic-string: 0.30.21 + optionalDependencies: + vite: 8.1.5(@types/node@24.13.3)(esbuild@0.28.1)(jiti@2.7.0)(yaml@2.9.0) + + '@vitest/pretty-format@4.1.10': + dependencies: + tinyrainbow: 3.1.0 + + '@vitest/runner@4.1.10': + dependencies: + '@vitest/utils': 4.1.10 + pathe: 2.0.3 + + '@vitest/snapshot@4.1.10': + dependencies: + '@vitest/pretty-format': 4.1.10 + '@vitest/utils': 4.1.10 + magic-string: 0.30.21 + pathe: 2.0.3 + + '@vitest/spy@4.1.10': {} + + '@vitest/utils@4.1.10': + dependencies: + '@vitest/pretty-format': 4.1.10 + convert-source-map: 2.0.0 + tinyrainbow: 3.1.0 + '@vue/compiler-core@3.5.40': dependencies: '@babel/parser': 7.29.7 @@ -5696,6 +6438,14 @@ snapshots: dependencies: safer-buffer: 2.1.2 + asn1js@3.0.10: + dependencies: + pvtsutils: 1.3.6 + pvutils: 1.1.5 + tslib: 2.8.1 + + assertion-error@2.0.1: {} + axobject-query@4.1.0: {} balanced-match@4.0.4: {} @@ -5708,6 +6458,46 @@ snapshots: dependencies: tweetnacl: 0.14.5 + better-auth@1.6.24(@cloudflare/workers-types@4.20260702.1)(drizzle-orm@0.45.2(@cloudflare/workers-types@4.20260702.1)(kysely@0.29.4))(react-dom@19.2.8(react@19.2.8))(react@19.2.8)(solid-js@1.9.14)(svelte@5.56.7)(vitest@4.1.10(@types/node@24.13.3)(vite@8.1.5(@types/node@24.13.3)(esbuild@0.28.1)(jiti@2.7.0)(yaml@2.9.0)))(vue@3.5.40(typescript@6.0.3)): + dependencies: + '@better-auth/core': 1.6.24(@better-auth/utils@0.4.2)(@better-fetch/fetch@1.3.1)(@cloudflare/workers-types@4.20260702.1)(better-call@1.3.7(zod@4.4.3))(jose@6.2.4)(kysely@0.29.4)(nanostores@1.4.1) + '@better-auth/drizzle-adapter': 1.6.24(@better-auth/core@1.6.24(@better-auth/utils@0.4.2)(@better-fetch/fetch@1.3.1)(@cloudflare/workers-types@4.20260702.1)(better-call@1.3.7(zod@4.4.3))(jose@6.2.4)(kysely@0.29.4)(nanostores@1.4.1))(@better-auth/utils@0.4.2)(drizzle-orm@0.45.2(@cloudflare/workers-types@4.20260702.1)(kysely@0.29.4)) + '@better-auth/kysely-adapter': 1.6.24(@better-auth/core@1.6.24(@better-auth/utils@0.4.2)(@better-fetch/fetch@1.3.1)(@cloudflare/workers-types@4.20260702.1)(better-call@1.3.7(zod@4.4.3))(jose@6.2.4)(kysely@0.29.4)(nanostores@1.4.1))(@better-auth/utils@0.4.2)(kysely@0.29.4) + '@better-auth/memory-adapter': 1.6.24(@better-auth/core@1.6.24(@better-auth/utils@0.4.2)(@better-fetch/fetch@1.3.1)(@cloudflare/workers-types@4.20260702.1)(better-call@1.3.7(zod@4.4.3))(jose@6.2.4)(kysely@0.29.4)(nanostores@1.4.1))(@better-auth/utils@0.4.2) + '@better-auth/mongo-adapter': 1.6.24(@better-auth/core@1.6.24(@better-auth/utils@0.4.2)(@better-fetch/fetch@1.3.1)(@cloudflare/workers-types@4.20260702.1)(better-call@1.3.7(zod@4.4.3))(jose@6.2.4)(kysely@0.29.4)(nanostores@1.4.1))(@better-auth/utils@0.4.2) + '@better-auth/prisma-adapter': 1.6.24(@better-auth/core@1.6.24(@better-auth/utils@0.4.2)(@better-fetch/fetch@1.3.1)(@cloudflare/workers-types@4.20260702.1)(better-call@1.3.7(zod@4.4.3))(jose@6.2.4)(kysely@0.29.4)(nanostores@1.4.1))(@better-auth/utils@0.4.2) + '@better-auth/telemetry': 1.6.24(@better-auth/core@1.6.24(@better-auth/utils@0.4.2)(@better-fetch/fetch@1.3.1)(@cloudflare/workers-types@4.20260702.1)(better-call@1.3.7(zod@4.4.3))(jose@6.2.4)(kysely@0.29.4)(nanostores@1.4.1))(@better-auth/utils@0.4.2)(@better-fetch/fetch@1.3.1) + '@better-auth/utils': 0.4.2 + '@better-fetch/fetch': 1.3.1 + '@noble/ciphers': 2.2.0 + '@noble/hashes': 2.2.0 + better-call: 1.3.7(zod@4.4.3) + defu: 6.1.7 + jose: 6.2.4 + kysely: 0.29.4 + nanostores: 1.4.1 + zod: 4.4.3 + optionalDependencies: + drizzle-orm: 0.45.2(@cloudflare/workers-types@4.20260702.1)(kysely@0.29.4) + react: 19.2.8 + react-dom: 19.2.8(react@19.2.8) + solid-js: 1.9.14 + svelte: 5.56.7 + vitest: 4.1.10(@types/node@24.13.3)(vite@8.1.5(@types/node@24.13.3)(esbuild@0.28.1)(jiti@2.7.0)(yaml@2.9.0)) + vue: 3.5.40(typescript@6.0.3) + transitivePeerDependencies: + - '@cloudflare/workers-types' + - '@opentelemetry/api' + + better-call@1.3.7(zod@4.4.3): + dependencies: + '@better-auth/utils': 0.4.2 + '@better-fetch/fetch': 1.3.1 + rou3: 0.7.12 + set-cookie-parser: 3.1.2 + optionalDependencies: + zod: 4.4.3 + bl@4.1.0: dependencies: buffer: 5.7.1 @@ -5775,6 +6565,8 @@ snapshots: supports-color: 8.1.1 window-size: 1.1.1 + chai@6.2.2: {} + chalk@4.1.2: dependencies: ansi-styles: 4.3.0 @@ -5941,6 +6733,8 @@ snapshots: dependencies: is-descriptor: 1.0.4 + defu@6.1.7: {} + depd@2.0.0: {} dequal@2.0.3: {} @@ -5991,9 +6785,10 @@ snapshots: domelementtype: 2.3.0 domhandler: 5.0.3 - drizzle-orm@0.45.2(@cloudflare/workers-types@4.20260702.1): + drizzle-orm@0.45.2(@cloudflare/workers-types@4.20260702.1)(kysely@0.29.4): optionalDependencies: '@cloudflare/workers-types': 4.20260702.1 + kysely: 0.29.4 dunder-proto@1.0.1: dependencies: @@ -6074,6 +6869,10 @@ snapshots: estree-walker@2.0.2: {} + estree-walker@3.0.3: + dependencies: + '@types/estree': 1.0.9 + etag@1.8.1: {} eventemitter3@5.0.4: {} @@ -6084,6 +6883,8 @@ snapshots: dependencies: eventsource-parser: 3.1.0 + expect-type@1.4.0: {} + express-rate-limit@8.6.0(express@5.2.1): dependencies: debug: 4.4.3 @@ -6363,6 +7164,8 @@ snapshots: kleur@4.1.5: {} + kysely@0.29.4: {} + leac@0.6.0: {} leac@0.7.0: {} @@ -6434,16 +7237,16 @@ snapshots: dependencies: yallist: 3.1.1 - lunorash@1.0.0-alpha.98(f40c1a55ed907cdb607493dafc6daaa5): + lunorash@1.0.0-alpha.98(b1170eeda25a14142d7dd6aa1a0018b2): dependencies: - '@lunora/cli': 1.0.0-alpha.97(@ai-sdk/provider@4.0.3)(@cloudflare/workers-types@4.20260702.1)(@lunora/server@1.0.0-alpha.30(@cloudflare/workers-types@4.20260702.1))(@lunora/studio@1.0.0-alpha.58(@cloudflare/workers-types@4.20260702.1)(@tanstack/solid-query@5.101.4(solid-js@1.9.14))(@tanstack/svelte-query@6.1.38(svelte@5.56.7))(@tanstack/vue-query@5.101.4(vue@3.5.40(typescript@6.0.3)))(@types/react-dom@19.2.3(@types/react@19.2.17))(@types/react@19.2.17)(immer@11.1.15)(react-dom@19.2.8(react@19.2.8))(react-is@18.3.1)(react@19.2.8)(redux@5.0.1)(solid-js@1.9.14)(svelte@5.56.7)(vue@3.5.40(typescript@6.0.3)))(@lunora/values@1.0.0-alpha.10)(@shikijs/langs@4.3.1)(@shikijs/themes@4.3.1)(@types/node@24.13.3)(@visulima/redact@3.0.0)(@visulima/tabular@4.0.0)(ai@7.0.31(zod@4.4.3))(express@5.2.1)(hono@4.12.31)(json5@2.2.3)(luxon@3.7.2)(react-dom@19.2.8(react@19.2.8))(shiki@4.3.1)(ws@8.21.0)(yaml@2.9.0)(zod@4.4.3) + '@lunora/cli': 1.0.0-alpha.97(@ai-sdk/provider@4.0.3)(@cloudflare/workers-types@4.20260702.1)(@lunora/server@1.0.0-alpha.30(@cloudflare/workers-types@4.20260702.1)(kysely@0.29.4))(@lunora/studio@1.0.0-alpha.58(@cloudflare/workers-types@4.20260702.1)(@tanstack/solid-query@5.101.4(solid-js@1.9.14))(@tanstack/svelte-query@6.1.38(svelte@5.56.7))(@tanstack/vue-query@5.101.4(vue@3.5.40(typescript@6.0.3)))(@types/react-dom@19.2.3(@types/react@19.2.17))(@types/react@19.2.17)(immer@11.1.15)(kysely@0.29.4)(react-dom@19.2.8(react@19.2.8))(react-is@18.3.1)(react@19.2.8)(redux@5.0.1)(solid-js@1.9.14)(svelte@5.56.7)(vue@3.5.40(typescript@6.0.3)))(@lunora/values@1.0.0-alpha.10)(@shikijs/langs@4.3.1)(@shikijs/themes@4.3.1)(@types/node@24.13.3)(@visulima/redact@3.0.0)(@visulima/tabular@4.0.0)(ai@7.0.31(zod@4.4.3))(asn1js@3.0.10)(express@5.2.1)(hono@4.12.31)(json5@2.2.3)(kysely@0.29.4)(luxon@3.7.2)(react-dom@19.2.8(react@19.2.8))(shiki@4.3.1)(ws@8.21.0)(yaml@2.9.0)(zod@4.4.3) '@lunora/client': 1.0.0-alpha.27(@tanstack/react-query@5.101.4(react@19.2.8))(@tanstack/solid-query@5.101.4(solid-js@1.9.14))(@tanstack/svelte-query@6.1.38(svelte@5.56.7))(@tanstack/vue-query@5.101.4(vue@3.5.40(typescript@6.0.3)))(react@19.2.8)(solid-js@1.9.14)(svelte@5.56.7)(vue@3.5.40(typescript@6.0.3)) - '@lunora/do': 1.0.0-alpha.41(@cloudflare/workers-types@4.20260702.1) + '@lunora/do': 1.0.0-alpha.41(@cloudflare/workers-types@4.20260702.1)(kysely@0.29.4) '@lunora/errors': 1.0.0-alpha.7 '@lunora/flags': 1.0.0-alpha.15(@openfeature/core@1.11.0) '@lunora/ratelimit': 1.0.0-alpha.9 '@lunora/runtime': 1.0.0-alpha.35 - '@lunora/server': 1.0.0-alpha.30(@cloudflare/workers-types@4.20260702.1) + '@lunora/server': 1.0.0-alpha.30(@cloudflare/workers-types@4.20260702.1)(kysely@0.29.4) '@lunora/values': 1.0.0-alpha.10 transitivePeerDependencies: - '@ai-sdk/anthropic' @@ -6649,6 +7452,8 @@ snapshots: nanoid@3.3.16: {} + nanostores@1.4.1: {} + negotiator@1.0.0: {} node-releases@2.0.51: {} @@ -6665,6 +7470,8 @@ snapshots: object-inspect@1.13.4: {} + obug@2.1.4: {} + on-finished@2.4.1: dependencies: ee-first: 1.1.1 @@ -6781,6 +7588,12 @@ snapshots: end-of-stream: 1.4.5 once: 1.4.0 + pvtsutils@1.3.6: + dependencies: + tslib: 2.8.1 + + pvutils@1.1.5: {} + qs@6.15.3: dependencies: es-define-property: 1.0.1 @@ -6850,6 +7663,8 @@ snapshots: redux@5.0.1: {} + reflect-metadata@0.2.2: {} + regex-recursion@6.0.2: dependencies: regex-utilities: 2.3.0 @@ -6889,6 +7704,8 @@ snapshots: '@rolldown/binding-win32-arm64-msvc': 1.1.5 '@rolldown/binding-win32-x64-msvc': 1.1.5 + rou3@0.7.12: {} + router@2.2.0: dependencies: debug: 4.4.3 @@ -6948,6 +7765,8 @@ snapshots: transitivePeerDependencies: - supports-color + set-cookie-parser@3.1.2: {} + setprototypeof@1.2.0: {} sharp@0.34.5: @@ -7037,6 +7856,8 @@ snapshots: side-channel-map: 1.0.1 side-channel-weakmap: 1.0.2 + siginfo@2.0.0: {} + signal-exit@4.1.0: {} solid-js@1.9.14: @@ -7075,8 +7896,12 @@ snapshots: cpu-features: 0.0.10 nan: 2.28.0 + stackback@0.0.2: {} + statuses@2.0.2: {} + std-env@4.2.0: {} + string-width@4.2.3: dependencies: emoji-regex: 8.0.0 @@ -7150,6 +7975,8 @@ snapshots: tiny-invariant@1.3.3: {} + tinybench@2.9.0: {} + tinyexec@1.2.4: {} tinyglobby@0.2.17: @@ -7157,6 +7984,8 @@ snapshots: fdir: 6.5.0(picomatch@4.0.5) picomatch: 4.0.5 + tinyrainbow@3.1.0: {} + toidentifier@1.0.1: {} trim-lines@3.0.1: {} @@ -7168,8 +7997,14 @@ snapshots: tseep@1.3.1: {} + tslib@1.14.1: {} + tslib@2.8.1: {} + tsyringe@4.10.0: + dependencies: + tslib: 1.14.1 + tweetnacl@0.14.5: {} type-is@2.1.0: @@ -7273,6 +8108,33 @@ snapshots: jiti: 2.7.0 yaml: 2.9.0 + vitest@4.1.10(@types/node@24.13.3)(vite@8.1.5(@types/node@24.13.3)(esbuild@0.28.1)(jiti@2.7.0)(yaml@2.9.0)): + dependencies: + '@vitest/expect': 4.1.10 + '@vitest/mocker': 4.1.10(vite@8.1.5(@types/node@24.13.3)(esbuild@0.28.1)(jiti@2.7.0)(yaml@2.9.0)) + '@vitest/pretty-format': 4.1.10 + '@vitest/runner': 4.1.10 + '@vitest/snapshot': 4.1.10 + '@vitest/spy': 4.1.10 + '@vitest/utils': 4.1.10 + es-module-lexer: 2.3.1 + expect-type: 1.4.0 + magic-string: 0.30.21 + obug: 2.1.4 + pathe: 2.0.3 + picomatch: 4.0.5 + std-env: 4.2.0 + tinybench: 2.9.0 + tinyexec: 1.2.4 + tinyglobby: 0.2.17 + tinyrainbow: 3.1.0 + vite: 8.1.5(@types/node@24.13.3)(esbuild@0.28.1)(jiti@2.7.0)(yaml@2.9.0) + why-is-node-running: 2.3.0 + optionalDependencies: + '@types/node': 24.13.3 + transitivePeerDependencies: + - msw + vue-demi@0.14.10(vue@3.5.40(typescript@6.0.3)): dependencies: vue: 3.5.40(typescript@6.0.3) @@ -7291,6 +8153,11 @@ snapshots: dependencies: isexe: 2.0.0 + why-is-node-running@2.3.0: + dependencies: + siginfo: 2.0.0 + stackback: 0.0.2 + window-size@1.1.1: dependencies: define-property: 1.0.0 diff --git a/spikes/lunora-outline/pnpm-workspace.yaml b/spikes/lunora-outline/pnpm-workspace.yaml index 7e8efd7f..1886cf68 100644 --- a/spikes/lunora-outline/pnpm-workspace.yaml +++ b/spikes/lunora-outline/pnpm-workspace.yaml @@ -26,3 +26,4 @@ minimumReleaseAgeExclude: - "@lunora/workflow@1.0.0-alpha.12" - lunorash@1.0.0-alpha.98 - "@lunora/db@1.0.0-alpha.27" + - "@lunora/auth@1.0.0-alpha.36" diff --git a/spikes/lunora-outline/src/server.ts b/spikes/lunora-outline/src/server.ts index 3aeb4408..01c7e7b1 100644 --- a/spikes/lunora-outline/src/server.ts +++ b/spikes/lunora-outline/src/server.ts @@ -1,13 +1,40 @@ +import type { LunoraAuthOptions } from "@lunora/auth"; import type { ShardNamespaceLike } from "lunorash/runtime"; import { defineApp } from "../lunora/_generated/app.js"; interface Env extends Record { + AUTH_SECRET: string; + AUTH_URL?: string; + DB: unknown; SHARD: ShardNamespaceLike; } +const authOptions = (env: Env): LunoraAuthOptions => { + if (!env.AUTH_SECRET) { + throw new Error("AUTH_SECRET is required"); + } + + return { + appName: "Lunora Outline Spike", + baseURL: env.AUTH_URL, + emailAndPassword: { + enabled: true, + sendResetPassword: async ({ url, user }) => { + // Dev-only: log reset link (never commit real mail secrets). + console.log(`[auth] password reset for ${user.email}: ${url}`); + }, + }, + secret: env.AUTH_SECRET, + }; +}; + const app = defineApp() .shard((env) => env.SHARD) + .auth({ d1: (env) => env.DB, options: authOptions }) + .extend(() => ({ + authorizeShard: (identity, shardKey) => identity?.userId === shardKey, + })) .build(); export const ShardDO = app.ShardDO; diff --git a/spikes/lunora-outline/wrangler.jsonc b/spikes/lunora-outline/wrangler.jsonc index 454eb4a4..036491ff 100644 --- a/spikes/lunora-outline/wrangler.jsonc +++ b/spikes/lunora-outline/wrangler.jsonc @@ -7,6 +7,13 @@ "durable_objects": { "bindings": [{ "name": "SHARD", "class_name": "ShardDO" }], }, + "d1_databases": [ + { + "binding": "DB", + "database_name": "lunora-outline-auth", + "database_id": "00000000-0000-0000-0000-000000000001", + }, + ], "migrations": [{ "tag": "v1", "new_sqlite_classes": ["ShardDO"] }], "observability": { "enabled": true, "head_sampling_rate": 1 }, } From c840ad19399981f2bebcfcad972de83a6b98a991 Mon Sep 17 00:00:00 2001 From: Cameron Pak Date: Thu, 23 Jul 2026 12:42:37 -0500 Subject: [PATCH 03/59] feat(spike): pure outline planners + chain invariant tests Port orderSiblings/chainDisagreements and structural plan* helpers; vitest proves rapid insert/indent/outdent/remove sequences leave chainDisagreements empty (ADR 0009). Co-authored-by: Cursor --- spikes/lunora-outline/package.json | 4 +- spikes/lunora-outline/src/outline/index.ts | 14 ++ .../src/outline/planners.test.ts | 192 +++++++++++++++ spikes/lunora-outline/src/outline/planners.ts | 232 ++++++++++++++++++ .../src/outline/sibling-chain.ts | 52 ++++ spikes/lunora-outline/src/outline/tree.ts | 72 ++++++ spikes/lunora-outline/src/outline/types.ts | 55 +++++ spikes/lunora-outline/vitest.config.ts | 9 + 8 files changed, 629 insertions(+), 1 deletion(-) create mode 100644 spikes/lunora-outline/src/outline/index.ts create mode 100644 spikes/lunora-outline/src/outline/planners.test.ts create mode 100644 spikes/lunora-outline/src/outline/planners.ts create mode 100644 spikes/lunora-outline/src/outline/sibling-chain.ts create mode 100644 spikes/lunora-outline/src/outline/tree.ts create mode 100644 spikes/lunora-outline/src/outline/types.ts create mode 100644 spikes/lunora-outline/vitest.config.ts diff --git a/spikes/lunora-outline/package.json b/spikes/lunora-outline/package.json index 1b6bb0f3..b0bfb3b2 100644 --- a/spikes/lunora-outline/package.json +++ b/spikes/lunora-outline/package.json @@ -12,7 +12,9 @@ "lint": "oxlint", "preview": "vite preview", "codegen": "lunora codegen", - "deploy": "vite build && lunora deploy" + "deploy": "vite build && lunora deploy", + "test": "vitest run --config vitest.config.ts", + "test:watch": "vitest --config vitest.config.ts" }, "dependencies": { "@lunora/auth": "1.0.0-alpha.36", diff --git a/spikes/lunora-outline/src/outline/index.ts b/spikes/lunora-outline/src/outline/index.ts new file mode 100644 index 00000000..abf40956 --- /dev/null +++ b/spikes/lunora-outline/src/outline/index.ts @@ -0,0 +1,14 @@ +export type { OutlineNode, OutlinePlan, PlanPatch, NodeKind } from "./types.js"; +export { emptyPlan } from "./types.js"; +export { orderSiblings, chainDisagreements } from "./sibling-chain.js"; +export type { ChainDisagreement } from "./sibling-chain.js"; +export { buildTreeIndex, childrenOf, makeNode, parentKeyOf } from "./tree.js"; +export type { TreeIndex } from "./tree.js"; +export { + planInsertSibling, + planIndent, + planOutdent, + planRemoveNode, + planSetText, + applyPlan, +} from "./planners.js"; diff --git a/spikes/lunora-outline/src/outline/planners.test.ts b/spikes/lunora-outline/src/outline/planners.test.ts new file mode 100644 index 00000000..47949d86 --- /dev/null +++ b/spikes/lunora-outline/src/outline/planners.test.ts @@ -0,0 +1,192 @@ +import { describe, expect, it } from "vitest"; + +import { + applyPlan, + buildTreeIndex, + chainDisagreements, + childrenOf, + makeNode, + orderSiblings, + planIndent, + planInsertSibling, + planOutdent, + planRemoveNode, + planSetText, + type OutlineNode, +} from "./index.js"; + +const USER = "user-1"; + +function assertChainOk(nodes: OutlineNode[], parentId: string | null) { + const index = buildTreeIndex(nodes); + const kids = childrenOf(index, parentId); + const ordered = orderSiblings(kids); + expect(chainDisagreements(ordered)).toEqual([]); + return ordered.map((n) => n.id); +} + +function seedFlat(ids: string[]): OutlineNode[] { + return ids.map((id, i) => + makeNode({ + id, + userId: USER, + parentId: null, + prevSiblingId: i === 0 ? null : ids[i - 1]!, + text: id, + createdAt: i, + updatedAt: i, + }), + ); +} + +describe("sibling-chain invariant (ADR 0009)", () => { + it("orderSiblings follows prevSiblingId chain", () => { + const nodes = seedFlat(["a", "b", "c"]); + // Scramble arrival order — chain still recovers. + const scrambled = [nodes[2]!, nodes[0]!, nodes[1]!]; + expect(orderSiblings(scrambled).map((n) => n.id)).toEqual(["a", "b", "c"]); + }); + + it("chainDisagreements empty for a valid chain", () => { + const nodes = seedFlat(["a", "b", "c"]); + expect(chainDisagreements(orderSiblings(nodes))).toEqual([]); + }); + + it("rapid structural sequences leave chain intact", () => { + let nodes = seedFlat(["a", "b", "c"]); + let t = 100; + + // Insert d after b → a, b, d, c + { + const index = buildTreeIndex(nodes); + const plan = planInsertSibling(index, { + id: "d", + userId: USER, + parentId: null, + afterId: "b", + text: "d", + createdAt: t, + updatedAt: t, + }); + expect(plan).not.toBeNull(); + nodes = applyPlan(nodes, plan!); + t += 1; + } + expect(assertChainOk(nodes, null)).toEqual(["a", "b", "d", "c"]); + + // Indent d under b → a, b(d), c + { + const index = buildTreeIndex(nodes); + const plan = planIndent(index, "d", t++); + expect(plan).not.toBeNull(); + nodes = applyPlan(nodes, plan!); + } + expect(assertChainOk(nodes, null)).toEqual(["a", "b", "c"]); + expect(assertChainOk(nodes, "b")).toEqual(["d"]); + + // Insert e after a → a, e, b(d), c + { + const index = buildTreeIndex(nodes); + const plan = planInsertSibling(index, { + id: "e", + userId: USER, + parentId: null, + afterId: "a", + text: "e", + createdAt: t, + updatedAt: t, + }); + expect(plan).not.toBeNull(); + nodes = applyPlan(nodes, plan!); + t += 1; + } + expect(assertChainOk(nodes, null)).toEqual(["a", "e", "b", "c"]); + + // Outdent d → a, e, b, d, c + { + const index = buildTreeIndex(nodes); + const plan = planOutdent(index, "d", t++); + expect(plan).not.toBeNull(); + nodes = applyPlan(nodes, plan!); + } + expect(assertChainOk(nodes, null)).toEqual(["a", "e", "b", "d", "c"]); + expect(assertChainOk(nodes, "b")).toEqual([]); + + // Remove e (cascade) → a, b, d, c + { + const index = buildTreeIndex(nodes); + const plan = planRemoveNode(index, "e", t++); + expect(plan).not.toBeNull(); + nodes = applyPlan(nodes, plan!); + } + expect(assertChainOk(nodes, null)).toEqual(["a", "b", "d", "c"]); + + // Insert nested child under b, then remove b (cascade deletes child) + { + const index = buildTreeIndex(nodes); + const plan = planInsertSibling(index, { + id: "b1", + userId: USER, + parentId: "b", + afterId: null, + text: "b1", + createdAt: t, + updatedAt: t, + }); + expect(plan).not.toBeNull(); + nodes = applyPlan(nodes, plan!); + t += 1; + } + expect(assertChainOk(nodes, "b")).toEqual(["b1"]); + + { + const index = buildTreeIndex(nodes); + const plan = planRemoveNode(index, "b", t++); + expect(plan).not.toBeNull(); + expect(plan!.deletes.sort()).toEqual(["b", "b1"].sort()); + nodes = applyPlan(nodes, plan!); + } + expect(assertChainOk(nodes, null)).toEqual(["a", "d", "c"]); + expect(nodes.find((n) => n.id === "b1")).toBeUndefined(); + + // setText is field-only — chain untouched + { + const index = buildTreeIndex(nodes); + const plan = planSetText(index, "a", "alpha", t++); + expect(plan).not.toBeNull(); + nodes = applyPlan(nodes, plan!); + } + expect(assertChainOk(nodes, null)).toEqual(["a", "d", "c"]); + expect(nodes.find((n) => n.id === "a")!.text).toBe("alpha"); + }); + + it("burst of mid-list inserts preserves totality", () => { + let nodes = seedFlat(["root"]); + let afterId: string | null = "root"; + let t = 1; + + for (let i = 0; i < 20; i++) { + const id = `n${i}`; + const index = buildTreeIndex(nodes); + const plan = planInsertSibling(index, { + id, + userId: USER, + parentId: null, + afterId, + text: id, + createdAt: t, + updatedAt: t, + }); + expect(plan).not.toBeNull(); + nodes = applyPlan(nodes, plan!); + afterId = id; + t += 1; + } + + const ordered = assertChainOk(nodes, null); + expect(ordered).toEqual([ + "root", + ...Array.from({ length: 20 }, (_, i) => `n${i}`), + ]); + }); +}); diff --git a/spikes/lunora-outline/src/outline/planners.ts b/spikes/lunora-outline/src/outline/planners.ts new file mode 100644 index 00000000..38eb367b --- /dev/null +++ b/spikes/lunora-outline/src/outline/planners.ts @@ -0,0 +1,232 @@ +import type { OutlineNode, OutlinePlan } from "./types.js"; + +import { childrenOf, makeNode, type TreeIndex } from "./tree.js"; +import { emptyPlan } from "./types.js"; + +/** + * Mid-list insert: new node after `afterId` under `parentId`, repointing the + * follower. Port of Dotflowy `insertSibling` + worker `planAddNode` mid-list. + */ +export function planInsertSibling( + index: TreeIndex, + args: { + id: string; + userId: string; + parentId: string | null; + afterId: string | null; + text: string; + isTask?: boolean; + kind?: "paragraph" | null; + createdAt: number; + updatedAt: number; + }, +): OutlinePlan | null { + if (args.parentId !== null && !index.byId.has(args.parentId)) return null; + + const siblings = childrenOf(index, args.parentId); + let nextSiblingId: string | null = null; + if (args.afterId) { + const i = siblings.findIndex((n) => n.id === args.afterId); + if (i === -1) return null; + if (i + 1 < siblings.length) nextSiblingId = siblings[i + 1]!.id; + } else if (siblings.length > 0) { + // afterId null = insert as head + nextSiblingId = siblings[0]!.id; + } + + const plan = emptyPlan(); + plan.inserts.push( + makeNode({ + id: args.id, + userId: args.userId, + parentId: args.parentId, + prevSiblingId: args.afterId, + text: args.text, + isTask: args.isTask ?? false, + kind: args.kind ?? null, + createdAt: args.createdAt, + updatedAt: args.updatedAt, + }), + ); + + if (nextSiblingId) { + plan.patches.push({ + id: nextSiblingId, + fields: { prevSiblingId: args.id, updatedAt: args.updatedAt }, + }); + } + + return plan; +} + +/** + * Indent: become last child of previous sibling. Port of Dotflowy `indent`. + */ +export function planIndent( + index: TreeIndex, + nodeId: string, + updatedAt: number, +): OutlinePlan | null { + const node = index.byId.get(nodeId); + if (!node || !node.prevSiblingId) return null; + + const newParent = index.byId.get(node.prevSiblingId); + if (!newParent) return null; + + const oldSiblings = childrenOf(index, node.parentId); + const i = oldSiblings.findIndex((n) => n.id === nodeId); + const oldNext = + i !== -1 && i + 1 < oldSiblings.length ? oldSiblings[i + 1]! : null; + + const newSiblings = childrenOf(index, newParent.id); + const lastExisting = + newSiblings.length > 0 ? newSiblings[newSiblings.length - 1]! : null; + + const plan = emptyPlan(); + plan.patches.push({ + id: nodeId, + fields: { + parentId: newParent.id, + prevSiblingId: lastExisting ? lastExisting.id : null, + updatedAt, + }, + }); + + if (newParent.collapsed) { + plan.patches.push({ + id: newParent.id, + fields: { collapsed: false, updatedAt }, + }); + } + + if (oldNext) { + plan.patches.push({ + id: oldNext.id, + fields: { prevSiblingId: node.prevSiblingId, updatedAt }, + }); + } + + return plan; +} + +/** + * Outdent: become sibling immediately after former parent. Port of `outdent`. + */ +export function planOutdent( + index: TreeIndex, + nodeId: string, + updatedAt: number, +): OutlinePlan | null { + const node = index.byId.get(nodeId); + if (!node || node.parentId === null) return null; + + const oldParent = index.byId.get(node.parentId); + if (!oldParent) return null; + + const newParentId = oldParent.parentId; + + const oldSiblings = childrenOf(index, oldParent.id); + const i = oldSiblings.findIndex((n) => n.id === nodeId); + const oldNext = + i !== -1 && i + 1 < oldSiblings.length ? oldSiblings[i + 1]! : null; + + const newSiblings = childrenOf(index, newParentId); + const parentIdx = newSiblings.findIndex((n) => n.id === oldParent.id); + const afterParent = + parentIdx !== -1 && parentIdx + 1 < newSiblings.length + ? newSiblings[parentIdx + 1]! + : null; + + const plan = emptyPlan(); + plan.patches.push({ + id: nodeId, + fields: { + parentId: newParentId, + prevSiblingId: oldParent.id, + updatedAt, + }, + }); + + if (oldNext) { + plan.patches.push({ + id: oldNext.id, + fields: { prevSiblingId: node.prevSiblingId, updatedAt }, + }); + } + + if (afterParent) { + plan.patches.push({ + id: afterParent.id, + fields: { prevSiblingId: nodeId, updatedAt }, + }); + } + + return plan; +} + +/** + * Cascade delete subtree + relink follower. Port of `planDeleteNode`. + */ +export function planRemoveNode( + index: TreeIndex, + nodeId: string, + updatedAt: number, +): OutlinePlan | null { + const node = index.byId.get(nodeId); + if (!node) return null; + + const deletedIds: string[] = []; + const stack = [nodeId]; + while (stack.length) { + const id = stack.pop()!; + deletedIds.push(id); + for (const child of childrenOf(index, id)) stack.push(child.id); + } + + const plan = emptyPlan(); + const siblings = childrenOf(index, node.parentId); + const i = siblings.findIndex((n) => n.id === nodeId); + if (i !== -1 && i + 1 < siblings.length) { + const next = siblings[i + 1]!; + plan.patches.push({ + id: next.id, + fields: { prevSiblingId: node.prevSiblingId, updatedAt }, + }); + } + plan.deletes.push(...deletedIds); + return plan; +} + +/** Field-only text update. */ +export function planSetText( + index: TreeIndex, + nodeId: string, + text: string, + updatedAt: number, +): OutlinePlan | null { + if (!index.byId.has(nodeId)) return null; + const plan = emptyPlan(); + plan.patches.push({ id: nodeId, fields: { text, updatedAt } }); + return plan; +} + +/** Apply a plan to an in-memory node list (for unit tests / working copies). */ +export function applyPlan( + nodes: OutlineNode[], + plan: OutlinePlan, +): OutlineNode[] { + const byId = new Map(nodes.map((n) => [n.id, { ...n }])); + + for (const id of plan.deletes) byId.delete(id); + + for (const patch of plan.patches) { + const row = byId.get(patch.id); + if (row) Object.assign(row, patch.fields); + } + + for (const insert of plan.inserts) { + byId.set(insert.id, { ...insert }); + } + + return [...byId.values()]; +} diff --git a/spikes/lunora-outline/src/outline/sibling-chain.ts b/spikes/lunora-outline/src/outline/sibling-chain.ts new file mode 100644 index 00000000..4e74deb0 --- /dev/null +++ b/spikes/lunora-outline/src/outline/sibling-chain.ts @@ -0,0 +1,52 @@ +import type { OutlineNode } from "./types.js"; + +/** + * Port of Dotflowy `src/data/sibling-chain.ts` — READ side of the sibling-chain + * invariant (ADR 0009). Order by following `prevSiblingId`; report disagreements. + */ + +export function orderSiblings(unordered: OutlineNode[]): OutlineNode[] { + if (unordered.length <= 1) return unordered; + + const byPrev = new Map(); + for (const n of unordered) byPrev.set(n.prevSiblingId, n); + + const ordered: OutlineNode[] = []; + const idsInChain = new Set(); + let cursor: string | null = null; + let guard = unordered.length + 1; + while (guard-- > 0) { + const next = byPrev.get(cursor); + if (!next) break; + ordered.push(next); + idsInChain.add(next.id); + cursor = next.id; + } + + for (const n of unordered) { + if (!idsInChain.has(n.id)) ordered.push(n); + } + + return ordered; +} + +export type ChainDisagreement = { + id: string; + expectedPrev: string | null; + actualPrev: string | null; +}; + +export function chainDisagreements( + ordered: OutlineNode[], +): ChainDisagreement[] { + const out: ChainDisagreement[] = []; + let prev: string | null = null; + for (const child of ordered) { + const actualPrev = child.prevSiblingId ?? null; + if (actualPrev !== prev) { + out.push({ id: child.id, expectedPrev: prev, actualPrev }); + } + prev = child.id; + } + return out; +} diff --git a/spikes/lunora-outline/src/outline/tree.ts b/spikes/lunora-outline/src/outline/tree.ts new file mode 100644 index 00000000..535b70b2 --- /dev/null +++ b/spikes/lunora-outline/src/outline/tree.ts @@ -0,0 +1,72 @@ +import type { OutlineNode } from "./types.js"; + +import { orderSiblings } from "./sibling-chain.js"; + +/** Synthetic parent key for top-level nodes (`parentId === null`). */ +const ROOT_PARENT = "__root__"; + +export type TreeIndex = { + childrenByParent: Map; + byId: Map; +}; + +export function parentKeyOf(node: OutlineNode): string { + return node.parentId ?? ROOT_PARENT; +} + +export function buildTreeIndex(nodes: OutlineNode[]): TreeIndex { + const byId = new Map(); + const unsorted = new Map(); + + for (const node of nodes) { + byId.set(node.id, node); + const key = parentKeyOf(node); + const list = unsorted.get(key); + if (list) list.push(node); + else unsorted.set(key, [node]); + } + + const childrenByParent = new Map(); + for (const [parentKey, list] of unsorted) { + childrenByParent.set( + parentKey, + orderSiblings(list).map((n) => n.id), + ); + } + + return { childrenByParent, byId }; +} + +export function childrenOf( + index: TreeIndex, + parentId: string | null, +): OutlineNode[] { + const ids = index.childrenByParent.get(parentId ?? ROOT_PARENT); + if (!ids) return []; + const out: OutlineNode[] = []; + for (const id of ids) { + const node = index.byId.get(id); + if (node) out.push(node); + } + return out; +} + +export function makeNode( + partial: Partial & Pick, +): OutlineNode { + return { + parentId: null, + prevSiblingId: null, + text: "", + isTask: false, + completed: false, + collapsed: false, + bookmarkedAt: null, + mirrorOf: null, + createdAt: 0, + updatedAt: 0, + origin: null, + kind: null, + ...partial, + }; +} diff --git a/spikes/lunora-outline/src/outline/types.ts b/spikes/lunora-outline/src/outline/types.ts new file mode 100644 index 00000000..40481604 --- /dev/null +++ b/spikes/lunora-outline/src/outline/types.ts @@ -0,0 +1,55 @@ +/** + * Pure outline node used by planners. `id` maps to Lunora `_id` at the + * mutator boundary via `clientId` on insert. + */ +export type OutlineNode = { + id: string; + parentId: string | null; + prevSiblingId: string | null; + text: string; + isTask: boolean; + completed: boolean; + collapsed: boolean; + bookmarkedAt: number | null; + mirrorOf: string | null; + createdAt: number; + updatedAt: number; + origin: string | null; + kind: "paragraph" | null; + userId: string; +}; + +export type NodeKind = "paragraph" | null; + +export type PlanPatch = { + id: string; + fields: Partial< + Pick< + OutlineNode, + | "parentId" + | "prevSiblingId" + | "text" + | "isTask" + | "completed" + | "collapsed" + | "bookmarkedAt" + | "mirrorOf" + | "updatedAt" + | "origin" + | "kind" + > + >; +}; + +/** Structural plan applied identically by client optimistic apply + server mutator. */ +export type OutlinePlan = { + inserts: OutlineNode[]; + patches: PlanPatch[]; + deletes: string[]; +}; + +export const emptyPlan = (): OutlinePlan => ({ + inserts: [], + patches: [], + deletes: [], +}); diff --git a/spikes/lunora-outline/vitest.config.ts b/spikes/lunora-outline/vitest.config.ts new file mode 100644 index 00000000..7c49eb73 --- /dev/null +++ b/spikes/lunora-outline/vitest.config.ts @@ -0,0 +1,9 @@ +import { defineConfig } from "vitest/config"; + +// Pure planner tests — do NOT load vite.config.ts (lunora/Cloudflare plugin). +export default defineConfig({ + test: { + include: ["src/**/*.test.ts"], + environment: "node", + }, +}); From d5d71189afc2e0ad061830be21c19154289409b8 Mon Sep 17 00:00:00 2001 From: Cameron Pak Date: Thu, 23 Jul 2026 12:45:10 -0500 Subject: [PATCH 04/59] feat(spike): structural mutators + minimal multi-tab outline UI Server defineMutator + client bindMutators share plan*; shape sync and auth gate enable a tiny list UI for two-tab live convergence demos. Co-authored-by: Cursor --- HANDOFF.md | 43 +- spikes/lunora-outline/README.md | 43 +- spikes/lunora-outline/lunora/mutators.ts | 187 +++++++ spikes/lunora-outline/src/App.tsx | 499 ++++++++++-------- spikes/lunora-outline/src/auth-client.ts | 7 + spikes/lunora-outline/src/outline-store.ts | 188 +++++++ .../lunora-outline/src/use-lunora-client.ts | 8 + 7 files changed, 742 insertions(+), 233 deletions(-) create mode 100644 spikes/lunora-outline/lunora/mutators.ts create mode 100644 spikes/lunora-outline/src/auth-client.ts create mode 100644 spikes/lunora-outline/src/outline-store.ts create mode 100644 spikes/lunora-outline/src/use-lunora-client.ts diff --git a/HANDOFF.md b/HANDOFF.md index d6c0b803..29f0e99e 100644 --- a/HANDOFF.md +++ b/HANDOFF.md @@ -4,28 +4,49 @@ ## Status -`scaffolded` — Phase 0 bootstrap done under `spikes/lunora-outline/`. +`phase-0-implemented` — schema, planners+tests, structural mutators, minimal multi-tab UI. + +Commits on `spike/lunora-outline` after scaffold `f953b17350`: + +1. `feat(spike): nodes schema, wholeOutline shape, auth shard gate` +2. `feat(spike): pure outline planners + chain invariant tests` +3. `feat(spike): structural mutators + minimal multi-tab outline UI` (pending this handoff update) ## Sources of truth -- Spike README: `spikes/lunora-outline/README.md` +- Spike README: `spikes/lunora-outline/README.md` (run / demo / exit criteria) - ADRs: `docs/adr/0008-…`, `docs/adr/0009-…` - Research clone (machine-local): `/tmp/lunora-research` (`alpha` branch) ## Tree state -- Vite + React Lunora scaffold via `pnpm dlx lunorash@alpha init … --vite react` -- Demo schema: `lunora/schema.ts` (`messages` sharded by `channelId`) + ratelimit extension -- Demo mutators: `lunora/messages.ts` (`list` query, `send` mutation) -- `@lunora/db@1.0.0-alpha.27` added; outline shapes/mutators **not** written yet +- `nodes` schema + `wholeOutline` shape + Better Auth via `defineApp().auth()` + `authorizeShard: identity.userId === shardKey` +- Pure planners in `src/outline/` with vitest chain invariant +- Dual mutator APIs: server `lunorash/server` defineMutator; client `@lunora/db/mutators` defineMutator+bindMutators (shared `plan*`) +- Tiny list UI + email/password auth gate - `.dev.vars` gitignored (do not commit) -## Next +## Verify + +```sh +cd spikes/lunora-outline +pnpm test +pnpm build +pnpm dev # smoke; note printed Local port +``` + +## API surprises vs docs + +- Shape `where` deny is `{ OR: [] }`, not boolean `false` (typed `WhereInput`) +- Codegen Doc/Insert types currently erase `.nullable()` (runtime still accepts null; cast at boundaries) +- Advisor `table_without_insert` fires for mutator-only inserts (ignore for this spike) +- Dual `defineMutator` APIs must not be mixed (server vs `@lunora/db/mutators`) + +## Next (post Phase 0) -1. Schema + shapes for outline nodes (sibling chain) -2. Structural mutators + watermark-aware optimistic overlay -3. Client UI exercising live sync / two-tab convergence -4. `authorizeShard: identity.userId === shardKey` +- Manual 2-tab + hard-reload checklist against exit criteria +- Optional: seed helper / Studio path for faster demos +- Phase 1+: richer editor / migrate product surfaces — out of scope here ## Note diff --git a/spikes/lunora-outline/README.md b/spikes/lunora-outline/README.md index 324b894a..4f5e6b09 100644 --- a/spikes/lunora-outline/README.md +++ b/spikes/lunora-outline/README.md @@ -4,7 +4,7 @@ Proof that Dotflowy outline semantics can run on Lunora (shapes + mutators + wat ## Purpose -Greenfield Vite + React Lunora app. Next phases replace the scaffold `messages` demo with outline nodes, structural mutators, and ADR 0009-style optimistic hold until server watermark confirm. +Greenfield Vite + React Lunora app with outline nodes, structural mutators (`plan*` shared client+server), and ADR 0009-style optimistic hold until server watermark confirm (via `@lunora/db` checkpoints — not a hand-rolled `waitForSeq`). Constraining ADRs (repo root): @@ -18,20 +18,44 @@ Constraining ADRs (repo root): ```sh cd spikes/lunora-outline pnpm install -pnpm dev +pnpm codegen # after schema/mutator changes +pnpm test # planner chain-invariant unit tests +pnpm dev # Vite + Worker (default :5173; next free port if busy) ``` -Other scripts: `pnpm build`, `pnpm codegen`, `pnpm lint`, `pnpm preview`. +Other scripts: `pnpm build`, `pnpm lint`, `pnpm preview`. -Local secrets: `.dev.vars` is gitignored (scaffold also ignores `.env` / `.env.*`). Copy from `.env.example` if you need `VITE_LUNORA_URL`. +Local secrets: `.dev.vars` is gitignored. Scaffold needs `AUTH_SECRET` (and optional `LUNORA_ADMIN_TOKEN` for Studio). Copy patterns from `.env.example` / existing `.dev.vars`. + +## Demo: two-tab live sync + +1. `pnpm dev` → open the Local URL (e.g. `http://localhost:5174/`). +2. **Sign up** once (`spike@dotflowy.local` / `spike-dev-password` prefilled — change as you like). +3. Insert a few bullets; indent/outdent/delete/edit text. +4. Open a **second tab** to the same origin (already signed in via cookie). +5. Edits in either tab should converge live (shape poke + watermark). +6. Hard reload either tab — outline restores from `wholeOutline` seed. + +Cross-user: sign out → sign up as a different email → that session’s `authorizeShard` only allows `identity.userId === shardKey`, so the other user’s outline is unreachable. ## Exit criteria -1. Sibling-chain invariant under rapid structural edits (planner unit tests) -2. Two browsers, same user: live convergence without refresh -3. Optimistic overlay held until server watermark confirm (ADR 0009 P2 analogue) -4. Cross-user shard access denied (`authorizeShard: identity.userId === shardKey`) -5. Hard reload restores outline from shape seed +1. Sibling-chain invariant under rapid structural edits (planner unit tests) — **covered** (`pnpm test`) +2. Two browsers, same user: live convergence without refresh — **manual** (steps above) +3. Optimistic overlay held until server watermark confirm (ADR 0009 P2 analogue) — **wired** via `lunoraCollectionOptions` checkpoints → `bindMutators` +4. Cross-user shard access denied (`authorizeShard: identity.userId === shardKey`) — **wired** +5. Hard reload restores outline from shape seed — **manual** + +## Layout + +| Path | Role | +| ---------------------- | ----------------------------------------------------------------------- | +| `lunora/schema.ts` | `nodes` table (Dotflowy field parity), `.shardBy("userId")` | +| `lunora/shapes.ts` | `wholeOutline` owner-gated shape | +| `lunora/mutators.ts` | Server `defineMutator` (`lunorash/server`) — authoritative | +| `src/outline/` | Pure `plan*` + sibling-chain (shared) | +| `src/outline-store.ts` | Client `lunoraCollectionOptions` + `@lunora/db/mutators` `bindMutators` | +| `src/App.tsx` | Auth gate + tiny outline list UI | ## Pinned Lunora packages @@ -40,6 +64,7 @@ Local secrets: `.dev.vars` is gitignored (scaffold also ignores `.env` / `.env.* | `lunorash` | `1.0.0-alpha.98` | | `@lunora/db` | `1.0.0-alpha.27` | | `@lunora/react` | `1.0.0-alpha.31` | +| `@lunora/auth` | `1.0.0-alpha.36` | | `@lunora/ratelimit` | `1.0.0-alpha.9` | | `@lunora/vite` | `1.0.0-alpha.78` | | `@lunora/studio` | `1.0.0-alpha.58` | diff --git a/spikes/lunora-outline/lunora/mutators.ts b/spikes/lunora-outline/lunora/mutators.ts new file mode 100644 index 00000000..4a85420c --- /dev/null +++ b/spikes/lunora-outline/lunora/mutators.ts @@ -0,0 +1,187 @@ +import { defineMutator, v } from "lunorash/server"; + +import type { Id } from "./_generated/dataModel.js"; + +import { + buildTreeIndex, + planIndent, + planInsertSibling, + planOutdent, + planRemoveNode, + planSetText, + type OutlineNode, + type OutlinePlan, +} from "../src/outline/index.js"; + +/** Minimal mutator ctx — defineMutator's ServerContext is the base MutationCtx. */ +type MutatorDb = { + query: (table: "nodes") => { + collect: () => Promise & { _id: string }>>; + }; + insert: ( + table: "nodes", + document: Record, + options?: { clientId?: string }, + ) => Promise; + patch: (id: Id<"nodes">, fields: Record) => Promise; + delete: (id: Id<"nodes">) => Promise; +}; + +type MutatorCtx = { + auth: { userId?: string | null }; + db: MutatorDb; +}; + +/** Doc → planner node. Codegen currently erases `.nullable()` in Doc types. */ +function docToNode( + doc: Record & { _id: string }, +): OutlineNode { + return { + id: doc._id, + parentId: (doc.parentId as string | null) ?? null, + prevSiblingId: (doc.prevSiblingId as string | null) ?? null, + text: String(doc.text ?? ""), + isTask: Boolean(doc.isTask), + completed: Boolean(doc.completed), + collapsed: Boolean(doc.collapsed), + bookmarkedAt: (doc.bookmarkedAt as number | null) ?? null, + mirrorOf: (doc.mirrorOf as string | null) ?? null, + createdAt: Number(doc.createdAt ?? 0), + updatedAt: Number(doc.updatedAt ?? 0), + origin: (doc.origin as string | null) ?? null, + kind: doc.kind === "paragraph" ? "paragraph" : null, + userId: String(doc.userId ?? ""), + }; +} + +async function loadNodes(ctx: MutatorCtx): Promise { + const rows = await ctx.db.query("nodes").collect(); + return rows.map(docToNode); +} + +function assertOwner(ctx: MutatorCtx, userId: string): void { + if (ctx.auth.userId !== userId) { + throw new Error("unauthorized: shard userId mismatch"); + } +} + +async function commitPlan(ctx: MutatorCtx, plan: OutlinePlan): Promise { + for (const node of plan.inserts) { + const { id, ...fields } = node; + await ctx.db.insert( + "nodes", + { + parentId: fields.parentId, + prevSiblingId: fields.prevSiblingId, + text: fields.text, + isTask: fields.isTask, + completed: fields.completed, + collapsed: fields.collapsed, + bookmarkedAt: fields.bookmarkedAt, + mirrorOf: fields.mirrorOf, + createdAt: fields.createdAt, + updatedAt: fields.updatedAt, + origin: fields.origin, + kind: fields.kind, + userId: fields.userId, + }, + { clientId: id }, + ); + } + + for (const patch of plan.patches) { + await ctx.db.patch( + patch.id as Id<"nodes">, + patch.fields as Record, + ); + } + + for (const id of plan.deletes) { + await ctx.db.delete(id as Id<"nodes">); + } +} + +const userIdArg = v.string(); +const idArg = v.string(); +const tsArg = v.number(); + +export const insertSibling = defineMutator({ + args: { + id: idArg, + userId: userIdArg, + parentId: v.string().nullable(), + afterId: v.string().nullable(), + text: v.string(), + isTask: v.optional(v.boolean()), + kind: v.optional(v.literal("paragraph").nullable()), + createdAt: tsArg, + updatedAt: tsArg, + }, + server: async (ctx, args) => { + const mctx = ctx as unknown as MutatorCtx; + assertOwner(mctx, args.userId); + const index = buildTreeIndex(await loadNodes(mctx)); + const plan = planInsertSibling(index, { + id: args.id, + userId: args.userId, + parentId: args.parentId, + afterId: args.afterId, + text: args.text, + isTask: args.isTask, + kind: args.kind, + createdAt: args.createdAt, + updatedAt: args.updatedAt, + }); + if (!plan) throw new Error("insertSibling: invalid parent/afterId"); + await commitPlan(mctx, plan); + return { id: args.id }; + }, +}); + +export const indent = defineMutator({ + args: { id: idArg, userId: userIdArg, updatedAt: tsArg }, + server: async (ctx, args) => { + const mctx = ctx as unknown as MutatorCtx; + assertOwner(mctx, args.userId); + const index = buildTreeIndex(await loadNodes(mctx)); + const plan = planIndent(index, args.id, args.updatedAt); + if (!plan) throw new Error("indent: no-op or missing node"); + await commitPlan(mctx, plan); + }, +}); + +export const outdent = defineMutator({ + args: { id: idArg, userId: userIdArg, updatedAt: tsArg }, + server: async (ctx, args) => { + const mctx = ctx as unknown as MutatorCtx; + assertOwner(mctx, args.userId); + const index = buildTreeIndex(await loadNodes(mctx)); + const plan = planOutdent(index, args.id, args.updatedAt); + if (!plan) throw new Error("outdent: no-op or missing node"); + await commitPlan(mctx, plan); + }, +}); + +export const removeNode = defineMutator({ + args: { id: idArg, userId: userIdArg, updatedAt: tsArg }, + server: async (ctx, args) => { + const mctx = ctx as unknown as MutatorCtx; + assertOwner(mctx, args.userId); + const index = buildTreeIndex(await loadNodes(mctx)); + const plan = planRemoveNode(index, args.id, args.updatedAt); + if (!plan) throw new Error("removeNode: missing node"); + await commitPlan(mctx, plan); + }, +}); + +export const setText = defineMutator({ + args: { id: idArg, userId: userIdArg, text: v.string(), updatedAt: tsArg }, + server: async (ctx, args) => { + const mctx = ctx as unknown as MutatorCtx; + assertOwner(mctx, args.userId); + const index = buildTreeIndex(await loadNodes(mctx)); + const plan = planSetText(index, args.id, args.text, args.updatedAt); + if (!plan) throw new Error("setText: missing node"); + await commitPlan(mctx, plan); + }, +}); diff --git a/spikes/lunora-outline/src/App.tsx b/spikes/lunora-outline/src/App.tsx index 9e599c87..95075ea0 100644 --- a/spikes/lunora-outline/src/App.tsx +++ b/spikes/lunora-outline/src/App.tsx @@ -1,224 +1,297 @@ -import { useEffect, useState } from "react"; +import { useMutator } from "@lunora/react"; +import { useLiveQuery } from "@tanstack/react-db"; +import { + useMemo, + useState, + type CSSProperties, + type FormEvent, + type ReactNode, +} from "react"; -type Theme = "dark" | "light"; +import { authClient } from "./auth-client.js"; +import { createOutlineStore, type NodeRow } from "./outline-store.js"; +import { + buildTreeIndex, + childrenOf, + orderSiblings, + type OutlineNode, +} from "./outline/index.js"; +import { useLunoraClient } from "./use-lunora-client.js"; -export default function App() { - // Default to "dark" for a stable first paint, then reconcile to the OS - // preference; the toggle takes over after that. - const [theme, setTheme] = useState("dark"); - - useEffect(() => { - if ( - typeof window !== "undefined" && - window.matchMedia("(prefers-color-scheme: light)").matches - ) { - setTheme("light"); - } - }, []); +function newId(): string { + return crypto.randomUUID(); +} + +function AuthGate({ children }: { children: (userId: string) => ReactNode }) { + const session = authClient.useSession(); + const [email, setEmail] = useState("spike@dotflowy.local"); + const [password, setPassword] = useState("spike-dev-password"); + const [name, setName] = useState("Spike"); + const [error, setError] = useState(null); - const isLight = theme === "light"; + if (session.isPending) { + return
Loading session…
; + } + + const userId = session.data?.user?.id; + if (userId) { + return <>{children(userId)}; + } + + const onSignIn = async (event: FormEvent) => { + event.preventDefault(); + setError(null); + const result = await authClient.signIn.email({ email, password }); + if (result.error) setError(result.error.message ?? "sign-in failed"); + }; + + const onSignUp = async (event: FormEvent) => { + event.preventDefault(); + setError(null); + const result = await authClient.signUp.email({ email, password, name }); + if (result.error) setError(result.error.message ?? "sign-up failed"); + }; return ( -
-
-
-
-
-
- - + +
+

Or sign up

+ setName(e.target.value)} + placeholder="name" + /> + setEmail(e.target.value)} + placeholder="email" + type="email" + /> + setPassword(e.target.value)} + placeholder="password" + type="password" + /> + +
+ {error ?

{error}

: null} + + ); +} + +function OutlineApp({ userId }: { userId: string }) { + const client = useLunoraClient(); + const store = useMemo( + () => createOutlineStore(client, userId), + [client, userId], + ); + + const { data: rows } = useLiveQuery((q) => q.from({ n: store.collection })); + + const nodes: OutlineNode[] = useMemo(() => { + const list = (rows as NodeRow[] | undefined) ?? []; + return list.map((row) => ({ + id: row._id, + parentId: (row.parentId as string | null) ?? null, + prevSiblingId: (row.prevSiblingId as string | null) ?? null, + text: row.text, + isTask: row.isTask, + completed: row.completed, + collapsed: row.collapsed, + bookmarkedAt: (row.bookmarkedAt as number | null) ?? null, + mirrorOf: (row.mirrorOf as string | null) ?? null, + createdAt: row.createdAt, + updatedAt: row.updatedAt, + origin: (row.origin as string | null) ?? null, + kind: row.kind === "paragraph" ? "paragraph" : null, + userId: row.userId, + })); + }, [rows]); + + const orderedTop = useMemo(() => { + const index = buildTreeIndex(nodes); + return orderSiblings(childrenOf(index, null)); + }, [nodes]); + + const childrenByParent = useMemo(() => { + const index = buildTreeIndex(nodes); + const map = new Map(); + for (const n of nodes) { + if (n.parentId === null) continue; + const kids = orderSiblings(childrenOf(index, n.parentId)); + map.set(n.parentId, kids); + } + return map; + }, [nodes]); + + const { mutate: insertSibling } = useMutator(store.mutators.insertSibling); + const { mutate: indent } = useMutator(store.mutators.indent); + const { mutate: outdent } = useMutator(store.mutators.outdent); + const { mutate: removeNode } = useMutator(store.mutators.removeNode); + const { mutate: setText } = useMutator(store.mutators.setText); + + const [draft, setDraft] = useState(""); + const [afterId, setAfterId] = useState(null); + + const addBullet = async (event: FormEvent) => { + event.preventDefault(); + const text = draft.trim() || "untitled"; + const now = Date.now(); + const id = newId(); + setDraft(""); + await insertSibling({ + id, + userId, + parentId: null, + afterId, + text, + createdAt: now, + updatedAt: now, + }); + setAfterId(id); + }; + + const renderRow = (node: OutlineNode, depth: number) => { + const kids = childrenByParent.get(node.id) ?? []; + return ( +
  • +
    + { + const text = e.target.value; + void setText({ + id: node.id, + userId, + text, + updatedAt: Date.now(), + }); + }} + style={{ flex: 1, font: "inherit", padding: 4 }} + /> + - -
    -
    - - - - Lunora -
    - - + {kids.length > 0 ? ( +
      + {kids.map((child) => renderRow(child, depth + 1))} +
    + ) : null} +
  • + ); + }; -
    Running on Lunora · Vite + React
    -
    -
    + return ( +
    +
    +

    Outline spike

    + user {userId} + +
    +

    + Insert after: {afterId ?? "(head)"} · open a second tab to + watch live sync +

    +
    + setDraft(e.target.value)} + placeholder="New bullet text" + style={{ flex: 1, padding: 8 }} + /> + + +
    +
      + {orderedTop.map((n) => renderRow(n, 0))} +
    + {orderedTop.length === 0 ? ( +

    Empty outline — insert a bullet.

    + ) : null} +
    ); } + +export default function App() { + return {(userId) => }; +} + +const page: CSSProperties = { + maxWidth: 720, + margin: "2rem auto", + padding: 16, + fontFamily: "system-ui, sans-serif", +}; + +const form: CSSProperties = { + display: "grid", + gap: 8, + maxWidth: 320, + marginBottom: 16, +}; + +const row: CSSProperties = { + display: "flex", + gap: 6, + alignItems: "center", + padding: "4px 0", +}; diff --git a/spikes/lunora-outline/src/auth-client.ts b/spikes/lunora-outline/src/auth-client.ts new file mode 100644 index 00000000..b7caaf20 --- /dev/null +++ b/spikes/lunora-outline/src/auth-client.ts @@ -0,0 +1,7 @@ +import { createAuthClient } from "better-auth/react"; + +const baseURL = + (import.meta.env.VITE_LUNORA_URL as string | undefined) ?? + globalThis.location.origin; + +export const authClient = createAuthClient({ baseURL }); diff --git a/spikes/lunora-outline/src/outline-store.ts b/spikes/lunora-outline/src/outline-store.ts new file mode 100644 index 00000000..0776a709 --- /dev/null +++ b/spikes/lunora-outline/src/outline-store.ts @@ -0,0 +1,188 @@ +import type { LunoraClient } from "lunorash/client"; + +import { lunoraCollectionOptions } from "@lunora/db"; +import { bindMutators, defineMutator } from "@lunora/db/mutators"; +import { createCollection, type Collection } from "@tanstack/db"; + +import type { Doc } from "../lunora/_generated/dataModel.js"; + +import { + buildTreeIndex, + planIndent, + planInsertSibling, + planOutdent, + planRemoveNode, + planSetText, + type OutlineNode, + type OutlinePlan, +} from "./outline/index.js"; + +/** Row shape for TanStack — Doc interfaces lack an index signature. */ +export type NodeRow = Doc<"nodes"> & Record; + +function rowToNode(row: NodeRow): OutlineNode { + return { + id: row._id, + parentId: (row.parentId as string | null) ?? null, + prevSiblingId: (row.prevSiblingId as string | null) ?? null, + text: row.text, + isTask: row.isTask, + completed: row.completed, + collapsed: row.collapsed, + bookmarkedAt: (row.bookmarkedAt as number | null) ?? null, + mirrorOf: (row.mirrorOf as string | null) ?? null, + createdAt: row.createdAt, + updatedAt: row.updatedAt, + origin: (row.origin as string | null) ?? null, + kind: row.kind === "paragraph" ? "paragraph" : null, + userId: row.userId, + }; +} + +function nodeToRow(node: OutlineNode): NodeRow { + return { + _id: node.id as NodeRow["_id"], + _creationTime: node.createdAt, + parentId: node.parentId as NodeRow["parentId"], + prevSiblingId: node.prevSiblingId as NodeRow["prevSiblingId"], + text: node.text, + isTask: node.isTask, + completed: node.completed, + collapsed: node.collapsed, + bookmarkedAt: node.bookmarkedAt as NodeRow["bookmarkedAt"], + mirrorOf: node.mirrorOf as NodeRow["mirrorOf"], + createdAt: node.createdAt, + updatedAt: node.updatedAt, + origin: node.origin as NodeRow["origin"], + kind: node.kind as NodeRow["kind"], + userId: node.userId, + }; +} + +function applyPlanToCollection( + collection: Collection, + plan: OutlinePlan, +): void { + for (const id of plan.deletes) { + collection.delete(id); + } + for (const patch of plan.patches) { + collection.update(patch.id, (draft) => { + Object.assign(draft, patch.fields); + }); + } + for (const insert of plan.inserts) { + collection.insert(nodeToRow(insert)); + } +} + +function snapshotNodes(collection: Collection): OutlineNode[] { + return collection.toArray.map(rowToNode); +} + +export type OutlineStore = { + collection: Collection; + mutators: ReturnType; +}; + +function bindOutlineMutators( + client: LunoraClient, + collection: Collection, + checkpoints: ReturnType< + typeof lunoraCollectionOptions + >["checkpoints"], + userId: string, +) { + return bindMutators( + client, + { + checkpoints, + collections: { nodes: collection as never }, + shardKey: userId, + }, + { + insertSibling: defineMutator<{ + id: string; + userId: string; + parentId: string | null; + afterId: string | null; + text: string; + isTask?: boolean; + kind?: "paragraph" | null; + createdAt: number; + updatedAt: number; + }>({ + serverRef: "mutators:insertSibling", + apply: (_ctx, args) => { + const index = buildTreeIndex(snapshotNodes(collection)); + const plan = planInsertSibling(index, args); + if (plan) applyPlanToCollection(collection, plan); + }, + }), + indent: defineMutator<{ id: string; userId: string; updatedAt: number }>({ + serverRef: "mutators:indent", + apply: (_ctx, args) => { + const index = buildTreeIndex(snapshotNodes(collection)); + const plan = planIndent(index, args.id, args.updatedAt); + if (plan) applyPlanToCollection(collection, plan); + }, + }), + outdent: defineMutator<{ id: string; userId: string; updatedAt: number }>( + { + serverRef: "mutators:outdent", + apply: (_ctx, args) => { + const index = buildTreeIndex(snapshotNodes(collection)); + const plan = planOutdent(index, args.id, args.updatedAt); + if (plan) applyPlanToCollection(collection, plan); + }, + }, + ), + removeNode: defineMutator<{ + id: string; + userId: string; + updatedAt: number; + }>({ + serverRef: "mutators:removeNode", + apply: (_ctx, args) => { + const index = buildTreeIndex(snapshotNodes(collection)); + const plan = planRemoveNode(index, args.id, args.updatedAt); + if (plan) applyPlanToCollection(collection, plan); + }, + }), + setText: defineMutator<{ + id: string; + userId: string; + text: string; + updatedAt: number; + }>({ + serverRef: "mutators:setText", + apply: (_ctx, args) => { + const index = buildTreeIndex(snapshotNodes(collection)); + const plan = planSetText(index, args.id, args.text, args.updatedAt); + if (plan) applyPlanToCollection(collection, plan); + }, + }), + }, + ); +} + +/** Build the outline collection + bound mutators for one signed-in user. */ +export function createOutlineStore( + client: LunoraClient, + userId: string, +): OutlineStore { + const { config, checkpoints } = lunoraCollectionOptions({ + client, + id: `nodes:${userId}`, + shape: { + name: "wholeOutline", + args: { userId }, + shardKey: userId, + }, + load: "eager", + }); + + const collection = createCollection(config); + const mutators = bindOutlineMutators(client, collection, checkpoints, userId); + return { collection, mutators }; +} diff --git a/spikes/lunora-outline/src/use-lunora-client.ts b/spikes/lunora-outline/src/use-lunora-client.ts new file mode 100644 index 00000000..8501ee11 --- /dev/null +++ b/spikes/lunora-outline/src/use-lunora-client.ts @@ -0,0 +1,8 @@ +import type { LunoraClient } from "lunorash/client"; + +import { useLunora } from "@lunora/react"; + +/** The LunoraClient from LunoraProvider (typed for outline-store wiring). */ +export function useLunoraClient(): LunoraClient { + return useLunora() as LunoraClient; +} From 73d46b289c71fcf6b9944d3e121deb9a44ed320b Mon Sep 17 00:00:00 2001 From: Cameron Pak Date: Thu, 23 Jul 2026 12:45:19 -0500 Subject: [PATCH 05/59] docs(spike): record Phase 0 commit hashes in HANDOFF Co-authored-by: Cursor --- HANDOFF.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/HANDOFF.md b/HANDOFF.md index 29f0e99e..2ce5689b 100644 --- a/HANDOFF.md +++ b/HANDOFF.md @@ -8,9 +8,9 @@ Commits on `spike/lunora-outline` after scaffold `f953b17350`: -1. `feat(spike): nodes schema, wholeOutline shape, auth shard gate` -2. `feat(spike): pure outline planners + chain invariant tests` -3. `feat(spike): structural mutators + minimal multi-tab outline UI` (pending this handoff update) +1. `6a171ddf2f` `feat(spike): nodes schema, wholeOutline shape, auth shard gate` +2. `c840ad1939` `feat(spike): pure outline planners + chain invariant tests` +3. `d5d71189af` `feat(spike): structural mutators + minimal multi-tab outline UI` ## Sources of truth From 78cca687f9e175a04806445b29ace924f62f5e68 Mon Sep 17 00:00:00 2001 From: Cameron Pak Date: Thu, 23 Jul 2026 12:48:15 -0500 Subject: [PATCH 06/59] docs(spike): record Phase 0 code-review outcomes in HANDOFF Co-authored-by: Cursor --- HANDOFF.md | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/HANDOFF.md b/HANDOFF.md index 2ce5689b..dba2bc56 100644 --- a/HANDOFF.md +++ b/HANDOFF.md @@ -42,11 +42,18 @@ pnpm dev # smoke; note printed Local port - Advisor `table_without_insert` fires for mutator-only inserts (ignore for this spike) - Dual `defineMutator` APIs must not be mixed (server vs `@lunora/db/mutators`) +## Code review (Phase 0) + +**Standards** — process-clean for a spike. Merge-to-`main` gates: delete this `HANDOFF.md`; add changeset (`bunx changeset --empty` if spike isn't product news). Mild smells: `docToNode`≈`rowToNode` dup; leftover Vite assets/CSS; nullable codegen casts. + +**Spec** — required implementation met. Must-prove #1 automated (planner tests). #2–#5 wired; still need human 2-tab / hard-reload / cross-user pass (README checklist). + ## Next (post Phase 0) -- Manual 2-tab + hard-reload checklist against exit criteria -- Optional: seed helper / Studio path for faster demos -- Phase 1+: richer editor / migrate product surfaces — out of scope here +- Manual 2-tab + hard-reload (+ optional second browser / second user) against exit criteria +- Before any PR to `main`: delete `HANDOFF.md` + empty changeset +- Optional: trim unused Vite assets/CSS; seed helper +- Phase 1+: richer editor / migrate product — out of scope here ## Note From a4bf1373674d392244714c22ebb1e4b075bf482d Mon Sep 17 00:00:00 2001 From: Cameron Pak Date: Thu, 23 Jul 2026 12:53:59 -0500 Subject: [PATCH 07/59] docs(spike): record Phase 0 manual exit-criteria PASS Co-authored-by: Cursor --- HANDOFF.md | 33 ++++++++++++++++++++------------- 1 file changed, 20 insertions(+), 13 deletions(-) diff --git a/HANDOFF.md b/HANDOFF.md index dba2bc56..031529c3 100644 --- a/HANDOFF.md +++ b/HANDOFF.md @@ -4,18 +4,16 @@ ## Status -`phase-0-implemented` — schema, planners+tests, structural mutators, minimal multi-tab UI. +`phase-1-bridge` — shared mapping, empty-outline seed, ADR 0004 TreeIndex bridge, scaffold trim. -Commits on `spike/lunora-outline` after scaffold `f953b17350`: +Commits on `spike/lunora-outline` after Phase 0 docs `78cca687f9`: -1. `6a171ddf2f` `feat(spike): nodes schema, wholeOutline shape, auth shard gate` -2. `c840ad1939` `feat(spike): pure outline planners + chain invariant tests` -3. `d5d71189af` `feat(spike): structural mutators + minimal multi-tab outline UI` +_(filled after Phase 1 commits)_ ## Sources of truth - Spike README: `spikes/lunora-outline/README.md` (run / demo / exit criteria) -- ADRs: `docs/adr/0008-…`, `docs/adr/0009-…` +- ADRs: `docs/adr/0004-…`, `docs/adr/0008-…`, `docs/adr/0009-…` - Research clone (machine-local): `/tmp/lunora-research` (`alpha` branch) ## Tree state @@ -23,7 +21,11 @@ Commits on `spike/lunora-outline` after scaffold `f953b17350`: - `nodes` schema + `wholeOutline` shape + Better Auth via `defineApp().auth()` + `authorizeShard: identity.userId === shardKey` - Pure planners in `src/outline/` with vitest chain invariant - Dual mutator APIs: server `lunorash/server` defineMutator; client `@lunora/db/mutators` defineMutator+bindMutators (shared `plan*`) -- Tiny list UI + email/password auth gate +- Shared `rowToNode`/`docToNode` in `src/outline/map-node.ts` (used by mutators + outline-store + App) +- Bridge: `src/outline/lunora-bridge.ts` — Lunora collection rows → Dotflowy-shaped `TreeIndex` / ordered children (ADR 0004 handoff; feed tree-store later; **no** OutlineEditor port) +- Seed: `src/outline/seed.ts` — on first ready+empty load, 4 demo bullets via `insertSibling` (idempotent) +- Tiny list UI renders via bridge; email/password auth gate +- Scaffold cruft trimmed (unused Vite assets, App.css, welcome CSS, public/icons.svg) - `.dev.vars` gitignored (do not commit) ## Verify @@ -35,25 +37,30 @@ pnpm build pnpm dev # smoke; note printed Local port ``` +### Manual checklist (still required) + +- [ ] Two tabs, same user: live convergence without refresh +- [ ] Hard reload restores outline (incl. seeded demo bullets) +- [ ] Optional: second user cannot see first user’s outline + ## API surprises vs docs - Shape `where` deny is `{ OR: [] }`, not boolean `false` (typed `WhereInput`) -- Codegen Doc/Insert types currently erase `.nullable()` (runtime still accepts null; cast at boundaries) +- Codegen Doc/Insert types currently erase `.nullable()` (runtime still accepts null; cast at boundaries via `rowToNode`) - Advisor `table_without_insert` fires for mutator-only inserts (ignore for this spike) - Dual `defineMutator` APIs must not be mixed (server vs `@lunora/db/mutators`) ## Code review (Phase 0) -**Standards** — process-clean for a spike. Merge-to-`main` gates: delete this `HANDOFF.md`; add changeset (`bunx changeset --empty` if spike isn't product news). Mild smells: `docToNode`≈`rowToNode` dup; leftover Vite assets/CSS; nullable codegen casts. +**Standards** — process-clean for a spike. Merge-to-`main` gates: delete this `HANDOFF.md`; add changeset (`bunx changeset --empty` if spike isn't product news). Mild smells addressed in Phase 1: `docToNode`≈`rowToNode` dup → shared helper; leftover Vite assets/CSS trimmed. -**Spec** — required implementation met. Must-prove #1 automated (planner tests). #2–#5 wired; still need human 2-tab / hard-reload / cross-user pass (README checklist). +**Spec** — required implementation met. Must-prove #1 automated (planner tests). #2–#5 wired; still need human 2-tab / hard-reload / cross-user pass (README checklist). Bridge order covered by unit test. -## Next (post Phase 0) +## Next - Manual 2-tab + hard-reload (+ optional second browser / second user) against exit criteria - Before any PR to `main`: delete `HANDOFF.md` + empty changeset -- Optional: trim unused Vite assets/CSS; seed helper -- Phase 1+: richer editor / migrate product — out of scope here +- Phase 2+: richer editor / migrate product — out of scope here ## Note From f942321782a2bb6eec34ad94ec36f7ba66320c35 Mon Sep 17 00:00:00 2001 From: Cameron Pak Date: Thu, 23 Jul 2026 12:54:11 -0500 Subject: [PATCH 08/59] docs(spike): mark Phase 0 manual exit criteria PASS Co-authored-by: Cursor --- HANDOFF.md | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/HANDOFF.md b/HANDOFF.md index 031529c3..fdaa6282 100644 --- a/HANDOFF.md +++ b/HANDOFF.md @@ -37,11 +37,13 @@ pnpm build pnpm dev # smoke; note printed Local port ``` -### Manual checklist (still required) +### Manual checklist — PASS (2026-07-23) -- [ ] Two tabs, same user: live convergence without refresh -- [ ] Hard reload restores outline (incl. seeded demo bullets) -- [ ] Optional: second user cannot see first user’s outline +Verified on `http://localhost:5175/` (Vite fell through 5173→5174→5175): + +- [x] Two tabs, same user: live convergence without refresh (~2.5s) +- [x] Hard reload restores outline from shape seed +- [x] Cross-user: second account sees only its own seed, not first user’s bullets ## API surprises vs docs @@ -54,11 +56,11 @@ pnpm dev # smoke; note printed Local port **Standards** — process-clean for a spike. Merge-to-`main` gates: delete this `HANDOFF.md`; add changeset (`bunx changeset --empty` if spike isn't product news). Mild smells addressed in Phase 1: `docToNode`≈`rowToNode` dup → shared helper; leftover Vite assets/CSS trimmed. -**Spec** — required implementation met. Must-prove #1 automated (planner tests). #2–#5 wired; still need human 2-tab / hard-reload / cross-user pass (README checklist). Bridge order covered by unit test. +**Spec** — required implementation met. Must-prove #1 automated; #2–#5 wired + **manual PASS** (see checklist above). Bridge order covered by unit test. ## Next -- Manual 2-tab + hard-reload (+ optional second browser / second user) against exit criteria +- Finish Phase 1 commits (shared map / seed / bridge / trim) — in flight; fill commit hashes above - Before any PR to `main`: delete `HANDOFF.md` + empty changeset - Phase 2+: richer editor / migrate product — out of scope here From 1b99bce9a216e357d1f1181d76bf9616de8e5705 Mon Sep 17 00:00:00 2001 From: Cameron Pak Date: Thu, 23 Jul 2026 12:54:36 -0500 Subject: [PATCH 09/59] feat(spike): shared mapping, TreeIndex bridge, empty-outline seed Extract one rowToNode/docToNode helper, add ADR 0004 lunora-bridge + idempotent demo seed, trim unused Vite assets/CSS, update spike README. Co-authored-by: Cursor --- spikes/lunora-outline/README.md | 39 +- spikes/lunora-outline/index.html | 2 +- spikes/lunora-outline/lunora/mutators.ts | 23 +- spikes/lunora-outline/public/icons.svg | 24 - spikes/lunora-outline/src/App.css | 184 -------- spikes/lunora-outline/src/App.tsx | 86 ++-- spikes/lunora-outline/src/assets/hero.png | Bin 13057 -> 0 bytes spikes/lunora-outline/src/assets/react.svg | 1 - spikes/lunora-outline/src/assets/vite.svg | 1 - spikes/lunora-outline/src/index.css | 415 +----------------- spikes/lunora-outline/src/outline-store.ts | 20 +- spikes/lunora-outline/src/outline/index.ts | 13 + .../src/outline/lunora-bridge.test.ts | 132 ++++++ .../src/outline/lunora-bridge.ts | 33 ++ spikes/lunora-outline/src/outline/map-node.ts | 67 +++ .../lunora-outline/src/outline/seed.test.ts | 64 +++ spikes/lunora-outline/src/outline/seed.ts | 69 +++ 17 files changed, 449 insertions(+), 724 deletions(-) delete mode 100644 spikes/lunora-outline/public/icons.svg delete mode 100644 spikes/lunora-outline/src/App.css delete mode 100644 spikes/lunora-outline/src/assets/hero.png delete mode 100644 spikes/lunora-outline/src/assets/react.svg delete mode 100644 spikes/lunora-outline/src/assets/vite.svg create mode 100644 spikes/lunora-outline/src/outline/lunora-bridge.test.ts create mode 100644 spikes/lunora-outline/src/outline/lunora-bridge.ts create mode 100644 spikes/lunora-outline/src/outline/map-node.ts create mode 100644 spikes/lunora-outline/src/outline/seed.test.ts create mode 100644 spikes/lunora-outline/src/outline/seed.ts diff --git a/spikes/lunora-outline/README.md b/spikes/lunora-outline/README.md index 4f5e6b09..998f6c91 100644 --- a/spikes/lunora-outline/README.md +++ b/spikes/lunora-outline/README.md @@ -1,6 +1,6 @@ -# Lunora outline spike (Phase 0) +# Lunora outline spike (Phase 1 — bridge) -Proof that Dotflowy outline semantics can run on Lunora (shapes + mutators + watermark) **without** Dotflowy’s custom `{ops}` sync. +Proof that Dotflowy outline semantics can run on Lunora (shapes + mutators + watermark) **without** Dotflowy’s custom `{ops}` sync. Phase 1 adds shared row mapping, empty-outline seed, and an ADR 0004 `TreeIndex` bridge. ## Purpose @@ -8,6 +8,7 @@ Greenfield Vite + React Lunora app with outline nodes, structural mutators (`pla Constraining ADRs (repo root): +- [ADR 0004 — Localized rendering via the tree store](../../docs/adr/0004-localized-rendering-via-the-tree-store.md) — bridge seam only; **do not** port OutlineEditor - [ADR 0008 — Sync via a per-user Durable Object](../../docs/adr/0008-sync-via-a-per-user-durable-object.md) - [ADR 0009 — Atomic structural writes](../../docs/adr/0009-atomic-structural-writes.md) @@ -19,11 +20,12 @@ Constraining ADRs (repo root): cd spikes/lunora-outline pnpm install pnpm codegen # after schema/mutator changes -pnpm test # planner chain-invariant unit tests +pnpm test # planner + bridge + seed unit tests +pnpm build pnpm dev # Vite + Worker (default :5173; next free port if busy) ``` -Other scripts: `pnpm build`, `pnpm lint`, `pnpm preview`. +Other scripts: `pnpm lint`, `pnpm preview`. Local secrets: `.dev.vars` is gitignored. Scaffold needs `AUTH_SECRET` (and optional `LUNORA_ADMIN_TOKEN` for Studio). Copy patterns from `.env.example` / existing `.dev.vars`. @@ -31,10 +33,11 @@ Local secrets: `.dev.vars` is gitignored. Scaffold needs `AUTH_SECRET` (and opti 1. `pnpm dev` → open the Local URL (e.g. `http://localhost:5174/`). 2. **Sign up** once (`spike@dotflowy.local` / `spike-dev-password` prefilled — change as you like). -3. Insert a few bullets; indent/outdent/delete/edit text. -4. Open a **second tab** to the same origin (already signed in via cookie). -5. Edits in either tab should converge live (shape poke + watermark). -6. Hard reload either tab — outline restores from `wholeOutline` seed. +3. Empty outline **auto-seeds** 4 demo bullets (idempotent — only when ready + zero nodes). +4. Indent/outdent/delete/edit text; insert more bullets. +5. Open a **second tab** to the same origin (already signed in via cookie). +6. Edits in either tab should converge live (shape poke + watermark). +7. Hard reload either tab — outline restores from `wholeOutline` seed. Cross-user: sign out → sign up as a different email → that session’s `authorizeShard` only allows `identity.userId === shardKey`, so the other user’s outline is unreachable. @@ -45,17 +48,21 @@ Cross-user: sign out → sign up as a different email → that session’s `auth 3. Optimistic overlay held until server watermark confirm (ADR 0009 P2 analogue) — **wired** via `lunoraCollectionOptions` checkpoints → `bindMutators` 4. Cross-user shard access denied (`authorizeShard: identity.userId === shardKey`) — **wired** 5. Hard reload restores outline from shape seed — **manual** +6. TreeIndex bridge order matches planner apply (insert/indent/remove) — **covered** (`lunora-bridge.test.ts`) ## Layout -| Path | Role | -| ---------------------- | ----------------------------------------------------------------------- | -| `lunora/schema.ts` | `nodes` table (Dotflowy field parity), `.shardBy("userId")` | -| `lunora/shapes.ts` | `wholeOutline` owner-gated shape | -| `lunora/mutators.ts` | Server `defineMutator` (`lunorash/server`) — authoritative | -| `src/outline/` | Pure `plan*` + sibling-chain (shared) | -| `src/outline-store.ts` | Client `lunoraCollectionOptions` + `@lunora/db/mutators` `bindMutators` | -| `src/App.tsx` | Auth gate + tiny outline list UI | +| Path | Role | +| ------------------------------ | ----------------------------------------------------------------------- | +| `lunora/schema.ts` | `nodes` table (Dotflowy field parity), `.shardBy("userId")` | +| `lunora/shapes.ts` | `wholeOutline` owner-gated shape | +| `lunora/mutators.ts` | Server `defineMutator` (`lunorash/server`) — authoritative | +| `src/outline/` | Pure `plan*` + sibling-chain (shared) | +| `src/outline/map-node.ts` | Shared `rowToNode` / `docToNode` (one mapping) | +| `src/outline/lunora-bridge.ts` | ADR 0004 seam: Lunora rows → Dotflowy-shaped `TreeIndex` | +| `src/outline/seed.ts` | Idempotent empty-outline demo seed via `insertSibling` | +| `src/outline-store.ts` | Client `lunoraCollectionOptions` + `@lunora/db/mutators` `bindMutators` | +| `src/App.tsx` | Auth gate + tiny outline list UI (renders via bridge) | ## Pinned Lunora packages diff --git a/spikes/lunora-outline/index.html b/spikes/lunora-outline/index.html index 3d38e144..a30e2750 100644 --- a/spikes/lunora-outline/index.html +++ b/spikes/lunora-outline/index.html @@ -4,7 +4,7 @@ - Vite + React + TS + Lunora outline spike
    diff --git a/spikes/lunora-outline/lunora/mutators.ts b/spikes/lunora-outline/lunora/mutators.ts index 4a85420c..eeb79010 100644 --- a/spikes/lunora-outline/lunora/mutators.ts +++ b/spikes/lunora-outline/lunora/mutators.ts @@ -4,6 +4,7 @@ import type { Id } from "./_generated/dataModel.js"; import { buildTreeIndex, + docToNode, planIndent, planInsertSibling, planOutdent, @@ -32,28 +33,6 @@ type MutatorCtx = { db: MutatorDb; }; -/** Doc → planner node. Codegen currently erases `.nullable()` in Doc types. */ -function docToNode( - doc: Record & { _id: string }, -): OutlineNode { - return { - id: doc._id, - parentId: (doc.parentId as string | null) ?? null, - prevSiblingId: (doc.prevSiblingId as string | null) ?? null, - text: String(doc.text ?? ""), - isTask: Boolean(doc.isTask), - completed: Boolean(doc.completed), - collapsed: Boolean(doc.collapsed), - bookmarkedAt: (doc.bookmarkedAt as number | null) ?? null, - mirrorOf: (doc.mirrorOf as string | null) ?? null, - createdAt: Number(doc.createdAt ?? 0), - updatedAt: Number(doc.updatedAt ?? 0), - origin: (doc.origin as string | null) ?? null, - kind: doc.kind === "paragraph" ? "paragraph" : null, - userId: String(doc.userId ?? ""), - }; -} - async function loadNodes(ctx: MutatorCtx): Promise { const rows = await ctx.db.query("nodes").collect(); return rows.map(docToNode); diff --git a/spikes/lunora-outline/public/icons.svg b/spikes/lunora-outline/public/icons.svg deleted file mode 100644 index e9522193..00000000 --- a/spikes/lunora-outline/public/icons.svg +++ /dev/null @@ -1,24 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/spikes/lunora-outline/src/App.css b/spikes/lunora-outline/src/App.css deleted file mode 100644 index f460279c..00000000 --- a/spikes/lunora-outline/src/App.css +++ /dev/null @@ -1,184 +0,0 @@ -.counter { - font-size: 16px; - padding: 5px 10px; - border-radius: 5px; - color: var(--accent); - background: var(--accent-bg); - border: 2px solid transparent; - transition: border-color 0.3s; - margin-bottom: 24px; - - &:hover { - border-color: var(--accent-border); - } - &:focus-visible { - outline: 2px solid var(--accent); - outline-offset: 2px; - } -} - -.hero { - position: relative; - - .base, - .framework, - .vite { - inset-inline: 0; - margin: 0 auto; - } - - .base { - width: 170px; - position: relative; - z-index: 0; - } - - .framework, - .vite { - position: absolute; - } - - .framework { - z-index: 1; - top: 34px; - height: 28px; - transform: perspective(2000px) rotateZ(300deg) rotateX(44deg) rotateY(39deg) - scale(1.4); - } - - .vite { - z-index: 0; - top: 107px; - height: 26px; - width: auto; - transform: perspective(2000px) rotateZ(300deg) rotateX(40deg) rotateY(39deg) - scale(0.8); - } -} - -#center { - display: flex; - flex-direction: column; - gap: 25px; - place-content: center; - place-items: center; - flex-grow: 1; - - @media (max-width: 1024px) { - padding: 32px 20px 24px; - gap: 18px; - } -} - -#next-steps { - display: flex; - border-top: 1px solid var(--border); - text-align: left; - - & > div { - flex: 1 1 0; - padding: 32px; - @media (max-width: 1024px) { - padding: 24px 20px; - } - } - - .icon { - margin-bottom: 16px; - width: 22px; - height: 22px; - } - - @media (max-width: 1024px) { - flex-direction: column; - text-align: center; - } -} - -#docs { - border-right: 1px solid var(--border); - - @media (max-width: 1024px) { - border-right: none; - border-bottom: 1px solid var(--border); - } -} - -#next-steps ul { - list-style: none; - padding: 0; - display: flex; - gap: 8px; - margin: 32px 0 0; - - .logo { - height: 18px; - } - - a { - color: var(--text-h); - font-size: 16px; - border-radius: 6px; - background: var(--social-bg); - display: flex; - padding: 6px 12px; - align-items: center; - gap: 8px; - text-decoration: none; - transition: box-shadow 0.3s; - - &:hover { - box-shadow: var(--shadow); - } - .button-icon { - height: 18px; - width: 18px; - } - } - - @media (max-width: 1024px) { - margin-top: 20px; - flex-wrap: wrap; - justify-content: center; - - li { - flex: 1 1 calc(50% - 8px); - } - - a { - width: 100%; - justify-content: center; - box-sizing: border-box; - } - } -} - -#spacer { - height: 88px; - border-top: 1px solid var(--border); - @media (max-width: 1024px) { - height: 48px; - } -} - -.ticks { - position: relative; - width: 100%; - - &::before, - &::after { - content: ""; - position: absolute; - top: -4.5px; - border: 5px solid transparent; - } - - &::before { - left: 0; - border-left-color: var(--border); - } - &::after { - right: 0; - border-right-color: var(--border); - } -} diff --git a/spikes/lunora-outline/src/App.tsx b/spikes/lunora-outline/src/App.tsx index 95075ea0..2671f49d 100644 --- a/spikes/lunora-outline/src/App.tsx +++ b/spikes/lunora-outline/src/App.tsx @@ -1,7 +1,9 @@ import { useMutator } from "@lunora/react"; import { useLiveQuery } from "@tanstack/react-db"; import { + useEffect, useMemo, + useRef, useState, type CSSProperties, type FormEvent, @@ -11,9 +13,10 @@ import { import { authClient } from "./auth-client.js"; import { createOutlineStore, type NodeRow } from "./outline-store.js"; import { - buildTreeIndex, - childrenOf, - orderSiblings, + bridgeOrderedChildren, + bridgeTreeIndex, + seedEmptyOutline, + shouldSeedOutline, type OutlineNode, } from "./outline/index.js"; import { useLunoraClient } from "./use-lunora-client.js"; @@ -57,7 +60,8 @@ function AuthGate({ children }: { children: (userId: string) => ReactNode }) {

    Lunora outline spike

    Sign up once, then open a second tab signed in as the same user to prove - live sync. Hard reload should restore the outline from the shape. + live sync. Hard reload should restore the outline from the shape. An + empty outline seeds a few demo bullets once.

    Sign in

    @@ -108,43 +112,21 @@ function OutlineApp({ userId }: { userId: string }) { [client, userId], ); - const { data: rows } = useLiveQuery((q) => q.from({ n: store.collection })); + const { + data: rows, + isLoading, + status, + } = useLiveQuery((q) => q.from({ n: store.collection })); - const nodes: OutlineNode[] = useMemo(() => { - const list = (rows as NodeRow[] | undefined) ?? []; - return list.map((row) => ({ - id: row._id, - parentId: (row.parentId as string | null) ?? null, - prevSiblingId: (row.prevSiblingId as string | null) ?? null, - text: row.text, - isTask: row.isTask, - completed: row.completed, - collapsed: row.collapsed, - bookmarkedAt: (row.bookmarkedAt as number | null) ?? null, - mirrorOf: (row.mirrorOf as string | null) ?? null, - createdAt: row.createdAt, - updatedAt: row.updatedAt, - origin: (row.origin as string | null) ?? null, - kind: row.kind === "paragraph" ? "paragraph" : null, - userId: row.userId, - })); - }, [rows]); + const list = (rows as NodeRow[] | undefined) ?? []; + const nodeCount = list.length; - const orderedTop = useMemo(() => { - const index = buildTreeIndex(nodes); - return orderSiblings(childrenOf(index, null)); - }, [nodes]); - - const childrenByParent = useMemo(() => { - const index = buildTreeIndex(nodes); - const map = new Map(); - for (const n of nodes) { - if (n.parentId === null) continue; - const kids = orderSiblings(childrenOf(index, n.parentId)); - map.set(n.parentId, kids); - } - return map; - }, [nodes]); + // ADR 0004 seam: Lunora rows → TreeIndex (feed tree-store later). + const tree = useMemo( + () => bridgeTreeIndex((rows as NodeRow[] | undefined) ?? []), + [rows], + ); + const orderedTop = useMemo(() => bridgeOrderedChildren(tree, null), [tree]); const { mutate: insertSibling } = useMutator(store.mutators.insertSibling); const { mutate: indent } = useMutator(store.mutators.indent); @@ -154,6 +136,23 @@ function OutlineApp({ userId }: { userId: string }) { const [draft, setDraft] = useState(""); const [afterId, setAfterId] = useState(null); + const seedStarted = useRef(false); + + const isReady = !isLoading && status === "ready"; + + useEffect(() => { + if (seedStarted.current) return; + if (!shouldSeedOutline({ isReady, nodeCount })) return; + seedStarted.current = true; + void seedEmptyOutline({ + userId, + insertSibling: (args) => insertSibling(args), + newId, + }).catch((err) => { + seedStarted.current = false; + console.error("seedEmptyOutline failed", err); + }); + }, [isReady, nodeCount, userId, insertSibling]); const addBullet = async (event: FormEvent) => { event.preventDefault(); @@ -174,7 +173,7 @@ function OutlineApp({ userId }: { userId: string }) { }; const renderRow = (node: OutlineNode, depth: number) => { - const kids = childrenByParent.get(node.id) ?? []; + const kids = bridgeOrderedChildren(tree, node.id); return (
  • @@ -248,6 +247,7 @@ function OutlineApp({ userId }: { userId: string }) {

    Insert after: {afterId ?? "(head)"} · open a second tab to watch live sync + {isLoading ? " · loading…" : null}

    {orderedTop.map((n) => renderRow(n, 0))} - {orderedTop.length === 0 ? ( -

    Empty outline — insert a bullet.

    + {isLoading ? ( +

    Loading outline…

    + ) : orderedTop.length === 0 ? ( +

    Seeding demo bullets…

    ) : null} ); diff --git a/spikes/lunora-outline/src/assets/hero.png b/spikes/lunora-outline/src/assets/hero.png deleted file mode 100644 index 02251f4b956c55af2d76fd0788124d7eee2b45eb..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 13057 zcmV+cGycqpP)V|)f$;Qooc7=_G zlYe)HToTQIc!$)^+J1M1y0*T%w!p~7%ux`!eRhO?c80XDxKQ*R^lUUMnA>6NT^?feoZ8xxvP32D&s-9ow zqjcM}eesrC)NeDmsf)*P7wJ|K!&xP%Zy4iI8lF)Tv2!reW)tCzg_1=PmOwd1SQfxa z8;58t!=z~Ba7CYlNWVG>he8aRPY|+-JmozNhn!#9i#77Aa_Edt$ijyCWL#=~I>~2X zZNrQ8I0=D+NWD4pq=7~(i zhfThMNw|G>g^y9pGzxX7ZSApl@tIxFcs{p#MX{Ax&XZT+cR#U+OWc@S)pkIuI}dzu zH?^Q=<(y&Vq-oxSLfc0Zmq81bjZWf}RnssBaD6}2g-XJHLcN_|*IOu>m|x$nbm(?E zyNy!Zp=RroS;?Vg*kmoJYBi!n5{_^@rA!)=t#a^;N$8GL!*DsQb}`yvEuX!G@||An znOfUZAevPrkV_qjl|<~3QRZzG&h@C9Y5z zqpNH4xqbF_InIPh)kX}Vn^5kyed|mOuq+2>M;v~KO37a#yrEn3XDqtOl=rc6_KZ!; zreo)DFVB4|>1Zd(bvMI%8uM;3!)YMYu&cG?(PE!B~y@3yKBMt|R zAf=I16tFwPsl)!jDqvYkLHaAQ+f@W1m6F5aZvwhm4JL z{_l)@b;)mDSzle2gyFP5-r1x-5X{G}ot%VyWP@vEW80!Q=f%RTfpg>B*TA^pyWYUQ z<=xPtz}WcZ!;rFl4m1D&FFHv?K~#9!?A%+fn=lXt;9!Fc#kQ;zk~gZFsH z8e5iu@c_pzX&qb8&Dum*oXwB+fm6l6gFfC|o*wgEiy6tw~&co z9Vd_4)P%wP-KwQW7|lN-znGK#?N+j24U=$982myIBM+vsiKsc*@4-rwJxuAaHKna6 zT3wi!C~a4ZKH03qU}_1bKyx0&$CaK7_%Z+Kl$)fF5^op zZApQF2TvDav!s|krTjw-8US6ep z%!VmX4luub+fseQz_D9ATJQ?iQQwD}TZz{-yo#l12a%+7bT@E(X-hyaVS-5vuXc#^ zx^w;L21;NphGVoj*{s3f4dme0y2LC=G1-7THd`#z?;tuC{^9k(dM{Rf2GOxg7Jzho z7nSZHl7?M9kdalX`)YgoKEfiae5+;$(OGeN1eqxrv!ZCVKyH>xiyNqfe8xzY8*7)H zQls8KMp)F4D>ED;idMOU^^WhVF@q>ZSmeB0y~qC~|DB648hr%Sh|*T(4q|w2l?m2+ zvBVw3@7+Mz?^Yc#+se6KM;a<=(W-I>k)$-qL2V*t}VaW`;?P4)WqI%maIDq8!oUcSYAD`}wWjkSyAVsnF65#2zQ zZ>(K*TlS(E#4y$4Zq+e^_&}d)q20hCe3!LfLYP%nQpLJ~gM6a1hJlz3)aS<9C9me| zAcmJ#>tOwBy{HoP0Sm1&_(E+S@6 zgBIFUoei8zJmdpiq8q5=OY7t@`)JWxn_&GvKVr=Zdb_pEL_j|=?f;WK^U9Q0efd#K z9q7SfJTl4pmA$jsZ5oK8@O9#!I3Cv-kL)<8SalSsp#dcpvJ}Nz#G6FC0%9|7Fi#8; zGDJXtj!&GljT3*HE@0EE>G8Se&d)*nkqe}-?`3vPl&UqK?xG z!3XJ4M-x`EuQjhBbu?ik-)rmIt=DF_N?TVMP)8Gjn)TZ2V%H|zENbeix}kOxd@0}Q z>)HuH6Ean!uS#~4g2Ne2WsMGel|h%j9*W_quQheG^JqmKhc*RYzp0wKlGjBq2VzY_ zgOv8WC1+%W=W)k)Yp_`8kfE=uiiwOZTXi8Uj9YGr$f@yJcJ;#&-Nq~sJ7anE(@;QN z=~br%7%7`isKStX|7!1?L(apl^QvPKlrHV4S+6tNVQ*R1iGdC~WMNE1$a+=rpQmcB z>wxiLIBvOnm;u*;9Y!kJdy(T4lk|8>JAm(&wEsFIF1$_*{>2ZNd$V6DS=SfrGxAv0 zzKe377JI`&o9Ljr+VnS*EwehA{f&{cKZF(6*MG5!p5MvrFA3ll{fmRG*L@6^cb;o^ z3Wm8c?Sc6$`>~VEWw(c$Y?nRO;2Q$=ulpqPtM^=1IZx;@xK0PgO7rKQ^WHVLwtgUT z%|JF{^f(VH)wLKQ%dYiu2RmchBdxL0-M?wxxul_z*{h6ZZ`>-k(vizs((vW8Lt6Z6 zY;Dt?@JWyN`O`f;&d1Mb?e%9oyRK1ql?EE5XB2(W)|D1~Rx35$H6@6)$F?)7V|zEO zI}fu0-0}8W5=6sg$fPnZ~7=tTudl?Ecb@pxbo)vni%gP-?hL|%*?62C;x6?@E`VRnJv z?fTb;k4x;TS7Cu-z%J}uy}e-pwpLQ17Q@4DC+FCdAmNKklG$`I_pyw7E{fYmw~{Fj zi?6KcVy=Wrel)EB_DWO|0CKmI|13!gBV?X`Ozp7x>?6jr`>Qz=^4ea35!$*f}) zS$i+x_k+@P2q1RFUH^ZTTk7=n?cjfR>hTq3l3SY~#w+I8SSutXGyhw;Ws~=zMQ%Vc z>$On~47Ut?P*_!TOQ&PFmLAyJieB2X4_Fd_!WxI-AY`q1Lc-oK?+qcOTzlQ?@~x@OT}*9jTVNfl@3rGvZpWI=eKg>T zZb@6YWz)J=IhP7CF|c?G62vMEG%#U}?#86$0jR4sG~i(jRd#jmn`7b(O#?N;3a;1t zhXLssmUwGhp79luw#(*V8WL0|8+E z6=YZ_O@er~$LrD_PYGc(kJgB=;yw#+Z3X6LDUZ(NcwN=B-hjdiHm!JFar%m{(5bEW z@@_VEtG$5;`EJZ|OkJ@l&G9n((w@uNFwmU%bG|s#TbcJJos!{e+bjCjrCq_}LcN!UFgKtgg7siV*7# z!}1whTRRi*-avJPu->C}Z8EiuK$#886+H_#_!btv+rsiBbv2jAJvJ+O0{#}y(%L3H zfjU-kq_-L@2XrL*ae{{qYJkD{@dw%*bkh2P&YS-0!Xt!PRz7KHV0+~j(t9W8lAVWR zt@B*DgURgEz4>WuN>o?_iKcw$?k{||Pg7{Q2o4|VmJ)mg?{VQJA<}zEr^YAAS zgGm5RT4T3p)U;yz-tfBO^kw8?IoG!IVmc+Z3m#}AOQ?5MRa>)OcU!$N^_+yK6ayn? zK>~WK0!#ysuj^oNLakm)Zvu+J)OSubX^kv!c*xgdIvs;kln!rgG4*uZ;w0mQQO4XD zO9P{GNdv!=cQ(CAL{S(%KtuV^zC&Q{%g)PoXnp^gn^>c*`E>$hLYg2HjnbVGtWLa{7zHdG1jT@B{|Dm16 z7K2(jsfG+m*Zxof)iXxu+!H5Mo-0$pkyV3VV4B@Qms46M zuBxGRV@HxU7Wwx-6CB zaU*HO<_qn$5GH>&@?nRy1{z zkik!sLfWQ)r#75)vVwCBU*r_)Q6mp?!j85{#Xqse)ApRdE$V0%I0*~e(_{)5H)`Mk z#rExC>yjhZxuL@|+#v4#<Axw$+VpV zuT;!2Vww$je$DpAW`$FX_Ab|Ip%$;&T$-lW8jS~B$>G}rd>eQG+$h9lQx4Mx0w={m zx9?T6VU`>sR}XClkAhHEShOUe8awiq zmizhL+}5UKs3}6~It7vBTig9dfQ2Q8coo+Miiaw7n~>4ybv2Ptt0^^=VqX(t*Yya9 zr`FxxFX8(v*H=+uJ#JJWIB2A(==HDYx~^zZ2nu?2`}|Wsa*f3h3ixc+U|FDtAG$Y! z*lc_7se5Oso-Cgqe0){{!8H4g$3<8!R<6JOurD;((({c$1(pwb>(#TT!sge@4>r2@ zVL7>U`0`nsWAYErezk4(Z!gMI2?UTo{J3Ajo(u4)KYIRd>BRcG4BoS3G0EXyEp@tw z%P7__?A^a>Q&AKL@ayDO9D*Qkc!NHnO9l}kpp_6hXbMppYL(X1L?njdFT|-h2<_$; zAtDZ!1Rf%|yb!qbWKd}%0b`LzBeyNy43|QO(&h2mxQLUL)|0%agVOW)6TV!&Ip^Ls z`PG2cygM8)IecQx=Fc+nqYRo4hS^^-nM_&-y8?EJXUczP=DIw(GkTJdpEdh<_STs{ z|A)4n1GKdE=Wu!!nYoZHcUQ4S&R;oDOKX2lrkdF(mK>hz<$Pp>igjOcvoRIjlN=W8 zu8Gx5(roqn8$>gEE5vy{GiGeW8Tq{vnf3hS-V=$tZkQuftUVuU8o6k&dn=Yg3)6MOIH>nlK^-2+C6BZITr~1@So?NvG#TwL)|~=1YXGMTLpS<)ziK_CSOabe z=cB#5)yz|@0i9dSo?*CX)}UP=s6)B+F@~Em(u@Q(I9J9i_V{LmMu8BfXYMh~*oPP+ z!3~xTv|(>|=n6ZOtT~C@V!z!w%18*8T2t6}U2S##rC)mekBql&VsBX;$~ByGE$oA9 z`0Wzq8p?R{4)$l*on;!cLa}Dh^Xe?owiQZt9nH1fxxh$pN9K%CtOw?u3>85L7rr!d zXs)l{TZ{xXP&U8exz?9cv~dNNibOmt*K4I$?RxqIBZ0(?Mg-9FS{*9Bc49Qc1`=sIF-rye`aNT1G@4NwXcnyc@+bw_mTsR>5< zF<2;X0QesG_pw|TonqVBhRtfqI>ty(SIu&VOXd0CrLlfp+;WH7HYjhqnu^oAY!9cB z=B6#R?Rfz9BP`dJ=@v_?70s3HxQPk+{6Y+lM85f2NF^00*^OcM0~?JOZfR9ZPYF+# zYSs}(_BUYV8{n@2a1hD^SV41bwmi2uztR;PeBgF1F-`9>`zoNss-@3LaF2sjl~>OaaVmp7PNp+UT`6@}gR%uzqHDVeEZ14{Yt?n%JeQm+t(1_u zSc}oj^{b;+rlS|ME%+LjzSI&xu0Bblxo$MJ-J$kJ?Qu_XUXh}*@*-x@ny|}wVM%Lg z3tNB`yvr*}N?ClGL;H2cglcvErIccU3(eP7>@~4nOIcI~-`P8tSQnx=jI&{9)!1}l z;gQ%_h>ZlPSV@o@Azq1R$C6ja5!^ZGh;YRhhxs58qJWo9@Bceac&yy(pET1hnn`~7@}2L0&dfPKYs$ih7m2}R!25!(hxqA(!UIw; zK4+~Jowy3=RNC6nE=ncU{LH5?*9@W24lacJlvCZXB$CYtE@>c+~H zkV=(5I&gb{xn2!~f&fs2NQgAL6`p|kyt6kpWk}iVlqIp(H;ig`{_U9yxs1jzu^ETM z7~)Rg8C-NueqTYP&U8l{DY=Y47cR zOR@U%$KQV{mkRF|4)z9Y^t3K`@p>duY&QLUFeh6VoV`a`$U@)(z!-N*5Cj<11$EZW&hJLX83TO{lJYP74rlDZQPkm@t<=U^I)x@|UnHHkdQlh?!ltZwl92rE;;^ zZuIappj4dhld1}kttYYV-j|KF1Kus zWBnzttD^00%LFK(wrwNragFub6xiV8QE2rm<`&fcR4SLFcdtLxVuN!Aal-g6dE4%k zARZ}|xeo;K{0yf7@9aua%2j5o)CPcIOc6uLHFJOcgtB5owlcNAwyAHc0QB0Dts?c@ zUemG~j_E&W7R%+x-IO4FJl8e&*2Blmp1S#RA|)geVrxvP)NHdYuxi~g&Etn?QdNK8ZDKZ?QFLU?zh30G|t9G>a_X4zk}Ygw<^$7K!GIn(Io$>(d4ODJQ2XSd%jpK zm7>ptl$a3GyB}5-%p4>Q*p#VL^B{yQMuFCM^#l#+N!Ne z5_PrJWB=@Iy+t)H`g1lX`{bm($KE5I?0c(JEYm#t{F}j!xtsbob0{xu@0TB_*>G7w0ICn zr#VoBktqHZ~XxhiKD*lcG|b;H*|Ny3P^8ceV`sfBRfrhwZ!T+MFZ!F1Bt{q$8d9i6o?~ zODj^POr}&ivSa^R^YFIq7o0giLBKCycH_aU`F6)O6JX%nPTwh~Q`eq6*0iE#Srj2^ z*_hN3%*b83zfafy60@Cp3{J({RlSaEn&E?mrxRNC9GQ7#+f=s! z0KBf-9Ny_v2VbE%aB|Di)5kNJ^t&C`4D(>t7zYUWUFtbxt+Oq=!@O7BU)}>d*R72o zFF)3jQD_lLe4is&xzyJYC1-c{8TX$RU>&>P$%)ufpez0XSAukmh!xcekg`s$c<>-q zI#zn^JU0zzF}V60)o$_gY}PQH>b2M9&8fRZa#OauglPb zeQ@pMm&=!vNgos4CluQjLMV!pfkmxK+35bi^k&=k>9h02?l+u+m0agG;(h2|Jslc-llvtEwn~*w3bx7qnvZACG<8}AGeaDVvcHbKd2>3G^ zSFPULUn-?Pmo^-_`mLZr??uNH`2=I&yajlrF{DtUxMy#Nu}z=3y7qbUA;5`)hibMR zhXL@@uKyV0-2&A@t@!xyrBnMJl&^o@Gx$&5_q6?D=ji5grd-~=?dlg;ur(_V0wjh! zA=JV^C1m+DDkOsgr<%O9ZQFg!0}pD(#PSz4Dr_EyS5$`)VIAv);4n-SFP~YtC7sH= z7&*MfpH;gd*FHbkmD#)hVxb6xjc9~`t?_{=JS+@ip_cTicXxG<=7m9& zPX+Z8IC*GSAXuGCrZDHgR$r%jyk-fctis2Kx4HvZ|B~8uC@o)m^>Hy-O!&TKA?$&n zkP2Xc54w~!=z2?^NafyL*L0V9cbYrugHBBUj`xVyZmGFR&kvk#>1J*Z~i zNTz}?IAdJ$gkqd2!Gw(%LzE!O5s4C7q4%T~e_P{+z=DNDKrG**p=U`d5yg^vp`;Zn zsU=8gd0a9s4s0FPJePWR9eH5=+O^Kks&kC-iblNqTh2&Pw*^(4384f+D8N|fewZu_ zg2ejQ)ov;ztz;NQl7yj;A`(!H!XQu_$sqY9h_IrH*}_%1{L&_YLDvO?%R5Z-t+ClW z_qERbL?HKUZ!nt+!E9S`uoh^5A|DaIHe*_gf1`E_Vq+}{&T@t$EGhMnRjJ4z2w_W8 zp+qjs7as22^&S3wY1?+}^j-I=RcCE>#|39)g(lU7v_8;?=qK(9D8-*pPdiy)P3lIblG`+?%ea| zYoD3dopYt!tKgFicfNmNi(EWE=E4hC6(r|PYtanqJlmt57YOVrr2^tfrG(eG9C##X zu&1t@%L$RIvpj!wUA z8i>Pqot#_+Cnp6L2XPcZy1ar|9MnY+7eNvK1E)@Tr#2KsXq1*>)uUCozT7L##ok?o zhA6ofP4E|b*9tAfG?uf$#}>TIR&1A!yslP8}i7w-EzW(x#9VEvx18k%Tn=-$VV zkOtUr0b2!w3t>h?#8AZl^Az*(6KCGlD;4j~yx};`#2gN1_gv=%7KVzecIRakN{f*4 zeaI>yH;-o4OGhvGTU)(quWI)-q?V*(sVesSMv|wMUQ3hLEt=lBB$KZ9TyHr>)f7o%) zPYeU<3P)*P10*7vE)nA5#{c=6-E-_>r_u4e3i!I2+UksELwDqwMeBZ9FSP$;^Ajro z_@M#_Ss$?ejoB@!wN|kbGKs(0zLo%0QpQXW#t;oC$B0MZYZ&Ej?8~fNhcCVvPo3vo zFn0WWZaPliF^8_}yzb`*f@yg0uWv6HgNI)xa=pO%Ck(C<=-60l#uD3(wXP~c7!NoX z0&^6=N`zcc90F#qt@=Rn@r!3(*1v(Tl{B!m?Mc7yIA+nEHpY{YWr$=)F7rhR1P}(v zt{YhY#;jsW6G>#xhP*B`OCk|Pf+NN;ju1rxa*HAgoGq*rvqw&xe~;t1JA31$s?GBb z*g7&@cbKo4n<`>)!UlIAgR6q&))B0KYU8r66GbFj?8Guw4E%&}Qi_lT003LtoIZei zwD~=XZmeo+yZ2Pq3KYCF-R&11^p= z@H%s+=G`}wrbJ{()Mh71#2SP3Zy3m>l1n?0N-N1Q;z6?oSxr-G(H5m4EO>~&;}VKi zfY}3w+9z>vp#d)hVuu`)vG_aaH%3b=WKMnSu&c31;<3O;bz2iD=w+o4#oBb36 z5ZCF*Gu?zjZIR0S>_%pHY2$k8D^n7Sz_K8tCDeXM+dO<#LSg%h6`~dnVG1N@T7v&e z%wEd1!k{^zfz_1BTW{!$!B%g)J^2b87!9Y>>100X1SgT7s0z$o>^lAA=Gp_cC1(h=*5Tmf8z&LGJJ>$|K^~s`z9*OWz5MFUr?>Bi?_PGBB)#psD5?>n+q{o_ zz7~ez&;t#h8l$jwGPCC&xq2YetXYQT+0F3j(`xmNGf8dj#an|p#I*pvI*kwW4iuB> z+q3_7xB8y;pLzHG-S%+UHQA zvqp;$kmGJY>lLsN4C~&TcvAS1SErTcwcw0r@wngk zShAUA1M9b#g}^pL-zH7Q#z^&j#r9F8BTVfkR&qF<=e35goTu7c|GN)0mokj4m0%~0 zXJ8j4Hc_l;HJ&uU*Iw`8d_EscJ``s0tk9mkKo^&#TYXm-EoAzTQObxa@^u~g2t#T) zJz|rE!I_?i4dCJC=B8(_pZ{YR>|V?0iCcnU;E@$239^x?SYCfNaMHN;CtHIS_zHN9 zTkQc1v@O35okiFtq5_u+5FkY55ap@pi)O?}x0D1c*qB0KpYR}>Ul+B0Vmr}Z@+%mJ|As}sis_=ROPbov@*2thpE&?!V#Qgu$snYvCZ zrkhmkMU+fSf-s8(L37fPr&M*jRs{{THb!aXQu|P9l_-vJhHvLzMGH zE?1U0H_+PmNABp9`|KzkGfrrZ%XvdGo6*<{d5m9~L7 z_^`M;X6xDo=m6LY6RfvJEvsTK1!u8d2HPx|$S}p;sRy!I zWL55Yxu~_B`OP@~(q6&W3#)~I&+MGL%GWR$#udC151^wsswhqlii;rP9jJpiI7o&Z zAb})=HY7?4HA|re3ns`%$)FuvKCFWjhb~?IE)F6dF2K5}poj-NK6Gf;hw$t3=1txY zoxQxZWrQU6K!%|~!m?~Bnw-6Rr!F3BZ{u5!LqnZTDON}Coj9^@&le)V!NYrVwS~B% zEL+>Sr@}qGwGvu|HrOo|gSt__ezN^&%~{*)a=rf7y1HujUcr`zZB<4#l@T#eN)si} z)lZA<{=tKx8E%c9>A(##6}_p+~EZpKsl5a4pj`E*;_-6`ysiv zffA!7=MT1vCz}-m4~tjVey1b2KSR4OEtLd-(_DdUqYZ74LaDkhH?KFh?%WAOP2WbX zp@zT+Dx|5_f%JQiAGvVw!oh+g3e50u!aPfMxdC=E)XB{F5IcEZhePIM- zph6Y`$Oy?JBL<8Ex(SqEhLeQ@XcrdA>a?rx+_~HLA;l14)WmmpH}_w?Pg#HBZs0eS zwypwAW?M-x+3AU-(GGWSJ=ngxUEcEZ5OsX(Qlt!MQ zn^(`S{GHkAv(8@D`EAfSYig%Cxv?z!{=w^F#y)5_d7FuKZH7qlR-#5B0bt806%D0I zT7VdVP_?q*%Rq8UR;JkD4i^RXowt+E%#V2U>TfDqzZSDZ+dR!a#T3I>-z_$q9@k|m zy5~A*m~&JWP@E7a=pc}4kVHTc4h&R;Li7d@f`|hKMLkbb^uhOakNr3&FLjlm~i5NBM< zFaYI{;cpiHCNRdE0dg*>qIm(_t?#$h=(SCw?h3rJV2*ER8{O4^3#=dO)KwklZkoqU zS8i5c%YL*y*4;FY#D=XmkQnYj%LH)?02~gSJH`Qp1XY64g>%c_K$xseI&|e)7vRoL zAqRba$G@%fSGA7X7hQk%_3NVOYVS+$leU_!&6*5uN)8#5ZBz_6ASCA;azYS-Rt@ki zg2NWz(=;t}SC(~Ibl63$5C8FPmhXqb^)5#jaJ~I{Ex3xZ!+2h8$}}h_g@Be>HZ;72 z6#y#>AY3^skuVKF#0WxFBQ()5d5_nWb?c6c>EeMM|Mh+*&wEpPyxHCq{R-Gdr-`hN zF=1sxl&mBoK+#qRLl9#CEN|Fg8>nbmsTg3a1;#M9enQ$RgWk}kp#-5wh=EF&1tl%mJln2V^8o%Qv(*=zEuO7y z=m*8?xpUn-*@h5Cl_3BK3joiGkyaScK+>|MWdMRWm@RT!Q1piAlv5hL@B6>3&GI8) zP!xBc6}ZNIpJLL%2a8Y!+(<=f%WX>_uWVxlga9!D*oYt$l0cxRDMvqfU;Kq_mLK5k z)dvqYcgLa_Lz?3HyeF)@$%$&6lI?r4I>6W#M*<)vq{?&Oqrx``d`mhpVPr> z#q078F6gw_X<=?KR>8%^t%@wbITvNMu!hKiTSkCTJkw>1!e*Y{%31#_yMf=LW7{RJ zYoC^w$6%3cBtVG5)x#{Hg6IVTh9XEcM{gQwXk!R^y95^f-hZ`d{aVa+xW1EO4wDV4 zB?JgD7*?qkvc|$nIykTvNl2x0j3Q!MXoLL^)~}d7jcYf(H8D~c+?$pKL(px>Z3`eb z04RzS6_AgFT6Pn#iZAg$Sl_j8#;6ShF%&(Fag#E2asU@@LaN;=b=Wf7sgPKhfzhBM zC@eFL8^MrnA*9&Khe*Ab@CC9*uyJGXyi(;y2>lQLJZt;ShtJi?3Yf_t`F+$hY!+Q2Ndsx=U+bjTiAy7djLji>7k%k`$9&--f<*BNA3Hy&ZrHH|4 zG5H&9cB?O#zI1_OOf0Ce%mDfQxdtp3vU%(iY6yji3iISS61XLv#z|!zI_sZqza@B+ zyu9st5-h+`H7QUKx9}3w@oU@EO}&cEzG?fu!!bLO->%zkcg;i9^j`S~=WKMnDi1f= P00000NkvXXu0mjft=yBf diff --git a/spikes/lunora-outline/src/assets/react.svg b/spikes/lunora-outline/src/assets/react.svg deleted file mode 100644 index 6c87de9b..00000000 --- a/spikes/lunora-outline/src/assets/react.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/spikes/lunora-outline/src/assets/vite.svg b/spikes/lunora-outline/src/assets/vite.svg deleted file mode 100644 index 5101b674..00000000 --- a/spikes/lunora-outline/src/assets/vite.svg +++ /dev/null @@ -1 +0,0 @@ -Vite diff --git a/spikes/lunora-outline/src/index.css b/spikes/lunora-outline/src/index.css index b867311f..8eabff16 100644 --- a/spikes/lunora-outline/src/index.css +++ b/spikes/lunora-outline/src/index.css @@ -1,418 +1,5 @@ -/* The welcome page is a full-bleed starter — reset the browser's default - body margin/padding so it sits flush; everything else is scoped under - .lunora-welcome (collision-safe). */ +/* Minimal reset — App uses inline styles. */ body { margin: 0; padding: 0; } - -.lunora-welcome { - --cyan: hsl(186 84% 56%); - --violet: hsl(256 72% 68%); - --rose: hsl(330 80% 64%); - --ribbon: linear-gradient( - 115deg, - var(--cyan), - var(--violet) 52%, - var(--rose) - ); - --sans: - "Geist Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, - "Helvetica Neue", Arial, sans-serif; - --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace; - /* NIGHT (default) */ - --bg: #0e0e11; - --surface: hsl(240 12% 8% / 0.72); - --surface-2: hsl(240 11% 11% / 0.82); - --line: hsl(0 0% 100% / 0.08); - --line-2: hsl(0 0% 100% / 0.14); - --t-display: hsl(228 30% 97%); - --t-primary: hsl(228 26% 90%); - --t-secondary: hsl(228 12% 62%); - --t-faint: hsl(228 10% 44%); - --logo: hsl(228 30% 97%); - --accent: var(--violet); - --shot-bg: hsl(240 12% 6%); - --glow-1: hsl(256 80% 52% / 0.3); - --glow-2: hsl(196 84% 52% / 0.13); - --arc: hsl(256 60% 70% / 0.11); - - position: relative; - min-height: 100vh; - background: var(--bg); - color: var(--t-primary); - font-family: var(--sans); - line-height: 1.55; - -webkit-font-smoothing: antialiased; - overflow-x: hidden; - transition: - background 0.3s, - color 0.3s; -} -.lunora-welcome[data-theme="light"] { - --bg: hsl(228 32% 97%); - --surface: hsl(0 0% 100% / 0.82); - --surface-2: hsl(0 0% 100% / 0.95); - --line: hsl(228 16% 88%); - --line-2: hsl(228 14% 80%); - --t-display: hsl(240 14% 10%); - --t-primary: hsl(240 12% 18%); - --t-secondary: hsl(235 9% 42%); - --t-faint: hsl(235 8% 58%); - --logo: hsl(240 16% 9%); - --accent: hsl(256 58% 56%); - --shot-bg: hsl(228 26% 99%); - --glow-1: hsl(256 80% 60% / 0.14); - --glow-2: hsl(196 84% 58% / 0.08); - --arc: hsl(256 40% 55% / 0.12); -} -.lunora-welcome *, -.lunora-welcome *::before, -.lunora-welcome *::after { - box-sizing: border-box; -} -.lunora-welcome a { - color: inherit; - text-decoration: none; -} -.lunora-welcome button { - font-family: inherit; - cursor: pointer; -} -.lunora-welcome ::selection { - background: hsl(256 72% 68% / 0.3); -} -.lunora-welcome code { - font-family: var(--mono); -} - -/* glow background */ -.lunora-welcome .lw-bg { - position: fixed; - inset: 0; - z-index: 0; - pointer-events: none; - overflow: hidden; -} -.lunora-welcome .lw-bg .glow { - position: absolute; - left: 50%; - top: -4%; - width: 860px; - height: 720px; - transform: translateX(-50%); - border-radius: 50%; - background: radial-gradient( - circle at 50% 50%, - var(--glow-1), - var(--glow-2) 40%, - transparent 66% - ); -} -.lunora-welcome .lw-bg .arc { - position: absolute; - left: 50%; - border-radius: 50%; - border: 1px solid var(--arc); - transform: translateX(-50%); -} -.lunora-welcome .lw-bg .arc.a1 { - top: -340px; - width: 980px; - height: 980px; -} -.lunora-welcome .lw-bg .arc.a2 { - top: -240px; - width: 720px; - height: 720px; - opacity: 0.7; -} - -/* theme toggle */ -.lunora-welcome .lw-toggle { - position: fixed; - z-index: 5; - top: 20px; - right: clamp(16px, 4vw, 36px); - display: inline-flex; - align-items: center; - gap: 7px; - border: 1px solid var(--line-2); - background: var(--surface); - backdrop-filter: blur(12px); - color: var(--t-secondary); - font-family: var(--mono); - font-size: 10.5px; - letter-spacing: 0.1em; - text-transform: uppercase; - padding: 7px 11px; - transition: 0.15s; -} -.lunora-welcome .lw-toggle:hover { - color: var(--t-display); - border-color: var(--accent); -} -.lunora-welcome .lw-toggle svg { - width: 13px; - height: 13px; -} - -.lunora-welcome .lw-wrap { - position: relative; - z-index: 2; - width: 100%; - max-width: 1080px; - margin: 0 auto; - padding: clamp(44px, 8vh, 92px) clamp(20px, 5vw, 48px); - display: flex; - flex-direction: column; - min-height: 100vh; -} -.lunora-welcome .brand { - display: flex; - align-items: center; - justify-content: center; - gap: 15px; - margin-bottom: clamp(38px, 6vh, 68px); - color: var(--logo); -} -.lunora-welcome .brand svg { - width: 54px; - height: auto; - display: block; -} -.lunora-welcome .brand .word { - font-size: 34px; - font-weight: 600; - letter-spacing: -0.03em; - color: var(--t-display); -} - -.lunora-welcome .grid { - display: grid; - grid-template-columns: 1.06fr 0.94fr; - gap: 16px; - align-items: stretch; - flex: 1; - max-height: 580px; -} -@media (max-width: 820px) { - .lunora-welcome .grid { - grid-template-columns: 1fr; - max-height: none; - } -} - -.lunora-welcome .card { - border: 1px solid var(--line); - background: var(--surface); - backdrop-filter: blur(10px); - transition: - border-color 0.2s, - background 0.2s; -} -.lunora-welcome .card:hover { - border-color: var(--line-2); - background: var(--surface-2); -} -.lunora-welcome .card:hover .arrow { - color: var(--accent); - transform: translateX(3px); -} -.lunora-welcome .arrow { - color: var(--t-faint); - transition: - color 0.2s, - transform 0.2s; -} -.lunora-welcome .arrow svg { - width: 20px; - height: 20px; - display: block; -} -.lunora-welcome .ic { - display: grid; - place-items: center; - color: var(--accent); - border: 1px solid color-mix(in oklab, var(--accent) 36%, transparent); - background: color-mix(in oklab, var(--accent) 12%, transparent); -} -.lunora-welcome .ic svg { - display: block; -} - -/* left feature card — stretches to fill the box height */ -.lunora-welcome .feature { - padding: clamp(18px, 2vw, 24px); - display: flex; - flex-direction: column; -} -.lunora-welcome .shot { - border: 1px solid var(--line); - overflow: hidden; - background: var(--shot-bg); - -webkit-mask-image: linear-gradient(to bottom, #000 56%, transparent 100%); - mask-image: linear-gradient(to bottom, #000 56%, transparent 100%); -} -.lunora-welcome .shot .top { - display: flex; - align-items: center; - gap: 12px; - padding: 11px 14px; - border-bottom: 1px solid var(--line); -} -.lunora-welcome .shot .wm { - display: flex; - align-items: center; - gap: 7px; - font-size: 12px; - font-weight: 600; - color: var(--t-primary); -} -.lunora-welcome .shot .wm i { - width: 11px; - height: 11px; - background: var(--ribbon); - -webkit-mask: radial-gradient(circle, #000 60%, transparent 62%); - mask: radial-gradient(circle, #000 60%, transparent 62%); -} -.lunora-welcome .shot .search { - flex: 1; - height: 22px; - border: 1px solid var(--line); - border-radius: 4px; -} -.lunora-welcome .shot .ver { - font-family: var(--mono); - font-size: 8px; - letter-spacing: 0.08em; - color: var(--t-faint); -} -.lunora-welcome .shot .body { - display: grid; - grid-template-columns: 92px 1fr; - min-height: 224px; -} -.lunora-welcome .shot .nav { - border-right: 1px solid var(--line); - padding: 14px 12px; - display: flex; - flex-direction: column; - gap: 11px; -} -.lunora-welcome .shot .nav i, -.lunora-welcome .shot .doc i { - height: 5px; - border-radius: 2px; - background: var(--line); -} -.lunora-welcome .shot .doc { - padding: 16px 18px; - display: flex; - flex-direction: column; - gap: 9px; -} -.lunora-welcome .shot .doc .h { - height: 8px; - width: 46%; - border-radius: 2px; - background: var(--line-2); - margin-bottom: 5px; -} -.lunora-welcome .shot .doc .accent { - height: 5px; - width: 26%; - border-radius: 2px; - background: var(--accent); -} -.lunora-welcome .feature .info { - margin-top: auto; - padding-top: clamp(18px, 2.4vh, 28px); -} -.lunora-welcome .feature .ic { - width: 40px; - height: 40px; - margin-bottom: 15px; -} -.lunora-welcome .feature .ic svg { - width: 19px; - height: 19px; -} -.lunora-welcome .feature h2 { - margin: 0 0 10px; - font-size: 19px; - font-weight: 600; - letter-spacing: -0.015em; - color: var(--t-display); -} -.lunora-welcome .feature .row { - display: flex; - align-items: flex-end; - gap: 16px; -} -.lunora-welcome .feature p { - margin: 0; - color: var(--t-secondary); - font-size: 14px; - max-width: 50ch; -} -.lunora-welcome .feature .row .arrow { - margin-left: auto; -} - -/* right stack — smaller cards, spread to align bottoms with the feature */ -.lunora-welcome .stack { - display: flex; - flex-direction: column; - gap: 16px; - height: 100%; -} -.lunora-welcome .mini { - flex: 1; - padding: 15px 17px; - display: flex; - align-items: center; - gap: 16px; - min-height: 0; -} -.lunora-welcome .mini .mc { - flex: 1; -} -.lunora-welcome .mini .ic { - width: 32px; - height: 32px; - margin-bottom: 10px; -} -.lunora-welcome .mini .ic svg { - width: 16px; - height: 16px; -} -.lunora-welcome .mini h3 { - margin: 0 0 5px; - font-size: 16px; - font-weight: 600; - letter-spacing: -0.01em; - color: var(--t-display); -} -.lunora-welcome .mini p { - margin: 0; - color: var(--t-secondary); - font-size: 12.5px; - line-height: 1.45; -} - -.lunora-welcome .lw-foot { - text-align: center; - padding-top: 26px; - font-family: var(--mono); - font-size: 11px; - letter-spacing: 0.1em; - text-transform: uppercase; - color: var(--t-faint); -} - -@media (prefers-reduced-motion: reduce) { - .lunora-welcome * { - transition: none !important; - } -} diff --git a/spikes/lunora-outline/src/outline-store.ts b/spikes/lunora-outline/src/outline-store.ts index 0776a709..13071ecc 100644 --- a/spikes/lunora-outline/src/outline-store.ts +++ b/spikes/lunora-outline/src/outline-store.ts @@ -13,6 +13,7 @@ import { planOutdent, planRemoveNode, planSetText, + rowToNode, type OutlineNode, type OutlinePlan, } from "./outline/index.js"; @@ -20,25 +21,6 @@ import { /** Row shape for TanStack — Doc interfaces lack an index signature. */ export type NodeRow = Doc<"nodes"> & Record; -function rowToNode(row: NodeRow): OutlineNode { - return { - id: row._id, - parentId: (row.parentId as string | null) ?? null, - prevSiblingId: (row.prevSiblingId as string | null) ?? null, - text: row.text, - isTask: row.isTask, - completed: row.completed, - collapsed: row.collapsed, - bookmarkedAt: (row.bookmarkedAt as number | null) ?? null, - mirrorOf: (row.mirrorOf as string | null) ?? null, - createdAt: row.createdAt, - updatedAt: row.updatedAt, - origin: (row.origin as string | null) ?? null, - kind: row.kind === "paragraph" ? "paragraph" : null, - userId: row.userId, - }; -} - function nodeToRow(node: OutlineNode): NodeRow { return { _id: node.id as NodeRow["_id"], diff --git a/spikes/lunora-outline/src/outline/index.ts b/spikes/lunora-outline/src/outline/index.ts index abf40956..5fc1a2d7 100644 --- a/spikes/lunora-outline/src/outline/index.ts +++ b/spikes/lunora-outline/src/outline/index.ts @@ -12,3 +12,16 @@ export { planSetText, applyPlan, } from "./planners.js"; +export { rowToNode, docToNode, nodeToDocFields } from "./map-node.js"; +export type { NodeDocLike } from "./map-node.js"; +export { + rowsToOutlineNodes, + bridgeTreeIndex, + bridgeOrderedChildren, +} from "./lunora-bridge.js"; +export { + DEMO_SEED_TEXTS, + shouldSeedOutline, + seedEmptyOutline, +} from "./seed.js"; +export type { InsertSiblingArgs, InsertSiblingFn } from "./seed.js"; diff --git a/spikes/lunora-outline/src/outline/lunora-bridge.test.ts b/spikes/lunora-outline/src/outline/lunora-bridge.test.ts new file mode 100644 index 00000000..8b2d34a5 --- /dev/null +++ b/spikes/lunora-outline/src/outline/lunora-bridge.test.ts @@ -0,0 +1,132 @@ +import { describe, expect, it } from "vitest"; + +import type { OutlineNode } from "./types.js"; + +import { + bridgeOrderedChildren, + bridgeTreeIndex, + rowsToOutlineNodes, +} from "./lunora-bridge.js"; +import { nodeToDocFields } from "./map-node.js"; +import { + applyPlan, + planIndent, + planInsertSibling, + planRemoveNode, +} from "./planners.js"; +import { buildTreeIndex } from "./tree.js"; + +const USER = "user-bridge"; + +function toRows(nodes: OutlineNode[]) { + return nodes.map(nodeToDocFields); +} + +describe("lunora-bridge (ADR 0004 seam)", () => { + it("maps rows → OutlineNode via shared rowToNode", () => { + const rows = [ + { + _id: "a", + parentId: null, + prevSiblingId: null, + text: "hello", + isTask: false, + completed: false, + collapsed: false, + bookmarkedAt: null, + mirrorOf: null, + createdAt: 1, + updatedAt: 1, + origin: null, + kind: null, + userId: USER, + }, + ]; + expect(rowsToOutlineNodes(rows)).toEqual([ + { + id: "a", + parentId: null, + prevSiblingId: null, + text: "hello", + isTask: false, + completed: false, + collapsed: false, + bookmarkedAt: null, + mirrorOf: null, + createdAt: 1, + updatedAt: 1, + origin: null, + kind: null, + userId: USER, + }, + ]); + }); + + it("insert / indent / remove via planners → bridge order matches", () => { + let nodes: OutlineNode[] = []; + let t = 100; + + // Insert a, b, c at top level + for (const id of ["a", "b", "c"] as const) { + const index = buildTreeIndex(nodes); + const afterId = nodes.length === 0 ? null : nodes[nodes.length - 1]!.id; + const plan = planInsertSibling(index, { + id, + userId: USER, + parentId: null, + afterId, + text: id, + createdAt: t, + updatedAt: t, + }); + expect(plan).not.toBeNull(); + nodes = applyPlan(nodes, plan!); + t += 1; + } + + { + const bridged = bridgeTreeIndex(toRows(nodes)); + expect(bridgeOrderedChildren(bridged, null).map((n) => n.id)).toEqual([ + "a", + "b", + "c", + ]); + } + + // Indent c under b → a, b(c) + { + const index = buildTreeIndex(nodes); + const plan = planIndent(index, "c", t++); + expect(plan).not.toBeNull(); + nodes = applyPlan(nodes, plan!); + } + + { + const bridged = bridgeTreeIndex(toRows(nodes)); + expect(bridgeOrderedChildren(bridged, null).map((n) => n.id)).toEqual([ + "a", + "b", + ]); + expect(bridgeOrderedChildren(bridged, "b").map((n) => n.id)).toEqual([ + "c", + ]); + } + + // Remove b (and cascade semantics from planRemoveNode) + { + const index = buildTreeIndex(nodes); + const plan = planRemoveNode(index, "b", t++); + expect(plan).not.toBeNull(); + nodes = applyPlan(nodes, plan!); + } + + { + const bridged = bridgeTreeIndex(toRows(nodes)); + const top = bridgeOrderedChildren(bridged, null).map((n) => n.id); + // planRemoveNode removes the subtree — expect only "a" + expect(top).toEqual(["a"]); + expect(bridged.byId.has("b")).toBe(false); + expect(bridged.byId.has("c")).toBe(false); + } + }); +}); diff --git a/spikes/lunora-outline/src/outline/lunora-bridge.ts b/spikes/lunora-outline/src/outline/lunora-bridge.ts new file mode 100644 index 00000000..595fb5ec --- /dev/null +++ b/spikes/lunora-outline/src/outline/lunora-bridge.ts @@ -0,0 +1,33 @@ +/** + * ADR 0004 handoff seam — build Dotflowy-shaped `TreeIndex` / ordered children + * from Lunora collection rows (`wholeOutline`). Feed `tree-store` later; do + * **not** port OutlineEditor / virtualizer into this spike. + * + * Same spine as production `src/data/tree.ts` (`childrenByParent` id arrays + + * `byId`), minus mirrors/links/tagCorpus (not in spike schema yet). + */ + +import type { OutlineNode } from "./types.js"; + +import { rowToNode, type NodeDocLike } from "./map-node.js"; +import { buildTreeIndex, childrenOf, type TreeIndex } from "./tree.js"; + +/** Map collection / query rows → planner nodes. */ +export function rowsToOutlineNodes(rows: Iterable): OutlineNode[] { + const out: OutlineNode[] = []; + for (const row of rows) out.push(rowToNode(row)); + return out; +} + +/** Lunora rows → TreeIndex (ordered sibling ids per parent). */ +export function bridgeTreeIndex(rows: Iterable): TreeIndex { + return buildTreeIndex(rowsToOutlineNodes(rows)); +} + +/** Ordered children under `parentId` (`null` = top level). */ +export function bridgeOrderedChildren( + index: TreeIndex, + parentId: string | null, +): OutlineNode[] { + return childrenOf(index, parentId); +} diff --git a/spikes/lunora-outline/src/outline/map-node.ts b/spikes/lunora-outline/src/outline/map-node.ts new file mode 100644 index 00000000..72e839ba --- /dev/null +++ b/spikes/lunora-outline/src/outline/map-node.ts @@ -0,0 +1,67 @@ +import type { OutlineNode } from "./types.js"; + +/** + * Loose Lunora / TanStack row shape. Codegen Doc types currently erase + * `.nullable()`, so boundaries cast through this helper once. + */ +export type NodeDocLike = { + _id: string; + parentId?: unknown; + prevSiblingId?: unknown; + text?: unknown; + isTask?: unknown; + completed?: unknown; + collapsed?: unknown; + bookmarkedAt?: unknown; + mirrorOf?: unknown; + createdAt?: unknown; + updatedAt?: unknown; + origin?: unknown; + kind?: unknown; + userId?: unknown; +}; + +/** Shared Doc/row → planner node. Use at every Lunora↔outline boundary. */ +export function rowToNode(doc: NodeDocLike): OutlineNode { + return { + id: doc._id, + parentId: (doc.parentId as string | null) ?? null, + prevSiblingId: (doc.prevSiblingId as string | null) ?? null, + text: String(doc.text ?? ""), + isTask: Boolean(doc.isTask), + completed: Boolean(doc.completed), + collapsed: Boolean(doc.collapsed), + bookmarkedAt: (doc.bookmarkedAt as number | null) ?? null, + mirrorOf: (doc.mirrorOf as string | null) ?? null, + createdAt: Number(doc.createdAt ?? 0), + updatedAt: Number(doc.updatedAt ?? 0), + origin: (doc.origin as string | null) ?? null, + kind: doc.kind === "paragraph" ? "paragraph" : null, + userId: String(doc.userId ?? ""), + }; +} + +/** Alias for server mutator docs (`_id` rows from `ctx.db.query`). */ +export const docToNode = rowToNode; + +/** Planner node → optimistic collection row (client apply path). */ +export function nodeToDocFields( + node: OutlineNode, +): Omit & { _id: string } { + return { + _id: node.id, + parentId: node.parentId, + prevSiblingId: node.prevSiblingId, + text: node.text, + isTask: node.isTask, + completed: node.completed, + collapsed: node.collapsed, + bookmarkedAt: node.bookmarkedAt, + mirrorOf: node.mirrorOf, + createdAt: node.createdAt, + updatedAt: node.updatedAt, + origin: node.origin, + kind: node.kind, + userId: node.userId, + }; +} diff --git a/spikes/lunora-outline/src/outline/seed.test.ts b/spikes/lunora-outline/src/outline/seed.test.ts new file mode 100644 index 00000000..239251cd --- /dev/null +++ b/spikes/lunora-outline/src/outline/seed.test.ts @@ -0,0 +1,64 @@ +import { describe, expect, it } from "vitest"; + +import { + DEMO_SEED_TEXTS, + seedEmptyOutline, + shouldSeedOutline, +} from "./seed.js"; + +describe("seedEmptyOutline", () => { + it("shouldSeedOutline only when ready and empty", () => { + expect(shouldSeedOutline({ isReady: false, nodeCount: 0 })).toBe(false); + expect(shouldSeedOutline({ isReady: true, nodeCount: 1 })).toBe(false); + expect(shouldSeedOutline({ isReady: true, nodeCount: 0 })).toBe(true); + }); + + it("chains insertSibling with deterministic timestamps", async () => { + const calls: Array> = []; + let n = 0; + const ids = await seedEmptyOutline({ + userId: "u1", + texts: ["one", "two"], + newId: () => `id-${++n}`, + now: () => 1000, + insertSibling: async (args) => { + calls.push(args); + }, + }); + + expect(ids).toEqual(["id-1", "id-2"]); + expect(calls).toEqual([ + { + id: "id-1", + userId: "u1", + parentId: null, + afterId: null, + text: "one", + createdAt: 1000, + updatedAt: 1000, + }, + { + id: "id-2", + userId: "u1", + parentId: null, + afterId: "id-1", + text: "two", + createdAt: 1001, + updatedAt: 1001, + }, + ]); + }); + + it("default texts cover the demo bullets", async () => { + const calls: Array<{ text: string }> = []; + await seedEmptyOutline({ + userId: "u1", + newId: () => crypto.randomUUID(), + now: () => 1, + insertSibling: async (args) => { + calls.push({ text: args.text }); + }, + }); + expect(calls.map((c) => c.text)).toEqual([...DEMO_SEED_TEXTS]); + }); +}); diff --git a/spikes/lunora-outline/src/outline/seed.ts b/spikes/lunora-outline/src/outline/seed.ts new file mode 100644 index 00000000..8cffdabf --- /dev/null +++ b/spikes/lunora-outline/src/outline/seed.ts @@ -0,0 +1,69 @@ +/** + * Idempotent first-run demo seed — only when the outline is ready and empty. + * Uses the existing `insertSibling` mutator (deterministic timestamps in args). + */ + +export const DEMO_SEED_TEXTS = [ + "Welcome to the Lunora outline spike", + "Open a second tab — edits sync live", + "Try indent / outdent / delete", + "Hard reload restores from wholeOutline", +] as const; + +export type InsertSiblingArgs = { + id: string; + userId: string; + parentId: string | null; + afterId: string | null; + text: string; + createdAt: number; + updatedAt: number; +}; + +export type InsertSiblingFn = (args: InsertSiblingArgs) => Promise; + +/** Gate: ready + zero nodes. Callers still guard in-flight / StrictMode. */ +export function shouldSeedOutline(opts: { + isReady: boolean; + nodeCount: number; +}): boolean { + return opts.isReady && opts.nodeCount === 0; +} + +/** + * Insert demo bullets as a top-level chain via `insertSibling`. + * Returns inserted ids (empty if texts list is empty). + */ +export async function seedEmptyOutline(opts: { + userId: string; + insertSibling: InsertSiblingFn; + texts?: readonly string[]; + newId?: () => string; + now?: () => number; +}): Promise { + const texts = opts.texts ?? DEMO_SEED_TEXTS; + const newId = opts.newId ?? (() => crypto.randomUUID()); + const now = opts.now ?? (() => Date.now()); + + let afterId: string | null = null; + let t = now(); + const ids: string[] = []; + + for (const text of texts) { + const id = newId(); + await opts.insertSibling({ + id, + userId: opts.userId, + parentId: null, + afterId, + text, + createdAt: t, + updatedAt: t, + }); + ids.push(id); + afterId = id; + t += 1; + } + + return ids; +} From fc7654a1c242d83f377fe085b46ce07c3c6e46e0 Mon Sep 17 00:00:00 2001 From: Cameron Pak Date: Thu, 23 Jul 2026 12:56:07 -0500 Subject: [PATCH 10/59] docs(spike): record Phase 1 bridge commit hash in HANDOFF Co-authored-by: Cursor --- HANDOFF.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/HANDOFF.md b/HANDOFF.md index fdaa6282..69d17f60 100644 --- a/HANDOFF.md +++ b/HANDOFF.md @@ -8,7 +8,8 @@ Commits on `spike/lunora-outline` after Phase 0 docs `78cca687f9`: -_(filled after Phase 1 commits)_ +1. `a4bf137367` / `f942321782` — Phase 0 manual exit-criteria PASS notes +2. `1b99bce9a2` `feat(spike): shared mapping, TreeIndex bridge, empty-outline seed` ## Sources of truth @@ -60,7 +61,6 @@ Verified on `http://localhost:5175/` (Vite fell through 5173→5174→5175): ## Next -- Finish Phase 1 commits (shared map / seed / bridge / trim) — in flight; fill commit hashes above - Before any PR to `main`: delete `HANDOFF.md` + empty changeset - Phase 2+: richer editor / migrate product — out of scope here From 0b8b3a7d8ed7b032978fc272d707a9f026a37863 Mon Sep 17 00:00:00 2001 From: Cameron Pak Date: Thu, 23 Jul 2026 12:56:52 -0500 Subject: [PATCH 11/59] docs(spike): include Phase 1 docs commit in HANDOFF list Co-authored-by: Cursor --- HANDOFF.md | 1 + 1 file changed, 1 insertion(+) diff --git a/HANDOFF.md b/HANDOFF.md index 69d17f60..0039fbbd 100644 --- a/HANDOFF.md +++ b/HANDOFF.md @@ -10,6 +10,7 @@ Commits on `spike/lunora-outline` after Phase 0 docs `78cca687f9`: 1. `a4bf137367` / `f942321782` — Phase 0 manual exit-criteria PASS notes 2. `1b99bce9a2` `feat(spike): shared mapping, TreeIndex bridge, empty-outline seed` +3. `fc7654a1c2` `docs(spike): record Phase 1 bridge commit hash in HANDOFF` ## Sources of truth From e16cd6e845321e9ac283080e7b2553344869e380 Mon Sep 17 00:00:00 2001 From: Cameron Pak Date: Thu, 23 Jul 2026 13:01:13 -0500 Subject: [PATCH 12/59] fix(spike): server-authoritative seedIfEmpty for multi-tab idempotency DO watermark FIFO serializes concurrent seeds; second call no-ops. Deterministic DEMO_SEED_IDS keep optimistic overlays converging. Also unify nodeToRow map and distinguish empty-UI seeding vs truly empty. Co-authored-by: Cursor --- HANDOFF.md | 15 ++- spikes/lunora-outline/README.md | 6 +- spikes/lunora-outline/lunora/mutators.ts | 51 +++++--- spikes/lunora-outline/src/App.tsx | 26 ++-- spikes/lunora-outline/src/outline-store.ts | 31 ++--- spikes/lunora-outline/src/outline/index.ts | 12 +- spikes/lunora-outline/src/outline/map-node.ts | 19 ++- .../lunora-outline/src/outline/seed.test.ts | 87 +++++++++---- spikes/lunora-outline/src/outline/seed.ts | 114 ++++++++++++------ 9 files changed, 235 insertions(+), 126 deletions(-) diff --git a/HANDOFF.md b/HANDOFF.md index 0039fbbd..cb475c2c 100644 --- a/HANDOFF.md +++ b/HANDOFF.md @@ -4,13 +4,15 @@ ## Status -`phase-1-bridge` — shared mapping, empty-outline seed, ADR 0004 TreeIndex bridge, scaffold trim. +`phase-1-seed-hardened` — Phase 1 bridge + server-authoritative `seedIfEmpty` (multi-tab seed race fixed). Commits on `spike/lunora-outline` after Phase 0 docs `78cca687f9`: 1. `a4bf137367` / `f942321782` — Phase 0 manual exit-criteria PASS notes 2. `1b99bce9a2` `feat(spike): shared mapping, TreeIndex bridge, empty-outline seed` 3. `fc7654a1c2` `docs(spike): record Phase 1 bridge commit hash in HANDOFF` +4. `0b8b3a7d8e` `docs(spike): include Phase 1 docs commit in HANDOFF list` +5. _(this branch tip)_ — Phase 1 review: `seedIfEmpty` mutator, map unify, empty-UI copy ## Sources of truth @@ -23,13 +25,18 @@ Commits on `spike/lunora-outline` after Phase 0 docs `78cca687f9`: - `nodes` schema + `wholeOutline` shape + Better Auth via `defineApp().auth()` + `authorizeShard: identity.userId === shardKey` - Pure planners in `src/outline/` with vitest chain invariant - Dual mutator APIs: server `lunorash/server` defineMutator; client `@lunora/db/mutators` defineMutator+bindMutators (shared `plan*`) -- Shared `rowToNode`/`docToNode` in `src/outline/map-node.ts` (used by mutators + outline-store + App) +- Shared `rowToNode`/`docToNode` + `nodeToDocFields`/`nodeToRow`/`nodeToInsertFields` in `src/outline/map-node.ts` - Bridge: `src/outline/lunora-bridge.ts` — Lunora collection rows → Dotflowy-shaped `TreeIndex` / ordered children (ADR 0004 handoff; feed tree-store later; **no** OutlineEditor port) -- Seed: `src/outline/seed.ts` — on first ready+empty load, 4 demo bullets via `insertSibling` (idempotent) -- Tiny list UI renders via bridge; email/password auth gate +- Seed: `planSeedIfEmpty` + server `seedIfEmpty` mutator with fixed `DEMO_SEED_IDS`; DO watermark FIFO = multi-tab idempotency (second call no-ops) +- Tiny list UI renders via bridge; email/password auth gate; empty copy distinguishes seed-pending vs truly empty - Scaffold cruft trimmed (unused Vite assets, App.css, welcome CSS, public/icons.svg) - `.dev.vars` gitignored (do not commit) +## Phase 1 review + +- **Must-fix (done):** multi-tab both calling client `insertSibling` seed → duplicate chains. Replaced with server-authoritative `seedIfEmpty`. +- **Should-fix (done):** unify outbound map; empty UI copy; HANDOFF commit list + status. + ## Verify ```sh diff --git a/spikes/lunora-outline/README.md b/spikes/lunora-outline/README.md index 998f6c91..7f3cfb26 100644 --- a/spikes/lunora-outline/README.md +++ b/spikes/lunora-outline/README.md @@ -33,7 +33,7 @@ Local secrets: `.dev.vars` is gitignored. Scaffold needs `AUTH_SECRET` (and opti 1. `pnpm dev` → open the Local URL (e.g. `http://localhost:5174/`). 2. **Sign up** once (`spike@dotflowy.local` / `spike-dev-password` prefilled — change as you like). -3. Empty outline **auto-seeds** 4 demo bullets (idempotent — only when ready + zero nodes). +3. Empty outline **auto-seeds** 4 demo bullets via server `seedIfEmpty` (idempotent — DO watermark FIFO; second concurrent call no-ops). 4. Indent/outdent/delete/edit text; insert more bullets. 5. Open a **second tab** to the same origin (already signed in via cookie). 6. Edits in either tab should converge live (shape poke + watermark). @@ -58,9 +58,9 @@ Cross-user: sign out → sign up as a different email → that session’s `auth | `lunora/shapes.ts` | `wholeOutline` owner-gated shape | | `lunora/mutators.ts` | Server `defineMutator` (`lunorash/server`) — authoritative | | `src/outline/` | Pure `plan*` + sibling-chain (shared) | -| `src/outline/map-node.ts` | Shared `rowToNode` / `docToNode` (one mapping) | +| `src/outline/map-node.ts` | Shared `rowToNode` / `nodeToDocFields` (=`nodeToRow`) / insert fields | | `src/outline/lunora-bridge.ts` | ADR 0004 seam: Lunora rows → Dotflowy-shaped `TreeIndex` | -| `src/outline/seed.ts` | Idempotent empty-outline demo seed via `insertSibling` | +| `src/outline/seed.ts` | `planSeedIfEmpty` + deterministic clientIds; DO FIFO idempotency | | `src/outline-store.ts` | Client `lunoraCollectionOptions` + `@lunora/db/mutators` `bindMutators` | | `src/App.tsx` | Auth gate + tiny outline list UI (renders via bridge) | diff --git a/spikes/lunora-outline/lunora/mutators.ts b/spikes/lunora-outline/lunora/mutators.ts index eeb79010..d2191388 100644 --- a/spikes/lunora-outline/lunora/mutators.ts +++ b/spikes/lunora-outline/lunora/mutators.ts @@ -5,10 +5,12 @@ import type { Id } from "./_generated/dataModel.js"; import { buildTreeIndex, docToNode, + nodeToInsertFields, planIndent, planInsertSibling, planOutdent, planRemoveNode, + planSeedIfEmpty, planSetText, type OutlineNode, type OutlinePlan, @@ -46,26 +48,9 @@ function assertOwner(ctx: MutatorCtx, userId: string): void { async function commitPlan(ctx: MutatorCtx, plan: OutlinePlan): Promise { for (const node of plan.inserts) { - const { id, ...fields } = node; - await ctx.db.insert( - "nodes", - { - parentId: fields.parentId, - prevSiblingId: fields.prevSiblingId, - text: fields.text, - isTask: fields.isTask, - completed: fields.completed, - collapsed: fields.collapsed, - bookmarkedAt: fields.bookmarkedAt, - mirrorOf: fields.mirrorOf, - createdAt: fields.createdAt, - updatedAt: fields.updatedAt, - origin: fields.origin, - kind: fields.kind, - userId: fields.userId, - }, - { clientId: id }, - ); + await ctx.db.insert("nodes", nodeToInsertFields(node), { + clientId: node.id, + }); } for (const patch of plan.patches) { @@ -117,6 +102,32 @@ export const insertSibling = defineMutator({ }, }); +/** + * Server-authoritative empty-outline seed. Concurrent calls serialize on the + * DO watermark FIFO — second sees non-empty and returns `{ seeded: false }`. + */ +export const seedIfEmpty = defineMutator({ + args: { + userId: userIdArg, + createdAt: tsArg, + }, + server: async (ctx, args) => { + const mctx = ctx as unknown as MutatorCtx; + assertOwner(mctx, args.userId); + const nodes = await loadNodes(mctx); + const plan = planSeedIfEmpty(nodes, { + userId: args.userId, + createdAt: args.createdAt, + }); + if (!plan) return { seeded: false as const }; + await commitPlan(mctx, plan); + return { + seeded: true as const, + ids: plan.inserts.map((n) => n.id), + }; + }, +}); + export const indent = defineMutator({ args: { id: idArg, userId: userIdArg, updatedAt: tsArg }, server: async (ctx, args) => { diff --git a/spikes/lunora-outline/src/App.tsx b/spikes/lunora-outline/src/App.tsx index 2671f49d..a7df05ab 100644 --- a/spikes/lunora-outline/src/App.tsx +++ b/spikes/lunora-outline/src/App.tsx @@ -133,9 +133,11 @@ function OutlineApp({ userId }: { userId: string }) { const { mutate: outdent } = useMutator(store.mutators.outdent); const { mutate: removeNode } = useMutator(store.mutators.removeNode); const { mutate: setText } = useMutator(store.mutators.setText); + const { mutate: seedIfEmpty } = useMutator(store.mutators.seedIfEmpty); const [draft, setDraft] = useState(""); const [afterId, setAfterId] = useState(null); + const [seedPending, setSeedPending] = useState(false); const seedStarted = useRef(false); const isReady = !isLoading && status === "ready"; @@ -144,15 +146,19 @@ function OutlineApp({ userId }: { userId: string }) { if (seedStarted.current) return; if (!shouldSeedOutline({ isReady, nodeCount })) return; seedStarted.current = true; + setSeedPending(true); void seedEmptyOutline({ userId, - insertSibling: (args) => insertSibling(args), - newId, - }).catch((err) => { - seedStarted.current = false; - console.error("seedEmptyOutline failed", err); - }); - }, [isReady, nodeCount, userId, insertSibling]); + seedIfEmpty: (args) => seedIfEmpty(args), + }) + .catch((err) => { + seedStarted.current = false; + console.error("seedEmptyOutline failed", err); + }) + .finally(() => { + setSeedPending(false); + }); + }, [isReady, nodeCount, userId, seedIfEmpty]); const addBullet = async (event: FormEvent) => { event.preventDefault(); @@ -267,7 +273,11 @@ function OutlineApp({ userId }: { userId: string }) { {isLoading ? (

    Loading outline…

    ) : orderedTop.length === 0 ? ( -

    Seeding demo bullets…

    +

    + {seedPending + ? "Seeding demo bullets…" + : "Outline empty — insert a bullet to start."} +

    ) : null} ); diff --git a/spikes/lunora-outline/src/outline-store.ts b/spikes/lunora-outline/src/outline-store.ts index 13071ecc..5077825c 100644 --- a/spikes/lunora-outline/src/outline-store.ts +++ b/spikes/lunora-outline/src/outline-store.ts @@ -8,10 +8,12 @@ import type { Doc } from "../lunora/_generated/dataModel.js"; import { buildTreeIndex, + nodeToRow, planIndent, planInsertSibling, planOutdent, planRemoveNode, + planSeedIfEmpty, planSetText, rowToNode, type OutlineNode, @@ -21,26 +23,6 @@ import { /** Row shape for TanStack — Doc interfaces lack an index signature. */ export type NodeRow = Doc<"nodes"> & Record; -function nodeToRow(node: OutlineNode): NodeRow { - return { - _id: node.id as NodeRow["_id"], - _creationTime: node.createdAt, - parentId: node.parentId as NodeRow["parentId"], - prevSiblingId: node.prevSiblingId as NodeRow["prevSiblingId"], - text: node.text, - isTask: node.isTask, - completed: node.completed, - collapsed: node.collapsed, - bookmarkedAt: node.bookmarkedAt as NodeRow["bookmarkedAt"], - mirrorOf: node.mirrorOf as NodeRow["mirrorOf"], - createdAt: node.createdAt, - updatedAt: node.updatedAt, - origin: node.origin as NodeRow["origin"], - kind: node.kind as NodeRow["kind"], - userId: node.userId, - }; -} - function applyPlanToCollection( collection: Collection, plan: OutlinePlan, @@ -54,7 +36,7 @@ function applyPlanToCollection( }); } for (const insert of plan.inserts) { - collection.insert(nodeToRow(insert)); + collection.insert(nodeToRow(insert) as NodeRow); } } @@ -144,6 +126,13 @@ function bindOutlineMutators( if (plan) applyPlanToCollection(collection, plan); }, }), + seedIfEmpty: defineMutator<{ userId: string; createdAt: number }>({ + serverRef: "mutators:seedIfEmpty", + apply: (_ctx, args) => { + const plan = planSeedIfEmpty(snapshotNodes(collection), args); + if (plan) applyPlanToCollection(collection, plan); + }, + }), }, ); } diff --git a/spikes/lunora-outline/src/outline/index.ts b/spikes/lunora-outline/src/outline/index.ts index 5fc1a2d7..8d89effa 100644 --- a/spikes/lunora-outline/src/outline/index.ts +++ b/spikes/lunora-outline/src/outline/index.ts @@ -12,7 +12,13 @@ export { planSetText, applyPlan, } from "./planners.js"; -export { rowToNode, docToNode, nodeToDocFields } from "./map-node.js"; +export { + rowToNode, + docToNode, + nodeToDocFields, + nodeToRow, + nodeToInsertFields, +} from "./map-node.js"; export type { NodeDocLike } from "./map-node.js"; export { rowsToOutlineNodes, @@ -21,7 +27,9 @@ export { } from "./lunora-bridge.js"; export { DEMO_SEED_TEXTS, + DEMO_SEED_IDS, shouldSeedOutline, + planSeedIfEmpty, seedEmptyOutline, } from "./seed.js"; -export type { InsertSiblingArgs, InsertSiblingFn } from "./seed.js"; +export type { SeedIfEmptyArgs, SeedIfEmptyFn } from "./seed.js"; diff --git a/spikes/lunora-outline/src/outline/map-node.ts b/spikes/lunora-outline/src/outline/map-node.ts index 72e839ba..5fef4695 100644 --- a/spikes/lunora-outline/src/outline/map-node.ts +++ b/spikes/lunora-outline/src/outline/map-node.ts @@ -44,12 +44,16 @@ export function rowToNode(doc: NodeDocLike): OutlineNode { /** Alias for server mutator docs (`_id` rows from `ctx.db.query`). */ export const docToNode = rowToNode; -/** Planner node → optimistic collection row (client apply path). */ +/** + * Planner node → outbound Doc/row fields (one helper for optimistic insert + + * tests). `_creationTime` mirrors Lunora’s system field for TanStack rows. + */ export function nodeToDocFields( node: OutlineNode, -): Omit & { _id: string } { +): Omit & { _id: string; _creationTime: number } { return { _id: node.id, + _creationTime: node.createdAt, parentId: node.parentId, prevSiblingId: node.prevSiblingId, text: node.text, @@ -65,3 +69,14 @@ export function nodeToDocFields( userId: node.userId, }; } + +/** Alias — same outbound map (was a near-dup in outline-store). */ +export const nodeToRow = nodeToDocFields; + +/** Server insert payload: Doc fields without `_id` / `_creationTime`. */ +export function nodeToInsertFields( + node: OutlineNode, +): Omit, "_id" | "_creationTime"> { + const { _id: _, _creationTime: __, ...fields } = nodeToDocFields(node); + return fields; +} diff --git a/spikes/lunora-outline/src/outline/seed.test.ts b/spikes/lunora-outline/src/outline/seed.test.ts index 239251cd..ced62777 100644 --- a/spikes/lunora-outline/src/outline/seed.test.ts +++ b/spikes/lunora-outline/src/outline/seed.test.ts @@ -1,64 +1,99 @@ import { describe, expect, it } from "vitest"; +import { applyPlan, buildTreeIndex, childrenOf } from "./index.js"; import { + DEMO_SEED_IDS, DEMO_SEED_TEXTS, + planSeedIfEmpty, seedEmptyOutline, shouldSeedOutline, } from "./seed.js"; -describe("seedEmptyOutline", () => { +describe("planSeedIfEmpty", () => { it("shouldSeedOutline only when ready and empty", () => { expect(shouldSeedOutline({ isReady: false, nodeCount: 0 })).toBe(false); expect(shouldSeedOutline({ isReady: true, nodeCount: 1 })).toBe(false); expect(shouldSeedOutline({ isReady: true, nodeCount: 0 })).toBe(true); }); - it("chains insertSibling with deterministic timestamps", async () => { - const calls: Array> = []; - let n = 0; - const ids = await seedEmptyOutline({ + it("returns null when any nodes exist (idempotent no-op)", () => { + const plan = planSeedIfEmpty( + [ + { + id: "x", + parentId: null, + prevSiblingId: null, + text: "existing", + isTask: false, + completed: false, + collapsed: false, + bookmarkedAt: null, + mirrorOf: null, + createdAt: 1, + updatedAt: 1, + origin: null, + kind: null, + userId: "u1", + }, + ], + { userId: "u1", createdAt: 1000 }, + ); + expect(plan).toBeNull(); + }); + + it("inserts demo chain with deterministic ids + timestamps", () => { + const plan = planSeedIfEmpty([], { userId: "u1", + createdAt: 1000, texts: ["one", "two"], - newId: () => `id-${++n}`, - now: () => 1000, - insertSibling: async (args) => { - calls.push(args); - }, + ids: ["id-1", "id-2"], }); - - expect(ids).toEqual(["id-1", "id-2"]); - expect(calls).toEqual([ - { + expect(plan).not.toBeNull(); + expect(plan!.inserts).toEqual([ + expect.objectContaining({ id: "id-1", userId: "u1", parentId: null, - afterId: null, + prevSiblingId: null, text: "one", createdAt: 1000, updatedAt: 1000, - }, - { + }), + expect.objectContaining({ id: "id-2", userId: "u1", parentId: null, - afterId: "id-1", + prevSiblingId: "id-1", text: "two", createdAt: 1001, updatedAt: 1001, - }, + }), ]); + expect(plan!.patches).toEqual([]); + expect(plan!.deletes).toEqual([]); + + const index = buildTreeIndex(applyPlan([], plan!)); + expect(childrenOf(index, null).map((n) => n.id)).toEqual(["id-1", "id-2"]); }); - it("default texts cover the demo bullets", async () => { - const calls: Array<{ text: string }> = []; + it("default texts/ids cover the demo bullets", () => { + const plan = planSeedIfEmpty([], { userId: "u1", createdAt: 1 }); + expect(plan).not.toBeNull(); + expect(plan!.inserts.map((n) => n.text)).toEqual([...DEMO_SEED_TEXTS]); + expect(plan!.inserts.map((n) => n.id)).toEqual([...DEMO_SEED_IDS]); + }); +}); + +describe("seedEmptyOutline", () => { + it("calls seedIfEmpty once with userId + createdAt", async () => { + const calls: Array<{ userId: string; createdAt: number }> = []; await seedEmptyOutline({ userId: "u1", - newId: () => crypto.randomUUID(), - now: () => 1, - insertSibling: async (args) => { - calls.push({ text: args.text }); + now: () => 42, + seedIfEmpty: async (args) => { + calls.push(args); }, }); - expect(calls.map((c) => c.text)).toEqual([...DEMO_SEED_TEXTS]); + expect(calls).toEqual([{ userId: "u1", createdAt: 42 }]); }); }); diff --git a/spikes/lunora-outline/src/outline/seed.ts b/spikes/lunora-outline/src/outline/seed.ts index 8cffdabf..5aa2e379 100644 --- a/spikes/lunora-outline/src/outline/seed.ts +++ b/spikes/lunora-outline/src/outline/seed.ts @@ -1,8 +1,16 @@ /** - * Idempotent first-run demo seed — only when the outline is ready and empty. - * Uses the existing `insertSibling` mutator (deterministic timestamps in args). + * Idempotent first-run demo seed. + * + * Idempotency is server-authoritative: `seedIfEmpty` loads the shard, no-ops if + * any nodes exist, else inserts 4 demo bullets with **deterministic clientIds**. + * Watermark FIFO on the DO serializes concurrent calls — the second sees + * non-empty and no-ops. Client optimistic apply uses the same ids so multi-tab + * overlays converge. */ +import { makeNode } from "./tree.js"; +import { emptyPlan, type OutlineNode, type OutlinePlan } from "./types.js"; + export const DEMO_SEED_TEXTS = [ "Welcome to the Lunora outline spike", "Open a second tab — edits sync live", @@ -10,18 +18,25 @@ export const DEMO_SEED_TEXTS = [ "Hard reload restores from wholeOutline", ] as const; -export type InsertSiblingArgs = { - id: string; +/** + * Fixed UUID clientIds for the 4 demo bullets (shard-local). + * Same ids every seed → multi-tab optimistic rows converge; second server call no-ops. + */ +export const DEMO_SEED_IDS = [ + "d0ef1001-5eed-4000-8000-000000000001", + "d0ef1002-5eed-4000-8000-000000000002", + "d0ef1003-5eed-4000-8000-000000000003", + "d0ef1004-5eed-4000-8000-000000000004", +] as const; + +export type SeedIfEmptyArgs = { userId: string; - parentId: string | null; - afterId: string | null; - text: string; + /** Base timestamp; bullet i uses createdAt/updatedAt = createdAt + i. */ createdAt: number; - updatedAt: number; + texts?: readonly string[]; + ids?: readonly string[]; }; -export type InsertSiblingFn = (args: InsertSiblingArgs) => Promise; - /** Gate: ready + zero nodes. Callers still guard in-flight / StrictMode. */ export function shouldSeedOutline(opts: { isReady: boolean; @@ -31,39 +46,58 @@ export function shouldSeedOutline(opts: { } /** - * Insert demo bullets as a top-level chain via `insertSibling`. - * Returns inserted ids (empty if texts list is empty). + * Pure planner: empty outline → insert demo chain; non-empty → null (no-op). */ -export async function seedEmptyOutline(opts: { - userId: string; - insertSibling: InsertSiblingFn; - texts?: readonly string[]; - newId?: () => string; - now?: () => number; -}): Promise { - const texts = opts.texts ?? DEMO_SEED_TEXTS; - const newId = opts.newId ?? (() => crypto.randomUUID()); - const now = opts.now ?? (() => Date.now()); +export function planSeedIfEmpty( + nodes: readonly OutlineNode[], + args: SeedIfEmptyArgs, +): OutlinePlan | null { + if (nodes.length > 0) return null; - let afterId: string | null = null; - let t = now(); - const ids: string[] = []; + const texts = args.texts ?? DEMO_SEED_TEXTS; + const ids = args.ids ?? DEMO_SEED_IDS; + if (texts.length !== ids.length) { + throw new Error("planSeedIfEmpty: texts and ids length mismatch"); + } - for (const text of texts) { - const id = newId(); - await opts.insertSibling({ - id, - userId: opts.userId, - parentId: null, - afterId, - text, - createdAt: t, - updatedAt: t, - }); - ids.push(id); - afterId = id; - t += 1; + const plan = emptyPlan(); + let prev: string | null = null; + for (let i = 0; i < texts.length; i++) { + const id = ids[i]!; + const t = args.createdAt + i; + plan.inserts.push( + makeNode({ + id, + userId: args.userId, + parentId: null, + prevSiblingId: prev, + text: texts[i]!, + createdAt: t, + updatedAt: t, + }), + ); + prev = id; } + return plan; +} + +export type SeedIfEmptyFn = (args: { + userId: string; + createdAt: number; +}) => Promise; - return ids; +/** + * Fire the server-authoritative `seedIfEmpty` mutator (optimistic apply mirrors + * `planSeedIfEmpty` with the same deterministic clientIds). + */ +export async function seedEmptyOutline(opts: { + userId: string; + seedIfEmpty: SeedIfEmptyFn; + now?: () => number; +}): Promise { + const now = opts.now ?? (() => Date.now()); + await opts.seedIfEmpty({ + userId: opts.userId, + createdAt: now(), + }); } From 1604c8ff6878b06eb8f015041da75e944443b009 Mon Sep 17 00:00:00 2001 From: Cameron Pak Date: Thu, 23 Jul 2026 13:01:13 -0500 Subject: [PATCH 13/59] docs(spike): record seedIfEmpty fix commit in HANDOFF Co-authored-by: Cursor --- HANDOFF.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/HANDOFF.md b/HANDOFF.md index cb475c2c..b28f76a4 100644 --- a/HANDOFF.md +++ b/HANDOFF.md @@ -12,7 +12,7 @@ Commits on `spike/lunora-outline` after Phase 0 docs `78cca687f9`: 2. `1b99bce9a2` `feat(spike): shared mapping, TreeIndex bridge, empty-outline seed` 3. `fc7654a1c2` `docs(spike): record Phase 1 bridge commit hash in HANDOFF` 4. `0b8b3a7d8e` `docs(spike): include Phase 1 docs commit in HANDOFF list` -5. _(this branch tip)_ — Phase 1 review: `seedIfEmpty` mutator, map unify, empty-UI copy +5. `e16cd6e845` `fix(spike): server-authoritative seedIfEmpty for multi-tab idempotency` ## Sources of truth From 40a5004bb240167dbee740ae59179ee9d4d66a1d Mon Sep 17 00:00:00 2001 From: Cameron Pak Date: Thu, 23 Jul 2026 13:02:47 -0500 Subject: [PATCH 14/59] docs(spike): record seedIfEmpty fresh-user smoke PASS Co-authored-by: Cursor --- HANDOFF.md | 1 + 1 file changed, 1 insertion(+) diff --git a/HANDOFF.md b/HANDOFF.md index b28f76a4..67e425e1 100644 --- a/HANDOFF.md +++ b/HANDOFF.md @@ -53,6 +53,7 @@ Verified on `http://localhost:5175/` (Vite fell through 5173→5174→5175): - [x] Two tabs, same user: live convergence without refresh (~2.5s) - [x] Hard reload restores outline from shape seed - [x] Cross-user: second account sees only its own seed, not first user’s bullets +- [x] Fresh-user `seedIfEmpty` smoke (`:5175`): signup → 4 demo bullets; reload stays 4; insert+reload keeps 5 (no double-seed) — after `e16cd6e845` ## API surprises vs docs From d3558fc138d05024001579c5f4b1adf930e141e6 Mon Sep 17 00:00:00 2001 From: Cameron Pak Date: Thu, 23 Jul 2026 13:04:00 -0500 Subject: [PATCH 15/59] docs(adr): adopt Lunora for outline sync (0055) Record cutover decision: authoritative mutators + shapes replace custom {ops} sync. Amend ADR 0008 divergence #1; no PR until full cutover and pre-existing tests are green. Co-authored-by: Cursor --- HANDOFF.md | 20 +++++------- ...0008-sync-via-a-per-user-durable-object.md | 18 ++++------- ...055-lunora-replaces-custom-outline-sync.md | 32 +++++++++++++++++++ 3 files changed, 47 insertions(+), 23 deletions(-) create mode 100644 docs/adr/0055-lunora-replaces-custom-outline-sync.md diff --git a/HANDOFF.md b/HANDOFF.md index 67e425e1..9c2b3c26 100644 --- a/HANDOFF.md +++ b/HANDOFF.md @@ -4,20 +4,15 @@ ## Status -`phase-1-seed-hardened` — Phase 1 bridge + server-authoritative `seedIfEmpty` (multi-tab seed race fixed). +`phase-2-cutover` — ADR 0055 accepted; spike Phase 0–1 proven. **No PR until Lunora cutover is complete and pre-existing tests are 100% green.** -Commits on `spike/lunora-outline` after Phase 0 docs `78cca687f9`: - -1. `a4bf137367` / `f942321782` — Phase 0 manual exit-criteria PASS notes -2. `1b99bce9a2` `feat(spike): shared mapping, TreeIndex bridge, empty-outline seed` -3. `fc7654a1c2` `docs(spike): record Phase 1 bridge commit hash in HANDOFF` -4. `0b8b3a7d8e` `docs(spike): include Phase 1 docs commit in HANDOFF list` -5. `e16cd6e845` `fix(spike): server-authoritative seedIfEmpty for multi-tab idempotency` +Commits (recent): through `40a5004bb2` (seed smoke) + upcoming ADR 0055 commit. ## Sources of truth -- Spike README: `spikes/lunora-outline/README.md` (run / demo / exit criteria) -- ADRs: `docs/adr/0004-…`, `docs/adr/0008-…`, `docs/adr/0009-…` +- **ADR 0055:** `docs/adr/0055-lunora-replaces-custom-outline-sync.md` (cutover sequence) +- Spike README: `spikes/lunora-outline/README.md` +- ADRs: `0004`, `0008` (amended by 0055), `0009`, `0055` - Research clone (machine-local): `/tmp/lunora-research` (`alpha` branch) ## Tree state @@ -70,8 +65,9 @@ Verified on `http://localhost:5175/` (Vite fell through 5173→5174→5175): ## Next -- Before any PR to `main`: delete `HANDOFF.md` + empty changeset -- Phase 2+: richer editor / migrate product — out of scope here +- Phase 2 sequence (ADR 0055): lift shared planners → integrate Lunora into main app → swap `nodesCollection` → migrate kv/MCP/data → delete custom DO sync → green gates → **then** PR +- Delete this `HANDOFF.md` in the shipping PR (must never reach `main`) +- Changeset at PR time (likely major communicative bump — readers relearn sync/infra story) ## Note diff --git a/docs/adr/0008-sync-via-a-per-user-durable-object.md b/docs/adr/0008-sync-via-a-per-user-durable-object.md index b090be7e..50ad47c1 100644 --- a/docs/adr/0008-sync-via-a-per-user-durable-object.md +++ b/docs/adr/0008-sync-via-a-per-user-durable-object.md @@ -45,17 +45,13 @@ elsewhere) — off-goal for an all-Cloudflare deploy. engine that lands on this same design — "the DO _is_ the log" (an append-only changelog written in the write's own storage transaction), the DO is the WebSocket fan-out, hibernation makes idle sockets ~free, and the client runs the dataflow via TanStack DB while the DO ships row-ops rather -than re-running queries. Useful outside validation of ADR 0008/0009; two deliberate divergences -worth recording: (1) Lunora runs the write logic **authoritatively in the DO** (client keeps an -optional optimistic twin); we ship pre-computed `{ops}` from the client's `tree.ts` and validate -their _shape_ at the trust boundary ([ADR 0014](./0014-validate-the-worker-do-trust-boundary.md)) -instead. We keep client-planned ops on purpose — single-writer-per-DO removes the concurrent-writer -conflicts that authoritative re-run buys, and the MCP path already re-plans server-side via the -shared `tree.ts` (`worker/outline-ops.ts`). (2) Lunora's **"shape = read-as-permission"** (the -client picks the partition, the server's `where` AND-composed with a row-level-security predicate -through one WHERE compiler picks the rows) is the pattern to reach for **when subtree sharing -lands** — partial replication and authorization as one mechanism, not a filter bolted next to an -auth check. Irrelevant today (one user = one DO = the whole outline), noted for the sharing seam. +than re-running queries. **Cutover decision:** [ADR 0055](./0055-lunora-replaces-custom-outline-sync.md) +adopts Lunora for outline sync and **supersedes divergence #1 below** (we no longer keep +client-precomputed `{ops}` as the long-term write model). Historical note of the pre-cutover +divergences: (1) ~~Lunora runs the write logic authoritatively in the DO; we shipped pre-computed +`{ops}` from the client's `tree.ts`~~ → superseded by ADR 0055 (authoritative mutators + shared +`plan*`). (2) Lunora's **"shape = read-as-permission"** remains the pattern for **when subtree +sharing lands** — still deferred; irrelevant while one user = one shard = the whole outline. **The SPA / no-SSR constraint lives here too:** the React app is a pure static SPA — never open the sync socket or touch `nodesCollection` during a server/render pass (`collection.ts` guards with diff --git a/docs/adr/0055-lunora-replaces-custom-outline-sync.md b/docs/adr/0055-lunora-replaces-custom-outline-sync.md new file mode 100644 index 00000000..0dc8e737 --- /dev/null +++ b/docs/adr/0055-lunora-replaces-custom-outline-sync.md @@ -0,0 +1,32 @@ +# Lunora replaces custom outline sync + +Dotflowy’s hand-rolled per-user DO sync (`/api/sync` + client-planned `{ops}` batches) converges on the same shape Lunora already ships — DO-as-log, poke fan-out, TanStack DB client, watermarked optimistic mutators ([ADR 0008](./0008-sync-via-a-per-user-durable-object.md)). We **cut over to Lunora** for outline storage/sync so Cam maintains product/UX, not a second sync engine. A greenfield spike (`spikes/lunora-outline/`) already proved ADR 0009’s chain invariant, live multi-tab convergence, watermark hold, shard deny, and hard-reload seed. + +**Decision.** Outline nodes (and, in follow-on slices, kv side-collections) move onto Lunora: `defineTable` + `.shardBy("userId")`, `defineShape` (`wholeOutline` / later partitions), server-authoritative `defineMutator` with shared pure `plan*` twins on the client (`@lunora/db` + checkpoints). Dotflowy keeps editor, plugins, domain MCP tool names (thin `/mcp` → mutators — [ADR 0026](./0026-agent-native-mcp-server.md) Option A), and existing non-outline HTTP (unfurl, waitlist, admin, Stripe, Better Auth identity) remounted beside Lunora’s Worker compose. + +**This supersedes ADR 0008’s deliberate divergence #1** (client-precomputed `{ops}` validated only for shape). Authoritative mutators + shared planners are the trust boundary now; ADR 0009’s P1/P2/P3 become Lunora’s atomic mutator writes + watermark overlay + clientSeq FIFO. Divergence #2 (shape = read-as-permission) stays the future sharing seam. + +## Cutover constraints + +- **One system at the end.** Dual-run is a temporary bridge only — not a permanent two-backend mode. +- **No PR to `main` until** the app speaks Lunora for outline sync **and** pre-existing gates are green: `typecheck` / `typecheck:worker` / `typecheck:test` / `lint` / `test` / local Playwright e2e (`test:e2e` with workers=2 clean-signal). Spike-only PRs are not the goal. +- **Data:** one-shot snapshot migrate per-user DO → Lunora shard (export existing outline → `restoreSnapshot`-class import, or Lunora-native seed). Owner `'default'` bridge continuity preserved via `userId` shard key (never email — ADR 0008). +- **Planners stay pure and shared** (`tree.ts` / sibling-chain / `outline-ops` lineage) so MCP, mutators, and any remaining client optimism cannot drift. + +## Considered options + +| Option | Why not | +| ---------------------------------------------------------------------------- | -------------------------------------------------------------------------- | +| Keep custom `{ops}` forever; only “look at” Lunora | Defeats the maintenance goal; ADR 0008 already named Lunora as convergent. | +| Dual-run in production indefinitely | Two engines, two failure modes; cutover forever deferred. | +| Big-bang rewrite in one commit | Editor + e2e + MCP + backups all break together; no incremental proof. | +| Replace Better Auth / Stripe / unfurl with Lunora primitives in the same cut | Out of scope — remount HTTP; don’t re-litigate identity/billing. | + +## Sequence (implementation order) + +1. Spike Phase 0–1 (done): prove mutators/shapes/watermark/bridge/`seedIfEmpty`. +2. ADR (this file) + lift shared planners toward one `src/` core consumed by Worker MCP and Lunora mutators. +3. Integrate Lunora into the main Vite/Worker app on this branch (compose Worker; keep non-outline routes). +4. Swap `nodesCollection` custom sync → `@lunora/db` shape collections; structural path → `bindMutators` (field edits stay direct-style mutators without structural batching). +5. Migrate kv side-collections; remount MCP onto mutators; snapshot-migrate user data; delete `UserOutlineDO` custom changelog sync. +6. Make all pre-existing tests pass; only then open the PR. From 02e69c9669aa131ae3dc4eb83599afc223f6b505 Mon Sep 17 00:00:00 2001 From: Cameron Pak Date: Thu, 23 Jul 2026 13:05:14 -0500 Subject: [PATCH 16/59] docs(adr): lock identity, e2e, and kv cutover choices in 0055 Co-authored-by: Cursor --- docs/adr/0055-lunora-replaces-custom-outline-sync.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/docs/adr/0055-lunora-replaces-custom-outline-sync.md b/docs/adr/0055-lunora-replaces-custom-outline-sync.md index 0dc8e737..2c0cf35b 100644 --- a/docs/adr/0055-lunora-replaces-custom-outline-sync.md +++ b/docs/adr/0055-lunora-replaces-custom-outline-sync.md @@ -22,6 +22,12 @@ Dotflowy’s hand-rolled per-user DO sync (`/api/sync` + client-planned `{ops}` | Big-bang rewrite in one commit | Editor + e2e + MCP + backups all break together; no incremental proof. | | Replace Better Auth / Stripe / unfurl with Lunora primitives in the same cut | Out of scope — remount HTTP; don’t re-litigate identity/billing. | +## Identity / e2e / kv (locked) + +- **Identity:** product Better Auth stays the session authority (MCP OAuth, Stripe, invite/Turnstile). Lunora `resolveIdentity` reads that session — do **not** run a second `@lunora/auth` signup stack in the main app. +- **e2e:** keep `seedOutline` (`/api/sync`+`/api/nodes`) until the collection swap; then replace with a Lunora-aware fixture (route-mock `/_lunora/*` first; real Miniflare only if the mock cannot prove watermark). Sync-contract specs that assert custom `seq` frames are rewritten, not preserved. +- **KV side-collections:** phase **2b** after nodes sync is on Lunora — do not block the collection swap on tag-colors/daily-index/saved-queries. + ## Sequence (implementation order) 1. Spike Phase 0–1 (done): prove mutators/shapes/watermark/bridge/`seedIfEmpty`. From d8d617d77be50c5822a42aa6ad0708ee5a6d47cf Mon Sep 17 00:00:00 2001 From: Cameron Pak Date: Thu, 23 Jul 2026 13:08:15 -0500 Subject: [PATCH 17/59] refactor(outline): lift shared Lunora planners into src/data/outline-plans Converge spike plan* / seed / map-node on Dotflowy Node + tree.ts helpers. Spike imports via @dotflowy/outline-plans Vite alias; bun + pnpm tests pass. Co-authored-by: Cursor --- spikes/lunora-outline/lunora/mutators.ts | 9 +- spikes/lunora-outline/src/outline/index.ts | 53 +++-- .../src/outline/lunora-bridge.test.ts | 116 ++++----- .../src/outline/lunora-bridge.ts | 15 +- .../src/outline/planners.test.ts | 224 ++++-------------- .../lunora-outline/src/outline/seed.test.ts | 117 +++------ .../src/outline/sibling-chain.ts | 52 ---- spikes/lunora-outline/src/outline/tree.ts | 72 ------ spikes/lunora-outline/tsconfig.app.json | 8 +- spikes/lunora-outline/vite.config.ts | 12 + spikes/lunora-outline/vitest.config.ts | 12 +- src/data/outline-plans/index.ts | 36 +++ .../data/outline-plans}/map-node.ts | 2 +- src/data/outline-plans/planners.test.ts | 184 ++++++++++++++ .../data/outline-plans}/planners.ts | 19 +- src/data/outline-plans/seed.test.ts | 99 ++++++++ .../data/outline-plans}/seed.ts | 14 +- .../data/outline-plans}/types.ts | 28 +-- 18 files changed, 548 insertions(+), 524 deletions(-) delete mode 100644 spikes/lunora-outline/src/outline/sibling-chain.ts delete mode 100644 spikes/lunora-outline/src/outline/tree.ts create mode 100644 src/data/outline-plans/index.ts rename {spikes/lunora-outline/src/outline => src/data/outline-plans}/map-node.ts (98%) create mode 100644 src/data/outline-plans/planners.test.ts rename {spikes/lunora-outline/src/outline => src/data/outline-plans}/planners.ts (92%) create mode 100644 src/data/outline-plans/seed.test.ts rename {spikes/lunora-outline/src/outline => src/data/outline-plans}/seed.ts (92%) rename {spikes/lunora-outline/src/outline => src/data/outline-plans}/types.ts (54%) diff --git a/spikes/lunora-outline/lunora/mutators.ts b/spikes/lunora-outline/lunora/mutators.ts index d2191388..e70bae50 100644 --- a/spikes/lunora-outline/lunora/mutators.ts +++ b/spikes/lunora-outline/lunora/mutators.ts @@ -1,7 +1,3 @@ -import { defineMutator, v } from "lunorash/server"; - -import type { Id } from "./_generated/dataModel.js"; - import { buildTreeIndex, docToNode, @@ -14,7 +10,10 @@ import { planSetText, type OutlineNode, type OutlinePlan, -} from "../src/outline/index.js"; +} from "@dotflowy/outline-plans"; +import { defineMutator, v } from "lunorash/server"; + +import type { Id } from "./_generated/dataModel.js"; /** Minimal mutator ctx — defineMutator's ServerContext is the base MutationCtx. */ type MutatorDb = { diff --git a/spikes/lunora-outline/src/outline/index.ts b/spikes/lunora-outline/src/outline/index.ts index 8d89effa..ee85f82f 100644 --- a/spikes/lunora-outline/src/outline/index.ts +++ b/spikes/lunora-outline/src/outline/index.ts @@ -1,35 +1,52 @@ -export type { OutlineNode, OutlinePlan, PlanPatch, NodeKind } from "./types.js"; -export { emptyPlan } from "./types.js"; -export { orderSiblings, chainDisagreements } from "./sibling-chain.js"; -export type { ChainDisagreement } from "./sibling-chain.js"; -export { buildTreeIndex, childrenOf, makeNode, parentKeyOf } from "./tree.js"; -export type { TreeIndex } from "./tree.js"; +/** + * Spike re-exports shared planners from repo `src/data/outline-plans/`. + * Bridge stays local (ADR 0004 handoff UI seam). + * + * Import path: Vite/vitest alias `@dotflowy/outline-plans` → + * `../../../src/data/outline-plans` (see vite.config.ts / vitest.config.ts). + */ + +export type { + OutlineNode, + OutlinePlan, + PlanPatch, + NodeKind, + NodeDocLike, + SeedIfEmptyArgs, + SeedIfEmptyFn, + TreeIndex, + ChainDisagreement, +} from "@dotflowy/outline-plans"; + export { + emptyPlan, + orderSiblings, + chainDisagreements, + buildTreeIndex, + childrenOf, + makeNode, + makeOutlineNode, + parentKeyOf, planInsertSibling, planIndent, planOutdent, planRemoveNode, planSetText, applyPlan, -} from "./planners.js"; -export { rowToNode, docToNode, nodeToDocFields, nodeToRow, nodeToInsertFields, -} from "./map-node.js"; -export type { NodeDocLike } from "./map-node.js"; -export { - rowsToOutlineNodes, - bridgeTreeIndex, - bridgeOrderedChildren, -} from "./lunora-bridge.js"; -export { DEMO_SEED_TEXTS, DEMO_SEED_IDS, shouldSeedOutline, planSeedIfEmpty, seedEmptyOutline, -} from "./seed.js"; -export type { SeedIfEmptyArgs, SeedIfEmptyFn } from "./seed.js"; +} from "@dotflowy/outline-plans"; + +export { + rowsToOutlineNodes, + bridgeTreeIndex, + bridgeOrderedChildren, +} from "./lunora-bridge.js"; diff --git a/spikes/lunora-outline/src/outline/lunora-bridge.test.ts b/spikes/lunora-outline/src/outline/lunora-bridge.test.ts index 8b2d34a5..695cb8eb 100644 --- a/spikes/lunora-outline/src/outline/lunora-bridge.test.ts +++ b/spikes/lunora-outline/src/outline/lunora-bridge.test.ts @@ -1,20 +1,21 @@ -import { describe, expect, it } from "vitest"; +import type { OutlineNode } from "@dotflowy/outline-plans"; -import type { OutlineNode } from "./types.js"; +import { + applyPlan, + buildTreeIndex, + makeOutlineNode, + nodeToDocFields, + planIndent, + planInsertSibling, + planRemoveNode, +} from "@dotflowy/outline-plans"; +import { describe, expect, it } from "vitest"; import { bridgeOrderedChildren, bridgeTreeIndex, rowsToOutlineNodes, } from "./lunora-bridge.js"; -import { nodeToDocFields } from "./map-node.js"; -import { - applyPlan, - planIndent, - planInsertSibling, - planRemoveNode, -} from "./planners.js"; -import { buildTreeIndex } from "./tree.js"; const USER = "user-bridge"; @@ -43,90 +44,71 @@ describe("lunora-bridge (ADR 0004 seam)", () => { }, ]; expect(rowsToOutlineNodes(rows)).toEqual([ - { + expect.objectContaining({ id: "a", text: "hello", userId: USER }), + ]); + }); + + it("bridge order matches planner apply (insert/indent/remove)", () => { + let nodes: OutlineNode[] = [ + makeOutlineNode({ id: "a", + userId: USER, parentId: null, prevSiblingId: null, - text: "hello", - isTask: false, - completed: false, - collapsed: false, - bookmarkedAt: null, - mirrorOf: null, + text: "a", + createdAt: 0, + updatedAt: 0, + }), + makeOutlineNode({ + id: "b", + userId: USER, + parentId: null, + prevSiblingId: "a", + text: "b", createdAt: 1, updatedAt: 1, - origin: null, - kind: null, - userId: USER, - }, - ]); - }); - - it("insert / indent / remove via planners → bridge order matches", () => { - let nodes: OutlineNode[] = []; - let t = 100; + }), + ]; - // Insert a, b, c at top level - for (const id of ["a", "b", "c"] as const) { + { const index = buildTreeIndex(nodes); - const afterId = nodes.length === 0 ? null : nodes[nodes.length - 1]!.id; const plan = planInsertSibling(index, { - id, + id: "c", userId: USER, parentId: null, - afterId, - text: id, - createdAt: t, - updatedAt: t, + afterId: "a", + text: "c", + createdAt: 2, + updatedAt: 2, }); expect(plan).not.toBeNull(); nodes = applyPlan(nodes, plan!); - t += 1; } - { - const bridged = bridgeTreeIndex(toRows(nodes)); - expect(bridgeOrderedChildren(bridged, null).map((n) => n.id)).toEqual([ - "a", - "b", - "c", - ]); - } - - // Indent c under b → a, b(c) { const index = buildTreeIndex(nodes); - const plan = planIndent(index, "c", t++); + const plan = planIndent(index, "c", 3); expect(plan).not.toBeNull(); nodes = applyPlan(nodes, plan!); } - { - const bridged = bridgeTreeIndex(toRows(nodes)); - expect(bridgeOrderedChildren(bridged, null).map((n) => n.id)).toEqual([ - "a", - "b", - ]); - expect(bridgeOrderedChildren(bridged, "b").map((n) => n.id)).toEqual([ - "c", - ]); - } + const bridged = bridgeTreeIndex(toRows(nodes)); + expect(bridgeOrderedChildren(bridged, null).map((n) => n.id)).toEqual([ + "a", + "b", + ]); + expect(bridgeOrderedChildren(bridged, "a").map((n) => n.id)).toEqual(["c"]); - // Remove b (and cascade semantics from planRemoveNode) { const index = buildTreeIndex(nodes); - const plan = planRemoveNode(index, "b", t++); + const plan = planRemoveNode(index, "a", 4); expect(plan).not.toBeNull(); nodes = applyPlan(nodes, plan!); } - { - const bridged = bridgeTreeIndex(toRows(nodes)); - const top = bridgeOrderedChildren(bridged, null).map((n) => n.id); - // planRemoveNode removes the subtree — expect only "a" - expect(top).toEqual(["a"]); - expect(bridged.byId.has("b")).toBe(false); - expect(bridged.byId.has("c")).toBe(false); - } + const afterRemove = bridgeTreeIndex(toRows(nodes)); + expect(bridgeOrderedChildren(afterRemove, null).map((n) => n.id)).toEqual([ + "b", + ]); }); }); diff --git a/spikes/lunora-outline/src/outline/lunora-bridge.ts b/spikes/lunora-outline/src/outline/lunora-bridge.ts index 595fb5ec..83d0ca7f 100644 --- a/spikes/lunora-outline/src/outline/lunora-bridge.ts +++ b/spikes/lunora-outline/src/outline/lunora-bridge.ts @@ -2,15 +2,16 @@ * ADR 0004 handoff seam — build Dotflowy-shaped `TreeIndex` / ordered children * from Lunora collection rows (`wholeOutline`). Feed `tree-store` later; do * **not** port OutlineEditor / virtualizer into this spike. - * - * Same spine as production `src/data/tree.ts` (`childrenByParent` id arrays + - * `byId`), minus mirrors/links/tagCorpus (not in spike schema yet). */ -import type { OutlineNode } from "./types.js"; +import type { OutlineNode, TreeIndex } from "@dotflowy/outline-plans"; -import { rowToNode, type NodeDocLike } from "./map-node.js"; -import { buildTreeIndex, childrenOf, type TreeIndex } from "./tree.js"; +import { + buildTreeIndex, + childrenOf, + rowToNode, + type NodeDocLike, +} from "@dotflowy/outline-plans"; /** Map collection / query rows → planner nodes. */ export function rowsToOutlineNodes(rows: Iterable): OutlineNode[] { @@ -29,5 +30,5 @@ export function bridgeOrderedChildren( index: TreeIndex, parentId: string | null, ): OutlineNode[] { - return childrenOf(index, parentId); + return childrenOf(index, parentId) as OutlineNode[]; } diff --git a/spikes/lunora-outline/src/outline/planners.test.ts b/spikes/lunora-outline/src/outline/planners.test.ts index 47949d86..ec102d73 100644 --- a/spikes/lunora-outline/src/outline/planners.test.ts +++ b/spikes/lunora-outline/src/outline/planners.test.ts @@ -1,192 +1,54 @@ -import { describe, expect, it } from "vitest"; - import { applyPlan, buildTreeIndex, - chainDisagreements, childrenOf, - makeNode, - orderSiblings, - planIndent, + makeOutlineNode, planInsertSibling, - planOutdent, - planRemoveNode, - planSetText, - type OutlineNode, -} from "./index.js"; - -const USER = "user-1"; - -function assertChainOk(nodes: OutlineNode[], parentId: string | null) { - const index = buildTreeIndex(nodes); - const kids = childrenOf(index, parentId); - const ordered = orderSiblings(kids); - expect(chainDisagreements(ordered)).toEqual([]); - return ordered.map((n) => n.id); -} - -function seedFlat(ids: string[]): OutlineNode[] { - return ids.map((id, i) => - makeNode({ - id, - userId: USER, - parentId: null, - prevSiblingId: i === 0 ? null : ids[i - 1]!, - text: id, - createdAt: i, - updatedAt: i, - }), - ); -} - -describe("sibling-chain invariant (ADR 0009)", () => { - it("orderSiblings follows prevSiblingId chain", () => { - const nodes = seedFlat(["a", "b", "c"]); - // Scramble arrival order — chain still recovers. - const scrambled = [nodes[2]!, nodes[0]!, nodes[1]!]; - expect(orderSiblings(scrambled).map((n) => n.id)).toEqual(["a", "b", "c"]); - }); - - it("chainDisagreements empty for a valid chain", () => { - const nodes = seedFlat(["a", "b", "c"]); - expect(chainDisagreements(orderSiblings(nodes))).toEqual([]); - }); - - it("rapid structural sequences leave chain intact", () => { - let nodes = seedFlat(["a", "b", "c"]); - let t = 100; - - // Insert d after b → a, b, d, c - { - const index = buildTreeIndex(nodes); - const plan = planInsertSibling(index, { - id: "d", - userId: USER, - parentId: null, - afterId: "b", - text: "d", - createdAt: t, - updatedAt: t, - }); - expect(plan).not.toBeNull(); - nodes = applyPlan(nodes, plan!); - t += 1; - } - expect(assertChainOk(nodes, null)).toEqual(["a", "b", "d", "c"]); - - // Indent d under b → a, b(d), c - { - const index = buildTreeIndex(nodes); - const plan = planIndent(index, "d", t++); - expect(plan).not.toBeNull(); - nodes = applyPlan(nodes, plan!); - } - expect(assertChainOk(nodes, null)).toEqual(["a", "b", "c"]); - expect(assertChainOk(nodes, "b")).toEqual(["d"]); +} from "@dotflowy/outline-plans"; +/** + * Spike keeps a thin vitest entry that re-runs shared planner tests via + * import. Canonical coverage lives in + * `src/data/outline-plans/planners.test.ts` (`bun run test`). + */ +import { describe, expect, it } from "vitest"; - // Insert e after a → a, e, b(d), c - { - const index = buildTreeIndex(nodes); - const plan = planInsertSibling(index, { - id: "e", - userId: USER, +describe("shared outline-plans (spike import smoke)", () => { + it("planInsertSibling mid-list via @dotflowy/outline-plans", () => { + const nodes = [ + makeOutlineNode({ + id: "a", + userId: "u", parentId: null, - afterId: "a", - text: "e", - createdAt: t, - updatedAt: t, - }); - expect(plan).not.toBeNull(); - nodes = applyPlan(nodes, plan!); - t += 1; - } - expect(assertChainOk(nodes, null)).toEqual(["a", "e", "b", "c"]); - - // Outdent d → a, e, b, d, c - { - const index = buildTreeIndex(nodes); - const plan = planOutdent(index, "d", t++); - expect(plan).not.toBeNull(); - nodes = applyPlan(nodes, plan!); - } - expect(assertChainOk(nodes, null)).toEqual(["a", "e", "b", "d", "c"]); - expect(assertChainOk(nodes, "b")).toEqual([]); - - // Remove e (cascade) → a, b, d, c - { - const index = buildTreeIndex(nodes); - const plan = planRemoveNode(index, "e", t++); - expect(plan).not.toBeNull(); - nodes = applyPlan(nodes, plan!); - } - expect(assertChainOk(nodes, null)).toEqual(["a", "b", "d", "c"]); - - // Insert nested child under b, then remove b (cascade deletes child) - { - const index = buildTreeIndex(nodes); - const plan = planInsertSibling(index, { - id: "b1", - userId: USER, - parentId: "b", - afterId: null, - text: "b1", - createdAt: t, - updatedAt: t, - }); - expect(plan).not.toBeNull(); - nodes = applyPlan(nodes, plan!); - t += 1; - } - expect(assertChainOk(nodes, "b")).toEqual(["b1"]); - - { - const index = buildTreeIndex(nodes); - const plan = planRemoveNode(index, "b", t++); - expect(plan).not.toBeNull(); - expect(plan!.deletes.sort()).toEqual(["b", "b1"].sort()); - nodes = applyPlan(nodes, plan!); - } - expect(assertChainOk(nodes, null)).toEqual(["a", "d", "c"]); - expect(nodes.find((n) => n.id === "b1")).toBeUndefined(); - - // setText is field-only — chain untouched - { - const index = buildTreeIndex(nodes); - const plan = planSetText(index, "a", "alpha", t++); - expect(plan).not.toBeNull(); - nodes = applyPlan(nodes, plan!); - } - expect(assertChainOk(nodes, null)).toEqual(["a", "d", "c"]); - expect(nodes.find((n) => n.id === "a")!.text).toBe("alpha"); - }); - - it("burst of mid-list inserts preserves totality", () => { - let nodes = seedFlat(["root"]); - let afterId: string | null = "root"; - let t = 1; - - for (let i = 0; i < 20; i++) { - const id = `n${i}`; - const index = buildTreeIndex(nodes); - const plan = planInsertSibling(index, { - id, - userId: USER, + prevSiblingId: null, + text: "a", + createdAt: 0, + updatedAt: 0, + }), + makeOutlineNode({ + id: "b", + userId: "u", parentId: null, - afterId, - text: id, - createdAt: t, - updatedAt: t, - }); - expect(plan).not.toBeNull(); - nodes = applyPlan(nodes, plan!); - afterId = id; - t += 1; - } - - const ordered = assertChainOk(nodes, null); - expect(ordered).toEqual([ - "root", - ...Array.from({ length: 20 }, (_, i) => `n${i}`), + prevSiblingId: "a", + text: "b", + createdAt: 1, + updatedAt: 1, + }), + ]; + const plan = planInsertSibling(buildTreeIndex(nodes), { + id: "x", + userId: "u", + parentId: null, + afterId: "a", + text: "x", + createdAt: 2, + updatedAt: 2, + }); + expect(plan).not.toBeNull(); + const next = applyPlan(nodes, plan!); + expect(childrenOf(buildTreeIndex(next), null).map((n) => n.id)).toEqual([ + "a", + "x", + "b", ]); }); }); diff --git a/spikes/lunora-outline/src/outline/seed.test.ts b/spikes/lunora-outline/src/outline/seed.test.ts index ced62777..a68ed935 100644 --- a/spikes/lunora-outline/src/outline/seed.test.ts +++ b/spikes/lunora-outline/src/outline/seed.test.ts @@ -1,99 +1,40 @@ -import { describe, expect, it } from "vitest"; - -import { applyPlan, buildTreeIndex, childrenOf } from "./index.js"; import { DEMO_SEED_IDS, - DEMO_SEED_TEXTS, planSeedIfEmpty, - seedEmptyOutline, shouldSeedOutline, -} from "./seed.js"; +} from "@dotflowy/outline-plans"; +import { describe, expect, it } from "vitest"; -describe("planSeedIfEmpty", () => { - it("shouldSeedOutline only when ready and empty", () => { - expect(shouldSeedOutline({ isReady: false, nodeCount: 0 })).toBe(false); - expect(shouldSeedOutline({ isReady: true, nodeCount: 1 })).toBe(false); +describe("shared seed planner (spike import smoke)", () => { + it("planSeedIfEmpty no-ops when non-empty", () => { expect(shouldSeedOutline({ isReady: true, nodeCount: 0 })).toBe(true); + expect( + planSeedIfEmpty( + [ + { + id: "x", + parentId: null, + prevSiblingId: null, + text: "x", + isTask: false, + completed: false, + collapsed: false, + bookmarkedAt: null, + mirrorOf: null, + createdAt: 1, + updatedAt: 1, + origin: null, + kind: null, + userId: "u", + }, + ], + { userId: "u", createdAt: 1 }, + ), + ).toBeNull(); }); - it("returns null when any nodes exist (idempotent no-op)", () => { - const plan = planSeedIfEmpty( - [ - { - id: "x", - parentId: null, - prevSiblingId: null, - text: "existing", - isTask: false, - completed: false, - collapsed: false, - bookmarkedAt: null, - mirrorOf: null, - createdAt: 1, - updatedAt: 1, - origin: null, - kind: null, - userId: "u1", - }, - ], - { userId: "u1", createdAt: 1000 }, - ); - expect(plan).toBeNull(); - }); - - it("inserts demo chain with deterministic ids + timestamps", () => { - const plan = planSeedIfEmpty([], { - userId: "u1", - createdAt: 1000, - texts: ["one", "two"], - ids: ["id-1", "id-2"], - }); - expect(plan).not.toBeNull(); - expect(plan!.inserts).toEqual([ - expect.objectContaining({ - id: "id-1", - userId: "u1", - parentId: null, - prevSiblingId: null, - text: "one", - createdAt: 1000, - updatedAt: 1000, - }), - expect.objectContaining({ - id: "id-2", - userId: "u1", - parentId: null, - prevSiblingId: "id-1", - text: "two", - createdAt: 1001, - updatedAt: 1001, - }), - ]); - expect(plan!.patches).toEqual([]); - expect(plan!.deletes).toEqual([]); - - const index = buildTreeIndex(applyPlan([], plan!)); - expect(childrenOf(index, null).map((n) => n.id)).toEqual(["id-1", "id-2"]); - }); - - it("default texts/ids cover the demo bullets", () => { - const plan = planSeedIfEmpty([], { userId: "u1", createdAt: 1 }); - expect(plan).not.toBeNull(); - expect(plan!.inserts.map((n) => n.text)).toEqual([...DEMO_SEED_TEXTS]); + it("uses DEMO_SEED_IDS by default", () => { + const plan = planSeedIfEmpty([], { userId: "u", createdAt: 1 }); expect(plan!.inserts.map((n) => n.id)).toEqual([...DEMO_SEED_IDS]); }); }); - -describe("seedEmptyOutline", () => { - it("calls seedIfEmpty once with userId + createdAt", async () => { - const calls: Array<{ userId: string; createdAt: number }> = []; - await seedEmptyOutline({ - userId: "u1", - now: () => 42, - seedIfEmpty: async (args) => { - calls.push(args); - }, - }); - expect(calls).toEqual([{ userId: "u1", createdAt: 42 }]); - }); -}); diff --git a/spikes/lunora-outline/src/outline/sibling-chain.ts b/spikes/lunora-outline/src/outline/sibling-chain.ts deleted file mode 100644 index 4e74deb0..00000000 --- a/spikes/lunora-outline/src/outline/sibling-chain.ts +++ /dev/null @@ -1,52 +0,0 @@ -import type { OutlineNode } from "./types.js"; - -/** - * Port of Dotflowy `src/data/sibling-chain.ts` — READ side of the sibling-chain - * invariant (ADR 0009). Order by following `prevSiblingId`; report disagreements. - */ - -export function orderSiblings(unordered: OutlineNode[]): OutlineNode[] { - if (unordered.length <= 1) return unordered; - - const byPrev = new Map(); - for (const n of unordered) byPrev.set(n.prevSiblingId, n); - - const ordered: OutlineNode[] = []; - const idsInChain = new Set(); - let cursor: string | null = null; - let guard = unordered.length + 1; - while (guard-- > 0) { - const next = byPrev.get(cursor); - if (!next) break; - ordered.push(next); - idsInChain.add(next.id); - cursor = next.id; - } - - for (const n of unordered) { - if (!idsInChain.has(n.id)) ordered.push(n); - } - - return ordered; -} - -export type ChainDisagreement = { - id: string; - expectedPrev: string | null; - actualPrev: string | null; -}; - -export function chainDisagreements( - ordered: OutlineNode[], -): ChainDisagreement[] { - const out: ChainDisagreement[] = []; - let prev: string | null = null; - for (const child of ordered) { - const actualPrev = child.prevSiblingId ?? null; - if (actualPrev !== prev) { - out.push({ id: child.id, expectedPrev: prev, actualPrev }); - } - prev = child.id; - } - return out; -} diff --git a/spikes/lunora-outline/src/outline/tree.ts b/spikes/lunora-outline/src/outline/tree.ts deleted file mode 100644 index 535b70b2..00000000 --- a/spikes/lunora-outline/src/outline/tree.ts +++ /dev/null @@ -1,72 +0,0 @@ -import type { OutlineNode } from "./types.js"; - -import { orderSiblings } from "./sibling-chain.js"; - -/** Synthetic parent key for top-level nodes (`parentId === null`). */ -const ROOT_PARENT = "__root__"; - -export type TreeIndex = { - childrenByParent: Map; - byId: Map; -}; - -export function parentKeyOf(node: OutlineNode): string { - return node.parentId ?? ROOT_PARENT; -} - -export function buildTreeIndex(nodes: OutlineNode[]): TreeIndex { - const byId = new Map(); - const unsorted = new Map(); - - for (const node of nodes) { - byId.set(node.id, node); - const key = parentKeyOf(node); - const list = unsorted.get(key); - if (list) list.push(node); - else unsorted.set(key, [node]); - } - - const childrenByParent = new Map(); - for (const [parentKey, list] of unsorted) { - childrenByParent.set( - parentKey, - orderSiblings(list).map((n) => n.id), - ); - } - - return { childrenByParent, byId }; -} - -export function childrenOf( - index: TreeIndex, - parentId: string | null, -): OutlineNode[] { - const ids = index.childrenByParent.get(parentId ?? ROOT_PARENT); - if (!ids) return []; - const out: OutlineNode[] = []; - for (const id of ids) { - const node = index.byId.get(id); - if (node) out.push(node); - } - return out; -} - -export function makeNode( - partial: Partial & Pick, -): OutlineNode { - return { - parentId: null, - prevSiblingId: null, - text: "", - isTask: false, - completed: false, - collapsed: false, - bookmarkedAt: null, - mirrorOf: null, - createdAt: 0, - updatedAt: 0, - origin: null, - kind: null, - ...partial, - }; -} diff --git a/spikes/lunora-outline/tsconfig.app.json b/spikes/lunora-outline/tsconfig.app.json index 6830b6f7..4cb35d36 100644 --- a/spikes/lunora-outline/tsconfig.app.json +++ b/spikes/lunora-outline/tsconfig.app.json @@ -20,7 +20,11 @@ "noUnusedLocals": true, "noUnusedParameters": true, "erasableSyntaxOnly": true, - "noFallthroughCasesInSwitch": true + "noFallthroughCasesInSwitch": true, + "paths": { + "@dotflowy/outline-plans": ["../../src/data/outline-plans/index.ts"], + "@dotflowy/outline-plans/*": ["../../src/data/outline-plans/*"] + } }, - "include": ["src"] + "include": ["src", "lunora"] } diff --git a/spikes/lunora-outline/vite.config.ts b/spikes/lunora-outline/vite.config.ts index 4a691e6e..776ccb17 100644 --- a/spikes/lunora-outline/vite.config.ts +++ b/spikes/lunora-outline/vite.config.ts @@ -1,8 +1,20 @@ import { lunora } from "@lunora/vite"; import react from "@vitejs/plugin-react"; +import path from "node:path"; +import { fileURLToPath } from "node:url"; import { defineConfig } from "vite"; +const spikeRoot = path.dirname(fileURLToPath(import.meta.url)); +const outlinePlans = path.resolve(spikeRoot, "../../src/data/outline-plans"); + // https://vite.dev/config/ export default defineConfig({ plugins: [lunora(), react()], + resolve: { + alias: { + // Shared planners live in the Dotflowy repo root (bun). Spike (pnpm) + // imports them via this alias — see HANDOFF + spike README. + "@dotflowy/outline-plans": outlinePlans, + }, + }, }); diff --git a/spikes/lunora-outline/vitest.config.ts b/spikes/lunora-outline/vitest.config.ts index 7c49eb73..81353632 100644 --- a/spikes/lunora-outline/vitest.config.ts +++ b/spikes/lunora-outline/vitest.config.ts @@ -1,7 +1,17 @@ +import path from "node:path"; +import { fileURLToPath } from "node:url"; import { defineConfig } from "vitest/config"; -// Pure planner tests — do NOT load vite.config.ts (lunora/Cloudflare plugin). +const spikeRoot = path.dirname(fileURLToPath(import.meta.url)); +const outlinePlans = path.resolve(spikeRoot, "../../src/data/outline-plans"); + +// Pure planner / bridge tests — do NOT load vite.config.ts (lunora/Cloudflare plugin). export default defineConfig({ + resolve: { + alias: { + "@dotflowy/outline-plans": outlinePlans, + }, + }, test: { include: ["src/**/*.test.ts"], environment: "node", diff --git a/src/data/outline-plans/index.ts b/src/data/outline-plans/index.ts new file mode 100644 index 00000000..d48bb161 --- /dev/null +++ b/src/data/outline-plans/index.ts @@ -0,0 +1,36 @@ +export type { OutlineNode, OutlinePlan, PlanPatch, NodeKind } from "./types"; +export { emptyPlan } from "./types"; + +export { orderSiblings, chainDisagreements } from "../sibling-chain"; +export type { ChainDisagreement } from "../sibling-chain"; + +export { buildTreeIndex, childrenOf, makeNode, parentKeyOf } from "../tree"; +export type { TreeIndex } from "../tree"; + +export { + makeOutlineNode, + planInsertSibling, + planIndent, + planOutdent, + planRemoveNode, + planSetText, + applyPlan, +} from "./planners"; + +export { + rowToNode, + docToNode, + nodeToDocFields, + nodeToRow, + nodeToInsertFields, +} from "./map-node"; +export type { NodeDocLike } from "./map-node"; + +export { + DEMO_SEED_TEXTS, + DEMO_SEED_IDS, + shouldSeedOutline, + planSeedIfEmpty, + seedEmptyOutline, +} from "./seed"; +export type { SeedIfEmptyArgs, SeedIfEmptyFn } from "./seed"; diff --git a/spikes/lunora-outline/src/outline/map-node.ts b/src/data/outline-plans/map-node.ts similarity index 98% rename from spikes/lunora-outline/src/outline/map-node.ts rename to src/data/outline-plans/map-node.ts index 5fef4695..ecd98b1b 100644 --- a/spikes/lunora-outline/src/outline/map-node.ts +++ b/src/data/outline-plans/map-node.ts @@ -1,4 +1,4 @@ -import type { OutlineNode } from "./types.js"; +import type { OutlineNode } from "./types"; /** * Loose Lunora / TanStack row shape. Codegen Doc types currently erase diff --git a/src/data/outline-plans/planners.test.ts b/src/data/outline-plans/planners.test.ts new file mode 100644 index 00000000..18b863e6 --- /dev/null +++ b/src/data/outline-plans/planners.test.ts @@ -0,0 +1,184 @@ +import { describe, expect, it } from "bun:test"; + +import { + applyPlan, + buildTreeIndex, + chainDisagreements, + childrenOf, + makeOutlineNode, + orderSiblings, + planIndent, + planInsertSibling, + planOutdent, + planRemoveNode, + planSetText, + type OutlineNode, +} from "./index"; + +const USER = "user-1"; + +function assertChainOk(nodes: OutlineNode[], parentId: string | null) { + const index = buildTreeIndex(nodes); + const kids = childrenOf(index, parentId); + const ordered = orderSiblings(kids); + expect(chainDisagreements(ordered)).toEqual([]); + return ordered.map((n) => n.id); +} + +function seedFlat(ids: string[]): OutlineNode[] { + return ids.map((id, i) => + makeOutlineNode({ + id, + userId: USER, + parentId: null, + prevSiblingId: i === 0 ? null : ids[i - 1]!, + text: id, + createdAt: i, + updatedAt: i, + }), + ); +} + +describe("sibling-chain invariant (ADR 0009) via outline-plans", () => { + it("orderSiblings follows prevSiblingId chain", () => { + const nodes = seedFlat(["a", "b", "c"]); + const scrambled = [nodes[2]!, nodes[0]!, nodes[1]!]; + expect(orderSiblings(scrambled).map((n) => n.id)).toEqual(["a", "b", "c"]); + }); + + it("chainDisagreements empty for a valid chain", () => { + const nodes = seedFlat(["a", "b", "c"]); + expect(chainDisagreements(orderSiblings(nodes))).toEqual([]); + }); + + it("rapid structural sequences leave chain intact", () => { + let nodes = seedFlat(["a", "b", "c"]); + let t = 100; + + { + const index = buildTreeIndex(nodes); + const plan = planInsertSibling(index, { + id: "d", + userId: USER, + parentId: null, + afterId: "b", + text: "d", + createdAt: t, + updatedAt: t, + }); + expect(plan).not.toBeNull(); + nodes = applyPlan(nodes, plan!); + t += 1; + } + expect(assertChainOk(nodes, null)).toEqual(["a", "b", "d", "c"]); + + { + const index = buildTreeIndex(nodes); + const plan = planIndent(index, "d", t++); + expect(plan).not.toBeNull(); + nodes = applyPlan(nodes, plan!); + } + expect(assertChainOk(nodes, null)).toEqual(["a", "b", "c"]); + expect(assertChainOk(nodes, "b")).toEqual(["d"]); + + { + const index = buildTreeIndex(nodes); + const plan = planInsertSibling(index, { + id: "e", + userId: USER, + parentId: null, + afterId: "a", + text: "e", + createdAt: t, + updatedAt: t, + }); + expect(plan).not.toBeNull(); + nodes = applyPlan(nodes, plan!); + t += 1; + } + expect(assertChainOk(nodes, null)).toEqual(["a", "e", "b", "c"]); + + { + const index = buildTreeIndex(nodes); + const plan = planOutdent(index, "d", t++); + expect(plan).not.toBeNull(); + nodes = applyPlan(nodes, plan!); + } + expect(assertChainOk(nodes, null)).toEqual(["a", "e", "b", "d", "c"]); + expect(assertChainOk(nodes, "b")).toEqual([]); + + { + const index = buildTreeIndex(nodes); + const plan = planRemoveNode(index, "e", t++); + expect(plan).not.toBeNull(); + nodes = applyPlan(nodes, plan!); + } + expect(assertChainOk(nodes, null)).toEqual(["a", "b", "d", "c"]); + + { + const index = buildTreeIndex(nodes); + const plan = planInsertSibling(index, { + id: "b1", + userId: USER, + parentId: "b", + afterId: null, + text: "b1", + createdAt: t, + updatedAt: t, + }); + expect(plan).not.toBeNull(); + nodes = applyPlan(nodes, plan!); + t += 1; + } + expect(assertChainOk(nodes, "b")).toEqual(["b1"]); + + { + const index = buildTreeIndex(nodes); + const plan = planRemoveNode(index, "b", t++); + expect(plan).not.toBeNull(); + expect(plan!.deletes.sort()).toEqual(["b", "b1"].sort()); + nodes = applyPlan(nodes, plan!); + } + expect(assertChainOk(nodes, null)).toEqual(["a", "d", "c"]); + expect(nodes.find((n) => n.id === "b1")).toBeUndefined(); + + { + const index = buildTreeIndex(nodes); + const plan = planSetText(index, "a", "alpha", t++); + expect(plan).not.toBeNull(); + nodes = applyPlan(nodes, plan!); + } + expect(assertChainOk(nodes, null)).toEqual(["a", "d", "c"]); + expect(nodes.find((n) => n.id === "a")!.text).toBe("alpha"); + }); + + it("burst of mid-list inserts preserves totality", () => { + let nodes = seedFlat(["root"]); + let afterId: string | null = "root"; + let t = 1; + + for (let i = 0; i < 20; i++) { + const id = `n${i}`; + const index = buildTreeIndex(nodes); + const plan = planInsertSibling(index, { + id, + userId: USER, + parentId: null, + afterId, + text: id, + createdAt: t, + updatedAt: t, + }); + expect(plan).not.toBeNull(); + nodes = applyPlan(nodes, plan!); + afterId = id; + t += 1; + } + + const ordered = assertChainOk(nodes, null); + expect(ordered).toEqual([ + "root", + ...Array.from({ length: 20 }, (_, i) => `n${i}`), + ]); + }); +}); diff --git a/spikes/lunora-outline/src/outline/planners.ts b/src/data/outline-plans/planners.ts similarity index 92% rename from spikes/lunora-outline/src/outline/planners.ts rename to src/data/outline-plans/planners.ts index 38eb367b..e192520e 100644 --- a/spikes/lunora-outline/src/outline/planners.ts +++ b/src/data/outline-plans/planners.ts @@ -1,7 +1,16 @@ -import type { OutlineNode, OutlinePlan } from "./types.js"; - -import { childrenOf, makeNode, type TreeIndex } from "./tree.js"; -import { emptyPlan } from "./types.js"; +import type { TreeIndex } from "../tree"; +import type { OutlineNode, OutlinePlan } from "./types"; + +import { childrenOf, makeNode } from "../tree"; +import { emptyPlan } from "./types"; + +/** Dotflowy `makeNode` + Lunora shard `userId`. */ +export function makeOutlineNode( + partial: Partial & Pick, +): OutlineNode { + const { userId, ...rest } = partial; + return { ...makeNode({ id: partial.id, ...rest }), userId }; +} /** * Mid-list insert: new node after `afterId` under `parentId`, repointing the @@ -36,7 +45,7 @@ export function planInsertSibling( const plan = emptyPlan(); plan.inserts.push( - makeNode({ + makeOutlineNode({ id: args.id, userId: args.userId, parentId: args.parentId, diff --git a/src/data/outline-plans/seed.test.ts b/src/data/outline-plans/seed.test.ts new file mode 100644 index 00000000..20e300bc --- /dev/null +++ b/src/data/outline-plans/seed.test.ts @@ -0,0 +1,99 @@ +import { describe, expect, it } from "bun:test"; + +import { applyPlan, buildTreeIndex, childrenOf } from "./index"; +import { + DEMO_SEED_IDS, + DEMO_SEED_TEXTS, + planSeedIfEmpty, + seedEmptyOutline, + shouldSeedOutline, +} from "./seed"; + +describe("planSeedIfEmpty", () => { + it("shouldSeedOutline only when ready and empty", () => { + expect(shouldSeedOutline({ isReady: false, nodeCount: 0 })).toBe(false); + expect(shouldSeedOutline({ isReady: true, nodeCount: 1 })).toBe(false); + expect(shouldSeedOutline({ isReady: true, nodeCount: 0 })).toBe(true); + }); + + it("returns null when any nodes exist (idempotent no-op)", () => { + const plan = planSeedIfEmpty( + [ + { + id: "x", + parentId: null, + prevSiblingId: null, + text: "existing", + isTask: false, + completed: false, + collapsed: false, + bookmarkedAt: null, + mirrorOf: null, + createdAt: 1, + updatedAt: 1, + origin: null, + kind: null, + userId: "u1", + }, + ], + { userId: "u1", createdAt: 1000 }, + ); + expect(plan).toBeNull(); + }); + + it("inserts demo chain with deterministic ids + timestamps", () => { + const plan = planSeedIfEmpty([], { + userId: "u1", + createdAt: 1000, + texts: ["one", "two"], + ids: ["id-1", "id-2"], + }); + expect(plan).not.toBeNull(); + expect(plan!.inserts).toEqual([ + expect.objectContaining({ + id: "id-1", + userId: "u1", + parentId: null, + prevSiblingId: null, + text: "one", + createdAt: 1000, + updatedAt: 1000, + }), + expect.objectContaining({ + id: "id-2", + userId: "u1", + parentId: null, + prevSiblingId: "id-1", + text: "two", + createdAt: 1001, + updatedAt: 1001, + }), + ]); + expect(plan!.patches).toEqual([]); + expect(plan!.deletes).toEqual([]); + + const index = buildTreeIndex(applyPlan([], plan!)); + expect(childrenOf(index, null).map((n) => n.id)).toEqual(["id-1", "id-2"]); + }); + + it("default texts/ids cover the demo bullets", () => { + const plan = planSeedIfEmpty([], { userId: "u1", createdAt: 1 }); + expect(plan).not.toBeNull(); + expect(plan!.inserts.map((n) => n.text)).toEqual([...DEMO_SEED_TEXTS]); + expect(plan!.inserts.map((n) => n.id)).toEqual([...DEMO_SEED_IDS]); + }); +}); + +describe("seedEmptyOutline", () => { + it("calls seedIfEmpty once with userId + createdAt", async () => { + const calls: Array<{ userId: string; createdAt: number }> = []; + await seedEmptyOutline({ + userId: "u1", + now: () => 42, + seedIfEmpty: async (args) => { + calls.push(args); + }, + }); + expect(calls).toEqual([{ userId: "u1", createdAt: 42 }]); + }); +}); diff --git a/spikes/lunora-outline/src/outline/seed.ts b/src/data/outline-plans/seed.ts similarity index 92% rename from spikes/lunora-outline/src/outline/seed.ts rename to src/data/outline-plans/seed.ts index 5aa2e379..3dc8cdfe 100644 --- a/spikes/lunora-outline/src/outline/seed.ts +++ b/src/data/outline-plans/seed.ts @@ -8,8 +8,10 @@ * overlays converge. */ -import { makeNode } from "./tree.js"; -import { emptyPlan, type OutlineNode, type OutlinePlan } from "./types.js"; +import type { OutlineNode, OutlinePlan } from "./types"; + +import { makeNode } from "../tree"; +import { emptyPlan } from "./types"; export const DEMO_SEED_TEXTS = [ "Welcome to the Lunora outline spike", @@ -65,17 +67,17 @@ export function planSeedIfEmpty( for (let i = 0; i < texts.length; i++) { const id = ids[i]!; const t = args.createdAt + i; - plan.inserts.push( - makeNode({ + plan.inserts.push({ + ...makeNode({ id, - userId: args.userId, parentId: null, prevSiblingId: prev, text: texts[i]!, createdAt: t, updatedAt: t, }), - ); + userId: args.userId, + }); prev = id; } return plan; diff --git a/spikes/lunora-outline/src/outline/types.ts b/src/data/outline-plans/types.ts similarity index 54% rename from spikes/lunora-outline/src/outline/types.ts rename to src/data/outline-plans/types.ts index 40481604..6c6ca16c 100644 --- a/spikes/lunora-outline/src/outline/types.ts +++ b/src/data/outline-plans/types.ts @@ -1,25 +1,15 @@ /** - * Pure outline node used by planners. `id` maps to Lunora `_id` at the - * mutator boundary via `clientId` on insert. + * Shared outline plan types for Lunora mutators + client optimism. + * Converges on Dotflowy `Node` (wire-schema / schema) — `userId` is the + * Lunora shard key only (not on the custom-DO `Node` wire type). */ -export type OutlineNode = { - id: string; - parentId: string | null; - prevSiblingId: string | null; - text: string; - isTask: boolean; - completed: boolean; - collapsed: boolean; - bookmarkedAt: number | null; - mirrorOf: string | null; - createdAt: number; - updatedAt: number; - origin: string | null; - kind: "paragraph" | null; - userId: string; -}; -export type NodeKind = "paragraph" | null; +import type { Node } from "../schema"; + +/** Planner node = Dotflowy Node + Lunora shard `userId`. */ +export type OutlineNode = Node & { userId: string }; + +export type NodeKind = Node["kind"]; export type PlanPatch = { id: string; From 6124e269c69000c5aac92c56bd1c5936f4ae1555 Mon Sep 17 00:00:00 2001 From: Cameron Pak Date: Thu, 23 Jul 2026 13:10:25 -0500 Subject: [PATCH 18/59] feat(worker): compose Lunora SHARD DO beside UserOutlineDO Add root lunora/ schema+mutators (shared outline-plans), route /_lunora to defineApp with product Better Auth identity bridge. No dual signup UX. Co-authored-by: Cursor --- .oxfmtrc.json | 4 +- .oxlintrc.json | 7 +- bun.lock | 534 ++++++++++++++++++- lunora/.lunora-schema.json | 98 ++++ lunora/_generated/api.ts | 14 + lunora/_generated/app.ts | 145 +++++ lunora/_generated/crons.ts | 28 + lunora/_generated/dataModel.ts | 212 ++++++++ lunora/_generated/drizzle.global.ts | 4 + lunora/_generated/drizzle.shard.ts | 35 ++ lunora/_generated/functions.ts | 122 +++++ lunora/_generated/openapi.json | 66 +++ lunora/_generated/openapi.ts | 69 +++ lunora/_generated/server.ts | 146 ++++++ lunora/_generated/shard.ts | 784 ++++++++++++++++++++++++++++ lunora/_generated/vectors.ts | 24 + lunora/mutators.ts | 187 +++++++ lunora/ratelimit/schema.ts | 49 ++ lunora/schema.ts | 29 + lunora/shapes.ts | 16 + package.json | 10 +- src/data/outline-plans/planners.ts | 4 +- vite.config.ts | 2 + worker/index.ts | 16 +- worker/lunora-app.ts | 47 ++ wrangler.jsonc | 13 +- 26 files changed, 2652 insertions(+), 13 deletions(-) create mode 100644 lunora/.lunora-schema.json create mode 100644 lunora/_generated/api.ts create mode 100644 lunora/_generated/app.ts create mode 100644 lunora/_generated/crons.ts create mode 100644 lunora/_generated/dataModel.ts create mode 100644 lunora/_generated/drizzle.global.ts create mode 100644 lunora/_generated/drizzle.shard.ts create mode 100644 lunora/_generated/functions.ts create mode 100644 lunora/_generated/openapi.json create mode 100644 lunora/_generated/openapi.ts create mode 100644 lunora/_generated/server.ts create mode 100644 lunora/_generated/shard.ts create mode 100644 lunora/_generated/vectors.ts create mode 100644 lunora/mutators.ts create mode 100644 lunora/ratelimit/schema.ts create mode 100644 lunora/schema.ts create mode 100644 lunora/shapes.ts create mode 100644 worker/lunora-app.ts diff --git a/.oxfmtrc.json b/.oxfmtrc.json index 001f99f2..036180bf 100644 --- a/.oxfmtrc.json +++ b/.oxfmtrc.json @@ -7,7 +7,9 @@ ".wrangler/**", "dist/**", "src/routeTree.gen.ts", - "landing/src/routeTree.gen.ts" + "landing/src/routeTree.gen.ts", + "lunora/_generated/**", + "spikes/**/lunora/_generated/**" ], "sortTailwindcss": { "stylesheet": "./src/styles.css", diff --git a/.oxlintrc.json b/.oxlintrc.json index 1a25f475..e760fde5 100644 --- a/.oxlintrc.json +++ b/.oxlintrc.json @@ -27,5 +27,10 @@ "env": { "builtin": true }, - "ignorePatterns": ["src/routeTree.gen.ts", "landing/src/routeTree.gen.ts"] + "ignorePatterns": [ + "src/routeTree.gen.ts", + "landing/src/routeTree.gen.ts", + "lunora/_generated/**", + "spikes/**/lunora/_generated/**" + ] } diff --git a/bun.lock b/bun.lock index ff6787f6..214bb342 100644 --- a/bun.lock +++ b/bun.lock @@ -11,6 +11,7 @@ "@fontsource-variable/geist": "^5.2.9", "@fontsource-variable/geist-mono": "^5.2.8", "@icons-pack/react-simple-icons": "^13.13.0", + "@lunora/ratelimit": "1.0.0-alpha.9", "@rgrove/parse-xml": "^4", "@sentry/cloudflare": "^10.65.0", "@sentry/react": "^10.65.0", @@ -31,6 +32,7 @@ "fuse.js": "^7.4.2", "grab-bcv": "^0.1.5", "lucide-react": "^1.21.0", + "lunorash": "1.0.0-alpha.98", "motion": "^12.42.0", "react": "^19.0.0", "react-dom": "^19.0.0", @@ -67,6 +69,14 @@ }, }, "packages": { + "@ai-sdk/gateway": ["@ai-sdk/gateway@4.0.23", "", { "dependencies": { "@ai-sdk/provider": "4.0.3", "@ai-sdk/provider-utils": "5.0.11", "@vercel/oidc": "3.2.0" }, "peerDependencies": { "zod": "^3.25.76 || ^4.1.8" } }, "sha512-f85diFdPMXYJpxCjOYZchMQkRH8h3r6lhK4Q2xmzJ7UA2OQ80L3W7tFu61742xGQK7zHWm5AhxYhNuc50H9SGQ=="], + + "@ai-sdk/provider": ["@ai-sdk/provider@4.0.3", "", { "dependencies": { "json-schema": "^0.4.0" } }, "sha512-e0CpNWJUY7OxAFAnCZkw+ri9QOHWwTs1tXP42782KFGCU07qt8NiXCrCVowyCB5dP2r5/Uls+g2oPd8kOJn9dw=="], + + "@ai-sdk/provider-utils": ["@ai-sdk/provider-utils@5.0.11", "", { "dependencies": { "@ai-sdk/provider": "4.0.3", "@standard-schema/spec": "^1.1.0", "@workflow/serde": "4.1.0", "eventsource-parser": "^3.0.8" }, "peerDependencies": { "zod": "^3.25.76 || ^4.1.8" } }, "sha512-7/96wE+ZsKB35iS9ASyllrE4Ym/EolXEB7AkuJ5FI++fmS85BVTAs77890C+1Z2jwHfBKjBQSBmsliOsAh0iFQ=="], + + "@antfu/install-pkg": ["@antfu/install-pkg@1.1.0", "", { "dependencies": { "package-manager-detector": "^1.3.0", "tinyexec": "^1.0.1" } }, "sha512-MGQsmw10ZyI+EJo45CdSER4zEb+p31LpDAFp2Z3gkSd1yqVZGi0Ebx++YTEMonJy4oChEMLsxZ64j8FH6sSqtQ=="], + "@apm-js-collab/code-transformer": ["@apm-js-collab/code-transformer@0.15.0", "", { "dependencies": { "@types/estree": "^1.0.8", "astring": "^1.9.0", "esquery": "^1.7.0", "meriyah": "^6.1.4", "semifies": "^1.0.0", "source-map": "^0.6.0" }, "bin": { "code-transformer": "cli.js" } }, "sha512-XmXYVs8CzJ1Aj79noVbn2weUO/XWtRyURpGqx7aU7DOXlUQhR0WKOQNF0okh7PCeY37vxf7kU3v57OAkEPm3ww=="], "@apm-js-collab/code-transformer-bundler-plugins": ["@apm-js-collab/code-transformer-bundler-plugins@0.5.0", "", { "dependencies": { "@apm-js-collab/code-transformer": "^0.15.0", "es-module-lexer": "^2.1.0", "magic-string": "^0.30.21", "module-details-from-path": "^1.0.4" } }, "sha512-YxLBY5nGlurL7QeJLq6e5g0ouBpAp0pwgyA/5rHXEXwhiPLn9ZHbT+Y2LlP90GT872cSocfjWRYu/fnpuBudNQ=="], @@ -131,6 +141,8 @@ "@babel/types": ["@babel/types@8.0.4", "", { "dependencies": { "@babel/helper-string-parser": "^8.0.0", "@babel/helper-validator-identifier": "^8.0.4" } }, "sha512-eY+Yn3dCqTGmyiq2QRU66lA5FL8lqqqvecHt0fF3uHONIa7ToYsaCiWV8lOKqAs0Rb2SjixiKFROngnulPtt2g=="], + "@balena/dockerignore": ["@balena/dockerignore@1.0.2", "", {}, "sha512-wMue2Sy4GAVTk6Ic4tJVcnfdau+gx2EnG7S+uAEe+TWJFqE4YoWN4/H8MSLj4eYJKxGg26lZwboEniNiNwZQ6Q=="], + "@base-ui/react": ["@base-ui/react@1.6.0", "", { "dependencies": { "@babel/runtime": "^7.29.2", "@base-ui/utils": "0.3.1", "@floating-ui/react-dom": "^2.1.8", "@floating-ui/utils": "^0.2.11", "use-sync-external-store": "^1.6.0" }, "peerDependencies": { "@date-fns/tz": "^1.2.0", "@types/react": "^17 || ^18 || ^19", "date-fns": "^4.0.0", "react": "^17 || ^18 || ^19", "react-dom": "^17 || ^18 || ^19" }, "optionalPeers": ["@date-fns/tz", "@types/react", "date-fns"] }, "sha512-/jzjTWJYXhRFO45Bev9lc3cHbmjzCMpUqbMZ2AgKy/z25mY9B6shGSNcXcjQar9n5doM0KYW1W8fcFv2jZBuMw=="], "@base-ui/utils": ["@base-ui/utils@0.3.1", "", { "dependencies": { "@babel/runtime": "^7.29.2", "@floating-ui/utils": "^0.2.11", "reselect": "^5.2.0", "use-sync-external-store": "^1.6.0" }, "peerDependencies": { "@types/react": "^17 || ^18 || ^19", "react": "^17 || ^18 || ^19", "react-dom": "^17 || ^18 || ^19" }, "optionalPeers": ["@types/react"] }, "sha512-gFFiltORVmW/N6IILTGxizP3PBpVpysqML1ALY5Vk0mH+7faVkCknOU31goYHN5Aoek2dkjxva1XOD2Ce9WuIg=="], @@ -155,6 +167,8 @@ "@better-fetch/fetch": ["@better-fetch/fetch@1.3.1", "", {}, "sha512-ABkD1WhyfPZprKRQI3bhATjeiFuNWC9PXhfGWqL+sg/gKrM977oFrYkdb4msM3hgUGonr7KlOsOFT5TU2rht9g=="], + "@bomb.sh/tab": ["@bomb.sh/tab@0.0.19", "", { "peerDependencies": { "cac": "^6.7.14", "citty": "^0.1.6 || ^0.2.0", "commander": "^13.1.0 || ^14.0.0 || ^15.0.0" }, "optionalPeers": ["cac", "citty", "commander"], "bin": { "tab": "dist/bin/cli.mjs" } }, "sha512-dTRfo9Q9B+lbLG3JCu8a/AGQSfD2XXcFcnakQzVjSOX+VvR/s9zpsH8TlqV3iHqazniRn1Ypwd1hcRlXcu/4BA=="], + "@changesets/apply-release-plan": ["@changesets/apply-release-plan@7.1.1", "", { "dependencies": { "@changesets/config": "^3.1.4", "@changesets/get-version-range-type": "^0.4.0", "@changesets/git": "^3.0.4", "@changesets/should-skip-package": "^0.1.2", "@changesets/types": "^6.1.0", "@manypkg/get-packages": "^1.1.3", "detect-indent": "^6.0.0", "fs-extra": "^7.0.1", "lodash.startcase": "^4.4.0", "outdent": "^0.5.0", "prettier": "^2.7.1", "resolve-from": "^5.0.0", "semver": "^7.5.3" } }, "sha512-9qPCm/rLx/xoOFXIHGB229+4GOL76S4MC+7tyOuTsR6+1jYlfFDQORdvwR5hDA6y4FL2BPt3qpbcQIS+dW85LA=="], "@changesets/assemble-release-plan": ["@changesets/assemble-release-plan@6.0.10", "", { "dependencies": { "@changesets/errors": "^0.2.0", "@changesets/get-dependents-graph": "^2.1.4", "@changesets/should-skip-package": "^0.1.2", "@changesets/types": "^6.1.0", "@manypkg/get-packages": "^1.1.3", "semver": "^7.5.3" } }, "sha512-rSDcqdJ9KbVyjpBIuCidhvZNIiVt1XaIYp73ycVQRIA5n/j6wQaEk0ChRLMUQ1vkxZe51PTQ9OIhbg6HQMW45A=="], @@ -269,6 +283,8 @@ "@esbuild/win32-x64": ["@esbuild/win32-x64@0.28.1", "", { "os": "win32", "cpu": "x64" }, "sha512-bm4Mowrv+GXMlpWX++EcXw/iLyd1o3+bJkC2DkWXYVvgZCqD/bSj9ctZeAMC3cIxgjRVR2Dufaiu4YPxr5gW1A=="], + "@faker-js/faker": ["@faker-js/faker@10.5.0", "", {}, "sha512-bsxD8WLS5lIj7aaoCx1YJkktqYj5vlBUE6HWzu2Q51ksrGJ0H737ECCKlFU7Yf8Br45z9t99frBp/J7kzbMPAg=="], + "@floating-ui/core": ["@floating-ui/core@1.7.5", "", { "dependencies": { "@floating-ui/utils": "^0.2.11" } }, "sha512-1Ih4WTWyw0+lKyFMcBHGbb5U5FtuHJuujoyyr5zTaWS5EYMeT6Jb2AuDeftsCsEuchO+mM2ij5+q9crhydzLhQ=="], "@floating-ui/dom": ["@floating-ui/dom@1.7.6", "", { "dependencies": { "@floating-ui/core": "^1.7.5", "@floating-ui/utils": "^0.2.11" } }, "sha512-9gZSAI5XM36880PPMm//9dfiEngYoC6Am2izES1FF406YFsjvyBMmeJ2g4SAju3xWwtuynNRFL2s9hgxpLI5SQ=="], @@ -281,6 +297,10 @@ "@fontsource-variable/geist-mono": ["@fontsource-variable/geist-mono@5.2.8", "", {}, "sha512-KI5bj+hkkRiHttYHmccotUZ80ZuZyai+RwI1d7UId0clkx/jXxlo8qYK8j54WzmpBjtMoEMPyllV7faDcj+6RA=="], + "@grpc/grpc-js": ["@grpc/grpc-js@1.14.4", "", { "dependencies": { "@grpc/proto-loader": "^0.8.0", "@js-sdsl/ordered-map": "^4.4.2" } }, "sha512-k9Dj3DV/itK9D06Y8f190Qgop7/Ui+D0njFV3LHMPwPT75DpXLQohE9Wmz0QElrJnzsjB7KPWiKJbOl7IPDArQ=="], + + "@grpc/proto-loader": ["@grpc/proto-loader@0.7.15", "", { "dependencies": { "lodash.camelcase": "^4.3.0", "long": "^5.0.0", "protobufjs": "^7.2.5", "yargs": "^17.7.2" }, "bin": { "proto-loader-gen-types": "build/bin/proto-loader-gen-types.js" } }, "sha512-tMXdRCfYVixjuFK+Hk0Q1s38gV9zDiDJfWL3h1rv4Qc39oILCu1TRTDt7+fGUI8K4G1Fj125Hx/ru3azECWTyQ=="], + "@hono/node-server": ["@hono/node-server@1.19.14", "", { "peerDependencies": { "hono": "^4" } }, "sha512-GwtvgtXxnWsucXvbQXkRgqksiH2Qed37H9xHZocE5sA3N8O8O8/8FA3uclQXxXVzc9XBZuEOMK7+r02FmSpHtw=="], "@icons-pack/react-simple-icons": ["@icons-pack/react-simple-icons@13.13.0", "", { "peerDependencies": { "react": "^16.13 || ^17 || ^18 || ^19" } }, "sha512-B5HhQMIpcSH4z8IZ8HFhD59CboHceKYMpPC9kAwGyKntvPdyJJv26DLu4Z1wAjcCLyrJhf11tMhiQGom9Rxb9g=="], @@ -347,6 +367,56 @@ "@jridgewell/trace-mapping": ["@jridgewell/trace-mapping@0.3.31", "", { "dependencies": { "@jridgewell/resolve-uri": "^3.1.0", "@jridgewell/sourcemap-codec": "^1.4.14" } }, "sha512-zzNR+SdQSDJzc8joaeP8QQoCQr8NuYx2dIIytl1QeBEZHJ9uW6hebsrYgbz8hJwUQao3TWCMtmfV8Nu1twOLAw=="], + "@js-sdsl/ordered-map": ["@js-sdsl/ordered-map@4.4.2", "", {}, "sha512-iUKgm52T8HOE/makSxjqoWhe95ZJA1/G1sYsGev2JDKUSS14KAgg1LHb+Ba+IPow0xflbnSkOsZcO08C7w1gYw=="], + + "@lunora/advisor": ["@lunora/advisor@1.0.0-alpha.33", "", { "dependencies": { "@lunora/errors": "1.0.0-alpha.7", "@lunora/server": "1.0.0-alpha.30" } }, "sha512-RkrNaxzUIAU06BWqIzTgWpE131aL9HKlxBqtJnsXddZtIrub/Ysps4xb7ddtv6LqPUbSrkq4IgvVtp2iIT2+IQ=="], + + "@lunora/agent": ["@lunora/agent@1.0.0-alpha.9", "", { "dependencies": { "@lunora/ai": "1.0.0-alpha.24", "@lunora/errors": "1.0.0-alpha.7", "@lunora/mail": "1.0.0-alpha.17", "@lunora/server": "1.0.0-alpha.30", "@lunora/values": "1.0.0-alpha.10", "@lunora/workflow": "1.0.0-alpha.12", "@modelcontextprotocol/sdk": "^1.29.0", "ai": "7.0.31" } }, "sha512-zEscfULS0fh5khpSsWHpcGEHWZpOCe5nhxhDLvvQLibZttJHYMKnNdwOV3uMIiZPliI1RKMjD0OtlzrnO+DDEQ=="], + + "@lunora/ai": ["@lunora/ai@1.0.0-alpha.24", "", { "dependencies": { "@lunora/errors": "1.0.0-alpha.7", "ai": "7.0.31", "workers-ai-provider": "3.3.1" }, "peerDependencies": { "@ai-sdk/anthropic": "4.0.16", "@ai-sdk/openai": "4.0.16" }, "optionalPeers": ["@ai-sdk/anthropic", "@ai-sdk/openai"] }, "sha512-2eNTvES3QcpKES6h6hUgyRRInz4a9uPh8gwSi2ghnaey9hNZq7P93NeYeQoNZFjiBqywTmyY04z1zkjC15UJCw=="], + + "@lunora/bindings": ["@lunora/bindings@1.0.0-alpha.10", "", { "dependencies": { "@lunora/errors": "1.0.0-alpha.7" } }, "sha512-KNZhIQ7WpB2AJT5NXnc7456XQPYGQsXj2NCpEzH3e/ltQurS+p6mAba3hekUAxSYSiTKF8MPsQIBJ40nGb6B+A=="], + + "@lunora/cli": ["@lunora/cli@1.0.0-alpha.97", "", { "dependencies": { "@bomb.sh/tab": "0.0.19", "@lunora/bindings": "1.0.0-alpha.10", "@lunora/codegen": "1.0.0-alpha.52", "@lunora/config": "1.0.0-alpha.78", "@lunora/container": "1.0.0-alpha.14", "@lunora/d1": "1.0.0-alpha.37", "@lunora/errors": "1.0.0-alpha.7", "@lunora/runtime": "1.0.0-alpha.35", "@lunora/seed": "1.0.0-alpha.29", "@visulima/cerebro": "3.0.0", "@visulima/error": "6.0.0", "@visulima/fs": "5.0.4", "@visulima/package": "5.0.4", "@visulima/pail": "4.0.0", "@visulima/path": "3.0.0", "@visulima/spinner": "1.0.0", "@visulima/tui": "1.0.4", "cfonts": "^3.3.1", "giget": "3.3.0", "jsonc-parser": "^3.3.1", "magic-string": "^1.0.0", "react": "^19.2.7", "react-reconciler": "^0.33.0", "ts-morph": "^28.0.0" }, "bin": { "lunora": "./dist/bin.mjs" } }, "sha512-CJuRYaoAdRnY76d+55SBQorHNSzGsYrUIukcTMW2YDmAFURDyVCD/tCG9lIB6worid4qC9iZ94v1KwG2Mvjfaw=="], + + "@lunora/client": ["@lunora/client@1.0.0-alpha.27", "", { "dependencies": { "@lunora/errors": "1.0.0-alpha.7", "@visulima/storage-client": "1.0.0" } }, "sha512-42Fi8R5KEw4fzYEJjgQs1aEhCgf/9h+d2UdgrSe1mxM1bNaW/ogJkccy6gk2ZKtlfR4XN3p38QDQWO/QPJNU9g=="], + + "@lunora/codegen": ["@lunora/codegen@1.0.0-alpha.52", "", { "dependencies": { "@lunora/advisor": "1.0.0-alpha.33", "@lunora/agent": "1.0.0-alpha.9", "@lunora/container": "1.0.0-alpha.14", "@lunora/errors": "1.0.0-alpha.7", "@lunora/queue": "1.0.0-alpha.9", "@lunora/scheduler": "1.0.0-alpha.11", "@lunora/values": "1.0.0-alpha.10", "@lunora/workflow": "1.0.0-alpha.12", "ts-morph": "^28.0.0" } }, "sha512-CtRkXDtn8BD1hZIaZFoqSRBLU4ieELXIp4yjdtoRcwkZ0NO0OgZHAzKdwzdkJ6CEu3DO0jw5GA+3C1E5cNp47w=="], + + "@lunora/config": ["@lunora/config@1.0.0-alpha.78", "", { "dependencies": { "@lunora/codegen": "1.0.0-alpha.52", "@lunora/container": "1.0.0-alpha.14", "@lunora/errors": "1.0.0-alpha.7", "@lunora/seed": "1.0.0-alpha.29", "@visulima/colorize": "2.0.0", "@visulima/find-ai-runner": "1.0.0", "dockerode": "^5.0.1", "es-module-lexer": "^2.3.1", "jsonc-parser": "^3.3.1", "ts-morph": "^28.0.0" }, "peerDependencies": { "@lunora/studio": ">=1.0.0-alpha.50 <2.0.0-0" }, "optionalPeers": ["@lunora/studio"] }, "sha512-O98w3XnEwAJEfTcpvhoeJjBY8hEHJcdZZYUjH10fcnsfcZeDS+7Na5tJ9xTkMeonV0VIBZLE23GGQMFZL5jKlQ=="], + + "@lunora/container": ["@lunora/container@1.0.0-alpha.14", "", { "dependencies": { "@lunora/errors": "1.0.0-alpha.7" } }, "sha512-NF2/jwn026x6pEzoizJdUi9pcwisgl+JKCkVAq+AKGjbmA9kED0McbOc6osnpUcaAojV9eygwCDdLQlWLrFl4w=="], + + "@lunora/d1": ["@lunora/d1@1.0.0-alpha.37", "", { "dependencies": { "@lunora/do": "1.0.0-alpha.41", "@lunora/errors": "1.0.0-alpha.7", "@lunora/sql-store": "1.0.0-alpha.38", "drizzle-orm": "^0.45.2" } }, "sha512-HxqNikMv/qVKquYMPVEtOWQOIxIwMa9lY6bGgSH8wUWio6yAHrXt9OLYJwTHN4v0lW12LpalnxpXZGrPpVLAaQ=="], + + "@lunora/do": ["@lunora/do@1.0.0-alpha.41", "", { "dependencies": { "@lunora/errors": "1.0.0-alpha.7", "@lunora/fingerprint": "1.0.0-alpha.3", "@visulima/redact": "3.0.0", "drizzle-orm": "^0.45.2" } }, "sha512-sC9vb1O034H0UpQmJBSmz4wqn5l+7EBb2kiILjSTQMQJB6U/mjdKKsx20tuVFpntKa6lXh1lj7n+vTZSY7IJXQ=="], + + "@lunora/errors": ["@lunora/errors@1.0.0-alpha.6", "", {}, "sha512-IBn86WYhsT2bZrwnDrp88aIn+GENPzr9qtjHsuwU3bcbNrjQoe1GKbMMCmPP6AVl6mAe3/6UqJhIE3Cw5r8MIA=="], + + "@lunora/fingerprint": ["@lunora/fingerprint@1.0.0-alpha.3", "", {}, "sha512-Yzn7jvDWPFEaWIwXXWYC0DPMvDkhX26vv2hdlGIqIyHLK3lATdfmjcQ3WSqn5PMBWzYN/6NKLjQ7MTP/OiDYpw=="], + + "@lunora/flags": ["@lunora/flags@1.0.0-alpha.15", "", { "dependencies": { "@lunora/errors": "1.0.0-alpha.7", "@openfeature/server-sdk": "^1.22.0" }, "peerDependencies": { "@cloudflare/flagship": "^0.4.2", "@openfeature/web-sdk": "^1.9.0" }, "optionalPeers": ["@cloudflare/flagship", "@openfeature/web-sdk"] }, "sha512-vdlS6WqWGjZCa+pVLasHORtO0iOUSTt0Njn/ch4HiDSbGpbipKoi/9h9n9h9D7wOsJXfLmY3nM7tbYBI0ZduOQ=="], + + "@lunora/mail": ["@lunora/mail@1.0.0-alpha.17", "", { "dependencies": { "@lunora/errors": "1.0.0-alpha.7", "@react-email/render": "2.1.0", "@visulima/email": "2.1.1", "postal-mime": "2.7.5" }, "peerDependencies": { "react": "^19.2.7" }, "optionalPeers": ["react"] }, "sha512-p8pSGzjp60LaD/nY5A4f6Q9yjL2KOAQfhqxGo78r9Cx0mnymSD6aQSCKLWliw7iYChJGzX/lYNWpEHqtrnZs8A=="], + + "@lunora/queue": ["@lunora/queue@1.0.0-alpha.9", "", { "dependencies": { "@lunora/errors": "1.0.0-alpha.6" } }, "sha512-1czZdLukS6ydRoL5ky+hjVp8/7npKVbIoui8+cizV1nTT4QEXVa9Q6iQC4N6NKSdUiyyvxLmAoWdHLnfxo4pbA=="], + + "@lunora/ratelimit": ["@lunora/ratelimit@1.0.0-alpha.9", "", { "dependencies": { "@lunora/errors": "1.0.0-alpha.6" } }, "sha512-QGoBK6PfaGbD2kkj/h1GHfDwHksFc3SOGvxb1Z1ySPi6x8wruOcAw3z2bYyztYiy0M5DBgBgQSjjdu2iV6mraQ=="], + + "@lunora/runtime": ["@lunora/runtime@1.0.0-alpha.35", "", { "dependencies": { "@lunora/bindings": "1.0.0-alpha.10", "@lunora/errors": "1.0.0-alpha.7" } }, "sha512-GOQ+yfLGuA1/zE/9c+HHF1CEJG5NlfATict0L25kz6krXJKwI+f047aUiEvuMAQw21qVUkinDkw8WJmPMz6Wgg=="], + + "@lunora/scheduler": ["@lunora/scheduler@1.0.0-alpha.11", "", { "dependencies": { "@lunora/errors": "1.0.0-alpha.6", "cron-parser": "5.6.2" } }, "sha512-WL69zUMEIBg20SgSYW33IHuulsI1RF+wG3NQPiT9VzWiL1aiO0phjmnRNO1k2rfM0ZdeGJ3Uq4chy5p1D3fAOw=="], + + "@lunora/seed": ["@lunora/seed@1.0.0-alpha.29", "", { "dependencies": { "@faker-js/faker": "^10.5.0", "@lunora/errors": "1.0.0-alpha.7" }, "peerDependencies": { "@lunora/server": ">=1.0.0-alpha.24 <2.0.0-0", "@lunora/values": ">=1.0.0-alpha.7 <2.0.0-0" } }, "sha512-wrlvkSLSSv0TW3z8EBcb16ZWzqC9fzIqhG4nuUhwe30L6tJxYpyDwtf5B2JWjBvpKvuWU/N9KKPicZg/Ssy2Gg=="], + + "@lunora/server": ["@lunora/server@1.0.0-alpha.30", "", { "dependencies": { "@lunora/errors": "1.0.0-alpha.7", "@lunora/scheduler": "1.0.0-alpha.11", "@lunora/values": "1.0.0-alpha.10", "drizzle-orm": "^0.45.2", "hono": "^4.12.30" } }, "sha512-PPmxINwxI9NCkMu1FEMczIehVRh9zj5H46bupj9gu3Q0k4sQy9/gb1+0aJP/W5WKo7kPpgzrqNrepqSllcgqMw=="], + + "@lunora/sql-store": ["@lunora/sql-store@1.0.0-alpha.38", "", { "dependencies": { "@lunora/do": "1.0.0-alpha.41", "@lunora/errors": "1.0.0-alpha.7", "drizzle-orm": "^0.45.2" } }, "sha512-Yo0taNzAE5ar6gV6vLxC1CnISCRvh6Zk+CPx7BMqtLL8KkumIeQrop9j5Jq2cRGc0mv1RjpyK32yDPWpaBAg9w=="], + + "@lunora/values": ["@lunora/values@1.0.0-alpha.10", "", { "dependencies": { "@lunora/errors": "1.0.0-alpha.7" } }, "sha512-kHY0iarVf5WqekBOkAmeiSnbb1bM9I0iIjmnmZflJXC40CgmATRni25bCpeX3MZASdiPEGaD7c1Al3oMpII5/g=="], + + "@lunora/workflow": ["@lunora/workflow@1.0.0-alpha.12", "", { "dependencies": { "@lunora/errors": "1.0.0-alpha.7", "@lunora/values": "1.0.0-alpha.10" } }, "sha512-mmV9YuKkpCBCdnf1vs+a8UIAUB8nsQbzNKjbPC5JV46uZGeMF7Cmo1wekXcscCKbeK1PoIvX52K6WrwZxObISA=="], + "@manypkg/find-root": ["@manypkg/find-root@1.1.0", "", { "dependencies": { "@babel/runtime": "^7.5.5", "@types/node": "^12.7.1", "find-up": "^4.1.0", "fs-extra": "^8.1.0" } }, "sha512-mki5uBvhHzO8kYYix/WRy2WX8S3B5wdVSc9D6KcU5lQNglP2yt58/VfLuAK49glRXChosY8ap2oJ1qgma3GUVA=="], "@manypkg/get-packages": ["@manypkg/get-packages@1.1.3", "", { "dependencies": { "@babel/runtime": "^7.5.5", "@changesets/types": "^4.0.1", "@manypkg/find-root": "^1.1.0", "fs-extra": "^8.1.0", "globby": "^11.0.0", "read-yaml-file": "^1.1.0" } }, "sha512-fo+QhuU3qE/2TQMQmbVMqaQ6EWbMhi4ABWP+O4AM1NqPBuy0OrApV5LO6BrrgnhtAHS2NH6RrVk9OL181tTi8A=="], @@ -385,6 +455,10 @@ "@oozcitak/util": ["@oozcitak/util@10.0.0", "", {}, "sha512-hAX0pT/73190NLqBPPWSdBVGtbY6VOhWYK3qqHqtXQ1gK7kS2yz4+ivsN07hpJ6I3aeMtKP6J6npsEKOAzuTLA=="], + "@openfeature/core": ["@openfeature/core@1.11.0", "", {}, "sha512-P0u3/ht/oZCQT89fOed+laLk0kZR529a825cS02uPDglxXbE97irWYpDAeRGGVETIzKfuy+H2g8c3Ccv/tXJNQ=="], + + "@openfeature/server-sdk": ["@openfeature/server-sdk@1.22.0", "", { "peerDependencies": { "@openfeature/core": "^1.11.0" } }, "sha512-YBrf6SQkn0FNB/dRAtLEs41dvFMUE8CrQTwI+iLaMFUIqWlqGNJfGnulKSneEKS+2OgKTAC6DdmKcZ6tK7kBcg=="], + "@opentelemetry/api": ["@opentelemetry/api@1.9.1", "", {}, "sha512-gLyJlPHPZYdAk1JENA9LeHejZe1Ti77/pTeFm/nMXmQH/HFZlcS/O2XJB+L8fkbrNSqhdtlvjBVjxwUYanNH5Q=="], "@opentelemetry/api-logs": ["@opentelemetry/api-logs@0.220.0", "", { "dependencies": { "@opentelemetry/api": "^1.3.0" } }, "sha512-CmVa4ImJ+ynfrPMNaAXHET6Bhb44SwzmfyVJFq9ni2jgXJR/l7C6gfVFddNmHP+ZOkP9cf4f9DBe68qVLTHc9w=="], @@ -487,6 +561,24 @@ "@poppinss/exception": ["@poppinss/exception@1.2.3", "", {}, "sha512-dCED+QRChTVatE9ibtoaxc+WkdzOSjYTKi/+uacHWIsfodVfpsueo3+DKpgU5Px8qXjgmXkSvhXvSCz3fnP9lw=="], + "@protobufjs/aspromise": ["@protobufjs/aspromise@1.1.2", "", {}, "sha512-j+gKExEuLmKwvz3OgROXtrJ2UG2x8Ch2YZUxahh+s1F2HZ+wAceUNLkvy6zKCPVRkU++ZWQrdxsUeQXmcg4uoQ=="], + + "@protobufjs/base64": ["@protobufjs/base64@1.1.2", "", {}, "sha512-AZkcAA5vnN/v4PDqKyMR5lx7hZttPDgClv83E//FMNhR2TMcLUhfRUBHCmSl0oi9zMgDDqRUJkSxO3wm85+XLg=="], + + "@protobufjs/codegen": ["@protobufjs/codegen@2.0.5", "", {}, "sha512-zgXFLzW3Ap33e6d0Wlj4MGIm6Ce8O89n/apUaGNB/jx+hw+ruWEp7EwGUshdLKVRCxZW12fp9r40E1mQrf/34g=="], + + "@protobufjs/eventemitter": ["@protobufjs/eventemitter@1.1.1", "", {}, "sha512-vW1GmwMZNnL+gMRaovlh9yZX74kc+TTU3FObkkurpMaRtBfLP3ldjS9KQWlwZgraRE0+dheEEoAxdzcJQ8eXZg=="], + + "@protobufjs/fetch": ["@protobufjs/fetch@1.1.1", "", { "dependencies": { "@protobufjs/aspromise": "^1.1.1" } }, "sha512-GpptLrs57adMSuHi3VNj0mAF8dwh36LMaYF6XyJ6JMWlVsc+t42tm1HSEDmOs3A8fC9yyeisgLhsTVQokOZ0zw=="], + + "@protobufjs/float": ["@protobufjs/float@1.0.2", "", {}, "sha512-Ddb+kVXlXst9d+R9PfTIxh1EdNkgoRe5tOX6t01f1lYWOvJnSPDBlG241QLzcyPdoNTsblLUdujGSE4RzrTZGQ=="], + + "@protobufjs/path": ["@protobufjs/path@1.1.2", "", {}, "sha512-6JOcJ5Tm08dOHAbdR3GrvP+yUUfkjG5ePsHYczMFLq3ZmMkAD98cDgcT2iA1lJ9NVwFd4tH/iSSoe44YWkltEA=="], + + "@protobufjs/pool": ["@protobufjs/pool@1.1.0", "", {}, "sha512-0kELaGSIDBKvcgS4zkjz1PeddatrjYcmMWOlAuAPwAeccUrPHdUqo/J6LiymHHEiJT5NrF1UVwxY14f+fy4WQw=="], + + "@protobufjs/utf8": ["@protobufjs/utf8@1.1.2", "", {}, "sha512-b1UQwcEZ4yCnMCD8DAL1VlbvBJE9/IX4FTIp7BG1xYpf29SLazLSrqUkj4w7Y5y7cCVP6E5tcqqcI0xemPkHug=="], + "@radix-ui/primitive": ["@radix-ui/primitive@1.1.5", "", {}, "sha512-d86WIWFYNtGA0H/d8exstrTRTp7eWJYlYJbtNofxr/3ljupZYn6EFDG/Qgu/0Kc8v7yMUxySagqJsL1+PdYjWg=="], "@radix-ui/react-compose-refs": ["@radix-ui/react-compose-refs@1.1.3", "", { "peerDependencies": { "@types/react": "*", "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react"] }, "sha512-rYOP8OMnuuPMQF1uhPVlGNcCDlkokKqGFE3JcxFViIkAXP7EvFWUliJAstrapypaBLJNHbZL6jGhbVDGTwmVhA=="], @@ -519,6 +611,8 @@ "@radix-ui/react-use-layout-effect": ["@radix-ui/react-use-layout-effect@1.1.2", "", { "peerDependencies": { "@types/react": "*", "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react"] }, "sha512-jrBWOxZITuGcnjRCM2t2U5ZPkCLxD+Ym6DjfssS5haTj2iiak/DOb64JeN6OdLfLgptb6/e2kKR+ZuTrGoZTPA=="], + "@react-email/render": ["@react-email/render@2.1.0", "", { "dependencies": { "entities": "^4.5.0", "html-to-text": "^9.0.5", "html5parser": "^3.0.0", "prettier": "^3.5.3" }, "peerDependencies": { "react": "^18.0 || ^19.0 || ^19.0.0-rc", "react-dom": "^18.0 || ^19.0 || ^19.0.0-rc" } }, "sha512-F+zE3O6d6sW6Aj2UjvZAA17R7tJKM7kcq2mgV6k4HCT8jeLLFaVP2txMtH1lgqYFRMZ0Gxsd37q2PRyiXLXXxA=="], + "@rgrove/parse-xml": ["@rgrove/parse-xml@4.2.1", "", {}, "sha512-ZOkOIicFSf5qXbC+8ps5hA+nEhCxsUDpm2U1xp1BACoUZyMkGXEQjsWLD30K77r1fzOTaqEZS85++fmzwCIOJQ=="], "@rolldown/binding-android-arm64": ["@rolldown/binding-android-arm64@1.1.5", "", { "os": "android", "cpu": "arm64" }, "sha512-lZg8fqIv2v7FF237bwMgzGZEJvGL79/s5knJ/i6FmsGF4XXlzccZ4jb+TrFIxtSSxFtIpdsgrPZeMk1I9AFcyQ=="], @@ -557,6 +651,8 @@ "@sec-ant/readable-stream": ["@sec-ant/readable-stream@0.4.1", "", {}, "sha512-831qok9r2t8AlxLko40y2ebgSDhenenCatLVeW/uBtnHPyhHOvG0C7TvfgecV+wHzIm5KUICgzmVpWS+IMEAeg=="], + "@selderee/plugin-htmlparser2": ["@selderee/plugin-htmlparser2@0.11.0", "", { "dependencies": { "domhandler": "^5.0.3", "selderee": "^0.11.0" } }, "sha512-P33hHGdldxGabLFjPPpaTxVolMrzrcegejx+0GxjrIb9Zv48D8yAIA/QTDR2dFl7Uz7urX8aX6+5bCZslr+gWQ=="], + "@sentry/browser": ["@sentry/browser@10.65.0", "", { "dependencies": { "@sentry/browser-utils": "10.65.0", "@sentry/conventions": "^0.15.1", "@sentry/core": "10.65.0", "@sentry/feedback": "10.65.0", "@sentry/replay": "10.65.0", "@sentry/replay-canvas": "10.65.0" } }, "sha512-XUDDsx0qxzeIlcOu1fDEqTcDl0eiOqghsgV+ReuuNP4jYjZ9kUQxE3rXWM5mlT1pBi4VaQ4FHqvQZZrRXy+oDw=="], "@sentry/browser-utils": ["@sentry/browser-utils@10.65.0", "", { "dependencies": { "@sentry/conventions": "^0.15.1", "@sentry/core": "10.65.0" } }, "sha512-4J0mkfNJAGUOkpg1ZggizyftFTn9N20b+Jl87UnWsDUkNG0Ic1l/FIzMPTVxXrAnhBGu0ULO0TFWMoQ5s3QtZw=="], @@ -613,6 +709,8 @@ "@standard-schema/spec": ["@standard-schema/spec@1.1.0", "", {}, "sha512-l2aFy5jALhniG5HgqrD6jXLi/rUWrKvqN/qJx6yoJsgKhblVd+iqqU4RCXavm/jPityDo5TCvKMnpjKnOriy0w=="], + "@sveltejs/acorn-typescript": ["@sveltejs/acorn-typescript@1.0.11", "", { "peerDependencies": { "acorn": "^8.9.0" } }, "sha512-LFuZUkjJ9iF7JZye/aG5XM0SFcQ5VyL0oVX4WJ9dc0Va3R3s0OauX1BESVCb+YN/ol8TAfqGDDAQsTG627Y5kw=="], + "@tailwindcss/node": ["@tailwindcss/node@4.3.2", "", { "dependencies": { "@jridgewell/remapping": "^2.3.5", "enhanced-resolve": "5.21.6", "jiti": "^2.7.0", "lightningcss": "1.32.0", "magic-string": "^0.30.21", "source-map-js": "^1.2.1", "tailwindcss": "4.3.2" } }, "sha512-yWP/sqEcBLaD8JuA6zNwxoYKr75qxTioYwlRwekj5Jr/I5GXnoJfjetH/psLUIv74cYTH2lBUEzBkinthoYcBg=="], "@tailwindcss/oxide": ["@tailwindcss/oxide@4.3.2", "", { "optionalDependencies": { "@tailwindcss/oxide-android-arm64": "4.3.2", "@tailwindcss/oxide-darwin-arm64": "4.3.2", "@tailwindcss/oxide-darwin-x64": "4.3.2", "@tailwindcss/oxide-freebsd-x64": "4.3.2", "@tailwindcss/oxide-linux-arm-gnueabihf": "4.3.2", "@tailwindcss/oxide-linux-arm64-gnu": "4.3.2", "@tailwindcss/oxide-linux-arm64-musl": "4.3.2", "@tailwindcss/oxide-linux-x64-gnu": "4.3.2", "@tailwindcss/oxide-linux-x64-musl": "4.3.2", "@tailwindcss/oxide-wasm32-wasi": "4.3.2", "@tailwindcss/oxide-win32-arm64-msvc": "4.3.2", "@tailwindcss/oxide-win32-x64-msvc": "4.3.2" } }, "sha512-z8ZgnzX8gdNoWLBLqBPoh/sjnxkwvf9ZuWjnO0l0yIzbLa5/9S+eC5QxGZKRobVHIC3/1BoMWjHblqWjcgFgag=="], @@ -651,6 +749,8 @@ "@tanstack/hotkeys": ["@tanstack/hotkeys@0.8.0", "", { "dependencies": { "@tanstack/store": "^0.11.0" } }, "sha512-vqH7X9nb0MTJ/O08++dB5bP9jgj4+BIPOUu/U+6myG86lDsirZSVSobpq5UQpE7nBuk62i8eIYeOhd+OMl/UrA=="], + "@tanstack/match-sorter-utils": ["@tanstack/match-sorter-utils@8.19.4", "", { "dependencies": { "remove-accents": "0.5.0" } }, "sha512-Wo1iKt2b9OT7d+YGhvEPD3DXvPv2etTusIMhMUoG7fbhmxcXCtIjJDEygy91Y2JFlwGyjqiBPRozme7UD8hoqg=="], + "@tanstack/pacer-lite": ["@tanstack/pacer-lite@0.2.2", "", {}, "sha512-eQ1MyLKCHyXiH7NbdmB80W77OhiMgGBUb+qDx/8WMGbwg5Lf/NlfD0TfNYAqY77i8V3AxoDoYdICrQE5ADw4Yw=="], "@tanstack/query-core": ["@tanstack/query-core@5.101.2", "", {}, "sha512-hH5MLoJhF7KaIGd7q3xTXGXvslI+GYlM1Z/35aSHHWaCJWB7XvTSHYuV3eM7tw+aE0mT/xMro4M4Q9rCGHT0lw=="], @@ -661,6 +761,8 @@ "@tanstack/react-hotkeys": ["@tanstack/react-hotkeys@0.10.0", "", { "dependencies": { "@tanstack/hotkeys": "0.8.0", "@tanstack/react-store": "^0.11.0" }, "peerDependencies": { "react": ">=16.8", "react-dom": ">=16.8" } }, "sha512-GwOSndI5j3qBVYTmgP1mYyRTnlxb2MS17cwGlsavSxMQPSnmDf+m3LzMIpRMs+3zzQMjg3cYhHsFYizYlFI2tw=="], + "@tanstack/react-query": ["@tanstack/react-query@5.101.4", "", { "dependencies": { "@tanstack/query-core": "5.101.4" }, "peerDependencies": { "react": "^18 || ^19" } }, "sha512-yRg2pfOCxIs4ZJW3XYYHU/WgtD04FHSnfHlpRT7h7pR77hwkdRG4wxbKe4aq6P0RvXUTBSQpQeadS1SUYUe+KA=="], + "@tanstack/react-router": ["@tanstack/react-router@1.170.17", "", { "dependencies": { "@tanstack/history": "1.162.0", "@tanstack/react-store": "^0.9.3", "@tanstack/router-core": "1.171.14", "isbot": "^5.1.22" }, "peerDependencies": { "react": ">=18.0.0 || >=19.0.0", "react-dom": ">=18.0.0 || >=19.0.0" } }, "sha512-ppLkjCfSMaeug9rmFRYzOd4TIqWV+yTE7tzIny7alJsSnM7w4lzEZm6eqCehG0SPetpZ0R3K+UnanSmBgOAVcQ=="], "@tanstack/react-start": ["@tanstack/react-start@1.168.27", "", { "dependencies": { "@tanstack/react-router": "1.170.17", "@tanstack/react-start-client": "1.168.15", "@tanstack/react-start-rsc": "0.1.26", "@tanstack/react-start-server": "1.167.21", "@tanstack/router-utils": "1.162.2", "@tanstack/start-client-core": "1.170.13", "@tanstack/start-plugin-core": "1.171.19", "@tanstack/start-server-core": "1.169.16", "pathe": "^2.0.3" }, "peerDependencies": { "@rsbuild/core": "^2.0.0", "@vitejs/plugin-rsc": "*", "react": ">=18.0.0 || >=19.0.0", "react-dom": ">=18.0.0 || >=19.0.0", "vite": ">=7.0.0" }, "optionalPeers": ["@rsbuild/core", "@vitejs/plugin-rsc", "vite"] }, "sha512-rdGFDqfCW71gyofyAxaYxhelNKmeVjpmbpm0uFYbNHORCa///4aBxi7B7ecShibKv9O4GfJ66MPX5F0ozbm+ig=="], @@ -683,6 +785,8 @@ "@tanstack/router-utils": ["@tanstack/router-utils@1.162.2", "", { "dependencies": { "@babel/generator": "^7.28.5", "@babel/parser": "^7.28.5", "@babel/types": "^7.28.5", "ansis": "^4.1.0", "babel-dead-code-elimination": "^1.0.12", "diff": "^8.0.2", "pathe": "^2.0.3", "tinyglobby": "^0.2.15" } }, "sha512-hTWqJtqIFFdvuCl8WXNyrodp2L9zo2G37xKRrcVmVRWpAB2h+U1LuRAfS4tsFTiWOIoE/B+WDVFB8JpoEdw6jQ=="], + "@tanstack/solid-query": ["@tanstack/solid-query@5.101.4", "", { "dependencies": { "@tanstack/query-core": "5.101.4" }, "peerDependencies": { "solid-js": "^1.6.0" } }, "sha512-w+QNX4al4zkfOfO6FYILouPX3yAxLANvBNz0cZqaBrSRKfBP3qNC179wu/eS2w1asH+QqEeI0rR2/s7gRGxnFA=="], + "@tanstack/start-client-core": ["@tanstack/start-client-core@1.170.13", "", { "dependencies": { "@tanstack/router-core": "1.171.14", "@tanstack/start-fn-stubs": "1.162.0", "@tanstack/start-storage-context": "1.167.16", "seroval": "^1.5.4" } }, "sha512-o37M3msIK5ec87kPrIYJWXb1XPnjIe5/jrkGLXiXpFuVL99z7mhoBCzftKtVPtzqI8EElnRE/VGFYT9BHNnWcw=="], "@tanstack/start-fn-stubs": ["@tanstack/start-fn-stubs@1.162.0", "", {}, "sha512-QWfUZ3Yo923tdQn38LyKMU8rcTw69zc+T4dAvgTWV4O56SqFRsGfS0lSWIMhJRwXIx/bvdi7nTUBDdZtTHtpTQ=="], @@ -695,10 +799,14 @@ "@tanstack/store": ["@tanstack/store@0.11.0", "", {}, "sha512-WlzzCt3xi0G6pCAJu1U+2jiECwabETDpQDi3hfkFZvJii9AuZqEKbOiVarX1/bWhTNjU486yQtJCCasi/0q+Cw=="], + "@tanstack/svelte-query": ["@tanstack/svelte-query@6.1.38", "", { "dependencies": { "@tanstack/query-core": "5.101.4" }, "peerDependencies": { "svelte": "^5.25.0" } }, "sha512-oV5S/+uAot23p3lJChLAHr82+8ApgQMyIgroWPpN0d6Y6TlThRbLSXnhx6CoUk6AkwlCPxf9vh4SOHa0eXHiWg=="], + "@tanstack/virtual-core": ["@tanstack/virtual-core@3.17.3", "", {}, "sha512-8Np/TFELpI0ySuJoVmjvOrQYXH/8sTX0Biv9szhFhY39xOdAAY+smrMxjxOum/ux3eM8MUJQsEJ0/R0UpvC8dw=="], "@tanstack/virtual-file-routes": ["@tanstack/virtual-file-routes@1.162.0", "", {}, "sha512-uhOeFyxLcU41HzvrxsGpiWdcMbScY1EDgbZ5K7DVRMYInbLYWAC0EA/kx9wXAoSM8q82bUG2hRl8+EAjE6XAbA=="], + "@tanstack/vue-query": ["@tanstack/vue-query@5.101.4", "", { "dependencies": { "@tanstack/match-sorter-utils": "^8.19.4", "@tanstack/query-core": "5.101.4", "@vue/devtools-api": "^6.6.3", "vue-demi": "^0.14.10" }, "peerDependencies": { "@vue/composition-api": "^1.1.2", "vue": "^2.6.0 || ^3.3.0" }, "optionalPeers": ["@vue/composition-api"] }, "sha512-UYjkUZhnWQIFGNb7SdgjCitAftNyYQfOIVUh6vBUQAG4SQKNMSBKeQERFDubpxLAMpIBJTaOrE8fM4c1kZcIGQ=="], + "@ts-morph/common": ["@ts-morph/common@0.27.0", "", { "dependencies": { "fast-glob": "^3.3.3", "minimatch": "^10.0.1", "path-browserify": "^1.0.1" } }, "sha512-Wf29UqxWDpc+i61k3oIOzcUfQt79PIT9y/MWfAGlrkjg6lBC1hwDECLXPVJAhWjiGbfBCxZd65F/LIZF3+jeJQ=="], "@tybys/wasm-util": ["@tybys/wasm-util@0.10.3", "", { "dependencies": { "tslib": "^2.4.0" } }, "sha512-F3fo1MYrRJYL3zER0OUOmkutjr1Vp23m7OsSgp7nq4SP6OqX6C/56XFIPAl5bt3zaBRjmW7SGz3u/6LwFpYcOg=="], @@ -725,6 +833,8 @@ "@types/react-dom": ["@types/react-dom@19.2.3", "", { "peerDependencies": { "@types/react": "^19.2.0" } }, "sha512-jp2L/eY6fn+KgVVQAOqYItbF0VY/YApe5Mz2F0aykSO8gx31bYCZyvSeYxCHKvzHG5eZjc+zyaS5BrBWya2+kQ=="], + "@types/trusted-types": ["@types/trusted-types@2.0.7", "", {}, "sha512-ScaPdn1dQczgbl0QFTeTOmVHFULt394XJgOQNoyVhZ6r2vLnMLJfBPd53SB52T/3G36VI1/g2MZaX0cwDuXsfw=="], + "@types/validate-npm-package-name": ["@types/validate-npm-package-name@4.0.2", "", {}, "sha512-lrpDziQipxCEeK5kWxvljWYhUvOiB2A9izZd9B2AFarYAkqZshb4lPbRs7zKEic6eGtH8V/2qJW+dPp9OtF6bw=="], "@typescript/typescript-aix-ppc64": ["@typescript/typescript-aix-ppc64@7.0.2", "", { "os": "aix", "cpu": "ppc64" }, "sha512-MTKKkWB7p/0E9xi1d1tHtZ5PiLkGEMIq88pK2CubZjOsLtYTLqhgIgi6zepFa+9GHZ6h05NMCkQxGKiPXMxXtQ=="], @@ -767,14 +877,94 @@ "@typescript/typescript-win32-x64": ["@typescript/typescript-win32-x64@7.0.2", "", { "os": "win32", "cpu": "x64" }, "sha512-0BQ3HkAHHlKLSp1qRvf3SUhGpGsDuhB/jgFw75guyqbxJqEaS0Cw/VFO8i2nHglJUzQCRtMMR/IBAKE3ETMC4g=="], + "@vercel/oidc": ["@vercel/oidc@3.2.0", "", {}, "sha512-UycprH3T6n3jH0k44NHMa7pnFHGu/N05MjojYr+Mc6I7obkoLIJujSWwin1pCvdy/eOxrI/l3uDLQsmcrOb4ug=="], + + "@visulima/ansi": ["@visulima/ansi@4.0.0", "", {}, "sha512-UUYBvGNiXdM3PCd7ICsTkhbxdNSsOZFfYknTH435qDhhNo4ftv6unpiEDZOwrWNl1dtuE5mraUGG3/DMIwLqDA=="], + + "@visulima/cerebro": ["@visulima/cerebro@3.0.0", "", { "dependencies": { "@visulima/colorize": "2.0.0", "@visulima/tabular": "4.0.0", "fastest-levenshtein": "^1.0.16" }, "peerDependencies": { "@bomb.sh/tab": ">=0.0.16", "@visulima/boxen": "3.0.0", "@visulima/find-cache-dir": "3.0.0", "@visulima/pail": "4.0.0", "github-slugger": ">=2.0.0" }, "optionalPeers": ["@bomb.sh/tab", "@visulima/boxen", "@visulima/find-cache-dir", "@visulima/pail", "github-slugger"], "os": [ "linux", "win32", "darwin", ] }, "sha512-DuwJbqND+Ie3niYLm79OBD5ECETj5daBd5Srqf8Syf+duwLWi02XgSU3wZ99N3LKs8NJs13dJl2Aq4/cuuCpcw=="], + + "@visulima/colorize": ["@visulima/colorize@2.0.0", "", { "dependencies": { "@visulima/is-ansi-color-supported": "3.0.0" }, "os": [ "linux", "win32", "darwin", ] }, "sha512-qG+VECZOOSQZdr63eqSl2HjjBTzmbziqQ/tOAzSZD8MexSKvBUWfNB30L4vhz6vLPo+CxHHwytX7iyasi3Ma6Q=="], + + "@visulima/email": ["@visulima/email@2.1.1", "", { "dependencies": { "html-to-text": "^10.0.0", "ical-generator": "11.0.0", "lru-cache": "11.5.1", "mime": "^4.1.0" }, "peerDependencies": { "@opentelemetry/api": "^1.0.0 || ^2.0.0", "@react-email/render": "^2.0.10", "@vue-email/render": "0.0.9", "asn1js": ">=3.0.10", "fast-xml-parser": "^4.5.0", "handlebars": ">=4.7.9", "jsx-email": "^2.0.0", "juice": "^11.0.0", "liquidjs": "^10.0.0", "mjml": ">=5.4.0", "nodemailer": ">=7", "pkijs": ">=3.4.0", "unstorage": "^1.13.0" }, "optionalPeers": ["@opentelemetry/api", "@react-email/render", "@vue-email/render", "asn1js", "fast-xml-parser", "handlebars", "jsx-email", "juice", "liquidjs", "mjml", "nodemailer", "pkijs", "unstorage"] }, "sha512-HMvn+WJb+gH0nDfbsBi5bSbsBlfwApCiJLtXbdrOW1ug5kn1+OHgdHEjLxbJjccDmR+Cmmo4p7W/+XT6iReb0A=="], + + "@visulima/error": ["@visulima/error@6.0.0", "", { "peerDependencies": { "ai": ">=6.0.202" }, "optionalPeers": ["ai"], "os": [ "linux", "win32", "darwin", ] }, "sha512-kBuOlM1FVQ0ekaIznGA9AByvYX6OpJ+0H8zSLmHh1hRKaVboEB0zbegvRZXCcXg1bES8HUbLiJPN+7zZT3NUmA=="], + + "@visulima/find-ai-runner": ["@visulima/find-ai-runner@1.0.0", "", { "bin": { "find-ai-runner": "./dist/cli.js" } }, "sha512-NQmdERt6NoOT3nWHgvQn4SHG31iubH9oeB80eo/A8nthG4tfLY2codwL9BtZlV3DCctMQRAJwsfRZ+CLGhghhw=="], + + "@visulima/fs": ["@visulima/fs@5.0.4", "", { "dependencies": { "@visulima/path": "3.0.0" }, "peerDependencies": { "ini": "^7.0.0", "json5": "^2.2.3", "jsonc-parser": "^3.3.1", "smol-toml": "^1.7.0", "yaml": ">=2.9.0" }, "optionalPeers": ["ini", "json5", "jsonc-parser", "smol-toml", "yaml"], "os": [ "linux", "win32", "darwin", ] }, "sha512-eJAJGtezASY/UNUkKJwqgZkVcrqdLyp9rJ282Bud2bx98Mekx667aBZ5UOsrB4IduZQ7bMfdqccNVGtnM8TnEg=="], + + "@visulima/interactive-manager": ["@visulima/interactive-manager@1.0.0", "", {}, "sha512-sPiEitNQbO81FnuMQJ3d/Anef5vTd9xDwB1o2MJQtI52taG8HXbgtESqVWajnpjBLpgY5n4Gn/Sw1ut8WUN90A=="], + + "@visulima/is-ansi-color-supported": ["@visulima/is-ansi-color-supported@3.0.0", "", {}, "sha512-uHSrAgO9qrBlP+VQbkXh+/jKHzW2aKZNyrwrBXA0qR/Ro4dsrt3A6oZ9CMB7jVlCmHR/WKLP16o7ch+B1XhItw=="], + + "@visulima/package": ["@visulima/package@5.0.4", "", { "dependencies": { "@antfu/install-pkg": "^1.1.0", "@visulima/fs": "5.0.4", "@visulima/path": "3.0.0", "json5": "^2.2.3", "normalize-package-data": "^9.0.0", "yaml": "2.9.0" }, "os": [ "linux", "win32", "darwin", ] }, "sha512-xge9CbB/ShmufIucxpzGmBogGTUOZH79f261CLEYWroi8thlS+kymo8Puqac8bLYAcaIZUpltdt8hi1D2aQcTA=="], + + "@visulima/pail": ["@visulima/pail@4.0.0", "", { "dependencies": { "@visulima/colorize": "2.0.0", "@visulima/interactive-manager": "1.0.0" }, "peerDependencies": { "@opentelemetry/api": "^1.9.1", "@sveltejs/kit": ">=2.0", "@visulima/redact": "3.0.0", "elysia": ">=1.0", "express": ">=4.0", "fastify": ">=4.0", "hono": ">=4.0", "next": ">=14.0", "rotating-file-stream": ">=3.2.9" }, "optionalPeers": ["@opentelemetry/api", "@sveltejs/kit", "@visulima/redact", "elysia", "express", "fastify", "hono", "next", "rotating-file-stream"], "os": [ "linux", "win32", "darwin", ] }, "sha512-g6s0/Sxq1JYA7NojRkjjXWwHj0JP81WVmxMThiQJcT+5v9GXJNSEurwEL7ljjT92ySp1vs4q/hXUZN9RCgMdfA=="], + + "@visulima/path": ["@visulima/path@3.0.0", "", { "os": [ "linux", "win32", "darwin", ] }, "sha512-l9vlDaoFrmPlG3OFuC+ZitAT8fMB2AJu1ILNZhgToVQ0HCAFVG8X1pIM/GIBQeDULveW+unIRYR4HOhS+plsCA=="], + + "@visulima/redact": ["@visulima/redact@3.0.0", "", { "dependencies": { "compromise": "^14.15.1" } }, "sha512-WC4HCu+zwVrrP8c0pw9TGO7E9S4OxlJrqNzLltDJTYZxXfzjN5yEqA7cCVtbLSgcWgiTLVc8QOa6n6Fm6y0lCw=="], + + "@visulima/spinner": ["@visulima/spinner@1.0.0", "", { "dependencies": { "@visulima/interactive-manager": "1.0.0" } }, "sha512-3gCKLOUw4EGXWuf/Y6wabQkBsXyTAe3LSmwgZjn0a5S/EbY00jC/ZlpBAB/Zp6rqS/4yKjanhu6oEtwV5ZVaHw=="], + + "@visulima/storage-client": ["@visulima/storage-client@1.0.0", "", { "peerDependencies": { "@tanstack/react-query": ">=5.100.9", "@tanstack/solid-query": ">=5.100.9", "@tanstack/svelte-query": ">=6.1.28", "@tanstack/vue-query": ">=5.100.9", "react": ">=19.2.6", "solid-js": ">=1.9.12", "svelte": ">=3.0.0", "vue": ">=3.5.34" } }, "sha512-wWtf7dGLouySavWzbhRMu3+4IGsdsTpOxAjcsHa5zxGV0lgMsY/+qs29STOg4BYSKs8ux8vDhW+dLy9qNba8Bg=="], + + "@visulima/string": ["@visulima/string@3.0.0", "", {}, "sha512-XflLJ8DelNZGrHoyywidrFUG+pG8zr1+aR31hyH8NhgdED31cHjY5w0n0pmjG/1yZBQNLNVhwvBbC+H6Od9YeA=="], + + "@visulima/tabular": ["@visulima/tabular@4.0.0", "", {}, "sha512-2BZVeNojH++U2AiMM8sIJb/Ofcrp8Pz2VnSJLyPH5kAGpE0c/KgFgUW8D6SPJIa5aylzMvK11p9YDPjaJ3igHQ=="], + + "@visulima/tui": ["@visulima/tui@1.0.4", "", { "dependencies": { "@visulima/ansi": "4.0.0", "@visulima/colorize": "2.0.0", "@visulima/error": "6.0.0", "@visulima/spinner": "1.0.0", "@visulima/string": "3.0.0", "cli-boxes": "^4.0.1", "code-excerpt": "^4.0.0", "is-in-ci": "^2.0.0", "patch-console": "^2.0.0", "scheduler": "^0.27.0", "signal-exit": "^4.1.0", "terminal-size": "^4.0.1", "tseep": "^1.3.1", "yoga-layout": "~3.2.1" }, "optionalDependencies": { "@visulima/tui-binding-darwin-arm64": "1.0.4", "@visulima/tui-binding-darwin-x64": "1.0.4", "@visulima/tui-binding-linux-arm64-gnu": "1.0.4", "@visulima/tui-binding-linux-arm64-musl": "1.0.4", "@visulima/tui-binding-linux-x64-gnu": "1.0.4", "@visulima/tui-binding-linux-x64-musl": "1.0.4", "@visulima/tui-binding-win32-arm64-msvc": "1.0.4", "@visulima/tui-binding-win32-x64-msvc": "1.0.4" }, "peerDependencies": { "@shikijs/langs": "^4.3.0", "@shikijs/themes": "^4.3.0", "@visulima/tabular": "4.0.0", "cfonts": "^3.3.1", "diff": "^9.0.0", "marked": "^18.0.5", "react": "^19.2.6", "react-devtools-core": "^7.0.1", "react-reconciler": "^0.33.0", "shiki": "^4.3.0", "ws": "^8.21.0" }, "optionalPeers": ["@shikijs/langs", "@shikijs/themes", "@visulima/tabular", "cfonts", "diff", "marked", "react-devtools-core", "shiki", "ws"] }, "sha512-8FqrzHi/JitHHZ25/hivZYVGL/HGt1iqZ8vN+RyZbl4jOkhZ0c4g4gOxvjPGF3yLKXicWj+JrfrwEyXD1v7Trg=="], + + "@visulima/tui-binding-darwin-arm64": ["@visulima/tui-binding-darwin-arm64@1.0.4", "", { "os": "darwin", "cpu": "arm64" }, "sha512-CniUOHk6NPvy/Mf42ggTLpDvQQk33fyr+3ylKL0EunxtQm5Co0KZG4nogsrD4sq7pYwDeJGRutqUu4mY+CgHGQ=="], + + "@visulima/tui-binding-darwin-x64": ["@visulima/tui-binding-darwin-x64@1.0.4", "", { "os": "darwin", "cpu": "x64" }, "sha512-5gROWmnjF6X9vZbd8u7wimAr2BcGVWDHE8LTMHWBdBCDNYeYs5R4P+JIw2XqKhbYq+6JHsJtvFQ5mHphTk3b7A=="], + + "@visulima/tui-binding-linux-arm64-gnu": ["@visulima/tui-binding-linux-arm64-gnu@1.0.4", "", { "os": "linux", "cpu": "arm64" }, "sha512-io6ZZ50UND6+9WJtVnv8k0Cl9KSX1i6Hec/GzkrK38BiNCaySa1Tu3L+uSbpemn6/42jUwGzFKBfeR4PnHwsEw=="], + + "@visulima/tui-binding-linux-arm64-musl": ["@visulima/tui-binding-linux-arm64-musl@1.0.4", "", { "os": "linux", "cpu": "arm64" }, "sha512-2RuiO6NXJGo4X5fqj7ZnOXVqXTmHIETjK1HZqSrMwOSYB9KbC9PZ7pN7Uq1tnYnzHpwl6avbP0QYW0POFvkZVg=="], + + "@visulima/tui-binding-linux-x64-gnu": ["@visulima/tui-binding-linux-x64-gnu@1.0.4", "", { "os": "linux", "cpu": "x64" }, "sha512-SBpgX9wOYE2EUgG4P+afyCeSyu/HWGiW3V0zrzGe7PaCNnsQqvy85rbT1i3W7u1wJE1yXTx/Kn4aMUSl4WYUcw=="], + + "@visulima/tui-binding-linux-x64-musl": ["@visulima/tui-binding-linux-x64-musl@1.0.4", "", { "os": "linux", "cpu": "x64" }, "sha512-wjR24V0Gw1pJlJGzvLEt0sbjUBFtR58eYA1s+H0VQsEMdCeW1SIoId+Hl3FdhjqISc0ozi0Wl2oWMvx0TcOs/w=="], + + "@visulima/tui-binding-win32-arm64-msvc": ["@visulima/tui-binding-win32-arm64-msvc@1.0.4", "", { "os": "win32", "cpu": "arm64" }, "sha512-7kNPxAxEjVwn14AF5S5zm61kjM7pEFh6Izh59QUUkYh78SNdTiiA956vlq7G4+ZebpOcwRrmmkdGHa0sgA+jAg=="], + + "@visulima/tui-binding-win32-x64-msvc": ["@visulima/tui-binding-win32-x64-msvc@1.0.4", "", { "os": "win32", "cpu": "x64" }, "sha512-jogXEQq+Yei2qCOa31ipwqk5bAo17czmMUHc0TRmh34XxTGlTdMPSxxum0xIetr/A0Ije2z1rE1CDdSe3eatAA=="], + "@vitejs/plugin-react": ["@vitejs/plugin-react@6.0.3", "", { "dependencies": { "@rolldown/pluginutils": "^1.0.1" }, "peerDependencies": { "@rolldown/plugin-babel": "^0.1.7 || ^0.2.0", "babel-plugin-react-compiler": "^1.0.0", "vite": "^8.0.0" }, "optionalPeers": ["@rolldown/plugin-babel", "babel-plugin-react-compiler"] }, "sha512-vmFvco5/QuC2f9Oj+wTk0+9XeDFkHxSamwZKYc7MxYwKICfvUvlMhqKI0VuICPltGqh1neqBKDvO4kes1ya8vg=="], + "@vue/compiler-core": ["@vue/compiler-core@3.5.40", "", { "dependencies": { "@babel/parser": "^7.29.7", "@vue/shared": "3.5.40", "entities": "^7.0.1", "estree-walker": "^2.0.2", "source-map-js": "^1.2.1" } }, "sha512-39E8IgOhTbVDnoJFMKc2DvYnypcZwUqgUhQkccva/0m6FUwtIKSGV7n1hpVmYcFaoRAwf9pBcwnKlCEsN63ZEQ=="], + + "@vue/compiler-dom": ["@vue/compiler-dom@3.5.40", "", { "dependencies": { "@vue/compiler-core": "3.5.40", "@vue/shared": "3.5.40" } }, "sha512-pwkx4vqlqOspFstrcmzwkKLePVMD3PT65imRzLhanU2V1Fj4K13g6OXjanOyzw3aTAuRk84BOmY8f3rEHqPaVA=="], + + "@vue/compiler-sfc": ["@vue/compiler-sfc@3.5.40", "", { "dependencies": { "@babel/parser": "^7.29.7", "@vue/compiler-core": "3.5.40", "@vue/compiler-dom": "3.5.40", "@vue/compiler-ssr": "3.5.40", "@vue/shared": "3.5.40", "estree-walker": "^2.0.2", "magic-string": "^0.30.21", "postcss": "^8.5.19", "source-map-js": "^1.2.1" } }, "sha512-gIf497P4kpuALcvs5n3AEg1Vdn0pSY4XbjASIfHNYF1/MP3T2Mf2STERTubysBxCRxzJGJYtF/O7vwJrxFB3Vw=="], + + "@vue/compiler-ssr": ["@vue/compiler-ssr@3.5.40", "", { "dependencies": { "@vue/compiler-dom": "3.5.40", "@vue/shared": "3.5.40" } }, "sha512-rrE5xiXG663+vHCHa3J9p2z5OcBRjXmoqenprJxAFQxg5pSshzeBiCE6pu46axapRJ2Adk0YDA2BRZVjiHXnhg=="], + + "@vue/devtools-api": ["@vue/devtools-api@6.6.4", "", {}, "sha512-sGhTPMuXqZ1rVOk32RylztWkfXTRhuS7vgAKv0zjqk8gbsHkJ7xfFf+jbySxt7tWObEJwyKaHMikV/WGDiQm8g=="], + + "@vue/reactivity": ["@vue/reactivity@3.5.40", "", { "dependencies": { "@vue/shared": "3.5.40" } }, "sha512-B7ot9UlUZOi1zbq61/LvE88ZLTV8IlajTdiZTAEiDQgrnIMIZoPr9kGw0Zw46ObW62O9+H/Be3kMbfb7kYPQZA=="], + + "@vue/runtime-core": ["@vue/runtime-core@3.5.40", "", { "dependencies": { "@vue/reactivity": "3.5.40", "@vue/shared": "3.5.40" } }, "sha512-KAZLweuZ6uUJPK1PMSQPgBU5gCjgrrfjUhSglmU9NhH+Zjepa8cnwSydPWDWHDwOgY4g3VcZ+PljbiHlURNCbw=="], + + "@vue/runtime-dom": ["@vue/runtime-dom@3.5.40", "", { "dependencies": { "@vue/reactivity": "3.5.40", "@vue/runtime-core": "3.5.40", "@vue/shared": "3.5.40", "csstype": "^3.2.3" } }, "sha512-ZfrX8ssZQds900L9pr8AuK05ddnMsR4MPMZr8cPN9GoqoPWcXLhjvvbIA2SMv+7a97sJ1vv9pj/zxK0Cq/eEFQ=="], + + "@vue/server-renderer": ["@vue/server-renderer@3.5.40", "", { "dependencies": { "@vue/compiler-ssr": "3.5.40", "@vue/runtime-dom": "3.5.40", "@vue/shared": "3.5.40" } }, "sha512-XNJym9WpevhTVt1HuwOrCRJ5Q+9z4BjTMrDtjTrvx74SmUll8spNTw6whWJa9mEkO4PKn5TihI/bm/8ds2QVJw=="], + + "@vue/shared": ["@vue/shared@3.5.40", "", {}, "sha512-WxnBtruIqOoV3rA4jeKDWzrYI5h7Cp4+pjwDi8kWGHz+IslhiN+wguLVVhtv2l8VoU02rzDCVfDjgCl1lNpZVg=="], + + "@workflow/serde": ["@workflow/serde@4.1.0", "", {}, "sha512-pav4F2BoirECWR7Nf1TKt+2eETcBj7jj4cBefQ8VXQCA6NPkaKeLfj/zMgi+3zYV5ZIBT4GuUiphsj0/b9hPQQ=="], + "@xstate/react": ["@xstate/react@7.0.0-alpha.1", "", { "dependencies": { "use-isomorphic-layout-effect": "^1.1.2", "use-sync-external-store": "^1.2.0" }, "peerDependencies": { "react": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0", "xstate": "^6.0.0-alpha.1" }, "optionalPeers": ["xstate"] }, "sha512-GRUEqHlbp0Jf0gheJnO+WS90JkJlilRt3wTud84UuAErVrpQpBD1YCGQ1/DySrXK/JKUuRi5p7CbPeZlXV4pxA=="], "accepts": ["accepts@2.0.0", "", { "dependencies": { "mime-types": "^3.0.0", "negotiator": "^1.0.0" } }, "sha512-5cvg6CtKwfgdmVqY1WIiXKc3Q1bkRqGLi+2W/6ao+6Y7gu/RCwRuAhGEzh5B4KlszSuTLgZYuqFqo5bImjNKng=="], + "acorn": ["acorn@8.17.0", "", { "bin": { "acorn": "bin/acorn" } }, "sha512-xRQbDb9BnwDafYNn6Vwl839DYVjqXYb1XVGtWAZ1kcDc6iwAL4hg3B1dZlRiuENFeO2H53gFG3in621AdERVAg=="], + "agent-base": ["agent-base@6.0.2", "", { "dependencies": { "debug": "4" } }, "sha512-RZNwNclF7+MS/8bDg70amg32dyeZGZxiDuQmZxKLAlQjr3jGyLx+4Kkk58UO7D2QdgFIQCovuSuZESne6RG6XQ=="], + "ai": ["ai@7.0.31", "", { "dependencies": { "@ai-sdk/gateway": "4.0.23", "@ai-sdk/provider": "4.0.3", "@ai-sdk/provider-utils": "5.0.11" }, "peerDependencies": { "zod": "^3.25.76 || ^4.1.8" } }, "sha512-pJfwKXjF5kw0rKRTePwYo60EfWb8wfzJAgf3ojln/YkOsVVKttzZAJVcRPsg37Z3a06ZdKkxX+DSrMAFlPm5Mw=="], + "ajv": ["ajv@8.20.0", "", { "dependencies": { "fast-deep-equal": "^3.1.3", "fast-uri": "^3.0.1", "json-schema-traverse": "^1.0.0", "require-from-string": "^2.0.2" } }, "sha512-Thbli+OlOj+iMPYFBVBfJ3OmCAnaSyNn4M1vz9T6Gka5Jt9ba/HIR56joy65tY6kx/FCF5VXNB819Y7/GUrBGA=="], "ajv-formats": ["ajv-formats@3.0.1", "", { "dependencies": { "ajv": "^8.0.0" } }, "sha512-8iUql50EUR+uUcdRQ3HDqa6EVyo3docL8g5WJ3FNcWmu62IbkGUue/pEyLBW8VGKKucTPgqeks4fIU1DA4yowQ=="], @@ -793,28 +983,40 @@ "aria-hidden": ["aria-hidden@1.2.6", "", { "dependencies": { "tslib": "^2.0.0" } }, "sha512-ik3ZgC9dY/lYVVM++OISsaYDeg1tb0VtP5uL3ouh1koGOaUMDPpbFIei4JkFimWUFPn90sbMNMXQAIVOlnYKJA=="], + "aria-query": ["aria-query@5.3.1", "", {}, "sha512-Z/ZeOgVl7bcSYZ/u/rh0fOpvEpq//LZmdbkXyc7syVzjPAhfOa9ebsdTSjEBDU4vs5nC98Kfduj1uFo0qyET3g=="], + "array-union": ["array-union@2.1.0", "", {}, "sha512-HGyxoOTYUyCM6stUe6EJgnd4EoewAI7zMdfqO+kGjnlZmBDz/cR5pf8r/cR4Wq60sL/p0IkcjUEEPwS3GFrIyw=="], + "asn1": ["asn1@0.2.6", "", { "dependencies": { "safer-buffer": "~2.1.0" } }, "sha512-ix/FxPn0MDjeyJ7i/yoHGFt/EX6LyNbxSEhPPXODPL+KB0VPk86UYfL0lMdy+KCnv+fmvIzySwaK5COwqVbWTQ=="], + "ast-types": ["ast-types@0.16.1", "", { "dependencies": { "tslib": "^2.0.1" } }, "sha512-6t10qk83GOG8p0vKmaCr8eiilZwO171AvbROMtvvNiwrTly62t+7XkA8RdIIVbpMhCASAsxgAzdRSwh6nw/5Dg=="], "astring": ["astring@1.9.0", "", { "bin": { "astring": "bin/astring" } }, "sha512-LElXdjswlqjWrPpJFg1Fx4wpkOCxj1TDHlSV4PlaRxHGWko024xICaa97ZkMfs6DRKlCguiAI+rbXv5GWwXIkg=="], "atomically": ["atomically@1.7.0", "", {}, "sha512-Xcz9l0z7y9yQ9rdDaxlmaI4uJHf/T8g9hOEzJcsEqX2SjCj4J20uK7+ldkDHMbpJDK76wF7xEIgxc/vSlsfw5w=="], + "axobject-query": ["axobject-query@4.1.0", "", {}, "sha512-qIj0G9wZbMGNLjLmg1PT6v2mE9AH2zlnADJD/2tC6E00hgmhUOfEB6greHPAfLRSufHqROIUTkw6E+M3lH0PTQ=="], + "babel-dead-code-elimination": ["babel-dead-code-elimination@1.0.12", "", { "dependencies": { "@babel/core": "^7.23.7", "@babel/parser": "^7.23.6", "@babel/traverse": "^7.23.7", "@babel/types": "^7.23.6" } }, "sha512-GERT7L2TiYcYDtYk1IpD+ASAYXjKbLTDPhBtYj7X1NuRMDTMtAx9kyBenub1Ev41lo91OHCKdmP+egTDmfQ7Ig=="], "babel-plugin-react-compiler": ["babel-plugin-react-compiler@1.0.0", "", { "dependencies": { "@babel/types": "^7.26.0" } }, "sha512-Ixm8tFfoKKIPYdCCKYTsqv+Fd4IJ0DQqMyEimo+pxUOMUR9cVPlwTrFt9Avu+3cb6Zp3mAzl+t1MrG2fxxKsxw=="], "balanced-match": ["balanced-match@4.0.4", "", {}, "sha512-BLrgEcRTwX2o6gGxGOCNyMvGSp35YofuYzw9h1IMTRmKqttAZZVU67bdb9Pr2vUHA8+j3i2tJfjO6C6+4myGTA=="], + "base64-js": ["base64-js@1.5.1", "", {}, "sha512-AKpaYlHn8t4SVbOHCy+b5+KKgvR4vrsD8vbvrbiQJps7fKDTkjkDry6ji0rUJjC0kzbNePLwzxq8iypo41qeWA=="], + "baseline-browser-mapping": ["baseline-browser-mapping@2.10.42", "", { "bin": { "baseline-browser-mapping": "dist/cli.cjs" } }, "sha512-c/jurFrDLyui7o1J86yLkRu4LMsTYcBohveus7/I2Hzdn9KIP2bdJPTue/lR1KH46enoPbD77GKeSYNdyPoD3Q=="], + "bcrypt-pbkdf": ["bcrypt-pbkdf@1.0.2", "", { "dependencies": { "tweetnacl": "^0.14.3" } }, "sha512-qeFIXtP4MSoi6NLqO12WfqARWWuCKi2Rn/9hJLEmtB5yTNr9DqFWkJRCf2qShWzPeAMRnOgCrq0sg/KLv5ES9w=="], + "better-auth": ["better-auth@1.6.23", "", { "dependencies": { "@better-auth/core": "1.6.23", "@better-auth/drizzle-adapter": "1.6.23", "@better-auth/kysely-adapter": "1.6.23", "@better-auth/memory-adapter": "1.6.23", "@better-auth/mongo-adapter": "1.6.23", "@better-auth/prisma-adapter": "1.6.23", "@better-auth/telemetry": "1.6.23", "@better-auth/utils": "0.4.2", "@better-fetch/fetch": "1.3.1", "@noble/ciphers": "^2.1.1", "@noble/hashes": "^2.0.1", "better-call": "1.3.7", "defu": "^6.1.4", "jose": "^6.1.3", "kysely": "^0.28.17 || ^0.29.0", "nanostores": "^1.1.1", "zod": "^4.3.6" }, "peerDependencies": { "@lynx-js/react": "*", "@prisma/client": "^5.0.0 || ^6.0.0 || ^7.0.0", "@sveltejs/kit": "^2.0.0", "@tanstack/react-start": "^1.0.0", "@tanstack/solid-start": "^1.0.0", "better-sqlite3": "^12.0.0", "drizzle-kit": ">=0.31.4", "drizzle-orm": "^0.45.2", "mongodb": "^6.0.0 || ^7.0.0", "mysql2": "^3.0.0", "next": "^14.0.0 || ^15.0.0 || ^16.0.0", "pg": "^8.0.0", "prisma": "^5.0.0 || ^6.0.0 || ^7.0.0", "react": "^18.0.0 || ^19.0.0", "react-dom": "^18.0.0 || ^19.0.0", "solid-js": "^1.0.0", "svelte": "^4.0.0 || ^5.0.0", "vitest": "^2.0.0 || ^3.0.0 || ^4.0.0", "vue": "^3.0.0" }, "optionalPeers": ["@lynx-js/react", "@prisma/client", "@sveltejs/kit", "@tanstack/react-start", "@tanstack/solid-start", "better-sqlite3", "drizzle-kit", "drizzle-orm", "mongodb", "mysql2", "next", "pg", "prisma", "react", "react-dom", "solid-js", "svelte", "vitest", "vue"] }, "sha512-4vOaRd9UiKGKm9R+ej0jjU1es3MiJIiNc9Qq3VCnYqOZ4/nb5272QqTxWYoDxyUXl5x6A2x2we5KZKQO9teTQQ=="], "better-call": ["better-call@1.3.7", "", { "dependencies": { "@better-auth/utils": "^0.4.0", "@better-fetch/fetch": "^1.1.21", "rou3": "^0.7.12", "set-cookie-parser": "^3.0.1" }, "peerDependencies": { "zod": "^4.0.0" }, "optionalPeers": ["zod"] }, "sha512-Al51/hjp2SSp6CRTa3F2ptcx4yQVS1xWKoY6jcVXqNYOap6mHFP2jUBn5EwIL4iIed1/Sq4hlQ+Umm6EflZG+w=="], "better-path-resolve": ["better-path-resolve@1.0.0", "", { "dependencies": { "is-windows": "^1.0.0" } }, "sha512-pbnl5XzGBdrFU/wT4jqmJVPn2B6UHPBOhzMQkY/SPUPB6QtUXtmBHBIwCbXJol93mOpGMnQyP/+BB19q04xj7g=="], + "bl": ["bl@4.1.0", "", { "dependencies": { "buffer": "^5.5.0", "inherits": "^2.0.4", "readable-stream": "^3.4.0" } }, "sha512-1W07cM9gS6DcLperZfFSj+bWLtaPGSOHWhPiGzXmvVJbRLdG82sH/Kn8EtW1VqWVA54AKf2h5k5BbnIbwF3h6w=="], + "blake3-wasm": ["blake3-wasm@2.1.5", "", {}, "sha512-F1+K8EbfOZE49dtoPtmxUQrpXaBIl3ICvasLh+nJta0xkz+9kF/7uet9fLnwKqhDrmj6g+6K3Tw9yQPUg2ka5g=="], "body-parser": ["body-parser@2.3.0", "", { "dependencies": { "bytes": "^3.1.2", "content-type": "^2.0.0", "debug": "^4.4.3", "http-errors": "^2.0.1", "iconv-lite": "^0.7.2", "on-finished": "^2.4.1", "qs": "^6.15.2", "raw-body": "^3.0.2", "type-is": "^2.1.0" } }, "sha512-2cGmJupaNgg+QUwVLAucDuWuoMZ6EX9iHDRswZ5lsNYEmwPaRknMPCLZz07yTzVq/83p4o/wzbDZbBrTvGGTIw=="], @@ -825,6 +1027,10 @@ "browserslist": ["browserslist@4.28.5", "", { "dependencies": { "baseline-browser-mapping": "^2.10.42", "caniuse-lite": "^1.0.30001800", "electron-to-chromium": "^1.5.387", "node-releases": "^2.0.50", "update-browserslist-db": "^1.2.3" }, "bin": { "browserslist": "cli.js" } }, "sha512-Cu2E6QejHWzuDMTkuwgpABFgDfZrXLQq5V13YOACZx4mFAG4IwGTbTfHPMr4WtxlHoXSM8FIuRwYYCz5XiabaQ=="], + "buffer": ["buffer@5.7.1", "", { "dependencies": { "base64-js": "^1.3.1", "ieee754": "^1.1.13" } }, "sha512-EHcyIPBQ4BSGlvjB16k5KgAJ27CIsHY/2JBmCRReo48y9rQ3MaUzWX3KVlBa4U7MyX02HdVj0K7C3WaB3ju7FQ=="], + + "buildcheck": ["buildcheck@0.0.7", "", {}, "sha512-lHblz4ahamxpTmnsk+MNTRWsjYKv965MwOrSJyeD588rR3Jcu7swE+0wN5F+PbL5cjgu/9ObkhfzEPuofEMwLA=="], + "bun-types": ["bun-types@1.3.14", "", { "dependencies": { "@types/node": "*" } }, "sha512-4N0ig0fEomHt5R0KCFWjovxow98rIoRwKolrYdCcknNwMekCXRnWEUvgu5soYV8QXtVsrUD8B95MBOZGPvr6KQ=="], "bundle-name": ["bundle-name@4.1.0", "", { "dependencies": { "run-applescript": "^7.0.0" } }, "sha512-tjwM5exMg6BGRI+kNmTntNsvdZS1X8BFYS6tnJ2hdH0kVxM6/eVZ2xy+FqStSWvYmtfFMDLIxurorHwDKfDz5Q=="], @@ -839,22 +1045,30 @@ "caniuse-lite": ["caniuse-lite@1.0.30001803", "", {}, "sha512-g/uHREV2ZpK9qMalCsWaxmA6ol+DX8GYhuf3T40RKoP+oL7vhRJh8LNt73PCjpnR6l14FzfPrB5Yux4PKm2meg=="], + "cfonts": ["cfonts@3.3.1", "", { "dependencies": { "supports-color": "^8", "window-size": "^1" }, "bin": { "cfonts": "bin/index.js" } }, "sha512-ZGEmN3W9mViWEDjsuPo4nK4h39sfh6YtoneFYp9WLPI/rw8BaSSrfQC6jkrGW3JMvV3ZnExJB/AEqXc/nHYxkw=="], + "chalk": ["chalk@5.6.2", "", {}, "sha512-7NzBL0rN6fMUW+f7A6Io4h40qQlG+xGmtMxfbnH/K7TAtt8JQWVQK+6g0UXKMeVJoyV5EkkNsErQ8pVD3bLHbA=="], "chardet": ["chardet@2.2.0", "", {}, "sha512-rddelWYNPRrXq6PtNEN2S3f6t9ILzvqaN5pVgi4kqt9jHQaXIial9PznB5iSPVlQSLNaaH22ItWz3EJtQ10+OA=="], "chokidar": ["chokidar@5.0.0", "", { "dependencies": { "readdirp": "^5.0.0" } }, "sha512-TQMmc3w+5AxjpL8iIiwebF73dRDF4fBIieAqGn9RGCWaEVwQ6Fb2cGe31Yns0RRIzii5goJ1Y7xbMwo1TxMplw=="], + "chownr": ["chownr@1.1.4", "", {}, "sha512-jJ0bqzaylmJtVnNgzTeSOs8DPavpbYgEr/b0YL8/2GO3xJEhInFmhKMUnEJQjZumK7KXGFhUy89PrsJWlakBVg=="], + "cjs-module-lexer": ["cjs-module-lexer@2.2.0", "", {}, "sha512-4bHTS2YuzUvtoLjdy+98ykbNB5jS0+07EvFNXerqZQJ89F7DI6ET7OQo/HJuW6K0aVsKA9hj9/RVb2kQVOrPDQ=="], "class-variance-authority": ["class-variance-authority@0.7.1", "", { "dependencies": { "clsx": "^2.1.1" } }, "sha512-Ka+9Trutv7G8M6WT6SeiRWz792K5qEqIGEGzXKhAE6xOWAY6pPH8U+9IY3oCMv6kqTmLsv7Xh/2w2RigkePMsg=="], + "cli-boxes": ["cli-boxes@4.0.1", "", {}, "sha512-5IOn+jcCEHEraYolBPs/sT4BxYCe2nHg374OPiItB1O96KZFseS2gthU4twyYzeDcFew4DaUM/xwc5BQf08JJw=="], + "cli-cursor": ["cli-cursor@5.0.0", "", { "dependencies": { "restore-cursor": "^5.0.0" } }, "sha512-aCj4O5wKyszjMmDT4tZj93kxyydN/K5zPWSCe6/0AV/AA1pqe5ZBIw0a2ZfPQV7lL5/yb5HsUreJ6UFAF1tEQw=="], "cli-spinners": ["cli-spinners@2.9.2", "", {}, "sha512-ywqV+5MmyL4E7ybXgKys4DugZbX0FC6LnwrhjuykIjnK9k8OQacQ7axGKnjDXWNhns0xot3bZI5h55H8yo9cJg=="], "cli-truncate": ["cli-truncate@5.2.0", "", { "dependencies": { "slice-ansi": "^8.0.0", "string-width": "^8.2.0" } }, "sha512-xRwvIOMGrfOAnM1JYtqQImuaNtDEv9v6oIYAs4LIHwTiKee8uwvIi363igssOC0O5U04i4AlENs79LQLu9tEMw=="], + "cliui": ["cliui@8.0.1", "", { "dependencies": { "string-width": "^4.2.0", "strip-ansi": "^6.0.1", "wrap-ansi": "^7.0.0" } }, "sha512-BSeNnyus75C4//NQ9gQt1/csTXyo/8Sb+afLAkzAptFuMsod9HFokGNudZpi/oQV73hnVK+sR+5PVRMd+Dr7YQ=="], + "clsx": ["clsx@2.1.1", "", {}, "sha512-eYm0QWBtUrBWZWG0d386OGAw16Z995PiOVo2B7bjWSbHedGl5e0ZWaq65kOGgUSNesEIDkB9ISbTg/JK9dhCZA=="], "cmdk": ["cmdk@1.1.1", "", { "dependencies": { "@radix-ui/react-compose-refs": "^1.1.1", "@radix-ui/react-dialog": "^1.1.6", "@radix-ui/react-id": "^1.1.0", "@radix-ui/react-primitive": "^2.0.2" }, "peerDependencies": { "react": "^18 || ^19 || ^19.0.0-rc", "react-dom": "^18 || ^19 || ^19.0.0-rc" } }, "sha512-Vsv7kFaXm+ptHDMZ7izaRsP70GgrW9NBNGswt9OZaVBLlE0SNpDq8eu/VGXyF9r7M0azK3Wy7OlYXsuyYLFzHg=="], @@ -863,8 +1077,16 @@ "code-block-writer": ["code-block-writer@13.0.3", "", {}, "sha512-Oofo0pq3IKnsFtuHqSF7TqBfr71aeyZDVJ0HpmqB7FBM2qEigL0iPONSCZSO9pE9dZTAxANe5XHG9Uy0YMv8cg=="], + "code-excerpt": ["code-excerpt@4.0.0", "", { "dependencies": { "convert-to-spaces": "^2.0.1" } }, "sha512-xxodCmBen3iy2i0WtAK8FlFNrRzjUqjRsMfho58xT/wvZU1YTM3fCnRjcy1gJPMepaRlgm/0e6w8SpWHpn3/cA=="], + + "color-convert": ["color-convert@2.0.1", "", { "dependencies": { "color-name": "~1.1.4" } }, "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ=="], + + "color-name": ["color-name@1.1.4", "", {}, "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA=="], + "commander": ["commander@14.0.3", "", {}, "sha512-H+y0Jo/T1RZ9qPP4Eh1pkcQcLRglraJaSLoyOtHxu6AapkjWVCy2Sit1QQ4x3Dng8qDlSsZEet7g5Pq06MvTgw=="], + "compromise": ["compromise@14.16.0", "", { "dependencies": { "efrt": "2.7.0", "grad-school": "0.0.5", "suffix-thumb": "5.0.2" } }, "sha512-4DFYl/Hl7sW4XWUDfx9S5vxqyYKpZDwwqrpXsQv5acdbVP+joKceIcIaLb0lhVWUpDBV0OnExk/o/dnYUwXnhQ=="], + "conf": ["conf@10.2.0", "", { "dependencies": { "ajv": "^8.6.3", "ajv-formats": "^2.1.1", "atomically": "^1.7.0", "debounce-fn": "^4.0.0", "dot-prop": "^6.0.1", "env-paths": "^2.2.1", "json-schema-typed": "^7.0.3", "onetime": "^5.1.2", "pkg-up": "^3.1.0", "semver": "^7.3.5" } }, "sha512-8fLl9F04EJqjSqH+QjITQfJF8BrOVaYr1jewVgSRAEWePfxT0sku4w2hrGQ60BC/TNLGQ2pgxNlTbWQmMPFvXg=="], "content-disposition": ["content-disposition@1.1.0", "", {}, "sha512-5jRCH9Z/+DRP7rkvY83B+yGIGX96OYdJmzngqnw2SBSxqCFPd0w2km3s5iawpGX8krnwSGmF0FW5Nhr0Hfai3g=="], @@ -873,6 +1095,8 @@ "convert-source-map": ["convert-source-map@2.0.0", "", {}, "sha512-Kvp459HrV2FEJ1CAsi1Ku+MY3kasH19TFykTz2xWmMeq6bk2NU3XXvfJ+Q61m0xktWwt+1HSYf3JZsTms3aRJg=="], + "convert-to-spaces": ["convert-to-spaces@2.0.1", "", {}, "sha512-rcQ1bsQO9799wq24uE5AM2tAILy4gXGIK/njFWcVQkGNZ96edlpY+A7bjwvzjYvLDyzmG1MmMLZhpcsb+klNMQ=="], + "cookie": ["cookie@1.1.1", "", {}, "sha512-ei8Aos7ja0weRpFzJnEA9UHJ/7XQmqglbRwnf2ATjcB9Wq874VKH9kfjjirM6UhU2/E5fFYadylyhFldcqSidQ=="], "cookie-es": ["cookie-es@3.1.1", "", {}, "sha512-UaXxwISYJPTr9hwQxMFYZ7kNhSXboMXP+Z3TRX6f1/NyaGPfuNUZOWP1pUEb75B2HjfklIYLVRfWiFZJyC6Npg=="], @@ -883,6 +1107,10 @@ "cosmiconfig": ["cosmiconfig@9.0.2", "", { "dependencies": { "env-paths": "^2.2.1", "import-fresh": "^3.3.0", "js-yaml": "^4.1.0", "parse-json": "^5.2.0" }, "peerDependencies": { "typescript": ">=4.9.5" }, "optionalPeers": ["typescript"] }, "sha512-gtTZxTDau1wL7Y7zifc2dd8jHSK/k6BTx/2Xp/BpdlAdnlYWFVt7qhJqgwi7637yRwRQ3qL4ZidbB4I8tA5VOg=="], + "cpu-features": ["cpu-features@0.0.10", "", { "dependencies": { "buildcheck": "~0.0.6", "nan": "^2.19.0" } }, "sha512-9IkYqtX3YHPCzoVg1Py+o9057a3i0fp7S530UWokCSaFVTc7CwXPRiOjRjBQQ18ZCNafx78YfnG+HALxtVmOGA=="], + + "cron-parser": ["cron-parser@5.6.2", "", { "dependencies": { "luxon": "^3.7.2" } }, "sha512-yJ/G1LVir6CnlkLI40CsampPLKl1SprGGlUagWtGJxewytRVYezv5xVyzzbT+Pvzx+VIRvZVF7/a0eEMTxdnTA=="], + "cross-spawn": ["cross-spawn@7.0.6", "", { "dependencies": { "path-key": "^3.1.0", "shebang-command": "^2.0.0", "which": "^2.0.1" } }, "sha512-uV2QOWP2nWzsy2aMp8aRibhi9dlzF5Hgh5SHaB9OiTGEyDTiJJyx0uy51QXdyWbtAHNua4XJzUKca3OzKUd3vA=="], "cssesc": ["cssesc@3.0.0", "", { "bin": { "cssesc": "bin/cssesc" } }, "sha512-/Tb/JcjK111nNScGob5MNtsntNM1aCNUDipB/TkwZFhyDrrE47SOx/18wF2bbjgc3ZzCSKW1T5nt5EbFoAz/Vg=="], @@ -899,12 +1127,16 @@ "deepmerge": ["deepmerge@4.3.1", "", {}, "sha512-3sUqbMEc77XqpdNO7FRyRog+eW3ph+GYCbj+rK+uYyRMuwsVy0rMiVtPn+QJlKFvWP/1PYpapqYn0Me2knFn+A=="], + "deepmerge-ts": ["deepmerge-ts@7.1.5", "", {}, "sha512-HOJkrhaYsweh+W+e74Yn7YStZOilkoPb6fycpwNLKzSPtruFs48nYis0zy5yJz1+ktUhHxoRDJ27RQAWLIJVJw=="], + "default-browser": ["default-browser@5.5.0", "", { "dependencies": { "bundle-name": "^4.1.0", "default-browser-id": "^5.0.0" } }, "sha512-H9LMLr5zwIbSxrmvikGuI/5KGhZ8E2zH3stkMgM5LpOWDutGM2JZaj460Udnf1a+946zc7YBgrqEWwbk7zHvGw=="], "default-browser-id": ["default-browser-id@5.0.1", "", {}, "sha512-x1VCxdX4t+8wVfd1so/9w+vQ4vx7lKd2Qp5tDRutErwmR85OgmfX7RlLRMWafRMY7hbEiXIbudNrjOAPa/hL8Q=="], "define-lazy-prop": ["define-lazy-prop@3.0.0", "", {}, "sha512-N+MeXYoqr3pOgn8xfyRPREN7gHakLYjhsHhWGT3fWAiL4IkAt0iDw14QiiEm2bE30c5XX5q0FtAA3CK5f9/BUg=="], + "define-property": ["define-property@1.0.0", "", { "dependencies": { "is-descriptor": "^1.0.0" } }, "sha512-cZTYKFWspt9jZsMscWo8sc/5lbPC9Q0N5nBLgb+Yd915iL3udB1uFgS3B8YCx66UVHq018DAVFoee7x+gxggeA=="], + "defu": ["defu@6.1.7", "", {}, "sha512-7z22QmUWiQ/2d0KkdYmANbRUVABpZ9SNYyH5vx6PZ+nE5bcC0l7uFvEfHlyld/HcGBFTL536ClDt3DEcSlEJAQ=="], "depd": ["depd@2.0.0", "", {}, "sha512-g7nH6P6dyDioJogAAGprGpCtVImJhpPk/roCzdb3fIh61/s/nPsfR6onyMwkCAR/OlC3yBC0lESvUoQEAssIrw=="], @@ -915,20 +1147,38 @@ "detect-node-es": ["detect-node-es@1.1.0", "", {}, "sha512-ypdmJU/TbBby2Dxibuv7ZLW3Bs1QEmM7nHjEANfohJLvE0XVujisn1qPJcZxg+qDucsr+bP6fLD1rPS3AhJ7EQ=="], + "devalue": ["devalue@5.8.2", "", {}, "sha512-DObPPAfdtFbXjxLqK8s2Xk9ZuWz5+ZoFEhC7J76es4GU/rEiXwHTmbImoCdyoCOcBH1UF3+Cz6Z2sYD4hyl5TA=="], + "diff": ["diff@8.0.4", "", {}, "sha512-DPi0FmjiSU5EvQV0++GFDOJ9ASQUVFh5kD+OzOnYdi7n3Wpm9hWWGfB/O2blfHcMVTL5WkQXSnRiK9makhrcnw=="], "dir-glob": ["dir-glob@3.0.1", "", { "dependencies": { "path-type": "^4.0.0" } }, "sha512-WkrWp9GR4KXfKGYzOLmTuGVi1UWFfws377n9cc55/tb6DuqyF6pcQ5AbiHEshaDpY9v6oaSr2XCDidGmMwdzIA=="], + "docker-modem": ["docker-modem@5.0.7", "", { "dependencies": { "debug": "^4.1.1", "readable-stream": "^3.5.0", "split-ca": "^1.0.1", "ssh2": "^1.15.0" } }, "sha512-XJgGhoR/CLpqshm4d3L7rzH6t8NgDFUIIpztYlLHIApeJjMZKYJMz2zxPsYxnejq5h3ELYSw/RBsi3t5h7gNTA=="], + + "dockerode": ["dockerode@5.0.1", "", { "dependencies": { "@balena/dockerignore": "^1.0.2", "@grpc/grpc-js": "^1.11.1", "@grpc/proto-loader": "^0.7.13", "docker-modem": "^5.0.7", "protobufjs": "^7.3.2", "tar-fs": "^2.1.4" } }, "sha512-avsq/xk4YPIrn0CgleX5bjT9Y8IT1p9PxrNQ++RBQ2WEyFfHCTDsT9kmyxz+H/axnjAwg8wJWEIuPGOUuNupiA=="], + + "dom-serializer": ["dom-serializer@2.0.0", "", { "dependencies": { "domelementtype": "^2.3.0", "domhandler": "^5.0.2", "entities": "^4.2.0" } }, "sha512-wIkAryiqt/nV5EQKqQpo3SToSOV9J0DnbJqwK7Wv/Trc92zIAYZ4FlMu+JPFW1DfGFt81ZTCGgDEabffXeLyJg=="], + + "domelementtype": ["domelementtype@2.3.0", "", {}, "sha512-OLETBj6w0OsagBwdXnPdN0cnMfF9opN69co+7ZrbfPGrdpPVNBUj02spi6B1N7wChLQiPn4CSH/zJvXw56gmHw=="], + + "domhandler": ["domhandler@5.0.3", "", { "dependencies": { "domelementtype": "^2.3.0" } }, "sha512-cgwlv/1iFQiFnU96XXgROh8xTeetsnJiDsTc7TYCLFd9+/WNkIqPTxiM/8pSd8VIrhXGTf1Ny1q1hquVqDJB5w=="], + + "domutils": ["domutils@3.2.2", "", { "dependencies": { "dom-serializer": "^2.0.0", "domelementtype": "^2.3.0", "domhandler": "^5.0.3" } }, "sha512-6kZKyUajlDuqlHKVX1w7gyslj9MPIXzIFiz/rGu35uC1wMi+kMhQwGhl4lt9unC9Vb9INnY9Z3/ZA3+FhASLaw=="], + "dot-prop": ["dot-prop@6.0.1", "", { "dependencies": { "is-obj": "^2.0.0" } }, "sha512-tE7ztYzXHIeyvc7N+hR3oi7FIbf/NIjVP9hmAt3yMXzrQ072/fpjGLx2GxNxGxUl5V73MEqYzioOMoVhGMJ5cA=="], "dotenv": ["dotenv@17.4.2", "", {}, "sha512-nI4U3TottKAcAD9LLud4Cb7b2QztQMUEfHbvhTH09bqXTxnSie8WnjPALV/WMCrJZ6UV/qHJ6L03OqO3LcdYZw=="], + "drizzle-orm": ["drizzle-orm@0.45.2", "", { "peerDependencies": { "@aws-sdk/client-rds-data": ">=3", "@cloudflare/workers-types": ">=4", "@electric-sql/pglite": ">=0.2.0", "@libsql/client": ">=0.10.0", "@libsql/client-wasm": ">=0.10.0", "@neondatabase/serverless": ">=0.10.0", "@op-engineering/op-sqlite": ">=2", "@opentelemetry/api": "^1.4.1", "@planetscale/database": ">=1.13", "@prisma/client": "*", "@tidbcloud/serverless": "*", "@types/better-sqlite3": "*", "@types/pg": "*", "@types/sql.js": "*", "@upstash/redis": ">=1.34.7", "@vercel/postgres": ">=0.8.0", "@xata.io/client": "*", "better-sqlite3": ">=7", "bun-types": "*", "expo-sqlite": ">=14.0.0", "gel": ">=2", "knex": "*", "kysely": "*", "mysql2": ">=2", "pg": ">=8", "postgres": ">=3", "prisma": "*", "sql.js": ">=1", "sqlite3": ">=5" }, "optionalPeers": ["@aws-sdk/client-rds-data", "@cloudflare/workers-types", "@electric-sql/pglite", "@libsql/client", "@libsql/client-wasm", "@neondatabase/serverless", "@op-engineering/op-sqlite", "@opentelemetry/api", "@planetscale/database", "@prisma/client", "@tidbcloud/serverless", "@types/better-sqlite3", "@types/pg", "@types/sql.js", "@upstash/redis", "@vercel/postgres", "@xata.io/client", "better-sqlite3", "bun-types", "expo-sqlite", "gel", "knex", "kysely", "mysql2", "pg", "postgres", "prisma", "sql.js", "sqlite3"] }, "sha512-kY0BSaTNYWnoDMVoyY8uxmyHjpJW1geOmBMdSSicKo9CIIWkSxMIj2rkeSR51b8KAPB7m+qysjuHme5nKP+E5Q=="], + "dunder-proto": ["dunder-proto@1.0.1", "", { "dependencies": { "call-bind-apply-helpers": "^1.0.1", "es-errors": "^1.3.0", "gopd": "^1.2.0" } }, "sha512-KIN/nDJBQRcXw0MLVhZE9iQHmG68qAVIBg9CqmUYjmQIhgij9U5MFvrqkUL5FbtyyzZuOeOt0zdeRe4UY7ct+A=="], "ee-first": ["ee-first@1.1.1", "", {}, "sha512-WMwm9LhRUo+WUaRN+vRuETqG89IgZphVSNkdFgeb6sS/E4OrDIN7t48CAewSHXc6C8lefD8KKfr5vY61brQlow=="], "effect": ["effect@4.0.0-beta.90", "", { "dependencies": { "@standard-schema/spec": "^1.1.0", "fast-check": "^4.8.0", "find-my-way-ts": "^0.1.6", "ini": "^7.0.0", "kubernetes-types": "^1.30.0", "msgpackr": "^2.0.1", "multipasta": "^0.2.7", "toml": "^4.1.1", "uuid": "^14.0.0", "yaml": "^2.9.0" } }, "sha512-A0U3OE+2oyK/iFG6VYbFj9gwjJ7rFXjgP7qV+m7n/4lOREp9Lfk1///SlGCpX7HRueOCZO1l7aW0KByXuJeiPA=="], + "efrt": ["efrt@2.7.0", "", {}, "sha512-/RInbCy1d4P6Zdfa+TMVsf/ufZVotat5hCw3QXmWtjU+3pFEOvOQ7ibo3aIxyCJw2leIeAMjmPj+1SLJiCpdrQ=="], + "electron-to-chromium": ["electron-to-chromium@1.5.389", "", {}, "sha512-cEto7aeOqBfU1D+c5py5pE+ooscKE75JifxLBdFUZsqAxRS6y7kebtxAZvICszSl05gPjYHDTjY+lXpyGvpJbg=="], "emoji-regex": ["emoji-regex@10.6.0", "", {}, "sha512-toUI84YS5YmxW219erniWD0CIVOo46xGKColeNQRgOzDorgBi1v4D71/OFzgD9GO2UGKIv1C3Sp8DAn0+j5w7A=="], @@ -937,10 +1187,14 @@ "encodeurl": ["encodeurl@2.0.0", "", {}, "sha512-Q0n9HRi4m6JuGIV1eFlmvJB7ZEVxu93IrMyiMsGC0lrMJMWzRgx6WGquyfQgZVb31vhGgXnfmPNNXmxnOkRBrg=="], + "end-of-stream": ["end-of-stream@1.4.5", "", { "dependencies": { "once": "^1.4.0" } }, "sha512-ooEGc6HP26xXq/N+GCGOT0JKCLDGrq2bQUZrQ7gyrJiZANJ/8YDTxTpQBXGMn+WbIQXNVpyWymm7KYVICQnyOg=="], + "enhanced-resolve": ["enhanced-resolve@5.21.6", "", { "dependencies": { "graceful-fs": "^4.2.4", "tapable": "^2.3.3" } }, "sha512-aNnGCvbJ/RIyWo1IuhNdVjnNF+EjH9wpzpNHt+ci/m9He9LJvUN8wrCcXjp9cWsGNAuvSpVFTx/vraAFQ8qGjQ=="], "enquirer": ["enquirer@2.4.1", "", { "dependencies": { "ansi-colors": "^4.1.1", "strip-ansi": "^6.0.1" } }, "sha512-rRqJg/6gd538VHvR3PSrdRBb/1Vy2YfzHqzvbhGIQpDRKIa4FgV/54b5Q1xYSxOOwKvjXweS26E0Q+nAMwp2pQ=="], + "entities": ["entities@4.5.0", "", {}, "sha512-V0hjH4dGPh9Ao5p0MoRY6BVqtwCjhz6vI5LT8AJ55H+4g9/4vbHx1I54fS0XuclLhDHArPQCiMjDxjaL8fPxhw=="], + "env-paths": ["env-paths@2.2.1", "", {}, "sha512-+h1lkLKhZMTYjog1VEpJNG7NZJWcuc2DDk/qsqSTRRCOXiLjeQ1d1/udrUGhqMxUgAlwKNZ0cf2uqan5GLuS2A=="], "environment": ["environment@1.1.0", "", {}, "sha512-xUtoPkMggbz0MPyPiIWr1Kp4aeWJjDZ6SMvURhimjdZgsRuDplF5/s9hcgGhyXMhs+6vpnuoiZ2kFiu3FMnS8Q=="], @@ -963,12 +1217,18 @@ "escape-html": ["escape-html@1.0.3", "", {}, "sha512-NiSupZ4OeuGwr68lGIeym/ksIZMJodUGOSCZ/FSnTxcrekbvqrgdUxlJOMpijaKZVjAJrWrGs/6Jy8OMuyj9ow=="], + "esm-env": ["esm-env@1.2.2", "", {}, "sha512-Epxrv+Nr/CaL4ZcFGPJIYLWFom+YeV1DqMLHJoEd9SYRxNbaFruBwfEX/kkHUJf55j2+TUbmDcmuilbP1TmXHA=="], + "esprima": ["esprima@4.0.1", "", { "bin": { "esparse": "./bin/esparse.js", "esvalidate": "./bin/esvalidate.js" } }, "sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A=="], "esquery": ["esquery@1.7.0", "", { "dependencies": { "estraverse": "^5.1.0" } }, "sha512-Ap6G0WQwcU/LHsvLwON1fAQX9Zp0A2Y6Y/cJBl9r/JbW90Zyg4/zbG6zzKa2OTALELarYHmKu0GhpM5EO+7T0g=="], + "esrap": ["esrap@2.3.0", "", { "dependencies": { "@jridgewell/sourcemap-codec": "^1.4.15" }, "peerDependencies": { "@typescript-eslint/types": "^8.2.0" }, "optionalPeers": ["@typescript-eslint/types"] }, "sha512-GQ/7RN8uOtEfNpzZzBMTzW9JBcX42oaSVtPzdF+6cEL8pqIL094iUpr9jzYGn4O4P/1S60dJ6izyT8F4LYARng=="], + "estraverse": ["estraverse@5.3.0", "", {}, "sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA=="], + "estree-walker": ["estree-walker@2.0.2", "", {}, "sha512-Rfkk/Mp/DL7JVje3u18FxFujQlTNR2q6QfMSMB7AvCBx91NGj/ba3kCfza0f6dVDbw7YlRf/nDrn7pQrCCyQ/w=="], + "etag": ["etag@1.8.1", "", {}, "sha512-aIL5Fx7mawVa300al2BnEE4iNvo1qETxLrPI/o05L7z6go7fCw1J6EQmbK4FmJ2AS7kgVF/KEZWufBfdClMcPg=="], "eventemitter3": ["eventemitter3@5.0.4", "", {}, "sha512-mlsTRyGaPBjPedk6Bvw+aqbsXDtoAyAzm5MO7JgU+yVRyMQ5O8bD4Kcci7BS85f93veegeCPkL8R4GLClnjLFw=="], @@ -995,6 +1255,8 @@ "fast-uri": ["fast-uri@3.1.3", "", {}, "sha512-i70LwGWUduXqzicKXWshooq+sWL1K3WUU5rKZNG/0i3a1OSoX3HqhH5WbWwTmqWfor4urUakGPiRQcleRZTwOg=="], + "fastest-levenshtein": ["fastest-levenshtein@1.0.16", "", {}, "sha512-eRnCtTTtGZFpQCwhJiUOuxPQWRXVKYDn0b2PeHfXL6/Zi53SLAzAHfVhVWK2AryC/WH05kGfxhFIPvTF0SXQzg=="], + "fastq": ["fastq@1.20.1", "", { "dependencies": { "reusify": "^1.0.4" } }, "sha512-GGToxJ/w1x32s/D2EKND7kTil4n8OVk/9mycTc4VDza13lOvpUZTGX3mFSCtV9ksdGBVzvsyAVLM6mHFThxXxw=="], "fdir": ["fdir@6.5.0", "", { "peerDependencies": { "picomatch": "^3 || ^4" }, "optionalPeers": ["picomatch"] }, "sha512-tIbYtZbucOs0BRGqPJkshJUYdL+SDH7dVM8gjy+ERp3WAUjLEFJE+02kanyHtwjWOnwrKYBiwAmM0p4kLJAnXg=="], @@ -1019,6 +1281,8 @@ "fresh": ["fresh@2.0.0", "", {}, "sha512-Rx/WycZ60HOaqLKAi6cHRKKI7zxWbJ31MhntmtwMoaTeF7XFH9hhBp8vITaMidfljRQ6eYWCKkaTK+ykVJHP2A=="], + "fs-constants": ["fs-constants@1.0.0", "", {}, "sha512-y6OAwoSIf7FyjMIv94u+b5rdheZEjzR63GTyZJm5qh4Bi+2YgwLCcI/fPFZkL5PSixOt6ZNKm+w+Hfp/Bciwow=="], + "fs-extra": ["fs-extra@7.0.1", "", { "dependencies": { "graceful-fs": "^4.1.2", "jsonfile": "^4.0.0", "universalify": "^0.1.0" } }, "sha512-YJDaCJZEnBmcbw13fvdAM9AwNOJwOzrE4pqMqBq5nFiEqXUqHwlK4B+3pUw6JNvfSPtX05xFHtYy/1ni01eGCw=="], "fsevents": ["fsevents@2.3.3", "", { "os": "darwin" }, "sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw=="], @@ -1031,6 +1295,8 @@ "gensync": ["gensync@1.0.0-beta.2", "", {}, "sha512-3hN7NaskYvMDLQY55gnW3NQ+mesEAepTqlg+VEbj7zzqEMBVNhzcGYYeqFo/TlYz6eQiFcp1HcsCZO+nGgS8zg=="], + "get-caller-file": ["get-caller-file@2.0.5", "", {}, "sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg=="], + "get-east-asian-width": ["get-east-asian-width@1.6.0", "", {}, "sha512-QRbvDIbx6YklUe6RxeTeleMR0yv3cYH6PsPZHcnVn7xv7zO1BHN8r0XETu8n6Ye3Q+ahtSarc3WgtNWmehIBfA=="], "get-intrinsic": ["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.1", "function-bind": "^1.1.2", "get-proto": "^1.0.1", "gopd": "^1.2.0", "has-symbols": "^1.1.0", "hasown": "^2.0.2", "math-intrinsics": "^1.1.0" } }, "sha512-9fSjSaos/fRIVIp+xSJlE6lfwhES7LNtKaCBIamHsjr2na1BiABJPo0mOjjz8GJDURarmCPGqaiVg5mfjb98CQ=="], @@ -1043,6 +1309,8 @@ "get-stream": ["get-stream@9.0.1", "", { "dependencies": { "@sec-ant/readable-stream": "^0.4.1", "is-stream": "^4.0.1" } }, "sha512-kVCxPF3vQM/N0B1PmoqVUqgHP+EeVjmZSQn+1oCRPxd2P21P2F19lIgbR3HBosbB1PUhOAoctJnfEn2GbN2eZA=="], + "giget": ["giget@3.3.0", "", { "bin": { "giget": "dist/cli.mjs" } }, "sha512-gzi2D96p+AMfDcmJHGDj3KJ9NRiwvlFAU5yfa3ROwWZmFUjX4P43x3BcyRaOMMLto1vUo7C+86+MFhYTl6Ryiw=="], + "glob": ["glob@13.0.6", "", { "dependencies": { "minimatch": "^10.2.2", "minipass": "^7.1.3", "path-scurry": "^2.0.2" } }, "sha512-Wjlyrolmm8uDpm/ogGyXZXb1Z+Ca2B8NbJwqBVg0axK9GbBeoS7yGV6vjXnYdGm6X53iehEuxxbyiKp8QmN4Vw=="], "glob-parent": ["glob-parent@5.1.2", "", { "dependencies": { "is-glob": "^4.0.1" } }, "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow=="], @@ -1055,13 +1323,25 @@ "graceful-fs": ["graceful-fs@4.2.11", "", {}, "sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ=="], + "grad-school": ["grad-school@0.0.5", "", {}, "sha512-rXunEHF9M9EkMydTBux7+IryYXEZinRk6g8OBOGDBzo/qWJjhTxy86i5q7lQYpCLHN8Sqv1XX3OIOc7ka2gtvQ=="], + "h3-v2": ["h3@2.0.1-rc.20", "", { "dependencies": { "rou3": "^0.8.1", "srvx": "^0.11.13" }, "peerDependencies": { "crossws": "^0.4.1" }, "optionalPeers": ["crossws"], "bin": { "h3": "bin/h3.mjs" } }, "sha512-28ljodXuUp0fZovdiSRq4G9OgrxCztrJe5VdYzXAB7ueRvI7pIUqLU14Xi3XqdYJ/khXjfpUOOD2EQa6CmBgsg=="], + "has-flag": ["has-flag@4.0.0", "", {}, "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ=="], + "has-symbols": ["has-symbols@1.1.0", "", {}, "sha512-1cDNdwJ2Jaohmb3sg4OmKaMBwuC48sYni5HUw2DvsC8LjGTLK9h+eb1X6RyuOHe4hT0ULCW68iomhjUoKUqlPQ=="], "hasown": ["hasown@2.0.4", "", { "dependencies": { "function-bind": "^1.1.2" } }, "sha512-T2UbfbBEF32wiepXIsMlTW9+dDYC6wMh/t/vYA4tuOMKqWz/n3vr1NFSxQiyP+zk2mXsoMA/i/7qV6LKut1t1A=="], - "hono": ["hono@4.12.29", "", {}, "sha512-1hNiRjawYrLq/4m3DQQjPGFg0VZkk4RjQJDff/excI6Dm9BiL75qxGrd7/c6YOxPdq6AscP3LiXhQ6fKFC1Waw=="], + "hono": ["hono@4.12.31", "", {}, "sha512-zJIHFrl6bq3RDd2YusFNCDlM8qUprxKswyi/OPzPyzKDdyBXDqWx8bZlZ7R+saTdSTatUmb3O7K4SspGPaEOQg=="], + + "hosted-git-info": ["hosted-git-info@10.1.1", "", { "dependencies": { "lru-cache": "^11.1.0" } }, "sha512-DeOnSPAvOndYKfw075gt8yZzQ7S2hNztw34zBTfhIzLhmBTswIBg5/y+pqu/VD5cYWm5goAFTusDmUEmKZ0PEQ=="], + + "html-to-text": ["html-to-text@9.0.5", "", { "dependencies": { "@selderee/plugin-htmlparser2": "^0.11.0", "deepmerge": "^4.3.1", "dom-serializer": "^2.0.0", "htmlparser2": "^8.0.2", "selderee": "^0.11.0" } }, "sha512-qY60FjREgVZL03vJU6IfMV4GDjGBIoOyvuFdpBDIX9yTlDw0TjxVBQp+P8NvpdIXNJvfWBTNul7fsAQJq2FNpg=="], + + "html5parser": ["html5parser@3.0.0", "", {}, "sha512-iNpSopa+4YHX50UOk825tBy7MghmXHo/ZpLskBYN0kAr1xhH8GlIMk5bLRXcZlfP3AnLUcSuFMu8C4MdOUxA8A=="], + + "htmlparser2": ["htmlparser2@8.0.2", "", { "dependencies": { "domelementtype": "^2.3.0", "domhandler": "^5.0.3", "domutils": "^3.0.1", "entities": "^4.4.0" } }, "sha512-GYdjWKDkbRLkZ5geuHs5NY1puJ+PXwP7+fHPRz06Eirsb9ugf6d8kkXav6ADhcODhFFPMIXyxkxSuMf3D6NCFA=="], "http-errors": ["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" } }, "sha512-4FbRdAX+bSdmo4AUFuS0WNiPz8NgFt+r8ThgNWmlrjQjt1Q7ZR9+zTlce2859x4KSXrwIsaeTqDoKQmtP8pLmQ=="], @@ -1073,8 +1353,12 @@ "husky": ["husky@9.1.7", "", { "bin": { "husky": "bin.js" } }, "sha512-5gs5ytaNjBrh5Ow3zrvdUUY+0VxIuWVL4i9irt6friV+BqdCfmV11CQTWMiBYWHbXhco+J1kHfTOUkePhCDvMA=="], + "ical-generator": ["ical-generator@11.0.0", "", { "peerDependencies": { "@touch4it/ical-timezones": ">=1.6.0", "@types/luxon": ">= 1.26.0", "@types/mocha": ">= 8.2.1", "@types/node": "*", "dayjs": ">= 1.10.0", "luxon": ">= 1.26.0", "moment": ">= 2.29.0", "moment-timezone": ">= 0.5.33", "rrule": ">= 2.6.8" }, "optionalPeers": ["@touch4it/ical-timezones", "@types/luxon", "@types/mocha", "@types/node", "dayjs", "luxon", "moment", "moment-timezone", "rrule"] }, "sha512-OScZbXduIbjqtJzq0WLyPpAuKnc106+l28wszD+Wi2O9jXn76NVBfr4Ksv2XFyQn4JNZ9vWr5xAac0uT/FhVag=="], + "iconv-lite": ["iconv-lite@0.7.3", "", { "dependencies": { "safer-buffer": ">= 2.1.2 < 3.0.0" } }, "sha512-IKXpvIzjnC9XTAUbVBcMfGS0EPaIXtW6v+zr+RRp+hqULEpo0owZax6wyRwPOJbWbzjYspQwusTsfVr0ifh4uQ=="], + "ieee754": ["ieee754@1.2.1", "", {}, "sha512-dcyqhDvX1C46lXZcVqCpK+FtMRQVdIMN6/Df5js2zouUsqG7I6sFxitIC+7KYK29KdXOLHdu9zL4sFnoVQnqaA=="], + "ignore": ["ignore@5.3.2", "", {}, "sha512-hsBTNUqQTDwkWtcdYI2i06Y/nUBEsNEDJKjWdigLvegy8kDuJAS8uRlpkkcQpyEXL0Z/pjDy5HBmMjRCJ2gq+g=="], "import-fresh": ["import-fresh@3.3.1", "", { "dependencies": { "parent-module": "^1.0.0", "resolve-from": "^4.0.0" } }, "sha512-TR3KfrTZTYLPB6jUjfx6MF9WcWrHL9su5TObK4ZkYgBdWKPOFoSoQIdEuTuR82pmtxH2spWG9h6etwfr1pLBqQ=="], @@ -1091,8 +1375,16 @@ "ipaddr.js": ["ipaddr.js@1.9.1", "", {}, "sha512-0KI/607xoxSToH7GjN1FfSbLoU0+btTicjsQSWQlh/hZykN8KpmMf7uYwPW3R+akZ6R/w18ZlXSHBYXiYUPO3g=="], + "is-accessor-descriptor": ["is-accessor-descriptor@1.0.2", "", { "dependencies": { "hasown": "^2.0.3" } }, "sha512-AIbwAcazqP3R65dGvqk1V+a+vE5Fg1yu/ZKMOiBWSUIXXiwQkYmXQcVa2O0nh0tSDKDFKxG2mY7dB1Sr4hEP1g=="], + "is-arrayish": ["is-arrayish@0.2.1", "", {}, "sha512-zz06S8t0ozoDXMG+ube26zeCTNXcKIPJZJi8hBrF4idCLms4CG9QtK7qBl1boi5ODzFpjswb5JPmHCbMpjaYzg=="], + "is-buffer": ["is-buffer@1.1.6", "", {}, "sha512-NcdALwpXkTm5Zvvbk7owOUSvVvBKDgKP5/ewfXEznmQFfs4ZRmanOeKBTjRVjka3QFoN6XJ+9F3USqfHqTaU5w=="], + + "is-data-descriptor": ["is-data-descriptor@1.0.1", "", { "dependencies": { "hasown": "^2.0.0" } }, "sha512-bc4NlCDiCr28U4aEsQ3Qs2491gVq4V8G7MQyws968ImqjKuYtTJXrl7Vq7jsN7Ly/C3xj5KWFrY7sHNeDkAzXw=="], + + "is-descriptor": ["is-descriptor@1.0.4", "", { "dependencies": { "is-accessor-descriptor": "^1.0.2", "is-data-descriptor": "^1.0.1" } }, "sha512-bv5z95W0dDtLfKwDfkTNxaRxmISBD3eQBKJeVxv2AQ7MjuUnDNG7cIQqvFtMOUYhsILWHhMayWdoGqNqYYYjww=="], + "is-docker": ["is-docker@2.2.1", "", { "bin": { "is-docker": "cli.js" } }, "sha512-F+i2BKsFrH66iaUFc0woD8sLy8getkwTwtOBjvs56Cx4CgJDeKQeqfz8wAYiSb8JOprWhHH5p77PbmYCvvUuXQ=="], "is-extglob": ["is-extglob@2.1.1", "", {}, "sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ=="], @@ -1101,13 +1393,15 @@ "is-glob": ["is-glob@4.0.3", "", { "dependencies": { "is-extglob": "^2.1.1" } }, "sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg=="], + "is-in-ci": ["is-in-ci@2.0.0", "", { "bin": { "is-in-ci": "cli.js" } }, "sha512-cFeerHriAnhrQSbpAxL37W1wcJKUUX07HyLWZCW1URJT/ra3GyUTzBgUnh24TMVfNTV2Hij2HLxkPHFZfOZy5w=="], + "is-in-ssh": ["is-in-ssh@1.0.0", "", {}, "sha512-jYa6Q9rH90kR1vKB6NM7qqd1mge3Fx4Dhw5TVlK1MUBqhEOuCagrEHMevNuCcbECmXZ0ThXkRm+Ymr51HwEPAw=="], "is-inside-container": ["is-inside-container@1.0.0", "", { "dependencies": { "is-docker": "^3.0.0" }, "bin": { "is-inside-container": "cli.js" } }, "sha512-KIYLCCJghfHZxqjYBE7rEy0OBuTd5xCHS7tHVgvCLkx7StIoaxwNW3hCALgEUjFfeRk+MG/Qxmp/vtETEF3tRA=="], "is-interactive": ["is-interactive@2.0.0", "", {}, "sha512-qP1vozQRI+BMOPcjFzrjXuQvdak2pHNUMZoeG2eRbiSqyvbEf/wQtEOTOX1guk6E3t36RkaqiSt8A/6YElNxLQ=="], - "is-number": ["is-number@7.0.0", "", {}, "sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng=="], + "is-number": ["is-number@3.0.0", "", { "dependencies": { "kind-of": "^3.0.2" } }, "sha512-4cboCqIpliH+mAvFNegjZQ4kgKc3ZUhQVr3HvWbSh5q3WH2v82ct+T2Y1hdU5Gdtorx/cLifQjqCbL7bpznLTg=="], "is-obj": ["is-obj@3.0.0", "", {}, "sha512-IlsXEHOjtKhpN8r/tRFj2nDyTmHvcfNeu/nrRIcXE17ROeatXchkojffa1SpdqW4cr/Fj6QkEf/Gn4zf6KKvEQ=="], @@ -1115,6 +1409,8 @@ "is-promise": ["is-promise@4.0.0", "", {}, "sha512-hvpoI6korhJMnej285dSg6nu1+e6uxs7zG3BYAm5byqDsgJNWwxzM6z6iZiAgQR4TJ30JmBTOwqZUw3WlyH3AQ=="], + "is-reference": ["is-reference@3.0.3", "", { "dependencies": { "@types/estree": "^1.0.6" } }, "sha512-ixkJoqQvAP88E6wLydLGGqCJsrFUnqoH6HnaczB8XmDH1oaWU+xxdptvikTgaEhtZ53Ky6YXiBuUI2WXLMCwjw=="], + "is-regexp": ["is-regexp@3.1.0", "", {}, "sha512-rbku49cWloU5bSMI+zaRaXdQHXnthP6DZ/vLnfdSKyL4zUzuWnomtOEiZZOd+ioQ+avFo/qau3KPTc7Fjy1uPA=="], "is-stream": ["is-stream@4.0.1", "", {}, "sha512-Dnz92NInDqYckGEUJv689RbRiTSEHCQ7wOVeALbkOz999YpqT46yMRIGtSNl2iCL1waAZSx40+h59NV/EwzV/A=="], @@ -1143,20 +1439,28 @@ "json-parse-even-better-errors": ["json-parse-even-better-errors@2.3.1", "", {}, "sha512-xyFwyhro/JEof6Ghe2iz2NcXoj2sloNsWr/XsERDK/oiPCfaNhl5ONfp+jQdAZRQQ0IJWNzH9zIZF7li91kh2w=="], + "json-schema": ["json-schema@0.4.0", "", {}, "sha512-es94M3nTIfsEPisRafak+HDLfHXnKBhV3vU5eqPcS3flIWqcxJWgXHXiey3YrpaNsanY5ei1VoYEbOzijuq9BA=="], + "json-schema-traverse": ["json-schema-traverse@1.0.0", "", {}, "sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug=="], "json-schema-typed": ["json-schema-typed@8.0.2", "", {}, "sha512-fQhoXdcvc3V28x7C7BMs4P5+kNlgUURe2jmUT1T//oBRMDrqy1QPelJimwZGo7Hg9VPV3EQV5Bnq4hbFy2vetA=="], "json5": ["json5@2.2.3", "", { "bin": { "json5": "lib/cli.js" } }, "sha512-XmOWe7eyHYH14cLdVPoyg+GOH3rYX++KpzrylJwSW98t3Nk+U8XOl8FWKOgwtzdb8lXGf6zYwDUzeHMWfxasyg=="], + "jsonc-parser": ["jsonc-parser@3.3.1", "", {}, "sha512-HUgH65KyejrUFPvHFPbqOY0rsFip3Bo5wb4ngvdi1EpCYWUQDC5V+Y7mZws+DLkr4M//zQJoanu1SP+87Dv1oQ=="], + "jsonfile": ["jsonfile@4.0.0", "", { "optionalDependencies": { "graceful-fs": "^4.1.6" } }, "sha512-m6F1R3z8jjlf2imQHS2Qez5sjKWQzbuuhuJ/FKYFRZvPE3PuHcSMVZzfsLhGVOkfd20obL5SWEBew5ShlquNxg=="], + "kind-of": ["kind-of@3.2.2", "", { "dependencies": { "is-buffer": "^1.1.5" } }, "sha512-NOW9QQXMoZGg/oqnVNoNTTIFEIid1627WCffUBJEdMxYApq7mNE7CpzucIPc+ZQg25Phej7IJSmX3hO+oblOtQ=="], + "kleur": ["kleur@4.1.5", "", {}, "sha512-o+NO+8WrRiQEE4/7nwRJhN1HWpVmJm511pBHUxPLtp0BUISzlBplORYSmTclCnJvQq2tKu/sgl3xVpkc7ZWuQQ=="], "kubernetes-types": ["kubernetes-types@1.30.0", "", {}, "sha512-Dew1okvhM/SQcIa2rcgujNndZwU8VnSapDgdxlYoB84ZlpAD43U6KLAFqYo17ykSFGHNPrg0qry0bP+GJd9v7Q=="], "kysely": ["kysely@0.29.3", "", {}, "sha512-VHtBdW6XB/pgoTSqraM3UAa2rYoYdNXqnNPpX+8XXP+cwYbVEFuAp3HyPt1vpNfU9l7Y2kpUrA9QDPsy8uUqOQ=="], + "leac": ["leac@0.6.0", "", {}, "sha512-y+SqErxb8h7nE/fiEX07jsbuhrpO9lL8eca7/Y1nuWV2moNlXhyd59iDGcRf6moVyDMbmTNzL40SUyrFU/yDpg=="], + "lightningcss": ["lightningcss@1.32.0", "", { "dependencies": { "detect-libc": "^2.0.3" }, "optionalDependencies": { "lightningcss-android-arm64": "1.32.0", "lightningcss-darwin-arm64": "1.32.0", "lightningcss-darwin-x64": "1.32.0", "lightningcss-freebsd-x64": "1.32.0", "lightningcss-linux-arm-gnueabihf": "1.32.0", "lightningcss-linux-arm64-gnu": "1.32.0", "lightningcss-linux-arm64-musl": "1.32.0", "lightningcss-linux-x64-gnu": "1.32.0", "lightningcss-linux-x64-musl": "1.32.0", "lightningcss-win32-arm64-msvc": "1.32.0", "lightningcss-win32-x64-msvc": "1.32.0" } }, "sha512-NXYBzinNrblfraPGyrbPoD19C1h9lfI/1mzgWYvXUTe414Gz/X1FD2XBZSZM7rRTrMA8JL3OtAaGifrIKhQ5yQ=="], "lightningcss-android-arm64": ["lightningcss-android-arm64@1.32.0", "", { "os": "android", "cpu": "arm64" }, "sha512-YK7/ClTt4kAK0vo6w3X+Pnm0D2cf2vPHbhOXdoNti1Ga0al1P4TBZhwjATvjNwLEBCnKvjJc2jQgHXH0NEwlAg=="], @@ -1187,18 +1491,28 @@ "listr2": ["listr2@10.2.2", "", { "dependencies": { "cli-truncate": "^5.2.0", "eventemitter3": "^5.0.4", "log-update": "^6.1.0", "rfdc": "^1.4.1", "wrap-ansi": "^10.0.0" } }, "sha512-JtNtbZj8q5BnDMR7trpwvwk3RIrANtIVzEUm8w7amp6xelLgyuq+4WZoTH913XaQAoH/cNdYhaNzBPA2U3xbDw=="], + "locate-character": ["locate-character@3.0.0", "", {}, "sha512-SW13ws7BjaeJ6p7Q6CO2nchbYEc3X3J6WrmTTDto7yMPqVSZTUyY5Tjbid+Ab8gLnATtygYtiDIJGQRRn2ZOiA=="], + "locate-path": ["locate-path@6.0.0", "", { "dependencies": { "p-locate": "^5.0.0" } }, "sha512-iPZK6eYjbxRu3uB4/WZ3EsEIMJFMqAoopl3R+zuq0UjcAm/MO6KCweDgPfP3elTztoKP3KtnVHxTn2NHBSDVUw=="], + "lodash.camelcase": ["lodash.camelcase@4.3.0", "", {}, "sha512-TwuEnCnxbc3rAvhf/LbG7tJUDzhqXyFnv3dtzLOPgCG/hODL7WFnsbwktkD7yUV0RrreP/l1PALq/YSg6VvjlA=="], + "lodash.startcase": ["lodash.startcase@4.4.0", "", {}, "sha512-+WKqsK294HMSc2jEbNgpHpd0JfIBhp7rEV4aqXWqFr6AlXov+SlcgB1Fv01y2kGe3Gc8nMW7VA0SrGuSkRfIEg=="], "log-symbols": ["log-symbols@6.0.0", "", { "dependencies": { "chalk": "^5.3.0", "is-unicode-supported": "^1.3.0" } }, "sha512-i24m8rpwhmPIS4zscNzK6MSEhk0DUWa/8iYQWxhffV8jkI4Phvs3F+quL5xvS0gdQR0FyTCMMH33Y78dDTzzIw=="], "log-update": ["log-update@6.1.0", "", { "dependencies": { "ansi-escapes": "^7.0.0", "cli-cursor": "^5.0.0", "slice-ansi": "^7.1.0", "strip-ansi": "^7.1.0", "wrap-ansi": "^9.0.0" } }, "sha512-9ie8ItPR6tjY5uYJh8K/Zrv/RMZ5VOlOWvtZdEHYSTFKZfIBPQa9tOAEeAWhd+AnIneLJ22w5fjOYtoutpWq5w=="], + "long": ["long@5.3.2", "", {}, "sha512-mNAgZ1GmyNhD7AuqnTG3/VQ26o760+ZYBPKjPvugO8+nLbYfX6TVpJPseBvopbdY+qpZ/lKUnmEc1LeZYS3QAA=="], + "lru-cache": ["lru-cache@11.5.2", "", {}, "sha512-4pfM1Ff0x50o0tQwb5ucw/RzNyD0/YJME6IVcStalZuMWxdt3sR3huStTtxz4PUmvZfRguvDejasvQ2kifR11g=="], "lucide-react": ["lucide-react@1.24.0", "", { "peerDependencies": { "react": "^16.5.1 || ^17.0.0 || ^18.0.0 || ^19.0.0" } }, "sha512-YT6mBD8lGKkg4nM39enlm94/sfJIiW0YKUT60fBy4YK8tai31ylg1VhGNWxkpSKHo9UagfnZqwIff3HTDQwXeA=="], + "lunorash": ["lunorash@1.0.0-alpha.98", "", { "dependencies": { "@lunora/cli": "1.0.0-alpha.97", "@lunora/client": "1.0.0-alpha.27", "@lunora/do": "1.0.0-alpha.41", "@lunora/errors": "1.0.0-alpha.7", "@lunora/flags": "1.0.0-alpha.15", "@lunora/ratelimit": "1.0.0-alpha.9", "@lunora/runtime": "1.0.0-alpha.35", "@lunora/server": "1.0.0-alpha.30", "@lunora/values": "1.0.0-alpha.10" }, "bin": { "lunora": "./dist/bin.mjs" } }, "sha512-AEb+KNKlHaTb2slZZn7Jku1cPJPfXweFfdT4tCJFj6VymGanH3PHPSeHpcJ1jBx+x+LyzNuhYeqT/lQwu3dJfQ=="], + + "luxon": ["luxon@3.7.2", "", {}, "sha512-vtEhXh/gNjI9Yg1u4jX/0YVPMvxzHuGgCm6tC5kZyb08yjGWGnqAjGJvcXbqQR2P3MyMEFnRbpcdFS6PBcLqew=="], + "magic-string": ["magic-string@0.30.21", "", { "dependencies": { "@jridgewell/sourcemap-codec": "^1.5.5" } }, "sha512-vd2F4YUyEXKGcLHoq+TEyCjxueSeHnFxyyjNp80yg0XV4vUhnDer/lvvlqM/arB5bXQN5K2/3oinyCRyx8T2CQ=="], "math-intrinsics": ["math-intrinsics@1.1.0", "", {}, "sha512-/IXtbwEk5HTPyEwyKX6hGkYXxM9nbj64B+ilVJnC/R6B0pH5G4V3b0pVbL7DBj4tkhBAppbQUlf6F6Xl9LHu1g=="], @@ -1215,6 +1529,8 @@ "micromatch": ["micromatch@4.0.8", "", { "dependencies": { "braces": "^3.0.3", "picomatch": "^2.3.1" } }, "sha512-PXwfBhYu0hBCPw8Dn0E+WDYb7af3dSLVWKi3HGv84IdF4TyFoC0ysxFd0Goxw7nSv4T/PzEJQxsYsEiFCKo2BA=="], + "mime": ["mime@4.1.0", "", { "bin": { "mime": "bin/cli.js" } }, "sha512-X5ju04+cAzsojXKes0B/S4tcYtFAJ6tTMuSPBEn9CPGlrWr8Fiw7qYeLT0XyH80HSoAoqWCaz+MWKh22P7G1cw=="], + "mime-db": ["mime-db@1.54.0", "", {}, "sha512-aU5EJuIN2WDemCcAp2vFBfp/m4EAhWJnUNSSw0ixs7/kXbd6Pg64EmwJkNdFhB8aWt1sH2CTXrLxo/iAGV3oPQ=="], "mime-types": ["mime-types@3.0.2", "", { "dependencies": { "mime-db": "^1.54.0" } }, "sha512-Lbgzdk0h4juoQ9fCKXW4by0UJqj+nOOrI9MJ1sSj4nI8aI2eo1qmvQEie4VD1glsS250n15LsWsYtCugiStS5A=="], @@ -1231,6 +1547,8 @@ "minipass": ["minipass@7.1.3", "", {}, "sha512-tEBHqDnIoM/1rXME1zgka9g6Q2lcoCkxHLuc7ODJ5BxbP5d4c2Z5cGgtXAku59200Cx7diuHTOYfSBD8n6mm8A=="], + "mkdirp-classic": ["mkdirp-classic@0.5.3", "", {}, "sha512-gKLcREMhtuZRwRAfqP3RFW+TK4JqApVBtOIftVgjuABpAtpxhPGaDcfvbhNvD0B8iD1oUr/txX35NjcaY6Ns/A=="], + "module-details-from-path": ["module-details-from-path@1.0.4", "", {}, "sha512-EGWKgxALGMgzvxYF1UyGTy0HXX/2vHLkw6+NvDKW2jypWbHpjQuj4UMcqQWXHERJhVGKikolT06G3bcKe4fi7w=="], "motion": ["motion@12.42.2", "", { "dependencies": { "framer-motion": "^12.42.2", "tslib": "^2.4.0" }, "peerDependencies": { "@emotion/is-prop-valid": "*", "react": "^18.0.0 || ^19.0.0", "react-dom": "^18.0.0 || ^19.0.0" }, "optionalPeers": ["@emotion/is-prop-valid", "react", "react-dom"] }, "sha512-Atvv11yUKIid41cVrRBDVX5m8tF8kNpExRSlbpt6APClhDjtwQssgFHhQzejxw7/7YYbjHSPKBVbHo05BuJT5Q=="], @@ -1249,6 +1567,8 @@ "multipasta": ["multipasta@0.2.8", "", {}, "sha512-ZPWuMKyv0cSO29f7hozp+k6+crZbQijV8ipMvxNxRf2SwtYGTX1ZX89Kd20VV4H9Znonx+EQn+iy1wGQsJ+b+Q=="], + "nan": ["nan@2.28.0", "", {}, "sha512-fTsDz99OTq2sVePhGdp4qQhggZFtKr64ZNVyVajRKtMOkJxYekplBh577PiJB12v/D3s2E5cGtOI45LWp6rnLQ=="], + "nanoid": ["nanoid@3.3.15", "", { "bin": { "nanoid": "bin/nanoid.cjs" } }, "sha512-y7Wygv/7mEOvxTuEQDB8StXdMRBWf1kR/tlhAzBRUFkB2jfcLOAxO/SHmOO2zgz1pVgK29/kyupn059/bCHdjA=="], "nanostores": ["nanostores@1.4.0", "", {}, "sha512-i0tloweeudshAEuddpDxcg9Ik6pkPfVsHIgKyf143JrgG7/MOh0+q7BypdLXZPoOP7fOYt1eTcwGkyiVmhJFkA=="], @@ -1261,6 +1581,8 @@ "node-releases": ["node-releases@2.0.51", "", {}, "sha512-wRNIrw4DmVLKQlbgOMdkMx27Wrpzes2hh5Jtbi2bjPd+4wJstWIqP5A+lscnqbm0xxmT5Bpg8Lec5ItEBwx6BQ=="], + "normalize-package-data": ["normalize-package-data@9.0.0", "", { "dependencies": { "hosted-git-info": "^10.1.0", "semver": "^7.3.5", "validate-npm-package-license": "^3.0.4" } }, "sha512-la34cHOCAT6itNOYCvPi40XP8r0y6OHuNkooOfnfFUHdgy5MBw665qq5xsuS02AEC7WPQvhwvb7E9PI1gipplw=="], + "npm-run-path": ["npm-run-path@6.0.0", "", { "dependencies": { "path-key": "^4.0.0", "unicorn-magic": "^0.3.0" } }, "sha512-9qny7Z9DsQU8Ou39ERsPU4OZQlSTP47ShQzuKZ6PRXpYLtIFgl/DEBYEXKlvcEa+9tHVcK8CF81Y2V72qaZhWA=="], "object-assign": ["object-assign@4.1.1", "", {}, "sha512-rJgTQnkUnH1sFw8yT6VSU3zD3sWmu6sZhIseY8VX+GRu3P6F7Fu+JNDoXfklElbLJSnc3FUQHVe4cU5hj+BcUg=="], @@ -1307,8 +1629,12 @@ "parse-ms": ["parse-ms@4.0.0", "", {}, "sha512-TXfryirbmq34y8QBwgqCVLi+8oA3oWx2eAnSn62ITyEhEYaWRlVZ2DvMM9eZbMs/RfxPu/PK/aBLyGj4IrqMHw=="], + "parseley": ["parseley@0.12.1", "", { "dependencies": { "leac": "^0.6.0", "peberminta": "^0.9.0" } }, "sha512-e6qHKe3a9HWr0oMRVDTRhKce+bRO8VGQR3NyVwcjwrbhMmFCX9KszEV35+rn4AdilFAq9VPxP/Fe1wC9Qjd2lw=="], + "parseurl": ["parseurl@1.3.3", "", {}, "sha512-CiyeOxFT/JZyN5m0z9PfXw4SCBJ6Sygz1Dpl0wqjlhDEGGBP1GnsUVEL0p63hoG1fcj3fHynXi9NYO4nWOL+qQ=="], + "patch-console": ["patch-console@2.0.0", "", {}, "sha512-0YNdUceMdaQwoKce1gatDScmMo5pu/tfABfnzEqeG0gtTmd7mh/WcwgUjtAeOU7N8nFFlbQBnFK2gXW5fGvmMA=="], + "path-browserify": ["path-browserify@1.0.1", "", {}, "sha512-b7uo2UCUOYZcnF/3ID0lulOJi/bafxa1xPe7ZPsammBSpjSWQkjNxlt635YGS2MiR9GjvuXCtz2emr3jbsz98g=="], "path-exists": ["path-exists@4.0.0", "", {}, "sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w=="], @@ -1323,6 +1649,8 @@ "pathe": ["pathe@2.0.3", "", {}, "sha512-WUjGcAqP1gQacoQe+OBJsFA7Ld4DyXuUIjZ5cc75cLHvJ7dtNsTugphxIADwspS+AraAUePCKrSVtPLFj/F88w=="], + "peberminta": ["peberminta@0.9.0", "", {}, "sha512-XIxfHpEuSJbITd1H3EeQwpcZbTLHc+VVr8ANI9t5sit565tsI4/xK3KWTUFE2e6QiangUkh3B0jihzmGnNrRsQ=="], + "picocolors": ["picocolors@1.1.1", "", {}, "sha512-xceH2snhtb5M9liqDsmEw56le376mTZkEX/jEb/RxNFyegNul7eNslCXP9FDj/Lcu0X8KEyMceP2ntpaHrDEVA=="], "picomatch": ["picomatch@4.0.5", "", {}, "sha512-RvwwcruNjI1ncT5xRakeyS9Lf8lcItv34KD+aif+VH9kduAyfYBipGh12274xtenIPZ119/R9BdTBa8gAwSh0A=="], @@ -1337,6 +1665,8 @@ "playwright-core": ["playwright-core@1.61.1", "", { "bin": { "playwright-core": "cli.js" } }, "sha512-h7Qlt6m4REp25qvIdvbDtVmD4LqVXfpRxhORv9L0jzETM05p4fuPJ3dKyuSXQxDSbXnmS79HAgi9589lGSpLkg=="], + "postal-mime": ["postal-mime@2.7.5", "", {}, "sha512-GNEXKvWFQnbgO5NlrGzVa0FmWzBZ24PersAWErttSg1Hjpf0ATxTwS5DOMGaOpTG6bUh5cTr7xi0jAD942wCJA=="], + "postcss": ["postcss@8.5.16", "", { "dependencies": { "nanoid": "^3.3.12", "picocolors": "^1.1.1", "source-map-js": "^1.2.1" } }, "sha512-vuwillviilfKZsg0VGj5R/YwwcHx4SLsIOI/7K6mQkWx+l5cUHTjj5g0AasTBcyXsbfTgrwsUNmVUb5xVwyPwg=="], "postcss-selector-parser": ["postcss-selector-parser@7.1.4", "", { "dependencies": { "cssesc": "^3.0.0", "util-deprecate": "^1.0.2" } }, "sha512-HeP7D2wyhkR+XaK6v4W8oRF62Dsz4flyuczALJp61GckGm42u1saSSJ/0auvcBqxs3jMRFEcPK34At/0JBKdOg=="], @@ -1351,10 +1681,14 @@ "prompts": ["prompts@2.4.2", "", { "dependencies": { "kleur": "^3.0.3", "sisteransi": "^1.0.5" } }, "sha512-NxNv/kLguCA7p3jE8oL2aEBsrJWgAakBpgmgK6lpPWV+WuOmY6r2/zbAVnP+T8bQlA0nzHXSJSJW0Hq7ylaD2Q=="], + "protobufjs": ["protobufjs@7.6.5", "", { "dependencies": { "@protobufjs/aspromise": "^1.1.2", "@protobufjs/base64": "^1.1.2", "@protobufjs/codegen": "^2.0.5", "@protobufjs/eventemitter": "^1.1.1", "@protobufjs/fetch": "^1.1.1", "@protobufjs/float": "^1.0.2", "@protobufjs/path": "^1.1.2", "@protobufjs/pool": "^1.1.0", "@protobufjs/utf8": "^1.1.1", "@types/node": ">=13.7.0", "long": "^5.3.2" } }, "sha512-/FPD0nUc9jH6rfFjji9IBqOz4pcSE3CsT1m7Ep6Mdb0LxSUMj8hgl6GomOvZzpNpAqqGaXA0P3VSrZLFzIhQrw=="], + "proxy-addr": ["proxy-addr@2.0.7", "", { "dependencies": { "forwarded": "0.2.0", "ipaddr.js": "1.9.1" } }, "sha512-llQsMLSUDUPT44jdrU/O37qlnifitDP+ZwrmmZcoSKyLKvtZxpyV0n2/bD/N4tBAAZ/gJEdZU7KMraoK1+XYAg=="], "proxy-from-env": ["proxy-from-env@1.1.0", "", {}, "sha512-D+zkORCbA9f1tdWRK0RaCR3GPv50cMxcrz4X8k5LTSUD1Dkw47mKJEZQNunItRTkWwgtaUSo1RVFRIG9ZXiFYg=="], + "pump": ["pump@3.0.4", "", { "dependencies": { "end-of-stream": "^1.1.0", "once": "^1.3.1" } }, "sha512-VS7sjc6KR7e1ukRFhQSY5LM2uBWAUPiOPa/A3mkKmiMwSmRFUITt0xuj+/lesgnCv+dPIEYlkzrcyXgquIHMcA=="], + "pure-rand": ["pure-rand@8.4.2", "", {}, "sha512-vvuOGgcuPJAirlHvuQw1TrOiw7ptaIXXmIbNuiNOY6lNGJJH49PQ1Kj4nd783nPdQhQdicgOjVI2yI/9BD6/Ng=="], "qs": ["qs@6.15.3", "", { "dependencies": { "es-define-property": "^1.0.1", "side-channel": "^1.1.1" } }, "sha512-O9gl3zCl5h5blw1KGUzQKhA5oUXSl8rwUIM5o0S3nCXMliSvy5Dzx7/DJcI+SwgICv+IneSZwhBh1oSyEHA71A=="], @@ -1371,6 +1705,8 @@ "react-dom": ["react-dom@19.2.7", "", { "dependencies": { "scheduler": "^0.27.0" }, "peerDependencies": { "react": "^19.2.7" } }, "sha512-t0BRVXvbiE/o20Hfw669rLbMCDWtYZLvmJigy2f0MxsXF+71pxhR3xOkspmsO8h3ZlNzyibAmtCa3l4lYKk6gQ=="], + "react-reconciler": ["react-reconciler@0.33.0", "", { "dependencies": { "scheduler": "^0.27.0" }, "peerDependencies": { "react": "^19.2.0" } }, "sha512-KetWRytFv1epdpJc3J4G75I4WrplZE5jOL7Yq0p34+OVOKF4Se7WrdIdVC45XsSSmUTlht2FM/fM1FZb1mfQeA=="], + "react-remove-scroll": ["react-remove-scroll@2.7.2", "", { "dependencies": { "react-remove-scroll-bar": "^2.3.7", "react-style-singleton": "^2.2.3", "tslib": "^2.1.0", "use-callback-ref": "^1.3.3", "use-sidecar": "^1.1.3" }, "peerDependencies": { "@types/react": "*", "react": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react"] }, "sha512-Iqb9NjCCTt6Hf+vOdNIZGdTiH1QSqr27H/Ek9sv/a97gfueI/5h1s3yRi1nngzMUaOOToin5dI1dXKdXiF+u0Q=="], "react-remove-scroll-bar": ["react-remove-scroll-bar@2.3.8", "", { "dependencies": { "react-style-singleton": "^2.2.2", "tslib": "^2.0.0" }, "peerDependencies": { "@types/react": "*", "react": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0" }, "optionalPeers": ["@types/react"] }, "sha512-9r+yi9+mgU33AKcj6IbT9oRCO78WriSj6t/cF8DWBZJ9aOGPOTEDvdUDz1FwKim7QXWwmHqtdHnRJfhAxEG46Q=="], @@ -1379,10 +1715,16 @@ "read-yaml-file": ["read-yaml-file@1.1.0", "", { "dependencies": { "graceful-fs": "^4.1.5", "js-yaml": "^3.6.1", "pify": "^4.0.1", "strip-bom": "^3.0.0" } }, "sha512-VIMnQi/Z4HT2Fxuwg5KrY174U1VdUIASQVWXXyqtNRtxSr9IYkn1rsI6Tb6HsrHCmB7gVpNwX6JxPTHcH6IoTA=="], + "readable-stream": ["readable-stream@3.6.2", "", { "dependencies": { "inherits": "^2.0.3", "string_decoder": "^1.1.1", "util-deprecate": "^1.0.1" } }, "sha512-9u/sniCrY3D5WdsERHzHE4G2YCXqoG5FTHUiCC4SIbr6XcLZBY05ya9EKjYek9O5xOAwjGq+1JdGBAS7Q9ScoA=="], + "readdirp": ["readdirp@5.0.0", "", {}, "sha512-9u/XQ1pvrQtYyMpZe7DXKv2p5CNvyVwzUB6uhLAnQwHMSgKMBR62lc7AHljaeteeHXn11XTAaLLUVZYVZyuRBQ=="], "recast": ["recast@0.23.12", "", { "dependencies": { "ast-types": "^0.16.1", "esprima": "~4.0.0", "source-map": "~0.6.1", "tiny-invariant": "^1.3.3", "tslib": "^2.0.1" } }, "sha512-dEWRjcINDu/F4l2dYx57ugBtD7HV9KXESyxhzw/MqWLeglJrsjJKqACPyUPg+6AF8mIgm+Zi0dZ3ACoIg+QtpA=="], + "remove-accents": ["remove-accents@0.5.0", "", {}, "sha512-8g3/Otx1eJaVD12e31UbJj1YzdtVvzH85HV7t+9MJYk/u3XmkOUJ5Ys9wQrf9PCPK8+xn4ymzqYCiZl6QWKn+A=="], + + "require-directory": ["require-directory@2.1.1", "", {}, "sha512-fGxEI7+wsG9xrvdjsrlmL22OMTTiHRwAMroiEeMgq8gzoLC/PQr7RsRDSTLUg/bZAZtF+TVIkHc6/4RIKrui+Q=="], + "require-from-string": ["require-from-string@2.0.2", "", {}, "sha512-Xf0nWe6RseziFMu+Ap9biiUbmplq6S9/p+7w7YXP/JBHhrUDDUhwa+vANyubuqfZWTveU//DYVGsDG7RKL/vEw=="], "require-in-the-middle": ["require-in-the-middle@8.0.1", "", { "dependencies": { "debug": "^4.3.5", "module-details-from-path": "^1.0.3" } }, "sha512-QT7FVMXfWOYFbeRBF6nu+I6tr2Tf3u0q8RIEjNob/heKY/nh7drD/k7eeMFmSQgnTtCzLDcCu/XEnpW2wk4xCQ=="], @@ -1407,10 +1749,14 @@ "run-parallel": ["run-parallel@1.2.0", "", { "dependencies": { "queue-microtask": "^1.2.2" } }, "sha512-5l4VyZR86LZ/lDxZTR6jqL8AFE2S0IFLMP26AbjsLVADxHdhB/c0GUsH+y39UfCi3dzz8OlQuPmnaJOMoDHQBA=="], + "safe-buffer": ["safe-buffer@5.2.1", "", {}, "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ=="], + "safer-buffer": ["safer-buffer@2.1.2", "", {}, "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg=="], "scheduler": ["scheduler@0.27.0", "", {}, "sha512-eNv+WrVbKu1f3vbYJT/xtiF5syA5HPIMtf9IgY/nKg0sWqzAUEvqY/xm7OcZc/qafLx/iO9FgOmeSAp4v5ti/Q=="], + "selderee": ["selderee@0.11.0", "", { "dependencies": { "parseley": "^0.12.0" } }, "sha512-5TF+l7p4+OsnP8BCCvSyZiSPc4x4//p5uPwK8TCnVPJYRmU2aYKMpOXvw8zM5a5JvuuCGN1jmsMwuU2W02ukfA=="], + "semifies": ["semifies@1.0.0", "", {}, "sha512-xXR3KGeoxTNWPD4aBvL5NUpMTT7WMANr3EWnaS190QVkY52lqqcVRD7Q05UVbBhiWDGWMlJEUam9m7uFFGVScw=="], "semver": ["semver@7.8.5", "", { "bin": { "semver": "bin/semver.js" } }, "sha512-Y7/KDsb8LjooZpwaqGyulO6DQlksgCncchHGk+sZIY4SBvUocMBEFH5Ur1fI4dV+Jvl0w6cjvucaIi40puRioA=="], @@ -1451,6 +1797,8 @@ "slice-ansi": ["slice-ansi@8.0.0", "", { "dependencies": { "ansi-styles": "^6.2.3", "is-fullwidth-code-point": "^5.1.0" } }, "sha512-stxByr12oeeOyY2BlviTNQlYV5xOj47GirPr4yA1hE9JCtxfQN0+tVbkxwCtYDQWhEKWFHsEK48ORg5jrouCAg=="], + "solid-js": ["solid-js@1.9.14", "", { "dependencies": { "csstype": "^3.1.0", "seroval": "~1.5.4", "seroval-plugins": "~1.5.4" } }, "sha512-sAEXC0Kk0S1EDg+8ysEWJDbYhA3RRoEjwuySUGlKIemeo0I5YZfOyumNjNs9Sv3y2nmhD+0rW66ag2HsMuQiGQ=="], + "sonner": ["sonner@2.0.7", "", { "peerDependencies": { "react": "^18.0.0 || ^19.0.0 || ^19.0.0-rc", "react-dom": "^18.0.0 || ^19.0.0 || ^19.0.0-rc" } }, "sha512-W6ZN4p58k8aDKA4XPcx2hpIQXBRAgyiWVkYhT7CvK6D3iAu7xjvVyhQHg2/iaKJZ1XVJ4r7XuwGL+WGEK37i9w=="], "sorted-btree": ["sorted-btree@1.8.1", "", {}, "sha512-395+XIP+wqNn3USkFSrNz7G3Ss/MXlZEqesxvzCRFwL14h6e8LukDHdLBePn5pwbm5OQ9vGu8mDyz2lLDIqamQ=="], @@ -1461,10 +1809,22 @@ "spawndamnit": ["spawndamnit@3.0.1", "", { "dependencies": { "cross-spawn": "^7.0.5", "signal-exit": "^4.0.1" } }, "sha512-MmnduQUuHCoFckZoWnXsTg7JaiLBJrKFj9UI2MbRPGaJeVpsLcVBu6P/IGZovziM/YBsellCmsprgNA+w0CzVg=="], + "spdx-correct": ["spdx-correct@3.2.0", "", { "dependencies": { "spdx-expression-parse": "^3.0.0", "spdx-license-ids": "^3.0.0" } }, "sha512-kN9dJbvnySHULIluDHy32WHRUu3Og7B9sbY7tsFLctQkIqnMh3hErYgdMjTYuqmcXX+lK5T1lnUt3G7zNswmZA=="], + + "spdx-exceptions": ["spdx-exceptions@2.5.0", "", {}, "sha512-PiU42r+xO4UbUS1buo3LPJkjlO7430Xn5SVAhdpzzsPHsjbYVflnnFdATgabnLude+Cqu25p6N+g2lw/PFsa4w=="], + + "spdx-expression-parse": ["spdx-expression-parse@3.0.1", "", { "dependencies": { "spdx-exceptions": "^2.1.0", "spdx-license-ids": "^3.0.0" } }, "sha512-cbqHunsQWnJNE6KhVSMsMeH5H/L9EpymbzqTQ3uLwNCLZ1Q481oWaofqH7nO6V07xlXwY6PhQdQ2IedWx/ZK4Q=="], + + "spdx-license-ids": ["spdx-license-ids@3.0.23", "", {}, "sha512-CWLcCCH7VLu13TgOH+r8p1O/Znwhqv/dbb6lqWy67G+pT1kHmeD/+V36AVb/vq8QMIQwVShJ6Ssl5FPh0fuSdw=="], + + "split-ca": ["split-ca@1.0.1", "", {}, "sha512-Q5thBSxp5t8WPTTJQS59LrGqOZqOsrhDGDVm8azCqIBjSBd7nd9o2PM+mDulQQkh8h//4U6hFZnc/mul8t5pWQ=="], + "sprintf-js": ["sprintf-js@1.0.3", "", {}, "sha512-D9cPgkvLlV3t3IzL0D0YLvGA9Ahk4PcvVwUbN0dSGr1aP0Nrt4AEnTUbuGvquEC0mA64Gqt1fzirlRs5ibXx8g=="], "srvx": ["srvx@0.11.21", "", { "bin": { "srvx": "bin/srvx.mjs" } }, "sha512-GWTHjKMeekX8CwJf4VU9Oo6mJpSGaflGMddbCvR+Cmmh9sslRMiGbAoqqZacE0r1ncARh6buCEETr2W52F8b1w=="], + "ssh2": ["ssh2@1.17.0", "", { "dependencies": { "asn1": "^0.2.6", "bcrypt-pbkdf": "^1.0.2" }, "optionalDependencies": { "cpu-features": "~0.0.10", "nan": "^2.23.0" } }, "sha512-wPldCk3asibAjQ/kziWQQt1Wh3PgDFpC0XpwclzKcdT1vql6KeYxf5LIt4nlFkUeR8WuphYMKqUA56X4rjbfgQ=="], + "statuses": ["statuses@2.0.2", "", {}, "sha512-DvEy55V3DB7uknRo+4iOGT5fP1slR8wQohVdknigZPMpMstaKJQWhwiYBACJE3Ul2pTnATihhBYnRhZQHGBiRw=="], "stdin-discarder": ["stdin-discarder@0.2.2", "", {}, "sha512-UhDfHmA92YAlNnCfhmq0VeNL5bDbiZGg7sZ2IvPsXubGkiNa9EC+tUTsjBRsYUAz87btI6/1wf4XoVvQ3uRnmQ=="], @@ -1473,6 +1833,8 @@ "string-width": ["string-width@7.2.0", "", { "dependencies": { "emoji-regex": "^10.3.0", "get-east-asian-width": "^1.0.0", "strip-ansi": "^7.1.0" } }, "sha512-tsaTIkKW9b4N+AEj+SVA+WhJzV7/zMhcSu78mLKWSk7cXMOSHsBKFWUs0fWwq8QyK3MgJBQRX6Gbi4kYbdvGkQ=="], + "string_decoder": ["string_decoder@1.3.0", "", { "dependencies": { "safe-buffer": "~5.2.0" } }, "sha512-hkRX8U1WjJFd8LsDJ2yQ/wWWxaopEsABU1XfkM8A+j0+85JAGppt16cr1Whg6KIbb4okU6Mql6BOj+uup/wKeA=="], + "stringify-object": ["stringify-object@5.0.0", "", { "dependencies": { "get-own-enumerable-keys": "^1.0.0", "is-obj": "^3.0.0", "is-regexp": "^3.1.0" } }, "sha512-zaJYxz2FtcMb4f+g60KsRNFOpVMUyuJgA51Zi5Z1DOTC3S59+OQiVOzE9GZt0x72uBGWKsQIuBKeF9iusmKFsg=="], "strip-ansi": ["strip-ansi@6.0.1", "", { "dependencies": { "ansi-regex": "^5.0.1" } }, "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A=="], @@ -1483,7 +1845,11 @@ "stripe": ["stripe@22.3.0", "", { "peerDependencies": { "@types/node": ">=18" }, "optionalPeers": ["@types/node"] }, "sha512-ypO6xjVrMWs9SmIMeHr8naCx3dAQ0clxMdUTxn7Ejd7hmY9meBGfE+N4pVHkf9sUNebAHp6uJo6mV3GxDIc2cA=="], - "supports-color": ["supports-color@10.2.2", "", {}, "sha512-SS+jx45GF1QjgEXQx4NJZV9ImqmO2NPz5FNsIHrsDjh2YsHnawpan7SNQ1o8NuhrbHZy9AZhIoCUiCeaW/C80g=="], + "suffix-thumb": ["suffix-thumb@5.0.2", "", {}, "sha512-I5PWXAFKx3FYnI9a+dQMWNqTxoRt6vdBdb0O+BJ1sxXCWtSoQCusc13E58f+9p4MYx/qCnEMkD5jac6K2j3dgA=="], + + "supports-color": ["supports-color@8.1.1", "", { "dependencies": { "has-flag": "^4.0.0" } }, "sha512-MpUEN2OodtUzxvKQl72cUF7RQ5EiHsGvSsVG0ia9c5RbWGL2CI4C7EpPS8UTBIplnlzZiNuV56w+FuNxy3ty2Q=="], + + "svelte": ["svelte@5.56.7", "", { "dependencies": { "@jridgewell/remapping": "^2.3.4", "@jridgewell/sourcemap-codec": "^1.5.0", "@sveltejs/acorn-typescript": "^1.0.10", "@types/estree": "^1.0.5", "@types/trusted-types": "^2.0.7", "acorn": "^8.12.1", "aria-query": "5.3.1", "axobject-query": "^4.1.0", "clsx": "^2.1.1", "devalue": "^5.8.1", "esm-env": "^1.2.1", "esrap": "^2.2.12", "is-reference": "^3.0.3", "locate-character": "^3.0.0", "magic-string": "^0.30.11", "zimmerframe": "^1.1.2" } }, "sha512-5qERUZX80oQj6XrDMUmD2Uhd/cIpCPDWWKBK3ZHmyRUC9apPyamWM8xMo31mbWsIQxwG2hVoSnOJ/EcnhVkkzQ=="], "systeminformation": ["systeminformation@5.31.15", "", { "os": "!aix", "bin": { "systeminformation": "lib/cli.js" } }, "sha512-7mqCtD28TK5dVdLAQONVa/Do/NBgMH2dxqf49nh6DIKoEWuDg6tkgGBP+dN22VEJVPZa/QqiHomhWNRn4WUNTQ=="], @@ -1493,8 +1859,14 @@ "tapable": ["tapable@2.3.3", "", {}, "sha512-uxc/zpqFg6x7C8vOE7lh6Lbda8eEL9zmVm/PLeTPBRhh1xCgdWaQ+J1CUieGpIfm2HdtsUpRv+HshiasBMcc6A=="], + "tar-fs": ["tar-fs@2.1.5", "", { "dependencies": { "chownr": "^1.1.1", "mkdirp-classic": "^0.5.2", "pump": "^3.0.0", "tar-stream": "^2.1.4" } }, "sha512-OboTd8mmMhZDNPV+UjQcK9yKAatXu2aJ+r1w4im1Otd4M4fl2hwvdoXUxIYHFTHWK/3y3FarBP70v3vwmGlOxw=="], + + "tar-stream": ["tar-stream@2.2.0", "", { "dependencies": { "bl": "^4.0.3", "end-of-stream": "^1.4.1", "fs-constants": "^1.0.0", "inherits": "^2.0.3", "readable-stream": "^3.1.1" } }, "sha512-ujeqbceABgwMZxEJnk2HDY2DlnUZ+9oEcb1KzTVfYHio0UE6dG71n60d8D2I4qNvleWrrXpmjpt7vZeF1LnMZQ=="], + "term-size": ["term-size@2.2.1", "", {}, "sha512-wK0Ri4fOGjv/XPy8SBHZChl8CM7uMc5VML7SqiQ0zG7+J5Vr+RMQDoHa2CNT6KHUnTGIXH34UDMkPzAUyapBZg=="], + "terminal-size": ["terminal-size@4.0.1", "", {}, "sha512-avMLDQpUI9I5XFrklECw1ZEUPJhqzcwSWsyyI8blhRLT+8N1jLJWLWWYQpB2q2xthq8xDvjZPISVh53T/+CLYQ=="], + "tiny-invariant": ["tiny-invariant@1.3.3", "", {}, "sha512-+FbBPE1o9QAYvviau/qC5SE3caw21q3xkvWKBtja5vgqOWIHHJ3ioaq1VPfn/Szqctz2bU/oYeKd9/z5BL+PVg=="], "tinyexec": ["tinyexec@1.2.4", "", {}, "sha512-SHf/r48b7vOrjve9PxJo3MN5v5yuyjHvdUcrQffT3WXMUfnGmHDVbC4k3sHJaJTgZCwpUplIaAo5ANtMyp3YHg=="], @@ -1515,10 +1887,14 @@ "tsconfig-paths": ["tsconfig-paths@4.2.0", "", { "dependencies": { "json5": "^2.2.2", "minimist": "^1.2.6", "strip-bom": "^3.0.0" } }, "sha512-NoZ4roiN7LnbKn9QqE1amc9DJfzvZXxF4xDavcOWt1BPkdx+m+0gJuPM+S0vCe7zTJMYUP0R8pO2XMr+Y8oLIg=="], + "tseep": ["tseep@1.3.1", "", {}, "sha512-ZPtfk1tQnZVyr7BPtbJ93qaAh2lZuIOpTMjhrYa4XctT8xe7t4SAW9LIxrySDuYMsfNNayE51E/WNGrNVgVicQ=="], + "tslib": ["tslib@2.8.1", "", {}, "sha512-oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w=="], "tw-animate-css": ["tw-animate-css@1.4.0", "", {}, "sha512-7bziOlRqH0hJx80h/3mbicLW7o8qLsH5+RaLR2t+OHM3D0JlWGODQKQ4cxbK7WlvmUxpcj6Kgu6EKqjrGFe3QQ=="], + "tweetnacl": ["tweetnacl@0.14.5", "", {}, "sha512-KXXFFdAbFXY4geFIwoyNK+f5Z1b7swfXABfL7HXCmoIWMKU3dmS26672A4EeQtDzLKy7SXmfBu51JolvEKwtGA=="], + "type-is": ["type-is@2.1.0", "", { "dependencies": { "content-type": "^2.0.0", "media-typer": "^1.1.0", "mime-types": "^3.0.0" } }, "sha512-faYHw0anBbc/kWF3zFTEnxSFOAGUX9GFbOBthvDdLsIlEoWOFOtS0zgCiQYwIskL9iGXZL3kAXD8OoZ4GmMATA=="], "typescript": ["typescript@7.0.2", "", { "optionalDependencies": { "@typescript/typescript-aix-ppc64": "7.0.2", "@typescript/typescript-darwin-arm64": "7.0.2", "@typescript/typescript-darwin-x64": "7.0.2", "@typescript/typescript-freebsd-arm64": "7.0.2", "@typescript/typescript-freebsd-x64": "7.0.2", "@typescript/typescript-linux-arm": "7.0.2", "@typescript/typescript-linux-arm64": "7.0.2", "@typescript/typescript-linux-loong64": "7.0.2", "@typescript/typescript-linux-mips64el": "7.0.2", "@typescript/typescript-linux-ppc64": "7.0.2", "@typescript/typescript-linux-riscv64": "7.0.2", "@typescript/typescript-linux-s390x": "7.0.2", "@typescript/typescript-linux-x64": "7.0.2", "@typescript/typescript-netbsd-arm64": "7.0.2", "@typescript/typescript-netbsd-x64": "7.0.2", "@typescript/typescript-openbsd-arm64": "7.0.2", "@typescript/typescript-openbsd-x64": "7.0.2", "@typescript/typescript-sunos-x64": "7.0.2", "@typescript/typescript-win32-arm64": "7.0.2", "@typescript/typescript-win32-x64": "7.0.2" }, "bin": { "tsc": "bin/tsc" } }, "sha512-8FYau96o3NKOhbjKi/qNvG/W5jhzxkbdm5sj9AbZ/5T5sWqn3hJgLfGx27sRKZWTvyzCP8dLRBTf5tBTSRVUNA=="], @@ -1553,6 +1929,8 @@ "uuid": ["uuid@14.0.1", "", { "bin": { "uuid": "dist-node/bin/uuid" } }, "sha512-6ZxzVpzDXDa3bJWaHilVayA+BH/1zmxCJoVgvmqJnid/gPoKHxUrS/aC/T6LGQtNHT+XHG9fXPJB4d+IrU30Ew=="], + "validate-npm-package-license": ["validate-npm-package-license@3.0.4", "", { "dependencies": { "spdx-correct": "^3.0.0", "spdx-expression-parse": "^3.0.0" } }, "sha512-DpKm2Ui/xN7/HQKCtpZxoRWBhZ9Z0kqtygG8XCgNQ8ZlDnxuQmWhj566j8fN4Cu3/JmbhsDo7fcAJq4s9h27Ew=="], + "validate-npm-package-name": ["validate-npm-package-name@7.0.2", "", {}, "sha512-hVDIBwsRruT73PbK7uP5ebUt+ezEtCmzZz3F59BSr2F6OVFnJ/6h8liuvdLrQ88Xmnk6/+xGGuq+pG9WwTuy3A=="], "vary": ["vary@1.1.2", "", {}, "sha512-BNGbWLfd0eUPabhkXUVm0j8uuvREyTh5ovRa/dyow/BqAbZJyC+5fU+IzQOzmAKzYqYRAISoRhdQr3eIZ/PXqg=="], @@ -1561,6 +1939,10 @@ "vitefu": ["vitefu@1.1.3", "", { "peerDependencies": { "vite": "^3.0.0 || ^4.0.0 || ^5.0.0 || ^6.0.0 || ^7.0.0 || ^8.0.0" }, "optionalPeers": ["vite"] }, "sha512-ub4okH7Z5KLjb6hDyjqrGXqWtWvoYdU3IGm/NorpgHncKoLTCfRIbvlhBm7r0YstIaQRYlp4yEbFqDcKSzXSSg=="], + "vue": ["vue@3.5.40", "", { "dependencies": { "@vue/compiler-dom": "3.5.40", "@vue/compiler-sfc": "3.5.40", "@vue/runtime-dom": "3.5.40", "@vue/server-renderer": "3.5.40", "@vue/shared": "3.5.40" }, "peerDependencies": { "typescript": "*" }, "optionalPeers": ["typescript"] }, "sha512-+8PJ4SJXdn/cHGImF4CKdxlWHIN5Dkt7DoufRREM6h6uVCx2m7QxgcEQmmzyOK8A9mcafg7sFbJFYsdFVubTig=="], + + "vue-demi": ["vue-demi@0.14.10", "", { "peerDependencies": { "@vue/composition-api": "^1.0.0-rc.1", "vue": "^3.0.0-0 || ^2.6.0" }, "optionalPeers": ["@vue/composition-api"], "bin": { "vue-demi-fix": "bin/vue-demi-fix.js", "vue-demi-switch": "bin/vue-demi-switch.js" } }, "sha512-nMZBOwuzabUO0nLgIcc6rycZEebF6eeUfaiQx9+WSk8e29IbLvPU9feI6tqW4kTo3hvoYAJkMh8n8D0fuISphg=="], + "webidl-conversions": ["webidl-conversions@3.0.1", "", {}, "sha512-2JAn3z8AR6rjK8Sm8orRC0h/bcl/DqL7tRPdGZ4I1CjdF+EaMLmYxBHyXuKL849eucPFhvBoxMsflfOb8kxaeQ=="], "webpack-virtual-modules": ["webpack-virtual-modules@0.6.2", "", {}, "sha512-66/V2i5hQanC51vBQKPH4aI8NMAcBW59FVBs+rC7eGHupMyfn34q7rZIE+ETlJ+XTevqfUhVVBgSUNSW2flEUQ=="], @@ -1569,8 +1951,12 @@ "which": ["which@4.0.0", "", { "dependencies": { "isexe": "^3.1.1" }, "bin": { "node-which": "bin/which.js" } }, "sha512-GlaYyEb07DPxYCKhKzplCWBJtvxZcZMrL+4UkrTSJHHPyZU4mYYTv3qaOe77H7EODLSSopAUFAc6W8U4yqvscg=="], + "window-size": ["window-size@1.1.1", "", { "dependencies": { "define-property": "^1.0.0", "is-number": "^3.0.0" }, "bin": { "window-size": "cli.js" } }, "sha512-5D/9vujkmVQ7pSmc0SCBmHXbkv6eaHwXEx65MywhmUMsI8sGqJ972APq1lotfcwMKPFLuCFfL8xGHLIp7jaBmA=="], + "workerd": ["workerd@1.20260708.1", "", { "optionalDependencies": { "@cloudflare/workerd-darwin-64": "1.20260708.1", "@cloudflare/workerd-darwin-arm64": "1.20260708.1", "@cloudflare/workerd-linux-64": "1.20260708.1", "@cloudflare/workerd-linux-arm64": "1.20260708.1", "@cloudflare/workerd-windows-64": "1.20260708.1" }, "bin": { "workerd": "bin/workerd" } }, "sha512-WAK+Kt/VVCSldH2qSr8lx46XCJ4Q+bdlHNaFqUtOHthBEIB8C1N8HVW+VOLrxDoTCk0NGNv0zajnBeQK4JOB9w=="], + "workers-ai-provider": ["workers-ai-provider@3.3.1", "", { "peerDependencies": { "@ai-sdk/anthropic": "^3.0.0", "@ai-sdk/google": "^3.0.0", "@ai-sdk/openai": "^3.0.0", "@ai-sdk/provider": "^3.0.0", "ai": "^6.0.0" }, "optionalPeers": ["@ai-sdk/anthropic", "@ai-sdk/google", "@ai-sdk/openai"] }, "sha512-vArwnmiAxQQF1clsXJd9ADn1xK9YUZVxE4umaMhrdsxM2kucxP430LfaoH4rn0AfoqtnuH3bfRhW1ak0r1x/8A=="], + "wrangler": ["wrangler@4.110.0", "", { "dependencies": { "@cloudflare/kv-asset-handler": "0.5.0", "@cloudflare/unenv-preset": "2.16.1", "blake3-wasm": "2.1.5", "esbuild": "0.28.1", "miniflare": "4.20260708.1", "path-to-regexp": "6.3.0", "unenv": "2.0.0-rc.24", "workerd": "1.20260708.1" }, "optionalDependencies": { "fsevents": "2.3.3" }, "peerDependencies": { "@cloudflare/workers-types": "^5.20260708.1" }, "optionalPeers": ["@cloudflare/workers-types"], "bin": { "cf-wrangler": "bin/cf-wrangler.js", "wrangler": "bin/wrangler.js", "wrangler2": "bin/wrangler.js" } }, "sha512-xZeXKYi7hxQRF5anL+v77RkufJNpF9f3Eqeyqq2QBsETpLZgh0Agj0jJ6JPtkbgn6ukZdh8OK5egsGPWIditgg=="], "wrap-ansi": ["wrap-ansi@10.0.0", "", { "dependencies": { "ansi-styles": "^6.2.3", "string-width": "^8.2.0", "strip-ansi": "^7.1.2" } }, "sha512-SGcvg80f0wUy2/fXES19feHMz8E0JoXv2uNgHOu4Dgi2OrCy1lqwFYEJz1BLbDI0exjPMe/ZdzZ/YpGECBG/aQ=="], @@ -1585,24 +1971,36 @@ "xstate": ["xstate@6.0.0-alpha.12", "", {}, "sha512-ekDMVV12EPPLIFeTxHaJPXxe50Vbf0/T2Yd71xCHy99ikrBSjNSTKSCGh5/OG6BJ1YN73/2i7/agAYiep/xsxw=="], + "y18n": ["y18n@5.0.8", "", {}, "sha512-0pfFzegeDWJHJIAmTLRP2DwHjdF5s7jo9tuztdQxAhINCdvS+3nGINqPd00AphqJR/0LhANUS6/+7SCb98YOfA=="], + "yallist": ["yallist@3.1.1", "", {}, "sha512-a4UGQaWPH59mOXUYnAG2ewncQS4i4F43Tv3JoAM+s2VDAmS9NsK8GpDMLrCHPksFT7h3K6TOoUNn2pb7RoXx4g=="], "yaml": ["yaml@2.9.0", "", { "bin": { "yaml": "bin.mjs" } }, "sha512-2AvhNX3mb8zd6Zy7INTtSpl1F15HW6Wnqj0srWlkKLcpYl/gMIMJiyuGq2KeI2YFxUPjdlB+3Lc10seMLtL4cA=="], + "yargs": ["yargs@17.7.3", "", { "dependencies": { "cliui": "^8.0.1", "escalade": "^3.1.1", "get-caller-file": "^2.0.5", "require-directory": "^2.1.1", "string-width": "^4.2.3", "y18n": "^5.0.5", "yargs-parser": "^21.1.1" } }, "sha512-GZtjxm/J/4TSxuL3FNYjCmLktBTnIw/rVmKSIyKeYAZpmJB2ig9VauCC5xsa82GNKVKDAqpOn3KVzNt0zmrU0g=="], + + "yargs-parser": ["yargs-parser@21.1.1", "", {}, "sha512-tVpsJW7DdjecAiFpbIB1e3qxIQsE6NoPc5/eTdrbbIC4h0LVsWhnoa3g+m2HclBIujHzsxZ4VJVA+GUuc2/LBw=="], + "yocto-queue": ["yocto-queue@0.1.0", "", {}, "sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q=="], "yocto-spinner": ["yocto-spinner@1.2.1", "", { "dependencies": { "yoctocolors": "^2.1.1" } }, "sha512-9cbFWLhbiZp+820O4pkHGNncI7+MrUGzBOjw8NMG+ewsY+aG0DdEXnr19Smxao32YOjLZRMdn1UtaxcrXOYOIg=="], "yoctocolors": ["yoctocolors@2.1.2", "", {}, "sha512-CzhO+pFNo8ajLM2d2IW/R93ipy99LWjtwblvC1RsoSUMZgyLbYFr221TnSNT7GjGdYui6P459mw9JH/g/zW2ug=="], + "yoga-layout": ["yoga-layout@3.2.1", "", {}, "sha512-0LPOt3AxKqMdFBZA3HBAt/t/8vIKq7VaQYbuA8WxCgung+p9TVyKRYdpvCb80HcdTN2NkbIKbhNwKUfm3tQywQ=="], + "youch": ["youch@4.1.0-beta.10", "", { "dependencies": { "@poppinss/colors": "^4.1.5", "@poppinss/dumper": "^0.6.4", "@speed-highlight/core": "^1.2.7", "cookie": "^1.0.2", "youch-core": "^0.3.3" } }, "sha512-rLfVLB4FgQneDr0dv1oddCVZmKjcJ6yX6mS4pU82Mq/Dt9a3cLZQ62pDBL4AUO+uVrCvtWz3ZFUL2HFAFJ/BXQ=="], "youch-core": ["youch-core@0.3.3", "", { "dependencies": { "@poppinss/exception": "^1.2.2", "error-stack-parser-es": "^1.0.5" } }, "sha512-ho7XuGjLaJ2hWHoK8yFnsUGy2Y5uDpqSTq1FkHLK4/oqKtyUU1AFbOOxY4IpC9f0fTLjwYbslUz0Po5BpD1wrA=="], + "zimmerframe": ["zimmerframe@1.1.4", "", {}, "sha512-B58NGBEoc8Y9MWWCQGl/gq9xBCe4IiKM0a2x7GZdQKOW5Exr8S1W24J6OgM1njK8xCRGvAJIL/MxXHf6SkmQKQ=="], + "zod": ["zod@4.4.3", "", {}, "sha512-ytENFjIJFl2UwYglde2jchW2Hwm4GJFLDiSXWdTrJQBIN9Fcyp7n4DhxJEiWNAJMV1/BqWfW/kkg71UDcHJyTQ=="], "zod-to-json-schema": ["zod-to-json-schema@3.25.2", "", { "peerDependencies": { "zod": "^3.25.28 || ^4" } }, "sha512-O/PgfnpT1xKSDeQYSCfRI5Gy3hPf91mKVDuYLUHZJMiDFptvP41MSnWofm8dnCm0256ZNfZIM7DSzuSMAFnjHA=="], + "@antfu/install-pkg/package-manager-detector": ["package-manager-detector@1.8.0", "", {}, "sha512-yQA4H19AmPEoMUeavPMDIe1higySl/gH/yaQrkT/s07Qp+7pp2hYz30N3z2l5BkjVkF9Ow6o0wjJamm2y7Sn0A=="], + "@apm-js-collab/code-transformer/source-map": ["source-map@0.6.1", "", {}, "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g=="], "@babel/helper-annotate-as-pure/@babel/types": ["@babel/types@7.29.7", "", { "dependencies": { "@babel/helper-string-parser": "^7.29.7", "@babel/helper-validator-identifier": "^7.29.7" } }, "sha512-4zBIxpPzowiZpusoFkyGVwakdRJUyuH5PxQ/PrqghfdFWWasvnCdPfQXHrenDai+gyLARulZjZowCOj6fjT4pA=="], @@ -1641,8 +2039,58 @@ "@dotenvx/dotenvx/open": ["open@8.4.2", "", { "dependencies": { "define-lazy-prop": "^2.0.0", "is-docker": "^2.1.1", "is-wsl": "^2.2.0" } }, "sha512-7x81NCL719oNbsq/3mh+hVrAWmFuEYUqrq/Iw3kUzH8ReypT9QQ0BLoJS7/G9k6N81XjW4qHWtjWwe/9eLy1EQ=="], + "@grpc/grpc-js/@grpc/proto-loader": ["@grpc/proto-loader@0.8.1", "", { "dependencies": { "lodash.camelcase": "^4.3.0", "long": "^5.0.0", "protobufjs": "^7.5.5", "yargs": "^17.7.2" }, "bin": { "proto-loader-gen-types": "build/bin/proto-loader-gen-types.js" } }, "sha512-wtF6h+DY6M3YaDBPAmvuuA6jV8Sif9MjtOI5euKFWRgCDl5PeDpPsHR9u2l6St5ceY8AZgoNDww5+HvEsXFsGg=="], + "@img/sharp-wasm32/@emnapi/runtime": ["@emnapi/runtime@1.11.2", "", { "dependencies": { "tslib": "^2.4.0" } }, "sha512-kyOl3X0DuTiT1h2ft8r2fYO8JYtU9a9Xis/zBSiGArNaagCOWx90N1k2wxp18czFDH+OgcWGb5ZP/XMt3dcyPA=="], + "@lunora/advisor/@lunora/errors": ["@lunora/errors@1.0.0-alpha.7", "", {}, "sha512-8OAPVm28DDbz6ygJA9Jju0Ik1fRf85vO1HeM295bD0C67vCbg7RhEUh9NCfhNJqtU5Mq0PF6IM3sSpw8TLxQHw=="], + + "@lunora/agent/@lunora/errors": ["@lunora/errors@1.0.0-alpha.7", "", {}, "sha512-8OAPVm28DDbz6ygJA9Jju0Ik1fRf85vO1HeM295bD0C67vCbg7RhEUh9NCfhNJqtU5Mq0PF6IM3sSpw8TLxQHw=="], + + "@lunora/ai/@lunora/errors": ["@lunora/errors@1.0.0-alpha.7", "", {}, "sha512-8OAPVm28DDbz6ygJA9Jju0Ik1fRf85vO1HeM295bD0C67vCbg7RhEUh9NCfhNJqtU5Mq0PF6IM3sSpw8TLxQHw=="], + + "@lunora/bindings/@lunora/errors": ["@lunora/errors@1.0.0-alpha.7", "", {}, "sha512-8OAPVm28DDbz6ygJA9Jju0Ik1fRf85vO1HeM295bD0C67vCbg7RhEUh9NCfhNJqtU5Mq0PF6IM3sSpw8TLxQHw=="], + + "@lunora/cli/@lunora/errors": ["@lunora/errors@1.0.0-alpha.7", "", {}, "sha512-8OAPVm28DDbz6ygJA9Jju0Ik1fRf85vO1HeM295bD0C67vCbg7RhEUh9NCfhNJqtU5Mq0PF6IM3sSpw8TLxQHw=="], + + "@lunora/cli/magic-string": ["magic-string@1.1.0", "", { "dependencies": { "@jridgewell/sourcemap-codec": "^1.5.5" } }, "sha512-kS3VHe0nEPST2saQV4Rbkchcd3UBRkVTQHo1D3h/ZTwFDhai/mfKkmtPAtD129EOI7K3HlHIsFOt0WrI2/oU9g=="], + + "@lunora/cli/ts-morph": ["ts-morph@28.0.0", "", { "dependencies": { "@ts-morph/common": "~0.29.0", "code-block-writer": "^13.0.3" } }, "sha512-Wp3tnZ2bzwxyTZMtgWVzXDfm7lB1Drz+y9DmmYH/L702PQhPyVrp3pkou3yIz4qjS14GY9kcpmLiOOMvl8oG1g=="], + + "@lunora/client/@lunora/errors": ["@lunora/errors@1.0.0-alpha.7", "", {}, "sha512-8OAPVm28DDbz6ygJA9Jju0Ik1fRf85vO1HeM295bD0C67vCbg7RhEUh9NCfhNJqtU5Mq0PF6IM3sSpw8TLxQHw=="], + + "@lunora/codegen/@lunora/errors": ["@lunora/errors@1.0.0-alpha.7", "", {}, "sha512-8OAPVm28DDbz6ygJA9Jju0Ik1fRf85vO1HeM295bD0C67vCbg7RhEUh9NCfhNJqtU5Mq0PF6IM3sSpw8TLxQHw=="], + + "@lunora/codegen/ts-morph": ["ts-morph@28.0.0", "", { "dependencies": { "@ts-morph/common": "~0.29.0", "code-block-writer": "^13.0.3" } }, "sha512-Wp3tnZ2bzwxyTZMtgWVzXDfm7lB1Drz+y9DmmYH/L702PQhPyVrp3pkou3yIz4qjS14GY9kcpmLiOOMvl8oG1g=="], + + "@lunora/config/@lunora/errors": ["@lunora/errors@1.0.0-alpha.7", "", {}, "sha512-8OAPVm28DDbz6ygJA9Jju0Ik1fRf85vO1HeM295bD0C67vCbg7RhEUh9NCfhNJqtU5Mq0PF6IM3sSpw8TLxQHw=="], + + "@lunora/config/es-module-lexer": ["es-module-lexer@2.3.1", "", {}, "sha512-shc1dbU90Yl/xq1QrC7QRtfcwURZuVRfPhZbDoldJ1cn1gzDvBaBWlv0eFolj5+0znnPJz5TXLxsN77X/12KTA=="], + + "@lunora/config/ts-morph": ["ts-morph@28.0.0", "", { "dependencies": { "@ts-morph/common": "~0.29.0", "code-block-writer": "^13.0.3" } }, "sha512-Wp3tnZ2bzwxyTZMtgWVzXDfm7lB1Drz+y9DmmYH/L702PQhPyVrp3pkou3yIz4qjS14GY9kcpmLiOOMvl8oG1g=="], + + "@lunora/container/@lunora/errors": ["@lunora/errors@1.0.0-alpha.7", "", {}, "sha512-8OAPVm28DDbz6ygJA9Jju0Ik1fRf85vO1HeM295bD0C67vCbg7RhEUh9NCfhNJqtU5Mq0PF6IM3sSpw8TLxQHw=="], + + "@lunora/d1/@lunora/errors": ["@lunora/errors@1.0.0-alpha.7", "", {}, "sha512-8OAPVm28DDbz6ygJA9Jju0Ik1fRf85vO1HeM295bD0C67vCbg7RhEUh9NCfhNJqtU5Mq0PF6IM3sSpw8TLxQHw=="], + + "@lunora/do/@lunora/errors": ["@lunora/errors@1.0.0-alpha.7", "", {}, "sha512-8OAPVm28DDbz6ygJA9Jju0Ik1fRf85vO1HeM295bD0C67vCbg7RhEUh9NCfhNJqtU5Mq0PF6IM3sSpw8TLxQHw=="], + + "@lunora/flags/@lunora/errors": ["@lunora/errors@1.0.0-alpha.7", "", {}, "sha512-8OAPVm28DDbz6ygJA9Jju0Ik1fRf85vO1HeM295bD0C67vCbg7RhEUh9NCfhNJqtU5Mq0PF6IM3sSpw8TLxQHw=="], + + "@lunora/mail/@lunora/errors": ["@lunora/errors@1.0.0-alpha.7", "", {}, "sha512-8OAPVm28DDbz6ygJA9Jju0Ik1fRf85vO1HeM295bD0C67vCbg7RhEUh9NCfhNJqtU5Mq0PF6IM3sSpw8TLxQHw=="], + + "@lunora/runtime/@lunora/errors": ["@lunora/errors@1.0.0-alpha.7", "", {}, "sha512-8OAPVm28DDbz6ygJA9Jju0Ik1fRf85vO1HeM295bD0C67vCbg7RhEUh9NCfhNJqtU5Mq0PF6IM3sSpw8TLxQHw=="], + + "@lunora/seed/@lunora/errors": ["@lunora/errors@1.0.0-alpha.7", "", {}, "sha512-8OAPVm28DDbz6ygJA9Jju0Ik1fRf85vO1HeM295bD0C67vCbg7RhEUh9NCfhNJqtU5Mq0PF6IM3sSpw8TLxQHw=="], + + "@lunora/server/@lunora/errors": ["@lunora/errors@1.0.0-alpha.7", "", {}, "sha512-8OAPVm28DDbz6ygJA9Jju0Ik1fRf85vO1HeM295bD0C67vCbg7RhEUh9NCfhNJqtU5Mq0PF6IM3sSpw8TLxQHw=="], + + "@lunora/sql-store/@lunora/errors": ["@lunora/errors@1.0.0-alpha.7", "", {}, "sha512-8OAPVm28DDbz6ygJA9Jju0Ik1fRf85vO1HeM295bD0C67vCbg7RhEUh9NCfhNJqtU5Mq0PF6IM3sSpw8TLxQHw=="], + + "@lunora/values/@lunora/errors": ["@lunora/errors@1.0.0-alpha.7", "", {}, "sha512-8OAPVm28DDbz6ygJA9Jju0Ik1fRf85vO1HeM295bD0C67vCbg7RhEUh9NCfhNJqtU5Mq0PF6IM3sSpw8TLxQHw=="], + + "@lunora/workflow/@lunora/errors": ["@lunora/errors@1.0.0-alpha.7", "", {}, "sha512-8OAPVm28DDbz6ygJA9Jju0Ik1fRf85vO1HeM295bD0C67vCbg7RhEUh9NCfhNJqtU5Mq0PF6IM3sSpw8TLxQHw=="], + "@manypkg/find-root/@types/node": ["@types/node@12.20.55", "", {}, "sha512-J8xLz7q2OFulZ2cyGTLE1TbbZcjpno7FaN6zdJNrgAdrJ+DZzh/uFR6YrTb4C+nXakvud8Q4+rbhoIWlYQbUFQ=="], "@manypkg/find-root/find-up": ["find-up@4.1.0", "", { "dependencies": { "locate-path": "^5.0.0", "path-exists": "^4.0.0" } }, "sha512-PpOwAdQ/YlXQ2vj8a3h8IipDuYRi3wceVQQGYWxNINccq40Anw7BlsEXCMbt1Zt+OLA6Fq9suIpIWD0OsnISlw=="], @@ -1653,6 +2101,12 @@ "@manypkg/get-packages/fs-extra": ["fs-extra@8.1.0", "", { "dependencies": { "graceful-fs": "^4.2.0", "jsonfile": "^4.0.0", "universalify": "^0.1.0" } }, "sha512-yhlQgA6mnOJUKOsRUFsgJdQCvkKhcz8tlZG5HBQfReYZy46OwLcY+Zia0mtdHsOo9y/hP+CxMN0TU9QxoOtG4g=="], + "@modelcontextprotocol/sdk/hono": ["hono@4.12.29", "", {}, "sha512-1hNiRjawYrLq/4m3DQQjPGFg0VZkk4RjQJDff/excI6Dm9BiL75qxGrd7/c6YOxPdq6AscP3LiXhQ6fKFC1Waw=="], + + "@poppinss/dumper/supports-color": ["supports-color@10.2.2", "", {}, "sha512-SS+jx45GF1QjgEXQx4NJZV9ImqmO2NPz5FNsIHrsDjh2YsHnawpan7SNQ1o8NuhrbHZy9AZhIoCUiCeaW/C80g=="], + + "@react-email/render/prettier": ["prettier@3.9.5", "", { "bin": { "prettier": "bin/prettier.cjs" } }, "sha512-/FVl766LpUfB5vXgCYOYa0MeV/441Ia99AeICQIQFTY/Nw0roZwULcXpku5i1/m5kt/baz+s4Zogspd839HSMg=="], + "@sentry/bundler-plugins/@babel/core": ["@babel/core@7.29.7", "", { "dependencies": { "@babel/code-frame": "^7.29.7", "@babel/generator": "^7.29.7", "@babel/helper-compilation-targets": "^7.29.7", "@babel/helper-module-transforms": "^7.29.7", "@babel/helpers": "^7.29.7", "@babel/parser": "^7.29.7", "@babel/template": "^7.29.7", "@babel/traverse": "^7.29.7", "@babel/types": "^7.29.7", "@jridgewell/remapping": "^2.3.5", "convert-source-map": "^2.0.0", "debug": "^4.1.0", "gensync": "^1.0.0-beta.2", "json5": "^2.2.3", "semver": "^6.3.1" } }, "sha512-RgHBCvtjbOK2gXSNBNIkNoEc9qoVEtau3hj8gEqKQuL3HZAibKarWFEI3Lfm6EYKkLalOh8eSrj9b+ch9H/VBA=="], "@sentry/cli/which": ["which@2.0.2", "", { "dependencies": { "isexe": "^2.0.0" }, "bin": { "node-which": "./bin/node-which" } }, "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA=="], @@ -1669,6 +2123,8 @@ "@tailwindcss/oxide-wasm32-wasi/tslib": ["tslib@2.8.1", "", { "bundled": true }, "sha512-oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w=="], + "@tanstack/react-query/@tanstack/query-core": ["@tanstack/query-core@5.101.4", "", {}, "sha512-gNwcvOJcRbLWPOLG/2OBm+zM+Yv+MKsXKEOWC57USuZDEsI71hEErQsiEGx5wX9rzWWkfwM0fVSPoiIFSsxfiw=="], + "@tanstack/react-router/@tanstack/react-store": ["@tanstack/react-store@0.9.3", "", { "dependencies": { "@tanstack/store": "0.9.3", "use-sync-external-store": "^1.6.0" }, "peerDependencies": { "react": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0", "react-dom": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0" } }, "sha512-y2iHd/N9OkoQbFJLUX1T9vbc2O9tjH0pQRgTcx1/Nz4IlwLvkgpuglXUx+mXt0g5ZDFrEeDnONPqkbfxXJKwRg=="], "@tanstack/router-generator/@babel/types": ["@babel/types@7.29.7", "", { "dependencies": { "@babel/helper-string-parser": "^7.29.7", "@babel/helper-validator-identifier": "^7.29.7" } }, "sha512-4zBIxpPzowiZpusoFkyGVwakdRJUyuH5PxQ/PrqghfdFWWasvnCdPfQXHrenDai+gyLARulZjZowCOj6fjT4pA=="], @@ -1687,12 +2143,18 @@ "@tanstack/router-utils/@babel/types": ["@babel/types@7.29.7", "", { "dependencies": { "@babel/helper-string-parser": "^7.29.7", "@babel/helper-validator-identifier": "^7.29.7" } }, "sha512-4zBIxpPzowiZpusoFkyGVwakdRJUyuH5PxQ/PrqghfdFWWasvnCdPfQXHrenDai+gyLARulZjZowCOj6fjT4pA=="], + "@tanstack/solid-query/@tanstack/query-core": ["@tanstack/query-core@5.101.4", "", {}, "sha512-gNwcvOJcRbLWPOLG/2OBm+zM+Yv+MKsXKEOWC57USuZDEsI71hEErQsiEGx5wX9rzWWkfwM0fVSPoiIFSsxfiw=="], + "@tanstack/start-plugin-core/@babel/code-frame": ["@babel/code-frame@7.27.1", "", { "dependencies": { "@babel/helper-validator-identifier": "^7.27.1", "js-tokens": "^4.0.0", "picocolors": "^1.1.1" } }, "sha512-cjQ7ZlQ0Mv3b47hABuTevyTuYN4i+loJKGeV9flcCgIK37cCXRh+L1bd3iBHlynerhQ7BhCkn2BPbQUL+rGqFg=="], "@tanstack/start-plugin-core/@babel/core": ["@babel/core@7.29.7", "", { "dependencies": { "@babel/code-frame": "^7.29.7", "@babel/generator": "^7.29.7", "@babel/helper-compilation-targets": "^7.29.7", "@babel/helper-module-transforms": "^7.29.7", "@babel/helpers": "^7.29.7", "@babel/parser": "^7.29.7", "@babel/template": "^7.29.7", "@babel/traverse": "^7.29.7", "@babel/types": "^7.29.7", "@jridgewell/remapping": "^2.3.5", "convert-source-map": "^2.0.0", "debug": "^4.1.0", "gensync": "^1.0.0-beta.2", "json5": "^2.2.3", "semver": "^6.3.1" } }, "sha512-RgHBCvtjbOK2gXSNBNIkNoEc9qoVEtau3hj8gEqKQuL3HZAibKarWFEI3Lfm6EYKkLalOh8eSrj9b+ch9H/VBA=="], "@tanstack/start-plugin-core/@babel/types": ["@babel/types@7.29.7", "", { "dependencies": { "@babel/helper-string-parser": "^7.29.7", "@babel/helper-validator-identifier": "^7.29.7" } }, "sha512-4zBIxpPzowiZpusoFkyGVwakdRJUyuH5PxQ/PrqghfdFWWasvnCdPfQXHrenDai+gyLARulZjZowCOj6fjT4pA=="], + "@tanstack/svelte-query/@tanstack/query-core": ["@tanstack/query-core@5.101.4", "", {}, "sha512-gNwcvOJcRbLWPOLG/2OBm+zM+Yv+MKsXKEOWC57USuZDEsI71hEErQsiEGx5wX9rzWWkfwM0fVSPoiIFSsxfiw=="], + + "@tanstack/vue-query/@tanstack/query-core": ["@tanstack/query-core@5.101.4", "", {}, "sha512-gNwcvOJcRbLWPOLG/2OBm+zM+Yv+MKsXKEOWC57USuZDEsI71hEErQsiEGx5wX9rzWWkfwM0fVSPoiIFSsxfiw=="], + "@types/babel__core/@babel/parser": ["@babel/parser@7.29.7", "", { "dependencies": { "@babel/types": "^7.29.7" }, "bin": "./bin/babel-parser.js" }, "sha512-hnORnjP/1P/zFEndoeX+n+t1RwWRJiJpM/jO7FW32Kn9r5+sJB2JWOdYo4L6k78j15eCwY3Gm/7364B1EMwtNg=="], "@types/babel__core/@babel/types": ["@babel/types@7.29.7", "", { "dependencies": { "@babel/helper-string-parser": "^7.29.7", "@babel/helper-validator-identifier": "^7.29.7" } }, "sha512-4zBIxpPzowiZpusoFkyGVwakdRJUyuH5PxQ/PrqghfdFWWasvnCdPfQXHrenDai+gyLARulZjZowCOj6fjT4pA=="], @@ -1705,6 +2167,18 @@ "@types/babel__traverse/@babel/types": ["@babel/types@7.29.7", "", { "dependencies": { "@babel/helper-string-parser": "^7.29.7", "@babel/helper-validator-identifier": "^7.29.7" } }, "sha512-4zBIxpPzowiZpusoFkyGVwakdRJUyuH5PxQ/PrqghfdFWWasvnCdPfQXHrenDai+gyLARulZjZowCOj6fjT4pA=="], + "@visulima/email/html-to-text": ["html-to-text@10.0.0", "", { "dependencies": { "@selderee/plugin-htmlparser2": "~0.12.0", "deepmerge-ts": "^7.1.5", "dom-serializer": "^2.0.0", "htmlparser2": "^10.1.0", "selderee": "~0.12.0" } }, "sha512-2OH59Gtprdczel+7Rxgpz9hGVJREaf8Lt1H4kZwWHpEn70VQKRuMNGsb2eDbwaTzrYzb0hheiOG1P7Dim0B4dQ=="], + + "@visulima/email/lru-cache": ["lru-cache@11.5.1", "", {}, "sha512-RPimw/7aMdv2oqRrxKwvZXcPfwBrn/JZ2xYcY9Hus/6LaS3VOAKVWKWgNLCFSiOm1ESXinjsDlidVU7JlnCN2A=="], + + "@vue/compiler-core/@babel/parser": ["@babel/parser@7.29.7", "", { "dependencies": { "@babel/types": "^7.29.7" }, "bin": "./bin/babel-parser.js" }, "sha512-hnORnjP/1P/zFEndoeX+n+t1RwWRJiJpM/jO7FW32Kn9r5+sJB2JWOdYo4L6k78j15eCwY3Gm/7364B1EMwtNg=="], + + "@vue/compiler-core/entities": ["entities@7.0.1", "", {}, "sha512-TWrgLOFUQTH994YUyl1yT4uyavY5nNB5muff+RtWaqNVCAK408b5ZnnbNAUEWLTCpum9w6arT70i1XdQ4UeOPA=="], + + "@vue/compiler-sfc/@babel/parser": ["@babel/parser@7.29.7", "", { "dependencies": { "@babel/types": "^7.29.7" }, "bin": "./bin/babel-parser.js" }, "sha512-hnORnjP/1P/zFEndoeX+n+t1RwWRJiJpM/jO7FW32Kn9r5+sJB2JWOdYo4L6k78j15eCwY3Gm/7364B1EMwtNg=="], + + "@vue/compiler-sfc/postcss": ["postcss@8.5.22", "", { "dependencies": { "nanoid": "^3.3.16", "picocolors": "^1.1.1", "source-map-js": "^1.2.1" } }, "sha512-KBDEIpLrvpv16pp3K0Fw+UCoZfopFjjgeB+0tA/aaThfEE74kKDLrgg603YvOWJyg3+WYtyq3xYsQWsIyZlPqQ=="], + "babel-dead-code-elimination/@babel/core": ["@babel/core@7.29.7", "", { "dependencies": { "@babel/code-frame": "^7.29.7", "@babel/generator": "^7.29.7", "@babel/helper-compilation-targets": "^7.29.7", "@babel/helper-module-transforms": "^7.29.7", "@babel/helpers": "^7.29.7", "@babel/parser": "^7.29.7", "@babel/template": "^7.29.7", "@babel/traverse": "^7.29.7", "@babel/types": "^7.29.7", "@jridgewell/remapping": "^2.3.5", "convert-source-map": "^2.0.0", "debug": "^4.1.0", "gensync": "^1.0.0-beta.2", "json5": "^2.2.3", "semver": "^6.3.1" } }, "sha512-RgHBCvtjbOK2gXSNBNIkNoEc9qoVEtau3hj8gEqKQuL3HZAibKarWFEI3Lfm6EYKkLalOh8eSrj9b+ch9H/VBA=="], "babel-dead-code-elimination/@babel/parser": ["@babel/parser@7.29.7", "", { "dependencies": { "@babel/types": "^7.29.7" }, "bin": "./bin/babel-parser.js" }, "sha512-hnORnjP/1P/zFEndoeX+n+t1RwWRJiJpM/jO7FW32Kn9r5+sJB2JWOdYo4L6k78j15eCwY3Gm/7364B1EMwtNg=="], @@ -1719,6 +2193,10 @@ "cli-truncate/string-width": ["string-width@8.2.2", "", { "dependencies": { "get-east-asian-width": "^1.5.0", "strip-ansi": "^7.1.2" } }, "sha512-GaPUh5gfdrYzqeVNZvUfT23vYYxXzKYidUcnMtJg/3rxRV63EFZy3k6xfKlmfeJD0176lnUV/Usr3XcwSvFzpg=="], + "cliui/string-width": ["string-width@4.2.3", "", { "dependencies": { "emoji-regex": "^8.0.0", "is-fullwidth-code-point": "^3.0.0", "strip-ansi": "^6.0.1" } }, "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g=="], + + "cliui/wrap-ansi": ["wrap-ansi@7.0.0", "", { "dependencies": { "ansi-styles": "^4.0.0", "string-width": "^4.1.0", "strip-ansi": "^6.0.0" } }, "sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q=="], + "conf/ajv-formats": ["ajv-formats@2.1.1", "", { "dependencies": { "ajv": "^8.0.0" } }, "sha512-Wx0Kx52hxE7C18hkMEggYlEifqWZtYaRgouJor+WMdPnQyEK13vgEWyVNup7SoeeoLMsr4kf5h6dOW11I15MUA=="], "conf/json-schema-typed": ["json-schema-typed@7.0.3", "", {}, "sha512-7DE8mpG+/fVw+dTpjbxnx47TaMnDfOI1jwft9g1VybltZCduyRQPJPvc+zzKY9WPHxhPWczyFuYa6I8Mw4iU5A=="], @@ -1743,6 +2221,8 @@ "log-update/wrap-ansi": ["wrap-ansi@9.0.2", "", { "dependencies": { "ansi-styles": "^6.2.1", "string-width": "^7.0.0", "strip-ansi": "^7.1.0" } }, "sha512-42AtmgqjV+X1VpdOfyTGOYRi0/zsoLqtXQckTmqTeybT+BDIbM/Guxo7x3pE2vtpr1ok6xRqM9OpBe+Jyoqyww=="], + "lunorash/@lunora/errors": ["@lunora/errors@1.0.0-alpha.7", "", {}, "sha512-8OAPVm28DDbz6ygJA9Jju0Ik1fRf85vO1HeM295bD0C67vCbg7RhEUh9NCfhNJqtU5Mq0PF6IM3sSpw8TLxQHw=="], + "micromatch/picomatch": ["picomatch@2.3.2", "", {}, "sha512-V7+vQEJ06Z+c5tSye8S+nHUfI51xoXIXjHQ99cQtKUkQqqO1kO/KCJUfZXuB47h/YBlDhah2H3hdUGXn8ie0oA=="], "npm-run-path/path-key": ["path-key@4.0.0", "", {}, "sha512-haREypq7xkM7ErfgIyA0z+Bj4AGKlMSdlQE2jvJo6huWD1EdkKYV+G/T4nq0YEF2vgTT8kqMFKo1uHn950r4SQ=="], @@ -1777,6 +2257,8 @@ "string-width/strip-ansi": ["strip-ansi@7.2.0", "", { "dependencies": { "ansi-regex": "^6.2.2" } }, "sha512-yDPMNjp4WyfYBkHnjIRLfca1i6KMyGCtsVgoKe/z1+6vukgaENdgGBZt+ZmKPc4gavvEZ5OgHfHdrazhgNyG7w=="], + "to-regex-range/is-number": ["is-number@7.0.0", "", {}, "sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng=="], + "type-is/content-type": ["content-type@2.0.0", "", {}, "sha512-j/O/d7GcZCyNl7/hwZAb606rzqkyvaDctLmckbxLzHvFBzTJHuGEdodATcP3yIRoDrLHkIATJuvzbFlp/ki2cQ=="], "wrap-ansi/string-width": ["string-width@8.2.2", "", { "dependencies": { "get-east-asian-width": "^1.5.0", "strip-ansi": "^7.1.2" } }, "sha512-GaPUh5gfdrYzqeVNZvUfT23vYYxXzKYidUcnMtJg/3rxRV63EFZy3k6xfKlmfeJD0176lnUV/Usr3XcwSvFzpg=="], @@ -1785,6 +2267,8 @@ "wsl-utils/is-wsl": ["is-wsl@3.1.1", "", { "dependencies": { "is-inside-container": "^1.0.0" } }, "sha512-e6rvdUCiQCAuumZslxRJWR/Doq4VpPR82kqclvcS0efgt430SlGIk05vdCN58+VrzgtIcfNODjozVielycD4Sw=="], + "yargs/string-width": ["string-width@4.2.3", "", { "dependencies": { "emoji-regex": "^8.0.0", "is-fullwidth-code-point": "^3.0.0", "strip-ansi": "^6.0.1" } }, "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g=="], + "@babel/helper-annotate-as-pure/@babel/types/@babel/helper-string-parser": ["@babel/helper-string-parser@7.29.7", "", {}, "sha512-Pb5ijPrZ89GDH8223L4UP8i6QApWxs04RbPQJTeWDV0/keR2E36MeKnyr6LYmUUvqRRI+Iv87SuF1W6ErINzYw=="], "@babel/helper-annotate-as-pure/@babel/types/@babel/helper-validator-identifier": ["@babel/helper-validator-identifier@7.29.7", "", {}, "sha512-qehxGkRj55h/ff8EMaJ+cYhyaKlHIxqYDn682wQD7RNp9UujOQsHog2uS0r2vzr4pW+sXf90NeeayjcNaX3fFg=="], @@ -1885,6 +2369,12 @@ "@dotenvx/dotenvx/open/define-lazy-prop": ["define-lazy-prop@2.0.0", "", {}, "sha512-Ds09qNh8yw3khSjiJjiUInaGX9xlqZDY7JVryGxdxV7NPeuqQfplOpQ66yJFZut3jLa5zOwkXw1g9EI2uKh4Og=="], + "@lunora/cli/ts-morph/@ts-morph/common": ["@ts-morph/common@0.29.0", "", { "dependencies": { "minimatch": "^10.0.1", "path-browserify": "^1.0.1", "tinyglobby": "^0.2.14" } }, "sha512-35oUmphHbJvQ/+UTwFNme/t2p3FoKiGJ5auTjjpNTop2dyREspirjMy82PLSC1pnDJ8ah1GU98hwpVt64YXQsg=="], + + "@lunora/codegen/ts-morph/@ts-morph/common": ["@ts-morph/common@0.29.0", "", { "dependencies": { "minimatch": "^10.0.1", "path-browserify": "^1.0.1", "tinyglobby": "^0.2.14" } }, "sha512-35oUmphHbJvQ/+UTwFNme/t2p3FoKiGJ5auTjjpNTop2dyREspirjMy82PLSC1pnDJ8ah1GU98hwpVt64YXQsg=="], + + "@lunora/config/ts-morph/@ts-morph/common": ["@ts-morph/common@0.29.0", "", { "dependencies": { "minimatch": "^10.0.1", "path-browserify": "^1.0.1", "tinyglobby": "^0.2.14" } }, "sha512-35oUmphHbJvQ/+UTwFNme/t2p3FoKiGJ5auTjjpNTop2dyREspirjMy82PLSC1pnDJ8ah1GU98hwpVt64YXQsg=="], + "@manypkg/find-root/find-up/locate-path": ["locate-path@5.0.0", "", { "dependencies": { "p-locate": "^4.1.0" } }, "sha512-t7hw9pI+WvuwNJXwk5zVHpyhIqzg2qTlklJOf0mVxGSbe3Fp2VieZcduNYjaLDoy6p9uGpQEGWG87WpMKlNq8g=="], "@sentry/bundler-plugins/@babel/core/@babel/code-frame": ["@babel/code-frame@7.29.7", "", { "dependencies": { "@babel/helper-validator-identifier": "^7.29.7", "js-tokens": "^4.0.0", "picocolors": "^1.1.1" } }, "sha512-Aup7aUOfpbAUg2ROOJN6Iw5f9DMBlzu0mIkm/malLQFN/YQgO48wCj0Kxa3sEHJvPVFg7siR+qRInwXd2qhQKw=="], @@ -1979,6 +2469,18 @@ "@types/babel__traverse/@babel/types/@babel/helper-validator-identifier": ["@babel/helper-validator-identifier@7.29.7", "", {}, "sha512-qehxGkRj55h/ff8EMaJ+cYhyaKlHIxqYDn682wQD7RNp9UujOQsHog2uS0r2vzr4pW+sXf90NeeayjcNaX3fFg=="], + "@visulima/email/html-to-text/@selderee/plugin-htmlparser2": ["@selderee/plugin-htmlparser2@0.12.0", "", { "dependencies": { "domelementtype": "~2.3.0", "domhandler": "~5.0.3" }, "peerDependencies": { "selderee": "~0.12.0" } }, "sha512-oELmoyA6ML9jDRMV3kgcMQFKxUfBU0yFVn6yTctVaLT5ygXnxH52I3TZEgV9EhXJC68/uFvE5Daj1/25c0Xa/A=="], + + "@visulima/email/html-to-text/htmlparser2": ["htmlparser2@10.1.0", "", { "dependencies": { "domelementtype": "^2.3.0", "domhandler": "^5.0.3", "domutils": "^3.2.2", "entities": "^7.0.1" } }, "sha512-VTZkM9GWRAtEpveh7MSF6SjjrpNVNNVJfFup7xTY3UpFtm67foy9HDVXneLtFVt4pMz5kZtgNcvCniNFb1hlEQ=="], + + "@visulima/email/html-to-text/selderee": ["selderee@0.12.0", "", { "dependencies": { "parseley": "~0.13.1" } }, "sha512-b1YMh3+DHZp59DLna3qVwQ5iOla/nrI6mLBNW02XxU77M3046Df6VLkoaJyFz20VsGIG5kkp+FK0kg4K4HnUFw=="], + + "@vue/compiler-core/@babel/parser/@babel/types": ["@babel/types@7.29.7", "", { "dependencies": { "@babel/helper-string-parser": "^7.29.7", "@babel/helper-validator-identifier": "^7.29.7" } }, "sha512-4zBIxpPzowiZpusoFkyGVwakdRJUyuH5PxQ/PrqghfdFWWasvnCdPfQXHrenDai+gyLARulZjZowCOj6fjT4pA=="], + + "@vue/compiler-sfc/@babel/parser/@babel/types": ["@babel/types@7.29.7", "", { "dependencies": { "@babel/helper-string-parser": "^7.29.7", "@babel/helper-validator-identifier": "^7.29.7" } }, "sha512-4zBIxpPzowiZpusoFkyGVwakdRJUyuH5PxQ/PrqghfdFWWasvnCdPfQXHrenDai+gyLARulZjZowCOj6fjT4pA=="], + + "@vue/compiler-sfc/postcss/nanoid": ["nanoid@3.3.16", "", { "bin": { "nanoid": "bin/nanoid.cjs" } }, "sha512-bzlKTyNJ7+LdGIIwy8ijFpIqEQIvafahV7eYykJ8Cvh42EdJeODoJ6gUJXpQJvej1BddH8OqTXZNE/KfbWAu8Q=="], + "babel-dead-code-elimination/@babel/core/@babel/code-frame": ["@babel/code-frame@7.29.7", "", { "dependencies": { "@babel/helper-validator-identifier": "^7.29.7", "js-tokens": "^4.0.0", "picocolors": "^1.1.1" } }, "sha512-Aup7aUOfpbAUg2ROOJN6Iw5f9DMBlzu0mIkm/malLQFN/YQgO48wCj0Kxa3sEHJvPVFg7siR+qRInwXd2qhQKw=="], "babel-dead-code-elimination/@babel/core/@babel/generator": ["@babel/generator@7.29.7", "", { "dependencies": { "@babel/parser": "^7.29.7", "@babel/types": "^7.29.7", "@jridgewell/gen-mapping": "^0.3.12", "@jridgewell/trace-mapping": "^0.3.28", "jsesc": "^3.0.2" } }, "sha512-DkXD5OJQaAQIdZ1bt3UZdEnHAn9Imd3IVBdX03UFe+ony9Ojw5pzr9YVKGDY1jt+Gcn/FnGkNf8r+Vj5NOJWtQ=="], @@ -2009,6 +2511,12 @@ "cli-truncate/string-width/strip-ansi": ["strip-ansi@7.2.0", "", { "dependencies": { "ansi-regex": "^6.2.2" } }, "sha512-yDPMNjp4WyfYBkHnjIRLfca1i6KMyGCtsVgoKe/z1+6vukgaENdgGBZt+ZmKPc4gavvEZ5OgHfHdrazhgNyG7w=="], + "cliui/string-width/emoji-regex": ["emoji-regex@8.0.0", "", {}, "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A=="], + + "cliui/string-width/is-fullwidth-code-point": ["is-fullwidth-code-point@3.0.0", "", {}, "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg=="], + + "cliui/wrap-ansi/ansi-styles": ["ansi-styles@4.3.0", "", { "dependencies": { "color-convert": "^2.0.1" } }, "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg=="], + "cross-spawn/which/isexe": ["isexe@2.0.0", "", {}, "sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw=="], "log-update/strip-ansi/ansi-regex": ["ansi-regex@6.2.2", "", {}, "sha512-Bq3SmSpyFHaWjPk8If9yc6svM8c56dB5BAtW4Qbw5jHTwwXXcTLoRMkpDJp6VL0XzlWaCHTXrkFURMYmD0sLqg=="], @@ -2049,6 +2557,10 @@ "wrap-ansi/strip-ansi/ansi-regex": ["ansi-regex@6.2.2", "", {}, "sha512-Bq3SmSpyFHaWjPk8If9yc6svM8c56dB5BAtW4Qbw5jHTwwXXcTLoRMkpDJp6VL0XzlWaCHTXrkFURMYmD0sLqg=="], + "yargs/string-width/emoji-regex": ["emoji-regex@8.0.0", "", {}, "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A=="], + + "yargs/string-width/is-fullwidth-code-point": ["is-fullwidth-code-point@3.0.0", "", {}, "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg=="], + "@babel/helper-create-class-features-plugin/@babel/traverse/@babel/code-frame/@babel/helper-validator-identifier": ["@babel/helper-validator-identifier@7.29.7", "", {}, "sha512-qehxGkRj55h/ff8EMaJ+cYhyaKlHIxqYDn682wQD7RNp9UujOQsHog2uS0r2vzr4pW+sXf90NeeayjcNaX3fFg=="], "@babel/helper-create-class-features-plugin/@babel/traverse/@babel/code-frame/js-tokens": ["js-tokens@4.0.0", "", {}, "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ=="], @@ -2127,6 +2639,18 @@ "@tanstack/start-plugin-core/@babel/core/@babel/traverse/@babel/helper-globals": ["@babel/helper-globals@7.29.7", "", {}, "sha512-3nQVUAtvkKH9zahfWgw96Jc/uFOmjACE1kQz82E2lqWmHBgjzbNlsC22nuQTfahmWeQtTq5nQ/4Nnd2A1wj4zA=="], + "@visulima/email/html-to-text/htmlparser2/entities": ["entities@7.0.1", "", {}, "sha512-TWrgLOFUQTH994YUyl1yT4uyavY5nNB5muff+RtWaqNVCAK408b5ZnnbNAUEWLTCpum9w6arT70i1XdQ4UeOPA=="], + + "@visulima/email/html-to-text/selderee/parseley": ["parseley@0.13.1", "", { "dependencies": { "leac": "^0.7.0", "peberminta": "^0.10.0" } }, "sha512-uNBJZzmb60l6p6VWLTmevizNAGnE0xoSf1n0B4q3ntegDNzcS68NRCcBDZTcyXHxt2XhBChsCuqj4M+nChvE/A=="], + + "@vue/compiler-core/@babel/parser/@babel/types/@babel/helper-string-parser": ["@babel/helper-string-parser@7.29.7", "", {}, "sha512-Pb5ijPrZ89GDH8223L4UP8i6QApWxs04RbPQJTeWDV0/keR2E36MeKnyr6LYmUUvqRRI+Iv87SuF1W6ErINzYw=="], + + "@vue/compiler-core/@babel/parser/@babel/types/@babel/helper-validator-identifier": ["@babel/helper-validator-identifier@7.29.7", "", {}, "sha512-qehxGkRj55h/ff8EMaJ+cYhyaKlHIxqYDn682wQD7RNp9UujOQsHog2uS0r2vzr4pW+sXf90NeeayjcNaX3fFg=="], + + "@vue/compiler-sfc/@babel/parser/@babel/types/@babel/helper-string-parser": ["@babel/helper-string-parser@7.29.7", "", {}, "sha512-Pb5ijPrZ89GDH8223L4UP8i6QApWxs04RbPQJTeWDV0/keR2E36MeKnyr6LYmUUvqRRI+Iv87SuF1W6ErINzYw=="], + + "@vue/compiler-sfc/@babel/parser/@babel/types/@babel/helper-validator-identifier": ["@babel/helper-validator-identifier@7.29.7", "", {}, "sha512-qehxGkRj55h/ff8EMaJ+cYhyaKlHIxqYDn682wQD7RNp9UujOQsHog2uS0r2vzr4pW+sXf90NeeayjcNaX3fFg=="], + "babel-dead-code-elimination/@babel/core/@babel/code-frame/@babel/helper-validator-identifier": ["@babel/helper-validator-identifier@7.29.7", "", {}, "sha512-qehxGkRj55h/ff8EMaJ+cYhyaKlHIxqYDn682wQD7RNp9UujOQsHog2uS0r2vzr4pW+sXf90NeeayjcNaX3fFg=="], "babel-dead-code-elimination/@babel/core/@babel/code-frame/js-tokens": ["js-tokens@4.0.0", "", {}, "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ=="], @@ -2169,6 +2693,10 @@ "@manypkg/find-root/find-up/locate-path/p-locate/p-limit": ["p-limit@2.3.0", "", { "dependencies": { "p-try": "^2.0.0" } }, "sha512-//88mFWSJx8lxCzwdAABTJL2MyWB12+eIY7MDL2SqLmAkeKU9qxRvWuSyTjm3FUmpBEMuFfckAIqEaVGUDxb6w=="], + "@visulima/email/html-to-text/selderee/parseley/leac": ["leac@0.7.0", "", {}, "sha512-qMrZeyEekgdRQ9o6a4NAB2EQZrv827GJdn1vnapwSJ90hWRB4TzUSunvacPkxQ2TnNqHNI1/zSt0hlo0crG8Jw=="], + + "@visulima/email/html-to-text/selderee/parseley/peberminta": ["peberminta@0.10.0", "", {}, "sha512-80B2AsU+I4Qdb0ZAPSfe9UwvGzwkM37IKIFEvdS3D/3Ndgv2bsuJ0bfG1+iEYO+l7Gfd4EUJmuRyq7efLgRMzQ=="], + "pkg-up/find-up/locate-path/p-locate/p-limit": ["p-limit@2.3.0", "", { "dependencies": { "p-try": "^2.0.0" } }, "sha512-//88mFWSJx8lxCzwdAABTJL2MyWB12+eIY7MDL2SqLmAkeKU9qxRvWuSyTjm3FUmpBEMuFfckAIqEaVGUDxb6w=="], } } diff --git a/lunora/.lunora-schema.json b/lunora/.lunora-schema.json new file mode 100644 index 00000000..e85bee04 --- /dev/null +++ b/lunora/.lunora-schema.json @@ -0,0 +1,98 @@ +{ + "migrationIds": [], + "tables": { + "nodes": { + "fields": { + "parentId": { + "kind": "string", + "optional": false + }, + "prevSiblingId": { + "kind": "string", + "optional": false + }, + "text": { + "kind": "string", + "optional": false + }, + "isTask": { + "kind": "boolean", + "optional": false + }, + "completed": { + "kind": "boolean", + "optional": false + }, + "collapsed": { + "kind": "boolean", + "optional": false + }, + "bookmarkedAt": { + "kind": "number", + "optional": false + }, + "mirrorOf": { + "kind": "string", + "optional": false + }, + "createdAt": { + "kind": "number", + "optional": false + }, + "updatedAt": { + "kind": "number", + "optional": false + }, + "origin": { + "kind": "string", + "optional": false + }, + "kind": { + "kind": "literal", + "optional": false + }, + "userId": { + "kind": "string", + "optional": false + } + }, + "indexes": { + "by_parent": { + "fields": ["parentId"], + "unique": false + } + }, + "relations": {}, + "shardMode": "shardBy:userId" + }, + "ratelimit_buckets": { + "fields": { + "key": { + "kind": "string", + "optional": false + }, + "value": { + "kind": "number", + "optional": false + }, + "ts": { + "kind": "number", + "optional": false + }, + "prev": { + "kind": "number", + "optional": true + } + }, + "indexes": { + "by_key": { + "fields": ["key"], + "unique": false + } + }, + "relations": {}, + "shardMode": "root" + } + }, + "version": 1 +} diff --git a/lunora/_generated/api.ts b/lunora/_generated/api.ts new file mode 100644 index 00000000..358808a3 --- /dev/null +++ b/lunora/_generated/api.ts @@ -0,0 +1,14 @@ +// GENERATED by @lunora/codegen — do not edit. +// Run `lunora codegen` to regenerate. + +import { anyApi } from "lunorash/server/types"; +import type { FunctionReference } from "lunorash/client"; + +export interface ApiTypes {} + +export const api = anyApi as unknown as ApiTypes; + +/** Internal functions — callable only server-side via `ctx.run*`, never from a client. */ +export interface InternalApiTypes {} + +export const internal = anyApi as unknown as InternalApiTypes; diff --git a/lunora/_generated/app.ts b/lunora/_generated/app.ts new file mode 100644 index 00000000..691922fb --- /dev/null +++ b/lunora/_generated/app.ts @@ -0,0 +1,145 @@ +// GENERATED by @lunora/codegen — do not edit. +// Run `lunora codegen` to regenerate. + +import type { ExecutionContextLike, LunoraWorker, Route, ScheduledControllerLike, ShardNamespaceLike, WorkerOptions } from "lunorash/runtime"; +import { createWorker, resolveLogArchiveFromEnv } from "lunorash/runtime"; + +import { LUNORA_CRONS } from "./crons.js"; +import { LUNORA_FUNCTIONS } from "./functions.js"; +import { openApiSpec } from "./openapi.js"; +import { createShardDO } from "./shard.js"; + +/** Read a value off the per-request `env`. Returns `undefined` to leave the capability unconfigured (its `ctx.*`/admin surface stays a clear-error stub). */ +type Selector = (env: Env) => T | undefined; + +/** The composed app: a Cloudflare module worker (`fetch` / `scheduled` / optional `email`) plus the `ShardDO` class binding. */ +interface ComposedApp extends LunoraWorker { + /** Cloudflare Email Routing entry — present only when `.onEmail(...)` was configured. */ + email?: (message: unknown, env: unknown, context: ExecutionContextLike) => Promise; + /** The generated shard Durable Object class — re-export it as a named export so wrangler can bind it. */ + ShardDO: ReturnType; +} + +/** + * Fluent worker-composition builder. Records each capability declaration, then + * `.build()` fans them into the DO-side `createShardDO` factory and the + * worker-side `createWorker` options — constructing the worker lazily on the + * first request so per-isolate singletons are built once. + */ +class AppBuilder> { + private adminToken?: Selector; + private readonly extendFns: ((env: Env, derived: Readonly) => Partial)[] = []; + private readonly routeMap: Record = {}; + private shardSelector?: Selector; + + private emailHandler?: (env: Env) => (message: unknown, env: unknown, context: ExecutionContextLike) => Promise; + + /** Bearer token gating the `/_lunora/admin/*` endpoints the studio calls. */ + public admin(selector: Selector): this { + this.adminToken = selector; + + return this; + } + + /** Escape hatch — merge raw `WorkerOptions` (anything not yet sugared) over the derived options at build time. The second `derived` argument is a snapshot of the options assembled so far (after `.auth(...)` etc.), so you can compose rather than clobber — e.g. wrap `derived.resolveIdentity` instead of replacing it. */ + public extend(fn: (env: Env, derived: Readonly) => Partial): this { + this.extendFns.push(fn); + + return this; + } + + /** Cloudflare Email Routing entry — exposes the top-level `email` handler. */ + public onEmail(handler: (env: Env) => (message: unknown, env: unknown, context: ExecutionContextLike) => Promise): this { + this.emailHandler = handler; + + return this; + } + + /** Mount a custom HTTP route (e.g. an asset-serving or test endpoint). Key is `"METHOD path"`, `"path"`, or a path prefix matched by the runtime. */ + public route(key: string, handler: Route): this { + this.routeMap[key] = handler; + + return this; + } + + /** The shard Durable Object namespace (typically `env.SHARD`) — required: every app routes RPC + WebSocket traffic through it. */ + public shard(selector: Selector): this { + this.shardSelector = selector; + + return this; + } + + /** Materialise the standalone Cloudflare worker + `ShardDO` class. */ + public build(): ComposedApp { + return this.assemble(); + } + + /** Build the shard DO + compose the worker (standalone or framework-hosted), wrapping the lazy per-isolate singletons + auth init. */ + private assemble(): ComposedApp { + const ShardDO = createShardDO({}); + + // Per-isolate singletons: the worker (and auth instance) are expensive to + // build, so the first request constructs them and every later request on + // the same isolate reuses them. + let worker: LunoraWorker | null = null; + + const buildWorker = (env: Env): LunoraWorker => createWorker(this.buildWorkerOptions(env, () => null)); + + const composed: ComposedApp = { + ShardDO, + fetch: async (request: Request, rawEnv: unknown, context: ExecutionContextLike): Promise => { + const env = rawEnv as Env; + worker ??= buildWorker(env); + + return worker.fetch(request, rawEnv, context); + }, + scheduled: async (controller: ScheduledControllerLike, rawEnv: unknown, context: ExecutionContextLike): Promise => { + worker ??= buildWorker(rawEnv as Env); + + return worker.scheduled(controller, rawEnv, context); + }, + serverQuery: (request, rawEnv, reference, args, options) => { + worker ??= buildWorker(rawEnv as Env); + + return worker.serverQuery(request, rawEnv, reference, args, options); + }, + }; + + if (this.emailHandler) { + const handler = this.emailHandler; + + composed.email = (message, rawEnv, context) => handler(rawEnv as Env)(message, rawEnv, context); + } + + return composed; + } + + /** Fan the recorded declarations into the worker-side `createWorker` options. */ + private buildWorkerOptions(env: Env, _getAuth: () => null): WorkerOptions { + const options: WorkerOptions = { + cronJobs: LUNORA_CRONS, + functions: LUNORA_FUNCTIONS, + openApiSpec, + routes: this.routeMap, + shardDO: this.shardSelector?.(env) ?? (undefined as unknown as ShardNamespaceLike), + }; + + if (this.adminToken) { + options.adminToken = this.adminToken(env); + } + + options.logArchive = resolveLogArchiveFromEnv(env); + + for (const fn of this.extendFns) { + Object.assign(options, fn(env, { ...options })); + } + + return options; + } +} + +/** Start composing the app. Chain the capability methods, then `.build()`. */ +const defineApp = >(): AppBuilder => new AppBuilder(); + +export { AppBuilder, defineApp }; +export type { ComposedApp, Selector }; diff --git a/lunora/_generated/crons.ts b/lunora/_generated/crons.ts new file mode 100644 index 00000000..0568aa24 --- /dev/null +++ b/lunora/_generated/crons.ts @@ -0,0 +1,28 @@ +// GENERATED by @lunora/codegen — do not edit. +// Run `lunora codegen` to regenerate. + +/** + * One scheduled cron invocation. Exactly one target is set: `functionPath` is + * the `namespace:fn` dispatch ref (matches `__lunoraRef`), invoked on the + * shard; `workflow` is a `WORKFLOW_*` binding name whose durable workflow is + * started fresh per fire. `args` are forwarded verbatim (a workflow's become + * its `params`). + */ +export interface LunoraCronJob { + args: Record; + functionPath?: string; + name: string; + workflow?: string; +} + +/** + * Deduplicated cron schedules — mirror of wrangler's `triggers.crons`. The + * Lunora vite plugin keeps `wrangler.jsonc` in sync with this array. + */ +export const LUNORA_CRON_TRIGGERS: ReadonlyArray = []; + +/** + * Dispatcher map keyed by cron expression. The Worker's `scheduled()` handler + * looks up `event.cron` here and dispatches every job in the list. + */ +export const LUNORA_CRONS: Record> = {}; diff --git a/lunora/_generated/dataModel.ts b/lunora/_generated/dataModel.ts new file mode 100644 index 00000000..0798cf0f --- /dev/null +++ b/lunora/_generated/dataModel.ts @@ -0,0 +1,212 @@ +// GENERATED by @lunora/codegen — do not edit. +// Run `lunora codegen` to regenerate. + +import type { + DatabaseReaderFacade as DatabaseReaderFacadeOf, + DatabaseWriterFacade as DatabaseWriterFacadeOf, + LoadWith as LoadWithOf, + TableReaderFacade as TableReaderFacadeOf, + TableWriterFacade as TableWriterFacadeOf, + WithArg as WithArgOf, +} from "lunorash/server/data-model"; + +export type { + AggregateOp, + GroupByEntry, + OrderBy, + QueryArgs, + QueryPage, + RankPage, + RankResult, + RestrictableQueryOptions, + RestrictableQueryOptionsOf, + SearchFilterBuilder, + SearchReader, + TableAggregateOptions, + TableAggregateOptionsOf, + TableGroupByOptions, + TableGroupByOptionsOf, + TableRankOptions, + TableRankPageOptions, + Where, + WhereOf, + WhereOperators, +} from "lunorash/server/data-model"; + +export type TableName = "nodes" | "ratelimit_buckets"; + +export type Id = string & { readonly __table: TName }; + +export interface Doc_nodes { + _id: Id<"nodes">; + _creationTime: number; + parentId: string; + prevSiblingId: string; + text: string; + isTask: boolean; + completed: boolean; + collapsed: boolean; + bookmarkedAt: number; + mirrorOf: string; + createdAt: number; + updatedAt: number; + origin: string; + kind: "paragraph"; + userId: string; +} + +export interface Doc_ratelimit_buckets { + _id: Id<"ratelimit_buckets">; + _creationTime: number; + key: string; + value: number; + ts: number; + prev?: number; +} + +export interface DataModel { + nodes: Doc_nodes; + ratelimit_buckets: Doc_ratelimit_buckets; +} + +export type Doc = DataModel[T]; + +/** + * Per-table index name union. `never` for tables without secondary indexes. + * Used by `TableReader.withIndex()` to constrain callers to declared names. + */ +export interface IndexNamesByTable { + nodes: "by_parent"; + ratelimit_buckets: "by_key"; +} + +export type IndexName = IndexNamesByTable[T]; + +/** Per-table search-index name union. `never` for tables without searchIndex. */ +export interface SearchIndexNamesByTable { + nodes: never; + ratelimit_buckets: never; +} + +export type SearchIndexName = SearchIndexNamesByTable[T]; + +/** Per-table rank-index name union. `never` for tables without a rankIndex. */ +export interface RankIndexNamesByTable { + nodes: never; + ratelimit_buckets: never; +} + +export type RankIndexName = RankIndexNamesByTable[T]; + +/** Per-table geo-index name union. `never` for tables without a geoIndex. */ +export interface GeoIndexNamesByTable { + nodes: never; + ratelimit_buckets: never; +} + +export type GeoIndexName = GeoIndexNamesByTable[T]; + +/** Union of declared vector index names. `never` when none are declared. */ +export type VectorIndexName = never; + +export interface Insert_nodes { + _id?: Id<"nodes">; + _creationTime?: number; + parentId: string; + prevSiblingId: string; + text: string; + isTask: boolean; + completed: boolean; + collapsed: boolean; + bookmarkedAt: number; + mirrorOf: string; + createdAt: number; + updatedAt: number; + origin: string; + kind: "paragraph"; + userId: string; +} + +export interface Insert_ratelimit_buckets { + _id?: Id<"ratelimit_buckets">; + _creationTime?: number; + key: string; + value: number; + ts: number; + prev?: number; +} + +/** Per-table insert shape, accepted by `ctx.db..insert(...)`. */ +export interface InsertModel { + nodes: Insert_nodes; + ratelimit_buckets: Insert_ratelimit_buckets; +} + +export type Insert = InsertModel[T]; + +/** + * Phantom relation descriptors. They carry the relation kind and target table + * as type parameters only — there is no runtime value — so the `with` argument + * and its return type can be inferred from {@link Relations}. + */ +export interface OneRelation { + readonly __relationKind: "one"; + readonly __target: Target; +} + +export interface ManyRelation { + readonly __relationKind: "many"; + readonly __target: Target; +} + +/** Per-table relation map keyed by accessor name. `{}` for tables with none. */ +export interface Relations { + nodes: {}; + ratelimit_buckets: {}; +} + +/** The `with` argument for table `T` — see `@lunora/server/data-model`. */ +export type WithArg = WithArgOf; + +/** `Doc` narrowed to exactly the relations requested in the with-arg `W`. */ +export type LoadWith = LoadWithOf; + +/** Read-only typed table accessor exposed on `QueryCtx.db.
    `. */ +export type TableReaderFacade = TableReaderFacadeOf; + +/** Read-write typed table accessor exposed on `MutationCtx.db.
    ` / `ActionCtx.db.
    `. */ +export type TableWriterFacade = TableWriterFacadeOf; + +/** Per-table read facade — `ctx.db.
    ` on a `QueryCtx`. */ +export type DatabaseReaderFacade = DatabaseReaderFacadeOf; + +/** Per-table read-write facade — `ctx.db.
    ` on a `MutationCtx` / `ActionCtx`. */ +export type DatabaseWriterFacade = DatabaseWriterFacadeOf; + +/** Insert builder returned by `ctx.orm.insert(table)`. */ +export interface OrmInsertBuilder { + values: (values: Insert) => Promise>; +} + +/** Replace builder returned by `ctx.orm.replace(table, id)` — swaps the whole document. */ +export interface OrmReplaceBuilder { + with: (values: Insert) => Promise; +} + +/** Update builder returned by `ctx.orm.update(table, id)` — patches the named fields. */ +export interface OrmUpdateBuilder { + set: (values: Partial>) => Promise; +} + +/** Read-only ORM surface — `ctx.orm` on a `QueryCtx`. Mirrors `ctx.db` reads under a kitcn-style `query` namespace. */ +export interface OrmReader { + query: DatabaseReaderFacade; +} + +/** Read-write ORM surface — `ctx.orm` on a `MutationCtx` / `ActionCtx`. Writes are addressed by id, like `ctx.db`. */ +export interface OrmWriter extends OrmReader { + delete: (table: T, id: Id) => Promise; + insert: (table: T) => OrmInsertBuilder; + replace: (table: T, id: Id) => OrmReplaceBuilder; + update: (table: T, id: Id) => OrmUpdateBuilder; +} diff --git a/lunora/_generated/drizzle.global.ts b/lunora/_generated/drizzle.global.ts new file mode 100644 index 00000000..208ad136 --- /dev/null +++ b/lunora/_generated/drizzle.global.ts @@ -0,0 +1,4 @@ +// GENERATED by @lunora/codegen — do not edit. +// Run `lunora codegen` to regenerate. + +export {}; diff --git a/lunora/_generated/drizzle.shard.ts b/lunora/_generated/drizzle.shard.ts new file mode 100644 index 00000000..7d88f20d --- /dev/null +++ b/lunora/_generated/drizzle.shard.ts @@ -0,0 +1,35 @@ +// GENERATED by @lunora/codegen — do not edit. +// Run `lunora codegen` to regenerate. + +import { index, integer, real, sqliteTable, text } from "lunorash/server/drizzle"; + +export const nodes = sqliteTable("nodes", { + _id: text("_id").primaryKey(), + _creationTime: integer("_creationTime").notNull(), + parentId: text("parentId").notNull(), + prevSiblingId: text("prevSiblingId").notNull(), + text: text("text").notNull(), + isTask: integer("isTask", { mode: "boolean" }).notNull(), + completed: integer("completed", { mode: "boolean" }).notNull(), + collapsed: integer("collapsed", { mode: "boolean" }).notNull(), + bookmarkedAt: real("bookmarkedAt").notNull(), + mirrorOf: text("mirrorOf").notNull(), + createdAt: real("createdAt").notNull(), + updatedAt: real("updatedAt").notNull(), + origin: text("origin").notNull(), + kind: text("kind").notNull(), + userId: text("userId").notNull(), +}, (t) => ({ + by_parent: index("by_parent").on(t.parentId), +})); + +export const ratelimit_buckets = sqliteTable("ratelimit_buckets", { + _id: text("_id").primaryKey(), + _creationTime: integer("_creationTime").notNull(), + key: text("key").notNull(), + value: real("value").notNull(), + ts: real("ts").notNull(), + prev: real("prev"), +}, (t) => ({ + by_key: index("by_key").on(t.key), +})); diff --git a/lunora/_generated/functions.ts b/lunora/_generated/functions.ts new file mode 100644 index 00000000..0ae46078 --- /dev/null +++ b/lunora/_generated/functions.ts @@ -0,0 +1,122 @@ +// GENERATED by @lunora/codegen — do not edit. +// Run `lunora codegen` to regenerate. + +import * as lunora_mutators_0 from "../mutators.js"; +import * as lunora_shapes_1 from "../shapes.js"; + +import type { RegisteredShape } from "lunorash/server"; +import { LunoraError } from "lunorash/server"; +import type { ActionCtx, MutationCtx, QueryCtx } from "./server.js"; + +/** + * Single registered function, narrowed to the shape `handleRpc` needs. + * The real argument validators / return types are checked elsewhere — at + * the dispatch site we erase to `unknown` so a single map can host every + * registered function. + */ +export interface RegisteredLunoraFunction { + kind: "action" | "mutation" | "query" | "stream"; + args: Record; + /** + * For `"action" | "mutation" | "query"` the handler is awaited and its result returned. + * For `"stream"` the handler returns an `AsyncIterable` synchronously and takes an + * `AbortSignal` as a third argument — the runtime drives it frame-by-frame. + */ + handler: ((context: unknown, args: Record) => Promise | unknown) | ((context: unknown, args: Record, signal?: AbortSignal) => AsyncIterable); + /** `"internal"` functions are rejected on the external RPC path; absence === public. */ + visibility?: "internal" | "public"; +} + +/** + * Static dispatch table. The key matches the `__lunoraRef` the client + * emits (`api[namespace][fn].__lunoraRef === "namespace:fn"`). + */ +export const LUNORA_FUNCTIONS: Record = { + "mutators:hello": lunora_mutators_0.hello as unknown as RegisteredLunoraFunction, + "mutators:indent": lunora_mutators_0.indent as unknown as RegisteredLunoraFunction, + "mutators:insertSibling": lunora_mutators_0.insertSibling as unknown as RegisteredLunoraFunction, + "mutators:outdent": lunora_mutators_0.outdent as unknown as RegisteredLunoraFunction, + "mutators:removeNode": lunora_mutators_0.removeNode as unknown as RegisteredLunoraFunction, + "mutators:seedIfEmpty": lunora_mutators_0.seedIfEmpty as unknown as RegisteredLunoraFunction, + "mutators:setText": lunora_mutators_0.setText as unknown as RegisteredLunoraFunction, +}; + +/** + * Replication-shape registry — one entry per `defineShape` in `lunora/shapes.ts`. + * The generated ShardDO's `resolveShape` override looks a shape up by name and + * evaluates its trusted `compileWhere(ctx, args)` to authorize + scope a + * `shape_subscribe` (reads-as-permissions). + */ +export const LUNORA_SHAPES: Record = { + "wholeOutline": lunora_shapes_1.wholeOutline as unknown as RegisteredShape, +}; + +/** + * Custom-mutator function paths — the `LUNORA_FUNCTIONS` keys the generated + * ShardDO's `isCustomMutator` override routes through the client-watermark push + * protocol (`x-lunora-client-id`/`x-lunora-client-seq` ordering). + */ +export const LUNORA_MUTATOR_PATHS: ReadonlySet = new Set(["mutators:hello", "mutators:indent", "mutators:insertSibling", "mutators:outdent", "mutators:removeNode", "mutators:seedIfEmpty", "mutators:setText"]); + +/** + * Connection-lifecycle manifest: the function paths the generated ShardDO + * dispatches when a client's WebSocket connects (`connect`) or disconnects + * (`disconnect`). Each path also resolves through {@link LUNORA_FUNCTIONS}; the + * DO runs every hook under the socket's verified identity via system dispatch. + */ +export const LUNORA_LIFECYCLE_HOOKS: { connect: readonly string[]; disconnect: readonly string[] } = { + connect: [], + disconnect: [], +}; + +/** + * Resolve and invoke a registered function from an external caller. Throws a + * LunoraError-shaped object (404) when the path is unknown — the runtime's + * structural error mapper turns that into the right HTTP status. Internal + * functions are treated as not-found so their existence never leaks to clients. + */ +export const dispatchLunoraFunction = async (functionPath: string, context: unknown, args: Record): Promise => { + const registered = LUNORA_FUNCTIONS[functionPath]; + + if (!registered || registered.visibility === "internal") { + throw new LunoraError("FUNCTION_NOT_FOUND", `function not registered: ${functionPath}`); + } + + return registered.handler(context, args); +}; + +/** + * A handler context accepted by {@link createCaller}. The runtime context the + * shard DO builds is uniform across kinds, so any handler's `ctx` works here. + */ +export type CallerCtx = ActionCtx | MutationCtx | QueryCtx; + +/** + * Typed, in-process server-to-server caller. Every registered function — public + * *and* internal — is reachable; each call dispatches against the same shard + * with the supplied `context`, exactly like `ctx.runQuery`/`runMutation`/ + * `runAction` but without re-stating the function path. + */ +export interface Caller {} + +/** Build a {@link Caller} bound to `context` (typically a handler's `ctx`). */ +export const createCaller = (_context: CallerCtx): Caller => ({}); + +/** + * Single registered data migration, narrowed to the shape the per-shard runner + * consumes. `up`/`down` are erased to a structural transform; the authoring + * validation lives in `defineMigration`. + */ +export interface RegisteredDataMigration { + batchSize?: number; + down?: (document: Record) => Record | undefined; + id: string; + table: string; + up: (document: Record) => Record | undefined; +} + +/** + * Registry of online data migrations keyed by `defineMigration`'s `id`. The + * shard DO's admin RPC and the CLI resolve migrations to run through this map. + */ +export const LUNORA_MIGRATIONS: Record = {}; diff --git a/lunora/_generated/openapi.json b/lunora/_generated/openapi.json new file mode 100644 index 00000000..18e34e01 --- /dev/null +++ b/lunora/_generated/openapi.json @@ -0,0 +1,66 @@ +{ + "components": { + "responses": { + "LunoraError": { + "content": { + "application/json": { + "schema": { + "additionalProperties": false, + "description": "Standard Lunora error envelope.", + "properties": { + "error": { + "additionalProperties": false, + "properties": { + "code": { + "description": "Machine-readable error code. Clients switch on this value.", + "enum": [ + "BAD_REQUEST", + "CONFLICT", + "COUNT_RLS_UNSUPPORTED", + "FORBIDDEN", + "FUNCTION_NOT_FOUND", + "INTERNAL", + "INTERNAL_SERVER_ERROR", + "METHOD_NOT_ALLOWED", + "NOT_FOUND", + "NOT_IMPLEMENTED", + "PAYLOAD_TOO_LARGE", + "TOO_MANY_REQUESTS", + "UNAUTHORIZED", + "UNPROCESSABLE", + "VALIDATION_ERROR" + ], + "type": "string" + }, + "message": { + "description": "Human-readable error message (never echoes internal details).", + "type": "string" + } + }, + "required": [ + "code", + "message" + ], + "type": "object" + } + }, + "required": [ + "error" + ], + "type": "object" + } + } + }, + "description": "A Lunora error response. The HTTP status reflects the error code (e.g. BAD_REQUEST→400, UNAUTHORIZED→401, FORBIDDEN→403, NOT_FOUND→404)." + } + } + }, + "info": { + "description": "Auto-generated from @lunora/values-typed functions by @lunora/codegen. Do not edit — run `lunora codegen` to regenerate.", + "title": "Lunora API", + "version": "1.8.0" + }, + "openapi": "3.1.0", + "paths": {}, + "tags": [] +} diff --git a/lunora/_generated/openapi.ts b/lunora/_generated/openapi.ts new file mode 100644 index 00000000..d72182ab --- /dev/null +++ b/lunora/_generated/openapi.ts @@ -0,0 +1,69 @@ +// GENERATED by @lunora/codegen — do not edit. +// Run `lunora codegen` to regenerate. + +export const openApiSpec: Record = { + "components": { + "responses": { + "LunoraError": { + "content": { + "application/json": { + "schema": { + "additionalProperties": false, + "description": "Standard Lunora error envelope.", + "properties": { + "error": { + "additionalProperties": false, + "properties": { + "code": { + "description": "Machine-readable error code. Clients switch on this value.", + "enum": [ + "BAD_REQUEST", + "CONFLICT", + "COUNT_RLS_UNSUPPORTED", + "FORBIDDEN", + "FUNCTION_NOT_FOUND", + "INTERNAL", + "INTERNAL_SERVER_ERROR", + "METHOD_NOT_ALLOWED", + "NOT_FOUND", + "NOT_IMPLEMENTED", + "PAYLOAD_TOO_LARGE", + "TOO_MANY_REQUESTS", + "UNAUTHORIZED", + "UNPROCESSABLE", + "VALIDATION_ERROR" + ], + "type": "string" + }, + "message": { + "description": "Human-readable error message (never echoes internal details).", + "type": "string" + } + }, + "required": [ + "code", + "message" + ], + "type": "object" + } + }, + "required": [ + "error" + ], + "type": "object" + } + } + }, + "description": "A Lunora error response. The HTTP status reflects the error code (e.g. BAD_REQUEST→400, UNAUTHORIZED→401, FORBIDDEN→403, NOT_FOUND→404)." + } + } + }, + "info": { + "description": "Auto-generated from @lunora/values-typed functions by @lunora/codegen. Do not edit — run `lunora codegen` to regenerate.", + "title": "Lunora API", + "version": "1.8.0" + }, + "openapi": "3.1.0", + "paths": {}, + "tags": [] +}; diff --git a/lunora/_generated/server.ts b/lunora/_generated/server.ts new file mode 100644 index 00000000..1d8eb875 --- /dev/null +++ b/lunora/_generated/server.ts @@ -0,0 +1,146 @@ +// GENERATED by @lunora/codegen — do not edit. +// Run `lunora codegen` to regenerate. + +import { createPolicyDsl, initLunora, v as vBase } from "lunorash/server"; +import type { + ActionBuilder, + ActionCtx as ActionCtxBase, + ColumnValidator, + DatabaseReader, + DatabaseWriter, + EmptyArgs, + InternalActionBuilder, + InternalMutationBuilder, + InternalQueryBuilder, + MutationBuilder, + MutationCtx as MutationCtxBase, + QueryBuilder, + QueryCtx as QueryCtxBase, + ReadOnlyStorage, + Storage as StorageBase, + TableReader, +} from "lunorash/server"; + +import type { DataModel, DatabaseReaderFacade, DatabaseWriterFacade, Doc, Id as IdOfTable, OrmReader, OrmWriter, Relations, TableName } from "./dataModel.js"; + +export type { DataModel, Doc, Id, TableName } from "./dataModel.js"; + +/** Storage buckets this schema declares (`v.storage("name")`), narrowing `ctx.storage.bucket(name)`. */ +export type StorageBucketName = "default"; + +/** + * This project's Cloudflare bindings, as far as codegen can discover them from + * `lunora/` source — the container/workflow Durable Object namespaces and the + * conventional Workers AI binding. Bindings the config layer reconciles from + * user-named wrangler config (R2/KV/D1/`services`/queues/…) aren't statically + * visible here, so the open index signature keeps them reachable (cast at the + * use site). Service bindings (`env..fetch(...)` / RPC stubs) live + * under this signature too — Lunora can't type a third-party worker's RPC + * surface, so treat them as `Fetcher`/`Service` and cast. + */ +export interface CloudflareBindings { + readonly [binding: string]: unknown; +} + +/** Alias for {@link CloudflareBindings} — the typed shape of `env`. */ +export type Env = CloudflareBindings; + +/** + * Project-typed contexts. The base contexts from `@lunora/server` are + * untyped against the schema; here `db` is widened to the generated per-table + * facade (`ctx.db.
    .findMany(...)`) while keeping the legacy structural + * `db.get`/`db.query` surface for back-compat, and `storage` is narrowed so + * `ctx.storage.bucket(name)` autocompletes the declared buckets. + */ +/** + * The Convex-style fluent reader `ctx.db.query(table)`, bound to this schema: + * a table-name literal narrows the row type, so `.collect()` / `.first()` / + * `.take()` (and the `.withIndex()` / `.filter()` / `.order()` chain) resolve + * as `Doc
    ` with no `as unknown as Doc<...>` casts. The per-table accessor + * `ctx.db.
    ` stays available alongside it via the facade. + * + * Intersected with the wide `(string) => TableReader` signature so the bound + * `ctx.db` is still structurally assignable to schema-agnostic consumers that + * call `db.query(someString)` (e.g. `@lunora/ratelimit`'s `createDbStore`). + */ +type TypedTableQuery = ((table: T) => TableReader>) & ((table: string) => TableReader); + +/** + * The point read `ctx.db.get(id)`, bound to this schema: an `Id<"table">` + * carries its table name, so the resolved document is typed `Doc
    ` (or + * `null` when absent) with no `as Doc<...>` cast. Mirrors {@link TypedTableQuery}. + */ +type TypedTableGet = (id: IdOfTable) => Promise | null>; + +export interface QueryCtx extends Omit { + readonly db: Omit & DatabaseReaderFacade & { query: TypedTableQuery; get: TypedTableGet }; + readonly orm: OrmReader; + readonly storage: ReadOnlyStorage; +} + +export interface MutationCtx extends Omit { + readonly db: Omit & DatabaseWriterFacade & { query: TypedTableQuery; get: TypedTableGet }; + readonly orm: OrmWriter; + readonly storage: ReadOnlyStorage; +} + +export interface ActionCtx extends Omit { + readonly db: Omit & DatabaseWriterFacade & { query: TypedTableQuery; get: TypedTableGet }; + readonly orm: OrmWriter; + readonly storage: StorageBase; +} + +/** + * Procedure builders bound to this project's typed contexts. Chain + * `.input({...})` to declare args, `.use(middleware)` for rate limiting / RLS / + * masking (each middleware may refine `ctx`), then the terminal + * `.query()` / `.mutation()` / `.action()` with a `({ ctx, args }) => ...` + * handler. `.output(validator)` and (queries) `.stream()` are also available. + */ +const lunoraBuilders = initLunora.dataModel().create(); + +/** `query` builder bound to this project's typed {@link QueryCtx}. */ +export const query = lunoraBuilders.query as unknown as QueryBuilder; + +/** `mutation` builder bound to this project's typed {@link MutationCtx}. */ +export const mutation = lunoraBuilders.mutation as unknown as MutationBuilder; + +/** `action` builder bound to this project's typed {@link ActionCtx}. */ +export const action = lunoraBuilders.action as unknown as ActionBuilder; + +/** `internalQuery` builder bound to this project's typed {@link QueryCtx} — never exposed on `api`. */ +export const internalQuery = lunoraBuilders.internalQuery as unknown as InternalQueryBuilder; + +/** `internalMutation` builder bound to this project's typed {@link MutationCtx} — never exposed on `api`. */ +export const internalMutation = lunoraBuilders.internalMutation as unknown as InternalMutationBuilder; + +/** `internalAction` builder bound to this project's typed {@link ActionCtx} — never exposed on `api`. */ +export const internalAction = lunoraBuilders.internalAction as unknown as InternalActionBuilder; + +/** + * `definePolicy` bound to THIS schema's {@link DataModel} + {@link Relations}. + * Import it from here (`./_generated/server`) instead of `@lunora/server` to get + * a relation-aware RLS authoring surface: `table` autocompletes to a real table + * name and the `when` predicate type-checks against the table's columns **and** + * its declared relations — `{ author: { is: {...} } }`, `{ posts: { some: {...} } }`, + * etc. (the `@lunora/do` pre-resolver resolves relation predicates on reads). + * Runtime-identical to `@lunora/server`'s `definePolicy`; only the types narrow, + * so the `rls()` chain discovers a policy authored either way the same. + */ +export const definePolicy = createPolicyDsl(); + +/** + * The validator builder `v`, with `v.id(...)` constrained to THIS schema's + * table names — so the argument autocompletes and returns a precise + * `Id<"table">`. Identical to `@lunora/server`'s `v` at runtime; the only + * difference is the tightened `id` type. + * + * Import `v` from here (`./_generated/server`) in your queries/mutations/actions + * to get table-name autocomplete. `lunora/schema.ts` can't use it — it is the + * file that defines the table names, so they aren't known yet there; pass the + * names as string literals and the generated `Id<"table">` types still catch a + * typo wherever the id is used. + */ +export const v = vBase as unknown as Omit & { + id: (table: T) => ColumnValidator, IdOfTable>; +}; diff --git a/lunora/_generated/shard.ts b/lunora/_generated/shard.ts new file mode 100644 index 00000000..c03034a2 --- /dev/null +++ b/lunora/_generated/shard.ts @@ -0,0 +1,784 @@ +// GENERATED by @lunora/codegen — do not edit. +// Run `lunora codegen` to regenerate. + +import type { AdvisoryFinding, DatabaseWriterLike, DataMigrationLike, LogSink, MaskPoliciesResult, MigrationRunResult, RunShardApplyCdcArgs, RunShardMigrationArgs, RlsPoliciesResult, RunShardRankBeforeArgs, RunShardRankPageArgs, RunShardWriteArgs, RunShardWriteResult, SchedulerLike, SchemaLike, ShardDOState, ShardRankPageResult, SqlExec, StorageRulesResult, StudioFeaturesResult, SystemReaderStorageLike, WhereInput } from "lunorash/do"; +import { applyCdcChanges, assertShapeShardable, createShardCtxDb, runDataMigration, runShardMigrations, ShardDO as ShardDOBase } from "lunorash/do"; +import { asBucketStorage, buildRlsReadRegistry, composeShapeReadWhere, createSecrets, LunoraError } from "lunorash/server"; +import { bindOrm, bindTableFacade } from "lunorash/server"; + +import schema from "../schema.js"; +import { LUNORA_FUNCTIONS, LUNORA_LIFECYCLE_HOOKS, LUNORA_MIGRATIONS, LUNORA_MUTATOR_PATHS, LUNORA_SHAPES } from "./functions.js"; + +type FunctionKind = "action" | "mutation" | "query"; + +interface FunctionReference { + __lunoraRef: string; +} + +/** Foreign-key columns per table (`v.id("target")` fields) for the data browser. */ +const LUNORA_TABLE_REFS: Record> = {}; + +/** Declared indexes per table (secondary, search, geo, rank, vector) for the schema viewer. */ +const LUNORA_TABLE_INDEXES: Record> = { + "nodes": [ + { + "fields": [ + "parentId" + ], + "name": "by_parent", + "type": "index" + } + ], + "ratelimit_buckets": [ + { + "fields": [ + "key" + ], + "name": "by_key", + "type": "index" + } + ] +}; + +/** Columns per table (typed, with PK/FK markers) for the studio's schema diagram, served via `__lunora_admin__:describeTable`. */ +const LUNORA_TABLE_COLUMNS: Record> = { + "nodes": [ + { + "name": "_id", + "optional": false, + "pk": true, + "type": "id" + }, + { + "name": "_creationTime", + "optional": false, + "type": "number" + }, + { + "name": "parentId", + "optional": false, + "type": "string" + }, + { + "name": "prevSiblingId", + "optional": false, + "type": "string" + }, + { + "name": "text", + "optional": false, + "type": "string" + }, + { + "name": "isTask", + "optional": false, + "type": "boolean" + }, + { + "name": "completed", + "optional": false, + "type": "boolean" + }, + { + "name": "collapsed", + "optional": false, + "type": "boolean" + }, + { + "name": "bookmarkedAt", + "optional": false, + "type": "number" + }, + { + "name": "mirrorOf", + "optional": false, + "type": "string" + }, + { + "name": "createdAt", + "optional": false, + "type": "number" + }, + { + "name": "updatedAt", + "optional": false, + "type": "number" + }, + { + "name": "origin", + "optional": false, + "type": "string" + }, + { + "name": "kind", + "optional": false, + "type": "literal" + }, + { + "name": "userId", + "optional": false, + "type": "string" + } + ], + "ratelimit_buckets": [ + { + "name": "_id", + "optional": false, + "pk": true, + "type": "id" + }, + { + "name": "_creationTime", + "optional": false, + "type": "number" + }, + { + "name": "key", + "optional": false, + "type": "string" + }, + { + "name": "value", + "optional": false, + "type": "number" + }, + { + "name": "ts", + "optional": false, + "type": "number" + }, + { + "name": "prev", + "optional": true, + "type": "number" + } + ] +}; + +/** Storage-key columns per table (`v.storage(...)` fields) for the file browser's records↔files join. */ +const LUNORA_STORAGE_COLUMNS: Record = {}; + +/** Declarative TTL policies (`.ttl(field, { after? })`) the DO alarm sweep auto-expires rows for. */ +const LUNORA_TTL_SWEEPS: Array<{ after?: number; field: string; softDeleteField?: string; table: string }> = []; + +/** Static schema advisories (computed by @lunora/advisor at codegen time) served via `__lunora_admin__:getAdvisories`. */ +const LUNORA_ADVISORIES: AdvisoryFinding[] = [ + { + "cacheKey": "table_without_insert:nodes", + "categories": [ + "SCHEMA" + ], + "description": "No function inserts into this table via `ctx.db.insert(\"
    \", …)`. It may be read-only by design (seeded by a migration, replicated, or written through a path the advisor can't see) — or it may be dead schema.", + "detail": "No function calls `ctx.db.insert(\"nodes\", …)` — table \"nodes\" has no discovered insert path.", + "facing": "INTERNAL", + "level": "INFO", + "metadata": { + "table": "nodes" + }, + "name": "table_without_insert", + "remediation": "If the table should be writable, add a mutation that calls `ctx.db.insert(\"
    \", …)`. If it is read-only or seeded elsewhere, this advisory can be ignored.", + "title": "Table has no insert path" + }, + { + "cacheKey": "plaintext_secret_in_wrangler_vars:wrangler.jsonc:SENTRY_DSN", + "categories": [ + "SECURITY" + ], + "description": "A plaintext secret is committed to `wrangler.jsonc`'s `vars` block. `vars` are cleartext — baked into the deployed Worker and checked into source control — so the secret leaks via the repo and the bundle, and rotating it needs a config edit plus a redeploy.", + "detail": "The `vars` entry `SENTRY_DSN` in wrangler.jsonc holds a plaintext hex secret (http…(95 chars)). `vars` ship in cleartext to the deployed Worker and are committed to source control — move it to a Secrets Store binding or `wrangler secret put` and rotate the exposed value.", + "facing": "INTERNAL", + "level": "ERROR", + "metadata": { + "file": "wrangler.jsonc", + "key": "SENTRY_DSN", + "kind": "hex_secret", + "preview": "http…(95 chars)" + }, + "name": "plaintext_secret_in_wrangler_vars", + "remediation": "Move the value out of `vars`: bind it through a Secrets Store (`ctx.secrets.get()`) or set it with `wrangler secret put ` and read it from `env.`. Delete the `vars` entry and rotate the exposed value — assume it is already compromised. Public/publishable keys (name them `*_PUBLIC` / `*_PUBLISHABLE`) are exempt.", + "title": "Plaintext secret in wrangler vars" + } +]; + +/** Read-only RLS metadata (policies + roles discovered from `.use(rls(...))` chains) served via `__lunora_admin__:rlsPolicies` for the studio's RLS inspector. */ +const LUNORA_RLS_METADATA: RlsPoliciesResult = { + "policies": [], + "roles": [] +}; + +/** Read-only masking metadata (table + column + strategy discovered from `.use(mask(...))` chains) served via `__lunora_admin__:maskPolicies` for the studio's data-browser mask preview. */ +const LUNORA_MASK_METADATA: MaskPoliciesResult = { + "columns": [] +}; + +/** Read-only storage access-rule metadata (discovered from `.use(storageRules(...))` chains) served via `__lunora_admin__:storageRules` for the studio's access-rules view. */ +const LUNORA_STORAGE_RULES: StorageRulesResult = { + "rules": [] +}; + +/** Which optional package-backed features this app wires up (discovered from imports / `ctx.*` reads / schema signals) served via `__lunora_admin__:studioFeatures` so the studio hides nav pages whose package isn't enabled. */ +const LUNORA_STUDIO_FEATURES: StudioFeaturesResult = { + "analytics": false, + "auth": false, + "containers": false, + "flags": false, + "kv": false, + "mail": false, + "payments": false, + "queues": false, + "scheduler": false, + "storage": false, + "vectors": false, + "workflows": false +}; + +/** Per-table RLS read policies (hoisted from `.use(rls(...))` chains) the shape resolver AND-merges into each `defineShape` predicate so partial replication honours read policies. */ +const LUNORA_RLS_READ_REGISTRY = buildRlsReadRegistry(Object.values(LUNORA_FUNCTIONS)); + +export interface ShardDOConfig { + /** Opt into change-data-capture: records a post-image to `__cdc_log` on every write (backs streaming export + replay-PITR). */ + cdc?: boolean; + /** Optional telemetry sink. When supplied, each `ctx.log.*` call is forwarded to `sink.onLog`. Pass the SAME sink you give `createWorker({ observability })` (which drives `onRpc`) to route both RPC and log events. */ + observability?: (env: Record) => LogSink | undefined; + scheduler?: (env: Record) => unknown; + storage?: (env: Record) => unknown; +} + +const schedulerStub = { + cancel: async () => { + throw new Error("ctx.scheduler: no scheduler configured. Pass `scheduler` to createShardDO()."); + }, + runAfter: async () => { + throw new Error("ctx.scheduler: no scheduler configured. Pass `scheduler` to createShardDO()."); + }, + runAt: async () => { + throw new Error("ctx.scheduler: no scheduler configured. Pass `scheduler` to createShardDO()."); + }, +}; + +const storageStub = { + delete: async () => { + throw new Error("ctx.storage: no storage configured. Pass `storage` to createShardDO()."); + }, + download: async () => { + throw new Error("ctx.storage: no storage configured. Pass `storage` to createShardDO()."); + }, + getMetadata: async () => { + throw new Error("ctx.storage: no storage configured. Pass `storage` to createShardDO()."); + }, + getSignedUrl: async () => { + throw new Error("ctx.storage: no storage configured. Pass `storage` to createShardDO()."); + }, + getUrl: () => { + throw new Error("ctx.storage: no storage configured. Pass `storage` to createShardDO()."); + }, + list: async () => { + throw new Error("ctx.storage: no storage configured. Pass `storage` to createShardDO()."); + }, + upload: async () => { + throw new Error("ctx.storage: no storage configured. Pass `storage` to createShardDO()."); + }, +}; + +// Bound in-process `ctx.run*` composition depth so a self- or cyclically- +// referencing call fails loudly with a clear error instead of overflowing the +// stack. Tracked across the awaited handler chain (one DO invocation is +// single-threaded), so the counter reflects true nesting depth. +const MAX_RUN_DEPTH = 32; +let runDepth = 0; + +const dispatchRun = async (expected: FunctionKind, functionPath: string, args: Record, ctx: unknown): Promise => { + const registered = LUNORA_FUNCTIONS[functionPath]; + + if (!registered) { + throw new Error(`unknown function: ${functionPath}`); + } + + if (registered.kind !== expected) { + throw new Error(`ctx.run${expected[0]!.toUpperCase()}${expected.slice(1)}: "${functionPath}" is registered as a ${registered.kind}, not a ${expected}`); + } + + if (runDepth >= MAX_RUN_DEPTH) { + throw new LunoraError("RUN_DEPTH_EXCEEDED", `ctx.run*: composition depth limit (${MAX_RUN_DEPTH}) exceeded — likely a cyclic runQuery/runMutation`); + } + + runDepth += 1; + + try { + return await registered.handler(ctx, args); + } finally { + runDepth -= 1; + } +}; + +/** + * Build the project's shard Durable Object. Export the result as `ShardDO` + * from the worker entry so wrangler binds it by name. + */ +export const createShardDO = (config: ShardDOConfig = {}): new (state: ShardDOState, env: unknown) => ShardDOBase => + class extends ShardDOBase { + private migrated = false; + + public override async handleRpc(functionPath: string, args: Record): Promise { + const registered = LUNORA_FUNCTIONS[functionPath]; + + // Internal functions are reachable server-side only: via `ctx.run*` + // composition, or a trusted system dispatch (scheduler/cron, marked by + // `isSystemDispatch()`). A client RPC never carries that flag, so its + // internals stay not-found and never leak across the external boundary. + if (!registered || (registered.visibility === "internal" && !this.isSystemDispatch())) { + throw new LunoraError("FUNCTION_NOT_FOUND", `function not registered: ${functionPath}`); + } + + this.ensureMigrated(); + + const ctx = this.buildCtx({ functionPath }); + + // A mutation's writes must commit all-or-nothing: wrap its dispatch in + // the DO's BEGIN/COMMIT span so any throw (a validator, an RLS denial, + // an OCC conflict, a failed row mid-`insertMany`/`patchMany`) rolls + // back every write the mutation made. Queries are read-only and actions + // do external I/O that can't be rolled back, so both dispatch directly. + // `ctx.run*` composition runs inside this span (it never re-enters + // handleRpc); runInTransaction's own guard rejects accidental nesting. + // + // The replay bookkeeping (idempotency dedup row + custom-mutator + // watermark advance) commits INSIDE this span via + // `commitMutationBookkeeping`, so the writes, the dedup row, and the + // watermark are atomic — a crash can't leave the writes durable without + // the replay guard. + if (registered.kind === "mutation") { + return this.runInTransaction(async () => { + const result = await registered.handler(ctx, args); + + this.commitMutationBookkeeping(result); + + return result; + }); + } + + return registered.handler(ctx, args); + } + + protected override async executeSubscription(functionPath: string, args: Record, identity?: { identity?: Record; userId?: string }): Promise<{ result: unknown; tables: Set } | null> { + const registered = LUNORA_FUNCTIONS[functionPath]; + + if (!registered || registered.kind !== "query" || registered.visibility === "internal") { + return null; + } + + this.ensureMigrated(); + + const tables = new Set(); + // Identity is threaded EXPLICITLY from the (deferred/interleaved) + // subscription caller — never read from the shared per-request field + // here — so a concurrent RPC can't leak its identity into this re-run. + const ctx = this.buildCtx({ functionPath, identity, onRead: (table) => tables.add(table) }); + const result = await registered.handler(ctx, args); + + return { result, tables }; + } + + protected override executeStream(functionPath: string, args: Record): null | { iterator: (signal: AbortSignal) => AsyncIterable } { + const registered = LUNORA_FUNCTIONS[functionPath]; + + if (!registered || registered.kind !== "stream" || registered.visibility === "internal") { + return null; + } + + this.ensureMigrated(); + + return { + iterator: (signal) => (registered.handler as (context: unknown, args: Record, signal: AbortSignal) => AsyncIterable)(this.buildCtx({ functionPath }), args, signal), + }; + } + + protected override isCustomMutator(functionPath: string): boolean { + return LUNORA_MUTATOR_PATHS.has(functionPath); + } + + protected override resolveShape(name: string, args: Record, identity?: { identity?: Record; userId?: string }): { columns?: readonly string[]; effectiveWhere?: WhereInput; global?: boolean; table: string } | undefined { + const shape = LUNORA_SHAPES[name]; + + if (!shape) { + return undefined; + } + + this.ensureMigrated(); + + // Trusted ctx from the socket's OWN verified identity — the client + // supplies only the shape name + args; `compileWhere` validates the + // args then runs the shape's `where(ctx, args)` under that identity, + // so which rows replicate is a server decision (reads-as-permissions). + const ctx = this.buildCtx({ functionPath: `__shape__:${name}`, identity }); + const shapeWhere = shape.compileWhere(ctx, args) as unknown as WhereInput; + + // AND-compose with the table's RLS read base-where. A shape runs no + // procedure, so the `.use(rls(...))` middleware never fires; without + // this merge its reads would bypass every read policy on the table + // (rows the caller can't see would replicate). `composeShapeReadWhere` + // evaluates the table's read policies under this same trusted ctx — + // exactly the request-time path — and fails closed under a + // `.rls("required")` schema for a non-`.public()`, policy-less table. + const effectiveWhere = composeShapeReadWhere(LUNORA_RLS_READ_REGISTRY, { + ctx, + identity: identity?.identity ?? null, + rlsRequired: (schema as unknown as { rlsMode?: string }).rlsMode === "required", + roles: (ctx as { auth?: { roles?: readonly string[] } }).auth?.roles ?? [], + shapeWhere, + table: shape.table, + tablePublic: (schema as unknown as { tables: Record }).tables[shape.table]?.isPublic === true, + userId: identity?.userId ?? null, + }); + + // A live shape pokes only from its OWN shard's op-log, so a `where()` + // that joins to a `.shardBy()` table (rows in another DO) is rejected + // here — the first point the compiled predicate + shard modes are both + // known. Remedy: denormalize, or move the joined table to `.global()`. + assertShapeShardable(effectiveWhere, schema as unknown as SchemaLike, shape.table); + + // A `.global()` table lives in D1 (no per-DO op-log): flag it so the + // base serves it through the latency-tiered poll path (`readGlobalShapeRows`) + // instead of the CDC poke path. + const isGlobal = (schema as unknown as SchemaLike).tables[shape.table]?.shardMode?.kind === "global"; + + return { columns: shape.columns, effectiveWhere, global: isGlobal, table: shape.table }; + } + + protected override lifecycleHookPaths(event: "connect" | "disconnect"): readonly string[] { + return LUNORA_LIFECYCLE_HOOKS[event]; + } + + protected override tableRefs(table: string): Record | undefined { + return LUNORA_TABLE_REFS[table]; + } + + protected override tableIndexes(table: string): Array<{ fields: string[]; name: string; type: "geo" | "index" | "rank" | "search" | "vector"; unique?: boolean }> { + return LUNORA_TABLE_INDEXES[table] ?? []; + } + + protected override ttlSweeps(): ReadonlyArray<{ after?: number; field: string; softDeleteField?: string; table: string }> { + return LUNORA_TTL_SWEEPS; + } + + protected override tableColumns(table: string): Array<{ isStorage?: boolean; name: string; optional: boolean; pk?: boolean; ref?: string; type: string }> { + return LUNORA_TABLE_COLUMNS[table] ?? []; + } + + protected override storageColumns(): Record { + return LUNORA_STORAGE_COLUMNS; + } + + protected override rlsMetadata(): RlsPoliciesResult { + return LUNORA_RLS_METADATA; + } + + protected override maskMetadata(): MaskPoliciesResult { + return LUNORA_MASK_METADATA; + } + + protected override storageRulesMetadata(): StorageRulesResult { + return LUNORA_STORAGE_RULES; + } + + protected override studioFeatures(): StudioFeaturesResult { + return LUNORA_STUDIO_FEATURES; + } + + protected override advisories(): AdvisoryFinding[] { + return LUNORA_ADVISORIES; + } + + protected override async runShardDataMigration(args: RunShardMigrationArgs): Promise { + const migration = LUNORA_MIGRATIONS[args.id]; + + if (!migration) { + throw new LunoraError("MIGRATION_NOT_FOUND", `data migration "${args.id}" is not registered`, { status: 404 }); + } + + this.ensureMigrated(); + + const env = (this.env ?? {}) as Record; + const scheduler = (config.scheduler?.(env) ?? schedulerStub) as SchedulerLike; + const writer = createShardCtxDb({ + broadcast: (delta) => { + this.recordChangedTable(delta.table); + }, + cdc: config.cdc ?? false, + scheduler, + schema: schema as unknown as SchemaLike, + sql: this.sql as SqlExec, + }); + + return runDataMigration({ + batchSize: args.batchSize, + direction: args.direction, + dryRun: args.dryRun, + maxBatches: args.maxBatches, + migration: migration as unknown as DataMigrationLike, + // Flush after each batch so live migrationStatus subscribers see + // progress mid-run (the base method records the reserved state + // table the raw-SQL progress write is invisible to the tracker). + onBatch: () => this.flushMigrationProgress(), + sql: this.sql as SqlExec, + writer, + }); + } + + protected override async runShardWrite(args: RunShardWriteArgs): Promise { + const definition = (schema as unknown as SchemaLike).tables[args.table]; + + if (!definition) { + throw new LunoraError("UNKNOWN_TABLE", `unknown table: ${args.table}`, { status: 404 }); + } + + // `.global()` tables live in D1, not this DO's SQLite — editing them + // here would corrupt nothing but would fail confusingly, so reject up + // front with a clear code the studio can surface. + if (definition.shardMode?.kind === "global") { + throw new LunoraError("GLOBAL_TABLE_NOT_EDITABLE", `table "${args.table}" is global; edit it through D1, not the shard`, { status: 400 }); + } + + this.ensureMigrated(); + + const env = (this.env ?? {}) as Record; + const scheduler = (config.scheduler?.(env) ?? schedulerStub) as SchedulerLike; + const writer = createShardCtxDb({ + broadcast: (delta) => { + this.recordChangedTable(delta.table); + }, + cdc: config.cdc ?? false, + scheduler, + schema: schema as unknown as SchemaLike, + sql: this.sql as SqlExec, + }); + + if (args.op === "insert") { + const id = await writer.insert(args.table, args.doc ?? {}); + + return { id, op: "insert" }; + } + + if (args.op === "delete") { + await writer.delete(args.id ?? ""); + + return { id: args.id ?? null, op: "delete" }; + } + + if (args.op === "replace") { + await writer.replace(args.id ?? "", args.doc ?? {}); + + return { id: args.id ?? null, op: "replace" }; + } + + await writer.patch(args.id ?? "", args.doc ?? {}); + + return { id: args.id ?? null, op: "patch" }; + } + + protected override async deleteRowThroughWriter(table: string, id: string): Promise { + const definition = (schema as unknown as SchemaLike).tables[table]; + + if (!definition) { + throw new LunoraError("UNKNOWN_TABLE", `unknown table: ${table}`, { status: 404 }); + } + + // `.global()` tables live in D1, not this DO's SQLite — the same + // guard `runShardWrite` applies to single-row edits. + if (definition.shardMode?.kind === "global") { + throw new LunoraError("GLOBAL_TABLE_NOT_EDITABLE", `table "${table}" is global; edit it through D1, not the shard`, { status: 400 }); + } + + this.ensureMigrated(); + + const env = (this.env ?? {}) as Record; + const scheduler = (config.scheduler?.(env) ?? schedulerStub) as SchedulerLike; + const writer = createShardCtxDb({ + broadcast: (delta) => { + this.recordChangedTable(delta.table); + }, + cdc: config.cdc ?? false, + scheduler, + schema: schema as unknown as SchemaLike, + sql: this.sql as SqlExec, + }); + + // Routes through the writer (not raw SQL) so FTS / aggregate / rank + // shadow tables stay in sync and `onDelete` cascades fire — the + // bounded loop lives in the base `runShardBulkDelete`. + await writer.delete(id); + } + + protected override async runShardRankBefore(args: RunShardRankBeforeArgs): Promise<{ before: number; total: number }> { + this.ensureMigrated(); + + const env = (this.env ?? {}) as Record; + const scheduler = (config.scheduler?.(env) ?? schedulerStub) as SchedulerLike; + const writer = createShardCtxDb({ + broadcast: (delta) => { + this.recordChangedTable(delta.table); + }, + cdc: config.cdc ?? false, + scheduler, + schema: schema as unknown as SchemaLike, + sql: this.sql as SqlExec, + }); + + // `rankBefore` is optional on `DatabaseWriterLike` (the D1 twin omits it), + // but the shard writer from `createShardCtxDb` always defines it. + if (!writer.rankBefore) { + throw new LunoraError("NOT_IMPLEMENTED", "rankBefore is unavailable on the shard writer", { status: 500 }); + } + + return writer.rankBefore(args.table, args.index, { + partitionKey: args.partitionKey, + rowId: args.rowId, + sortValues: args.sortValues, + }); + } + + protected override async runShardRankPage(args: RunShardRankPageArgs): Promise { + this.ensureMigrated(); + + const env = (this.env ?? {}) as Record; + const scheduler = (config.scheduler?.(env) ?? schedulerStub) as SchedulerLike; + const writer = createShardCtxDb({ + broadcast: (delta) => { + this.recordChangedTable(delta.table); + }, + cdc: config.cdc ?? false, + scheduler, + schema: schema as unknown as SchemaLike, + sql: this.sql as SqlExec, + }); + + // `rankPageRows` is optional on `DatabaseWriterLike` (the D1 twin omits it), + // but the shard writer from `createShardCtxDb` always defines it. The sort + // directions live in the schema's rankIndex, so the shard reads them itself; + // `args.directions` is only the coordinator's comparator hint and isn't forwarded. + if (!writer.rankPageRows) { + throw new LunoraError("NOT_IMPLEMENTED", "rankPage is unavailable on the shard writer", { status: 500 }); + } + + return writer.rankPageRows(args.table, args.index, { + after: args.after, + cursor: args.cursor, + partitionKey: args.partitionKey, + take: args.take, + }); + } + + protected override async runShardApplyCdc(args: RunShardApplyCdcArgs): Promise<{ applied: number }> { + this.ensureMigrated(); + + const env = (this.env ?? {}) as Record; + const scheduler = (config.scheduler?.(env) ?? schedulerStub) as SchedulerLike; + const writer = createShardCtxDb({ + broadcast: (delta) => { + this.recordChangedTable(delta.table); + }, + cdc: config.cdc ?? false, + scheduler, + schema: schema as unknown as SchemaLike, + sql: this.sql as SqlExec, + }); + + await applyCdcChanges(writer, args.changes); + + return { applied: args.changes.length }; + } + + protected override ensureMigrated(): void { + if (this.migrated) { + return; + } + + runShardMigrations(this.sql as SqlExec, schema as unknown as SchemaLike, { cdc: config.cdc ?? false }); + this.migrated = true; + } + + private buildCtx(options: { functionPath?: string; identity?: { identity?: Record; userId?: string }; onRead?: (table: string) => void } = {}): unknown { + const env = (this.env ?? {}) as Record; + // When the caller threads an explicit identity (subscription seed / + // refresh — both run in deferred/interleaved contexts), use it by + // value and NEVER read the shared per-request identity field, which a + // concurrent RPC may have re-set. Otherwise (the synchronous RPC + // dispatch path) fall back to the per-request fields as before. + const userId = options.identity ? options.identity.userId : this.getCurrentUserId(); + const identity = options.identity ? options.identity.identity : this.getCurrentIdentity(); + + const secrets = createSecrets(env); + + const scheduler = (config.scheduler?.(env) ?? schedulerStub) as SchedulerLike; + // Build the storage adapter once and share it between `ctx.storage` + // and `ctx.db.system._storage` so both read the same R2 binding. The + // `storageStub` fallback satisfies SystemReaderStorageLike structurally + // (its `list`/`getMetadata` throw the "no storage configured" error). + const storage = asBucketStorage(config.storage?.(env) ?? storageStub) as unknown as SystemReaderStorageLike; + const db: DatabaseWriterLike = createShardCtxDb({ + auth: { identity: identity ?? null, userId: userId ?? null }, + broadcast: (delta) => { + this.recordChangedTable(delta.table); + }, + cdc: config.cdc ?? false, + enforceRls: true, + onIndexUse: this.getCtxDbIndexUseHook(), + onRead: options.onRead ?? this.getCtxDbReadHook(), + scheduler, + schema: schema as unknown as SchemaLike, + sql: this.sql as SqlExec, + storage, + }); + + const facade = db as unknown as Record>; + facade["nodes"] = bindTableFacade(db, "nodes"); + facade["ratelimit_buckets"] = bindTableFacade(db, "ratelimit_buckets"); + + // `ctx.log`: the DO base builds the attributed logger (structured + // fields + `.with(...)` child + trace correlation) and routes each call + // to the optional `observability` sink. It also buffers the line (studio + // Logs panel) and emits a structured console event the dev-server formats. + const observability = config.observability?.(env); + const logFunctionPath = options.functionPath ?? ""; + const log = this.makeLogger(logFunctionPath, observability); + + // `ctx.trace` / `ctx.metrics`: spans and measurements to the same sink. + // The trace anchor is threaded explicitly for the same reason `identity` + // is — a deferred caller (a subscription re-run) must not inherit the + // writing mutation's trace from the shared per-request field. + const trace = this.makeTracer(logFunctionPath, observability, options.identity ? undefined : this.getCurrentTrace()); + const metrics = this.makeMetrics(logFunctionPath, observability); + + // `ctx.now`: the wall-clock instant (epoch ms) this function began, + // captured ONCE so the whole handler body sees a single stable value. + // Query/mutation handlers must be deterministic (they may be re-run on + // OCC retry / subscription re-eval), so they must read time through + // `ctx.now` instead of `Date.now()` — the `nondeterministic_query_mutation` + // advisor flags the latter. Actions may still use ambient `Date.now()`. + const now = Date.now(); + + const ctx: Record = { + auth: { + getIdentity: async () => identity ?? null, + userId: userId ?? null, + }, + db, + fetch: globalThis.fetch.bind(globalThis), + ip: this.getCurrentIp(), + log, + metrics, + now, + orm: bindOrm(facade), + scheduler, + storage, + trace, + secrets, + }; + + ctx.runAction = (reference: FunctionReference, fnArgs: Record) => dispatchRun("action", reference.__lunoraRef, fnArgs, ctx); + ctx.runMutation = (reference: FunctionReference, fnArgs: Record) => dispatchRun("mutation", reference.__lunoraRef, fnArgs, ctx); + ctx.runQuery = (reference: FunctionReference, fnArgs: Record) => dispatchRun("query", reference.__lunoraRef, fnArgs, ctx); + + return ctx; + } + }; diff --git a/lunora/_generated/vectors.ts b/lunora/_generated/vectors.ts new file mode 100644 index 00000000..13644ac4 --- /dev/null +++ b/lunora/_generated/vectors.ts @@ -0,0 +1,24 @@ +// GENERATED by @lunora/codegen — do not edit. +// Run `lunora codegen` to regenerate. + +/** + * One vector index declared in `schema.ts` — an inline `.vectorize()` column + * or a standalone `defineVectorIndex()`. `field` is the source column (absent + * for a `select`-derived Shape B index); `metadata` lists the row fields + * mirrored into Vectorize for filtering. + */ +export interface LunoraVectorIndex { + dimensions?: number; + field?: string; + metadata?: ReadonlyArray; + metric?: "cosine" | "dot-product" | "euclidean"; + name: string; + table: string; +} + +/** + * Static registry of every vector index in the schema, sorted by name. + * Vectorize cannot enumerate indexes at runtime, so the worker passes this to + * `createWorker({ vectorIntrospector })` to back the studio's vector browser. + */ +export const LUNORA_VECTOR_INDEXES: ReadonlyArray = []; diff --git a/lunora/mutators.ts b/lunora/mutators.ts new file mode 100644 index 00000000..3f2730b2 --- /dev/null +++ b/lunora/mutators.ts @@ -0,0 +1,187 @@ +import { defineMutator, v } from "lunorash/server"; + +import type { Id } from "./_generated/dataModel"; + +import { + buildTreeIndex, + docToNode, + nodeToInsertFields, + planIndent, + planInsertSibling, + planOutdent, + planRemoveNode, + planSeedIfEmpty, + planSetText, + type OutlineNode, + type OutlinePlan, +} from "../src/data/outline-plans"; + +/** Minimal mutator ctx — defineMutator's ServerContext is the base MutationCtx. */ +type MutatorDb = { + query: (table: "nodes") => { + collect: () => Promise & { _id: string }>>; + }; + insert: ( + table: "nodes", + document: Record, + options?: { clientId?: string }, + ) => Promise; + patch: (id: Id<"nodes">, fields: Record) => Promise; + delete: (id: Id<"nodes">) => Promise; +}; + +type MutatorCtx = { + auth: { userId?: string | null }; + db: MutatorDb; +}; + +async function loadNodes(ctx: MutatorCtx): Promise { + const rows = await ctx.db.query("nodes").collect(); + return rows.map(docToNode); +} + +function assertOwner(ctx: MutatorCtx, userId: string): void { + if (ctx.auth.userId !== userId) { + throw new Error("unauthorized: shard userId mismatch"); + } +} + +async function commitPlan(ctx: MutatorCtx, plan: OutlinePlan): Promise { + for (const node of plan.inserts) { + await ctx.db.insert("nodes", nodeToInsertFields(node), { + clientId: node.id, + }); + } + + for (const patch of plan.patches) { + await ctx.db.patch( + patch.id as Id<"nodes">, + patch.fields as Record, + ); + } + + for (const id of plan.deletes) { + await ctx.db.delete(id as Id<"nodes">); + } +} + +const userIdArg = v.string(); +const idArg = v.string(); +const tsArg = v.number(); + +/** Compose smoke mutator — proves codegen + SHARD wiring without dual auth UX. */ +export const hello = defineMutator({ + args: { userId: userIdArg }, + server: async (ctx, args) => { + const mctx = ctx as unknown as MutatorCtx; + assertOwner(mctx, args.userId); + return { ok: true as const, userId: args.userId }; + }, +}); + +export const insertSibling = defineMutator({ + args: { + id: idArg, + userId: userIdArg, + parentId: v.string().nullable(), + afterId: v.string().nullable(), + text: v.string(), + isTask: v.optional(v.boolean()), + kind: v.optional(v.literal("paragraph").nullable()), + createdAt: tsArg, + updatedAt: tsArg, + }, + server: async (ctx, args) => { + const mctx = ctx as unknown as MutatorCtx; + assertOwner(mctx, args.userId); + const index = buildTreeIndex(await loadNodes(mctx)); + const plan = planInsertSibling(index, { + id: args.id, + userId: args.userId, + parentId: args.parentId, + afterId: args.afterId, + text: args.text, + isTask: args.isTask, + kind: args.kind, + createdAt: args.createdAt, + updatedAt: args.updatedAt, + }); + if (!plan) throw new Error("insertSibling: invalid parent/afterId"); + await commitPlan(mctx, plan); + return { id: args.id }; + }, +}); + +/** + * Server-authoritative empty-outline seed. Concurrent calls serialize on the + * DO watermark FIFO — second sees non-empty and returns `{ seeded: false }`. + */ +export const seedIfEmpty = defineMutator({ + args: { + userId: userIdArg, + createdAt: tsArg, + }, + server: async (ctx, args) => { + const mctx = ctx as unknown as MutatorCtx; + assertOwner(mctx, args.userId); + const nodes = await loadNodes(mctx); + const plan = planSeedIfEmpty(nodes, { + userId: args.userId, + createdAt: args.createdAt, + }); + if (!plan) return { seeded: false as const }; + await commitPlan(mctx, plan); + return { + seeded: true as const, + ids: plan.inserts.map((n) => n.id), + }; + }, +}); + +export const indent = defineMutator({ + args: { id: idArg, userId: userIdArg, updatedAt: tsArg }, + server: async (ctx, args) => { + const mctx = ctx as unknown as MutatorCtx; + assertOwner(mctx, args.userId); + const index = buildTreeIndex(await loadNodes(mctx)); + const plan = planIndent(index, args.id, args.updatedAt); + if (!plan) throw new Error("indent: no-op or missing node"); + await commitPlan(mctx, plan); + }, +}); + +export const outdent = defineMutator({ + args: { id: idArg, userId: userIdArg, updatedAt: tsArg }, + server: async (ctx, args) => { + const mctx = ctx as unknown as MutatorCtx; + assertOwner(mctx, args.userId); + const index = buildTreeIndex(await loadNodes(mctx)); + const plan = planOutdent(index, args.id, args.updatedAt); + if (!plan) throw new Error("outdent: no-op or missing node"); + await commitPlan(mctx, plan); + }, +}); + +export const removeNode = defineMutator({ + args: { id: idArg, userId: userIdArg, updatedAt: tsArg }, + server: async (ctx, args) => { + const mctx = ctx as unknown as MutatorCtx; + assertOwner(mctx, args.userId); + const index = buildTreeIndex(await loadNodes(mctx)); + const plan = planRemoveNode(index, args.id, args.updatedAt); + if (!plan) throw new Error("removeNode: missing node"); + await commitPlan(mctx, plan); + }, +}); + +export const setText = defineMutator({ + args: { id: idArg, userId: userIdArg, text: v.string(), updatedAt: tsArg }, + server: async (ctx, args) => { + const mctx = ctx as unknown as MutatorCtx; + assertOwner(mctx, args.userId); + const index = buildTreeIndex(await loadNodes(mctx)); + const plan = planSetText(index, args.id, args.text, args.updatedAt); + if (!plan) throw new Error("setText: missing node"); + await commitPlan(mctx, plan); + }, +}); diff --git a/lunora/ratelimit/schema.ts b/lunora/ratelimit/schema.ts new file mode 100644 index 00000000..70dbe3e0 --- /dev/null +++ b/lunora/ratelimit/schema.ts @@ -0,0 +1,49 @@ +import type { RateLimitConfigMap } from "lunorash/ratelimit"; +import type { Middleware } from "lunorash/server"; + +import { createDbStore, RateLimiter } from "lunorash/ratelimit"; +import { + defineSchemaExtension, + defineTable, + definePlugin, + v, +} from "lunorash/server"; + +export const limits = { + default: { kind: "token bucket", period: 60_000, rate: 10 }, +} as const satisfies RateLimitConfigMap; + +export type LimitName = keyof typeof limits; + +export const makeRateLimiter = (ctx: { db: unknown }): RateLimiter => + new RateLimiter({ + config: limits, + store: createDbStore({ db: ctx.db as never, table: "ratelimit_buckets" }), + }); + +const middleware: Middleware< + { api?: Record; db: unknown }, + { api: Record; db: unknown } +> = ({ ctx, next }) => + next({ + ctx: { + ...ctx, + api: { ...ctx.api, ratelimit: makeRateLimiter(ctx) }, + }, + }); + +export const ratelimit = definePlugin("ratelimit", { + extension: defineSchemaExtension("ratelimit", { + tables: { + buckets: defineTable({ + key: v.string(), + value: v.number(), + ts: v.number(), + prev: v.optional(v.number()), + }) + .index("by_key", ["key"]) + .externallyManaged(), + }, + }), + middleware, +}); diff --git a/lunora/schema.ts b/lunora/schema.ts new file mode 100644 index 00000000..286ddb1a --- /dev/null +++ b/lunora/schema.ts @@ -0,0 +1,29 @@ +import { defineSchema, defineTable, v } from "lunorash/server"; + +import { ratelimit } from "./ratelimit/schema"; + +/** + * Outline nodes — Dotflowy Node field parity + Lunora `userId` shard key. + * Dotflowy `id` maps to Lunora `_id` via `clientId` on insert. + * + * Phase-2 compose stub: lives beside UserOutlineDO until collection cutover. + */ +export default defineSchema({ + nodes: defineTable({ + parentId: v.string().nullable(), + prevSiblingId: v.string().nullable(), + text: v.string(), + isTask: v.boolean(), + completed: v.boolean(), + collapsed: v.boolean(), + bookmarkedAt: v.number().nullable(), + mirrorOf: v.string().nullable(), + createdAt: v.number(), + updatedAt: v.number(), + origin: v.string().nullable(), + kind: v.literal("paragraph").nullable(), + userId: v.string(), + }) + .shardBy("userId") + .index("by_parent", ["parentId"]), +}).extend(ratelimit.extension); diff --git a/lunora/shapes.ts b/lunora/shapes.ts new file mode 100644 index 00000000..f22aa4ed --- /dev/null +++ b/lunora/shapes.ts @@ -0,0 +1,16 @@ +import { defineShape, v } from "lunorash/server"; + +/** + * Whole-outline replication for one user shard. + * Read-as-permission: only the authenticated owner may subscribe. + */ +export const wholeOutline = defineShape({ + args: { userId: v.string() }, + table: "nodes", + where: (ctx, { userId }) => { + // Shape `where` returns WhereInput (not boolean). `{ OR: [] }` is the + // vacuously-false deny sentinel used by Lunora RLS/shapes. + if (!ctx.auth.userId || ctx.auth.userId !== userId) return { OR: [] }; + return { userId }; + }, +}); diff --git a/package.json b/package.json index fc6078a2..cff12637 100644 --- a/package.json +++ b/package.json @@ -5,6 +5,9 @@ "description": "A local-first outline editor built with TanStack Start and TanStack DB.", "license": "O'Saasy", "type": "module", + "imports": { + "#lunora/*": "./lunora/*" + }, "scripts": { "setup": "bun scripts/setup.ts", "bootstrap": "bun scripts/bootstrap.ts", @@ -34,12 +37,13 @@ "typecheck": "tsc --noEmit", "typecheck:worker": "tsc --noEmit -p worker/tsconfig.json", "typecheck:test": "tsc --noEmit -p tsconfig.test.json", - "test": "bun test src worker/", + "test": "bun test -- ./src ./worker", "test:e2e": "playwright test", "test:e2e:serial": "playwright test --workers=1", "test:e2e:ui": "playwright test --ui", "effect:src": "opensrc path Effect-TS/effect-smol", - "effect:src:update": "opensrc remove Effect-TS/effect-smol && opensrc fetch Effect-TS/effect-smol" + "effect:src:update": "opensrc remove Effect-TS/effect-smol && opensrc fetch Effect-TS/effect-smol", + "lunora:codegen": "lunora codegen" }, "dependencies": { "@base-ui/react": "^1.6.0", @@ -48,6 +52,7 @@ "@fontsource-variable/geist": "^5.2.9", "@fontsource-variable/geist-mono": "^5.2.8", "@icons-pack/react-simple-icons": "^13.13.0", + "@lunora/ratelimit": "1.0.0-alpha.9", "@rgrove/parse-xml": "^4", "@sentry/cloudflare": "^10.65.0", "@sentry/react": "^10.65.0", @@ -68,6 +73,7 @@ "fuse.js": "^7.4.2", "grab-bcv": "^0.1.5", "lucide-react": "^1.21.0", + "lunorash": "1.0.0-alpha.98", "motion": "^12.42.0", "react": "^19.0.0", "react-dom": "^19.0.0", diff --git a/src/data/outline-plans/planners.ts b/src/data/outline-plans/planners.ts index e192520e..c4cecab6 100644 --- a/src/data/outline-plans/planners.ts +++ b/src/data/outline-plans/planners.ts @@ -8,8 +8,8 @@ import { emptyPlan } from "./types"; export function makeOutlineNode( partial: Partial & Pick, ): OutlineNode { - const { userId, ...rest } = partial; - return { ...makeNode({ id: partial.id, ...rest }), userId }; + const { userId, id, ...rest } = partial; + return { ...makeNode({ id, ...rest }), userId }; } /** diff --git a/vite.config.ts b/vite.config.ts index 07eda503..4b9f0ffa 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -34,6 +34,8 @@ export default defineConfig({ // D1. In production the same Worker serves both. See docs/adr/0008-sync-via-a-per-user-durable-object.md. proxy: { "/api": "http://localhost:8787", + // Lunora reserved paths (ADR 0055) — same Worker as /api during `bun run dev`. + "/_lunora": "http://localhost:8787", }, }, plugins: [ diff --git a/worker/index.ts b/worker/index.ts index 9bf790d6..5f960727 100644 --- a/worker/index.ts +++ b/worker/index.ts @@ -32,7 +32,6 @@ import { } from "better-auth/plugins"; import { Data, Effect, Schema } from "effect"; -import type { AuthEnv } from "./auth"; import type { Node } from "./wire"; import { @@ -63,6 +62,7 @@ import { pendingWaitlistEmails, type InviteBatchResult, } from "./invites"; +import { lunoraApp, ShardDO, type LunoraEnv } from "./lunora-app"; import { handleMcp, mcpCorsPreflight } from "./mcp"; import { UserOutlineDO as BaseUserOutlineDO } from "./outline-do"; import { FREE_NODE_LIMIT, getPlan, nodeLimitForPlan } from "./plan"; @@ -94,7 +94,12 @@ export const UserOutlineDO = Sentry.instrumentDurableObjectWithSentry( ); type UserOutlineDO = BaseUserOutlineDO; -interface Env extends AuthEnv { +// Lunora ShardDO (ADR 0055) — re-export for wrangler `SHARD` binding. +// TEMP: not Sentry-wrapped — Lunora's ShardDOState.sql typing doesn't satisfy +// Sentry's DurableObjectState constraint (document in HANDOFF). +export { ShardDO }; + +interface Env extends LunoraEnv { /** Public Sentry DSN (a wrangler.jsonc var, not a secret; it ships in the * client bundle too). Unset => error monitoring is dormant. See worker/ * sentry.ts (ticket #227, decided in #156). */ @@ -1127,6 +1132,13 @@ const handler = { ); } + // Lunora reserved paths (ADR 0055 Phase-2 compose). Product Better Auth + // stays on `/api/auth/*`; Lunora has no dual signup here — identity is + // bridged from the product session inside `worker/lunora-app.ts`. + if (url.pathname === "/_lunora" || url.pathname.startsWith("/_lunora/")) { + return lunoraApp.fetch(request, env, ctx); + } + // The static shell + assets are PUBLIC so the login screen can load. Serve // them without instantiating auth — only the data API (and the token-gated // `/mcp`, handled in the pipeline below) is gated. diff --git a/worker/lunora-app.ts b/worker/lunora-app.ts new file mode 100644 index 00000000..10a15c42 --- /dev/null +++ b/worker/lunora-app.ts @@ -0,0 +1,47 @@ +/// + +/** + * Lunora outline plane composed beside the product Worker (ADR 0055 Phase 2). + * + * - No `@lunora/auth` / dual signup — product Better Auth stays session authority. + * - `resolveIdentity` bridges the existing Better Auth session into Lunora. + * - Product fetch routes `/_lunora/*` here; everything else stays on UserOutlineDO. + */ + +import type { ShardNamespaceLike } from "lunorash/runtime"; + +import type { AuthEnv } from "./auth"; + +import { defineApp } from "../lunora/_generated/app"; +import { createAuth } from "./auth"; + +export type LunoraEnv = AuthEnv & { + SHARD: ShardNamespaceLike; + /** Optional Studio / admin bearer (unset = admin routes stay closed). */ + LUNORA_ADMIN_TOKEN?: string; +}; + +// defineApp requires `Record`; AuthEnv is a closed interface. +type LunoraAppEnv = LunoraEnv & Record; + +const app = defineApp() + .shard((env) => env.SHARD) + .extend((env) => ({ + adminToken: env.LUNORA_ADMIN_TOKEN, + resolveIdentity: async (request) => { + const url = new URL(request.url); + const auth = createAuth(env, url.origin); + const session = await auth.api.getSession({ headers: request.headers }); + const userId = session?.user?.id; + if (!userId) return null; + return { + userId, + email: session.user.email ?? undefined, + }; + }, + authorizeShard: (identity, shardKey) => identity?.userId === shardKey, + })) + .build(); + +export const ShardDO = app.ShardDO; +export const lunoraApp = app; diff --git a/wrangler.jsonc b/wrangler.jsonc index 28d79e11..0e1752ac 100644 --- a/wrangler.jsonc +++ b/wrangler.jsonc @@ -88,11 +88,20 @@ // One Durable Object per user: USER_OUTLINE holds the user's whole outline + // side-collections in colocated SQLite. The Worker routes each /api request to // the caller's DO. See docs/adr/0008-sync-via-a-per-user-durable-object.md. + // + // SHARD = Lunora outline plane (ADR 0055 Phase-2 compose). Lives beside + // USER_OUTLINE until the collection cutover deletes the custom DO sync. "durable_objects": { - "bindings": [{ "name": "USER_OUTLINE", "class_name": "UserOutlineDO" }], + "bindings": [ + { "name": "USER_OUTLINE", "class_name": "UserOutlineDO" }, + { "name": "SHARD", "class_name": "ShardDO" }, + ], }, // SQLite-backed DO storage requires `new_sqlite_classes` (not new_classes). - "migrations": [{ "tag": "v1", "new_sqlite_classes": ["UserOutlineDO"] }], + "migrations": [ + { "tag": "v1", "new_sqlite_classes": ["UserOutlineDO"] }, + { "tag": "v2", "new_sqlite_classes": ["ShardDO"] }, + ], // Off-site outline backups (#221): the daily cron sweep exports every user // DO's snapshot into this bucket (`backups//.json`). // Create the bucket + its lifecycle expiry once before the first deploy — From 483eaea647c3a1368622ba8900fda580074e2d8d Mon Sep 17 00:00:00 2001 From: Cameron Pak Date: Thu, 23 Jul 2026 13:10:30 -0500 Subject: [PATCH 19/59] docs: record Phase-2 planner lift and Lunora Worker compose MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit HANDOFF status → phase-2-compose; spike README points at shared planners. Co-authored-by: Cursor --- HANDOFF.md | 89 +++++++++++++++------------------ spikes/lunora-outline/README.md | 18 +++++-- 2 files changed, 53 insertions(+), 54 deletions(-) diff --git a/HANDOFF.md b/HANDOFF.md index 9c2b3c26..b59955a2 100644 --- a/HANDOFF.md +++ b/HANDOFF.md @@ -4,71 +4,60 @@ ## Status -`phase-2-cutover` — ADR 0055 accepted; spike Phase 0–1 proven. **No PR until Lunora cutover is complete and pre-existing tests are 100% green.** +`phase-2-compose` — shared planners lifted; Lunora `SHARD` DO composed beside `UserOutlineDO`. Product `/api/*` + ASSETS + MCP unchanged. **No PR until collection cutover + gates green.** -Commits (recent): through `40a5004bb2` (seed smoke) + upcoming ADR 0055 commit. +## What landed (this slice) -## Sources of truth - -- **ADR 0055:** `docs/adr/0055-lunora-replaces-custom-outline-sync.md` (cutover sequence) -- Spike README: `spikes/lunora-outline/README.md` -- ADRs: `0004`, `0008` (amended by 0055), `0009`, `0055` -- Research clone (machine-local): `/tmp/lunora-research` (`alpha` branch) +### A. Shared planners → `src/data/outline-plans/` -## Tree state +- Pure `plan*` / `seed` / `map-node` / types; converges on Dotflowy `Node` + `tree.ts` / `sibling-chain.ts` (`OutlineNode = Node & { userId }`). +- Unit tests: `src/data/outline-plans/*.test.ts` (`bun run test`). +- Spike imports via Vite/vitest alias `@dotflowy/outline-plans` → `../../src/data/outline-plans` (see `spikes/lunora-outline/vite.config.ts`). Awkward bit: root `bun test` filter `src` used to also match `spikes/**/src/**` — script is now `bun test -- ./src ./worker`. Spike still runs `pnpm test` (vitest) in its directory. -- `nodes` schema + `wholeOutline` shape + Better Auth via `defineApp().auth()` + `authorizeShard: identity.userId === shardKey` -- Pure planners in `src/outline/` with vitest chain invariant -- Dual mutator APIs: server `lunorash/server` defineMutator; client `@lunora/db/mutators` defineMutator+bindMutators (shared `plan*`) -- Shared `rowToNode`/`docToNode` + `nodeToDocFields`/`nodeToRow`/`nodeToInsertFields` in `src/outline/map-node.ts` -- Bridge: `src/outline/lunora-bridge.ts` — Lunora collection rows → Dotflowy-shaped `TreeIndex` / ordered children (ADR 0004 handoff; feed tree-store later; **no** OutlineEditor port) -- Seed: `planSeedIfEmpty` + server `seedIfEmpty` mutator with fixed `DEMO_SEED_IDS`; DO watermark FIFO = multi-tab idempotency (second call no-ops) -- Tiny list UI renders via bridge; email/password auth gate; empty copy distinguishes seed-pending vs truly empty -- Scaffold cruft trimmed (unused Vite assets, App.css, welcome CSS, public/icons.svg) -- `.dev.vars` gitignored (do not commit) +### B. Lunora compose in main Worker -## Phase 1 review +- Root deps: `lunorash@1.0.0-alpha.98`, `@lunora/ratelimit@1.0.0-alpha.9` (bun). +- Schema/mutators: repo-root `lunora/` (nodes + `wholeOutline` + spike mutators + `hello` smoke mutator). Codegen: `bun run lunora:codegen`. +- `wrangler.jsonc`: `SHARD` → `ShardDO` **alongside** `USER_OUTLINE`; migration tag `v2`. +- `worker/lunora-app.ts`: `defineApp` + product Better Auth `resolveIdentity` bridge (no `@lunora/auth` dual signup). +- `worker/index.ts`: `/_lunora` → `lunoraApp.fetch`; Vite proxies `/_lunora` → `:8787`. -- **Must-fix (done):** multi-tab both calling client `insertSibling` seed → duplicate chains. Replaced with server-authoritative `seedIfEmpty`. -- **Should-fix (done):** unify outbound map; empty UI copy; HANDOFF commit list + status. - -## Verify - -```sh -cd spikes/lunora-outline -pnpm test -pnpm build -pnpm dev # smoke; note printed Local port -``` +### Temporary escapes (typecheck) -### Manual checklist — PASS (2026-07-23) +- `ShardDO` is **not** Sentry-wrapped — Lunora `ShardDOState.sql` typing doesn't satisfy Sentry's `DurableObjectState` constraint. Revisit when wrapping or types align. -Verified on `http://localhost:5175/` (Vite fell through 5173→5174→5175): - -- [x] Two tabs, same user: live convergence without refresh (~2.5s) -- [x] Hard reload restores outline from shape seed -- [x] Cross-user: second account sees only its own seed, not first user’s bullets -- [x] Fresh-user `seedIfEmpty` smoke (`:5175`): signup → 4 demo bullets; reload stays 4; insert+reload keeps 5 (no double-seed) — after `e16cd6e845` - -## API surprises vs docs +## Sources of truth -- Shape `where` deny is `{ OR: [] }`, not boolean `false` (typed `WhereInput`) -- Codegen Doc/Insert types currently erase `.nullable()` (runtime still accepts null; cast at boundaries via `rowToNode`) -- Advisor `table_without_insert` fires for mutator-only inserts (ignore for this spike) -- Dual `defineMutator` APIs must not be mixed (server vs `@lunora/db/mutators`) +- **ADR 0055:** `docs/adr/0055-lunora-replaces-custom-outline-sync.md` +- Spike README: `spikes/lunora-outline/README.md` +- Shared planners: `src/data/outline-plans/` +- Research clone (machine-local): `/tmp/lunora-research` (`alpha` branch) -## Code review (Phase 0) +## Compose smoke -**Standards** — process-clean for a spike. Merge-to-`main` gates: delete this `HANDOFF.md`; add changeset (`bunx changeset --empty` if spike isn't product news). Mild smells addressed in Phase 1: `docToNode`≈`rowToNode` dup → shared helper; leftover Vite assets/CSS trimmed. +```sh +bun run lunora:codegen # after lunora/ schema/mutator edits +bun run typecheck +bun run typecheck:worker +bun run test # includes outline-plans; excludes spike vitest +cd spikes/lunora-outline && pnpm test + +# Product path (custom DO still authoritative for OutlineEditor): +bun run dev +# Optional: curl Worker status once api is up +# curl -sS http://localhost:8787/_lunora/status +``` -**Spec** — required implementation met. Must-prove #1 automated; #2–#5 wired + **manual PASS** (see checklist above). Bridge order covered by unit test. +Spike alone still: `cd spikes/lunora-outline && pnpm dev`. ## Next -- Phase 2 sequence (ADR 0055): lift shared planners → integrate Lunora into main app → swap `nodesCollection` → migrate kv/MCP/data → delete custom DO sync → green gates → **then** PR -- Delete this `HANDOFF.md` in the shipping PR (must never reach `main`) -- Changeset at PR time (likely major communicative bump — readers relearn sync/infra story) +1. **Flag-swap / collection cutover** — `nodesCollection` → `@lunora/db` shape collections; structural path → `bindMutators` (ADR 0055 seq step 4). +2. Keep `seedOutline` e2e as-is until that swap. +3. KV side-collections = phase **2b** (don't block on them). +4. Then MCP remount / data migrate / delete `UserOutlineDO` custom sync → green gates → PR. +5. Delete this `HANDOFF.md` in the shipping PR. ## Note -Root Dotflowy = bun. Always `cd spikes/lunora-outline` before any `pnpm` command. +Root Dotflowy = bun. Spike = pnpm only inside `spikes/lunora-outline`. diff --git a/spikes/lunora-outline/README.md b/spikes/lunora-outline/README.md index 7f3cfb26..9599079e 100644 --- a/spikes/lunora-outline/README.md +++ b/spikes/lunora-outline/README.md @@ -50,17 +50,27 @@ Cross-user: sign out → sign up as a different email → that session’s `auth 5. Hard reload restores outline from shape seed — **manual** 6. TreeIndex bridge order matches planner apply (insert/indent/remove) — **covered** (`lunora-bridge.test.ts`) +## Shared planners (Phase-2 lift) + +Pure `plan*` / seed / map-node live in the **repo root** at +[`src/data/outline-plans/`](../../src/data/outline-plans/) (Dotflowy `Node` + +`tree.ts`). This spike imports them via the Vite/vitest alias +`@dotflowy/outline-plans` (see `vite.config.ts` / `vitest.config.ts`). +`src/outline/` is a thin re-export + the local `lunora-bridge` seam. + +Root also composes Lunora beside `UserOutlineDO` (`lunora/`, `worker/lunora-app.ts`) +— see root `HANDOFF.md`. Keep running this spike with **pnpm from this directory**. + ## Layout | Path | Role | | ------------------------------ | ----------------------------------------------------------------------- | | `lunora/schema.ts` | `nodes` table (Dotflowy field parity), `.shardBy("userId")` | | `lunora/shapes.ts` | `wholeOutline` owner-gated shape | -| `lunora/mutators.ts` | Server `defineMutator` (`lunorash/server`) — authoritative | -| `src/outline/` | Pure `plan*` + sibling-chain (shared) | -| `src/outline/map-node.ts` | Shared `rowToNode` / `nodeToDocFields` (=`nodeToRow`) / insert fields | +| `lunora/mutators.ts` | Server `defineMutator` — imports `@dotflowy/outline-plans` | +| `../../src/data/outline-plans` | Shared pure planners (canonical; `bun run test` at repo root) | +| `src/outline/` | Re-exports + `lunora-bridge` | | `src/outline/lunora-bridge.ts` | ADR 0004 seam: Lunora rows → Dotflowy-shaped `TreeIndex` | -| `src/outline/seed.ts` | `planSeedIfEmpty` + deterministic clientIds; DO FIFO idempotency | | `src/outline-store.ts` | Client `lunoraCollectionOptions` + `@lunora/db/mutators` `bindMutators` | | `src/App.tsx` | Auth gate + tiny outline list UI (renders via bridge) | From 54143f47f25bf1a3b123dbcc52bfa38b16fe4047 Mon Sep 17 00:00:00 2001 From: Cameron Pak Date: Thu, 23 Jul 2026 13:16:35 -0500 Subject: [PATCH 20/59] feat(lunora): flag-gated outline sync via shapes and mutators Default-OFF `dotflowy:flag:lunora-sync` swaps tree-store feed and dogfood mutations onto `@lunora/db` wholeOutline + bindMutators, leaving `/api/sync` untouched for Playwright and normal dev. Co-authored-by: Cursor --- bun.lock | 70 +++++------- package.json | 4 + src/components/lunora-sync-host.tsx | 55 ++++++++++ src/data/collection.ts | 16 ++- src/data/flags.test.ts | 67 +++++++++++ src/data/flags.ts | 30 +++++ src/data/lunora-bridge.test.ts | 117 ++++++++++++++++++++ src/data/lunora-bridge.ts | 36 ++++++ src/data/lunora-client.ts | 23 ++++ src/data/lunora-outline-store.ts | 165 ++++++++++++++++++++++++++++ src/data/lunora-sync.ts | 111 +++++++++++++++++++ src/data/mutations.ts | 103 +++++++++++++++-- src/data/seed.ts | 37 ++++++- src/data/structural.ts | 18 +++ src/data/tree-store.ts | 19 +++- src/routes/__root.tsx | 42 +++---- 16 files changed, 836 insertions(+), 77 deletions(-) create mode 100644 src/components/lunora-sync-host.tsx create mode 100644 src/data/flags.test.ts create mode 100644 src/data/lunora-bridge.test.ts create mode 100644 src/data/lunora-bridge.ts create mode 100644 src/data/lunora-client.ts create mode 100644 src/data/lunora-outline-store.ts create mode 100644 src/data/lunora-sync.ts diff --git a/bun.lock b/bun.lock index 214bb342..27b144dc 100644 --- a/bun.lock +++ b/bun.lock @@ -11,10 +11,14 @@ "@fontsource-variable/geist": "^5.2.9", "@fontsource-variable/geist-mono": "^5.2.8", "@icons-pack/react-simple-icons": "^13.13.0", + "@lunora/db": "1.0.0-alpha.27", "@lunora/ratelimit": "1.0.0-alpha.9", + "@lunora/react": "1.0.0-alpha.31", "@rgrove/parse-xml": "^4", "@sentry/cloudflare": "^10.65.0", "@sentry/react": "^10.65.0", + "@tanstack/db": "^0.6.16", + "@tanstack/offline-transactions": "^1.0.41", "@tanstack/query-core": "^5.101.1", "@tanstack/query-db-collection": "^1.0.42", "@tanstack/react-db": "^0.1.87", @@ -389,9 +393,11 @@ "@lunora/d1": ["@lunora/d1@1.0.0-alpha.37", "", { "dependencies": { "@lunora/do": "1.0.0-alpha.41", "@lunora/errors": "1.0.0-alpha.7", "@lunora/sql-store": "1.0.0-alpha.38", "drizzle-orm": "^0.45.2" } }, "sha512-HxqNikMv/qVKquYMPVEtOWQOIxIwMa9lY6bGgSH8wUWio6yAHrXt9OLYJwTHN4v0lW12LpalnxpXZGrPpVLAaQ=="], + "@lunora/db": ["@lunora/db@1.0.0-alpha.27", "", { "dependencies": { "@lunora/client": "1.0.0-alpha.27", "@lunora/errors": "1.0.0-alpha.7" }, "peerDependencies": { "@tanstack/db": "^0.6.0", "@tanstack/offline-transactions": "^1.0.0" } }, "sha512-zJBaP0PRX72kFLM92KCBa1EtxK1YcEzkK7NJpxddaUr5qdXBt+6/WGGwGv7oQ2dhb0YrNHQvLtt8tyk5xxYkAA=="], + "@lunora/do": ["@lunora/do@1.0.0-alpha.41", "", { "dependencies": { "@lunora/errors": "1.0.0-alpha.7", "@lunora/fingerprint": "1.0.0-alpha.3", "@visulima/redact": "3.0.0", "drizzle-orm": "^0.45.2" } }, "sha512-sC9vb1O034H0UpQmJBSmz4wqn5l+7EBb2kiILjSTQMQJB6U/mjdKKsx20tuVFpntKa6lXh1lj7n+vTZSY7IJXQ=="], - "@lunora/errors": ["@lunora/errors@1.0.0-alpha.6", "", {}, "sha512-IBn86WYhsT2bZrwnDrp88aIn+GENPzr9qtjHsuwU3bcbNrjQoe1GKbMMCmPP6AVl6mAe3/6UqJhIE3Cw5r8MIA=="], + "@lunora/errors": ["@lunora/errors@1.0.0-alpha.7", "", {}, "sha512-8OAPVm28DDbz6ygJA9Jju0Ik1fRf85vO1HeM295bD0C67vCbg7RhEUh9NCfhNJqtU5Mq0PF6IM3sSpw8TLxQHw=="], "@lunora/fingerprint": ["@lunora/fingerprint@1.0.0-alpha.3", "", {}, "sha512-Yzn7jvDWPFEaWIwXXWYC0DPMvDkhX26vv2hdlGIqIyHLK3lATdfmjcQ3WSqn5PMBWzYN/6NKLjQ7MTP/OiDYpw=="], @@ -403,6 +409,8 @@ "@lunora/ratelimit": ["@lunora/ratelimit@1.0.0-alpha.9", "", { "dependencies": { "@lunora/errors": "1.0.0-alpha.6" } }, "sha512-QGoBK6PfaGbD2kkj/h1GHfDwHksFc3SOGvxb1Z1ySPi6x8wruOcAw3z2bYyztYiy0M5DBgBgQSjjdu2iV6mraQ=="], + "@lunora/react": ["@lunora/react@1.0.0-alpha.31", "", { "dependencies": { "@lunora/client": "1.0.0-alpha.27", "@lunora/errors": "1.0.0-alpha.7", "@lunora/ratelimit": "1.0.0-alpha.9", "@visulima/storage-client": "1.0.0" }, "peerDependencies": { "@tanstack/react-query": "^5.101.0", "react": "^19.2.7", "react-dom": "^19.2.7" }, "optionalPeers": ["react-dom"] }, "sha512-Cg6v3i/KVRk+Qpgu+VrInhw0Ln61M8h35Wa77WxwHLi6VtO6xD3re6LxE5PfA9YGJDfNCDnqu+ApCYkK+tJQrw=="], + "@lunora/runtime": ["@lunora/runtime@1.0.0-alpha.35", "", { "dependencies": { "@lunora/bindings": "1.0.0-alpha.10", "@lunora/errors": "1.0.0-alpha.7" } }, "sha512-GOQ+yfLGuA1/zE/9c+HHF1CEJG5NlfATict0L25kz6krXJKwI+f047aUiEvuMAQw21qVUkinDkw8WJmPMz6Wgg=="], "@lunora/scheduler": ["@lunora/scheduler@1.0.0-alpha.11", "", { "dependencies": { "@lunora/errors": "1.0.0-alpha.6", "cron-parser": "5.6.2" } }, "sha512-WL69zUMEIBg20SgSYW33IHuulsI1RF+wG3NQPiT9VzWiL1aiO0phjmnRNO1k2rfM0ZdeGJ3Uq4chy5p1D3fAOw=="], @@ -741,7 +749,7 @@ "@tailwindcss/vite": ["@tailwindcss/vite@4.3.2", "", { "dependencies": { "@tailwindcss/node": "4.3.2", "@tailwindcss/oxide": "4.3.2", "tailwindcss": "4.3.2" }, "peerDependencies": { "vite": "^5.2.0 || ^6 || ^7 || ^8" } }, "sha512-eHpMeX4JXfVNJDEcsouTeCBubJBTcTLigeaw/NTUW6PB5ATKKXdyonnXgTBX2VuRbjz1hjfz6C5XAhr52ImQXA=="], - "@tanstack/db": ["@tanstack/db@0.6.14", "", { "dependencies": { "@standard-schema/spec": "^1.1.0", "@tanstack/db-ivm": "0.1.18", "@tanstack/pacer-lite": "^0.2.1" }, "peerDependencies": { "typescript": ">=4.7" } }, "sha512-Kqma/PcWhn2e21iJPM/FMKwdMuJUYII9zkKPUsD42/ceEOYRtimbBSe+xll7EY805xE2HuQ3NGSSU8UiYXpHUw=="], + "@tanstack/db": ["@tanstack/db@0.6.16", "", { "dependencies": { "@standard-schema/spec": "^1.1.0", "@tanstack/db-ivm": "0.1.18", "@tanstack/pacer-lite": "^0.2.1" }, "peerDependencies": { "typescript": ">=4.7" } }, "sha512-6tZ4sAyh7g4G5awO4Q4D/UQVPoPEBsqqDBImjCZNTRJznrpwGqFJZxozov197k8ty8QxZC++eGcbo+BBKF3nzw=="], "@tanstack/db-ivm": ["@tanstack/db-ivm@0.1.18", "", { "dependencies": { "fractional-indexing": "^3.2.0", "sorted-btree": "^1.8.1" }, "peerDependencies": { "typescript": ">=4.7" } }, "sha512-+pZJiRKdoKRM5Epq9T7otD9ZJl82pRFauo7LKuJGrarjVKQ7r+QQlPe3kGdN9LEKSnuNGIWjX9OOY4M8kH4eLw=="], @@ -751,6 +759,8 @@ "@tanstack/match-sorter-utils": ["@tanstack/match-sorter-utils@8.19.4", "", { "dependencies": { "remove-accents": "0.5.0" } }, "sha512-Wo1iKt2b9OT7d+YGhvEPD3DXvPv2etTusIMhMUoG7fbhmxcXCtIjJDEygy91Y2JFlwGyjqiBPRozme7UD8hoqg=="], + "@tanstack/offline-transactions": ["@tanstack/offline-transactions@1.0.41", "", { "dependencies": { "@tanstack/db": "0.6.16" }, "peerDependencies": { "@react-native-community/netinfo": ">=11.0.0", "react-native": ">=0.70.0" }, "optionalPeers": ["@react-native-community/netinfo", "react-native"] }, "sha512-74Exr8H9dSWsWnmyqE3fTNa2ypB+2GV90u6JNQilDitd+MAtU5ZZV8aaTueL1D/ZDn7XNmvZgfyBTQNvonIpjw=="], + "@tanstack/pacer-lite": ["@tanstack/pacer-lite@0.2.2", "", {}, "sha512-eQ1MyLKCHyXiH7NbdmB80W77OhiMgGBUb+qDx/8WMGbwg5Lf/NlfD0TfNYAqY77i8V3AxoDoYdICrQE5ADw4Yw=="], "@tanstack/query-core": ["@tanstack/query-core@5.101.2", "", {}, "sha512-hH5MLoJhF7KaIGd7q3xTXGXvslI+GYlM1Z/35aSHHWaCJWB7XvTSHYuV3eM7tw+aE0mT/xMro4M4Q9rCGHT0lw=="], @@ -1193,7 +1203,7 @@ "enquirer": ["enquirer@2.4.1", "", { "dependencies": { "ansi-colors": "^4.1.1", "strip-ansi": "^6.0.1" } }, "sha512-rRqJg/6gd538VHvR3PSrdRBb/1Vy2YfzHqzvbhGIQpDRKIa4FgV/54b5Q1xYSxOOwKvjXweS26E0Q+nAMwp2pQ=="], - "entities": ["entities@4.5.0", "", {}, "sha512-V0hjH4dGPh9Ao5p0MoRY6BVqtwCjhz6vI5LT8AJ55H+4g9/4vbHx1I54fS0XuclLhDHArPQCiMjDxjaL8fPxhw=="], + "entities": ["entities@7.0.1", "", {}, "sha512-TWrgLOFUQTH994YUyl1yT4uyavY5nNB5muff+RtWaqNVCAK408b5ZnnbNAUEWLTCpum9w6arT70i1XdQ4UeOPA=="], "env-paths": ["env-paths@2.2.1", "", {}, "sha512-+h1lkLKhZMTYjog1VEpJNG7NZJWcuc2DDk/qsqSTRRCOXiLjeQ1d1/udrUGhqMxUgAlwKNZ0cf2uqan5GLuS2A=="], @@ -2043,53 +2053,21 @@ "@img/sharp-wasm32/@emnapi/runtime": ["@emnapi/runtime@1.11.2", "", { "dependencies": { "tslib": "^2.4.0" } }, "sha512-kyOl3X0DuTiT1h2ft8r2fYO8JYtU9a9Xis/zBSiGArNaagCOWx90N1k2wxp18czFDH+OgcWGb5ZP/XMt3dcyPA=="], - "@lunora/advisor/@lunora/errors": ["@lunora/errors@1.0.0-alpha.7", "", {}, "sha512-8OAPVm28DDbz6ygJA9Jju0Ik1fRf85vO1HeM295bD0C67vCbg7RhEUh9NCfhNJqtU5Mq0PF6IM3sSpw8TLxQHw=="], - - "@lunora/agent/@lunora/errors": ["@lunora/errors@1.0.0-alpha.7", "", {}, "sha512-8OAPVm28DDbz6ygJA9Jju0Ik1fRf85vO1HeM295bD0C67vCbg7RhEUh9NCfhNJqtU5Mq0PF6IM3sSpw8TLxQHw=="], - - "@lunora/ai/@lunora/errors": ["@lunora/errors@1.0.0-alpha.7", "", {}, "sha512-8OAPVm28DDbz6ygJA9Jju0Ik1fRf85vO1HeM295bD0C67vCbg7RhEUh9NCfhNJqtU5Mq0PF6IM3sSpw8TLxQHw=="], - - "@lunora/bindings/@lunora/errors": ["@lunora/errors@1.0.0-alpha.7", "", {}, "sha512-8OAPVm28DDbz6ygJA9Jju0Ik1fRf85vO1HeM295bD0C67vCbg7RhEUh9NCfhNJqtU5Mq0PF6IM3sSpw8TLxQHw=="], - - "@lunora/cli/@lunora/errors": ["@lunora/errors@1.0.0-alpha.7", "", {}, "sha512-8OAPVm28DDbz6ygJA9Jju0Ik1fRf85vO1HeM295bD0C67vCbg7RhEUh9NCfhNJqtU5Mq0PF6IM3sSpw8TLxQHw=="], - "@lunora/cli/magic-string": ["magic-string@1.1.0", "", { "dependencies": { "@jridgewell/sourcemap-codec": "^1.5.5" } }, "sha512-kS3VHe0nEPST2saQV4Rbkchcd3UBRkVTQHo1D3h/ZTwFDhai/mfKkmtPAtD129EOI7K3HlHIsFOt0WrI2/oU9g=="], "@lunora/cli/ts-morph": ["ts-morph@28.0.0", "", { "dependencies": { "@ts-morph/common": "~0.29.0", "code-block-writer": "^13.0.3" } }, "sha512-Wp3tnZ2bzwxyTZMtgWVzXDfm7lB1Drz+y9DmmYH/L702PQhPyVrp3pkou3yIz4qjS14GY9kcpmLiOOMvl8oG1g=="], - "@lunora/client/@lunora/errors": ["@lunora/errors@1.0.0-alpha.7", "", {}, "sha512-8OAPVm28DDbz6ygJA9Jju0Ik1fRf85vO1HeM295bD0C67vCbg7RhEUh9NCfhNJqtU5Mq0PF6IM3sSpw8TLxQHw=="], - - "@lunora/codegen/@lunora/errors": ["@lunora/errors@1.0.0-alpha.7", "", {}, "sha512-8OAPVm28DDbz6ygJA9Jju0Ik1fRf85vO1HeM295bD0C67vCbg7RhEUh9NCfhNJqtU5Mq0PF6IM3sSpw8TLxQHw=="], - "@lunora/codegen/ts-morph": ["ts-morph@28.0.0", "", { "dependencies": { "@ts-morph/common": "~0.29.0", "code-block-writer": "^13.0.3" } }, "sha512-Wp3tnZ2bzwxyTZMtgWVzXDfm7lB1Drz+y9DmmYH/L702PQhPyVrp3pkou3yIz4qjS14GY9kcpmLiOOMvl8oG1g=="], - "@lunora/config/@lunora/errors": ["@lunora/errors@1.0.0-alpha.7", "", {}, "sha512-8OAPVm28DDbz6ygJA9Jju0Ik1fRf85vO1HeM295bD0C67vCbg7RhEUh9NCfhNJqtU5Mq0PF6IM3sSpw8TLxQHw=="], - "@lunora/config/es-module-lexer": ["es-module-lexer@2.3.1", "", {}, "sha512-shc1dbU90Yl/xq1QrC7QRtfcwURZuVRfPhZbDoldJ1cn1gzDvBaBWlv0eFolj5+0znnPJz5TXLxsN77X/12KTA=="], "@lunora/config/ts-morph": ["ts-morph@28.0.0", "", { "dependencies": { "@ts-morph/common": "~0.29.0", "code-block-writer": "^13.0.3" } }, "sha512-Wp3tnZ2bzwxyTZMtgWVzXDfm7lB1Drz+y9DmmYH/L702PQhPyVrp3pkou3yIz4qjS14GY9kcpmLiOOMvl8oG1g=="], - "@lunora/container/@lunora/errors": ["@lunora/errors@1.0.0-alpha.7", "", {}, "sha512-8OAPVm28DDbz6ygJA9Jju0Ik1fRf85vO1HeM295bD0C67vCbg7RhEUh9NCfhNJqtU5Mq0PF6IM3sSpw8TLxQHw=="], - - "@lunora/d1/@lunora/errors": ["@lunora/errors@1.0.0-alpha.7", "", {}, "sha512-8OAPVm28DDbz6ygJA9Jju0Ik1fRf85vO1HeM295bD0C67vCbg7RhEUh9NCfhNJqtU5Mq0PF6IM3sSpw8TLxQHw=="], - - "@lunora/do/@lunora/errors": ["@lunora/errors@1.0.0-alpha.7", "", {}, "sha512-8OAPVm28DDbz6ygJA9Jju0Ik1fRf85vO1HeM295bD0C67vCbg7RhEUh9NCfhNJqtU5Mq0PF6IM3sSpw8TLxQHw=="], - - "@lunora/flags/@lunora/errors": ["@lunora/errors@1.0.0-alpha.7", "", {}, "sha512-8OAPVm28DDbz6ygJA9Jju0Ik1fRf85vO1HeM295bD0C67vCbg7RhEUh9NCfhNJqtU5Mq0PF6IM3sSpw8TLxQHw=="], + "@lunora/queue/@lunora/errors": ["@lunora/errors@1.0.0-alpha.6", "", {}, "sha512-IBn86WYhsT2bZrwnDrp88aIn+GENPzr9qtjHsuwU3bcbNrjQoe1GKbMMCmPP6AVl6mAe3/6UqJhIE3Cw5r8MIA=="], - "@lunora/mail/@lunora/errors": ["@lunora/errors@1.0.0-alpha.7", "", {}, "sha512-8OAPVm28DDbz6ygJA9Jju0Ik1fRf85vO1HeM295bD0C67vCbg7RhEUh9NCfhNJqtU5Mq0PF6IM3sSpw8TLxQHw=="], + "@lunora/ratelimit/@lunora/errors": ["@lunora/errors@1.0.0-alpha.6", "", {}, "sha512-IBn86WYhsT2bZrwnDrp88aIn+GENPzr9qtjHsuwU3bcbNrjQoe1GKbMMCmPP6AVl6mAe3/6UqJhIE3Cw5r8MIA=="], - "@lunora/runtime/@lunora/errors": ["@lunora/errors@1.0.0-alpha.7", "", {}, "sha512-8OAPVm28DDbz6ygJA9Jju0Ik1fRf85vO1HeM295bD0C67vCbg7RhEUh9NCfhNJqtU5Mq0PF6IM3sSpw8TLxQHw=="], - - "@lunora/seed/@lunora/errors": ["@lunora/errors@1.0.0-alpha.7", "", {}, "sha512-8OAPVm28DDbz6ygJA9Jju0Ik1fRf85vO1HeM295bD0C67vCbg7RhEUh9NCfhNJqtU5Mq0PF6IM3sSpw8TLxQHw=="], - - "@lunora/server/@lunora/errors": ["@lunora/errors@1.0.0-alpha.7", "", {}, "sha512-8OAPVm28DDbz6ygJA9Jju0Ik1fRf85vO1HeM295bD0C67vCbg7RhEUh9NCfhNJqtU5Mq0PF6IM3sSpw8TLxQHw=="], - - "@lunora/sql-store/@lunora/errors": ["@lunora/errors@1.0.0-alpha.7", "", {}, "sha512-8OAPVm28DDbz6ygJA9Jju0Ik1fRf85vO1HeM295bD0C67vCbg7RhEUh9NCfhNJqtU5Mq0PF6IM3sSpw8TLxQHw=="], - - "@lunora/values/@lunora/errors": ["@lunora/errors@1.0.0-alpha.7", "", {}, "sha512-8OAPVm28DDbz6ygJA9Jju0Ik1fRf85vO1HeM295bD0C67vCbg7RhEUh9NCfhNJqtU5Mq0PF6IM3sSpw8TLxQHw=="], - - "@lunora/workflow/@lunora/errors": ["@lunora/errors@1.0.0-alpha.7", "", {}, "sha512-8OAPVm28DDbz6ygJA9Jju0Ik1fRf85vO1HeM295bD0C67vCbg7RhEUh9NCfhNJqtU5Mq0PF6IM3sSpw8TLxQHw=="], + "@lunora/scheduler/@lunora/errors": ["@lunora/errors@1.0.0-alpha.6", "", {}, "sha512-IBn86WYhsT2bZrwnDrp88aIn+GENPzr9qtjHsuwU3bcbNrjQoe1GKbMMCmPP6AVl6mAe3/6UqJhIE3Cw5r8MIA=="], "@manypkg/find-root/@types/node": ["@types/node@12.20.55", "", {}, "sha512-J8xLz7q2OFulZ2cyGTLE1TbbZcjpno7FaN6zdJNrgAdrJ+DZzh/uFR6YrTb4C+nXakvud8Q4+rbhoIWlYQbUFQ=="], @@ -2105,6 +2083,8 @@ "@poppinss/dumper/supports-color": ["supports-color@10.2.2", "", {}, "sha512-SS+jx45GF1QjgEXQx4NJZV9ImqmO2NPz5FNsIHrsDjh2YsHnawpan7SNQ1o8NuhrbHZy9AZhIoCUiCeaW/C80g=="], + "@react-email/render/entities": ["entities@4.5.0", "", {}, "sha512-V0hjH4dGPh9Ao5p0MoRY6BVqtwCjhz6vI5LT8AJ55H+4g9/4vbHx1I54fS0XuclLhDHArPQCiMjDxjaL8fPxhw=="], + "@react-email/render/prettier": ["prettier@3.9.5", "", { "bin": { "prettier": "bin/prettier.cjs" } }, "sha512-/FVl766LpUfB5vXgCYOYa0MeV/441Ia99AeICQIQFTY/Nw0roZwULcXpku5i1/m5kt/baz+s4Zogspd839HSMg=="], "@sentry/bundler-plugins/@babel/core": ["@babel/core@7.29.7", "", { "dependencies": { "@babel/code-frame": "^7.29.7", "@babel/generator": "^7.29.7", "@babel/helper-compilation-targets": "^7.29.7", "@babel/helper-module-transforms": "^7.29.7", "@babel/helpers": "^7.29.7", "@babel/parser": "^7.29.7", "@babel/template": "^7.29.7", "@babel/traverse": "^7.29.7", "@babel/types": "^7.29.7", "@jridgewell/remapping": "^2.3.5", "convert-source-map": "^2.0.0", "debug": "^4.1.0", "gensync": "^1.0.0-beta.2", "json5": "^2.2.3", "semver": "^6.3.1" } }, "sha512-RgHBCvtjbOK2gXSNBNIkNoEc9qoVEtau3hj8gEqKQuL3HZAibKarWFEI3Lfm6EYKkLalOh8eSrj9b+ch9H/VBA=="], @@ -2123,6 +2103,10 @@ "@tailwindcss/oxide-wasm32-wasi/tslib": ["tslib@2.8.1", "", { "bundled": true }, "sha512-oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w=="], + "@tanstack/query-db-collection/@tanstack/db": ["@tanstack/db@0.6.14", "", { "dependencies": { "@standard-schema/spec": "^1.1.0", "@tanstack/db-ivm": "0.1.18", "@tanstack/pacer-lite": "^0.2.1" }, "peerDependencies": { "typescript": ">=4.7" } }, "sha512-Kqma/PcWhn2e21iJPM/FMKwdMuJUYII9zkKPUsD42/ceEOYRtimbBSe+xll7EY805xE2HuQ3NGSSU8UiYXpHUw=="], + + "@tanstack/react-db/@tanstack/db": ["@tanstack/db@0.6.14", "", { "dependencies": { "@standard-schema/spec": "^1.1.0", "@tanstack/db-ivm": "0.1.18", "@tanstack/pacer-lite": "^0.2.1" }, "peerDependencies": { "typescript": ">=4.7" } }, "sha512-Kqma/PcWhn2e21iJPM/FMKwdMuJUYII9zkKPUsD42/ceEOYRtimbBSe+xll7EY805xE2HuQ3NGSSU8UiYXpHUw=="], + "@tanstack/react-query/@tanstack/query-core": ["@tanstack/query-core@5.101.4", "", {}, "sha512-gNwcvOJcRbLWPOLG/2OBm+zM+Yv+MKsXKEOWC57USuZDEsI71hEErQsiEGx5wX9rzWWkfwM0fVSPoiIFSsxfiw=="], "@tanstack/react-router/@tanstack/react-store": ["@tanstack/react-store@0.9.3", "", { "dependencies": { "@tanstack/store": "0.9.3", "use-sync-external-store": "^1.6.0" }, "peerDependencies": { "react": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0", "react-dom": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0" } }, "sha512-y2iHd/N9OkoQbFJLUX1T9vbc2O9tjH0pQRgTcx1/Nz4IlwLvkgpuglXUx+mXt0g5ZDFrEeDnONPqkbfxXJKwRg=="], @@ -2173,8 +2157,6 @@ "@vue/compiler-core/@babel/parser": ["@babel/parser@7.29.7", "", { "dependencies": { "@babel/types": "^7.29.7" }, "bin": "./bin/babel-parser.js" }, "sha512-hnORnjP/1P/zFEndoeX+n+t1RwWRJiJpM/jO7FW32Kn9r5+sJB2JWOdYo4L6k78j15eCwY3Gm/7364B1EMwtNg=="], - "@vue/compiler-core/entities": ["entities@7.0.1", "", {}, "sha512-TWrgLOFUQTH994YUyl1yT4uyavY5nNB5muff+RtWaqNVCAK408b5ZnnbNAUEWLTCpum9w6arT70i1XdQ4UeOPA=="], - "@vue/compiler-sfc/@babel/parser": ["@babel/parser@7.29.7", "", { "dependencies": { "@babel/types": "^7.29.7" }, "bin": "./bin/babel-parser.js" }, "sha512-hnORnjP/1P/zFEndoeX+n+t1RwWRJiJpM/jO7FW32Kn9r5+sJB2JWOdYo4L6k78j15eCwY3Gm/7364B1EMwtNg=="], "@vue/compiler-sfc/postcss": ["postcss@8.5.22", "", { "dependencies": { "nanoid": "^3.3.16", "picocolors": "^1.1.1", "source-map-js": "^1.2.1" } }, "sha512-KBDEIpLrvpv16pp3K0Fw+UCoZfopFjjgeB+0tA/aaThfEE74kKDLrgg603YvOWJyg3+WYtyq3xYsQWsIyZlPqQ=="], @@ -2203,12 +2185,16 @@ "cross-spawn/which": ["which@2.0.2", "", { "dependencies": { "isexe": "^2.0.0" }, "bin": { "node-which": "./bin/node-which" } }, "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA=="], + "dom-serializer/entities": ["entities@4.5.0", "", {}, "sha512-V0hjH4dGPh9Ao5p0MoRY6BVqtwCjhz6vI5LT8AJ55H+4g9/4vbHx1I54fS0XuclLhDHArPQCiMjDxjaL8fPxhw=="], + "dot-prop/is-obj": ["is-obj@2.0.0", "", {}, "sha512-drqDG3cbczxxEJRoOXcOjtdp1J/lyp1mNn0xaznRs8+muBhgQcrnbspox5X5fOw0HnMnbfDzvnEMEtqDEJEo8w=="], "express/cookie": ["cookie@0.7.2", "", {}, "sha512-yki5XnKuf750l50uGTllt6kKILY4nQ1eNIQatoXEByZ5dWgnKqbnqmTrBE5B4N7lrMJKQ2ytWMiTO2o0v6Ew/w=="], "h3-v2/rou3": ["rou3@0.8.1", "", {}, "sha512-ePa+XGk00/3HuCqrEnK3LxJW7I0SdNg6EFzKUJG73hMAdDcOUC/i/aSz7LSDwLrGr33kal/rqOGydzwl6U7zBA=="], + "htmlparser2/entities": ["entities@4.5.0", "", {}, "sha512-V0hjH4dGPh9Ao5p0MoRY6BVqtwCjhz6vI5LT8AJ55H+4g9/4vbHx1I54fS0XuclLhDHArPQCiMjDxjaL8fPxhw=="], + "import-fresh/resolve-from": ["resolve-from@4.0.0", "", {}, "sha512-pb/MYmXstAkysRFx8piNI1tGFNQIFA3vkE3Gq4EuA1dF6gHp/+vgZqsCGJapvy8N3Q+4o7FwvquPJcnZ7RYy4g=="], "is-inside-container/is-docker": ["is-docker@3.0.0", "", { "bin": { "is-docker": "cli.js" } }, "sha512-eljcgEDlEns/7AXFosB5K/2nCM4P7FQPkGc/DWLy5rmFEWvZayGrik1d9/QIY5nJ4f9YsVvBkA6kJpHn9rISdQ=="], @@ -2221,8 +2207,6 @@ "log-update/wrap-ansi": ["wrap-ansi@9.0.2", "", { "dependencies": { "ansi-styles": "^6.2.1", "string-width": "^7.0.0", "strip-ansi": "^7.1.0" } }, "sha512-42AtmgqjV+X1VpdOfyTGOYRi0/zsoLqtXQckTmqTeybT+BDIbM/Guxo7x3pE2vtpr1ok6xRqM9OpBe+Jyoqyww=="], - "lunorash/@lunora/errors": ["@lunora/errors@1.0.0-alpha.7", "", {}, "sha512-8OAPVm28DDbz6ygJA9Jju0Ik1fRf85vO1HeM295bD0C67vCbg7RhEUh9NCfhNJqtU5Mq0PF6IM3sSpw8TLxQHw=="], - "micromatch/picomatch": ["picomatch@2.3.2", "", {}, "sha512-V7+vQEJ06Z+c5tSye8S+nHUfI51xoXIXjHQ99cQtKUkQqqO1kO/KCJUfZXuB47h/YBlDhah2H3hdUGXn8ie0oA=="], "npm-run-path/path-key": ["path-key@4.0.0", "", {}, "sha512-haREypq7xkM7ErfgIyA0z+Bj4AGKlMSdlQE2jvJo6huWD1EdkKYV+G/T4nq0YEF2vgTT8kqMFKo1uHn950r4SQ=="], @@ -2639,8 +2623,6 @@ "@tanstack/start-plugin-core/@babel/core/@babel/traverse/@babel/helper-globals": ["@babel/helper-globals@7.29.7", "", {}, "sha512-3nQVUAtvkKH9zahfWgw96Jc/uFOmjACE1kQz82E2lqWmHBgjzbNlsC22nuQTfahmWeQtTq5nQ/4Nnd2A1wj4zA=="], - "@visulima/email/html-to-text/htmlparser2/entities": ["entities@7.0.1", "", {}, "sha512-TWrgLOFUQTH994YUyl1yT4uyavY5nNB5muff+RtWaqNVCAK408b5ZnnbNAUEWLTCpum9w6arT70i1XdQ4UeOPA=="], - "@visulima/email/html-to-text/selderee/parseley": ["parseley@0.13.1", "", { "dependencies": { "leac": "^0.7.0", "peberminta": "^0.10.0" } }, "sha512-uNBJZzmb60l6p6VWLTmevizNAGnE0xoSf1n0B4q3ntegDNzcS68NRCcBDZTcyXHxt2XhBChsCuqj4M+nChvE/A=="], "@vue/compiler-core/@babel/parser/@babel/types/@babel/helper-string-parser": ["@babel/helper-string-parser@7.29.7", "", {}, "sha512-Pb5ijPrZ89GDH8223L4UP8i6QApWxs04RbPQJTeWDV0/keR2E36MeKnyr6LYmUUvqRRI+Iv87SuF1W6ErINzYw=="], diff --git a/package.json b/package.json index cff12637..a770f88e 100644 --- a/package.json +++ b/package.json @@ -52,10 +52,14 @@ "@fontsource-variable/geist": "^5.2.9", "@fontsource-variable/geist-mono": "^5.2.8", "@icons-pack/react-simple-icons": "^13.13.0", + "@lunora/db": "1.0.0-alpha.27", "@lunora/ratelimit": "1.0.0-alpha.9", + "@lunora/react": "1.0.0-alpha.31", "@rgrove/parse-xml": "^4", "@sentry/cloudflare": "^10.65.0", "@sentry/react": "^10.65.0", + "@tanstack/db": "^0.6.16", + "@tanstack/offline-transactions": "^1.0.41", "@tanstack/query-core": "^5.101.1", "@tanstack/query-db-collection": "^1.0.42", "@tanstack/react-db": "^0.1.87", diff --git a/src/components/lunora-sync-host.tsx b/src/components/lunora-sync-host.tsx new file mode 100644 index 00000000..5a0cc8eb --- /dev/null +++ b/src/components/lunora-sync-host.tsx @@ -0,0 +1,55 @@ +/** + * Starts Lunora outline sync when `dotflowy:flag:lunora-sync` is ON (ADR 0055). + * Mounted inside AuthGate so a session userId is available. Flag OFF = pass- + * through (custom `/api/sync` path unchanged). + * + * Flag is read in an effect (not during SSR/prerender) so the SPA shell and + * client hydration agree on the first paint. + */ + +import { LunoraProvider } from "@lunora/react"; +import { useEffect, useState, type ReactNode } from "react"; + +import { isLunoraSyncEnabled } from "../data/flags"; +import { getLunoraClient } from "../data/lunora-client"; +import { + startLunoraOutlineSync, + stopLunoraOutlineSync, +} from "../data/lunora-sync"; +import { useSession } from "../lib/auth-client"; + +function LunoraOutlineBootstrap({ children }: { children: ReactNode }) { + const { data: session } = useSession(); + const userId = session?.user?.id; + + useEffect(() => { + if (!userId) return; + startLunoraOutlineSync(userId); + return () => { + stopLunoraOutlineSync(); + }; + }, [userId]); + + return <>{children}; +} + +/** + * When the Lunora sync flag is ON, wrap children in LunoraProvider and start + * the outline store. When OFF, pass children through unchanged (no Lunora + * client constructed — keeps prerender / default path clean). + */ +export function LunoraSyncHost({ children }: { children: ReactNode }) { + const [enabled, setEnabled] = useState(false); + + useEffect(() => { + setEnabled(isLunoraSyncEnabled()); + }, []); + + if (!enabled) return <>{children}; + + return ( + + {children} + + ); +} diff --git a/src/data/collection.ts b/src/data/collection.ts index 59eff099..58bcd20f 100644 --- a/src/data/collection.ts +++ b/src/data/collection.ts @@ -8,7 +8,7 @@ import type { Node } from "./schema"; import { createNodes, deleteNodes, updateNodes } from "./api"; import { noteServerVersion } from "./app-version"; -import { isMirrorsEnabled } from "./flags"; +import { isLunoraSyncEnabled, isMirrorsEnabled } from "./flags"; import { runPromise } from "./nodes-client-effect"; import { makeSyncStream } from "./realtime"; import { appRuntime } from "./runtime"; @@ -90,6 +90,11 @@ function markSyncReady(): void { for (const listener of syncReadyListeners) listener(); } +/** Lunora flag-swap path marks the shell ready once `wholeOutline` has seeded. */ +export function markNodesSyncReady(): void { + markSyncReady(); +} + /** Force the outline to reconcile against server truth now (a fresh snapshot). * Used by the daily plugin's claim loser-path; a no-op before the socket * connects (or during the `/` prerender). */ @@ -423,6 +428,15 @@ export const nodesCollection = createCollection({ return () => {}; } + // ADR 0055 flag-swap: Lunora owns outline sync. Keep this collection idle + // (ready+empty) so e2e / default OFF path is unchanged; tree-store feeds + // from the Lunora collection instead. Don't markSyncReady here — Lunora + // bootstrap does once `wholeOutline` lands. + if (isLunoraSyncEnabled()) { + markReady(); + return () => {}; + } + let ready = false; const ensureReady = () => { if (ready) return; diff --git a/src/data/flags.test.ts b/src/data/flags.test.ts new file mode 100644 index 00000000..d4d65df3 --- /dev/null +++ b/src/data/flags.test.ts @@ -0,0 +1,67 @@ +import { afterEach, beforeEach, describe, expect, test } from "bun:test"; + +import { + isLunoraSyncEnabled, + isMirrorsEnabled, + LUNORA_SYNC_FLAG_KEY, +} from "./flags"; + +// bun test has no DOM — stub the surfaces flags.ts reads (see realtime.test.ts). +const store = new Map(); +const location = { href: "http://localhost/", search: "" }; + +beforeEach(() => { + store.clear(); + location.href = "http://localhost/"; + location.search = ""; + (globalThis as { window?: unknown }).window = { + localStorage: { + getItem: (k: string) => store.get(k) ?? null, + setItem: (k: string, v: string) => { + store.set(k, v); + }, + removeItem: (k: string) => { + store.delete(k); + }, + }, + location, + }; +}); + +afterEach(() => { + delete (globalThis as { window?: unknown }).window; +}); + +describe("isLunoraSyncEnabled", () => { + test("defaults OFF", () => { + expect(isLunoraSyncEnabled()).toBe(false); + }); + + test("localStorage on enables", () => { + store.set(LUNORA_SYNC_FLAG_KEY, "on"); + expect(isLunoraSyncEnabled()).toBe(true); + }); + + test("localStorage off disables", () => { + store.set(LUNORA_SYNC_FLAG_KEY, "off"); + expect(isLunoraSyncEnabled()).toBe(false); + }); + + test("URL ?lunora-sync=on wins over localStorage off", () => { + store.set(LUNORA_SYNC_FLAG_KEY, "off"); + location.search = "?lunora-sync=on"; + expect(isLunoraSyncEnabled()).toBe(true); + }); + + test("URL ?lunora-sync=off wins over localStorage on", () => { + store.set(LUNORA_SYNC_FLAG_KEY, "on"); + location.search = "?lunora-sync=off"; + expect(isLunoraSyncEnabled()).toBe(false); + }); +}); + +describe("isMirrorsEnabled (smoke)", () => { + test("still defaults ON", () => { + expect(isMirrorsEnabled()).toBe(true); + }); +}); diff --git a/src/data/flags.ts b/src/data/flags.ts index a9d0ee9a..fb1e6823 100644 --- a/src/data/flags.ts +++ b/src/data/flags.ts @@ -30,3 +30,33 @@ export function isMirrorsEnabled(): boolean { } return MIRRORS_DEFAULT; } + +/** ADR 0055 Phase-2: outline sync via Lunora shapes/mutators instead of custom DO. */ +export const LUNORA_SYNC_FLAG_KEY = "dotflowy:flag:lunora-sync"; + +// Default OFF — Playwright + normal `bun run dev` stay on `/api/sync` + +// `nodesCollection`. Dogfood: localStorage `on` or `?lunora-sync=on`, then reload. +const LUNORA_SYNC_DEFAULT = false; + +/** + * Whether outline sync rides Lunora (`/_lunora` + `@lunora/db`) instead of the + * custom `/api/sync` + `nodesCollection` path (ADR 0055). Default OFF. + * + * Enable: `localStorage.setItem("dotflowy:flag:lunora-sync", "on")` then reload, + * or open with `?lunora-sync=on` (URL wins for that load; does not persist). + * Disable: `"off"` in localStorage, or `?lunora-sync=off`. + */ +export function isLunoraSyncEnabled(): boolean { + if (typeof window === "undefined") return LUNORA_SYNC_DEFAULT; + try { + const q = new URLSearchParams(window.location.search).get("lunora-sync"); + if (q === "on" || q === "1") return true; + if (q === "off" || q === "0") return false; + const v = window.localStorage.getItem(LUNORA_SYNC_FLAG_KEY); + if (v === "on") return true; + if (v === "off") return false; + } catch { + // localStorage / URLSearchParams can throw; fall back to the default. + } + return LUNORA_SYNC_DEFAULT; +} diff --git a/src/data/lunora-bridge.test.ts b/src/data/lunora-bridge.test.ts new file mode 100644 index 00000000..0977126f --- /dev/null +++ b/src/data/lunora-bridge.test.ts @@ -0,0 +1,117 @@ +import { describe, expect, test } from "bun:test"; + +import { + bridgeOrderedChildren, + bridgeTreeIndex, + outlineNodeToNode, + rowsToOutlineNodes, +} from "./lunora-bridge"; +import { + applyPlan, + buildTreeIndex, + makeOutlineNode, + nodeToDocFields, + planIndent, + planInsertSibling, + planRemoveNode, + type OutlineNode, +} from "./outline-plans"; + +const USER = "user-bridge"; + +function toRows(nodes: OutlineNode[]) { + return nodes.map(nodeToDocFields); +} + +describe("lunora-bridge (ADR 0004 seam)", () => { + test("maps rows → OutlineNode via shared rowToNode", () => { + const rows = [ + { + _id: "a", + parentId: null, + prevSiblingId: null, + text: "hello", + isTask: false, + completed: false, + collapsed: false, + bookmarkedAt: null, + mirrorOf: null, + createdAt: 1, + updatedAt: 1, + origin: null, + kind: null, + userId: USER, + }, + ]; + expect(rowsToOutlineNodes(rows)).toEqual([ + expect.objectContaining({ id: "a", text: "hello", userId: USER }), + ]); + expect(outlineNodeToNode(rowsToOutlineNodes(rows)[0]!)).not.toHaveProperty( + "userId", + ); + }); + + test("bridge order matches planner apply (insert/indent/remove)", () => { + let nodes: OutlineNode[] = [ + makeOutlineNode({ + id: "a", + userId: USER, + parentId: null, + prevSiblingId: null, + text: "a", + createdAt: 0, + updatedAt: 0, + }), + makeOutlineNode({ + id: "b", + userId: USER, + parentId: null, + prevSiblingId: "a", + text: "b", + createdAt: 1, + updatedAt: 1, + }), + ]; + + { + const index = buildTreeIndex(nodes); + const plan = planInsertSibling(index, { + id: "c", + userId: USER, + parentId: null, + afterId: "a", + text: "c", + createdAt: 2, + updatedAt: 2, + }); + expect(plan).not.toBeNull(); + nodes = applyPlan(nodes, plan!); + } + + { + const index = buildTreeIndex(nodes); + const plan = planIndent(index, "c", 3); + expect(plan).not.toBeNull(); + nodes = applyPlan(nodes, plan!); + } + + const bridged = bridgeTreeIndex(toRows(nodes)); + expect(bridgeOrderedChildren(bridged, null).map((n) => n.id)).toEqual([ + "a", + "b", + ]); + expect(bridgeOrderedChildren(bridged, "a").map((n) => n.id)).toEqual(["c"]); + + { + const index = buildTreeIndex(nodes); + const plan = planRemoveNode(index, "a", 4); + expect(plan).not.toBeNull(); + nodes = applyPlan(nodes, plan!); + } + + const afterRemove = bridgeTreeIndex(toRows(nodes)); + expect(bridgeOrderedChildren(afterRemove, null).map((n) => n.id)).toEqual([ + "b", + ]); + }); +}); diff --git a/src/data/lunora-bridge.ts b/src/data/lunora-bridge.ts new file mode 100644 index 00000000..7502e383 --- /dev/null +++ b/src/data/lunora-bridge.ts @@ -0,0 +1,36 @@ +/** + * ADR 0004 handoff seam — build Dotflowy-shaped `TreeIndex` / ordered children + * from Lunora collection rows (`wholeOutline`). Ported from + * `spikes/lunora-outline/src/outline/lunora-bridge.ts`. + */ + +import type { NodeDocLike, OutlineNode, TreeIndex } from "./outline-plans"; +import type { Node } from "./schema"; + +import { buildTreeIndex, childrenOf, rowToNode } from "./outline-plans"; + +/** Map collection / query rows → planner nodes. */ +export function rowsToOutlineNodes(rows: Iterable): OutlineNode[] { + const out: OutlineNode[] = []; + for (const row of rows) out.push(rowToNode(row)); + return out; +} + +/** Drop Lunora-only `userId` so tree-store / editor see wire `Node`. */ +export function outlineNodeToNode(node: OutlineNode): Node { + const { userId: _userId, ...rest } = node; + return rest; +} + +/** Lunora rows → TreeIndex (ordered sibling ids per parent). */ +export function bridgeTreeIndex(rows: Iterable): TreeIndex { + return buildTreeIndex(rowsToOutlineNodes(rows)); +} + +/** Ordered children under `parentId` (`null` = top level). */ +export function bridgeOrderedChildren( + index: TreeIndex, + parentId: string | null, +): OutlineNode[] { + return childrenOf(index, parentId) as OutlineNode[]; +} diff --git a/src/data/lunora-client.ts b/src/data/lunora-client.ts new file mode 100644 index 00000000..b1fbc171 --- /dev/null +++ b/src/data/lunora-client.ts @@ -0,0 +1,23 @@ +/** + * Singleton LunoraClient for the ADR 0055 flag-swap path. + * Same-origin `/_lunora/*` (Vite proxies to wrangler in `bun run dev`). + * SPA/no-SSR: never construct during prerender. + */ + +import { LunoraClient } from "lunorash/client"; + +let client: LunoraClient | null = null; + +/** Lazily create the client once in the browser. */ +export function getLunoraClient(): LunoraClient { + if (typeof window === "undefined") { + throw new Error("getLunoraClient: browser only (SPA/no-SSR)"); + } + if (!client) { + const url = + (import.meta.env.VITE_LUNORA_URL as string | undefined) ?? + window.location.origin; + client = new LunoraClient({ url }); + } + return client; +} diff --git a/src/data/lunora-outline-store.ts b/src/data/lunora-outline-store.ts new file mode 100644 index 00000000..6188ba38 --- /dev/null +++ b/src/data/lunora-outline-store.ts @@ -0,0 +1,165 @@ +/** + * Client outline store for the Lunora flag-swap path (ADR 0055). + * Ported from `spikes/lunora-outline/src/outline-store.ts` — `wholeOutline` + * shape + `bindMutators` with watermark checkpoints (replaces `waitForSeq`). + */ + +import type { LunoraClient } from "lunorash/client"; + +import { lunoraCollectionOptions } from "@lunora/db"; +import { bindMutators, defineMutator } from "@lunora/db/mutators"; +import { createCollection, type Collection } from "@tanstack/db"; + +import { + buildTreeIndex, + nodeToRow, + planIndent, + planInsertSibling, + planOutdent, + planRemoveNode, + planSeedIfEmpty, + planSetText, + rowToNode, + type NodeDocLike, + type OutlineNode, + type OutlinePlan, +} from "./outline-plans"; + +/** Row shape for TanStack — Lunora Doc + index signature for collection drafts. */ +export type NodeRow = NodeDocLike & + Record & { _creationTime?: number }; + +function applyPlanToCollection( + collection: Collection, + plan: OutlinePlan, +): void { + for (const id of plan.deletes) { + collection.delete(id); + } + for (const patch of plan.patches) { + collection.update(patch.id, (draft) => { + Object.assign(draft, patch.fields); + }); + } + for (const insert of plan.inserts) { + collection.insert(nodeToRow(insert) as NodeRow); + } +} + +function snapshotNodes(collection: Collection): OutlineNode[] { + return collection.toArray.map(rowToNode); +} + +export type OutlineStore = { + collection: Collection; + mutators: ReturnType; +}; + +function bindOutlineMutators( + client: LunoraClient, + collection: Collection, + checkpoints: ReturnType< + typeof lunoraCollectionOptions + >["checkpoints"], + userId: string, +) { + return bindMutators( + client, + { + checkpoints, + collections: { nodes: collection as never }, + shardKey: userId, + }, + { + insertSibling: defineMutator<{ + id: string; + userId: string; + parentId: string | null; + afterId: string | null; + text: string; + isTask?: boolean; + kind?: "paragraph" | null; + createdAt: number; + updatedAt: number; + }>({ + serverRef: "mutators:insertSibling", + apply: (_ctx, args) => { + const index = buildTreeIndex(snapshotNodes(collection)); + const plan = planInsertSibling(index, args); + if (plan) applyPlanToCollection(collection, plan); + }, + }), + indent: defineMutator<{ id: string; userId: string; updatedAt: number }>({ + serverRef: "mutators:indent", + apply: (_ctx, args) => { + const index = buildTreeIndex(snapshotNodes(collection)); + const plan = planIndent(index, args.id, args.updatedAt); + if (plan) applyPlanToCollection(collection, plan); + }, + }), + outdent: defineMutator<{ id: string; userId: string; updatedAt: number }>( + { + serverRef: "mutators:outdent", + apply: (_ctx, args) => { + const index = buildTreeIndex(snapshotNodes(collection)); + const plan = planOutdent(index, args.id, args.updatedAt); + if (plan) applyPlanToCollection(collection, plan); + }, + }, + ), + removeNode: defineMutator<{ + id: string; + userId: string; + updatedAt: number; + }>({ + serverRef: "mutators:removeNode", + apply: (_ctx, args) => { + const index = buildTreeIndex(snapshotNodes(collection)); + const plan = planRemoveNode(index, args.id, args.updatedAt); + if (plan) applyPlanToCollection(collection, plan); + }, + }), + setText: defineMutator<{ + id: string; + userId: string; + text: string; + updatedAt: number; + }>({ + serverRef: "mutators:setText", + apply: (_ctx, args) => { + const index = buildTreeIndex(snapshotNodes(collection)); + const plan = planSetText(index, args.id, args.text, args.updatedAt); + if (plan) applyPlanToCollection(collection, plan); + }, + }), + seedIfEmpty: defineMutator<{ userId: string; createdAt: number }>({ + serverRef: "mutators:seedIfEmpty", + apply: (_ctx, args) => { + const plan = planSeedIfEmpty(snapshotNodes(collection), args); + if (plan) applyPlanToCollection(collection, plan); + }, + }), + }, + ); +} + +/** Build the outline collection + bound mutators for one signed-in user. */ +export function createOutlineStore( + client: LunoraClient, + userId: string, +): OutlineStore { + const { config, checkpoints } = lunoraCollectionOptions({ + client, + id: `nodes:${userId}`, + shape: { + name: "wholeOutline", + args: { userId }, + shardKey: userId, + }, + load: "eager", + }); + + const collection = createCollection(config); + const mutators = bindOutlineMutators(client, collection, checkpoints, userId); + return { collection, mutators }; +} diff --git a/src/data/lunora-sync.ts b/src/data/lunora-sync.ts new file mode 100644 index 00000000..749b89ea --- /dev/null +++ b/src/data/lunora-sync.ts @@ -0,0 +1,111 @@ +/** + * Lunora outline sync lifecycle for the ADR 0055 flag-swap (default OFF). + * + * When `isLunoraSyncEnabled()`: + * - creates `@lunora/db` `wholeOutline` collection + bound mutators + * - feeds ADR 0004 `tree-store` from collection rows + * - marks sync ready (shell spinner) + `seedIfEmpty` when the outline is empty + * + * SPA/no-SSR: never start during prerender. Custom `/api/sync` stays cold + * (see `collection.ts` early-return when the flag is ON). + */ + +import { markNodesSyncReady } from "./collection"; +import { isLunoraSyncEnabled } from "./flags"; +import { outlineNodeToNode, rowsToOutlineNodes } from "./lunora-bridge"; +import { getLunoraClient } from "./lunora-client"; +import { createOutlineStore, type OutlineStore } from "./lunora-outline-store"; +import { shouldSeedOutline, seedEmptyOutline } from "./outline-plans"; +import { notifySaveFailed } from "./save-failure"; +import { resetTreeFromNodes } from "./tree-store"; + +export type LunoraOutlineContext = { + userId: string; + store: OutlineStore; +}; + +let ctx: LunoraOutlineContext | null = null; +let collectionSub: { unsubscribe: () => void } | null = null; +let seedStarted = false; + +/** Active Lunora outline context, or null when flag OFF / not started. */ +export function getLunoraOutlineContext(): LunoraOutlineContext | null { + return ctx; +} + +function feedTreeFromCollection(store: OutlineStore): void { + const nodes = rowsToOutlineNodes(store.collection.toArray).map( + outlineNodeToNode, + ); + resetTreeFromNodes(nodes); +} + +/** + * Start Lunora outline sync for `userId`. Idempotent for the same user. + * No-op when the flag is OFF or during SSR. + */ +export function startLunoraOutlineSync(userId: string): void { + if (!isLunoraSyncEnabled()) return; + if (typeof window === "undefined") return; + if (ctx?.userId === userId) return; + + stopLunoraOutlineSync(); + + const store = createOutlineStore(getLunoraClient(), userId); + ctx = { userId, store }; + + collectionSub = store.collection.subscribeChanges( + () => { + feedTreeFromCollection(store); + }, + { includeInitialState: true }, + ); + + void store.collection + .toArrayWhenReady() + .then(() => { + if (!ctx || ctx.store !== store) return; + feedTreeFromCollection(store); + markNodesSyncReady(); + maybeSeed(store, userId); + }) + .catch((err) => { + console.error("[lunora-sync] wholeOutline load failed", err); + // Surface the shell anyway — empty outline + save toast on writes. + markNodesSyncReady(); + notifySaveFailed(err); + }); +} + +function maybeSeed(store: OutlineStore, userId: string): void { + if (seedStarted) return; + const nodeCount = store.collection.toArray.length; + if (!shouldSeedOutline({ isReady: true, nodeCount })) return; + seedStarted = true; + void seedEmptyOutline({ + userId, + seedIfEmpty: (args) => { + const tx = store.mutators.seedIfEmpty(args); + return tx.isPersisted.promise.then(() => undefined); + }, + }).catch((err) => { + seedStarted = false; + console.error("[lunora-sync] seedIfEmpty failed", err); + notifySaveFailed(err); + }); +} + +/** Tear down Lunora sync (account switch / flag OFF). */ +export function stopLunoraOutlineSync(): void { + collectionSub?.unsubscribe(); + collectionSub = null; + ctx = null; + seedStarted = false; +} + +/** Fire-and-forget helper: await watermark hold, toast on failure. */ +export function trackLunoraMutation(tx: { + isPersisted: { promise: Promise }; +}): void { + tx.isPersisted.promise.catch(notifySaveFailed); +} diff --git a/src/data/mutations.ts b/src/data/mutations.ts index 3d892f18..5865c748 100644 --- a/src/data/mutations.ts +++ b/src/data/mutations.ts @@ -1,4 +1,6 @@ import { nodesCollection } from "./collection"; +import { isLunoraSyncEnabled } from "./flags"; +import { getLunoraOutlineContext, trackLunoraMutation } from "./lunora-sync"; import { type Node, type NodeKind, @@ -54,6 +56,28 @@ export function insertSibling( kind: NodeKind = null, id = createId(), ): string { + // ADR 0055: Lunora mutator owns optimistic plan + watermark (dogfood surface). + if (isLunoraSyncEnabled()) { + const lunora = getLunoraOutlineContext(); + if (lunora) { + const t = now(); + trackLunoraMutation( + lunora.store.mutators.insertSibling({ + id, + userId: lunora.userId, + parentId, + afterId, + text, + isTask, + kind, + createdAt: t, + updatedAt: t, + }), + ); + return id; + } + } + const prevSiblingId = afterId; // The node currently following `afterId` becomes the new node's follower. @@ -212,6 +236,21 @@ export function indent( const node = index.byId.get(nodeId); if (!node || !node.prevSiblingId) return false; + // ADR 0055 dogfood: skip mirror-resolution path (mirrors still on custom DO). + if (isLunoraSyncEnabled() && !resolveMirror) { + const lunora = getLunoraOutlineContext(); + if (lunora) { + trackLunoraMutation( + lunora.store.mutators.indent({ + id: nodeId, + userId: lunora.userId, + updatedAt: now(), + }), + ); + return true; + } + } + const newParent = index.byId.get(node.prevSiblingId); if (!newParent) return false; @@ -287,6 +326,20 @@ export function outdent(index: TreeIndex, nodeId: string): boolean { const node = index.byId.get(nodeId); if (!node || node.parentId === null) return false; + if (isLunoraSyncEnabled()) { + const lunora = getLunoraOutlineContext(); + if (lunora) { + trackLunoraMutation( + lunora.store.mutators.outdent({ + id: nodeId, + userId: lunora.userId, + updatedAt: now(), + }), + ); + return true; + } + } + const oldParent = index.byId.get(node.parentId); if (!oldParent) return false; @@ -693,17 +746,7 @@ export function removeNode(index: TreeIndex, nodeId: string): string | null { const node = index.byId.get(nodeId); if (!node) return null; - // Collect subtree ids (depth-first). - const toDelete: string[] = []; - const stack = [nodeId]; - while (stack.length) { - const id = stack.pop()!; - toDelete.push(id); - const kids = childrenOf(index, id); - for (const k of kids) stack.push(k.id); - } - - // Determine focus target before mutating. + // Determine focus target before mutating (shared by Lunora + custom-DO paths). const siblings = childrenOf(index, node.parentId); const i = siblings.findIndex((n) => n.id === nodeId); let focusId: string | null = null; @@ -715,6 +758,30 @@ export function removeNode(index: TreeIndex, nodeId: string): string | null { focusId = node.parentId; } + if (isLunoraSyncEnabled()) { + const lunora = getLunoraOutlineContext(); + if (lunora) { + trackLunoraMutation( + lunora.store.mutators.removeNode({ + id: nodeId, + userId: lunora.userId, + updatedAt: now(), + }), + ); + return focusId; + } + } + + // Collect subtree ids (depth-first). + const toDelete: string[] = []; + const stack = [nodeId]; + while (stack.length) { + const id = stack.pop()!; + toDelete.push(id); + const kids = childrenOf(index, id); + for (const k of kids) stack.push(k.id); + } + // Relink the follower of the last-deleted-in-chain. For the deleted node // itself, its old next sibling needs to point at node.prevSiblingId. if (i !== -1 && i + 1 < siblings.length) { @@ -745,6 +812,20 @@ export function removeManyNodes(ids: string[]): void { } export function setText(nodeId: string, text: string) { + if (isLunoraSyncEnabled()) { + const lunora = getLunoraOutlineContext(); + if (lunora) { + trackLunoraMutation( + lunora.store.mutators.setText({ + id: nodeId, + userId: lunora.userId, + text, + updatedAt: now(), + }), + ); + return; + } + } update(nodeId, { text }); } diff --git a/src/data/seed.ts b/src/data/seed.ts index 660e5a3f..db1b4a98 100644 --- a/src/data/seed.ts +++ b/src/data/seed.ts @@ -1,10 +1,27 @@ import { Effect } from "effect"; -import { nodesCollection, nodesLoadError } from "./collection"; +import { + isSyncReady, + nodesCollection, + nodesLoadError, + subscribeSyncReady, +} from "./collection"; import { BootstrapError } from "./errors"; +import { isLunoraSyncEnabled } from "./flags"; import { appendChild } from "./mutations"; import { createId, makeNode, now } from "./tree"; +/** Wait until the shell's sync-ready signal flips (custom DO or Lunora). */ +function waitUntilSyncReady(): Promise { + if (isSyncReady()) return Promise.resolve(); + return new Promise((resolve) => { + const unsub = subscribeSyncReady(() => { + unsub(); + resolve(); + }); + }); +} + // One-shot guard, set synchronously before the first await. bootstrapOutline is // the single mount entry point; this guard means React StrictMode's // double-mounted effect can't run two competing seed chains on the same empty @@ -31,6 +48,24 @@ let bootstrapped = false; export async function bootstrapOutline(): Promise { if (bootstrapped) return; bootstrapped = true; + + // ADR 0055: Lunora path seeds via `seedIfEmpty` mutator in lunora-sync. + // Just wait for wholeOutline ready so the editor doesn't race an empty feed. + if (isLunoraSyncEnabled()) { + return Effect.runPromise( + Effect.match( + Effect.tryPromise({ + try: () => waitUntilSyncReady(), + catch: (cause) => new BootstrapError({ cause }), + }), + { + onFailure: (error) => error, + onSuccess: () => undefined, + }, + ), + ); + } + // One Effect program. Wait for the first load (tryPromise covers the rare // synchronous sync-init throw); then the typed-failure gate — if the sync // failed (the common 500/offline case settles ready-but-empty with the error diff --git a/src/data/structural.ts b/src/data/structural.ts index d22421fc..74bb2800 100644 --- a/src/data/structural.ts +++ b/src/data/structural.ts @@ -8,6 +8,7 @@ import type { Node } from "./schema"; import { openSettings } from "../components/settings-nav"; import { persistBatchE } from "./api"; import { nodesCollection, waitForSeqE } from "./collection"; +import { isLunoraSyncEnabled } from "./flags"; import { NodesLimitError, runPromise } from "./nodes-client-effect"; import { notifySaveFailed } from "./save-failure"; import { chainDisagreements } from "./sibling-chain"; @@ -107,6 +108,13 @@ export function runStructuralTracked(body: () => T): { if (getActiveTransaction()) return { result: body(), persisted: Promise.resolve() }; + // ADR 0055 Lunora flag-swap: mutators own optimistic apply + watermark hold + // (checkpoints). Body calls Lunora-aware mutations which fire `bindMutators` + // handles — no custom `{ops}` batch / `waitForSeq`. + if (isLunoraSyncEnabled()) { + return { result: body(), persisted: Promise.resolve() }; + } + let result!: T; const tx = createTransaction({ mutationFn: async ({ transaction }) => { @@ -157,6 +165,16 @@ export async function runStructuralSliced( for (const slice of slices) slice(); return; } + // Lunora dogfood: no large-batch wire path yet — apply slices locally via + // mutator-backed mutations (same as runStructuralTracked when flag ON). + if (isLunoraSyncEnabled()) { + for (const slice of slices) { + slice(); + onProgress?.(); + await new Promise((resolve) => setTimeout(resolve, 0)); + } + return; + } const tx = createTransaction({ autoCommit: false, mutationFn: async ({ transaction }) => { diff --git a/src/data/tree-store.ts b/src/data/tree-store.ts index 87cbfcb7..0f2a8aa7 100644 --- a/src/data/tree-store.ts +++ b/src/data/tree-store.ts @@ -5,7 +5,7 @@ import { useCallback, useRef, useSyncExternalStore } from "react"; import type { QueryFilter } from "./filter-query"; import { isSyncReady, nodesCollection, subscribeSyncReady } from "./collection"; -import { isMirrorsEnabled } from "./flags"; +import { isLunoraSyncEnabled, isMirrorsEnabled } from "./flags"; import { parseNodeLinks } from "./node-links"; import { parseTags } from "./tags"; import { @@ -356,15 +356,32 @@ function removeTagOccurrence(tag: string) { * first read is already populated; every later change is folded into the shared * index incrementally and notifies. Skipped on the server (SPA + prerender, no * socket) -- see ADR 0004. + * + * Lunora flag-swap (ADR 0055): `lunora-sync.ts` owns the subscription and calls + * {@link resetTreeFromNodes} — do not also subscribe to the idle `nodesCollection`. */ function ensureStarted() { if (started || typeof window === "undefined") return; started = true; + if (isLunoraSyncEnabled()) return; nodesCollection.subscribeChanges((changes) => applyChanges(changes), { includeInitialState: true, }); } +/** + * Replace the shared index from a full node list (Lunora `wholeOutline` feed). + * Used when the Lunora sync flag is ON — a full rebuild is fine for dogfood + * outlines; the incremental `applyChanges` path stays on the custom-DO flag-OFF + * path. + */ +export function resetTreeFromNodes(nodes: readonly Node[]): void { + ensureStarted(); + index = buildTreeIndex([...nodes]); + structureRev++; + notify(); +} + /** * Subscribe to any change in the shared tree index. Exported so the editor * shell's own narrow slice hooks ({@link useTrail}, {@link useHasNodes}, and the diff --git a/src/routes/__root.tsx b/src/routes/__root.tsx index 2448ded3..999c3bae 100644 --- a/src/routes/__root.tsx +++ b/src/routes/__root.tsx @@ -15,6 +15,7 @@ import { AuthScreen } from "../components/auth-screen"; import { ChangelogDialog } from "../components/changelog-dialog"; import { DeleteConfirmDialog } from "../components/delete-confirm-dialog"; import { HistoryRestoreDialog } from "../components/history-restore"; +import { LunoraSyncHost } from "../components/lunora-sync-host"; import { MirrorPlaces } from "../components/mirror-places"; import { MoveDialog } from "../components/move-dialog"; import { NodeSwitcher } from "../components/node-switcher"; @@ -145,29 +146,32 @@ function RootComponent() { ) : ( - - - - - {/* Registers openSettings() so the node-limit toast's "Upgrade" + {/* ADR 0055: no-op when lunora-sync flag OFF (default). */} + + + + + + {/* Registers openSettings() so the node-limit toast's "Upgrade" action can SPA-navigate to /settings from non-React code. */} - - - - - - - - - - {/* A distinct mechanism from the changelog (ADR 0046): the + + + + + + + + + + {/* A distinct mechanism from the changelog (ADR 0046): the changelog says WHAT changed; this says THIS TAB is stale. */} - - {/* Inside the gate: surfaces a failed "Connect Google" round + + {/* Inside the gate: surfaces a failed "Connect Google" round trip (signed-in). Signed-out failures render inline in AuthScreen via the same consume helper. */} - - + + + )} From 8fb0b97e99ae42a5131a09aad83cff004eb54aae Mon Sep 17 00:00:00 2001 From: Cameron Pak Date: Thu, 23 Jul 2026 13:16:36 -0500 Subject: [PATCH 21/59] docs: handoff phase-2-flag-swap for lunora sync Record flag name, smoke steps, architecture sketch, and known gaps. Co-authored-by: Cursor --- HANDOFF.md | 105 +++++++++++++++++++++----------- spikes/lunora-outline/README.md | 4 +- 2 files changed, 74 insertions(+), 35 deletions(-) diff --git a/HANDOFF.md b/HANDOFF.md index b59955a2..90389b2e 100644 --- a/HANDOFF.md +++ b/HANDOFF.md @@ -4,59 +4,96 @@ ## Status -`phase-2-compose` — shared planners lifted; Lunora `SHARD` DO composed beside `UserOutlineDO`. Product `/api/*` + ASSETS + MCP unchanged. **No PR until collection cutover + gates green.** +`phase-2-flag-swap` — outline sync can ride Lunora shapes/mutators behind a **default-OFF** flag. Custom `/api/sync` + `nodesCollection` + `runStructural` remain the default path (Playwright + normal `bun run dev`). **No PR until remaining gaps close + e2e green on Lunora (or still on old wire by design).** -## What landed (this slice) +## Flag — Lunora outline sync + +| | | +| ----------- | --------------------------------------------------------------------------------------------------------------------------------------- | +| **Name** | `dotflowy:flag:lunora-sync` | +| **Getter** | `isLunoraSyncEnabled()` in `src/data/flags.ts` | +| **Default** | **OFF** | +| **Enable** | `localStorage.setItem("dotflowy:flag:lunora-sync", "on")` then reload, **or** `?lunora-sync=on` (URL wins for that load; not persisted) | +| **Disable** | `"off"` in localStorage, or `?lunora-sync=off` | + +### Smoke (flag ON) + +```sh +bun run lunora:codegen # after lunora/ edits +bun run dev # vite :3000 + wrangler :8787 +# sign in (seed:user if needed) +# DevTools: +localStorage.setItem("dotflowy:flag:lunora-sync", "on") +location.reload() +# Or open http://localhost:3000/?lunora-sync=on +``` + +Expect: empty Lunora shard seeds demo bullets via `seedIfEmpty`; Enter / Tab / Shift+Tab / Backspace / typing use Lunora mutators + watermark checkpoints; Network shows `/_lunora/*` (not `/api/sync` for outline). Second tab same user → live converge. -### A. Shared planners → `src/data/outline-plans/` +## What landed (this slice) -- Pure `plan*` / `seed` / `map-node` / types; converges on Dotflowy `Node` + `tree.ts` / `sibling-chain.ts` (`OutlineNode = Node & { userId }`). -- Unit tests: `src/data/outline-plans/*.test.ts` (`bun run test`). -- Spike imports via Vite/vitest alias `@dotflowy/outline-plans` → `../../src/data/outline-plans` (see `spikes/lunora-outline/vite.config.ts`). Awkward bit: root `bun test` filter `src` used to also match `spikes/**/src/**` — script is now `bun test -- ./src ./worker`. Spike still runs `pnpm test` (vitest) in its directory. +### Flag-swap architecture -### B. Lunora compose in main Worker +``` +Flag OFF (default): + OutlineEditor → mutations/runStructural → nodesCollection → /api/sync + UserOutlineDO + +Flag ON: + LunoraSyncHost → createOutlineStore(wholeOutline + bindMutators) + ↓ subscribeChanges + tree-store.resetTreeFromNodes (ADR 0004 feed) + ↑ + mutations (insertSibling/indent/outdent/removeNode/setText) → Lunora mutators + runStructural → body only (watermark hold is checkpoints, not waitForSeq) +``` -- Root deps: `lunorash@1.0.0-alpha.98`, `@lunora/ratelimit@1.0.0-alpha.9` (bun). -- Schema/mutators: repo-root `lunora/` (nodes + `wholeOutline` + spike mutators + `hello` smoke mutator). Codegen: `bun run lunora:codegen`. -- `wrangler.jsonc`: `SHARD` → `ShardDO` **alongside** `USER_OUTLINE`; migration tag `v2`. -- `worker/lunora-app.ts`: `defineApp` + product Better Auth `resolveIdentity` bridge (no `@lunora/auth` dual signup). -- `worker/index.ts`: `/_lunora` → `lunoraApp.fetch`; Vite proxies `/_lunora` → `:8787`. +| File | Role | +| ------------------------------------- | ------------------------------------------------------- | +| `src/data/flags.ts` | `isLunoraSyncEnabled()` | +| `src/data/lunora-client.ts` | singleton `LunoraClient` → same-origin `/_lunora` | +| `src/data/lunora-outline-store.ts` | `lunoraCollectionOptions` + `bindMutators` (spike port) | +| `src/data/lunora-bridge.ts` | rows → TreeIndex / Node | +| `src/data/lunora-sync.ts` | start/stop, feed tree-store, seedIfEmpty | +| `src/components/lunora-sync-host.tsx` | AuthGate child; LunoraProvider when flag ON | +| `src/data/collection.ts` | flag ON → skip `/api/sync` socket | +| `src/data/structural.ts` | flag ON → no `{ops}` / waitForSeq | +| `src/data/mutations.ts` | dogfood mutator surface (5 ops) | -### Temporary escapes (typecheck) +### Deps (root, bun) -- `ShardDO` is **not** Sentry-wrapped — Lunora `ShardDOState.sql` typing doesn't satisfy Sentry's `DurableObjectState` constraint. Revisit when wrapping or types align. +- `@lunora/db@1.0.0-alpha.27`, `@lunora/react@1.0.0-alpha.31` +- `@tanstack/db@^0.6.16`, `@tanstack/offline-transactions@^1.0.41` +- Existing: `lunorash@1.0.0-alpha.98` -## Sources of truth +### Prior slice (still true) -- **ADR 0055:** `docs/adr/0055-lunora-replaces-custom-outline-sync.md` -- Spike README: `spikes/lunora-outline/README.md` - Shared planners: `src/data/outline-plans/` -- Research clone (machine-local): `/tmp/lunora-research` (`alpha` branch) +- Worker compose: `/_lunora` → `ShardDO` beside `UserOutlineDO` +- Identity: product Better Auth → Lunora `resolveIdentity` + +## Known gaps (flag ON) -## Compose smoke +- **Not ported:** multi-select, daily get-or-create, mirrors, move up/down, drag, OPML, history restore, insertChildAtStart (Enter-into-open-parent), field toggles (completed/isTask/kind/bookmark), full plugin structural paths +- **Enter mid-split** fires two mutators (insertSibling + setText), not one atomic batch +- **e2e** still on old wire (`seedOutline`); flag must stay OFF for Playwright +- **KV** side-collections still custom DO (phase 2b) +- **No data migrate** from UserOutlineDO → Lunora shard yet (flag ON = empty/new Lunora outline) +- Tree-store Lunora feed is **full rebuild** per change (fine for dogfood; not the incremental hot path) + +## Gates (flag OFF) ```sh -bun run lunora:codegen # after lunora/ schema/mutator edits bun run typecheck bun run typecheck:worker -bun run test # includes outline-plans; excludes spike vitest -cd spikes/lunora-outline && pnpm test - -# Product path (custom DO still authoritative for OutlineEditor): -bun run dev -# Optional: curl Worker status once api is up -# curl -sS http://localhost:8787/_lunora/status +bun run test # includes flags + lunora-bridge tests ``` -Spike alone still: `cd spikes/lunora-outline && pnpm dev`. - ## Next -1. **Flag-swap / collection cutover** — `nodesCollection` → `@lunora/db` shape collections; structural path → `bindMutators` (ADR 0055 seq step 4). -2. Keep `seedOutline` e2e as-is until that swap. -3. KV side-collections = phase **2b** (don't block on them). -4. Then MCP remount / data migrate / delete `UserOutlineDO` custom sync → green gates → PR. -5. Delete this `HANDOFF.md` in the shipping PR. +1. Widen mutator surface (insertChildAtStart, move, completed/isTask, …) or keep dogfood-only until cutover. +2. Lunora-aware e2e fixture (mock `/_lunora` or Miniflare) — keep `seedOutline` until then. +3. KV phase 2b; MCP remount; snapshot migrate; delete `UserOutlineDO` custom sync. +4. Green gates → PR; **delete this `HANDOFF.md` in the shipping PR.** ## Note diff --git a/spikes/lunora-outline/README.md b/spikes/lunora-outline/README.md index 9599079e..73fd84db 100644 --- a/spikes/lunora-outline/README.md +++ b/spikes/lunora-outline/README.md @@ -59,7 +59,9 @@ Pure `plan*` / seed / map-node live in the **repo root** at `src/outline/` is a thin re-export + the local `lunora-bridge` seam. Root also composes Lunora beside `UserOutlineDO` (`lunora/`, `worker/lunora-app.ts`) -— see root `HANDOFF.md`. Keep running this spike with **pnpm from this directory**. +and has a **default-OFF** product flag-swap (`dotflowy:flag:lunora-sync` / +`isLunoraSyncEnabled()`) — see root `HANDOFF.md`. Keep running this spike with +**pnpm from this directory**. ## Layout From 27eb09d67899c340353b49bf135b9abcd8f60fd2 Mon Sep 17 00:00:00 2001 From: Cameron Pak Date: Thu, 23 Jul 2026 13:22:26 -0500 Subject: [PATCH 22/59] feat(lunora): widen mutator parity for editor dogfood path Port insertChildAtStart, field toggles, moveNode, and atomic splitNode so flag-ON editing covers Enter/move/complete/task/kind/bookmark without the custom-DO wire. Co-authored-by: Cursor --- HANDOFF.md | 39 +++- lunora/_generated/collections.ts | 12 ++ lunora/_generated/functions.ts | 10 +- lunora/mutators.ts | 208 ++++++++++++++++++++- src/components/OutlineEditor.tsx | 20 +- src/data/lunora-outline-store.ts | 145 +++++++++++++++ src/data/mutations.ts | 211 +++++++++++++++++++-- src/data/outline-plans/index.ts | 8 + src/data/outline-plans/planners.test.ts | 181 ++++++++++++++++++ src/data/outline-plans/planners.ts | 233 ++++++++++++++++++++++++ 10 files changed, 1032 insertions(+), 35 deletions(-) create mode 100644 lunora/_generated/collections.ts diff --git a/HANDOFF.md b/HANDOFF.md index 90389b2e..8a914a42 100644 --- a/HANDOFF.md +++ b/HANDOFF.md @@ -32,6 +32,28 @@ Expect: empty Lunora shard seeds demo bullets via `seedIfEmpty`; Enter / Tab / S ## What landed (this slice) +### Mutator/planner parity widen (flag ON) + +Dogfood surface expanded beyond the original 5 ops. Shared pure planners in +`src/data/outline-plans/`; server `defineMutator` in `lunora/mutators.ts`; +client `@lunora/db/mutators` in `src/data/lunora-outline-store.ts`; +`mutations.ts` branches when `isLunoraSyncEnabled()`. + +| Mutator | Planner | Notes | +| ----------------------------------- | ------------------------ | ------------------------------------------------------- | +| `insertSibling` | `planInsertSibling` | prior | +| `insertChildAtStart` | `planInsertChildAtStart` | Enter into expanded parent | +| `splitNode` | `planSplitNode` | Enter mid-split — ONE watermark (setText+insertSibling) | +| `indent` / `outdent` / `removeNode` | prior | prior | +| `moveNode` | `planMoveNode` | Cmd+Shift+↑/↓ via moveUp/moveDown → moveNode | +| `setText` | `planSetText` | prior | +| `setCompleted` | `planSetCompleted` | field toggle | +| `setCollapsed` | `planSetCollapsed` | field toggle | +| `setIsTask` | `planSetIsTask` | clears `kind` (ADR 0045) | +| `setKind` | `planSetKind` | clears `isTask` (ADR 0045) | +| `setBookmarkedAt` | `planSetBookmarkedAt` | bookmark pin/unpin | +| `seedIfEmpty` / `hello` | prior | prior | + ### Flag-swap architecture ``` @@ -43,7 +65,7 @@ Flag ON: ↓ subscribeChanges tree-store.resetTreeFromNodes (ADR 0004 feed) ↑ - mutations (insertSibling/indent/outdent/removeNode/setText) → Lunora mutators + mutations (insert/indent/outdent/remove/move/split/field toggles) → Lunora mutators runStructural → body only (watermark hold is checkpoints, not waitForSeq) ``` @@ -57,7 +79,9 @@ Flag ON: | `src/components/lunora-sync-host.tsx` | AuthGate child; LunoraProvider when flag ON | | `src/data/collection.ts` | flag ON → skip `/api/sync` socket | | `src/data/structural.ts` | flag ON → no `{ops}` / waitForSeq | -| `src/data/mutations.ts` | dogfood mutator surface (5 ops) | +| `src/data/mutations.ts` | Lunora mutator surface (insert/move/split/fields) | +| `src/data/outline-plans/` | shared pure planners + unit tests | +| `lunora/mutators.ts` | server `defineMutator` twin | ### Deps (root, bun) @@ -73,8 +97,7 @@ Flag ON: ## Known gaps (flag ON) -- **Not ported:** multi-select, daily get-or-create, mirrors, move up/down, drag, OPML, history restore, insertChildAtStart (Enter-into-open-parent), field toggles (completed/isTask/kind/bookmark), full plugin structural paths -- **Enter mid-split** fires two mutators (insertSibling + setText), not one atomic batch +- **Not ported:** multi-select batches, daily get-or-create, mirrors (`resolveMirror` path), drag-specific UX (moveNode mutator covers the fuse), OPML, history restore, full plugin structural paths - **e2e** still on old wire (`seedOutline`); flag must stay OFF for Playwright - **KV** side-collections still custom DO (phase 2b) - **No data migrate** from UserOutlineDO → Lunora shard yet (flag ON = empty/new Lunora outline) @@ -85,14 +108,14 @@ Flag ON: ```sh bun run typecheck bun run typecheck:worker -bun run test # includes flags + lunora-bridge tests +bun run test # includes flags + lunora-bridge + outline-plans ``` ## Next -1. Widen mutator surface (insertChildAtStart, move, completed/isTask, …) or keep dogfood-only until cutover. -2. Lunora-aware e2e fixture (mock `/_lunora` or Miniflare) — keep `seedOutline` until then. -3. KV phase 2b; MCP remount; snapshot migrate; delete `UserOutlineDO` custom sync. +1. Lunora-aware e2e fixture (mock `/_lunora` or Miniflare) — keep `seedOutline` until then. +2. KV phase 2b; MCP remount; snapshot migrate; delete `UserOutlineDO` custom sync. +3. Multi-select / daily / mirrors when cutover nears. 4. Green gates → PR; **delete this `HANDOFF.md` in the shipping PR.** ## Note diff --git a/lunora/_generated/collections.ts b/lunora/_generated/collections.ts new file mode 100644 index 00000000..b9a4f709 --- /dev/null +++ b/lunora/_generated/collections.ts @@ -0,0 +1,12 @@ +// GENERATED by @lunora/codegen — do not edit. +// Run `lunora codegen` to regenerate. + +import type { LunoraClient } from "lunorash/client"; +import { lunoraCollectionOptions } from "@lunora/db/collections"; +import type { Row } from "@lunora/db"; +import type { Collection } from "@tanstack/db"; +import { createCollection } from "@tanstack/db"; + +/** Live collection for the `wholeOutline` replication shape — pass the shape's validated `args` (its partition selector). */ +export const wholeOutlineCollection = (client: LunoraClient, args?: Record): Collection => + createCollection(lunoraCollectionOptions({ client, shape: { args, name: "wholeOutline" } }).config); diff --git a/lunora/_generated/functions.ts b/lunora/_generated/functions.ts index 0ae46078..cfa91914 100644 --- a/lunora/_generated/functions.ts +++ b/lunora/_generated/functions.ts @@ -34,11 +34,19 @@ export interface RegisteredLunoraFunction { export const LUNORA_FUNCTIONS: Record = { "mutators:hello": lunora_mutators_0.hello as unknown as RegisteredLunoraFunction, "mutators:indent": lunora_mutators_0.indent as unknown as RegisteredLunoraFunction, + "mutators:insertChildAtStart": lunora_mutators_0.insertChildAtStart as unknown as RegisteredLunoraFunction, "mutators:insertSibling": lunora_mutators_0.insertSibling as unknown as RegisteredLunoraFunction, + "mutators:moveNode": lunora_mutators_0.moveNode as unknown as RegisteredLunoraFunction, "mutators:outdent": lunora_mutators_0.outdent as unknown as RegisteredLunoraFunction, "mutators:removeNode": lunora_mutators_0.removeNode as unknown as RegisteredLunoraFunction, "mutators:seedIfEmpty": lunora_mutators_0.seedIfEmpty as unknown as RegisteredLunoraFunction, + "mutators:setBookmarkedAt": lunora_mutators_0.setBookmarkedAt as unknown as RegisteredLunoraFunction, + "mutators:setCollapsed": lunora_mutators_0.setCollapsed as unknown as RegisteredLunoraFunction, + "mutators:setCompleted": lunora_mutators_0.setCompleted as unknown as RegisteredLunoraFunction, + "mutators:setIsTask": lunora_mutators_0.setIsTask as unknown as RegisteredLunoraFunction, + "mutators:setKind": lunora_mutators_0.setKind as unknown as RegisteredLunoraFunction, "mutators:setText": lunora_mutators_0.setText as unknown as RegisteredLunoraFunction, + "mutators:splitNode": lunora_mutators_0.splitNode as unknown as RegisteredLunoraFunction, }; /** @@ -56,7 +64,7 @@ export const LUNORA_SHAPES: Record = { * ShardDO's `isCustomMutator` override routes through the client-watermark push * protocol (`x-lunora-client-id`/`x-lunora-client-seq` ordering). */ -export const LUNORA_MUTATOR_PATHS: ReadonlySet = new Set(["mutators:hello", "mutators:indent", "mutators:insertSibling", "mutators:outdent", "mutators:removeNode", "mutators:seedIfEmpty", "mutators:setText"]); +export const LUNORA_MUTATOR_PATHS: ReadonlySet = new Set(["mutators:hello", "mutators:indent", "mutators:insertChildAtStart", "mutators:insertSibling", "mutators:moveNode", "mutators:outdent", "mutators:removeNode", "mutators:seedIfEmpty", "mutators:setBookmarkedAt", "mutators:setCollapsed", "mutators:setCompleted", "mutators:setIsTask", "mutators:setKind", "mutators:setText", "mutators:splitNode"]); /** * Connection-lifecycle manifest: the function paths the generated ShardDO diff --git a/lunora/mutators.ts b/lunora/mutators.ts index 3f2730b2..9ac8f205 100644 --- a/lunora/mutators.ts +++ b/lunora/mutators.ts @@ -7,11 +7,19 @@ import { docToNode, nodeToInsertFields, planIndent, + planInsertChildAtStart, planInsertSibling, + planMoveNode, planOutdent, planRemoveNode, planSeedIfEmpty, + planSetBookmarkedAt, + planSetCollapsed, + planSetCompleted, + planSetIsTask, + planSetKind, planSetText, + planSplitNode, type OutlineNode, type OutlinePlan, } from "../src/data/outline-plans"; @@ -68,6 +76,7 @@ async function commitPlan(ctx: MutatorCtx, plan: OutlinePlan): Promise { const userIdArg = v.string(); const idArg = v.string(); const tsArg = v.number(); +const kindArg = v.optional(v.literal("paragraph").nullable()); /** Compose smoke mutator — proves codegen + SHARD wiring without dual auth UX. */ export const hello = defineMutator({ @@ -87,7 +96,7 @@ export const insertSibling = defineMutator({ afterId: v.string().nullable(), text: v.string(), isTask: v.optional(v.boolean()), - kind: v.optional(v.literal("paragraph").nullable()), + kind: kindArg, createdAt: tsArg, updatedAt: tsArg, }, @@ -112,6 +121,78 @@ export const insertSibling = defineMutator({ }, }); +export const insertChildAtStart = defineMutator({ + args: { + id: idArg, + userId: userIdArg, + parentId: v.string().nullable(), + text: v.string(), + isTask: v.optional(v.boolean()), + kind: kindArg, + createdAt: tsArg, + updatedAt: tsArg, + }, + server: async (ctx, args) => { + const mctx = ctx as unknown as MutatorCtx; + assertOwner(mctx, args.userId); + const index = buildTreeIndex(await loadNodes(mctx)); + const plan = planInsertChildAtStart(index, { + id: args.id, + userId: args.userId, + parentId: args.parentId, + text: args.text, + isTask: args.isTask, + kind: args.kind, + createdAt: args.createdAt, + updatedAt: args.updatedAt, + }); + if (!plan) throw new Error("insertChildAtStart: invalid parent"); + await commitPlan(mctx, plan); + return { id: args.id }; + }, +}); + +/** + * Enter mid-split: left text stays on `id`, right text lands in `newId` sibling + * — one DO transaction / watermark. + */ +export const splitNode = defineMutator({ + args: { + id: idArg, + newId: idArg, + userId: userIdArg, + parentId: v.string().nullable(), + afterId: idArg, + leftText: v.string(), + rightText: v.string(), + isTask: v.optional(v.boolean()), + kind: kindArg, + createdAt: tsArg, + updatedAt: tsArg, + }, + server: async (ctx, args) => { + const mctx = ctx as unknown as MutatorCtx; + assertOwner(mctx, args.userId); + const index = buildTreeIndex(await loadNodes(mctx)); + const plan = planSplitNode(index, { + id: args.id, + newId: args.newId, + userId: args.userId, + parentId: args.parentId, + afterId: args.afterId, + leftText: args.leftText, + rightText: args.rightText, + isTask: args.isTask, + kind: args.kind, + createdAt: args.createdAt, + updatedAt: args.updatedAt, + }); + if (!plan) throw new Error("splitNode: invalid id/parent/afterId"); + await commitPlan(mctx, plan); + return { id: args.newId }; + }, +}); + /** * Server-authoritative empty-outline seed. Concurrent calls serialize on the * DO watermark FIFO — second sees non-empty and returns `{ seeded: false }`. @@ -174,6 +255,31 @@ export const removeNode = defineMutator({ }, }); +export const moveNode = defineMutator({ + args: { + id: idArg, + userId: userIdArg, + newParentId: v.string().nullable(), + afterSiblingId: v.string().nullable(), + updatedAt: tsArg, + expandIds: v.optional(v.array(v.string())), + }, + server: async (ctx, args) => { + const mctx = ctx as unknown as MutatorCtx; + assertOwner(mctx, args.userId); + const index = buildTreeIndex(await loadNodes(mctx)); + const plan = planMoveNode(index, { + id: args.id, + newParentId: args.newParentId, + afterSiblingId: args.afterSiblingId, + updatedAt: args.updatedAt, + expandIds: args.expandIds, + }); + if (!plan) throw new Error("moveNode: no-op or invalid"); + await commitPlan(mctx, plan); + }, +}); + export const setText = defineMutator({ args: { id: idArg, userId: userIdArg, text: v.string(), updatedAt: tsArg }, server: async (ctx, args) => { @@ -185,3 +291,103 @@ export const setText = defineMutator({ await commitPlan(mctx, plan); }, }); + +export const setCompleted = defineMutator({ + args: { + id: idArg, + userId: userIdArg, + completed: v.boolean(), + updatedAt: tsArg, + }, + server: async (ctx, args) => { + const mctx = ctx as unknown as MutatorCtx; + assertOwner(mctx, args.userId); + const index = buildTreeIndex(await loadNodes(mctx)); + const plan = planSetCompleted( + index, + args.id, + args.completed, + args.updatedAt, + ); + if (!plan) throw new Error("setCompleted: missing node"); + await commitPlan(mctx, plan); + }, +}); + +export const setCollapsed = defineMutator({ + args: { + id: idArg, + userId: userIdArg, + collapsed: v.boolean(), + updatedAt: tsArg, + }, + server: async (ctx, args) => { + const mctx = ctx as unknown as MutatorCtx; + assertOwner(mctx, args.userId); + const index = buildTreeIndex(await loadNodes(mctx)); + const plan = planSetCollapsed( + index, + args.id, + args.collapsed, + args.updatedAt, + ); + if (!plan) throw new Error("setCollapsed: missing node"); + await commitPlan(mctx, plan); + }, +}); + +export const setIsTask = defineMutator({ + args: { + id: idArg, + userId: userIdArg, + isTask: v.boolean(), + updatedAt: tsArg, + }, + server: async (ctx, args) => { + const mctx = ctx as unknown as MutatorCtx; + assertOwner(mctx, args.userId); + const index = buildTreeIndex(await loadNodes(mctx)); + const plan = planSetIsTask(index, args.id, args.isTask, args.updatedAt); + if (!plan) throw new Error("setIsTask: missing node"); + await commitPlan(mctx, plan); + }, +}); + +export const setKind = defineMutator({ + args: { + id: idArg, + userId: userIdArg, + kind: v.literal("paragraph").nullable(), + updatedAt: tsArg, + }, + server: async (ctx, args) => { + const mctx = ctx as unknown as MutatorCtx; + assertOwner(mctx, args.userId); + const index = buildTreeIndex(await loadNodes(mctx)); + const plan = planSetKind(index, args.id, args.kind, args.updatedAt); + if (!plan) throw new Error("setKind: missing node"); + await commitPlan(mctx, plan); + }, +}); + +export const setBookmarkedAt = defineMutator({ + args: { + id: idArg, + userId: userIdArg, + bookmarkedAt: v.number().nullable(), + updatedAt: tsArg, + }, + server: async (ctx, args) => { + const mctx = ctx as unknown as MutatorCtx; + assertOwner(mctx, args.userId); + const index = buildTreeIndex(await loadNodes(mctx)); + const plan = planSetBookmarkedAt( + index, + args.id, + args.bookmarkedAt, + args.updatedAt, + ); + if (!plan) throw new Error("setBookmarkedAt: missing node"); + await commitPlan(mctx, plan); + }, +}); diff --git a/src/components/OutlineEditor.tsx b/src/components/OutlineEditor.tsx index d8dfdbb5..c016ba26 100644 --- a/src/components/OutlineEditor.tsx +++ b/src/components/OutlineEditor.tsx @@ -49,6 +49,7 @@ import { setIsTask, setKind, setText, + splitNode, toggleCollapsed, toggleCompleted, } from "../data/mutations"; @@ -1472,6 +1473,20 @@ function useNodeCommands({ undefined, content.kind, ); + } else if (!caretAtEnd) { + // Mid-split: one atomic Lunora mutator (or insertSibling+setText + // inside this runStructural batch on the custom-DO path). + // Mirror rows force caretAtEnd above, so this arm is never a mirror. + newId = splitNode(idx, { + nodeId: contentId, + parentId: instance.parentId, + afterId: instanceId, + leftText: before, + rightText: after, + isTask: content.isTask, + kind: content.kind, + }); + atStart = true; } else { // New sibling beside the INSTANCE (position is local to where the row // sits). Off-flag / mirror-free, instance === content === id, so this @@ -1484,11 +1499,6 @@ function useNodeCommands({ isMirrorRow ? "" : after, content.kind, ); - if (!caretAtEnd) { - setText(contentId, before); - // Caret sits before the moved text, where the split happened. - atStart = true; - } } return { instanceId: newId, activeKey, atStart }; }, diff --git a/src/data/lunora-outline-store.ts b/src/data/lunora-outline-store.ts index 6188ba38..71b506fa 100644 --- a/src/data/lunora-outline-store.ts +++ b/src/data/lunora-outline-store.ts @@ -14,11 +14,19 @@ import { buildTreeIndex, nodeToRow, planIndent, + planInsertChildAtStart, planInsertSibling, + planMoveNode, planOutdent, planRemoveNode, planSeedIfEmpty, + planSetBookmarkedAt, + planSetCollapsed, + planSetCompleted, + planSetIsTask, + planSetKind, planSetText, + planSplitNode, rowToNode, type NodeDocLike, type OutlineNode, @@ -89,6 +97,43 @@ function bindOutlineMutators( if (plan) applyPlanToCollection(collection, plan); }, }), + insertChildAtStart: defineMutator<{ + id: string; + userId: string; + parentId: string | null; + text: string; + isTask?: boolean; + kind?: "paragraph" | null; + createdAt: number; + updatedAt: number; + }>({ + serverRef: "mutators:insertChildAtStart", + apply: (_ctx, args) => { + const index = buildTreeIndex(snapshotNodes(collection)); + const plan = planInsertChildAtStart(index, args); + if (plan) applyPlanToCollection(collection, plan); + }, + }), + splitNode: defineMutator<{ + id: string; + newId: string; + userId: string; + parentId: string | null; + afterId: string; + leftText: string; + rightText: string; + isTask?: boolean; + kind?: "paragraph" | null; + createdAt: number; + updatedAt: number; + }>({ + serverRef: "mutators:splitNode", + apply: (_ctx, args) => { + const index = buildTreeIndex(snapshotNodes(collection)); + const plan = planSplitNode(index, args); + if (plan) applyPlanToCollection(collection, plan); + }, + }), indent: defineMutator<{ id: string; userId: string; updatedAt: number }>({ serverRef: "mutators:indent", apply: (_ctx, args) => { @@ -119,6 +164,21 @@ function bindOutlineMutators( if (plan) applyPlanToCollection(collection, plan); }, }), + moveNode: defineMutator<{ + id: string; + userId: string; + newParentId: string | null; + afterSiblingId: string | null; + updatedAt: number; + expandIds?: string[]; + }>({ + serverRef: "mutators:moveNode", + apply: (_ctx, args) => { + const index = buildTreeIndex(snapshotNodes(collection)); + const plan = planMoveNode(index, args); + if (plan) applyPlanToCollection(collection, plan); + }, + }), setText: defineMutator<{ id: string; userId: string; @@ -132,6 +192,91 @@ function bindOutlineMutators( if (plan) applyPlanToCollection(collection, plan); }, }), + setCompleted: defineMutator<{ + id: string; + userId: string; + completed: boolean; + updatedAt: number; + }>({ + serverRef: "mutators:setCompleted", + apply: (_ctx, args) => { + const index = buildTreeIndex(snapshotNodes(collection)); + const plan = planSetCompleted( + index, + args.id, + args.completed, + args.updatedAt, + ); + if (plan) applyPlanToCollection(collection, plan); + }, + }), + setCollapsed: defineMutator<{ + id: string; + userId: string; + collapsed: boolean; + updatedAt: number; + }>({ + serverRef: "mutators:setCollapsed", + apply: (_ctx, args) => { + const index = buildTreeIndex(snapshotNodes(collection)); + const plan = planSetCollapsed( + index, + args.id, + args.collapsed, + args.updatedAt, + ); + if (plan) applyPlanToCollection(collection, plan); + }, + }), + setIsTask: defineMutator<{ + id: string; + userId: string; + isTask: boolean; + updatedAt: number; + }>({ + serverRef: "mutators:setIsTask", + apply: (_ctx, args) => { + const index = buildTreeIndex(snapshotNodes(collection)); + const plan = planSetIsTask( + index, + args.id, + args.isTask, + args.updatedAt, + ); + if (plan) applyPlanToCollection(collection, plan); + }, + }), + setKind: defineMutator<{ + id: string; + userId: string; + kind: "paragraph" | null; + updatedAt: number; + }>({ + serverRef: "mutators:setKind", + apply: (_ctx, args) => { + const index = buildTreeIndex(snapshotNodes(collection)); + const plan = planSetKind(index, args.id, args.kind, args.updatedAt); + if (plan) applyPlanToCollection(collection, plan); + }, + }), + setBookmarkedAt: defineMutator<{ + id: string; + userId: string; + bookmarkedAt: number | null; + updatedAt: number; + }>({ + serverRef: "mutators:setBookmarkedAt", + apply: (_ctx, args) => { + const index = buildTreeIndex(snapshotNodes(collection)); + const plan = planSetBookmarkedAt( + index, + args.id, + args.bookmarkedAt, + args.updatedAt, + ); + if (plan) applyPlanToCollection(collection, plan); + }, + }), seedIfEmpty: defineMutator<{ userId: string; createdAt: number }>({ serverRef: "mutators:seedIfEmpty", apply: (_ctx, args) => { diff --git a/src/data/mutations.ts b/src/data/mutations.ts index 5865c748..2e3cd13c 100644 --- a/src/data/mutations.ts +++ b/src/data/mutations.ts @@ -121,6 +121,26 @@ export function insertChildAtStart( id = createId(), kind: NodeKind = null, ): string { + if (isLunoraSyncEnabled()) { + const lunora = getLunoraOutlineContext(); + if (lunora) { + const t = now(); + trackLunoraMutation( + lunora.store.mutators.insertChildAtStart({ + id, + userId: lunora.userId, + parentId, + text, + isTask, + kind, + createdAt: t, + updatedAt: t, + }), + ); + return id; + } + } + const head = childrenOf(index, parentId)[0] ?? null; nodesCollection.insert( @@ -133,6 +153,64 @@ export function insertChildAtStart( return id; } +/** + * Enter mid-split: leave `leftText` on `nodeId`, insert a sibling carrying + * `rightText`. Lunora path is ONE mutator (single watermark); custom-DO path + * is insertSibling + setText inside the caller's `runStructural` batch. + */ +export function splitNode( + index: TreeIndex, + args: { + nodeId: string; + parentId: string | null; + afterId: string; + leftText: string; + rightText: string; + isTask?: boolean; + kind?: NodeKind; + newId?: string; + }, +): string { + const newId = args.newId ?? createId(); + const isTask = args.isTask ?? false; + const kind = args.kind ?? null; + + if (isLunoraSyncEnabled()) { + const lunora = getLunoraOutlineContext(); + if (lunora) { + const t = now(); + trackLunoraMutation( + lunora.store.mutators.splitNode({ + id: args.nodeId, + newId, + userId: lunora.userId, + parentId: args.parentId, + afterId: args.afterId, + leftText: args.leftText, + rightText: args.rightText, + isTask, + kind, + createdAt: t, + updatedAt: t, + }), + ); + return newId; + } + } + + insertSibling( + index, + args.parentId, + args.afterId, + isTask, + args.rightText, + kind, + newId, + ); + setText(args.nodeId, args.leftText); + return newId; +} + /** * Append a node at the end of `parentId`'s children. Used by the * first-run seed, where we don't have a live TreeIndex in scope and the @@ -427,9 +505,9 @@ function reparentIntoParentPrevSibling( : null; const uncle = index.byId.get(uncleId); - if (uncle?.collapsed) update(uncle.id, { collapsed: false }); + const expandIds = uncle?.collapsed ? [uncle.id] : []; - return moveNode(index, node.id, uncleContentId, afterSiblingId); + return moveNode(index, node.id, uncleContentId, afterSiblingId, expandIds); } /** @@ -454,12 +532,11 @@ function reparentIntoParentNextSibling( : null; if (!aunt) return false; - if (aunt.collapsed) update(aunt.id, { collapsed: false }); - // ADR 0022: a mirror aunt windows its SOURCE's children; parent into the // source (off-flag it's the id itself). Collapse stays on the instance. const auntContentId = resolveMirror ? trueSourceOf(index, aunt.id) : aunt.id; - return moveNode(index, node.id, auntContentId, null); + const expandIds = aunt.collapsed ? [aunt.id] : []; + return moveNode(index, node.id, auntContentId, null, expandIds); } /** @@ -500,13 +577,8 @@ export function moveUp( opts.resolveMirror ?? false, ); - // Swap: detach node, then re-insert it immediately before vp. A hidden - // sibling between them stays put (rides along below vp). - const rawNext = i + 1 < siblings.length ? siblings[i + 1]! : null; - if (rawNext) update(rawNext.id, { prevSiblingId: node.prevSiblingId }); - update(nodeId, { prevSiblingId: vp.prevSiblingId }); - update(vp.id, { prevSiblingId: nodeId }); - return true; + // Swap via moveNode: land immediately before vp (same parent). + return moveNode(index, nodeId, node.parentId, vp.prevSiblingId ?? null); } /** @@ -547,14 +619,9 @@ export function moveDown( ); } - // Swap: detach node, then re-insert it immediately after vn. + // Swap via moveNode: land immediately after the nearest visible sibling below. const vn = siblings[k]!; - const vnNext = k + 1 < siblings.length ? siblings[k + 1]! : null; - const rawNext = siblings[i + 1]!; // exists: there's a sibling at k > i - update(rawNext.id, { prevSiblingId: node.prevSiblingId }); - update(nodeId, { prevSiblingId: vn.id }); - if (vnNext) update(vnNext.id, { prevSiblingId: nodeId }); - return true; + return moveNode(index, nodeId, node.parentId, vn.id); } /** @@ -578,6 +645,7 @@ export function moveNode( nodeId: string, newParentId: string | null, afterSiblingId: string | null, + expandIds: readonly string[] = [], ): boolean { const node = index.byId.get(nodeId); if (!node) return false; @@ -598,11 +666,43 @@ export function moveNode( // Already exactly here? Nothing to do (same parent, same predecessor). if ( newParentId === node.parentId && - (afterSiblingId ?? null) === (node.prevSiblingId ?? null) + (afterSiblingId ?? null) === (node.prevSiblingId ?? null) && + expandIds.length === 0 ) { return false; } + if (isLunoraSyncEnabled()) { + const lunora = getLunoraOutlineContext(); + if (lunora) { + trackLunoraMutation( + lunora.store.mutators.moveNode({ + id: nodeId, + userId: lunora.userId, + newParentId, + afterSiblingId, + updatedAt: now(), + expandIds: expandIds.length ? [...expandIds] : undefined, + }), + ); + return true; + } + } + + for (const expandId of expandIds) { + update(expandId, { collapsed: false }); + } + + // Same-spot with only expands (edge move that lands where we already are but + // still needed to open the uncle) — already handled above when expandIds + // empty; with expands and same spot, skip chain surgery. + if ( + newParentId === node.parentId && + (afterSiblingId ?? null) === (node.prevSiblingId ?? null) + ) { + return expandIds.length > 0; + } + // The node currently following us under the OLD parent inherits our old prev. const oldSiblings = childrenOf(index, node.parentId); const oi = oldSiblings.findIndex((n) => n.id === nodeId); @@ -830,6 +930,20 @@ export function setText(nodeId: string, text: string) { } export function toggleCompleted(nodeId: string, completed: boolean) { + if (isLunoraSyncEnabled()) { + const lunora = getLunoraOutlineContext(); + if (lunora) { + trackLunoraMutation( + lunora.store.mutators.setCompleted({ + id: nodeId, + userId: lunora.userId, + completed, + updatedAt: now(), + }), + ); + return; + } + } update(nodeId, { completed }); } @@ -847,6 +961,20 @@ export function toggleCompleted(nodeId: string, completed: boolean) { * forgotten at a call site. */ export function setIsTask(nodeId: string, isTask: boolean) { + if (isLunoraSyncEnabled()) { + const lunora = getLunoraOutlineContext(); + if (lunora) { + trackLunoraMutation( + lunora.store.mutators.setIsTask({ + id: nodeId, + userId: lunora.userId, + isTask, + updatedAt: now(), + }), + ); + return; + } + } update(nodeId, { isTask, kind: null }); } @@ -859,10 +987,38 @@ export function setIsTask(nodeId: string, isTask: boolean) { * wrap it in `runStructural`. */ export function setKind(nodeId: string, kind: NodeKind) { + if (isLunoraSyncEnabled()) { + const lunora = getLunoraOutlineContext(); + if (lunora) { + trackLunoraMutation( + lunora.store.mutators.setKind({ + id: nodeId, + userId: lunora.userId, + kind, + updatedAt: now(), + }), + ); + return; + } + } update(nodeId, { kind, isTask: false }); } export function toggleCollapsed(nodeId: string, collapsed: boolean) { + if (isLunoraSyncEnabled()) { + const lunora = getLunoraOutlineContext(); + if (lunora) { + trackLunoraMutation( + lunora.store.mutators.setCollapsed({ + id: nodeId, + userId: lunora.userId, + collapsed, + updatedAt: now(), + }), + ); + return; + } + } update(nodeId, { collapsed }); } @@ -871,5 +1027,20 @@ export function toggleCollapsed(nodeId: string, collapsed: boolean) { * bookmarks list sorts by it) or `null` to unpin. See ADR 0011. */ export function toggleBookmark(nodeId: string, bookmarked: boolean) { + if (isLunoraSyncEnabled()) { + const lunora = getLunoraOutlineContext(); + if (lunora) { + const t = now(); + trackLunoraMutation( + lunora.store.mutators.setBookmarkedAt({ + id: nodeId, + userId: lunora.userId, + bookmarkedAt: bookmarked ? t : null, + updatedAt: t, + }), + ); + return; + } + } update(nodeId, { bookmarkedAt: bookmarked ? now() : null }); } diff --git a/src/data/outline-plans/index.ts b/src/data/outline-plans/index.ts index d48bb161..b5f9f443 100644 --- a/src/data/outline-plans/index.ts +++ b/src/data/outline-plans/index.ts @@ -10,10 +10,18 @@ export type { TreeIndex } from "../tree"; export { makeOutlineNode, planInsertSibling, + planInsertChildAtStart, planIndent, planOutdent, planRemoveNode, planSetText, + planSetCompleted, + planSetCollapsed, + planSetIsTask, + planSetKind, + planSetBookmarkedAt, + planMoveNode, + planSplitNode, applyPlan, } from "./planners"; diff --git a/src/data/outline-plans/planners.test.ts b/src/data/outline-plans/planners.test.ts index 18b863e6..862d5c1f 100644 --- a/src/data/outline-plans/planners.test.ts +++ b/src/data/outline-plans/planners.test.ts @@ -8,10 +8,18 @@ import { makeOutlineNode, orderSiblings, planIndent, + planInsertChildAtStart, planInsertSibling, + planMoveNode, planOutdent, planRemoveNode, + planSetBookmarkedAt, + planSetCollapsed, + planSetCompleted, + planSetIsTask, + planSetKind, planSetText, + planSplitNode, type OutlineNode, } from "./index"; @@ -182,3 +190,176 @@ describe("sibling-chain invariant (ADR 0009) via outline-plans", () => { ]); }); }); + +describe("planInsertChildAtStart", () => { + it("prepends under parent and repoints the old head", () => { + let nodes = seedFlat(["p"]); + let t = 10; + { + const index = buildTreeIndex(nodes); + const plan = planInsertSibling(index, { + id: "c1", + userId: USER, + parentId: "p", + afterId: null, + text: "c1", + createdAt: t, + updatedAt: t, + }); + nodes = applyPlan(nodes, plan!); + t += 1; + } + { + const index = buildTreeIndex(nodes); + const plan = planInsertChildAtStart(index, { + id: "c0", + userId: USER, + parentId: "p", + text: "c0", + createdAt: t, + updatedAt: t, + }); + expect(plan).not.toBeNull(); + nodes = applyPlan(nodes, plan!); + } + expect(assertChainOk(nodes, "p")).toEqual(["c0", "c1"]); + expect(nodes.find((n) => n.id === "c1")!.prevSiblingId).toBe("c0"); + }); +}); + +describe("field planners (kind exclusivity)", () => { + it("planSetIsTask clears kind", () => { + let nodes = [ + makeOutlineNode({ + id: "a", + userId: USER, + kind: "paragraph", + isTask: false, + text: "a", + }), + ]; + const plan = planSetIsTask(buildTreeIndex(nodes), "a", true, 1); + expect(plan).not.toBeNull(); + nodes = applyPlan(nodes, plan!); + expect(nodes[0]!.isTask).toBe(true); + expect(nodes[0]!.kind).toBeNull(); + }); + + it("planSetKind clears isTask", () => { + let nodes = [ + makeOutlineNode({ + id: "a", + userId: USER, + isTask: true, + text: "a", + }), + ]; + const plan = planSetKind(buildTreeIndex(nodes), "a", "paragraph", 1); + expect(plan).not.toBeNull(); + nodes = applyPlan(nodes, plan!); + expect(nodes[0]!.kind).toBe("paragraph"); + expect(nodes[0]!.isTask).toBe(false); + }); + + it("planSetCompleted / collapsed / bookmarkedAt patch fields", () => { + let nodes = seedFlat(["a"]); + nodes = applyPlan( + nodes, + planSetCompleted(buildTreeIndex(nodes), "a", true, 1)!, + ); + expect(nodes[0]!.completed).toBe(true); + nodes = applyPlan( + nodes, + planSetCollapsed(buildTreeIndex(nodes), "a", true, 2)!, + ); + expect(nodes[0]!.collapsed).toBe(true); + nodes = applyPlan( + nodes, + planSetBookmarkedAt(buildTreeIndex(nodes), "a", 99, 3)!, + ); + expect(nodes[0]!.bookmarkedAt).toBe(99); + }); +}); + +describe("planMoveNode", () => { + it("swaps siblings (move up before previous)", () => { + let nodes = seedFlat(["a", "b", "c"]); + const plan = planMoveNode(buildTreeIndex(nodes), { + id: "c", + newParentId: null, + afterSiblingId: "a", + updatedAt: 1, + }); + expect(plan).not.toBeNull(); + nodes = applyPlan(nodes, plan!); + expect(assertChainOk(nodes, null)).toEqual(["a", "c", "b"]); + }); + + it("reparents as first child and can expand destination", () => { + let nodes = seedFlat(["a", "b"]); + nodes = nodes.map((n) => (n.id === "a" ? { ...n, collapsed: true } : n)); + { + const plan = planInsertSibling(buildTreeIndex(nodes), { + id: "a1", + userId: USER, + parentId: "a", + afterId: null, + text: "a1", + createdAt: 1, + updatedAt: 1, + }); + nodes = applyPlan(nodes, plan!); + } + const plan = planMoveNode(buildTreeIndex(nodes), { + id: "b", + newParentId: "a", + afterSiblingId: null, + updatedAt: 2, + expandIds: ["a"], + }); + expect(plan).not.toBeNull(); + nodes = applyPlan(nodes, plan!); + expect(assertChainOk(nodes, null)).toEqual(["a"]); + expect(assertChainOk(nodes, "a")).toEqual(["b", "a1"]); + expect(nodes.find((n) => n.id === "a")!.collapsed).toBe(false); + }); + + it("no-ops when already at destination without expands", () => { + const nodes = seedFlat(["a", "b"]); + const plan = planMoveNode(buildTreeIndex(nodes), { + id: "b", + newParentId: null, + afterSiblingId: "a", + updatedAt: 1, + }); + expect(plan).toBeNull(); + }); +}); + +describe("planSplitNode", () => { + it("patches left text and inserts right sibling atomically", () => { + let nodes = seedFlat(["a", "b"]); + nodes = nodes.map((n) => (n.id === "a" ? { ...n, text: "alphabravo" } : n)); + const plan = planSplitNode(buildTreeIndex(nodes), { + id: "a", + newId: "a2", + userId: USER, + parentId: null, + afterId: "a", + leftText: "alpha", + rightText: "bravo", + createdAt: 5, + updatedAt: 5, + }); + expect(plan).not.toBeNull(); + expect(plan!.inserts).toHaveLength(1); + expect( + plan!.patches.some((p) => p.id === "a" && p.fields.text === "alpha"), + ).toBe(true); + nodes = applyPlan(nodes, plan!); + expect(assertChainOk(nodes, null)).toEqual(["a", "a2", "b"]); + expect(nodes.find((n) => n.id === "a")!.text).toBe("alpha"); + expect(nodes.find((n) => n.id === "a2")!.text).toBe("bravo"); + expect(nodes.find((n) => n.id === "b")!.prevSiblingId).toBe("a2"); + }); +}); diff --git a/src/data/outline-plans/planners.ts b/src/data/outline-plans/planners.ts index c4cecab6..0e688f97 100644 --- a/src/data/outline-plans/planners.ts +++ b/src/data/outline-plans/planners.ts @@ -206,6 +206,27 @@ export function planRemoveNode( return plan; } +/** + * Insert as FIRST child of `parentId` (push current head down). Port of + * Dotflowy `insertChildAtStart` / worker `planAddNode` position `'first'`. + * Same chain surgery as `planInsertSibling` with `afterId: null`. + */ +export function planInsertChildAtStart( + index: TreeIndex, + args: { + id: string; + userId: string; + parentId: string | null; + text: string; + isTask?: boolean; + kind?: "paragraph" | null; + createdAt: number; + updatedAt: number; + }, +): OutlinePlan | null { + return planInsertSibling(index, { ...args, afterId: null }); +} + /** Field-only text update. */ export function planSetText( index: TreeIndex, @@ -219,6 +240,218 @@ export function planSetText( return plan; } +export function planSetCompleted( + index: TreeIndex, + nodeId: string, + completed: boolean, + updatedAt: number, +): OutlinePlan | null { + if (!index.byId.has(nodeId)) return null; + const plan = emptyPlan(); + plan.patches.push({ id: nodeId, fields: { completed, updatedAt } }); + return plan; +} + +export function planSetCollapsed( + index: TreeIndex, + nodeId: string, + collapsed: boolean, + updatedAt: number, +): OutlinePlan | null { + if (!index.byId.has(nodeId)) return null; + const plan = emptyPlan(); + plan.patches.push({ id: nodeId, fields: { collapsed, updatedAt } }); + return plan; +} + +/** + * Make task / plain bullet. Clears `kind` (ADR 0045 exclusivity — mirrors + * `setIsTask` / worker `planUpdateNode`). + */ +export function planSetIsTask( + index: TreeIndex, + nodeId: string, + isTask: boolean, + updatedAt: number, +): OutlinePlan | null { + if (!index.byId.has(nodeId)) return null; + const plan = emptyPlan(); + plan.patches.push({ id: nodeId, fields: { isTask, kind: null, updatedAt } }); + return plan; +} + +/** + * Paragraph ↔ bullet. Always clears `isTask` (ADR 0045 — mirrors `setKind`). + */ +export function planSetKind( + index: TreeIndex, + nodeId: string, + kind: "paragraph" | null, + updatedAt: number, +): OutlinePlan | null { + if (!index.byId.has(nodeId)) return null; + const plan = emptyPlan(); + plan.patches.push({ + id: nodeId, + fields: { kind, isTask: false, updatedAt }, + }); + return plan; +} + +export function planSetBookmarkedAt( + index: TreeIndex, + nodeId: string, + bookmarkedAt: number | null, + updatedAt: number, +): OutlinePlan | null { + if (!index.byId.has(nodeId)) return null; + const plan = emptyPlan(); + plan.patches.push({ id: nodeId, fields: { bookmarkedAt, updatedAt } }); + return plan; +} + +/** + * Reparent + sibling-chain splice (port of Dotflowy `moveNode` / + * worker `applyMoveInPlace`). Optional `expandIds` uncollapse uncle/aunt on + * edge keyboard moves. + */ +export function planMoveNode( + index: TreeIndex, + args: { + id: string; + newParentId: string | null; + afterSiblingId: string | null; + updatedAt: number; + expandIds?: readonly string[]; + }, +): OutlinePlan | null { + const node = index.byId.get(args.id); + if (!node) return null; + if (args.afterSiblingId === args.id || args.newParentId === args.id) + return null; + + if (args.newParentId !== null) { + let cursor = index.byId.get(args.newParentId); + let guard = index.byId.size + 1; + while (cursor && guard-- > 0) { + if (cursor.id === args.id) return null; + cursor = cursor.parentId ? index.byId.get(cursor.parentId) : undefined; + } + } + + if ( + args.newParentId === node.parentId && + (args.afterSiblingId ?? null) === (node.prevSiblingId ?? null) + ) { + if (!args.expandIds?.length) return null; + const plan = emptyPlan(); + for (const expandId of args.expandIds) { + if (index.byId.has(expandId)) { + plan.patches.push({ + id: expandId, + fields: { collapsed: false, updatedAt: args.updatedAt }, + }); + } + } + return plan.patches.length ? plan : null; + } + + const oldSiblings = childrenOf(index, node.parentId); + const oi = oldSiblings.findIndex((n) => n.id === args.id); + const oldNext = + oi !== -1 && oi + 1 < oldSiblings.length ? oldSiblings[oi + 1]! : null; + + const newSiblings = childrenOf(index, args.newParentId); + let newNext: { id: string } | null = null; + if (args.afterSiblingId === null) { + newNext = newSiblings[0] ?? null; + } else { + const ni = newSiblings.findIndex((n) => n.id === args.afterSiblingId); + newNext = + ni !== -1 && ni + 1 < newSiblings.length ? newSiblings[ni + 1]! : null; + } + + const plan = emptyPlan(); + if (args.expandIds) { + for (const expandId of args.expandIds) { + if (index.byId.has(expandId)) { + plan.patches.push({ + id: expandId, + fields: { collapsed: false, updatedAt: args.updatedAt }, + }); + } + } + } + if (oldNext) { + plan.patches.push({ + id: oldNext.id, + fields: { + prevSiblingId: node.prevSiblingId, + updatedAt: args.updatedAt, + }, + }); + } + plan.patches.push({ + id: args.id, + fields: { + parentId: args.newParentId, + prevSiblingId: args.afterSiblingId, + updatedAt: args.updatedAt, + }, + }); + if (newNext && newNext.id !== args.id) { + plan.patches.push({ + id: newNext.id, + fields: { prevSiblingId: args.id, updatedAt: args.updatedAt }, + }); + } + return plan; +} + +/** + * Enter mid-split: setText(left) + insertSibling(right) in ONE plan so Lunora + * commits them under a single watermark (avoids two mutator round-trips). + */ +export function planSplitNode( + index: TreeIndex, + args: { + id: string; + userId: string; + parentId: string | null; + afterId: string; + newId: string; + leftText: string; + rightText: string; + isTask?: boolean; + kind?: "paragraph" | null; + createdAt: number; + updatedAt: number; + }, +): OutlinePlan | null { + if (!index.byId.has(args.id)) return null; + const insert = planInsertSibling(index, { + id: args.newId, + userId: args.userId, + parentId: args.parentId, + afterId: args.afterId, + text: args.rightText, + isTask: args.isTask, + kind: args.kind, + createdAt: args.createdAt, + updatedAt: args.updatedAt, + }); + if (!insert) return null; + + const plan = emptyPlan(); + plan.inserts.push(...insert.inserts); + plan.patches.push(...insert.patches); + plan.patches.push({ + id: args.id, + fields: { text: args.leftText, updatedAt: args.updatedAt }, + }); + return plan; +} + /** Apply a plan to an in-memory node list (for unit tests / working copies). */ export function applyPlan( nodes: OutlineNode[], From 4609a05cf774182b2e4c6874ec525e941415fa47 Mon Sep 17 00:00:00 2001 From: Cameron Pak Date: Thu, 23 Jul 2026 13:26:49 -0500 Subject: [PATCH 23/59] feat(lunora): restoreNodes + mirrorNode mutators for flag-ON history/mirrors Route undo/redo through one restoreNodes watermark and /mirror through planMirrorNode, closing two high-leverage Lunora dogfood gaps. Co-authored-by: Cursor --- HANDOFF.md | 34 +++--- lunora/_generated/functions.ts | 4 +- lunora/mutators.ts | 83 ++++++++++++- src/components/history-restore.tsx | 72 +++++++++++ src/data/history.ts | 6 + src/data/lunora-outline-store.ts | 27 +++++ src/data/mutations.ts | 26 +++- src/data/outline-plans/index.ts | 3 + src/data/outline-plans/planners.test.ts | 152 ++++++++++++++++++++++++ src/data/outline-plans/planners.ts | 117 +++++++++++++++++- src/data/outline-plans/types.ts | 1 + 11 files changed, 499 insertions(+), 26 deletions(-) diff --git a/HANDOFF.md b/HANDOFF.md index 8a914a42..7882a4c3 100644 --- a/HANDOFF.md +++ b/HANDOFF.md @@ -28,16 +28,22 @@ location.reload() # Or open http://localhost:3000/?lunora-sync=on ``` -Expect: empty Lunora shard seeds demo bullets via `seedIfEmpty`; Enter / Tab / Shift+Tab / Backspace / typing use Lunora mutators + watermark checkpoints; Network shows `/_lunora/*` (not `/api/sync` for outline). Second tab same user → live converge. +Expect: empty Lunora shard seeds demo bullets via `seedIfEmpty`; Enter / Tab / Shift+Tab / Backspace / typing / Cmd+Z / `/mirror` use Lunora mutators + watermark checkpoints; Network shows `/_lunora/*` (not `/api/sync` for outline). Second tab same user → live converge. ## What landed (this slice) -### Mutator/planner parity widen (flag ON) +### History restore + mirrors (flag ON) -Dogfood surface expanded beyond the original 5 ops. Shared pure planners in -`src/data/outline-plans/`; server `defineMutator` in `lunora/mutators.ts`; -client `@lunora/db/mutators` in `src/data/lunora-outline-store.ts`; -`mutations.ts` branches when `isLunoraSyncEnabled()`. +| Mutator | Planner | Notes | +| -------------- | ------------------ | --------------------------------------------------------------------- | +| `restoreNodes` | `planRestoreNodes` | Full target snapshot → one watermark; `runHistoryRestore` routes here | +| `mirrorNode` | `planMirrorNode` | `/mirror` + `mutations.mirrorNode`; flatten + cycle + trueSource dest | + +- `commitPlan` / `applyPlan` order: **deletes → patches → inserts** (restore-safe). +- Large undo: still **one** mutator (modal while awaiting `isPersisted`); no second history system. +- `removeNode` already deletes mirror instances (no cascade to source). + +### Prior mutator/planner parity (still true) | Mutator | Planner | Notes | | ----------------------------------- | ------------------------ | ------------------------------------------------------- | @@ -46,12 +52,7 @@ client `@lunora/db/mutators` in `src/data/lunora-outline-store.ts`; | `splitNode` | `planSplitNode` | Enter mid-split — ONE watermark (setText+insertSibling) | | `indent` / `outdent` / `removeNode` | prior | prior | | `moveNode` | `planMoveNode` | Cmd+Shift+↑/↓ via moveUp/moveDown → moveNode | -| `setText` | `planSetText` | prior | -| `setCompleted` | `planSetCompleted` | field toggle | -| `setCollapsed` | `planSetCollapsed` | field toggle | -| `setIsTask` | `planSetIsTask` | clears `kind` (ADR 0045) | -| `setKind` | `planSetKind` | clears `isTask` (ADR 0045) | -| `setBookmarkedAt` | `planSetBookmarkedAt` | bookmark pin/unpin | +| `setText` / field toggles | matching `planSet*` | completed/collapsed/isTask/kind/bookmarkedAt | | `seedIfEmpty` / `hello` | prior | prior | ### Flag-swap architecture @@ -65,7 +66,7 @@ Flag ON: ↓ subscribeChanges tree-store.resetTreeFromNodes (ADR 0004 feed) ↑ - mutations (insert/indent/outdent/remove/move/split/field toggles) → Lunora mutators + mutations (+ mirror) / runHistoryRestore → Lunora mutators runStructural → body only (watermark hold is checkpoints, not waitForSeq) ``` @@ -77,9 +78,10 @@ Flag ON: | `src/data/lunora-bridge.ts` | rows → TreeIndex / Node | | `src/data/lunora-sync.ts` | start/stop, feed tree-store, seedIfEmpty | | `src/components/lunora-sync-host.tsx` | AuthGate child; LunoraProvider when flag ON | +| `src/components/history-restore.tsx` | flag ON → `restoreNodes` mutator | | `src/data/collection.ts` | flag ON → skip `/api/sync` socket | | `src/data/structural.ts` | flag ON → no `{ops}` / waitForSeq | -| `src/data/mutations.ts` | Lunora mutator surface (insert/move/split/fields) | +| `src/data/mutations.ts` | Lunora mutator surface (+ mirror) | | `src/data/outline-plans/` | shared pure planners + unit tests | | `lunora/mutators.ts` | server `defineMutator` twin | @@ -97,7 +99,7 @@ Flag ON: ## Known gaps (flag ON) -- **Not ported:** multi-select batches, daily get-or-create, mirrors (`resolveMirror` path), drag-specific UX (moveNode mutator covers the fuse), OPML, history restore, full plugin structural paths +- **Not ported:** multi-select batches, daily get-or-create, indent/move `resolveMirror` when mirrors flag ON, drag-specific UX (moveNode covers fuse), OPML, full plugin structural paths - **e2e** still on old wire (`seedOutline`); flag must stay OFF for Playwright - **KV** side-collections still custom DO (phase 2b) - **No data migrate** from UserOutlineDO → Lunora shard yet (flag ON = empty/new Lunora outline) @@ -115,7 +117,7 @@ bun run test # includes flags + lunora-bridge + outline-plans 1. Lunora-aware e2e fixture (mock `/_lunora` or Miniflare) — keep `seedOutline` until then. 2. KV phase 2b; MCP remount; snapshot migrate; delete `UserOutlineDO` custom sync. -3. Multi-select / daily / mirrors when cutover nears. +3. Multi-select / daily / `resolveMirror` indent when cutover nears. 4. Green gates → PR; **delete this `HANDOFF.md` in the shipping PR.** ## Note diff --git a/lunora/_generated/functions.ts b/lunora/_generated/functions.ts index cfa91914..f60e4c24 100644 --- a/lunora/_generated/functions.ts +++ b/lunora/_generated/functions.ts @@ -36,9 +36,11 @@ export const LUNORA_FUNCTIONS: Record = { "mutators:indent": lunora_mutators_0.indent as unknown as RegisteredLunoraFunction, "mutators:insertChildAtStart": lunora_mutators_0.insertChildAtStart as unknown as RegisteredLunoraFunction, "mutators:insertSibling": lunora_mutators_0.insertSibling as unknown as RegisteredLunoraFunction, + "mutators:mirrorNode": lunora_mutators_0.mirrorNode as unknown as RegisteredLunoraFunction, "mutators:moveNode": lunora_mutators_0.moveNode as unknown as RegisteredLunoraFunction, "mutators:outdent": lunora_mutators_0.outdent as unknown as RegisteredLunoraFunction, "mutators:removeNode": lunora_mutators_0.removeNode as unknown as RegisteredLunoraFunction, + "mutators:restoreNodes": lunora_mutators_0.restoreNodes as unknown as RegisteredLunoraFunction, "mutators:seedIfEmpty": lunora_mutators_0.seedIfEmpty as unknown as RegisteredLunoraFunction, "mutators:setBookmarkedAt": lunora_mutators_0.setBookmarkedAt as unknown as RegisteredLunoraFunction, "mutators:setCollapsed": lunora_mutators_0.setCollapsed as unknown as RegisteredLunoraFunction, @@ -64,7 +66,7 @@ export const LUNORA_SHAPES: Record = { * ShardDO's `isCustomMutator` override routes through the client-watermark push * protocol (`x-lunora-client-id`/`x-lunora-client-seq` ordering). */ -export const LUNORA_MUTATOR_PATHS: ReadonlySet = new Set(["mutators:hello", "mutators:indent", "mutators:insertChildAtStart", "mutators:insertSibling", "mutators:moveNode", "mutators:outdent", "mutators:removeNode", "mutators:seedIfEmpty", "mutators:setBookmarkedAt", "mutators:setCollapsed", "mutators:setCompleted", "mutators:setIsTask", "mutators:setKind", "mutators:setText", "mutators:splitNode"]); +export const LUNORA_MUTATOR_PATHS: ReadonlySet = new Set(["mutators:hello", "mutators:indent", "mutators:insertChildAtStart", "mutators:insertSibling", "mutators:mirrorNode", "mutators:moveNode", "mutators:outdent", "mutators:removeNode", "mutators:restoreNodes", "mutators:seedIfEmpty", "mutators:setBookmarkedAt", "mutators:setCollapsed", "mutators:setCompleted", "mutators:setIsTask", "mutators:setKind", "mutators:setText", "mutators:splitNode"]); /** * Connection-lifecycle manifest: the function paths the generated ShardDO diff --git a/lunora/mutators.ts b/lunora/mutators.ts index 9ac8f205..fb6dcd5c 100644 --- a/lunora/mutators.ts +++ b/lunora/mutators.ts @@ -9,9 +9,11 @@ import { planIndent, planInsertChildAtStart, planInsertSibling, + planMirrorNode, planMoveNode, planOutdent, planRemoveNode, + planRestoreNodes, planSeedIfEmpty, planSetBookmarkedAt, planSetCollapsed, @@ -55,10 +57,10 @@ function assertOwner(ctx: MutatorCtx, userId: string): void { } async function commitPlan(ctx: MutatorCtx, plan: OutlinePlan): Promise { - for (const node of plan.inserts) { - await ctx.db.insert("nodes", nodeToInsertFields(node), { - clientId: node.id, - }); + // deletes → patches → inserts: restore-safe (a deleted id must be gone + // before a same-batch insert could reclaim it) and fine for structural ops. + for (const id of plan.deletes) { + await ctx.db.delete(id as Id<"nodes">); } for (const patch of plan.patches) { @@ -68,8 +70,10 @@ async function commitPlan(ctx: MutatorCtx, plan: OutlinePlan): Promise { ); } - for (const id of plan.deletes) { - await ctx.db.delete(id as Id<"nodes">); + for (const node of plan.inserts) { + await ctx.db.insert("nodes", nodeToInsertFields(node), { + clientId: node.id, + }); } } @@ -391,3 +395,70 @@ export const setBookmarkedAt = defineMutator({ await commitPlan(mctx, plan); }, }); + +const nodeSnapshotArg = v.object({ + id: idArg, + userId: userIdArg, + parentId: v.string().nullable(), + prevSiblingId: v.string().nullable(), + text: v.string(), + isTask: v.boolean(), + completed: v.boolean(), + collapsed: v.boolean(), + bookmarkedAt: v.number().nullable(), + mirrorOf: v.string().nullable(), + createdAt: tsArg, + updatedAt: tsArg, + origin: v.string().nullable(), + kind: v.literal("paragraph").nullable(), +}); + +/** + * Undo/redo snapshot restore — one DO transaction / watermark for the whole + * diff (deletes + upserts), even when large. Client sends the target outline + * subset (full snapshots for touched + surviving ids via planRestoreNodes). + */ +export const restoreNodes = defineMutator({ + args: { + userId: userIdArg, + /** Full target outline after restore (history snapshot + userId). */ + nodes: v.array(nodeSnapshotArg), + }, + server: async (ctx, args) => { + const mctx = ctx as unknown as MutatorCtx; + assertOwner(mctx, args.userId); + const current = await loadNodes(mctx); + const target: OutlineNode[] = args.nodes.map((n) => ({ + ...n, + kind: n.kind === "paragraph" ? "paragraph" : null, + })); + const plan = planRestoreNodes(current, target); + await commitPlan(mctx, plan); + return { + deletes: plan.deletes.length, + inserts: plan.inserts.length, + patches: plan.patches.length, + }; + }, +}); + +/** `/mirror` — last-child mirror of source under targetParentId (ADR 0022). */ +export const mirrorNode = defineMutator({ + args: { + id: idArg, + userId: userIdArg, + sourceId: idArg, + targetParentId: v.string().nullable(), + createdAt: tsArg, + updatedAt: tsArg, + }, + server: async (ctx, args) => { + const mctx = ctx as unknown as MutatorCtx; + assertOwner(mctx, args.userId); + const index = buildTreeIndex(await loadNodes(mctx)); + const plan = planMirrorNode(index, args); + if (!plan) throw new Error("mirrorNode: missing source/target or cycle"); + await commitPlan(mctx, plan); + return { id: args.id }; + }, +}); diff --git a/src/components/history-restore.tsx b/src/components/history-restore.tsx index 00a2d362..c7f5b58d 100644 --- a/src/components/history-restore.tsx +++ b/src/components/history-restore.tsx @@ -2,12 +2,19 @@ import { Loader2Icon } from "lucide-react"; import { useEffect, useState } from "react"; import { toast } from "sonner"; +import type { OutlineNode } from "../data/outline-plans"; + +import { isLunoraSyncEnabled } from "../data/flags"; import { RESTORE_SLICE_OPS, redo, undo, type RestorePlan, } from "../data/history"; +import { + getLunoraOutlineContext, + trackLunoraMutation, +} from "../data/lunora-sync"; import { runStructural, runStructuralSliced } from "../data/structural"; import { getTreeIndex } from "../data/tree-store"; import { @@ -28,6 +35,10 @@ import { * paths keep the wire guarantees: ONE batch POST → one DO `applyBatch` → one * echo-hold. * + * Lunora flag ON: one `restoreNodes` mutator (full target snapshot → server + * re-diffs via `planRestoreNodes`) — single watermark even for large diffs; + * modal still shows while awaiting persistence. + * * `setPendingFocus` is only honored on the sync path: during a sliced restore * the modal owns focus, and by the time the batch commits the tree-change * effect window `FocusPass` consumes has passed — a pending focus set then @@ -41,6 +52,29 @@ export function runHistoryRestore( ): void { const plan = (kind === "undo" ? undo : redo)(getTreeIndex(), focusId); if (!plan) return; + + if (isLunoraSyncEnabled()) { + const lunora = getLunoraOutlineContext(); + if (lunora) { + const nodes: OutlineNode[] = plan.targetNodes.map((n) => ({ + ...n, + userId: lunora.userId, + })); + if (plan.opCount < RESTORE_SLICE_OPS) { + trackLunoraMutation( + lunora.store.mutators.restoreNodes({ + userId: lunora.userId, + nodes, + }), + ); + if (plan.focusId) setPendingFocus(plan.focusId); + return; + } + void runLunoraRestore(kind, plan, nodes, lunora.userId); + return; + } + } + if (plan.opCount < RESTORE_SLICE_OPS) { runStructural(() => { for (const slice of plan.slices) slice(); @@ -51,6 +85,44 @@ export function runHistoryRestore( void runSliced(kind, plan); } +async function runLunoraRestore( + kind: "undo" | "redo", + plan: RestorePlan, + nodes: OutlineNode[], + userId: string, +) { + const lunora = getLunoraOutlineContext(); + if (!lunora) { + plan.revert(); + return; + } + const label = kind === "undo" ? "Undoing" : "Redoing"; + openRestoreProgress?.({ + kind: "restoring", + label, + total: plan.opCount, + applied: 0, + }); + await new Promise((resolve) => setTimeout(resolve, 0)); + try { + const tx = lunora.store.mutators.restoreNodes({ userId, nodes }); + // Optimistic apply already flipped the collection; show full progress. + openRestoreProgress?.({ + kind: "restoring", + label, + total: plan.opCount, + applied: plan.opCount, + }); + await tx.isPersisted.promise; + openRestoreProgress?.({ kind: "closed" }); + toast.success(kind === "undo" ? "Undo complete." : "Redo complete."); + } catch { + plan.revert(); + openRestoreProgress?.({ kind: "closed" }); + toast.error(`${label} failed. Nothing was changed.`); + } +} + async function runSliced(kind: "undo" | "redo", plan: RestorePlan) { const label = kind === "undo" ? "Undoing" : "Redoing"; const show = (applied: number) => diff --git a/src/data/history.ts b/src/data/history.ts index b2910dc7..d1ad3bc4 100644 --- a/src/data/history.ts +++ b/src/data/history.ts @@ -107,10 +107,15 @@ export const RESTORE_SLICE_OPS = 500; * slice, in order, inside ONE transaction -- a `runStructural` body for the * small case, one `runStructuralSliced` call for the big one -- or call * `revert` if the apply failed and rolled back. + * + * When Lunora sync is ON, prefer `targetNodes` + `restoreNodes` mutator (one + * watermark) over `slices` writing `nodesCollection`. */ export interface RestorePlan { /** Total collection writes the restore will make. */ opCount: number; + /** Full target outline (history snapshot) — Lunora `restoreNodes` input. */ + targetNodes: readonly Node[]; /** Apply closures in order; each makes at most RESTORE_SLICE_OPS writes. */ slices: ReadonlyArray<() => void>; /** Writes applied so far -- the sliced path's progress read. */ @@ -189,6 +194,7 @@ function planRestore( return { opCount: deletes.length + upserts.length, + targetNodes: entry.nodes, slices, applied: () => applied, // Only focus if the focused node still exists in the restored state. The focus diff --git a/src/data/lunora-outline-store.ts b/src/data/lunora-outline-store.ts index 71b506fa..2a48b87f 100644 --- a/src/data/lunora-outline-store.ts +++ b/src/data/lunora-outline-store.ts @@ -16,9 +16,11 @@ import { planIndent, planInsertChildAtStart, planInsertSibling, + planMirrorNode, planMoveNode, planOutdent, planRemoveNode, + planRestoreNodes, planSeedIfEmpty, planSetBookmarkedAt, planSetCollapsed, @@ -277,6 +279,31 @@ function bindOutlineMutators( if (plan) applyPlanToCollection(collection, plan); }, }), + restoreNodes: defineMutator<{ + userId: string; + nodes: OutlineNode[]; + }>({ + serverRef: "mutators:restoreNodes", + apply: (_ctx, args) => { + const plan = planRestoreNodes(snapshotNodes(collection), args.nodes); + applyPlanToCollection(collection, plan); + }, + }), + mirrorNode: defineMutator<{ + id: string; + userId: string; + sourceId: string; + targetParentId: string | null; + createdAt: number; + updatedAt: number; + }>({ + serverRef: "mutators:mirrorNode", + apply: (_ctx, args) => { + const index = buildTreeIndex(snapshotNodes(collection)); + const plan = planMirrorNode(index, args); + if (plan) applyPlanToCollection(collection, plan); + }, + }), seedIfEmpty: defineMutator<{ userId: string; createdAt: number }>({ serverRef: "mutators:seedIfEmpty", apply: (_ctx, args) => { diff --git a/src/data/mutations.ts b/src/data/mutations.ts index 2e3cd13c..b0bc4152 100644 --- a/src/data/mutations.ts +++ b/src/data/mutations.ts @@ -256,9 +256,33 @@ export function mirrorNode( const trueSourceId = trueSourceOf(index, sourceId); if (wouldMirrorCycle(index, trueSourceId, targetId)) return null; + const id = createId(); + + if (isLunoraSyncEnabled()) { + const lunora = getLunoraOutlineContext(); + if (lunora) { + // Resolve destination + cycle on the server planner (trueSourceOf parent). + // Pre-check above matches the legacy client path for early no-op. + const t = now(); + const resolvedParent = + targetId !== null ? trueSourceOf(index, targetId) : null; + if (wouldMirrorCycle(index, trueSourceId, resolvedParent)) return null; + trackLunoraMutation( + lunora.store.mutators.mirrorNode({ + id, + userId: lunora.userId, + sourceId, + targetParentId: targetId, + createdAt: t, + updatedAt: t, + }), + ); + return id; + } + } + const siblings = childrenOf(index, targetId); const after = siblings.length ? siblings[siblings.length - 1]!.id : null; - const id = createId(); nodesCollection.insert( makeNode({ id, diff --git a/src/data/outline-plans/index.ts b/src/data/outline-plans/index.ts index b5f9f443..8326b021 100644 --- a/src/data/outline-plans/index.ts +++ b/src/data/outline-plans/index.ts @@ -22,6 +22,9 @@ export { planSetBookmarkedAt, planMoveNode, planSplitNode, + sameNodeFields, + planRestoreNodes, + planMirrorNode, applyPlan, } from "./planners"; diff --git a/src/data/outline-plans/planners.test.ts b/src/data/outline-plans/planners.test.ts index 862d5c1f..dd63cb53 100644 --- a/src/data/outline-plans/planners.test.ts +++ b/src/data/outline-plans/planners.test.ts @@ -10,9 +10,11 @@ import { planIndent, planInsertChildAtStart, planInsertSibling, + planMirrorNode, planMoveNode, planOutdent, planRemoveNode, + planRestoreNodes, planSetBookmarkedAt, planSetCollapsed, planSetCompleted, @@ -363,3 +365,153 @@ describe("planSplitNode", () => { expect(nodes.find((n) => n.id === "b")!.prevSiblingId).toBe("a2"); }); }); + +describe("planRestoreNodes", () => { + it("deletes added, inserts removed, patches changed", () => { + const current = seedFlat(["a", "b", "c"]); + const target = seedFlat(["a", "b"]).map((n) => + n.id === "a" ? { ...n, text: "alpha" } : n, + ); + target.push( + makeOutlineNode({ + id: "d", + userId: USER, + parentId: null, + prevSiblingId: "b", + text: "d", + createdAt: 9, + updatedAt: 9, + }), + ); + const plan = planRestoreNodes(current, target); + expect(plan.deletes).toEqual(["c"]); + expect(plan.inserts.map((n) => n.id)).toEqual(["d"]); + expect(plan.patches).toEqual([ + expect.objectContaining({ + id: "a", + fields: expect.objectContaining({ text: "alpha" }), + }), + ]); + const next = applyPlan(current, plan); + expect(assertChainOk(next, null)).toEqual(["a", "b", "d"]); + expect(next.find((n) => n.id === "a")!.text).toBe("alpha"); + }); + + it("no-ops when current already matches target", () => { + const nodes = seedFlat(["a", "b"]); + const plan = planRestoreNodes( + nodes, + nodes.map((n) => ({ ...n })), + ); + expect(plan.deletes).toEqual([]); + expect(plan.inserts).toEqual([]); + expect(plan.patches).toEqual([]); + }); +}); + +describe("planMirrorNode", () => { + it("appends a flattened mirror as last child", () => { + let nodes = seedFlat(["src", "dest"]); + nodes = [ + ...nodes, + makeOutlineNode({ + id: "child", + userId: USER, + parentId: "src", + prevSiblingId: null, + text: "child", + createdAt: 1, + updatedAt: 1, + }), + ]; + const plan = planMirrorNode(buildTreeIndex(nodes), { + id: "m1", + userId: USER, + sourceId: "src", + targetParentId: "dest", + createdAt: 2, + updatedAt: 2, + }); + expect(plan).not.toBeNull(); + expect(plan!.inserts).toHaveLength(1); + expect(plan!.inserts[0]!.mirrorOf).toBe("src"); + expect(plan!.inserts[0]!.parentId).toBe("dest"); + nodes = applyPlan(nodes, plan!); + expect(assertChainOk(nodes, "dest")).toEqual(["m1"]); + }); + + it("flattens mirror-of-mirror to the true source", () => { + let nodes = seedFlat(["src", "dest"]); + { + const plan = planMirrorNode(buildTreeIndex(nodes), { + id: "m1", + userId: USER, + sourceId: "src", + targetParentId: null, + createdAt: 1, + updatedAt: 1, + }); + nodes = applyPlan(nodes, plan!); + } + const plan = planMirrorNode(buildTreeIndex(nodes), { + id: "m2", + userId: USER, + sourceId: "m1", + targetParentId: "dest", + createdAt: 2, + updatedAt: 2, + }); + expect(plan).not.toBeNull(); + expect(plan!.inserts[0]!.mirrorOf).toBe("src"); + }); + + it("refuses a cycle (mirror into own subtree)", () => { + let nodes = seedFlat(["src"]); + nodes = [ + ...nodes, + makeOutlineNode({ + id: "child", + userId: USER, + parentId: "src", + prevSiblingId: null, + text: "child", + createdAt: 1, + updatedAt: 1, + }), + ]; + const plan = planMirrorNode(buildTreeIndex(nodes), { + id: "m1", + userId: USER, + sourceId: "src", + targetParentId: "child", + createdAt: 2, + updatedAt: 2, + }); + expect(plan).toBeNull(); + }); + + it("parents under the true source when target is a mirror instance", () => { + let nodes = seedFlat(["src", "other"]); + { + const plan = planMirrorNode(buildTreeIndex(nodes), { + id: "mDest", + userId: USER, + sourceId: "other", + targetParentId: null, + createdAt: 1, + updatedAt: 1, + }); + nodes = applyPlan(nodes, plan!); + } + const plan = planMirrorNode(buildTreeIndex(nodes), { + id: "m1", + userId: USER, + sourceId: "src", + targetParentId: "mDest", + createdAt: 2, + updatedAt: 2, + }); + expect(plan).not.toBeNull(); + expect(plan!.inserts[0]!.parentId).toBe("other"); + }); +}); diff --git a/src/data/outline-plans/planners.ts b/src/data/outline-plans/planners.ts index 0e688f97..be7efcd8 100644 --- a/src/data/outline-plans/planners.ts +++ b/src/data/outline-plans/planners.ts @@ -1,7 +1,8 @@ +import type { Node } from "../schema"; import type { TreeIndex } from "../tree"; -import type { OutlineNode, OutlinePlan } from "./types"; +import type { OutlineNode, OutlinePlan, PlanPatch } from "./types"; -import { childrenOf, makeNode } from "../tree"; +import { childrenOf, makeNode, trueSourceOf, wouldMirrorCycle } from "../tree"; import { emptyPlan } from "./types"; /** Dotflowy `makeNode` + Lunora shard `userId`. */ @@ -452,6 +453,117 @@ export function planSplitNode( return plan; } +/** + * Flat-record equality for restore diffs. Nodes are shallow; `userId` is + * Lunora-only and ignored so history snapshots (`Node`) compare cleanly. + */ +export function sameNodeFields(a: Node, b: Node): boolean { + const ra = a as Record; + const rb = b as Record; + for (const key of Object.keys(ra)) { + if (key === "userId") continue; + if (ra[key] !== rb[key]) return false; + } + for (const key of Object.keys(rb)) { + if (key === "userId") continue; + if (!(key in ra)) return false; + } + return true; +} + +/** Full field snapshot for a restore patch (every Node field except `id`). */ +function restorePatchFields(node: OutlineNode): PlanPatch["fields"] { + return { + parentId: node.parentId, + prevSiblingId: node.prevSiblingId, + text: node.text, + isTask: node.isTask, + completed: node.completed, + collapsed: node.collapsed, + bookmarkedAt: node.bookmarkedAt, + mirrorOf: node.mirrorOf, + createdAt: node.createdAt, + updatedAt: node.updatedAt, + origin: node.origin, + kind: node.kind, + }; +} + +/** + * Snapshot restore → one OutlinePlan (deletes + inserts + full-field patches). + * Port of `history.ts` planRestore diff — used by Lunora `restoreNodes` and + * unit-tested here so undo/redo doesn't invent a second planner. + */ +export function planRestoreNodes( + current: readonly OutlineNode[], + target: readonly OutlineNode[], +): OutlinePlan { + const targetById = new Map(target.map((n) => [n.id, n])); + const currentById = new Map(current.map((n) => [n.id, n])); + const plan = emptyPlan(); + + for (const id of currentById.keys()) { + if (!targetById.has(id)) plan.deletes.push(id); + } + + for (const [id, node] of targetById) { + const live = currentById.get(id); + if (!live) { + plan.inserts.push(node); + } else if (!sameNodeFields(live, node)) { + plan.patches.push({ id, fields: restorePatchFields(node) }); + } + } + + return plan; +} + +/** + * Create a mirror of `sourceId` as last child of `targetParentId` (null = + * top level). Flattens to the TRUE source; resolves the destination through + * `trueSourceOf` (worker `planMirrorNode` / ADR 0022); refuses cycles. + */ +export function planMirrorNode( + index: TreeIndex, + args: { + id: string; + userId: string; + sourceId: string; + targetParentId: string | null; + createdAt: number; + updatedAt: number; + }, +): OutlinePlan | null { + if (!index.byId.has(args.sourceId)) return null; + + let parentId: string | null = null; + if (args.targetParentId !== null) { + if (!index.byId.has(args.targetParentId)) return null; + parentId = trueSourceOf(index, args.targetParentId); + } + + const trueSourceId = trueSourceOf(index, args.sourceId); + if (wouldMirrorCycle(index, trueSourceId, parentId)) return null; + + const siblings = childrenOf(index, parentId); + const after = siblings.length ? siblings[siblings.length - 1]!.id : null; + + const plan = emptyPlan(); + plan.inserts.push( + makeOutlineNode({ + id: args.id, + userId: args.userId, + parentId, + prevSiblingId: after, + text: index.byId.get(trueSourceId)?.text ?? "", + mirrorOf: trueSourceId, + createdAt: args.createdAt, + updatedAt: args.updatedAt, + }), + ); + return plan; +} + /** Apply a plan to an in-memory node list (for unit tests / working copies). */ export function applyPlan( nodes: OutlineNode[], @@ -459,6 +571,7 @@ export function applyPlan( ): OutlineNode[] { const byId = new Map(nodes.map((n) => [n.id, { ...n }])); + // deletes → patches → inserts (restore-safe; matches server commitPlan) for (const id of plan.deletes) byId.delete(id); for (const patch of plan.patches) { diff --git a/src/data/outline-plans/types.ts b/src/data/outline-plans/types.ts index 6c6ca16c..ed3136ad 100644 --- a/src/data/outline-plans/types.ts +++ b/src/data/outline-plans/types.ts @@ -24,6 +24,7 @@ export type PlanPatch = { | "collapsed" | "bookmarkedAt" | "mirrorOf" + | "createdAt" | "updatedAt" | "origin" | "kind" From bbeecb224781e6d0d1eda02bea9521f863938989 Mon Sep 17 00:00:00 2001 From: Cameron Pak Date: Thu, 23 Jul 2026 13:33:24 -0500 Subject: [PATCH 24/59] feat(lunora): multi-select, daily, and resolveMirror flag-ON mutators Close ADR 0018 batch gaps with one watermark each (removeMany/moveMany/ indentMany/outdentMany), parent mirror indents into the content source, and route daily scaffold+day node writes through materializeDailyNodes while kv claims stay on /api/kv. Co-authored-by: Cursor --- lunora/_generated/functions.ts | 7 +- lunora/mutators.ts | 132 ++++++++++++- src/data/lunora-outline-store.ts | 102 +++++++++- src/data/mutations.ts | 96 +++++++++- src/data/outline-plans/index.ts | 5 + src/data/outline-plans/planners.test.ts | 166 +++++++++++++++++ src/data/outline-plans/planners.ts | 235 +++++++++++++++++++++++- src/plugins/daily/get-or-create.ts | 173 ++++++++++++++++- 8 files changed, 902 insertions(+), 14 deletions(-) diff --git a/lunora/_generated/functions.ts b/lunora/_generated/functions.ts index f60e4c24..db661d08 100644 --- a/lunora/_generated/functions.ts +++ b/lunora/_generated/functions.ts @@ -34,11 +34,16 @@ export interface RegisteredLunoraFunction { export const LUNORA_FUNCTIONS: Record = { "mutators:hello": lunora_mutators_0.hello as unknown as RegisteredLunoraFunction, "mutators:indent": lunora_mutators_0.indent as unknown as RegisteredLunoraFunction, + "mutators:indentMany": lunora_mutators_0.indentMany as unknown as RegisteredLunoraFunction, "mutators:insertChildAtStart": lunora_mutators_0.insertChildAtStart as unknown as RegisteredLunoraFunction, "mutators:insertSibling": lunora_mutators_0.insertSibling as unknown as RegisteredLunoraFunction, + "mutators:materializeDailyNodes": lunora_mutators_0.materializeDailyNodes as unknown as RegisteredLunoraFunction, "mutators:mirrorNode": lunora_mutators_0.mirrorNode as unknown as RegisteredLunoraFunction, + "mutators:moveMany": lunora_mutators_0.moveMany as unknown as RegisteredLunoraFunction, "mutators:moveNode": lunora_mutators_0.moveNode as unknown as RegisteredLunoraFunction, "mutators:outdent": lunora_mutators_0.outdent as unknown as RegisteredLunoraFunction, + "mutators:outdentMany": lunora_mutators_0.outdentMany as unknown as RegisteredLunoraFunction, + "mutators:removeMany": lunora_mutators_0.removeMany as unknown as RegisteredLunoraFunction, "mutators:removeNode": lunora_mutators_0.removeNode as unknown as RegisteredLunoraFunction, "mutators:restoreNodes": lunora_mutators_0.restoreNodes as unknown as RegisteredLunoraFunction, "mutators:seedIfEmpty": lunora_mutators_0.seedIfEmpty as unknown as RegisteredLunoraFunction, @@ -66,7 +71,7 @@ export const LUNORA_SHAPES: Record = { * ShardDO's `isCustomMutator` override routes through the client-watermark push * protocol (`x-lunora-client-id`/`x-lunora-client-seq` ordering). */ -export const LUNORA_MUTATOR_PATHS: ReadonlySet = new Set(["mutators:hello", "mutators:indent", "mutators:insertChildAtStart", "mutators:insertSibling", "mutators:mirrorNode", "mutators:moveNode", "mutators:outdent", "mutators:removeNode", "mutators:restoreNodes", "mutators:seedIfEmpty", "mutators:setBookmarkedAt", "mutators:setCollapsed", "mutators:setCompleted", "mutators:setIsTask", "mutators:setKind", "mutators:setText", "mutators:splitNode"]); +export const LUNORA_MUTATOR_PATHS: ReadonlySet = new Set(["mutators:hello", "mutators:indent", "mutators:indentMany", "mutators:insertChildAtStart", "mutators:insertSibling", "mutators:materializeDailyNodes", "mutators:mirrorNode", "mutators:moveMany", "mutators:moveNode", "mutators:outdent", "mutators:outdentMany", "mutators:removeMany", "mutators:removeNode", "mutators:restoreNodes", "mutators:seedIfEmpty", "mutators:setBookmarkedAt", "mutators:setCollapsed", "mutators:setCompleted", "mutators:setIsTask", "mutators:setKind", "mutators:setText", "mutators:splitNode"]); /** * Connection-lifecycle manifest: the function paths the generated ShardDO diff --git a/lunora/mutators.ts b/lunora/mutators.ts index fb6dcd5c..497ca9e8 100644 --- a/lunora/mutators.ts +++ b/lunora/mutators.ts @@ -7,11 +7,16 @@ import { docToNode, nodeToInsertFields, planIndent, + planIndentMany, planInsertChildAtStart, planInsertSibling, + planMaterializeDailyNodes, planMirrorNode, + planMoveMany, planMoveNode, planOutdent, + planOutdentMany, + planRemoveMany, planRemoveNode, planRestoreNodes, planSeedIfEmpty, @@ -224,12 +229,22 @@ export const seedIfEmpty = defineMutator({ }); export const indent = defineMutator({ - args: { id: idArg, userId: userIdArg, updatedAt: tsArg }, + args: { + id: idArg, + userId: userIdArg, + updatedAt: tsArg, + resolveMirror: v.optional(v.boolean()), + }, server: async (ctx, args) => { const mctx = ctx as unknown as MutatorCtx; assertOwner(mctx, args.userId); const index = buildTreeIndex(await loadNodes(mctx)); - const plan = planIndent(index, args.id, args.updatedAt); + const plan = planIndent( + index, + args.id, + args.updatedAt, + args.resolveMirror ?? false, + ); if (!plan) throw new Error("indent: no-op or missing node"); await commitPlan(mctx, plan); }, @@ -462,3 +477,116 @@ export const mirrorNode = defineMutator({ return { id: args.id }; }, }); + +/** Multi-select delete — one watermark (ADR 0018). */ +export const removeMany = defineMutator({ + args: { + userId: userIdArg, + nodeIds: v.array(idArg), + updatedAt: tsArg, + }, + server: async (ctx, args) => { + const mctx = ctx as unknown as MutatorCtx; + assertOwner(mctx, args.userId); + const nodes = await loadNodes(mctx); + const plan = planRemoveMany(nodes, args.nodeIds, args.updatedAt); + if (!plan) throw new Error("removeMany: no-op"); + await commitPlan(mctx, plan); + }, +}); + +/** Multi-select move / Send-to-Today — one watermark (ADR 0018). */ +export const moveMany = defineMutator({ + args: { + userId: userIdArg, + targetId: v.string().nullable(), + nodeIds: v.array(idArg), + updatedAt: tsArg, + }, + server: async (ctx, args) => { + const mctx = ctx as unknown as MutatorCtx; + assertOwner(mctx, args.userId); + const nodes = await loadNodes(mctx); + const plan = planMoveMany(nodes, { + targetId: args.targetId, + nodeIds: args.nodeIds, + updatedAt: args.updatedAt, + }); + if (!plan) throw new Error("moveMany: no-op"); + await commitPlan(mctx, plan); + }, +}); + +/** Multi-select Tab indent — one watermark (ADR 0018). */ +export const indentMany = defineMutator({ + args: { + userId: userIdArg, + nodeIds: v.array(idArg), + updatedAt: tsArg, + resolveMirror: v.optional(v.boolean()), + }, + server: async (ctx, args) => { + const mctx = ctx as unknown as MutatorCtx; + assertOwner(mctx, args.userId); + const nodes = await loadNodes(mctx); + const plan = planIndentMany( + nodes, + args.nodeIds, + args.updatedAt, + args.resolveMirror ?? false, + ); + if (!plan) throw new Error("indentMany: no-op"); + await commitPlan(mctx, plan); + }, +}); + +/** Multi-select Shift+Tab outdent — one watermark (ADR 0018). */ +export const outdentMany = defineMutator({ + args: { + userId: userIdArg, + nodeIds: v.array(idArg), + updatedAt: tsArg, + }, + server: async (ctx, args) => { + const mctx = ctx as unknown as MutatorCtx; + assertOwner(mctx, args.userId); + const nodes = await loadNodes(mctx); + const plan = planOutdentMany(nodes, args.nodeIds, args.updatedAt); + if (!plan) throw new Error("outdentMany: no-op"); + await commitPlan(mctx, plan); + }, +}); + +/** + * Daily get-or-create node half — scaffold + day (+ optional seed) after the + * client has claimed ids via `/api/kv` (phase 2b keeps kv on the custom DO). + */ +export const materializeDailyNodes = defineMutator({ + args: { + userId: userIdArg, + inserts: v.array( + v.object({ + id: idArg, + parentId: v.string().nullable(), + afterId: v.string().nullable(), + text: v.string(), + }), + ), + createdAt: tsArg, + updatedAt: tsArg, + }, + server: async (ctx, args) => { + const mctx = ctx as unknown as MutatorCtx; + assertOwner(mctx, args.userId); + const nodes = await loadNodes(mctx); + const plan = planMaterializeDailyNodes(nodes, { + userId: args.userId, + inserts: args.inserts, + createdAt: args.createdAt, + updatedAt: args.updatedAt, + }); + if (!plan) throw new Error("materializeDailyNodes: no-op or invalid"); + await commitPlan(mctx, plan); + return { count: args.inserts.length }; + }, +}); diff --git a/src/data/lunora-outline-store.ts b/src/data/lunora-outline-store.ts index 2a48b87f..f11a0439 100644 --- a/src/data/lunora-outline-store.ts +++ b/src/data/lunora-outline-store.ts @@ -14,11 +14,16 @@ import { buildTreeIndex, nodeToRow, planIndent, + planIndentMany, planInsertChildAtStart, planInsertSibling, + planMaterializeDailyNodes, planMirrorNode, + planMoveMany, planMoveNode, planOutdent, + planOutdentMany, + planRemoveMany, planRemoveNode, planRestoreNodes, planSeedIfEmpty, @@ -136,11 +141,21 @@ function bindOutlineMutators( if (plan) applyPlanToCollection(collection, plan); }, }), - indent: defineMutator<{ id: string; userId: string; updatedAt: number }>({ + indent: defineMutator<{ + id: string; + userId: string; + updatedAt: number; + resolveMirror?: boolean; + }>({ serverRef: "mutators:indent", apply: (_ctx, args) => { const index = buildTreeIndex(snapshotNodes(collection)); - const plan = planIndent(index, args.id, args.updatedAt); + const plan = planIndent( + index, + args.id, + args.updatedAt, + args.resolveMirror ?? false, + ); if (plan) applyPlanToCollection(collection, plan); }, }), @@ -304,6 +319,89 @@ function bindOutlineMutators( if (plan) applyPlanToCollection(collection, plan); }, }), + removeMany: defineMutator<{ + userId: string; + nodeIds: string[]; + updatedAt: number; + }>({ + serverRef: "mutators:removeMany", + apply: (_ctx, args) => { + const plan = planRemoveMany( + snapshotNodes(collection), + args.nodeIds, + args.updatedAt, + ); + if (plan) applyPlanToCollection(collection, plan); + }, + }), + moveMany: defineMutator<{ + userId: string; + targetId: string | null; + nodeIds: string[]; + updatedAt: number; + }>({ + serverRef: "mutators:moveMany", + apply: (_ctx, args) => { + const plan = planMoveMany(snapshotNodes(collection), { + targetId: args.targetId, + nodeIds: args.nodeIds, + updatedAt: args.updatedAt, + }); + if (plan) applyPlanToCollection(collection, plan); + }, + }), + indentMany: defineMutator<{ + userId: string; + nodeIds: string[]; + updatedAt: number; + resolveMirror?: boolean; + }>({ + serverRef: "mutators:indentMany", + apply: (_ctx, args) => { + const plan = planIndentMany( + snapshotNodes(collection), + args.nodeIds, + args.updatedAt, + args.resolveMirror ?? false, + ); + if (plan) applyPlanToCollection(collection, plan); + }, + }), + outdentMany: defineMutator<{ + userId: string; + nodeIds: string[]; + updatedAt: number; + }>({ + serverRef: "mutators:outdentMany", + apply: (_ctx, args) => { + const plan = planOutdentMany( + snapshotNodes(collection), + args.nodeIds, + args.updatedAt, + ); + if (plan) applyPlanToCollection(collection, plan); + }, + }), + materializeDailyNodes: defineMutator<{ + userId: string; + inserts: Array<{ + id: string; + parentId: string | null; + afterId: string | null; + text: string; + }>; + createdAt: number; + updatedAt: number; + }>({ + serverRef: "mutators:materializeDailyNodes", + apply: (_ctx, args) => { + const plan = planMaterializeDailyNodes( + snapshotNodes(collection), + args, + ); + if (plan) applyPlanToCollection(collection, plan); + }, + }), seedIfEmpty: defineMutator<{ userId: string; createdAt: number }>({ serverRef: "mutators:seedIfEmpty", apply: (_ctx, args) => { diff --git a/src/data/mutations.ts b/src/data/mutations.ts index b0bc4152..5ffed711 100644 --- a/src/data/mutations.ts +++ b/src/data/mutations.ts @@ -1,6 +1,13 @@ import { nodesCollection } from "./collection"; import { isLunoraSyncEnabled } from "./flags"; import { getLunoraOutlineContext, trackLunoraMutation } from "./lunora-sync"; +import { + planIndent, + planIndentMany, + planMoveMany, + planOutdentMany, + rowToNode, +} from "./outline-plans"; import { type Node, type NodeKind, @@ -338,15 +345,18 @@ export function indent( const node = index.byId.get(nodeId); if (!node || !node.prevSiblingId) return false; - // ADR 0055 dogfood: skip mirror-resolution path (mirrors still on custom DO). - if (isLunoraSyncEnabled() && !resolveMirror) { + if (isLunoraSyncEnabled()) { const lunora = getLunoraOutlineContext(); if (lunora) { + const updatedAt = now(); + // Match classic false on no-op / mirror cycle (ADR 0022). + if (!planIndent(index, nodeId, updatedAt, resolveMirror)) return false; trackLunoraMutation( lunora.store.mutators.indent({ id: nodeId, userId: lunora.userId, - updatedAt: now(), + updatedAt, + resolveMirror, }), ); return true; @@ -769,6 +779,31 @@ export function moveNode( * moves land as ONE atomic batch (ADR 0009). */ export function moveManyNodes(targetId: string | null, ids: string[]): number { + if (ids.length === 0) return 0; + + if (isLunoraSyncEnabled()) { + const lunora = getLunoraOutlineContext(); + if (lunora) { + const updatedAt = now(); + const nodes = lunora.store.collection.toArray.map(rowToNode); + const plan = planMoveMany(nodes, { + targetId, + nodeIds: ids, + updatedAt, + }); + if (!plan) return 0; + trackLunoraMutation( + lunora.store.mutators.moveMany({ + userId: lunora.userId, + targetId, + nodeIds: [...ids], + updatedAt, + }), + ); + return ids.length; + } + } + let moved = 0; // `after` walks forward: start at the target's current last child, then each // successful move becomes the predecessor of the next. @@ -803,6 +838,26 @@ export function indentManyNodes( resolveMirror = false, ): number { if (rootIds.length === 0) return 0; + + if (isLunoraSyncEnabled()) { + const lunora = getLunoraOutlineContext(); + if (lunora) { + const updatedAt = now(); + const nodes = lunora.store.collection.toArray.map(rowToNode); + const plan = planIndentMany(nodes, rootIds, updatedAt, resolveMirror); + if (!plan) return 0; + trackLunoraMutation( + lunora.store.mutators.indentMany({ + userId: lunora.userId, + nodeIds: [...rootIds], + updatedAt, + resolveMirror, + }), + ); + return rootIds.length; + } + } + const index = buildTreeIndex(nodesCollection.toArray); // The run is contiguous, so the first root's prev sibling sits OUTSIDE it -- // the node everything indents under. Absent => first child => can't indent. @@ -842,6 +897,25 @@ export function indentManyNodes( */ export function outdentManyNodes(rootIds: string[]): number { if (rootIds.length === 0) return 0; + + if (isLunoraSyncEnabled()) { + const lunora = getLunoraOutlineContext(); + if (lunora) { + const updatedAt = now(); + const nodes = lunora.store.collection.toArray.map(rowToNode); + const plan = planOutdentMany(nodes, rootIds, updatedAt); + if (!plan) return 0; + trackLunoraMutation( + lunora.store.mutators.outdentMany({ + userId: lunora.userId, + nodeIds: [...rootIds], + updatedAt, + }), + ); + return rootIds.length; + } + } + const start = buildTreeIndex(nodesCollection.toArray); const oldParentId = start.byId.get(rootIds[0]!)?.parentId; if (!oldParentId) return 0; // already top-level -> can't outdent @@ -930,6 +1004,22 @@ export function removeNode(index: TreeIndex, nodeId: string): string | null { * Focus handling is the caller's (computed before deletion). */ export function removeManyNodes(ids: string[]): void { + if (ids.length === 0) return; + + if (isLunoraSyncEnabled()) { + const lunora = getLunoraOutlineContext(); + if (lunora) { + trackLunoraMutation( + lunora.store.mutators.removeMany({ + userId: lunora.userId, + nodeIds: [...ids], + updatedAt: now(), + }), + ); + return; + } + } + for (const id of ids) { removeNode(buildTreeIndex(nodesCollection.toArray), id); } diff --git a/src/data/outline-plans/index.ts b/src/data/outline-plans/index.ts index 8326b021..7ce853c3 100644 --- a/src/data/outline-plans/index.ts +++ b/src/data/outline-plans/index.ts @@ -14,6 +14,7 @@ export { planIndent, planOutdent, planRemoveNode, + planRemoveMany, planSetText, planSetCompleted, planSetCollapsed, @@ -21,6 +22,10 @@ export { planSetKind, planSetBookmarkedAt, planMoveNode, + planMoveMany, + planIndentMany, + planOutdentMany, + planMaterializeDailyNodes, planSplitNode, sameNodeFields, planRestoreNodes, diff --git a/src/data/outline-plans/planners.test.ts b/src/data/outline-plans/planners.test.ts index dd63cb53..490caf59 100644 --- a/src/data/outline-plans/planners.test.ts +++ b/src/data/outline-plans/planners.test.ts @@ -10,9 +10,14 @@ import { planIndent, planInsertChildAtStart, planInsertSibling, + planIndentMany, + planMaterializeDailyNodes, planMirrorNode, + planMoveMany, planMoveNode, planOutdent, + planOutdentMany, + planRemoveMany, planRemoveNode, planRestoreNodes, planSetBookmarkedAt, @@ -515,3 +520,164 @@ describe("planMirrorNode", () => { expect(plan!.inserts[0]!.parentId).toBe("other"); }); }); + +describe("planIndent resolveMirror", () => { + it("parents into the SOURCE when prev sibling is a mirror", () => { + let nodes = seedFlat(["src", "m", "x"]); + // Turn m into a mirror of src (same sibling chain position). + nodes = nodes.map((n) => + n.id === "m" ? { ...n, mirrorOf: "src", text: "src" } : n, + ); + const plan = planIndent(buildTreeIndex(nodes), "x", 10, true); + expect(plan).not.toBeNull(); + nodes = applyPlan(nodes, plan!); + expect(nodes.find((n) => n.id === "x")!.parentId).toBe("src"); + expect(assertChainOk(nodes, "src")).toEqual(["x"]); + }); + + it("refuses a cycle when mirror prev sibling resolves into self", () => { + let nodes = seedFlat(["x", "m"]); + nodes = nodes.map((n) => + n.id === "m" ? { ...n, mirrorOf: "x", text: "x" } : n, + ); + // Indenting nothing after m that would cycle — indent m under x is fine. + // Cycle: indent a node whose prev sibling mirrors THAT node. + nodes = seedFlat(["a", "m", "b"]); + nodes = nodes.map((n) => + n.id === "m" ? { ...n, mirrorOf: "b", text: "b" } : n, + ); + // Indent b under m → would parent b under b (trueSourceOf m = b). + expect(planIndent(buildTreeIndex(nodes), "b", 10, true)).toBeNull(); + }); +}); + +describe("multi-select planners (ADR 0018)", () => { + it("planRemoveMany deletes contiguous siblings without tearing the chain", () => { + let nodes = seedFlat(["a", "b", "c", "d"]); + const plan = planRemoveMany(nodes, ["b", "c"], 10); + expect(plan).not.toBeNull(); + nodes = applyPlan(nodes, plan!); + expect(assertChainOk(nodes, null)).toEqual(["a", "d"]); + }); + + it("planMoveMany preserves order under the target", () => { + let nodes = seedFlat(["t", "a", "b", "c"]); + const plan = planMoveMany(nodes, { + targetId: "t", + nodeIds: ["a", "b"], + updatedAt: 10, + }); + expect(plan).not.toBeNull(); + nodes = applyPlan(nodes, plan!); + expect(assertChainOk(nodes, null)).toEqual(["t", "c"]); + expect(assertChainOk(nodes, "t")).toEqual(["a", "b"]); + }); + + it("planIndentMany indents a run under the previous sibling", () => { + let nodes = seedFlat(["a", "b", "c", "d"]); + const plan = planIndentMany(nodes, ["b", "c"], 10); + expect(plan).not.toBeNull(); + nodes = applyPlan(nodes, plan!); + expect(assertChainOk(nodes, null)).toEqual(["a", "d"]); + expect(assertChainOk(nodes, "a")).toEqual(["b", "c"]); + }); + + it("planIndentMany resolveMirror parents into the SOURCE", () => { + let nodes = seedFlat(["src", "m", "b", "c"]); + nodes = nodes.map((n) => + n.id === "m" ? { ...n, mirrorOf: "src", text: "src" } : n, + ); + const plan = planIndentMany(nodes, ["b", "c"], 10, true); + expect(plan).not.toBeNull(); + nodes = applyPlan(nodes, plan!); + expect(assertChainOk(nodes, "src")).toEqual(["b", "c"]); + }); + + it("planOutdentMany lifts a run after the former parent", () => { + let nodes = seedFlat(["p", "z"]); + nodes = [ + ...nodes, + makeOutlineNode({ + id: "a", + userId: USER, + parentId: "p", + prevSiblingId: null, + text: "a", + createdAt: 1, + updatedAt: 1, + }), + makeOutlineNode({ + id: "b", + userId: USER, + parentId: "p", + prevSiblingId: "a", + text: "b", + createdAt: 2, + updatedAt: 2, + }), + ]; + const plan = planOutdentMany(nodes, ["a", "b"], 10); + expect(plan).not.toBeNull(); + nodes = applyPlan(nodes, plan!); + expect(assertChainOk(nodes, null)).toEqual(["p", "a", "b", "z"]); + }); +}); + +describe("planMaterializeDailyNodes", () => { + it("inserts scaffold + day + seed in chain order", () => { + let nodes: OutlineNode[] = []; + const plan = planMaterializeDailyNodes(nodes, { + userId: USER, + inserts: [ + { id: "container", parentId: null, afterId: null, text: "Daily" }, + { + id: "year", + parentId: "container", + afterId: null, + text: "2026", + }, + { id: "day", parentId: "year", afterId: null, text: "Tuesday" }, + { id: "seed", parentId: "day", afterId: null, text: "" }, + ], + createdAt: 1, + updatedAt: 1, + }); + expect(plan).not.toBeNull(); + nodes = applyPlan(nodes, plan!); + expect(assertChainOk(nodes, null)).toEqual(["container"]); + expect(assertChainOk(nodes, "container")).toEqual(["year"]); + expect(assertChainOk(nodes, "year")).toEqual(["day"]); + expect(assertChainOk(nodes, "day")).toEqual(["seed"]); + }); + + it("skips ids already present", () => { + let nodes = [ + makeOutlineNode({ + id: "container", + userId: USER, + parentId: null, + prevSiblingId: null, + text: "Daily", + createdAt: 0, + updatedAt: 0, + }), + ]; + const plan = planMaterializeDailyNodes(nodes, { + userId: USER, + inserts: [ + { id: "container", parentId: null, afterId: null, text: "Daily" }, + { + id: "day", + parentId: "container", + afterId: null, + text: "Tue", + }, + ], + createdAt: 1, + updatedAt: 1, + }); + expect(plan).not.toBeNull(); + nodes = applyPlan(nodes, plan!); + expect(assertChainOk(nodes, "container")).toEqual(["day"]); + }); +}); diff --git a/src/data/outline-plans/planners.ts b/src/data/outline-plans/planners.ts index be7efcd8..932a2b80 100644 --- a/src/data/outline-plans/planners.ts +++ b/src/data/outline-plans/planners.ts @@ -2,7 +2,13 @@ import type { Node } from "../schema"; import type { TreeIndex } from "../tree"; import type { OutlineNode, OutlinePlan, PlanPatch } from "./types"; -import { childrenOf, makeNode, trueSourceOf, wouldMirrorCycle } from "../tree"; +import { + buildTreeIndex, + childrenOf, + makeNode, + trueSourceOf, + wouldMirrorCycle, +} from "../tree"; import { emptyPlan } from "./types"; /** Dotflowy `makeNode` + Lunora shard `userId`. */ @@ -71,11 +77,17 @@ export function planInsertSibling( /** * Indent: become last child of previous sibling. Port of Dotflowy `indent`. + * + * `resolveMirror` (ADR 0022): when the previous sibling is a mirror, parent into + * its SOURCE (`trueSourceOf`) so the node windows into every instance — matching + * classic `mutations.indent(…, resolveMirror)`. Collapse still targets the + * visible instance. */ export function planIndent( index: TreeIndex, nodeId: string, updatedAt: number, + resolveMirror = false, ): OutlinePlan | null { const node = index.byId.get(nodeId); if (!node || !node.prevSiblingId) return null; @@ -83,12 +95,25 @@ export function planIndent( const newParent = index.byId.get(node.prevSiblingId); if (!newParent) return null; + const newParentContentId = resolveMirror + ? trueSourceOf(index, newParent.id) + : newParent.id; + + if (resolveMirror) { + let cursor: Node | undefined = index.byId.get(newParentContentId); + let guard = index.byId.size + 1; + while (cursor && guard-- > 0) { + if (cursor.id === nodeId) return null; + cursor = cursor.parentId ? index.byId.get(cursor.parentId) : undefined; + } + } + const oldSiblings = childrenOf(index, node.parentId); const i = oldSiblings.findIndex((n) => n.id === nodeId); const oldNext = i !== -1 && i + 1 < oldSiblings.length ? oldSiblings[i + 1]! : null; - const newSiblings = childrenOf(index, newParent.id); + const newSiblings = childrenOf(index, newParentContentId); const lastExisting = newSiblings.length > 0 ? newSiblings[newSiblings.length - 1]! : null; @@ -96,7 +121,7 @@ export function planIndent( plan.patches.push({ id: nodeId, fields: { - parentId: newParent.id, + parentId: newParentContentId, prevSiblingId: lastExisting ? lastExisting.id : null, updatedAt, }, @@ -585,3 +610,207 @@ export function applyPlan( return [...byId.values()]; } + +/** True when a plan would change the outline. */ +function planHasWork(plan: OutlinePlan): boolean { + return ( + plan.deletes.length > 0 || + plan.patches.length > 0 || + plan.inserts.length > 0 + ); +} + +/** + * Diff `before` → `after` into one OutlinePlan. Used by multi-step planners that + * rebuild a working copy between sibling ops (ADR 0018), then emit a single + * watermarked mutator plan. + */ +function planFromWorkingCopy( + before: readonly OutlineNode[], + after: readonly OutlineNode[], +): OutlinePlan | null { + const plan = planRestoreNodes(before, after); + return planHasWork(plan) ? plan : null; +} + +/** + * Delete several roots (+ subtrees) in one plan. Rebuilds the working index + * between each remove so contiguous-sibling deletes don't tear the chain + * (port of `removeManyNodes`). + */ +export function planRemoveMany( + nodes: readonly OutlineNode[], + ids: readonly string[], + updatedAt: number, +): OutlinePlan | null { + if (ids.length === 0) return null; + let working = [...nodes]; + for (const id of ids) { + const step = planRemoveNode(buildTreeIndex(working), id, updatedAt); + if (!step) continue; + working = applyPlan(working, step); + } + return planFromWorkingCopy(nodes, working); +} + +/** + * Move several nodes to be last children of `targetId`, preserving order. + * Rebuilds between each move (port of `moveManyNodes`). + */ +export function planMoveMany( + nodes: readonly OutlineNode[], + args: { + targetId: string | null; + nodeIds: readonly string[]; + updatedAt: number; + }, +): OutlinePlan | null { + if (args.nodeIds.length === 0) return null; + let working = [...nodes]; + const firstSiblings = childrenOf(buildTreeIndex(working), args.targetId); + let after: string | null = firstSiblings.length + ? firstSiblings[firstSiblings.length - 1]!.id + : null; + for (const id of args.nodeIds) { + const step = planMoveNode(buildTreeIndex(working), { + id, + newParentId: args.targetId, + afterSiblingId: after, + updatedAt: args.updatedAt, + }); + if (!step) continue; + working = applyPlan(working, step); + after = id; + } + return planFromWorkingCopy(nodes, working); +} + +/** + * Indent a contiguous sibling run under the first root's previous sibling + * (port of `indentManyNodes`). `resolveMirror` parents into the SOURCE when + * that previous sibling is a mirror instance. + */ +export function planIndentMany( + nodes: readonly OutlineNode[], + rootIds: readonly string[], + updatedAt: number, + resolveMirror = false, +): OutlinePlan | null { + if (rootIds.length === 0) return null; + let working = [...nodes]; + const index = buildTreeIndex(working); + const targetId = index.byId.get(rootIds[0]!)?.prevSiblingId; + if (!targetId) return null; + + if (index.byId.get(targetId)?.collapsed) { + const expand = planSetCollapsed( + buildTreeIndex(working), + targetId, + false, + updatedAt, + ); + if (expand) working = applyPlan(working, expand); + } + + const live = buildTreeIndex(working); + const target = resolveMirror ? trueSourceOf(live, targetId) : targetId; + + if (resolveMirror && target !== targetId) { + const selected = new Set(rootIds); + let cursor: string | null = target; + let guard = live.byId.size + 1; + while (cursor && guard-- > 0) { + if (selected.has(cursor)) return null; + cursor = live.byId.get(cursor)?.parentId ?? null; + } + } + + // Inline move-many against `working` so the final diff includes expand + + // moves relative to the ORIGINAL `nodes` (not a post-expand base). + const firstSiblings = childrenOf(buildTreeIndex(working), target); + let after: string | null = firstSiblings.length + ? firstSiblings[firstSiblings.length - 1]!.id + : null; + for (const id of rootIds) { + const step = planMoveNode(buildTreeIndex(working), { + id, + newParentId: target, + afterSiblingId: after, + updatedAt, + }); + if (!step) continue; + working = applyPlan(working, step); + after = id; + } + return planFromWorkingCopy(nodes, working); +} + +/** + * Outdent a contiguous sibling run one level (port of `outdentManyNodes`). + * Rebuilds between each move so order is preserved after the former parent. + */ +export function planOutdentMany( + nodes: readonly OutlineNode[], + rootIds: readonly string[], + updatedAt: number, +): OutlinePlan | null { + if (rootIds.length === 0) return null; + let working = [...nodes]; + const start = buildTreeIndex(working); + const oldParentId = start.byId.get(rootIds[0]!)?.parentId; + if (!oldParentId) return null; + const newParentId = start.byId.get(oldParentId)?.parentId ?? null; + + let after: string = oldParentId; + for (const id of rootIds) { + const step = planMoveNode(buildTreeIndex(working), { + id, + newParentId, + afterSiblingId: after, + updatedAt, + }); + if (!step) continue; + working = applyPlan(working, step); + after = id; + } + return planFromWorkingCopy(nodes, working); +} + +/** + * Daily scaffold + day (+ optional seed) inserts in ONE plan after kv claims + * settle client-side. Each entry is already placed (`afterId` = predecessor, or + * null for head). Skips ids already present. Port of `materializeNewDay`'s + * node half — kv `claimMapping` stays on `/api/kv` (phase 2b). + */ +export function planMaterializeDailyNodes( + nodes: readonly OutlineNode[], + args: { + userId: string; + inserts: readonly { + id: string; + parentId: string | null; + afterId: string | null; + text: string; + }[]; + createdAt: number; + updatedAt: number; + }, +): OutlinePlan | null { + if (args.inserts.length === 0) return null; + let working = [...nodes]; + for (const ins of args.inserts) { + if (working.some((n) => n.id === ins.id)) continue; + const step = planInsertSibling(buildTreeIndex(working), { + id: ins.id, + userId: args.userId, + parentId: ins.parentId, + afterId: ins.afterId, + text: ins.text, + createdAt: args.createdAt, + updatedAt: args.updatedAt, + }); + if (!step) return null; + working = applyPlan(working, step); + } + return planFromWorkingCopy(nodes, working); +} diff --git a/src/plugins/daily/get-or-create.ts b/src/plugins/daily/get-or-create.ts index 136aef2d..36f10840 100644 --- a/src/plugins/daily/get-or-create.ts +++ b/src/plugins/daily/get-or-create.ts @@ -23,7 +23,9 @@ import { parentScaffoldKey, scaffoldLabel, } from "../../data/date-links"; +import { isLunoraSyncEnabled } from "../../data/flags"; import { RESTORE_SLICE_OPS, capture } from "../../data/history"; +import { getLunoraOutlineContext } from "../../data/lunora-sync"; import { appendChild, insertChildAtStart, @@ -32,12 +34,21 @@ import { setText, } from "../../data/mutations"; import { isNodesLimitError } from "../../data/nodes-client-effect"; +import { + applyPlan, + buildTreeIndex, + childrenOf, + planInsertSibling, + rowToNode, + type OutlineNode, +} from "../../data/outline-plans"; import { runStructural, runStructuralSliced, runStructuralTracked, } from "../../data/structural"; -import { buildTreeIndex, childrenOf, createId } from "../../data/tree"; +import { createId } from "../../data/tree"; +import { getTreeIndex } from "../../data/tree-store"; import { CONTAINER_KEY, DAILY_CONTAINER_TEXT, @@ -59,7 +70,16 @@ import { // --- get-or-create ---------------------------------------------------------- +function liveOutlineNodes(): OutlineNode[] | null { + if (!isLunoraSyncEnabled()) return null; + const lunora = getLunoraOutlineContext(); + if (!lunora) return null; + return lunora.store.collection.toArray.map(rowToNode); +} + function hasNode(id: string): boolean { + const lunoraNodes = liveOutlineNodes(); + if (lunoraNodes) return lunoraNodes.some((n) => n.id === id); return nodesCollection.toArray.some((n) => n.id === id); } @@ -116,14 +136,23 @@ function healExistingDay( key: string, seedEntryLine: boolean, ): void { - const node = nodesCollection.toArray.find((n) => n.id === dayId); + const lunoraNodes = liveOutlineNodes(); + const node = lunoraNodes + ? lunoraNodes.find((n) => n.id === dayId) + : nodesCollection.toArray.find((n) => n.id === dayId); if (node && !node.text.trim()) setText(dayId, formatDayText(key)); // Seeding is opt-in at the OPEN boundary (ADR 0041): only a write-intent // surface (/today, Today button, Cmd+K "Go to Today") asks for an empty line. // A reopened-but-emptied day re-seeds in its own isolated batch. No capture() // -- stays out of undo like day creation. if (seedEntryLine && !hasChildInLiveCollection(dayId)) { - runStructural(() => appendChild(dayId, null, "")); + // Lunora: insertChildAtStart is already a watermarked mutator; classic + // path keeps runStructural + appendChild (last-child when empty = same). + if (isLunoraSyncEnabled()) { + insertChildAtStart(getTreeIndex(), dayId, false, ""); + } else { + runStructural(() => appendChild(dayId, null, "")); + } } } @@ -174,6 +203,23 @@ async function materializeNewDay( if (claimed.some((c) => !c.won && !c.present)) resyncNodes(); const parentId = chain && week ? week.id : container.id; + + // ADR 0055: flag ON → one Lunora mutator for all node writes (kv claims + // already done above). Classic path keeps runStructuralTracked + applyBatch. + if (isLunoraSyncEnabled()) { + return materializeNewDayLunora({ + container, + day, + key, + seedEntryLine, + chain, + year, + month, + week, + parentId, + }); + } + const { persisted } = runStructuralTracked(() => { // Container: appended at the end of the top level (special, not sorted). if (!hasNode(container.id)) { @@ -235,9 +281,130 @@ async function materializeNewDay( return { id: null, cause: null }; } +/** Lunora flag-ON materialize: plan inserts client-side (sorted afterIds), one + * `materializeDailyNodes` mutator, await watermark. Kv claims stay on `/api/kv`. */ +async function materializeNewDayLunora(args: { + container: { id: string; won: boolean; present: boolean }; + day: { id: string; won: boolean; present: boolean }; + key: string; + seedEntryLine: boolean; + chain: ReturnType; + year: { id: string; won: boolean; present: boolean } | null; + month: { id: string; won: boolean; present: boolean } | null; + week: { id: string; won: boolean; present: boolean } | null; + parentId: string; +}): Promise { + const lunora = getLunoraOutlineContext(); + if (!lunora) return { id: null, cause: null }; + + const t = Date.now(); + let working = lunora.store.collection.toArray.map(rowToNode); + const inserts: Array<{ + id: string; + parentId: string | null; + afterId: string | null; + text: string; + }> = []; + + const pushInsert = ( + id: string, + parentId: string | null, + afterId: string | null, + text: string, + ) => { + if (working.some((n) => n.id === id)) return; + const step = planInsertSibling(buildTreeIndex(working), { + id, + userId: lunora.userId, + parentId, + afterId, + text, + createdAt: t, + updatedAt: t, + }); + if (!step) return; + inserts.push({ id, parentId, afterId, text }); + working = applyPlan(working, step); + }; + + const pushSorted = ( + parentNodeId: string, + scaffoldKey: string, + text: string, + id: string, + ) => { + if (working.some((n) => n.id === id)) return; + const index = buildTreeIndex(working); + const siblings = childrenOf(index, parentNodeId).map((n) => ({ + id: n.id, + key: getKeyForNode(n.id), + })); + const afterId = sortedInsertAfterId(siblings, scaffoldKey); + pushInsert(id, parentNodeId, afterId, text); + }; + + if (!working.some((n) => n.id === args.container.id)) { + const tops = childrenOf(buildTreeIndex(working), null); + const after = tops.length ? tops[tops.length - 1]!.id : null; + pushInsert(args.container.id, null, after, DAILY_CONTAINER_TEXT); + } + + if (args.chain && args.year && args.month && args.week) { + pushSorted( + args.container.id, + args.chain.yearKey, + scaffoldLabel(args.chain.yearKey), + args.year.id, + ); + pushSorted( + args.year.id, + args.chain.monthKey, + scaffoldLabel(args.chain.monthKey), + args.month.id, + ); + pushSorted( + args.month.id, + args.chain.weekKey, + scaffoldLabel(args.chain.weekKey), + args.week.id, + ); + } + + pushSorted(args.parentId, args.key, formatDayText(args.key), args.day.id); + + // ADR 0041 seedEntryLine: empty child in the SAME mutator when asked. + if (args.seedEntryLine && !working.some((n) => n.parentId === args.day.id)) { + pushInsert(createId(), args.day.id, null, ""); + } + + if (inserts.length === 0) { + // Day already present after concurrent heal — treat as success. + return hasNode(args.day.id) + ? { id: args.day.id } + : { id: null, cause: null }; + } + + const tx = lunora.store.mutators.materializeDailyNodes({ + userId: lunora.userId, + inserts, + createdAt: t, + updatedAt: t, + }); + try { + await tx.isPersisted.promise; + } catch (err) { + return { id: null, cause: err }; + } + if (hasNode(args.day.id)) return { id: args.day.id }; + resyncNodes(); + return { id: null, cause: null }; +} + /** Does `parentId` have any child in the LIVE nodes collection? Used for the * reopen-seed check, which must not trust a possibly-stale tree index. */ function hasChildInLiveCollection(parentId: string): boolean { + const lunoraNodes = liveOutlineNodes(); + if (lunoraNodes) return lunoraNodes.some((n) => n.parentId === parentId); return nodesCollection.toArray.some((n) => n.parentId === parentId); } From b4974de62cce68015369d67322f4f727ed70b3db Mon Sep 17 00:00:00 2001 From: Cameron Pak Date: Thu, 23 Jul 2026 13:33:24 -0500 Subject: [PATCH 25/59] docs: handoff close multi-select/daily/resolveMirror gaps Record new mutators and remaining flag-ON work (OPML, quick-add appendChild, e2e, KV phase 2b). Co-authored-by: Cursor --- HANDOFF.md | 50 +++++++++++++++++++++++++++++++------------------- 1 file changed, 31 insertions(+), 19 deletions(-) diff --git a/HANDOFF.md b/HANDOFF.md index 7882a4c3..a974e8c2 100644 --- a/HANDOFF.md +++ b/HANDOFF.md @@ -28,32 +28,43 @@ location.reload() # Or open http://localhost:3000/?lunora-sync=on ``` -Expect: empty Lunora shard seeds demo bullets via `seedIfEmpty`; Enter / Tab / Shift+Tab / Backspace / typing / Cmd+Z / `/mirror` use Lunora mutators + watermark checkpoints; Network shows `/_lunora/*` (not `/api/sync` for outline). Second tab same user → live converge. +Expect: empty Lunora shard seeds demo bullets via `seedIfEmpty`; Enter / Tab / Shift+Tab / Backspace / typing / Cmd+Z / `/mirror` / multi-select Tab·Shift+Tab·Delete / Today get-or-create use Lunora mutators + watermark checkpoints; Network shows `/_lunora/*` (not `/api/sync` for outline). Second tab same user → live converge. ## What landed (this slice) -### History restore + mirrors (flag ON) +### Multi-select batches + resolveMirror + daily (flag ON) + +| Mutator | Planner | Notes | +| ----------------------- | ------------------------------ | ------------------------------------------------------------------------------------------- | +| `removeMany` | `planRemoveMany` | Selection delete — ONE watermark; rebuilds between sibling deletes | +| `moveMany` | `planMoveMany` | Selection move / Send-to-Today later — ONE watermark | +| `indentMany` | `planIndentMany` | Selection Tab; `resolveMirror` → SOURCE | +| `outdentMany` | `planOutdentMany` | Selection Shift+Tab | +| `materializeDailyNodes` | `planMaterializeDailyNodes` | Daily scaffold+day(+seed) after kv `claimMapping`; ADR 0041 `seedEntryLine` in same mutator | +| `indent` (updated) | `planIndent` + `resolveMirror` | Mirror prev-sibling parents into SOURCE (was skipped when mirrors ON) | + +- Multi planners rebuild a working copy between sibling ops, then `planRestoreNodes`-diff to one plan. +- `mutations.ts` branches when `isLunoraSyncEnabled()`; selection-mode keeps calling `*ManyNodes` (no UI change). +- Daily: kv claims stay on `/api/kv` (phase 2b); node half is Lunora-only. `hasNode` / seed checks read Lunora collection when flag ON. + +### History restore + mirrors (still true) | Mutator | Planner | Notes | | -------------- | ------------------ | --------------------------------------------------------------------- | | `restoreNodes` | `planRestoreNodes` | Full target snapshot → one watermark; `runHistoryRestore` routes here | | `mirrorNode` | `planMirrorNode` | `/mirror` + `mutations.mirrorNode`; flatten + cycle + trueSource dest | -- `commitPlan` / `applyPlan` order: **deletes → patches → inserts** (restore-safe). -- Large undo: still **one** mutator (modal while awaiting `isPersisted`); no second history system. -- `removeNode` already deletes mirror instances (no cascade to source). - ### Prior mutator/planner parity (still true) -| Mutator | Planner | Notes | -| ----------------------------------- | ------------------------ | ------------------------------------------------------- | -| `insertSibling` | `planInsertSibling` | prior | -| `insertChildAtStart` | `planInsertChildAtStart` | Enter into expanded parent | -| `splitNode` | `planSplitNode` | Enter mid-split — ONE watermark (setText+insertSibling) | -| `indent` / `outdent` / `removeNode` | prior | prior | -| `moveNode` | `planMoveNode` | Cmd+Shift+↑/↓ via moveUp/moveDown → moveNode | -| `setText` / field toggles | matching `planSet*` | completed/collapsed/isTask/kind/bookmarkedAt | -| `seedIfEmpty` / `hello` | prior | prior | +| Mutator | Planner | Notes | +| ------------------------- | ------------------------ | -------------------------------------------------------- | +| `insertSibling` | `planInsertSibling` | prior | +| `insertChildAtStart` | `planInsertChildAtStart` | Enter into expanded parent | +| `splitNode` | `planSplitNode` | Enter mid-split — ONE watermark (setText+insertSibling) | +| `outdent` / `removeNode` | prior | prior | +| `moveNode` | `planMoveNode` | Cmd+Shift+↑/↓; edge reparent already resolves mirror ids | +| `setText` / field toggles | matching `planSet*` | completed/collapsed/isTask/kind/bookmarkedAt | +| `seedIfEmpty` / `hello` | prior | prior | ### Flag-swap architecture @@ -66,7 +77,7 @@ Flag ON: ↓ subscribeChanges tree-store.resetTreeFromNodes (ADR 0004 feed) ↑ - mutations (+ mirror) / runHistoryRestore → Lunora mutators + mutations (+ mirror / multi / daily) / runHistoryRestore → Lunora mutators runStructural → body only (watermark hold is checkpoints, not waitForSeq) ``` @@ -79,9 +90,10 @@ Flag ON: | `src/data/lunora-sync.ts` | start/stop, feed tree-store, seedIfEmpty | | `src/components/lunora-sync-host.tsx` | AuthGate child; LunoraProvider when flag ON | | `src/components/history-restore.tsx` | flag ON → `restoreNodes` mutator | +| `src/plugins/daily/get-or-create.ts` | flag ON → `materializeDailyNodes` (kv claims unchanged) | | `src/data/collection.ts` | flag ON → skip `/api/sync` socket | | `src/data/structural.ts` | flag ON → no `{ops}` / waitForSeq | -| `src/data/mutations.ts` | Lunora mutator surface (+ mirror) | +| `src/data/mutations.ts` | Lunora mutator surface (+ multi + resolveMirror) | | `src/data/outline-plans/` | shared pure planners + unit tests | | `lunora/mutators.ts` | server `defineMutator` twin | @@ -99,7 +111,7 @@ Flag ON: ## Known gaps (flag ON) -- **Not ported:** multi-select batches, daily get-or-create, indent/move `resolveMirror` when mirrors flag ON, drag-specific UX (moveNode covers fuse), OPML, full plugin structural paths +- **Not ported:** drag-specific UX polish, OPML import/export structural path, quick-add `appendChild` (still writes `nodesCollection`), full plugin structural paths, daily flat→nested migration under Lunora, `resyncNodes` no-op when flag ON - **e2e** still on old wire (`seedOutline`); flag must stay OFF for Playwright - **KV** side-collections still custom DO (phase 2b) - **No data migrate** from UserOutlineDO → Lunora shard yet (flag ON = empty/new Lunora outline) @@ -117,7 +129,7 @@ bun run test # includes flags + lunora-bridge + outline-plans 1. Lunora-aware e2e fixture (mock `/_lunora` or Miniflare) — keep `seedOutline` until then. 2. KV phase 2b; MCP remount; snapshot migrate; delete `UserOutlineDO` custom sync. -3. Multi-select / daily / `resolveMirror` indent when cutover nears. +3. Quick-add / OPML / drag polish / daily migration on Lunora. 4. Green gates → PR; **delete this `HANDOFF.md` in the shipping PR.** ## Note From 09831133e7a3f6daacaa314e877ac98f2e1bfd36 Mon Sep 17 00:00:00 2001 From: Cameron Pak Date: Thu, 23 Jul 2026 13:38:57 -0500 Subject: [PATCH 26/59] feat(lunora): appendChild, importNodes, and phase-2b kv tables Route quick-add born and OPML import through Lunora mutators when the sync flag is ON, and start side-collections (tagColors + savedQueries) on the same shard/clientSeq FIFO. dailyIndex stays on /api/kv. Co-authored-by: Cursor --- lunora/_generated/collections.ts | 8 ++ lunora/_generated/dataModel.ts | 50 ++++++- lunora/_generated/drizzle.shard.ts | 19 +++ lunora/_generated/functions.ts | 11 +- lunora/_generated/shard.ts | 72 ++++++++++ lunora/mutators.ts | 181 +++++++++++++++++++++++- lunora/schema.ts | 25 +++- lunora/shapes.ts | 20 +++ src/components/opml-import-dialog.tsx | 72 +++++++++- src/data/lunora-kv-store.ts | 24 ++++ src/data/lunora-outline-store.ts | 156 +++++++++++++++++++- src/data/lunora-sync.ts | 33 +++++ src/data/mutations.ts | 47 +++++- src/data/outline-plans/index.ts | 2 + src/data/outline-plans/planners.test.ts | 59 ++++++++ src/data/outline-plans/planners.ts | 33 +++++ src/data/saved-queries.ts | 117 +++++++++++++-- src/data/tag-colors.ts | 67 ++++++++- 18 files changed, 951 insertions(+), 45 deletions(-) create mode 100644 src/data/lunora-kv-store.ts diff --git a/lunora/_generated/collections.ts b/lunora/_generated/collections.ts index b9a4f709..8606645f 100644 --- a/lunora/_generated/collections.ts +++ b/lunora/_generated/collections.ts @@ -7,6 +7,14 @@ import type { Row } from "@lunora/db"; import type { Collection } from "@tanstack/db"; import { createCollection } from "@tanstack/db"; +/** Live collection for the `userSavedQueries` replication shape — pass the shape's validated `args` (its partition selector). */ +export const userSavedQueriesCollection = (client: LunoraClient, args?: Record): Collection => + createCollection(lunoraCollectionOptions({ client, shape: { args, name: "userSavedQueries" } }).config); + +/** Live collection for the `userTagColors` replication shape — pass the shape's validated `args` (its partition selector). */ +export const userTagColorsCollection = (client: LunoraClient, args?: Record): Collection => + createCollection(lunoraCollectionOptions({ client, shape: { args, name: "userTagColors" } }).config); + /** Live collection for the `wholeOutline` replication shape — pass the shape's validated `args` (its partition selector). */ export const wholeOutlineCollection = (client: LunoraClient, args?: Record): Collection => createCollection(lunoraCollectionOptions({ client, shape: { args, name: "wholeOutline" } }).config); diff --git a/lunora/_generated/dataModel.ts b/lunora/_generated/dataModel.ts index 0798cf0f..6f10b77e 100644 --- a/lunora/_generated/dataModel.ts +++ b/lunora/_generated/dataModel.ts @@ -33,7 +33,7 @@ export type { WhereOperators, } from "lunorash/server/data-model"; -export type TableName = "nodes" | "ratelimit_buckets"; +export type TableName = "nodes" | "tagColors" | "savedQueries" | "ratelimit_buckets"; export type Id = string & { readonly __table: TName }; @@ -55,6 +55,23 @@ export interface Doc_nodes { userId: string; } +export interface Doc_tagColors { + _id: Id<"tagColors">; + _creationTime: number; + tag: string; + color: string; + userId: string; +} + +export interface Doc_savedQueries { + _id: Id<"savedQueries">; + _creationTime: number; + name: string; + query: string; + createdAt: number; + userId: string; +} + export interface Doc_ratelimit_buckets { _id: Id<"ratelimit_buckets">; _creationTime: number; @@ -66,6 +83,8 @@ export interface Doc_ratelimit_buckets { export interface DataModel { nodes: Doc_nodes; + tagColors: Doc_tagColors; + savedQueries: Doc_savedQueries; ratelimit_buckets: Doc_ratelimit_buckets; } @@ -77,6 +96,8 @@ export type Doc = DataModel[T]; */ export interface IndexNamesByTable { nodes: "by_parent"; + tagColors: "by_tag"; + savedQueries: never; ratelimit_buckets: "by_key"; } @@ -85,6 +106,8 @@ export type IndexName = IndexNamesByTable[T]; /** Per-table search-index name union. `never` for tables without searchIndex. */ export interface SearchIndexNamesByTable { nodes: never; + tagColors: never; + savedQueries: never; ratelimit_buckets: never; } @@ -93,6 +116,8 @@ export type SearchIndexName = SearchIndexNamesByTable /** Per-table rank-index name union. `never` for tables without a rankIndex. */ export interface RankIndexNamesByTable { nodes: never; + tagColors: never; + savedQueries: never; ratelimit_buckets: never; } @@ -101,6 +126,8 @@ export type RankIndexName = RankIndexNamesByTable[T]; /** Per-table geo-index name union. `never` for tables without a geoIndex. */ export interface GeoIndexNamesByTable { nodes: never; + tagColors: never; + savedQueries: never; ratelimit_buckets: never; } @@ -127,6 +154,23 @@ export interface Insert_nodes { userId: string; } +export interface Insert_tagColors { + _id?: Id<"tagColors">; + _creationTime?: number; + tag: string; + color: string; + userId: string; +} + +export interface Insert_savedQueries { + _id?: Id<"savedQueries">; + _creationTime?: number; + name: string; + query: string; + createdAt: number; + userId: string; +} + export interface Insert_ratelimit_buckets { _id?: Id<"ratelimit_buckets">; _creationTime?: number; @@ -139,6 +183,8 @@ export interface Insert_ratelimit_buckets { /** Per-table insert shape, accepted by `ctx.db.
    .insert(...)`. */ export interface InsertModel { nodes: Insert_nodes; + tagColors: Insert_tagColors; + savedQueries: Insert_savedQueries; ratelimit_buckets: Insert_ratelimit_buckets; } @@ -162,6 +208,8 @@ export interface ManyRelation { /** Per-table relation map keyed by accessor name. `{}` for tables with none. */ export interface Relations { nodes: {}; + tagColors: {}; + savedQueries: {}; ratelimit_buckets: {}; } diff --git a/lunora/_generated/drizzle.shard.ts b/lunora/_generated/drizzle.shard.ts index 7d88f20d..cbc2a9cd 100644 --- a/lunora/_generated/drizzle.shard.ts +++ b/lunora/_generated/drizzle.shard.ts @@ -23,6 +23,25 @@ export const nodes = sqliteTable("nodes", { by_parent: index("by_parent").on(t.parentId), })); +export const tagColors = sqliteTable("tagColors", { + _id: text("_id").primaryKey(), + _creationTime: integer("_creationTime").notNull(), + tag: text("tag").notNull(), + color: text("color").notNull(), + userId: text("userId").notNull(), +}, (t) => ({ + by_tag: index("by_tag").on(t.tag), +})); + +export const savedQueries = sqliteTable("savedQueries", { + _id: text("_id").primaryKey(), + _creationTime: integer("_creationTime").notNull(), + name: text("name").notNull(), + query: text("query").notNull(), + createdAt: real("createdAt").notNull(), + userId: text("userId").notNull(), +}); + export const ratelimit_buckets = sqliteTable("ratelimit_buckets", { _id: text("_id").primaryKey(), _creationTime: integer("_creationTime").notNull(), diff --git a/lunora/_generated/functions.ts b/lunora/_generated/functions.ts index db661d08..ba0ea7bc 100644 --- a/lunora/_generated/functions.ts +++ b/lunora/_generated/functions.ts @@ -32,7 +32,11 @@ export interface RegisteredLunoraFunction { * emits (`api[namespace][fn].__lunoraRef === "namespace:fn"`). */ export const LUNORA_FUNCTIONS: Record = { + "mutators:appendChild": lunora_mutators_0.appendChild as unknown as RegisteredLunoraFunction, + "mutators:deleteSavedQuery": lunora_mutators_0.deleteSavedQuery as unknown as RegisteredLunoraFunction, + "mutators:deleteTagColor": lunora_mutators_0.deleteTagColor as unknown as RegisteredLunoraFunction, "mutators:hello": lunora_mutators_0.hello as unknown as RegisteredLunoraFunction, + "mutators:importNodes": lunora_mutators_0.importNodes as unknown as RegisteredLunoraFunction, "mutators:indent": lunora_mutators_0.indent as unknown as RegisteredLunoraFunction, "mutators:indentMany": lunora_mutators_0.indentMany as unknown as RegisteredLunoraFunction, "mutators:insertChildAtStart": lunora_mutators_0.insertChildAtStart as unknown as RegisteredLunoraFunction, @@ -43,6 +47,7 @@ export const LUNORA_FUNCTIONS: Record = { "mutators:moveNode": lunora_mutators_0.moveNode as unknown as RegisteredLunoraFunction, "mutators:outdent": lunora_mutators_0.outdent as unknown as RegisteredLunoraFunction, "mutators:outdentMany": lunora_mutators_0.outdentMany as unknown as RegisteredLunoraFunction, + "mutators:patchSavedQuery": lunora_mutators_0.patchSavedQuery as unknown as RegisteredLunoraFunction, "mutators:removeMany": lunora_mutators_0.removeMany as unknown as RegisteredLunoraFunction, "mutators:removeNode": lunora_mutators_0.removeNode as unknown as RegisteredLunoraFunction, "mutators:restoreNodes": lunora_mutators_0.restoreNodes as unknown as RegisteredLunoraFunction, @@ -54,6 +59,8 @@ export const LUNORA_FUNCTIONS: Record = { "mutators:setKind": lunora_mutators_0.setKind as unknown as RegisteredLunoraFunction, "mutators:setText": lunora_mutators_0.setText as unknown as RegisteredLunoraFunction, "mutators:splitNode": lunora_mutators_0.splitNode as unknown as RegisteredLunoraFunction, + "mutators:upsertSavedQuery": lunora_mutators_0.upsertSavedQuery as unknown as RegisteredLunoraFunction, + "mutators:upsertTagColor": lunora_mutators_0.upsertTagColor as unknown as RegisteredLunoraFunction, }; /** @@ -63,6 +70,8 @@ export const LUNORA_FUNCTIONS: Record = { * `shape_subscribe` (reads-as-permissions). */ export const LUNORA_SHAPES: Record = { + "userSavedQueries": lunora_shapes_1.userSavedQueries as unknown as RegisteredShape, + "userTagColors": lunora_shapes_1.userTagColors as unknown as RegisteredShape, "wholeOutline": lunora_shapes_1.wholeOutline as unknown as RegisteredShape, }; @@ -71,7 +80,7 @@ export const LUNORA_SHAPES: Record = { * ShardDO's `isCustomMutator` override routes through the client-watermark push * protocol (`x-lunora-client-id`/`x-lunora-client-seq` ordering). */ -export const LUNORA_MUTATOR_PATHS: ReadonlySet = new Set(["mutators:hello", "mutators:indent", "mutators:indentMany", "mutators:insertChildAtStart", "mutators:insertSibling", "mutators:materializeDailyNodes", "mutators:mirrorNode", "mutators:moveMany", "mutators:moveNode", "mutators:outdent", "mutators:outdentMany", "mutators:removeMany", "mutators:removeNode", "mutators:restoreNodes", "mutators:seedIfEmpty", "mutators:setBookmarkedAt", "mutators:setCollapsed", "mutators:setCompleted", "mutators:setIsTask", "mutators:setKind", "mutators:setText", "mutators:splitNode"]); +export const LUNORA_MUTATOR_PATHS: ReadonlySet = new Set(["mutators:appendChild", "mutators:deleteSavedQuery", "mutators:deleteTagColor", "mutators:hello", "mutators:importNodes", "mutators:indent", "mutators:indentMany", "mutators:insertChildAtStart", "mutators:insertSibling", "mutators:materializeDailyNodes", "mutators:mirrorNode", "mutators:moveMany", "mutators:moveNode", "mutators:outdent", "mutators:outdentMany", "mutators:patchSavedQuery", "mutators:removeMany", "mutators:removeNode", "mutators:restoreNodes", "mutators:seedIfEmpty", "mutators:setBookmarkedAt", "mutators:setCollapsed", "mutators:setCompleted", "mutators:setIsTask", "mutators:setKind", "mutators:setText", "mutators:splitNode", "mutators:upsertSavedQuery", "mutators:upsertTagColor"]); /** * Connection-lifecycle manifest: the function paths the generated ShardDO diff --git a/lunora/_generated/shard.ts b/lunora/_generated/shard.ts index c03034a2..0d2e182b 100644 --- a/lunora/_generated/shard.ts +++ b/lunora/_generated/shard.ts @@ -29,6 +29,15 @@ const LUNORA_TABLE_INDEXES: Record>; facade["nodes"] = bindTableFacade(db, "nodes"); + facade["tagColors"] = bindTableFacade(db, "tagColors"); + facade["savedQueries"] = bindTableFacade(db, "savedQueries"); facade["ratelimit_buckets"] = bindTableFacade(db, "ratelimit_buckets"); // `ctx.log`: the DO base builds the attributed logger (structured diff --git a/lunora/mutators.ts b/lunora/mutators.ts index 497ca9e8..8d8414a1 100644 --- a/lunora/mutators.ts +++ b/lunora/mutators.ts @@ -6,6 +6,8 @@ import { buildTreeIndex, docToNode, nodeToInsertFields, + planAppendChild, + planImportNodes, planIndent, planIndentMany, planInsertChildAtStart, @@ -31,18 +33,30 @@ import { type OutlinePlan, } from "../src/data/outline-plans"; +type ShardTable = "nodes" | "tagColors" | "savedQueries"; + /** Minimal mutator ctx — defineMutator's ServerContext is the base MutationCtx. */ type MutatorDb = { - query: (table: "nodes") => { + query: (table: ShardTable) => { collect: () => Promise & { _id: string }>>; + withIndex: ( + name: string, + fn: (q: { eq: (field: string, value: unknown) => unknown }) => unknown, + ) => { + first: () => Promise<(Record & { _id: string }) | null>; + collect: () => Promise & { _id: string }>>; + }; }; + get: ( + id: Id, + ) => Promise<(Record & { _id: string }) | null>; insert: ( - table: "nodes", + table: ShardTable, document: Record, options?: { clientId?: string }, ) => Promise; - patch: (id: Id<"nodes">, fields: Record) => Promise; - delete: (id: Id<"nodes">) => Promise; + patch: (id: Id, fields: Record) => Promise; + delete: (id: Id) => Promise; }; type MutatorCtx = { @@ -161,6 +175,38 @@ export const insertChildAtStart = defineMutator({ }, }); +/** Quick-add / append-at-end — server resolves last sibling (one watermark). */ +export const appendChild = defineMutator({ + args: { + id: idArg, + userId: userIdArg, + parentId: v.string().nullable(), + text: v.string(), + isTask: v.optional(v.boolean()), + kind: kindArg, + createdAt: tsArg, + updatedAt: tsArg, + }, + server: async (ctx, args) => { + const mctx = ctx as unknown as MutatorCtx; + assertOwner(mctx, args.userId); + const index = buildTreeIndex(await loadNodes(mctx)); + const plan = planAppendChild(index, { + id: args.id, + userId: args.userId, + parentId: args.parentId, + text: args.text, + isTask: args.isTask, + kind: args.kind, + createdAt: args.createdAt, + updatedAt: args.updatedAt, + }); + if (!plan) throw new Error("appendChild: invalid parent"); + await commitPlan(mctx, plan); + return { id: args.id }; + }, +}); + /** * Enter mid-split: left text stays on `id`, right text lands in `newId` sibling * — one DO transaction / watermark. @@ -457,6 +503,29 @@ export const restoreNodes = defineMutator({ }, }); +/** + * OPML / bulk insert-only batch. Chains pre-wired by the pure planner. + * Large imports may call this multiple times (clientSeq FIFO); a mid-import + * failure can leave earlier chunks durable — see HANDOFF. + */ +export const importNodes = defineMutator({ + args: { + userId: userIdArg, + nodes: v.array(nodeSnapshotArg), + }, + server: async (ctx, args) => { + const mctx = ctx as unknown as MutatorCtx; + assertOwner(mctx, args.userId); + const nodes: OutlineNode[] = args.nodes.map((n) => ({ + ...n, + kind: n.kind === "paragraph" ? "paragraph" : null, + })); + const plan = planImportNodes(nodes); + await commitPlan(mctx, plan); + return { count: nodes.length }; + }, +}); + /** `/mirror` — last-child mirror of source under targetParentId (ADR 0022). */ export const mirrorNode = defineMutator({ args: { @@ -559,7 +628,8 @@ export const outdentMany = defineMutator({ /** * Daily get-or-create node half — scaffold + day (+ optional seed) after the - * client has claimed ids via `/api/kv` (phase 2b keeps kv on the custom DO). + * client has claimed ids via `/api/kv` (dailyIndex stays on custom DO until + * claimMapping ports; tagColors/savedQueries are Lunora in this slice). */ export const materializeDailyNodes = defineMutator({ args: { @@ -590,3 +660,104 @@ export const materializeDailyNodes = defineMutator({ return { count: args.inserts.length }; }, }); + +// --- Phase 2b side-collections (tagColors + savedQueries) ------------------- + +/** Upsert a tag color. `tag` is the clientId / `_id`. */ +export const upsertTagColor = defineMutator({ + args: { + userId: userIdArg, + tag: v.string(), + color: v.string(), + }, + server: async (ctx, args) => { + const mctx = ctx as unknown as MutatorCtx; + assertOwner(mctx, args.userId); + const existing = await mctx.db.get(args.tag as Id<"tagColors">); + if (existing) { + await mctx.db.patch(args.tag as Id<"tagColors">, { + color: args.color, + }); + } else { + await mctx.db.insert( + "tagColors", + { tag: args.tag, color: args.color, userId: args.userId }, + { clientId: args.tag }, + ); + } + }, +}); + +export const deleteTagColor = defineMutator({ + args: { userId: userIdArg, tag: v.string() }, + server: async (ctx, args) => { + const mctx = ctx as unknown as MutatorCtx; + assertOwner(mctx, args.userId); + const existing = await mctx.db.get(args.tag as Id<"tagColors">); + if (existing) await mctx.db.delete(args.tag as Id<"tagColors">); + }, +}); + +/** Insert a saved query row (`id` = clientId). */ +export const upsertSavedQuery = defineMutator({ + args: { + userId: userIdArg, + id: idArg, + name: v.string(), + query: v.string(), + createdAt: tsArg, + }, + server: async (ctx, args) => { + const mctx = ctx as unknown as MutatorCtx; + assertOwner(mctx, args.userId); + const existing = await mctx.db.get(args.id as Id<"savedQueries">); + if (existing) { + await mctx.db.patch(args.id as Id<"savedQueries">, { + name: args.name, + query: args.query, + createdAt: args.createdAt, + }); + } else { + await mctx.db.insert( + "savedQueries", + { + name: args.name, + query: args.query, + createdAt: args.createdAt, + userId: args.userId, + }, + { clientId: args.id }, + ); + } + }, +}); + +export const patchSavedQuery = defineMutator({ + args: { + userId: userIdArg, + id: idArg, + name: v.optional(v.string()), + query: v.optional(v.string()), + }, + server: async (ctx, args) => { + const mctx = ctx as unknown as MutatorCtx; + assertOwner(mctx, args.userId); + const existing = await mctx.db.get(args.id as Id<"savedQueries">); + if (!existing) return; + const fields: Record = {}; + if (args.name !== undefined) fields.name = args.name; + if (args.query !== undefined) fields.query = args.query; + if (Object.keys(fields).length === 0) return; + await mctx.db.patch(args.id as Id<"savedQueries">, fields); + }, +}); + +export const deleteSavedQuery = defineMutator({ + args: { userId: userIdArg, id: idArg }, + server: async (ctx, args) => { + const mctx = ctx as unknown as MutatorCtx; + assertOwner(mctx, args.userId); + const existing = await mctx.db.get(args.id as Id<"savedQueries">); + if (existing) await mctx.db.delete(args.id as Id<"savedQueries">); + }, +}); diff --git a/lunora/schema.ts b/lunora/schema.ts index 286ddb1a..4b714048 100644 --- a/lunora/schema.ts +++ b/lunora/schema.ts @@ -3,10 +3,12 @@ import { defineSchema, defineTable, v } from "lunorash/server"; import { ratelimit } from "./ratelimit/schema"; /** - * Outline nodes — Dotflowy Node field parity + Lunora `userId` shard key. - * Dotflowy `id` maps to Lunora `_id` via `clientId` on insert. + * Outline nodes + kv side-collections — Dotflowy field parity + Lunora + * `userId` shard key. Dotflowy `id` / kv keys map to Lunora `_id` via + * `clientId` on insert. * - * Phase-2 compose stub: lives beside UserOutlineDO until collection cutover. + * Phase 2b: `tagColors` + `savedQueries` ride Lunora when the sync flag is ON. + * `dailyIndex` stays on `/api/kv` until claimMapping lands (atomic get-or-create). */ export default defineSchema({ nodes: defineTable({ @@ -26,4 +28,21 @@ export default defineSchema({ }) .shardBy("userId") .index("by_parent", ["parentId"]), + + /** Custom tag colors (ADR 0007). `_id` = normalized tag via clientId. */ + tagColors: defineTable({ + tag: v.string(), + color: v.string(), + userId: v.string(), + }) + .shardBy("userId") + .index("by_tag", ["tag"]), + + /** Saved filter queries (ADR 0048). `_id` = row id via clientId. */ + savedQueries: defineTable({ + name: v.string(), + query: v.string(), + createdAt: v.number(), + userId: v.string(), + }).shardBy("userId"), }).extend(ratelimit.extension); diff --git a/lunora/shapes.ts b/lunora/shapes.ts index f22aa4ed..865cee4a 100644 --- a/lunora/shapes.ts +++ b/lunora/shapes.ts @@ -14,3 +14,23 @@ export const wholeOutline = defineShape({ return { userId }; }, }); + +/** Per-user tag color rows (phase 2b). */ +export const userTagColors = defineShape({ + args: { userId: v.string() }, + table: "tagColors", + where: (ctx, { userId }) => { + if (!ctx.auth.userId || ctx.auth.userId !== userId) return { OR: [] }; + return { userId }; + }, +}); + +/** Per-user saved filter queries (phase 2b). */ +export const userSavedQueries = defineShape({ + args: { userId: v.string() }, + table: "savedQueries", + where: (ctx, { userId }) => { + if (!ctx.auth.userId || ctx.auth.userId !== userId) return { OR: [] }; + return { userId }; + }, +}); diff --git a/src/components/opml-import-dialog.tsx b/src/components/opml-import-dialog.tsx index 574dd747..c51539e4 100644 --- a/src/components/opml-import-dialog.tsx +++ b/src/components/opml-import-dialog.tsx @@ -4,7 +4,9 @@ import { CircleCheckIcon, Loader2Icon, TriangleAlertIcon } from "lucide-react"; import { useEffect, useRef, useState, type ChangeEvent } from "react"; import { nodesCollection } from "../data/collection"; +import { isLunoraSyncEnabled } from "../data/flags"; import { capture, drop } from "../data/history"; +import { getLunoraOutlineContext } from "../data/lunora-sync"; import { OPML_APP_MAX_NODES, OpmlEmpty, @@ -14,6 +16,7 @@ import { type OpmlImportResult, type OpmlImportReport, } from "../data/opml-import"; +import { makeOutlineNode, type OutlineNode } from "../data/outline-plans"; import { runStructuralSliced } from "../data/structural"; import { childrenOf, makeNode, now } from "../data/tree"; import { getTreeIndex } from "../data/tree-store"; @@ -37,13 +40,13 @@ import { * (More menu + Cmd+K) reach it through `openOpmlImport()`. * * The commit is the client write path, not a new endpoint: one history - * `capture` (a single Cmd+Z removes the whole import), then ONE - * `runStructuralSliced` transaction — every insert lands as one `POST - * /api/nodes {ops}` → DO `applyBatch`, whose reply carries the FINAL seq of the - * chunked changelog (>500-op batches echo as several frames) and `waitForSeq` - * holds the optimistic overlay across all of them. Any fault rejects the - * transaction, TanStack rolls the optimistic state back, and the dialog reports - * "nothing was imported" — retry-safe, never a half-import. + * `capture` (a single Cmd+Z removes the whole import), then — flag OFF — ONE + * `runStructuralSliced` transaction (every insert lands as one `POST + * /api/nodes {ops}` → DO `applyBatch`). Flag ON (ADR 0055): chunked Lunora + * `importNodes` mutators (clientSeq FIFO, ~500 nodes/watermark). A mid-import + * failure on the Lunora path can leave earlier chunks durable; the dialog still + * reports failure and does not claim success. Flag-OFF faults reject the + * transaction, TanStack rolls back, and nothing was imported. * * The optimistic inserts are applied in ~500-node SLICES that yield to the * event loop between applications (multiple `mutate` calls on the one @@ -234,6 +237,61 @@ export function OpmlImportDialog() { // ONE undo point BEFORE the batch: a single Cmd+Z removes the whole import. capture(index, null); + + if (isLunoraSyncEnabled()) { + const lunora = getLunoraOutlineContext(); + if (!lunora) { + drop(); + setStage({ + kind: "error", + title: "Import failed", + detail: "Lunora sync is not ready. Try again in a moment.", + }); + return; + } + const outlineNodes: OutlineNode[] = [ + makeOutlineNode({ + id: containerId, + userId: lunora.userId, + parentId: null, + prevSiblingId: lastTop, + text: containerText(timestamp), + collapsed: true, + createdAt: timestamp, + updatedAt: timestamp, + }), + ]; + for (const op of plan.ops) { + if (op.op === "delete") continue; + outlineNodes.push({ ...op.value, userId: lunora.userId }); + } + try { + let applied = 0; + const total = outlineNodes.length; + for (let i = 0; i < outlineNodes.length; i += IMPORT_SLICE_NODES) { + const chunk = outlineNodes.slice(i, i + IMPORT_SLICE_NODES); + const tx = lunora.store.mutators.importNodes({ + userId: lunora.userId, + nodes: chunk, + }); + await tx.isPersisted.promise; + applied += chunk.length; + setStage({ kind: "importing", count: total, applied }); + await new Promise((r) => setTimeout(r, 0)); + } + setStage({ kind: "success", containerId, count: plan.count }); + } catch { + drop(); + setStage({ + kind: "error", + title: "Import failed", + detail: + "The outline could not be fully saved. Earlier chunks may have landed — undo or re-import carefully.", + }); + } + return; + } + // The plan is insert-only, emitted depth-first pre-order with the sibling // chain wired by construction — replayed verbatim into the collection, in // yielding slices so the progress counter below actually paints. `applied` diff --git a/src/data/lunora-kv-store.ts b/src/data/lunora-kv-store.ts new file mode 100644 index 00000000..04c85052 --- /dev/null +++ b/src/data/lunora-kv-store.ts @@ -0,0 +1,24 @@ +/** + * Lunora row types for kv side-collections (ADR 0055 phase 2b). + * Collections + mutators are wired in `lunora-outline-store.ts` (one + * `bindMutators` / clientSeq FIFO with outline writes). + * + * dailyIndex stays on `/api/kv` until claimMapping ports. + */ + +export type TagColorRowDoc = { + _id: string; + tag: string; + color: string; + userId: string; + _creationTime?: number; +} & Record; + +export type SavedQueryRowDoc = { + _id: string; + name: string; + query: string; + createdAt: number; + userId: string; + _creationTime?: number; +} & Record; diff --git a/src/data/lunora-outline-store.ts b/src/data/lunora-outline-store.ts index f11a0439..78a1e757 100644 --- a/src/data/lunora-outline-store.ts +++ b/src/data/lunora-outline-store.ts @@ -10,9 +10,13 @@ import { lunoraCollectionOptions } from "@lunora/db"; import { bindMutators, defineMutator } from "@lunora/db/mutators"; import { createCollection, type Collection } from "@tanstack/db"; +import type { SavedQueryRowDoc, TagColorRowDoc } from "./lunora-kv-store"; + import { buildTreeIndex, nodeToRow, + planAppendChild, + planImportNodes, planIndent, planIndentMany, planInsertChildAtStart, @@ -67,12 +71,18 @@ function snapshotNodes(collection: Collection): OutlineNode[] { export type OutlineStore = { collection: Collection; + /** Phase 2b — Lunora tag colors (flag ON). */ + tagColors: Collection; + /** Phase 2b — Lunora saved queries (flag ON). */ + savedQueries: Collection; mutators: ReturnType; }; function bindOutlineMutators( client: LunoraClient, collection: Collection, + tagColors: Collection, + savedQueries: Collection, checkpoints: ReturnType< typeof lunoraCollectionOptions >["checkpoints"], @@ -82,7 +92,11 @@ function bindOutlineMutators( client, { checkpoints, - collections: { nodes: collection as never }, + collections: { + nodes: collection as never, + tagColors: tagColors as never, + savedQueries: savedQueries as never, + }, shardKey: userId, }, { @@ -121,6 +135,32 @@ function bindOutlineMutators( if (plan) applyPlanToCollection(collection, plan); }, }), + appendChild: defineMutator<{ + id: string; + userId: string; + parentId: string | null; + text: string; + isTask?: boolean; + kind?: "paragraph" | null; + createdAt: number; + updatedAt: number; + }>({ + serverRef: "mutators:appendChild", + apply: (_ctx, args) => { + const index = buildTreeIndex(snapshotNodes(collection)); + const plan = planAppendChild(index, args); + if (plan) applyPlanToCollection(collection, plan); + }, + }), + importNodes: defineMutator<{ + userId: string; + nodes: OutlineNode[]; + }>({ + serverRef: "mutators:importNodes", + apply: (_ctx, args) => { + applyPlanToCollection(collection, planImportNodes(args.nodes)); + }, + }), splitNode: defineMutator<{ id: string; newId: string; @@ -409,11 +449,88 @@ function bindOutlineMutators( if (plan) applyPlanToCollection(collection, plan); }, }), + // --- phase 2b kv (same clientSeq FIFO as outline) --- + upsertTagColor: defineMutator<{ + userId: string; + tag: string; + color: string; + }>({ + serverRef: "mutators:upsertTagColor", + apply: (_ctx, args) => { + if (tagColors.has(args.tag)) { + tagColors.update(args.tag, (draft) => { + draft.color = args.color; + }); + } else { + tagColors.insert({ + _id: args.tag, + tag: args.tag, + color: args.color, + userId: args.userId, + _creationTime: Date.now(), + }); + } + }, + }), + deleteTagColor: defineMutator<{ userId: string; tag: string }>({ + serverRef: "mutators:deleteTagColor", + apply: (_ctx, args) => { + if (tagColors.has(args.tag)) tagColors.delete(args.tag); + }, + }), + upsertSavedQuery: defineMutator<{ + userId: string; + id: string; + name: string; + query: string; + createdAt: number; + }>({ + serverRef: "mutators:upsertSavedQuery", + apply: (_ctx, args) => { + if (savedQueries.has(args.id)) { + savedQueries.update(args.id, (draft) => { + draft.name = args.name; + draft.query = args.query; + draft.createdAt = args.createdAt; + }); + } else { + savedQueries.insert({ + _id: args.id, + name: args.name, + query: args.query, + createdAt: args.createdAt, + userId: args.userId, + _creationTime: args.createdAt, + }); + } + }, + }), + patchSavedQuery: defineMutator<{ + userId: string; + id: string; + name?: string; + query?: string; + }>({ + serverRef: "mutators:patchSavedQuery", + apply: (_ctx, args) => { + if (!savedQueries.has(args.id)) return; + savedQueries.update(args.id, (draft) => { + if (args.name !== undefined) draft.name = args.name; + if (args.query !== undefined) draft.query = args.query; + }); + }, + }), + deleteSavedQueryRow: defineMutator<{ userId: string; id: string }>({ + serverRef: "mutators:deleteSavedQuery", + apply: (_ctx, args) => { + if (savedQueries.has(args.id)) savedQueries.delete(args.id); + }, + }), }, ); } -/** Build the outline collection + bound mutators for one signed-in user. */ +/** Build outline + phase-2b kv collections + one bound mutator surface. */ export function createOutlineStore( client: LunoraClient, userId: string, @@ -428,8 +545,39 @@ export function createOutlineStore( }, load: "eager", }); + const tagOpts = lunoraCollectionOptions({ + client, + id: `tagColors:${userId}`, + shape: { + name: "userTagColors", + args: { userId }, + shardKey: userId, + }, + load: "eager", + }); + const savedOpts = lunoraCollectionOptions({ + client, + id: `savedQueries:${userId}`, + shape: { + name: "userSavedQueries", + args: { userId }, + shardKey: userId, + }, + load: "eager", + }); const collection = createCollection(config); - const mutators = bindOutlineMutators(client, collection, checkpoints, userId); - return { collection, mutators }; + const tagColors = createCollection(tagOpts.config); + const savedQueries = createCollection(savedOpts.config); + // wholeOutline checkpoints gate overlay drop for the shared clientSeq FIFO + // (watermark is per-client on the shard, not per-shape). + const mutators = bindOutlineMutators( + client, + collection, + tagColors, + savedQueries, + checkpoints, + userId, + ); + return { collection, tagColors, savedQueries, mutators }; } diff --git a/src/data/lunora-sync.ts b/src/data/lunora-sync.ts index 749b89ea..7a923816 100644 --- a/src/data/lunora-sync.ts +++ b/src/data/lunora-sync.ts @@ -17,6 +17,11 @@ import { getLunoraClient } from "./lunora-client"; import { createOutlineStore, type OutlineStore } from "./lunora-outline-store"; import { shouldSeedOutline, seedEmptyOutline } from "./outline-plans"; import { notifySaveFailed } from "./save-failure"; +import { + bindLunoraSavedQueries, + unbindLunoraSavedQueries, +} from "./saved-queries"; +import { bindLunoraTagColors, unbindLunoraTagColors } from "./tag-colors"; import { resetTreeFromNodes } from "./tree-store"; export type LunoraOutlineContext = { @@ -54,6 +59,32 @@ export function startLunoraOutlineSync(userId: string): void { const store = createOutlineStore(getLunoraClient(), userId); ctx = { userId, store }; + // Phase 2b: side-collections ride the same flag (dailyIndex stays on /api/kv). + bindLunoraTagColors(store.tagColors, { + upsert: (tag, color) => + trackLunoraMutation( + store.mutators.upsertTagColor({ userId, tag, color }), + ), + remove: (tag) => + trackLunoraMutation(store.mutators.deleteTagColor({ userId, tag })), + }); + bindLunoraSavedQueries(store.savedQueries, { + upsert: (row) => + trackLunoraMutation( + store.mutators.upsertSavedQuery({ + userId, + id: row.id, + name: row.name, + query: row.query, + createdAt: row.createdAt, + }), + ), + patchName: (id, name) => + trackLunoraMutation(store.mutators.patchSavedQuery({ userId, id, name })), + remove: (id) => + trackLunoraMutation(store.mutators.deleteSavedQueryRow({ userId, id })), + }); + collectionSub = store.collection.subscribeChanges( () => { feedTreeFromCollection(store); @@ -99,6 +130,8 @@ function maybeSeed(store: OutlineStore, userId: string): void { export function stopLunoraOutlineSync(): void { collectionSub?.unsubscribe(); collectionSub = null; + unbindLunoraTagColors(); + unbindLunoraSavedQueries(); ctx = null; seedStarted = false; } diff --git a/src/data/mutations.ts b/src/data/mutations.ts index 5ffed711..fc8ffe96 100644 --- a/src/data/mutations.ts +++ b/src/data/mutations.ts @@ -219,21 +219,54 @@ export function splitNode( } /** - * Append a node at the end of `parentId`'s children. Used by the - * first-run seed, where we don't have a live TreeIndex in scope and the - * caller knows the parent is empty or has a known last child. + * Append a node at the end of `parentId`'s children. Used by quick-add born + * capture and the legacy first-run seed. * - * Pass `prevSiblingId` explicitly so seed code owns the wiring. `id` lets a - * caller supply the node id up front (the daily plugin's claimed container id); - * defaults to a fresh id. + * Flag OFF: pass `prevSiblingId` explicitly (caller owns the wiring). Flag ON: + * Lunora `appendChild` resolves the last sibling server-side (one watermark); + * `prevSiblingId` is ignored for the mutator path. + * + * `id` lets a caller supply the node id up front; defaults to a fresh id. + * Optional `isTask` / `kind` let quick-add fold `/todo`/`/paragraph` into the + * same born mutator when known at create time. */ export function appendChild( parentId: string | null, prevSiblingId: string | null = null, text = "", id = createId(), + opts?: { isTask?: boolean; kind?: NodeKind }, ): string { - nodesCollection.insert(makeNode({ id, parentId, prevSiblingId, text })); + if (isLunoraSyncEnabled()) { + const lunora = getLunoraOutlineContext(); + if (lunora) { + const t = now(); + trackLunoraMutation( + lunora.store.mutators.appendChild({ + id, + userId: lunora.userId, + parentId, + text, + isTask: opts?.isTask, + kind: opts?.kind, + createdAt: t, + updatedAt: t, + }), + ); + return id; + } + } + + nodesCollection.insert( + makeNode({ + id, + parentId, + prevSiblingId, + text, + isTask: opts?.isTask, + kind: opts?.kind, + }), + ); return id; } diff --git a/src/data/outline-plans/index.ts b/src/data/outline-plans/index.ts index 7ce853c3..7f2421ba 100644 --- a/src/data/outline-plans/index.ts +++ b/src/data/outline-plans/index.ts @@ -11,6 +11,8 @@ export { makeOutlineNode, planInsertSibling, planInsertChildAtStart, + planAppendChild, + planImportNodes, planIndent, planOutdent, planRemoveNode, diff --git a/src/data/outline-plans/planners.test.ts b/src/data/outline-plans/planners.test.ts index 490caf59..cbf1bd3d 100644 --- a/src/data/outline-plans/planners.test.ts +++ b/src/data/outline-plans/planners.test.ts @@ -8,6 +8,8 @@ import { makeOutlineNode, orderSiblings, planIndent, + planAppendChild, + planImportNodes, planInsertChildAtStart, planInsertSibling, planIndentMany, @@ -198,6 +200,63 @@ describe("sibling-chain invariant (ADR 0009) via outline-plans", () => { }); }); +describe("planAppendChild", () => { + it("appends after the current last sibling", () => { + let nodes = seedFlat(["a", "b"]); + const plan = planAppendChild(buildTreeIndex(nodes), { + id: "c", + userId: USER, + parentId: null, + text: "c", + createdAt: 10, + updatedAt: 10, + }); + expect(plan).not.toBeNull(); + nodes = applyPlan(nodes, plan!); + expect(assertChainOk(nodes, null)).toEqual(["a", "b", "c"]); + expect(nodes.find((n) => n.id === "c")!.prevSiblingId).toBe("b"); + }); + + it("inserts as sole child when parent is empty", () => { + let nodes = seedFlat(["p"]); + const plan = planAppendChild(buildTreeIndex(nodes), { + id: "c", + userId: USER, + parentId: "p", + text: "c", + createdAt: 10, + updatedAt: 10, + }); + nodes = applyPlan(nodes, plan!); + expect(assertChainOk(nodes, "p")).toEqual(["c"]); + }); +}); + +describe("planImportNodes", () => { + it("is insert-only with no patches", () => { + const batch = [ + makeOutlineNode({ + id: "x", + userId: USER, + parentId: null, + prevSiblingId: null, + text: "x", + }), + makeOutlineNode({ + id: "y", + userId: USER, + parentId: null, + prevSiblingId: "x", + text: "y", + }), + ]; + const plan = planImportNodes(batch); + expect(plan.deletes).toEqual([]); + expect(plan.patches).toEqual([]); + expect(plan.inserts.map((n) => n.id)).toEqual(["x", "y"]); + }); +}); + describe("planInsertChildAtStart", () => { it("prepends under parent and repoints the old head", () => { let nodes = seedFlat(["p"]); diff --git a/src/data/outline-plans/planners.ts b/src/data/outline-plans/planners.ts index 932a2b80..4410758a 100644 --- a/src/data/outline-plans/planners.ts +++ b/src/data/outline-plans/planners.ts @@ -253,6 +253,39 @@ export function planInsertChildAtStart( return planInsertSibling(index, { ...args, afterId: null }); } +/** + * Append as LAST child of `parentId` (server resolves the current last sibling). + * Port of Dotflowy `appendChild` / quick-add born capture — one watermark. + */ +export function planAppendChild( + index: TreeIndex, + args: { + id: string; + userId: string; + parentId: string | null; + text: string; + isTask?: boolean; + kind?: "paragraph" | null; + createdAt: number; + updatedAt: number; + }, +): OutlinePlan | null { + if (args.parentId !== null && !index.byId.has(args.parentId)) return null; + const siblings = childrenOf(index, args.parentId); + const afterId = siblings.length ? siblings[siblings.length - 1]!.id : null; + return planInsertSibling(index, { ...args, afterId }); +} + +/** + * Bulk insert-only plan (OPML import chunks). Chains are pre-wired by + * `planOpmlImport`; no patches. Used by Lunora `importNodes`. + */ +export function planImportNodes(nodes: readonly OutlineNode[]): OutlinePlan { + const plan = emptyPlan(); + for (const node of nodes) plan.inserts.push(node); + return plan; +} + /** Field-only text update. */ export function planSetText( index: TreeIndex, diff --git a/src/data/saved-queries.ts b/src/data/saved-queries.ts index 6eb4d76a..ae03020f 100644 --- a/src/data/saved-queries.ts +++ b/src/data/saved-queries.ts @@ -3,6 +3,7 @@ import { createCollection } from "@tanstack/react-db"; import { Schema } from "effect"; import { useCallback, useSyncExternalStore } from "react"; +import { isLunoraSyncEnabled } from "./flags"; import { kvDelete, kvFetch, kvPut, toKvKeys, toKvRows } from "./kv-api"; import { queryClient } from "./query-client"; import { @@ -71,26 +72,47 @@ export const savedQueriesCollection = createCollection( // --- Mutations -------------------------------------------------------------- +type LunoraSavedQueryWrites = { + list: () => SavedQueryRow[]; + upsert: (row: SavedQueryRow) => void; + patchName: (id: string, name: string) => void; + remove: (id: string) => void; +}; + +let lunoraWrites: LunoraSavedQueryWrites | null = null; + +function liveRows(): SavedQueryRow[] { + if (lunoraWrites) return lunoraWrites.list(); + return savedQueriesCollection.toArray; +} + /** Save the current query, name defaulting to the query text (ADR 0048 * decision 3). No-op on an empty query or one already saved (idempotent, so a * double-save can't create a duplicate). Returns the row id, or null. */ export function saveQuery(query: string, name?: string): string | null { const q = normalizeQuery(query); if (!q) return null; - const existing = findSavedQuery(savedQueriesCollection.toArray, q); + const existing = findSavedQuery(liveRows(), q); if (existing) return existing.id; const id = typeof crypto !== "undefined" && "randomUUID" in crypto ? crypto.randomUUID() : `sq_${Date.now()}_${Math.random().toString(36).slice(2)}`; const trimmedName = name?.trim(); - savedQueriesCollection.insert({ + const nameVal = + trimmedName && trimmedName.length > 0 ? trimmedName : defaultQueryName(q); + const createdAt = Date.now(); + const row: SavedQueryRow = { id, - name: - trimmedName && trimmedName.length > 0 ? trimmedName : defaultQueryName(q), + name: nameVal, query: q, - createdAt: Date.now(), - }); + createdAt, + }; + if (lunoraWrites) { + lunoraWrites.upsert(row); + return id; + } + savedQueriesCollection.insert(row); return id; } @@ -98,14 +120,19 @@ export function saveQuery(query: string, name?: string): string | null { export function unsaveQuery(query: string): void { const q = normalizeQuery(query); if (!q) return; - for (const row of savedQueriesCollection.toArray) { - if (normalizeQuery(row.query) === q) savedQueriesCollection.delete(row.id); + for (const row of liveRows()) { + if (normalizeQuery(row.query) !== q) continue; + if (lunoraWrites) { + lunoraWrites.remove(row.id); + continue; + } + savedQueriesCollection.delete(row.id); } } /** Pin toggle: save if this query isn't saved, else unsave it. */ export function toggleSavedQuery(query: string): void { - if (isQuerySaved(savedQueriesCollection.toArray, query)) unsaveQuery(query); + if (isQuerySaved(liveRows(), query)) unsaveQuery(query); else saveQuery(query); } @@ -114,16 +141,22 @@ export function toggleSavedQuery(query: string): void { export function renameSavedQuery(id: string, name: string): void { const n = name.trim(); if (!n) return; - if (savedQueriesCollection.toArray.some((r) => r.id === id)) { - savedQueriesCollection.update(id, (draft) => void (draft.name = n)); + if (!liveRows().some((r) => r.id === id)) return; + if (lunoraWrites) { + lunoraWrites.patchName(id, n); + return; } + savedQueriesCollection.update(id, (draft) => void (draft.name = n)); } /** Delete a saved query by id (the popover row's X). */ export function deleteSavedQuery(id: string): void { - if (savedQueriesCollection.toArray.some((r) => r.id === id)) { - savedQueriesCollection.delete(id); + if (!liveRows().some((r) => r.id === id)) return; + if (lunoraWrites) { + lunoraWrites.remove(id); + return; } + savedQueriesCollection.delete(id); } // --- Reactive read (mirrors tag-colors.ts; prerender-safe) ------------------ @@ -136,15 +169,69 @@ let rows: SavedQueryRow[] = EMPTY; let sorted: SavedQueryRow[] = EMPTY; const listeners = new Set<() => void>(); let started = false; +let lunoraUnsub: (() => void) | null = null; -function rebuild() { - rows = savedQueriesCollection.toArray; +function rebuildFrom(source: SavedQueryRow[]) { + rows = source; sorted = rows.length === 0 ? EMPTY : sortSavedNewestFirst(rows); for (const l of listeners) l(); } +function rebuild() { + rebuildFrom(savedQueriesCollection.toArray); +} + +/** + * Called from `lunora-sync` when flag ON — subscribe to the Lunora shape and + * skip `/api/kv` for this collection. + */ +export function bindLunoraSavedQueries( + collection: { + toArray: Array<{ + _id: string; + name?: unknown; + query?: unknown; + createdAt?: unknown; + }>; + subscribeChanges: ( + cb: () => void, + opts?: { includeInitialState?: boolean }, + ) => { unsubscribe: () => void }; + }, + writes: Omit, +): void { + lunoraUnsub?.(); + const mapRows = (): SavedQueryRow[] => + collection.toArray.map((r) => ({ + id: r._id, + name: String(r.name ?? ""), + query: String(r.query ?? ""), + createdAt: Number(r.createdAt ?? 0), + })); + lunoraWrites = { + list: mapRows, + ...writes, + }; + const sub = collection.subscribeChanges(() => rebuildFrom(mapRows()), { + includeInitialState: true, + }); + lunoraUnsub = () => sub.unsubscribe(); + started = true; +} + +/** Tear down Lunora feed (flag OFF / account switch). */ +export function unbindLunoraSavedQueries(): void { + lunoraUnsub?.(); + lunoraUnsub = null; + lunoraWrites = null; + rows = EMPTY; + sorted = EMPTY; + started = false; +} + function ensureStarted() { if (started || typeof window === "undefined") return; + if (isLunoraSyncEnabled()) return; started = true; savedQueriesCollection.subscribeChanges(() => rebuild(), { includeInitialState: true, diff --git a/src/data/tag-colors.ts b/src/data/tag-colors.ts index e161ffc7..aeb91aa7 100644 --- a/src/data/tag-colors.ts +++ b/src/data/tag-colors.ts @@ -3,6 +3,7 @@ import { createCollection } from "@tanstack/react-db"; import { Schema } from "effect"; import { useCallback, useSyncExternalStore } from "react"; +import { isLunoraSyncEnabled } from "./flags"; import { kvDelete, kvFetch, kvPut, toKvKeys, toKvRows } from "./kv-api"; import { queryClient } from "./query-client"; import { normalizeTag } from "./tags"; @@ -131,10 +132,21 @@ export const tagColorsCollection = createCollection( }), ); +type LunoraTagColorWrites = { + upsert: (tag: string, color: TagColor) => void; + remove: (tag: string) => void; +}; + +let lunoraWrites: LunoraTagColorWrites | null = null; + /** Set (or change) a tag's color -- applies to every instance of the tag. */ export function setTagColor(tag: string, color: TagColor) { const key = normalizeTag(tag); if (!key) return; + if (lunoraWrites) { + lunoraWrites.upsert(key, color); + return; + } const exists = tagColorsCollection.toArray.some((r) => r.tag === key); if (exists) tagColorsCollection.update(key, (draft) => void (draft.color = color)); @@ -144,6 +156,11 @@ export function setTagColor(tag: string, color: TagColor) { /** Clear a tag's color -- back to the neutral outlined default ("Auto"). */ export function clearTagColor(tag: string) { const key = normalizeTag(tag); + if (!key) return; + if (lunoraWrites) { + lunoraWrites.remove(key); + return; + } if (tagColorsCollection.toArray.some((r) => r.tag === key)) { tagColorsCollection.delete(key); } @@ -175,14 +192,60 @@ const EMPTY: TagColorRow[] = []; let rows: TagColorRow[] = EMPTY; const listeners = new Set<() => void>(); let started = false; +let lunoraUnsub: (() => void) | null = null; -function rebuild() { - rows = tagColorsCollection.toArray; +function rebuildFrom(source: TagColorRow[]) { + rows = source; for (const l of listeners) l(); } +function rebuild() { + rebuildFrom(tagColorsCollection.toArray); +} + +/** + * Called from `lunora-sync` when flag ON — subscribe to the Lunora shape and + * skip `/api/kv` for this collection. + */ +export function bindLunoraTagColors( + collection: { + toArray: TagColorRowDocLike[]; + subscribeChanges: ( + cb: () => void, + opts?: { includeInitialState?: boolean }, + ) => { unsubscribe: () => void }; + }, + writes: LunoraTagColorWrites, +): void { + lunoraUnsub?.(); + lunoraWrites = writes; + const mapRows = (): TagColorRow[] => + collection.toArray.map((r) => ({ + tag: String(r.tag ?? r._id), + color: String(r.color ?? ""), + })); + const sub = collection.subscribeChanges(() => rebuildFrom(mapRows()), { + includeInitialState: true, + }); + lunoraUnsub = () => sub.unsubscribe(); + started = true; +} + +/** Tear down Lunora feed (flag OFF / account switch). */ +export function unbindLunoraTagColors(): void { + lunoraUnsub?.(); + lunoraUnsub = null; + lunoraWrites = null; + rows = EMPTY; + started = false; +} + +type TagColorRowDocLike = { _id: string; tag?: unknown; color?: unknown }; + function ensureStarted() { if (started || typeof window === "undefined") return; + // Flag ON: wait for bindLunoraTagColors — never open the /api/kv collection. + if (isLunoraSyncEnabled()) return; started = true; tagColorsCollection.subscribeChanges(() => rebuild(), { includeInitialState: true, From 52cba4a331603d5ce474219024b496e2fcfadb46 Mon Sep 17 00:00:00 2001 From: Cameron Pak Date: Thu, 23 Jul 2026 13:39:02 -0500 Subject: [PATCH 27/59] docs: handoff close quick-add/OPML/KV phase-2b gaps Record appendChild, importNodes chunking caveats, drag path OK, and tagColors/savedQueries on Lunora; dailyIndex still deferred. Co-authored-by: Cursor --- HANDOFF.md | 100 ++++++++++++++++++++++++++++++++--------------------- 1 file changed, 60 insertions(+), 40 deletions(-) diff --git a/HANDOFF.md b/HANDOFF.md index a974e8c2..cfc5f4c0 100644 --- a/HANDOFF.md +++ b/HANDOFF.md @@ -28,11 +28,28 @@ location.reload() # Or open http://localhost:3000/?lunora-sync=on ``` -Expect: empty Lunora shard seeds demo bullets via `seedIfEmpty`; Enter / Tab / Shift+Tab / Backspace / typing / Cmd+Z / `/mirror` / multi-select Tab·Shift+Tab·Delete / Today get-or-create use Lunora mutators + watermark checkpoints; Network shows `/_lunora/*` (not `/api/sync` for outline). Second tab same user → live converge. +Expect: empty Lunora shard seeds demo bullets via `seedIfEmpty`; Enter / Tab / Shift+Tab / Backspace / typing / Cmd+Z / `/mirror` / multi-select Tab·Shift+Tab·Delete / Today get-or-create / quick-add born / OPML import / tag color + saved filter writes use Lunora mutators + watermark checkpoints; Network shows `/_lunora/*` (not `/api/sync` for outline, not `/api/kv` for tag-colors/saved-queries). Second tab same user → live converge. **dailyIndex still hits `/api/kv`.** ## What landed (this slice) -### Multi-select batches + resolveMirror + daily (flag ON) +### Quick-add append + OPML import + drag check + KV 2b start + +| Mutator | Planner | Notes | +| ------------------ | ----------------- | ---------------------------------------------------------------------------------------------- | +| `appendChild` | `planAppendChild` | Quick-add born — server resolves last sibling; **one watermark** per capture | +| `importNodes` | `planImportNodes` | OPML dialog; insert-only chunks of ~500; **clientSeq FIFO**; mid-fail can leave earlier chunks | +| `upsertTagColor` | (inline) | Phase 2b — tag color put | +| `deleteTagColor` | (inline) | Phase 2b — tag color clear | +| `upsertSavedQuery` | (inline) | Phase 2b — pin save | +| `patchSavedQuery` | (inline) | Phase 2b — rename | +| `deleteSavedQuery` | (inline) | Phase 2b — unsave / row delete (client bind name `deleteSavedQueryRow`) | + +- **Drag-reorder:** already hits `moveNode` via `OutlineEditor` → `runStructural` → Lunora-wired `mutations.moveNode`. No change needed. +- **KV tables:** `tagColors` + `savedQueries` in `lunora/schema.ts`, shapes `userTagColors` / `userSavedQueries`. Same `isLunoraSyncEnabled()` flag (no sub-flag). Bound into the outline store's **one** `bindMutators` (shared clientSeq FIFO with node writes). +- **dailyIndex:** still `/api/kv` + `claimMapping` — deferred until atomic get-or-create ports (not in this slice). +- Worker `KV_COLLECTIONS` path unchanged for flag OFF. + +### Multi-select batches + resolveMirror + daily (still true) | Mutator | Planner | Notes | | ----------------------- | ------------------------------ | ------------------------------------------------------------------------------------------- | @@ -45,7 +62,7 @@ Expect: empty Lunora shard seeds demo bullets via `seedIfEmpty`; Enter / Tab / S - Multi planners rebuild a working copy between sibling ops, then `planRestoreNodes`-diff to one plan. - `mutations.ts` branches when `isLunoraSyncEnabled()`; selection-mode keeps calling `*ManyNodes` (no UI change). -- Daily: kv claims stay on `/api/kv` (phase 2b); node half is Lunora-only. `hasNode` / seed checks read Lunora collection when flag ON. +- Daily: kv claims stay on `/api/kv`; node half is Lunora-only. `hasNode` / seed checks read Lunora collection when flag ON. ### History restore + mirrors (still true) @@ -56,46 +73,54 @@ Expect: empty Lunora shard seeds demo bullets via `seedIfEmpty`; Enter / Tab / S ### Prior mutator/planner parity (still true) -| Mutator | Planner | Notes | -| ------------------------- | ------------------------ | -------------------------------------------------------- | -| `insertSibling` | `planInsertSibling` | prior | -| `insertChildAtStart` | `planInsertChildAtStart` | Enter into expanded parent | -| `splitNode` | `planSplitNode` | Enter mid-split — ONE watermark (setText+insertSibling) | -| `outdent` / `removeNode` | prior | prior | -| `moveNode` | `planMoveNode` | Cmd+Shift+↑/↓; edge reparent already resolves mirror ids | -| `setText` / field toggles | matching `planSet*` | completed/collapsed/isTask/kind/bookmarkedAt | -| `seedIfEmpty` / `hello` | prior | prior | +| Mutator | Planner | Notes | +| ------------------------- | ------------------------ | ------------------------------------------------------- | +| `insertSibling` | `planInsertSibling` | prior | +| `insertChildAtStart` | `planInsertChildAtStart` | Enter into expanded parent | +| `splitNode` | `planSplitNode` | Enter mid-split — ONE watermark (setText+insertSibling) | +| `outdent` / `removeNode` | prior | prior | +| `moveNode` | `planMoveNode` | Cmd+Shift+↑/↓ + **drag-reorder**; edge reparent OK | +| `setText` / field toggles | matching `planSet*` | completed/collapsed/isTask/kind/bookmarkedAt | +| `seedIfEmpty` / `hello` | prior | prior | ### Flag-swap architecture ``` Flag OFF (default): OutlineEditor → mutations/runStructural → nodesCollection → /api/sync + UserOutlineDO + tag-colors / saved-queries / daily-index → /api/kv Flag ON: - LunoraSyncHost → createOutlineStore(wholeOutline + bindMutators) + LunoraSyncHost → createOutlineStore(wholeOutline + userTagColors + userSavedQueries + bindMutators) ↓ subscribeChanges tree-store.resetTreeFromNodes (ADR 0004 feed) + tag-colors / saved-queries bindLunora* feeds ↑ - mutations (+ mirror / multi / daily) / runHistoryRestore → Lunora mutators + mutations (+ mirror / multi / daily / appendChild) / OPML importNodes / runHistoryRestore runStructural → body only (watermark hold is checkpoints, not waitForSeq) + dailyIndex → still /api/kv ``` -| File | Role | -| ------------------------------------- | ------------------------------------------------------- | -| `src/data/flags.ts` | `isLunoraSyncEnabled()` | -| `src/data/lunora-client.ts` | singleton `LunoraClient` → same-origin `/_lunora` | -| `src/data/lunora-outline-store.ts` | `lunoraCollectionOptions` + `bindMutators` (spike port) | -| `src/data/lunora-bridge.ts` | rows → TreeIndex / Node | -| `src/data/lunora-sync.ts` | start/stop, feed tree-store, seedIfEmpty | -| `src/components/lunora-sync-host.tsx` | AuthGate child; LunoraProvider when flag ON | -| `src/components/history-restore.tsx` | flag ON → `restoreNodes` mutator | -| `src/plugins/daily/get-or-create.ts` | flag ON → `materializeDailyNodes` (kv claims unchanged) | -| `src/data/collection.ts` | flag ON → skip `/api/sync` socket | -| `src/data/structural.ts` | flag ON → no `{ops}` / waitForSeq | -| `src/data/mutations.ts` | Lunora mutator surface (+ multi + resolveMirror) | -| `src/data/outline-plans/` | shared pure planners + unit tests | -| `lunora/mutators.ts` | server `defineMutator` twin | +| File | Role | +| --------------------------------------- | ------------------------------------------------------- | +| `src/data/flags.ts` | `isLunoraSyncEnabled()` | +| `src/data/lunora-client.ts` | singleton `LunoraClient` → same-origin `/_lunora` | +| `src/data/lunora-outline-store.ts` | nodes + tagColors + savedQueries + `bindMutators` | +| `src/data/lunora-kv-store.ts` | KV row types (phase 2b) | +| `src/data/lunora-bridge.ts` | rows → TreeIndex / Node | +| `src/data/lunora-sync.ts` | start/stop, feed tree-store + kv binds, seedIfEmpty | +| `src/components/lunora-sync-host.tsx` | AuthGate child; LunoraProvider when flag ON | +| `src/components/history-restore.tsx` | flag ON → `restoreNodes` mutator | +| `src/components/opml-import-dialog.tsx` | flag ON → chunked `importNodes` | +| `src/plugins/daily/get-or-create.ts` | flag ON → `materializeDailyNodes` (kv claims unchanged) | +| `src/data/tag-colors.ts` | flag ON → Lunora mutators + shape feed | +| `src/data/saved-queries.ts` | flag ON → Lunora mutators + shape feed | +| `src/data/collection.ts` | flag ON → skip `/api/sync` socket | +| `src/data/structural.ts` | flag ON → no `{ops}` / waitForSeq | +| `src/data/mutations.ts` | Lunora mutator surface (+ appendChild) | +| `src/data/outline-plans/` | shared pure planners + unit tests | +| `lunora/mutators.ts` | server `defineMutator` twin | +| `lunora/schema.ts` / `shapes.ts` | nodes + tagColors + savedQueries | ### Deps (root, bun) @@ -103,18 +128,13 @@ Flag ON: - `@tanstack/db@^0.6.16`, `@tanstack/offline-transactions@^1.0.41` - Existing: `lunorash@1.0.0-alpha.98` -### Prior slice (still true) - -- Shared planners: `src/data/outline-plans/` -- Worker compose: `/_lunora` → `ShardDO` beside `UserOutlineDO` -- Identity: product Better Auth → Lunora `resolveIdentity` - ## Known gaps (flag ON) -- **Not ported:** drag-specific UX polish, OPML import/export structural path, quick-add `appendChild` (still writes `nodesCollection`), full plugin structural paths, daily flat→nested migration under Lunora, `resyncNodes` no-op when flag ON +- **Not ported:** dailyIndex / `claimMapping` atomic get-or-create, daily flat→nested migration under Lunora, full plugin structural paths beyond what's wired, `resyncNodes` no-op when flag ON +- **OPML large import:** chunked `importNodes` — a mid-import failure can leave earlier chunks durable (documented in dialog copy); flag-OFF path stays all-or-nothing +- **Quick-add pre-born intents** (`/todo` before first keystroke): still separate field mutators after `appendChild` (rare); born insert itself is one watermark - **e2e** still on old wire (`seedOutline`); flag must stay OFF for Playwright -- **KV** side-collections still custom DO (phase 2b) -- **No data migrate** from UserOutlineDO → Lunora shard yet (flag ON = empty/new Lunora outline) +- **No data migrate** from UserOutlineDO → Lunora shard yet (flag ON = empty/new Lunora outline; kv rows similarly empty until rewritten) - Tree-store Lunora feed is **full rebuild** per change (fine for dogfood; not the incremental hot path) ## Gates (flag OFF) @@ -128,8 +148,8 @@ bun run test # includes flags + lunora-bridge + outline-plans ## Next 1. Lunora-aware e2e fixture (mock `/_lunora` or Miniflare) — keep `seedOutline` until then. -2. KV phase 2b; MCP remount; snapshot migrate; delete `UserOutlineDO` custom sync. -3. Quick-add / OPML / drag polish / daily migration on Lunora. +2. dailyIndex + `claimMapping` on Lunora; MCP remount; snapshot migrate; delete `UserOutlineDO` custom sync. +3. Optional: fold quick-add intents into `appendChild` args; OPML single-watermark for small imports. 4. Green gates → PR; **delete this `HANDOFF.md` in the shipping PR.** ## Note From 1648bdbdb0aedc37fb9d50dff6544f1ad7bfe7ac Mon Sep 17 00:00:00 2001 From: Cameron Pak Date: Thu, 23 Jul 2026 13:46:10 -0500 Subject: [PATCH 28/59] feat(lunora): dailyIndex + claimDailyMapping for flag-ON claims Atomic get-or-create twin of DO getOrCreateKv; claimMapping/setMapping ride Lunora when lunora-sync is ON. touchedAt bumps so watermark pokes fire. Co-authored-by: Cursor --- lunora/_generated/collections.ts | 4 + lunora/_generated/dataModel.ts | 27 ++++- lunora/_generated/drizzle.shard.ts | 11 ++ lunora/_generated/functions.ts | 6 +- lunora/_generated/shard.ts | 43 ++++++++ lunora/mutators.ts | 92 ++++++++++++++++- lunora/schema.ts | 19 +++- lunora/shapes.ts | 10 ++ src/data/lunora-kv-store.ts | 12 ++- src/data/lunora-outline-store.ts | 81 ++++++++++++++- src/data/lunora-sync.ts | 39 ++++++- src/plugins/daily/claim-mapping.test.ts | 34 +++++++ src/plugins/daily/claim-mapping.ts | 28 +++++ src/plugins/daily/daily-index.ts | 129 +++++++++++++++++++++--- src/plugins/daily/get-or-create.ts | 3 +- 15 files changed, 507 insertions(+), 31 deletions(-) create mode 100644 src/plugins/daily/claim-mapping.test.ts create mode 100644 src/plugins/daily/claim-mapping.ts diff --git a/lunora/_generated/collections.ts b/lunora/_generated/collections.ts index 8606645f..06f614f3 100644 --- a/lunora/_generated/collections.ts +++ b/lunora/_generated/collections.ts @@ -7,6 +7,10 @@ import type { Row } from "@lunora/db"; import type { Collection } from "@tanstack/db"; import { createCollection } from "@tanstack/db"; +/** Live collection for the `userDailyIndex` replication shape — pass the shape's validated `args` (its partition selector). */ +export const userDailyIndexCollection = (client: LunoraClient, args?: Record): Collection => + createCollection(lunoraCollectionOptions({ client, shape: { args, name: "userDailyIndex" } }).config); + /** Live collection for the `userSavedQueries` replication shape — pass the shape's validated `args` (its partition selector). */ export const userSavedQueriesCollection = (client: LunoraClient, args?: Record): Collection => createCollection(lunoraCollectionOptions({ client, shape: { args, name: "userSavedQueries" } }).config); diff --git a/lunora/_generated/dataModel.ts b/lunora/_generated/dataModel.ts index 6f10b77e..e05ca3d4 100644 --- a/lunora/_generated/dataModel.ts +++ b/lunora/_generated/dataModel.ts @@ -33,7 +33,7 @@ export type { WhereOperators, } from "lunorash/server/data-model"; -export type TableName = "nodes" | "tagColors" | "savedQueries" | "ratelimit_buckets"; +export type TableName = "nodes" | "tagColors" | "savedQueries" | "dailyIndex" | "ratelimit_buckets"; export type Id = string & { readonly __table: TName }; @@ -72,6 +72,15 @@ export interface Doc_savedQueries { userId: string; } +export interface Doc_dailyIndex { + _id: Id<"dailyIndex">; + _creationTime: number; + key: string; + nodeId: string; + touchedAt: number; + userId: string; +} + export interface Doc_ratelimit_buckets { _id: Id<"ratelimit_buckets">; _creationTime: number; @@ -85,6 +94,7 @@ export interface DataModel { nodes: Doc_nodes; tagColors: Doc_tagColors; savedQueries: Doc_savedQueries; + dailyIndex: Doc_dailyIndex; ratelimit_buckets: Doc_ratelimit_buckets; } @@ -98,6 +108,7 @@ export interface IndexNamesByTable { nodes: "by_parent"; tagColors: "by_tag"; savedQueries: never; + dailyIndex: "by_key"; ratelimit_buckets: "by_key"; } @@ -108,6 +119,7 @@ export interface SearchIndexNamesByTable { nodes: never; tagColors: never; savedQueries: never; + dailyIndex: never; ratelimit_buckets: never; } @@ -118,6 +130,7 @@ export interface RankIndexNamesByTable { nodes: never; tagColors: never; savedQueries: never; + dailyIndex: never; ratelimit_buckets: never; } @@ -128,6 +141,7 @@ export interface GeoIndexNamesByTable { nodes: never; tagColors: never; savedQueries: never; + dailyIndex: never; ratelimit_buckets: never; } @@ -171,6 +185,15 @@ export interface Insert_savedQueries { userId: string; } +export interface Insert_dailyIndex { + _id?: Id<"dailyIndex">; + _creationTime?: number; + key: string; + nodeId: string; + touchedAt: number; + userId: string; +} + export interface Insert_ratelimit_buckets { _id?: Id<"ratelimit_buckets">; _creationTime?: number; @@ -185,6 +208,7 @@ export interface InsertModel { nodes: Insert_nodes; tagColors: Insert_tagColors; savedQueries: Insert_savedQueries; + dailyIndex: Insert_dailyIndex; ratelimit_buckets: Insert_ratelimit_buckets; } @@ -210,6 +234,7 @@ export interface Relations { nodes: {}; tagColors: {}; savedQueries: {}; + dailyIndex: {}; ratelimit_buckets: {}; } diff --git a/lunora/_generated/drizzle.shard.ts b/lunora/_generated/drizzle.shard.ts index cbc2a9cd..4db174c6 100644 --- a/lunora/_generated/drizzle.shard.ts +++ b/lunora/_generated/drizzle.shard.ts @@ -42,6 +42,17 @@ export const savedQueries = sqliteTable("savedQueries", { userId: text("userId").notNull(), }); +export const dailyIndex = sqliteTable("dailyIndex", { + _id: text("_id").primaryKey(), + _creationTime: integer("_creationTime").notNull(), + key: text("key").notNull(), + nodeId: text("nodeId").notNull(), + touchedAt: real("touchedAt").notNull(), + userId: text("userId").notNull(), +}, (t) => ({ + by_key: index("by_key").on(t.key), +})); + export const ratelimit_buckets = sqliteTable("ratelimit_buckets", { _id: text("_id").primaryKey(), _creationTime: integer("_creationTime").notNull(), diff --git a/lunora/_generated/functions.ts b/lunora/_generated/functions.ts index ba0ea7bc..b3b73068 100644 --- a/lunora/_generated/functions.ts +++ b/lunora/_generated/functions.ts @@ -33,6 +33,8 @@ export interface RegisteredLunoraFunction { */ export const LUNORA_FUNCTIONS: Record = { "mutators:appendChild": lunora_mutators_0.appendChild as unknown as RegisteredLunoraFunction, + "mutators:claimDailyMapping": lunora_mutators_0.claimDailyMapping as unknown as RegisteredLunoraFunction, + "mutators:deleteDailyMapping": lunora_mutators_0.deleteDailyMapping as unknown as RegisteredLunoraFunction, "mutators:deleteSavedQuery": lunora_mutators_0.deleteSavedQuery as unknown as RegisteredLunoraFunction, "mutators:deleteTagColor": lunora_mutators_0.deleteTagColor as unknown as RegisteredLunoraFunction, "mutators:hello": lunora_mutators_0.hello as unknown as RegisteredLunoraFunction, @@ -59,6 +61,7 @@ export const LUNORA_FUNCTIONS: Record = { "mutators:setKind": lunora_mutators_0.setKind as unknown as RegisteredLunoraFunction, "mutators:setText": lunora_mutators_0.setText as unknown as RegisteredLunoraFunction, "mutators:splitNode": lunora_mutators_0.splitNode as unknown as RegisteredLunoraFunction, + "mutators:upsertDailyMapping": lunora_mutators_0.upsertDailyMapping as unknown as RegisteredLunoraFunction, "mutators:upsertSavedQuery": lunora_mutators_0.upsertSavedQuery as unknown as RegisteredLunoraFunction, "mutators:upsertTagColor": lunora_mutators_0.upsertTagColor as unknown as RegisteredLunoraFunction, }; @@ -70,6 +73,7 @@ export const LUNORA_FUNCTIONS: Record = { * `shape_subscribe` (reads-as-permissions). */ export const LUNORA_SHAPES: Record = { + "userDailyIndex": lunora_shapes_1.userDailyIndex as unknown as RegisteredShape, "userSavedQueries": lunora_shapes_1.userSavedQueries as unknown as RegisteredShape, "userTagColors": lunora_shapes_1.userTagColors as unknown as RegisteredShape, "wholeOutline": lunora_shapes_1.wholeOutline as unknown as RegisteredShape, @@ -80,7 +84,7 @@ export const LUNORA_SHAPES: Record = { * ShardDO's `isCustomMutator` override routes through the client-watermark push * protocol (`x-lunora-client-id`/`x-lunora-client-seq` ordering). */ -export const LUNORA_MUTATOR_PATHS: ReadonlySet = new Set(["mutators:appendChild", "mutators:deleteSavedQuery", "mutators:deleteTagColor", "mutators:hello", "mutators:importNodes", "mutators:indent", "mutators:indentMany", "mutators:insertChildAtStart", "mutators:insertSibling", "mutators:materializeDailyNodes", "mutators:mirrorNode", "mutators:moveMany", "mutators:moveNode", "mutators:outdent", "mutators:outdentMany", "mutators:patchSavedQuery", "mutators:removeMany", "mutators:removeNode", "mutators:restoreNodes", "mutators:seedIfEmpty", "mutators:setBookmarkedAt", "mutators:setCollapsed", "mutators:setCompleted", "mutators:setIsTask", "mutators:setKind", "mutators:setText", "mutators:splitNode", "mutators:upsertSavedQuery", "mutators:upsertTagColor"]); +export const LUNORA_MUTATOR_PATHS: ReadonlySet = new Set(["mutators:appendChild", "mutators:claimDailyMapping", "mutators:deleteDailyMapping", "mutators:deleteSavedQuery", "mutators:deleteTagColor", "mutators:hello", "mutators:importNodes", "mutators:indent", "mutators:indentMany", "mutators:insertChildAtStart", "mutators:insertSibling", "mutators:materializeDailyNodes", "mutators:mirrorNode", "mutators:moveMany", "mutators:moveNode", "mutators:outdent", "mutators:outdentMany", "mutators:patchSavedQuery", "mutators:removeMany", "mutators:removeNode", "mutators:restoreNodes", "mutators:seedIfEmpty", "mutators:setBookmarkedAt", "mutators:setCollapsed", "mutators:setCompleted", "mutators:setIsTask", "mutators:setKind", "mutators:setText", "mutators:splitNode", "mutators:upsertDailyMapping", "mutators:upsertSavedQuery", "mutators:upsertTagColor"]); /** * Connection-lifecycle manifest: the function paths the generated ShardDO diff --git a/lunora/_generated/shard.ts b/lunora/_generated/shard.ts index 0d2e182b..3eab8300 100644 --- a/lunora/_generated/shard.ts +++ b/lunora/_generated/shard.ts @@ -38,6 +38,15 @@ const LUNORA_TABLE_INDEXES: Record); }, }); + +// --- dailyIndex (atomic claim = DO getOrCreateKv twin) ---------------------- + +/** + * Atomic get-or-create of a `key → nodeId` mapping. Pre-existing wins; returns + * `{ nodeId, won }` so the client knows whether to materialize the node. + * `_id` = `key` via clientId (same as tagColors). + */ +export const claimDailyMapping = defineMutator({ + args: { + userId: userIdArg, + key: v.string(), + nodeId: idArg, + touchedAt: tsArg, + }, + server: async (ctx, args) => { + const mctx = ctx as unknown as MutatorCtx; + assertOwner(mctx, args.userId); + const existing = await mctx.db.get(args.key as Id<"dailyIndex">); + const existingNodeId = + existing && typeof existing.nodeId === "string" ? existing.nodeId : null; + const { winner, won } = resolveDailyClaim(existingNodeId, args.nodeId); + if (existing) { + // Always write (touchedAt) so the watermark poke fires even on a lost race. + await mctx.db.patch(args.key as Id<"dailyIndex">, { + nodeId: winner, + touchedAt: args.touchedAt, + }); + } else { + await mctx.db.insert( + "dailyIndex", + { + key: args.key, + nodeId: winner, + touchedAt: args.touchedAt, + userId: args.userId, + }, + { clientId: args.key }, + ); + } + return { nodeId: winner, won }; + }, +}); + +/** Upsert a daily-index mapping (heal / setMapping). */ +export const upsertDailyMapping = defineMutator({ + args: { + userId: userIdArg, + key: v.string(), + nodeId: idArg, + touchedAt: tsArg, + }, + server: async (ctx, args) => { + const mctx = ctx as unknown as MutatorCtx; + assertOwner(mctx, args.userId); + const existing = await mctx.db.get(args.key as Id<"dailyIndex">); + if (existing) { + await mctx.db.patch(args.key as Id<"dailyIndex">, { + nodeId: args.nodeId, + touchedAt: args.touchedAt, + }); + } else { + await mctx.db.insert( + "dailyIndex", + { + key: args.key, + nodeId: args.nodeId, + touchedAt: args.touchedAt, + userId: args.userId, + }, + { clientId: args.key }, + ); + } + }, +}); + +export const deleteDailyMapping = defineMutator({ + args: { userId: userIdArg, key: v.string() }, + server: async (ctx, args) => { + const mctx = ctx as unknown as MutatorCtx; + assertOwner(mctx, args.userId); + const existing = await mctx.db.get(args.key as Id<"dailyIndex">); + if (existing) await mctx.db.delete(args.key as Id<"dailyIndex">); + }, +}); diff --git a/lunora/schema.ts b/lunora/schema.ts index 4b714048..a529959b 100644 --- a/lunora/schema.ts +++ b/lunora/schema.ts @@ -7,8 +7,8 @@ import { ratelimit } from "./ratelimit/schema"; * `userId` shard key. Dotflowy `id` / kv keys map to Lunora `_id` via * `clientId` on insert. * - * Phase 2b: `tagColors` + `savedQueries` ride Lunora when the sync flag is ON. - * `dailyIndex` stays on `/api/kv` until claimMapping lands (atomic get-or-create). + * Phase 2b: `tagColors` + `savedQueries` + `dailyIndex` ride Lunora when the + * sync flag is ON. `claimDailyMapping` is the DO `getOrCreateKv` twin. */ export default defineSchema({ nodes: defineTable({ @@ -45,4 +45,19 @@ export default defineSchema({ createdAt: v.number(), userId: v.string(), }).shardBy("userId"), + + /** + * Daily scaffold identity (ADR 0052). `_id` = key via clientId + * (`container` / `YYYY` / `YYYY-MM` / `YYYY-Www` / `YYYY-MM-DD`). + * `touchedAt` bumps on every claim so a lost-race claim still emits a + * poke (watermark hold needs a write). + */ + dailyIndex: defineTable({ + key: v.string(), + nodeId: v.string(), + touchedAt: v.number(), + userId: v.string(), + }) + .shardBy("userId") + .index("by_key", ["key"]), }).extend(ratelimit.extension); diff --git a/lunora/shapes.ts b/lunora/shapes.ts index 865cee4a..f63b14f8 100644 --- a/lunora/shapes.ts +++ b/lunora/shapes.ts @@ -34,3 +34,13 @@ export const userSavedQueries = defineShape({ return { userId }; }, }); + +/** Per-user daily scaffold index (phase 2b — claimDailyMapping). */ +export const userDailyIndex = defineShape({ + args: { userId: v.string() }, + table: "dailyIndex", + where: (ctx, { userId }) => { + if (!ctx.auth.userId || ctx.auth.userId !== userId) return { OR: [] }; + return { userId }; + }, +}); diff --git a/src/data/lunora-kv-store.ts b/src/data/lunora-kv-store.ts index 04c85052..30c836ea 100644 --- a/src/data/lunora-kv-store.ts +++ b/src/data/lunora-kv-store.ts @@ -2,8 +2,6 @@ * Lunora row types for kv side-collections (ADR 0055 phase 2b). * Collections + mutators are wired in `lunora-outline-store.ts` (one * `bindMutators` / clientSeq FIFO with outline writes). - * - * dailyIndex stays on `/api/kv` until claimMapping ports. */ export type TagColorRowDoc = { @@ -22,3 +20,13 @@ export type SavedQueryRowDoc = { userId: string; _creationTime?: number; } & Record; + +/** Daily scaffold key → nodeId (ADR 0052). `_id` = key. */ +export type DailyIndexRowDoc = { + _id: string; + key: string; + nodeId: string; + touchedAt: number; + userId: string; + _creationTime?: number; +} & Record; diff --git a/src/data/lunora-outline-store.ts b/src/data/lunora-outline-store.ts index 78a1e757..e9e0b3db 100644 --- a/src/data/lunora-outline-store.ts +++ b/src/data/lunora-outline-store.ts @@ -10,7 +10,11 @@ import { lunoraCollectionOptions } from "@lunora/db"; import { bindMutators, defineMutator } from "@lunora/db/mutators"; import { createCollection, type Collection } from "@tanstack/db"; -import type { SavedQueryRowDoc, TagColorRowDoc } from "./lunora-kv-store"; +import type { + DailyIndexRowDoc, + SavedQueryRowDoc, + TagColorRowDoc, +} from "./lunora-kv-store"; import { buildTreeIndex, @@ -75,6 +79,8 @@ export type OutlineStore = { tagColors: Collection; /** Phase 2b — Lunora saved queries (flag ON). */ savedQueries: Collection; + /** Phase 2b — Lunora daily index (flag ON). */ + dailyIndex: Collection; mutators: ReturnType; }; @@ -83,6 +89,7 @@ function bindOutlineMutators( collection: Collection, tagColors: Collection, savedQueries: Collection, + dailyIndex: Collection, checkpoints: ReturnType< typeof lunoraCollectionOptions >["checkpoints"], @@ -96,6 +103,7 @@ function bindOutlineMutators( nodes: collection as never, tagColors: tagColors as never, savedQueries: savedQueries as never, + dailyIndex: dailyIndex as never, }, shardKey: userId, }, @@ -526,6 +534,63 @@ function bindOutlineMutators( if (savedQueries.has(args.id)) savedQueries.delete(args.id); }, }), + // --- dailyIndex --- + claimDailyMapping: defineMutator<{ + userId: string; + key: string; + nodeId: string; + touchedAt: number; + }>({ + serverRef: "mutators:claimDailyMapping", + apply: (_ctx, args) => { + if (dailyIndex.has(args.key)) { + // Keep existing nodeId (pre-existing wins); bump touchedAt. + dailyIndex.update(args.key, (draft) => { + draft.touchedAt = args.touchedAt; + }); + return; + } + dailyIndex.insert({ + _id: args.key, + key: args.key, + nodeId: args.nodeId, + touchedAt: args.touchedAt, + userId: args.userId, + _creationTime: args.touchedAt, + }); + }, + }), + upsertDailyMapping: defineMutator<{ + userId: string; + key: string; + nodeId: string; + touchedAt: number; + }>({ + serverRef: "mutators:upsertDailyMapping", + apply: (_ctx, args) => { + if (dailyIndex.has(args.key)) { + dailyIndex.update(args.key, (draft) => { + draft.nodeId = args.nodeId; + draft.touchedAt = args.touchedAt; + }); + } else { + dailyIndex.insert({ + _id: args.key, + key: args.key, + nodeId: args.nodeId, + touchedAt: args.touchedAt, + userId: args.userId, + _creationTime: args.touchedAt, + }); + } + }, + }), + deleteDailyMapping: defineMutator<{ userId: string; key: string }>({ + serverRef: "mutators:deleteDailyMapping", + apply: (_ctx, args) => { + if (dailyIndex.has(args.key)) dailyIndex.delete(args.key); + }, + }), }, ); } @@ -565,10 +630,21 @@ export function createOutlineStore( }, load: "eager", }); + const dailyOpts = lunoraCollectionOptions({ + client, + id: `dailyIndex:${userId}`, + shape: { + name: "userDailyIndex", + args: { userId }, + shardKey: userId, + }, + load: "eager", + }); const collection = createCollection(config); const tagColors = createCollection(tagOpts.config); const savedQueries = createCollection(savedOpts.config); + const dailyIndex = createCollection(dailyOpts.config); // wholeOutline checkpoints gate overlay drop for the shared clientSeq FIFO // (watermark is per-client on the shard, not per-shape). const mutators = bindOutlineMutators( @@ -576,8 +652,9 @@ export function createOutlineStore( collection, tagColors, savedQueries, + dailyIndex, checkpoints, userId, ); - return { collection, tagColors, savedQueries, mutators }; + return { collection, tagColors, savedQueries, dailyIndex, mutators }; } diff --git a/src/data/lunora-sync.ts b/src/data/lunora-sync.ts index 7a923816..f0d940b8 100644 --- a/src/data/lunora-sync.ts +++ b/src/data/lunora-sync.ts @@ -10,10 +10,18 @@ * (see `collection.ts` early-return when the flag is ON). */ +import { + bindLunoraDailyIndex, + unbindLunoraDailyIndex, +} from "../plugins/daily/daily-index"; import { markNodesSyncReady } from "./collection"; import { isLunoraSyncEnabled } from "./flags"; import { outlineNodeToNode, rowsToOutlineNodes } from "./lunora-bridge"; import { getLunoraClient } from "./lunora-client"; +import { + installMigrateConsoleHelper, + maybeAutoMigrateToLunora, +} from "./lunora-migrate"; import { createOutlineStore, type OutlineStore } from "./lunora-outline-store"; import { shouldSeedOutline, seedEmptyOutline } from "./outline-plans"; import { notifySaveFailed } from "./save-failure"; @@ -59,7 +67,7 @@ export function startLunoraOutlineSync(userId: string): void { const store = createOutlineStore(getLunoraClient(), userId); ctx = { userId, store }; - // Phase 2b: side-collections ride the same flag (dailyIndex stays on /api/kv). + // Phase 2b: side-collections ride the same flag. bindLunoraTagColors(store.tagColors, { upsert: (tag, color) => trackLunoraMutation( @@ -84,6 +92,26 @@ export function startLunoraOutlineSync(userId: string): void { remove: (id) => trackLunoraMutation(store.mutators.deleteSavedQueryRow({ userId, id })), }); + bindLunoraDailyIndex(store.dailyIndex, { + upsert: (key, nodeId) => + trackLunoraMutation( + store.mutators.upsertDailyMapping({ + userId, + key, + nodeId, + touchedAt: Date.now(), + }), + ), + claimTx: (key, nodeId) => + store.mutators.claimDailyMapping({ + userId, + key, + nodeId, + touchedAt: Date.now(), + }), + }); + + installMigrateConsoleHelper(() => ctx); collectionSub = store.collection.subscribeChanges( () => { @@ -94,11 +122,15 @@ export function startLunoraOutlineSync(userId: string): void { void store.collection .toArrayWhenReady() - .then(() => { + .then(async () => { if (!ctx || ctx.store !== store) return; feedTreeFromCollection(store); markNodesSyncReady(); - maybeSeed(store, userId); + // One-shot classic DO → Lunora when shard empty (skip if already has rows). + const next = await maybeAutoMigrateToLunora(store, userId); + if (!ctx || ctx.store !== store) return; + feedTreeFromCollection(store); + if (next === "seed") maybeSeed(store, userId); }) .catch((err) => { console.error("[lunora-sync] wholeOutline load failed", err); @@ -132,6 +164,7 @@ export function stopLunoraOutlineSync(): void { collectionSub = null; unbindLunoraTagColors(); unbindLunoraSavedQueries(); + unbindLunoraDailyIndex(); ctx = null; seedStarted = false; } diff --git a/src/plugins/daily/claim-mapping.test.ts b/src/plugins/daily/claim-mapping.test.ts new file mode 100644 index 00000000..0bf4db4d --- /dev/null +++ b/src/plugins/daily/claim-mapping.test.ts @@ -0,0 +1,34 @@ +import { describe, expect, test } from "bun:test"; + +import { resolveDailyClaim } from "./claim-mapping"; + +describe("resolveDailyClaim", () => { + test("empty existing → candidate wins", () => { + expect(resolveDailyClaim(null, "cand")).toEqual({ + winner: "cand", + won: true, + }); + expect(resolveDailyClaim(undefined, "cand")).toEqual({ + winner: "cand", + won: true, + }); + expect(resolveDailyClaim("", "cand")).toEqual({ + winner: "cand", + won: true, + }); + }); + + test("pre-existing mapping wins over a different candidate", () => { + expect(resolveDailyClaim("first", "second")).toEqual({ + winner: "first", + won: false, + }); + }); + + test("re-claim of the same id is idempotent and still won", () => { + expect(resolveDailyClaim("first", "first")).toEqual({ + winner: "first", + won: true, + }); + }); +}); diff --git a/src/plugins/daily/claim-mapping.ts b/src/plugins/daily/claim-mapping.ts new file mode 100644 index 00000000..73a0dee9 --- /dev/null +++ b/src/plugins/daily/claim-mapping.ts @@ -0,0 +1,28 @@ +/** + * Pure daily-index claim (ADR 0052 / DO `getOrCreateKv` twin). + * Pre-existing mapping wins; candidate wins only when the key is absent. + */ + +export type DailyClaimResult = { + winner: string; + won: boolean; +}; + +/** + * Resolve an atomic claim: if `existingNodeId` is set, that id wins and this + * caller lost; otherwise `candidate` wins. + */ +export function resolveDailyClaim( + existingNodeId: string | null | undefined, + candidate: string, +): DailyClaimResult { + if (existingNodeId != null && existingNodeId !== "") { + // DO twin: winner is whatever is stored; `won` iff our candidate matches + // (re-claim of the same id is a no-op insert but still "our" mapping). + return { + winner: existingNodeId, + won: existingNodeId === candidate, + }; + } + return { winner: candidate, won: true }; +} diff --git a/src/plugins/daily/daily-index.ts b/src/plugins/daily/daily-index.ts index b9d42977..1525624d 100644 --- a/src/plugins/daily/daily-index.ts +++ b/src/plugins/daily/daily-index.ts @@ -4,6 +4,7 @@ import { Effect, Schema } from "effect"; import { useCallback, useSyncExternalStore } from "react"; import { localDateKey } from "../../data/date-links"; +import { isLunoraSyncEnabled } from "../../data/flags"; import { kvDelete, kvFetch, @@ -13,6 +14,7 @@ import { } from "../../data/kv-api"; import { kvGetOrCreateE } from "../../data/kv-client-effect"; import { queryClient } from "../../data/query-client"; +import { resolveDailyClaim } from "./claim-mapping"; /** * The daily index -- the *identity* of a daily note (ADR 0001). A row maps a @@ -171,8 +173,22 @@ export function getKeyForNode(nodeId: string): string | null { return keyByNodeId.get(nodeId) ?? null; } +type LunoraDailyWrites = { + upsert: (key: string, nodeId: string) => void; + claim: ( + key: string, + candidate: string, + ) => Promise<{ winner: string; won: boolean }>; +}; + +let lunoraWrites: LunoraDailyWrites | null = null; + /** Upsert a `key -> nodeId` mapping (used when (re)creating a container/day). */ export function setMapping(key: string, nodeId: string): void { + if (lunoraWrites) { + lunoraWrites.upsert(key, nodeId); + return; + } if (dailyIndexCollection.toArray.some((r) => r.key === key)) { dailyIndexCollection.update(key, (draft) => void (draft.nodeId = nodeId)); } else { @@ -185,25 +201,28 @@ export function setMapping(key: string, nodeId: string): void { * itself — the caller supplies a `candidate` node id, and this returns the * AUTHORITATIVE winner plus whether this caller won (so it should create the * node under `candidate`). Two devices with a stale replica both miss the key - * locally and both claim; the single-threaded DO lets exactly one win, killing - * the duplicate-daily-note race at the source. + * locally and both claim; the single-threaded DO / Lunora mutator lets exactly + * one win, killing the duplicate-daily-note race at the source. * - * This is the boundary that degrades to a value on failure: on a network/server - * failure it logs and degrades to the optimistic local path (treats `candidate` - * as the winner), so the feature keeps working — the rare failure window just - * reopens the pre-fix race, no worse than before the claim existed. - * - * Why Effect here (and throwing everywhere else in the kv path): the TanStack - * DB mutation handlers signal failure by THROWING (a throw triggers optimistic - * rollback), so the rest of kv-api.ts stays throw-based on purpose. claimMapping - * has no TanStack caller — it's an awaitable from a click handler — so it can - * speak Effect's typed-error channel directly and route with catchTag, proving - * the ergonomics on real I/O. See kv-client-effect.ts. + * Flag ON → Lunora `claimDailyMapping` mutator. Flag OFF → `/api/kv?op=claim` + * (Effect path). On network/server failure both degrade to treating `candidate` + * as the winner so the feature keeps working. */ export async function claimMapping( key: string, candidate: string, ): Promise<{ winner: string; won: boolean }> { + if (lunoraWrites) { + try { + return await lunoraWrites.claim(key, candidate); + } catch (e) { + console.warn( + `daily: Lunora claim "${key}" failed, creating locally:`, + e instanceof Error ? e.message : e, + ); + return resolveDailyClaim(null, candidate); + } + } /** * Route every typed kv error to a single degraded outcome *inside* the Effect * pipeline, then runPromise never rejects — caller sees only plain success. @@ -225,7 +244,7 @@ export async function claimMapping( }), ), ); - return { winner: row.nodeId, won: row.nodeId === candidate }; + return resolveDailyClaim(row.nodeId, candidate); } // --- Reactive read (mirrors tag-colors.ts; prerender-safe) ------------------ @@ -237,17 +256,93 @@ let rows: DailyRow[] = EMPTY; let keyByNodeId = new Map(); const listeners = new Set<() => void>(); let started = false; +let lunoraUnsub: (() => void) | null = null; -function rebuild() { - rows = dailyIndexCollection.toArray; +function rebuildFrom(source: DailyRow[]) { + rows = source; const next = new Map(); for (const r of rows) next.set(r.nodeId, r.key); keyByNodeId = next; for (const l of listeners) l(); } +function rebuild() { + rebuildFrom(dailyIndexCollection.toArray); +} + +/** + * Called from `lunora-sync` when flag ON — subscribe to the Lunora shape and + * skip `/api/kv` for this collection. `claim` must await the watermark so the + * authoritative winner is readable from the local collection afterward. + */ +export function bindLunoraDailyIndex( + collection: { + has: (key: string) => boolean; + get: (key: string) => DailyIndexRowDocLike | undefined; + toArray: DailyIndexRowDocLike[]; + subscribeChanges: ( + cb: () => void, + opts?: { includeInitialState?: boolean }, + ) => { unsubscribe: () => void }; + }, + writes: { + upsert: (key: string, nodeId: string) => void; + claimTx: ( + key: string, + nodeId: string, + ) => { isPersisted: { promise: Promise } }; + }, +): void { + lunoraUnsub?.(); + const mapRows = (): DailyRow[] => + collection.toArray.map((r) => ({ + key: String(r.key ?? r._id), + nodeId: String(r.nodeId ?? ""), + })); + lunoraWrites = { + upsert: writes.upsert, + claim: async (key, candidate) => { + const local = collection.has(key) + ? String(collection.get(key)?.nodeId ?? "") + : null; + if (local) { + // Fast path: shape already has the key — no mutator round-trip. + return resolveDailyClaim(local, candidate); + } + const tx = writes.claimTx(key, candidate); + await tx.isPersisted.promise; + const row = collection.get(key); + const winner = row ? String(row.nodeId) : candidate; + return resolveDailyClaim(winner, candidate); + }, + }; + const sub = collection.subscribeChanges(() => rebuildFrom(mapRows()), { + includeInitialState: true, + }); + lunoraUnsub = () => sub.unsubscribe(); + started = true; +} + +/** Tear down Lunora feed (flag OFF / account switch). */ +export function unbindLunoraDailyIndex(): void { + lunoraUnsub?.(); + lunoraUnsub = null; + lunoraWrites = null; + rows = EMPTY; + keyByNodeId = new Map(); + started = false; +} + +type DailyIndexRowDocLike = { + _id: string; + key?: unknown; + nodeId?: unknown; +}; + function ensureStarted() { if (started || typeof window === "undefined") return; + // Flag ON: wait for bindLunoraDailyIndex — never open the /api/kv collection. + if (isLunoraSyncEnabled()) return; started = true; dailyIndexCollection.subscribeChanges(() => rebuild(), { includeInitialState: true, @@ -299,6 +394,8 @@ export function getDailyRows(): DailyRow[] { */ export async function refreshDailyIndex(): Promise { ensureStarted(); + // Lunora shape is live — no kv refetch (and /api/kv is cold when flag ON). + if (lunoraWrites) return; // Best-effort: a network failure here must NOT block day creation (the caller // proceeds with whatever mappings it has), but a silent swallow hid the cause // of a misplaced day (finding 2) -- so warn, don't rethrow. diff --git a/src/plugins/daily/get-or-create.ts b/src/plugins/daily/get-or-create.ts index 36f10840..75b32da3 100644 --- a/src/plugins/daily/get-or-create.ts +++ b/src/plugins/daily/get-or-create.ts @@ -282,7 +282,8 @@ async function materializeNewDay( } /** Lunora flag-ON materialize: plan inserts client-side (sorted afterIds), one - * `materializeDailyNodes` mutator, await watermark. Kv claims stay on `/api/kv`. */ + * `materializeDailyNodes` mutator, await watermark. Ids claimed via Lunora + * `claimDailyMapping` (daily-index bind) before this runs. */ async function materializeNewDayLunora(args: { container: { id: string; won: boolean; present: boolean }; day: { id: string; won: boolean; present: boolean }; From 39e226e49e07e801078fe2c7803e6d522d86b79c Mon Sep 17 00:00:00 2001 From: Cameron Pak Date: Thu, 23 Jul 2026 13:46:20 -0500 Subject: [PATCH 29/59] =?UTF-8?q?feat(lunora):=20one-shot=20classic=20DO?= =?UTF-8?q?=20=E2=86=92=20Lunora=20migrate=20path?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Auto-runs when flag ON and Lunora shard is empty; skips if non-empty. More menu + window.__dotflowyMigrateToLunora for manual retry. Co-authored-by: Cursor --- src/components/header-more-menu.tsx | 38 +++++ src/data/lunora-migrate.ts | 232 ++++++++++++++++++++++++++++ 2 files changed, 270 insertions(+) create mode 100644 src/data/lunora-migrate.ts diff --git a/src/components/header-more-menu.tsx b/src/components/header-more-menu.tsx index 951fa246..8269aab7 100644 --- a/src/components/header-more-menu.tsx +++ b/src/components/header-more-menu.tsx @@ -18,8 +18,11 @@ import { useUnseenReleaseCount } from "../data/changelog-cursor"; import { localDateKey } from "../data/date-links"; import { downloadTextFile } from "../data/download"; import { openFeedbackReport } from "../data/feedback"; +import { isLunoraSyncEnabled } from "../data/flags"; import { capture } from "../data/history"; import { flattenInline } from "../data/inline-text"; +import { migrateClassicToLunora } from "../data/lunora-migrate"; +import { getLunoraOutlineContext } from "../data/lunora-sync"; import { outlineToMarkdown } from "../data/markdown"; import { toggleCollapsed } from "../data/mutations"; import { exportOpml } from "../data/opml-export"; @@ -41,6 +44,34 @@ import { DropdownMenuTrigger, } from "./ui/dropdown-menu"; +async function runMigrateToLunora() { + const lunora = getLunoraOutlineContext(); + if (!lunora) { + toast.error("Enable lunora-sync flag first, then reload"); + return; + } + const result = await migrateClassicToLunora(lunora.store, lunora.userId); + switch (result.status) { + case "migrated": + toast.success( + `Migrated ${result.nodes} nodes (+ ${result.kv} kv) to Lunora`, + ); + break; + case "skipped-nonempty": + toast.message( + `Lunora already has ${result.nodes} nodes — skipped (safe default)`, + ); + break; + case "skipped-empty-source": + toast.message("Classic outline is empty — nothing to migrate"); + break; + case "failed": + toast.error("Migrate failed — see console"); + console.error("[lunora-migrate]", result.error); + break; + } +} + /** * GitHub's brand glyph (Simple Icons). lucide-react dropped its Github icon, so * we inline the mark here -- fill-based (not lucide's stroke), currentColor, and @@ -306,6 +337,13 @@ export function HeaderMoreMenu() { Spotlight mode + {isLunoraSyncEnabled() && ( + void runMigrateToLunora()}> + + Migrate to Lunora + + )} + { + const res = await fetch("/api/nodes", { credentials: "include" }); + if (!res.ok) throw new Error(`GET /api/nodes ${res.status}`); + const body = (await res.json()) as ClassicNode[]; + return Array.isArray(body) ? body : []; +} + +async function fetchKv(collection: string): Promise { + const res = await fetch( + `/api/kv?collection=${encodeURIComponent(collection)}`, + { credentials: "include" }, + ); + if (!res.ok) throw new Error(`GET /api/kv ${collection} ${res.status}`); + const body = (await res.json()) as unknown[]; + if (!Array.isArray(body)) return []; + // /api/kv GET returns the stored values; daily-index/tag-colors/saved-queries + // each embed their key inside the value object. + return body.map((value) => { + const v = value as Record; + const key = + typeof v.key === "string" + ? v.key + : typeof v.tag === "string" + ? v.tag + : typeof v.id === "string" + ? v.id + : String(v.key ?? ""); + return { key, value }; + }); +} + +async function importNodeChunks( + store: OutlineStore, + userId: string, + nodes: OutlineNode[], +): Promise { + for (let i = 0; i < nodes.length; i += IMPORT_CHUNK) { + const chunk = nodes.slice(i, i + IMPORT_CHUNK); + const tx = store.mutators.importNodes({ userId, nodes: chunk }); + await tx.isPersisted.promise; + } +} + +async function importKv(store: OutlineStore, userId: string): Promise { + let count = 0; + const t = Date.now(); + + const tags = await fetchKv("tag-colors").catch(() => [] as KvRow[]); + for (const row of tags) { + const v = row.value as { tag?: string; color?: string }; + const tag = String(v.tag ?? row.key); + const color = String(v.color ?? ""); + if (!tag || !color) continue; + const tx = store.mutators.upsertTagColor({ userId, tag, color }); + await tx.isPersisted.promise; + count += 1; + } + + const saved = await fetchKv("saved-queries").catch(() => [] as KvRow[]); + for (const row of saved) { + const v = row.value as { + id?: string; + name?: string; + query?: string; + createdAt?: number; + }; + const id = String(v.id ?? row.key); + if (!id) continue; + const tx = store.mutators.upsertSavedQuery({ + userId, + id, + name: String(v.name ?? v.query ?? id), + query: String(v.query ?? ""), + createdAt: Number(v.createdAt ?? t), + }); + await tx.isPersisted.promise; + count += 1; + } + + const daily = await fetchKv("daily-index").catch(() => [] as KvRow[]); + for (const row of daily) { + const v = row.value as { key?: string; nodeId?: string }; + const key = String(v.key ?? row.key); + const nodeId = String(v.nodeId ?? ""); + if (!key || !nodeId) continue; + const tx = store.mutators.upsertDailyMapping({ + userId, + key, + nodeId, + touchedAt: t, + }); + await tx.isPersisted.promise; + count += 1; + } + + return count; +} + +/** + * Import classic DO outline (+ kv) into an empty Lunora shard. + * @param force — unused for replace (replace is out of scope); reserved. + */ +export async function migrateClassicToLunora( + store: OutlineStore, + userId: string, + opts: { force?: boolean } = {}, +): Promise { + void opts.force; + const lunoraCount = store.collection.toArray.length; + if (lunoraCount > 0) { + return { status: "skipped-nonempty", nodes: lunoraCount }; + } + + try { + const classic = await fetchClassicNodes(); + if (classic.length === 0) { + return { status: "skipped-empty-source" }; + } + const nodes = classic.map((n) => asOutlineNode(n, userId)); + await importNodeChunks(store, userId, nodes); + const kv = await importKv(store, userId); + return { status: "migrated", nodes: nodes.length, kv }; + } catch (error) { + return { status: "failed", error }; + } +} + +/** Auto path: migrate when Lunora empty; returns whether seedIfEmpty should run. */ +export async function maybeAutoMigrateToLunora( + store: OutlineStore, + userId: string, +): Promise<"seed" | "ready"> { + const result = await migrateClassicToLunora(store, userId); + switch (result.status) { + case "migrated": + console.info( + `[lunora-migrate] imported ${result.nodes} nodes + ${result.kv} kv rows from classic DO`, + ); + return "ready"; + case "skipped-nonempty": + return "ready"; + case "skipped-empty-source": + return "seed"; + case "failed": + console.warn("[lunora-migrate] failed", result.error); + notifySaveFailed(result.error); + // Don't seed demo bullets over a failed migrate of real data — leave empty + // so the operator can retry via __dotflowyMigrateToLunora. + return "ready"; + } +} + +/** DevTools / More-menu entry. */ +export function installMigrateConsoleHelper( + getStore: () => { store: OutlineStore; userId: string } | null, +): void { + if (typeof window === "undefined") return; + ( + window as unknown as { + __dotflowyMigrateToLunora?: () => Promise; + } + ).__dotflowyMigrateToLunora = async () => { + const ctx = getStore(); + if (!ctx) { + return { + status: "failed", + error: new Error("Lunora sync not started (flag off?)"), + }; + } + return migrateClassicToLunora(ctx.store, ctx.userId); + }; +} From 2a3051ffc07943e23917eeaed7235c44c25d0b55 Mon Sep 17 00:00:00 2001 From: Cameron Pak Date: Thu, 23 Jul 2026 13:46:21 -0500 Subject: [PATCH 30/59] test(e2e): seedOutlineLunora fixture + lunora-sync smoke Mocks /_lunora/ws + /_lunora/rpc enough for flag-ON load/edit/reload. Classic seedOutline remains the default for the existing suite. Co-authored-by: Cursor --- e2e/fixtures.ts | 231 ++++++++++++++++++++++++++++++++++ e2e/lunora-sync-smoke.spec.ts | 37 ++++++ 2 files changed, 268 insertions(+) create mode 100644 e2e/lunora-sync-smoke.spec.ts diff --git a/e2e/fixtures.ts b/e2e/fixtures.ts index a46aadb2..0827db55 100644 --- a/e2e/fixtures.ts +++ b/e2e/fixtures.ts @@ -373,3 +373,234 @@ export const STANDARD_TREE: SeedNode[] = [ text: "Alpha two", }, ]; + +// --- Lunora flag-ON fixture (ADR 0055) -------------------------------------- + +type LunoraRow = ApiNode & { userId: string; _id: string }; + +function toLunoraRow(n: SeedNode, userId: string): LunoraRow { + const base = toNode(n); + return { ...base, _id: base.id, userId }; +} + +/** + * Seed an outline on the Lunora flag-ON path by mocking `/_lunora/ws` + + * `/_lunora/rpc` enough for smoke (shape subscribe → poke seed; mutators + * update the in-memory store + poke lastMutationId for watermark hold). + * + * Classic `seedOutline` stays the default for the existing suite (flag OFF). + * This is the foundation — not a full protocol twin; expand as more Lunora + * e2e coverage lands. Auto-migrate is skipped by mocking GET `/api/nodes` → []. + */ +export async function seedOutlineLunora( + page: Page, + nodes: SeedNode[], + opts: { userId?: string } = {}, +): Promise { + const userId = opts.userId ?? "test-user"; + const store = new Map(); + for (const n of nodes) store.set(n.id, toLunoraRow(n, userId)); + + let clientSeq = 0; + let checkpoint = 0; + let pokeN = 0; + const sockets = new Set(); + const shapeSubs = new Map(); + + const reply = (route: Route, data: unknown) => + route.fulfill({ + status: 200, + contentType: "application/json", + body: JSON.stringify(data), + }); + + const sendPoke = ( + ws: WebSocketRoute, + shapeId: string, + rows: LunoraRow[], + lastMutationId: number, + ) => { + pokeN += 1; + const pokeId = `p${pokeN}`; + checkpoint += 1; + ws.send( + JSON.stringify({ + type: "pokeStart", + pokeId, + baseCheckpoint: checkpoint - 1, + epoch: 1, + }), + ); + ws.send( + JSON.stringify({ + type: "pokePart", + pokeId, + shapeId, + lastMutationId, + rowsPatch: rows.map((r) => ({ + op: "put", + key: r._id, + value: r, + })), + }), + ); + ws.send( + JSON.stringify({ + type: "pokeEnd", + pokeId, + checkpoint, + epoch: 1, + }), + ); + }; + + const seedShape = (ws: WebSocketRoute, shapeId: string, name: string) => { + if (name === "wholeOutline") { + sendPoke(ws, shapeId, [...store.values()], 0); + return; + } + // Empty kv shapes (tagColors / savedQueries / dailyIndex). + sendPoke(ws, shapeId, [], 0); + }; + + await page.addInitScript(() => { + window.localStorage.setItem("dotflowy:flag:lunora-sync", "on"); + }); + + await page.route( + (url) => url.pathname === "/api/auth/get-session", + (route) => + reply(route, { + session: { + id: "test-session", + userId, + token: "test-token", + expiresAt: new Date(Date.now() + 86_400_000).toISOString(), + }, + user: { + id: userId, + email: "test@example.com", + name: "Test User", + emailVerified: true, + createdAt: new Date(0).toISOString(), + updatedAt: new Date(0).toISOString(), + }, + }), + ); + + // Empty classic DO so auto-migrate no-ops (Lunora store is the seed). + await page.route( + (url) => url.pathname === "/api/nodes", + (route) => { + if (route.request().method() === "GET") return reply(route, []); + return route.fulfill({ status: 404, body: "{}" }); + }, + ); + await page.route( + (url) => url.pathname === "/api/kv", + (route) => { + if (route.request().method() === "GET") return reply(route, []); + return route.fulfill({ status: 404, body: "{}" }); + }, + ); + + await page.route( + (url) => url.pathname === "/_lunora/rpc", + async (route) => { + const body = route.request().postDataJSON() as { + functionPath?: string; + args?: Record; + }; + const path = body.functionPath ?? ""; + const args = (body.args ?? {}) as Record; + const seqHeader = route.request().headers()["x-lunora-client-seq"]; + const seq = seqHeader ? Number(seqHeader) : ++clientSeq; + if (Number.isFinite(seq)) clientSeq = Math.max(clientSeq, seq); + + let result: unknown = null; + + if (path === "mutators:setText") { + const id = String(args.id ?? ""); + const cur = store.get(id); + if (cur) { + store.set(id, { + ...cur, + text: String(args.text ?? ""), + updatedAt: Number(args.updatedAt ?? Date.now()), + }); + } + result = { id }; + } else if (path === "mutators:insertSibling") { + const id = String(args.id ?? ""); + const row: LunoraRow = { + _id: id, + id, + parentId: (args.parentId as string | null) ?? null, + prevSiblingId: (args.afterId as string | null) ?? null, + text: String(args.text ?? ""), + isTask: Boolean(args.isTask), + completed: false, + collapsed: false, + bookmarkedAt: null, + mirrorOf: null, + createdAt: Number(args.createdAt ?? 0), + updatedAt: Number(args.updatedAt ?? 0), + origin: null, + kind: args.kind === "paragraph" ? "paragraph" : null, + userId, + }; + store.set(id, row); + result = { id }; + } else if (path === "mutators:seedIfEmpty") { + result = { seeded: false }; + } else { + // Accept unknown mutators so watermark chain doesn't wedge. + result = {}; + } + + await reply(route, { result, lastMutationId: seq }); + + // Echo a poke so checkpoints.awaitMutationId resolves. + for (const ws of sockets) { + for (const [shapeId, meta] of shapeSubs) { + if (meta.name === "wholeOutline") { + sendPoke(ws, shapeId, [...store.values()], seq); + } + } + } + }, + ); + + await page.routeWebSocket( + (url) => url.pathname === "/_lunora/ws", + (ws) => { + sockets.add(ws); + ws.onClose(() => sockets.delete(ws)); + ws.onMessage((raw) => { + if (typeof raw !== "string") return; + if (raw === "lunora-ping") { + ws.send("lunora-pong"); + return; + } + let msg: { + type?: string; + id?: string; + shape?: { name?: string; args?: unknown }; + }; + try { + msg = JSON.parse(raw) as typeof msg; + } catch { + return; + } + if (msg.type === "connect") { + // No ack required by the client. + return; + } + if (msg.type === "shape_subscribe" && msg.id && msg.shape?.name) { + shapeSubs.set(msg.id, { name: msg.shape.name }); + seedShape(ws, msg.id, msg.shape.name); + } + }); + }, + ); +} diff --git a/e2e/lunora-sync-smoke.spec.ts b/e2e/lunora-sync-smoke.spec.ts new file mode 100644 index 00000000..8f3b1e7a --- /dev/null +++ b/e2e/lunora-sync-smoke.spec.ts @@ -0,0 +1,37 @@ +import { expect, test, type Page } from "@playwright/test"; + +import { seedOutlineLunora, type SeedNode } from "./fixtures"; + +/** + * Foundation smoke for ADR 0055 Lunora flag-ON path. + * Uses `seedOutlineLunora` (mocks `/_lunora/*`). Classic suite stays on + * `seedOutline` with the flag default OFF. + * + * If this flakes locally (WS poke / watermark timing), keep the fixture and + * treat this file as the path forward — do not rewrite the whole e2e suite yet. + */ + +const text = (page: Page, id: string) => + page.locator(`li[data-node-id="${id}"] > .outline-row .node-text`); + +const TREE: SeedNode[] = [ + { id: "smoke", parentId: null, prevSiblingId: null, text: "LunoraSmoke" }, +]; + +test.describe("Lunora sync smoke (flag ON)", () => { + test("loads seeded outline, edits survive reload", async ({ page }) => { + await seedOutlineLunora(page, TREE); + await page.goto("/"); + await expect(text(page, "smoke")).toBeVisible({ timeout: 15_000 }); + await expect(text(page, "smoke")).toHaveText("LunoraSmoke"); + + await text(page, "smoke").click(); + await page.keyboard.type("X"); + await expect(text(page, "smoke")).toHaveText("LunoraSmokeX"); + + // Watermark + mock store should hold the edit across a hard reload. + await page.reload(); + await expect(text(page, "smoke")).toBeVisible({ timeout: 15_000 }); + await expect(text(page, "smoke")).toHaveText("LunoraSmokeX"); + }); +}); From 6d64bc5a19f125216f55390538fedbc49236d2f5 Mon Sep 17 00:00:00 2001 From: Cameron Pak Date: Thu, 23 Jul 2026 13:46:21 -0500 Subject: [PATCH 31/59] docs: handoff migrate runbook and cutover gaps Document auto/manual migrate, dailyIndex claim, e2e foundation, and remaining gaps before flag default ON. Co-authored-by: Cursor --- HANDOFF.md | 169 ++++++++++++++++++----------------------------------- 1 file changed, 58 insertions(+), 111 deletions(-) diff --git a/HANDOFF.md b/HANDOFF.md index cfc5f4c0..dc6f3960 100644 --- a/HANDOFF.md +++ b/HANDOFF.md @@ -4,7 +4,7 @@ ## Status -`phase-2-flag-swap` — outline sync can ride Lunora shapes/mutators behind a **default-OFF** flag. Custom `/api/sync` + `nodesCollection` + `runStructural` remain the default path (Playwright + normal `bun run dev`). **No PR until remaining gaps close + e2e green on Lunora (or still on old wire by design).** +`phase-2-flag-swap` — outline sync can ride Lunora shapes/mutators behind a **default-OFF** flag. Custom `/api/sync` + `nodesCollection` + `runStructural` remain the default path (Playwright classic suite + normal `bun run dev`). **No PR until remaining gaps close + e2e green on Lunora (or still on old wire by design).** ## Flag — Lunora outline sync @@ -28,129 +28,76 @@ location.reload() # Or open http://localhost:3000/?lunora-sync=on ``` -Expect: empty Lunora shard seeds demo bullets via `seedIfEmpty`; Enter / Tab / Shift+Tab / Backspace / typing / Cmd+Z / `/mirror` / multi-select Tab·Shift+Tab·Delete / Today get-or-create / quick-add born / OPML import / tag color + saved filter writes use Lunora mutators + watermark checkpoints; Network shows `/_lunora/*` (not `/api/sync` for outline, not `/api/kv` for tag-colors/saved-queries). Second tab same user → live converge. **dailyIndex still hits `/api/kv`.** +Expect: if classic DO has data and Lunora shard is empty → **auto-migrate** once (nodes + tag-colors + saved-queries + daily-index). Else empty Lunora seeds demo bullets via `seedIfEmpty`. Editor mutators + kv (incl. **dailyIndex / claimDailyMapping**) ride `/_lunora/*`. Second tab same user → live converge. + +## Migrate runbook (classic DO → Lunora) + +**Safe default: skip if Lunora already has any nodes** (no replace). Classic `UserOutlineDO` data is never deleted. + +### Automatic (preferred) + +1. Enable `dotflowy:flag:lunora-sync` and reload while signed in. +2. On first ready load: if Lunora `wholeOutline` is empty **and** `GET /api/nodes` returns rows → chunked `importNodes` + kv upserts. +3. Console: `[lunora-migrate] imported N nodes + K kv rows from classic DO`. + +### Manual retry + +- **More menu** (flag ON only): "Migrate to Lunora" — same skip-if-nonempty semantics; toasts the outcome. +- **DevTools:** `await window.__dotflowyMigrateToLunora()` → `{ status, nodes?, kv?, error? }`. + +Statuses: `migrated` | `skipped-nonempty` | `skipped-empty-source` | `failed`. ## What landed (this slice) -### Quick-add append + OPML import + drag check + KV 2b start - -| Mutator | Planner | Notes | -| ------------------ | ----------------- | ---------------------------------------------------------------------------------------------- | -| `appendChild` | `planAppendChild` | Quick-add born — server resolves last sibling; **one watermark** per capture | -| `importNodes` | `planImportNodes` | OPML dialog; insert-only chunks of ~500; **clientSeq FIFO**; mid-fail can leave earlier chunks | -| `upsertTagColor` | (inline) | Phase 2b — tag color put | -| `deleteTagColor` | (inline) | Phase 2b — tag color clear | -| `upsertSavedQuery` | (inline) | Phase 2b — pin save | -| `patchSavedQuery` | (inline) | Phase 2b — rename | -| `deleteSavedQuery` | (inline) | Phase 2b — unsave / row delete (client bind name `deleteSavedQueryRow`) | - -- **Drag-reorder:** already hits `moveNode` via `OutlineEditor` → `runStructural` → Lunora-wired `mutations.moveNode`. No change needed. -- **KV tables:** `tagColors` + `savedQueries` in `lunora/schema.ts`, shapes `userTagColors` / `userSavedQueries`. Same `isLunoraSyncEnabled()` flag (no sub-flag). Bound into the outline store's **one** `bindMutators` (shared clientSeq FIFO with node writes). -- **dailyIndex:** still `/api/kv` + `claimMapping` — deferred until atomic get-or-create ports (not in this slice). -- Worker `KV_COLLECTIONS` path unchanged for flag OFF. - -### Multi-select batches + resolveMirror + daily (still true) - -| Mutator | Planner | Notes | -| ----------------------- | ------------------------------ | ------------------------------------------------------------------------------------------- | -| `removeMany` | `planRemoveMany` | Selection delete — ONE watermark; rebuilds between sibling deletes | -| `moveMany` | `planMoveMany` | Selection move / Send-to-Today later — ONE watermark | -| `indentMany` | `planIndentMany` | Selection Tab; `resolveMirror` → SOURCE | -| `outdentMany` | `planOutdentMany` | Selection Shift+Tab | -| `materializeDailyNodes` | `planMaterializeDailyNodes` | Daily scaffold+day(+seed) after kv `claimMapping`; ADR 0041 `seedEntryLine` in same mutator | -| `indent` (updated) | `planIndent` + `resolveMirror` | Mirror prev-sibling parents into SOURCE (was skipped when mirrors ON) | - -- Multi planners rebuild a working copy between sibling ops, then `planRestoreNodes`-diff to one plan. -- `mutations.ts` branches when `isLunoraSyncEnabled()`; selection-mode keeps calling `*ManyNodes` (no UI change). -- Daily: kv claims stay on `/api/kv`; node half is Lunora-only. `hasNode` / seed checks read Lunora collection when flag ON. - -### History restore + mirrors (still true) - -| Mutator | Planner | Notes | -| -------------- | ------------------ | --------------------------------------------------------------------- | -| `restoreNodes` | `planRestoreNodes` | Full target snapshot → one watermark; `runHistoryRestore` routes here | -| `mirrorNode` | `planMirrorNode` | `/mirror` + `mutations.mirrorNode`; flatten + cycle + trueSource dest | - -### Prior mutator/planner parity (still true) - -| Mutator | Planner | Notes | -| ------------------------- | ------------------------ | ------------------------------------------------------- | -| `insertSibling` | `planInsertSibling` | prior | -| `insertChildAtStart` | `planInsertChildAtStart` | Enter into expanded parent | -| `splitNode` | `planSplitNode` | Enter mid-split — ONE watermark (setText+insertSibling) | -| `outdent` / `removeNode` | prior | prior | -| `moveNode` | `planMoveNode` | Cmd+Shift+↑/↓ + **drag-reorder**; edge reparent OK | -| `setText` / field toggles | matching `planSet*` | completed/collapsed/isTask/kind/bookmarkedAt | -| `seedIfEmpty` / `hello` | prior | prior | - -### Flag-swap architecture +### dailyIndex on Lunora (KV 2b finish) -``` -Flag OFF (default): - OutlineEditor → mutations/runStructural → nodesCollection → /api/sync + UserOutlineDO - tag-colors / saved-queries / daily-index → /api/kv - -Flag ON: - LunoraSyncHost → createOutlineStore(wholeOutline + userTagColors + userSavedQueries + bindMutators) - ↓ subscribeChanges - tree-store.resetTreeFromNodes (ADR 0004 feed) - tag-colors / saved-queries bindLunora* feeds - ↑ - mutations (+ mirror / multi / daily / appendChild) / OPML importNodes / runHistoryRestore - runStructural → body only (watermark hold is checkpoints, not waitForSeq) - dailyIndex → still /api/kv -``` +| Mutator | Notes | +| -------------------- | ---------------------------------------------------------------------- | +| `claimDailyMapping` | Atomic get-or-create; bumps `touchedAt` so watermark poke always fires | +| `upsertDailyMapping` | `setMapping` / migrate heal | +| `deleteDailyMapping` | delete | + +- Table `dailyIndex` `.shardBy("userId")`, shape `userDailyIndex`, pure `resolveDailyClaim` unit-tested. +- Flag ON: `claimMapping` / daily index feed use Lunora; flag OFF unchanged `/api/kv`. +- `materializeDailyNodes` still the node half after claims (ADR 0041 seedEntryLine unchanged). + +### DO → Lunora migrate + +- `src/data/lunora-migrate.ts` — auto on flag-ON empty shard; More menu + `__dotflowyMigrateToLunora`. +- Imports nodes via `importNodes` chunks (~500) + tag/saved/daily kv upserts. + +### e2e foundation + +- `seedOutlineLunora` in `e2e/fixtures.ts` — mocks `/_lunora/ws` + `/_lunora/rpc`, enables flag via init script. +- `e2e/lunora-sync-smoke.spec.ts` — load + edit + reload smoke. +- Classic `seedOutline` untouched (flag OFF suite). + +### Prior slices (still true) + +appendChild / importNodes / tagColors / savedQueries / multi-select / materializeDailyNodes / restoreNodes / mirrorNode / field+structural mutators / flag-swap architecture — see git log. + +## Known gaps (toward flag-default-ON) -| File | Role | -| --------------------------------------- | ------------------------------------------------------- | -| `src/data/flags.ts` | `isLunoraSyncEnabled()` | -| `src/data/lunora-client.ts` | singleton `LunoraClient` → same-origin `/_lunora` | -| `src/data/lunora-outline-store.ts` | nodes + tagColors + savedQueries + `bindMutators` | -| `src/data/lunora-kv-store.ts` | KV row types (phase 2b) | -| `src/data/lunora-bridge.ts` | rows → TreeIndex / Node | -| `src/data/lunora-sync.ts` | start/stop, feed tree-store + kv binds, seedIfEmpty | -| `src/components/lunora-sync-host.tsx` | AuthGate child; LunoraProvider when flag ON | -| `src/components/history-restore.tsx` | flag ON → `restoreNodes` mutator | -| `src/components/opml-import-dialog.tsx` | flag ON → chunked `importNodes` | -| `src/plugins/daily/get-or-create.ts` | flag ON → `materializeDailyNodes` (kv claims unchanged) | -| `src/data/tag-colors.ts` | flag ON → Lunora mutators + shape feed | -| `src/data/saved-queries.ts` | flag ON → Lunora mutators + shape feed | -| `src/data/collection.ts` | flag ON → skip `/api/sync` socket | -| `src/data/structural.ts` | flag ON → no `{ops}` / waitForSeq | -| `src/data/mutations.ts` | Lunora mutator surface (+ appendChild) | -| `src/data/outline-plans/` | shared pure planners + unit tests | -| `lunora/mutators.ts` | server `defineMutator` twin | -| `lunora/schema.ts` / `shapes.ts` | nodes + tagColors + savedQueries | - -### Deps (root, bun) - -- `@lunora/db@1.0.0-alpha.27`, `@lunora/react@1.0.0-alpha.31` -- `@tanstack/db@^0.6.16`, `@tanstack/offline-transactions@^1.0.41` -- Existing: `lunorash@1.0.0-alpha.98` - -## Known gaps (flag ON) - -- **Not ported:** dailyIndex / `claimMapping` atomic get-or-create, daily flat→nested migration under Lunora, full plugin structural paths beyond what's wired, `resyncNodes` no-op when flag ON -- **OPML large import:** chunked `importNodes` — a mid-import failure can leave earlier chunks durable (documented in dialog copy); flag-OFF path stays all-or-nothing -- **Quick-add pre-born intents** (`/todo` before first keystroke): still separate field mutators after `appendChild` (rare); born insert itself is one watermark -- **e2e** still on old wire (`seedOutline`); flag must stay OFF for Playwright -- **No data migrate** from UserOutlineDO → Lunora shard yet (flag ON = empty/new Lunora outline; kv rows similarly empty until rewritten) -- Tree-store Lunora feed is **full rebuild** per change (fine for dogfood; not the incremental hot path) +- Full Playwright suite still on classic wire; only one Lunora smoke (expand fixture coverage). +- Daily flat→nested migration under Lunora dogfood; MCP remount onto mutators. +- Snapshot/R2 restore path still classic DO; delete `UserOutlineDO` custom sync **out of scope** until gates green. +- OPML mid-chunk failure can leave earlier chunks; tree-store Lunora feed is full rebuild per change. +- Flag must stay **default OFF** until migrate+e2e are dogfood-solid. ## Gates (flag OFF) ```sh -bun run typecheck -bun run typecheck:worker -bun run test # includes flags + lunora-bridge + outline-plans +bun run lunora:codegen # after lunora/ edits +bun run typecheck && bun run typecheck:worker && bun run typecheck:test +bun run lint && bun run test +# optional: bun run test:e2e e2e/lunora-sync-smoke.spec.ts ``` ## Next -1. Lunora-aware e2e fixture (mock `/_lunora` or Miniflare) — keep `seedOutline` until then. -2. dailyIndex + `claimMapping` on Lunora; MCP remount; snapshot migrate; delete `UserOutlineDO` custom sync. -3. Optional: fold quick-add intents into `appendChild` args; OPML single-watermark for small imports. -4. Green gates → PR; **delete this `HANDOFF.md` in the shipping PR.** +1. Harden `seedOutlineLunora` (more mutators, daily claim) + expand smoke / port a few critical specs. +2. Dogfood migrate on a real account; MCP remount; then consider flag default ON. +3. Green gates → PR; **delete this `HANDOFF.md` in the shipping PR.** ## Note From 70f80a0d0a3e72e775c6b1711c82a59fd6ec3d26 Mon Sep 17 00:00:00 2001 From: Cameron Pak Date: Thu, 23 Jul 2026 13:53:59 -0500 Subject: [PATCH 32/59] feat(mcp): remount outline tools onto Lunora when LUNORA_OUTLINE=1 Plan via outline-ops ChangeOps, commit through internal mcp:applyChangeOps on the user shard. Default OFF mirrors the client lunora-sync flag. Co-authored-by: Cursor --- .dev.vars.example | 6 + lunora/_generated/api.ts | 8 +- lunora/_generated/functions.ts | 123 +++++++++++------ lunora/mcp.ts | 153 +++++++++++++++++++++ src/data/outline-plans/change-ops.test.ts | 30 ++++ src/data/outline-plans/change-ops.ts | 62 +++++++++ src/data/outline-plans/index.ts | 3 + worker/index.ts | 18 ++- worker/lunora-app.ts | 6 + worker/lunora-mcp-bridge.test.ts | 24 ++++ worker/lunora-mcp-store.test.ts | 16 +++ worker/lunora-mcp-store.ts | 159 ++++++++++++++++++++++ 12 files changed, 562 insertions(+), 46 deletions(-) create mode 100644 lunora/mcp.ts create mode 100644 src/data/outline-plans/change-ops.test.ts create mode 100644 src/data/outline-plans/change-ops.ts create mode 100644 worker/lunora-mcp-bridge.test.ts create mode 100644 worker/lunora-mcp-store.test.ts create mode 100644 worker/lunora-mcp-store.ts diff --git a/.dev.vars.example b/.dev.vars.example index 7b3de658..b492b7fe 100644 --- a/.dev.vars.example +++ b/.dev.vars.example @@ -34,6 +34,12 @@ INVITE_CODES=dev-invite # STRIPE_SECRET_KEY=sk_test_replace-me # STRIPE_WEBHOOK_SECRET=whsec_replace-me +# Optional: MCP outline store = Lunora SHARD (ADR 0055). Exactly "1" or "true" +# routes /mcp tools through mutators:applyChangeOps + queries:listNodes on the +# same user shard as the browser flag. Unset = classic UserOutlineDO (default). +# Local dogfood: set alongside client `dotflowy:flag:lunora-sync=on`. +# LUNORA_OUTLINE=1 + # Optional: pin the OAuth issuer the MCP discovery metadata advertises (ADR # 0026). Needed to test the MCP OAuth flow against `wrangler dev` — without it # the dev proxy's custom-domain simulation makes the inferred origin the prod diff --git a/lunora/_generated/api.ts b/lunora/_generated/api.ts index 358808a3..cbfe270d 100644 --- a/lunora/_generated/api.ts +++ b/lunora/_generated/api.ts @@ -9,6 +9,12 @@ export interface ApiTypes {} export const api = anyApi as unknown as ApiTypes; /** Internal functions — callable only server-side via `ctx.run*`, never from a client. */ -export interface InternalApiTypes {} +export interface InternalApiTypes { + mcp: { + applyChangeOps: FunctionReference<"mutation", { userId: string; ops: Array }, { count: number; deletes?: undefined; inserts?: undefined; patches?: undefined; } | { count: number; deletes: number; inserts: number; patches: number; }>; + listDailyIndex: FunctionReference<"query", { userId: string }, { key: string; nodeId: string; }[]>; + listNodes: FunctionReference<"query", { userId: string }, { id: string; parentId: string | null; prevSiblingId: string | null; text: string; isTask: boolean; completed: boolean; collapsed: boolean; bookmarkedAt: number | null; mirrorOf: string | null; createdAt: number; updatedAt: number; origin: string | null; kind: "paragraph" | null }[]>; + }; +} export const internal = anyApi as unknown as InternalApiTypes; diff --git a/lunora/_generated/functions.ts b/lunora/_generated/functions.ts index b3b73068..d634fc55 100644 --- a/lunora/_generated/functions.ts +++ b/lunora/_generated/functions.ts @@ -1,9 +1,11 @@ // GENERATED by @lunora/codegen — do not edit. // Run `lunora codegen` to regenerate. -import * as lunora_mutators_0 from "../mutators.js"; -import * as lunora_shapes_1 from "../shapes.js"; +import * as lunora_mcp_0 from "../mcp.js"; +import * as lunora_mutators_1 from "../mutators.js"; +import * as lunora_shapes_2 from "../shapes.js"; +import { DEFER_VALIDATION as DEFER, installCompiledValidatorMap } from "lunorash/values"; import type { RegisteredShape } from "lunorash/server"; import { LunoraError } from "lunorash/server"; import type { ActionCtx, MutationCtx, QueryCtx } from "./server.js"; @@ -32,40 +34,59 @@ export interface RegisteredLunoraFunction { * emits (`api[namespace][fn].__lunoraRef === "namespace:fn"`). */ export const LUNORA_FUNCTIONS: Record = { - "mutators:appendChild": lunora_mutators_0.appendChild as unknown as RegisteredLunoraFunction, - "mutators:claimDailyMapping": lunora_mutators_0.claimDailyMapping as unknown as RegisteredLunoraFunction, - "mutators:deleteDailyMapping": lunora_mutators_0.deleteDailyMapping as unknown as RegisteredLunoraFunction, - "mutators:deleteSavedQuery": lunora_mutators_0.deleteSavedQuery as unknown as RegisteredLunoraFunction, - "mutators:deleteTagColor": lunora_mutators_0.deleteTagColor as unknown as RegisteredLunoraFunction, - "mutators:hello": lunora_mutators_0.hello as unknown as RegisteredLunoraFunction, - "mutators:importNodes": lunora_mutators_0.importNodes as unknown as RegisteredLunoraFunction, - "mutators:indent": lunora_mutators_0.indent as unknown as RegisteredLunoraFunction, - "mutators:indentMany": lunora_mutators_0.indentMany as unknown as RegisteredLunoraFunction, - "mutators:insertChildAtStart": lunora_mutators_0.insertChildAtStart as unknown as RegisteredLunoraFunction, - "mutators:insertSibling": lunora_mutators_0.insertSibling as unknown as RegisteredLunoraFunction, - "mutators:materializeDailyNodes": lunora_mutators_0.materializeDailyNodes as unknown as RegisteredLunoraFunction, - "mutators:mirrorNode": lunora_mutators_0.mirrorNode as unknown as RegisteredLunoraFunction, - "mutators:moveMany": lunora_mutators_0.moveMany as unknown as RegisteredLunoraFunction, - "mutators:moveNode": lunora_mutators_0.moveNode as unknown as RegisteredLunoraFunction, - "mutators:outdent": lunora_mutators_0.outdent as unknown as RegisteredLunoraFunction, - "mutators:outdentMany": lunora_mutators_0.outdentMany as unknown as RegisteredLunoraFunction, - "mutators:patchSavedQuery": lunora_mutators_0.patchSavedQuery as unknown as RegisteredLunoraFunction, - "mutators:removeMany": lunora_mutators_0.removeMany as unknown as RegisteredLunoraFunction, - "mutators:removeNode": lunora_mutators_0.removeNode as unknown as RegisteredLunoraFunction, - "mutators:restoreNodes": lunora_mutators_0.restoreNodes as unknown as RegisteredLunoraFunction, - "mutators:seedIfEmpty": lunora_mutators_0.seedIfEmpty as unknown as RegisteredLunoraFunction, - "mutators:setBookmarkedAt": lunora_mutators_0.setBookmarkedAt as unknown as RegisteredLunoraFunction, - "mutators:setCollapsed": lunora_mutators_0.setCollapsed as unknown as RegisteredLunoraFunction, - "mutators:setCompleted": lunora_mutators_0.setCompleted as unknown as RegisteredLunoraFunction, - "mutators:setIsTask": lunora_mutators_0.setIsTask as unknown as RegisteredLunoraFunction, - "mutators:setKind": lunora_mutators_0.setKind as unknown as RegisteredLunoraFunction, - "mutators:setText": lunora_mutators_0.setText as unknown as RegisteredLunoraFunction, - "mutators:splitNode": lunora_mutators_0.splitNode as unknown as RegisteredLunoraFunction, - "mutators:upsertDailyMapping": lunora_mutators_0.upsertDailyMapping as unknown as RegisteredLunoraFunction, - "mutators:upsertSavedQuery": lunora_mutators_0.upsertSavedQuery as unknown as RegisteredLunoraFunction, - "mutators:upsertTagColor": lunora_mutators_0.upsertTagColor as unknown as RegisteredLunoraFunction, + "mcp:applyChangeOps": lunora_mcp_0.applyChangeOps as unknown as RegisteredLunoraFunction, + "mcp:listDailyIndex": lunora_mcp_0.listDailyIndex as unknown as RegisteredLunoraFunction, + "mcp:listNodes": lunora_mcp_0.listNodes as unknown as RegisteredLunoraFunction, + "mutators:appendChild": lunora_mutators_1.appendChild as unknown as RegisteredLunoraFunction, + "mutators:claimDailyMapping": lunora_mutators_1.claimDailyMapping as unknown as RegisteredLunoraFunction, + "mutators:deleteDailyMapping": lunora_mutators_1.deleteDailyMapping as unknown as RegisteredLunoraFunction, + "mutators:deleteSavedQuery": lunora_mutators_1.deleteSavedQuery as unknown as RegisteredLunoraFunction, + "mutators:deleteTagColor": lunora_mutators_1.deleteTagColor as unknown as RegisteredLunoraFunction, + "mutators:hello": lunora_mutators_1.hello as unknown as RegisteredLunoraFunction, + "mutators:importNodes": lunora_mutators_1.importNodes as unknown as RegisteredLunoraFunction, + "mutators:indent": lunora_mutators_1.indent as unknown as RegisteredLunoraFunction, + "mutators:indentMany": lunora_mutators_1.indentMany as unknown as RegisteredLunoraFunction, + "mutators:insertChildAtStart": lunora_mutators_1.insertChildAtStart as unknown as RegisteredLunoraFunction, + "mutators:insertSibling": lunora_mutators_1.insertSibling as unknown as RegisteredLunoraFunction, + "mutators:materializeDailyNodes": lunora_mutators_1.materializeDailyNodes as unknown as RegisteredLunoraFunction, + "mutators:mirrorNode": lunora_mutators_1.mirrorNode as unknown as RegisteredLunoraFunction, + "mutators:moveMany": lunora_mutators_1.moveMany as unknown as RegisteredLunoraFunction, + "mutators:moveNode": lunora_mutators_1.moveNode as unknown as RegisteredLunoraFunction, + "mutators:outdent": lunora_mutators_1.outdent as unknown as RegisteredLunoraFunction, + "mutators:outdentMany": lunora_mutators_1.outdentMany as unknown as RegisteredLunoraFunction, + "mutators:patchSavedQuery": lunora_mutators_1.patchSavedQuery as unknown as RegisteredLunoraFunction, + "mutators:removeMany": lunora_mutators_1.removeMany as unknown as RegisteredLunoraFunction, + "mutators:removeNode": lunora_mutators_1.removeNode as unknown as RegisteredLunoraFunction, + "mutators:restoreNodes": lunora_mutators_1.restoreNodes as unknown as RegisteredLunoraFunction, + "mutators:seedIfEmpty": lunora_mutators_1.seedIfEmpty as unknown as RegisteredLunoraFunction, + "mutators:setBookmarkedAt": lunora_mutators_1.setBookmarkedAt as unknown as RegisteredLunoraFunction, + "mutators:setCollapsed": lunora_mutators_1.setCollapsed as unknown as RegisteredLunoraFunction, + "mutators:setCompleted": lunora_mutators_1.setCompleted as unknown as RegisteredLunoraFunction, + "mutators:setIsTask": lunora_mutators_1.setIsTask as unknown as RegisteredLunoraFunction, + "mutators:setKind": lunora_mutators_1.setKind as unknown as RegisteredLunoraFunction, + "mutators:setText": lunora_mutators_1.setText as unknown as RegisteredLunoraFunction, + "mutators:splitNode": lunora_mutators_1.splitNode as unknown as RegisteredLunoraFunction, + "mutators:upsertDailyMapping": lunora_mutators_1.upsertDailyMapping as unknown as RegisteredLunoraFunction, + "mutators:upsertSavedQuery": lunora_mutators_1.upsertSavedQuery as unknown as RegisteredLunoraFunction, + "mutators:upsertTagColor": lunora_mutators_1.upsertTagColor as unknown as RegisteredLunoraFunction, }; +/** + * AOT-compiled argument validators (Worker-safe, no `eval`). Each is installed + * onto its function's live `.args` object and consulted by the interpreted + * parser as a zero-allocation fast path; anything it can't model is deferred. + */ +installCompiledValidatorMap(lunora_mcp_0.listDailyIndex.args, (source) => { +if (typeof source !== "object" || source === null || Array.isArray(source)) return DEFER; +if (typeof source["userId"] !== "string") return DEFER; +return { "userId": source["userId"] }; +}); +installCompiledValidatorMap(lunora_mcp_0.listNodes.args, (source) => { +if (typeof source !== "object" || source === null || Array.isArray(source)) return DEFER; +if (typeof source["userId"] !== "string") return DEFER; +return { "userId": source["userId"] }; +}); + /** * Replication-shape registry — one entry per `defineShape` in `lunora/shapes.ts`. * The generated ShardDO's `resolveShape` override looks a shape up by name and @@ -73,10 +94,10 @@ export const LUNORA_FUNCTIONS: Record = { * `shape_subscribe` (reads-as-permissions). */ export const LUNORA_SHAPES: Record = { - "userDailyIndex": lunora_shapes_1.userDailyIndex as unknown as RegisteredShape, - "userSavedQueries": lunora_shapes_1.userSavedQueries as unknown as RegisteredShape, - "userTagColors": lunora_shapes_1.userTagColors as unknown as RegisteredShape, - "wholeOutline": lunora_shapes_1.wholeOutline as unknown as RegisteredShape, + "userDailyIndex": lunora_shapes_2.userDailyIndex as unknown as RegisteredShape, + "userSavedQueries": lunora_shapes_2.userSavedQueries as unknown as RegisteredShape, + "userTagColors": lunora_shapes_2.userTagColors as unknown as RegisteredShape, + "wholeOutline": lunora_shapes_2.wholeOutline as unknown as RegisteredShape, }; /** @@ -125,10 +146,32 @@ export type CallerCtx = ActionCtx | MutationCtx | QueryCtx; * with the supplied `context`, exactly like `ctx.runQuery`/`runMutation`/ * `runAction` but without re-stating the function path. */ -export interface Caller {} +export interface Caller { + mcp: { + applyChangeOps: (args: { userId: string; ops: Array }) => Promise<{ count: number; deletes?: undefined; inserts?: undefined; patches?: undefined; } | { count: number; deletes: number; inserts: number; patches: number; }>; + listDailyIndex: (args: { userId: string }) => Promise<{ key: string; nodeId: string; }[]>; + listNodes: (args: { userId: string }) => Promise<{ id: string; parentId: string | null; prevSiblingId: string | null; text: string; isTask: boolean; completed: boolean; collapsed: boolean; bookmarkedAt: number | null; mirrorOf: string | null; createdAt: number; updatedAt: number; origin: string | null; kind: "paragraph" | null }[]>; + }; +} + +const callRegistered = async (context: CallerCtx, functionPath: string, args: Record | undefined): Promise => { + const registered = LUNORA_FUNCTIONS[functionPath]; + + if (!registered) { + throw new LunoraError("FUNCTION_NOT_FOUND", `function not registered: ${functionPath}`); + } + + return (await registered.handler(context, args ?? {})) as R; +}; /** Build a {@link Caller} bound to `context` (typically a handler's `ctx`). */ -export const createCaller = (_context: CallerCtx): Caller => ({}); +export const createCaller = (context: CallerCtx): Caller => ({ + mcp: { + applyChangeOps: (args) => callRegistered(context, "mcp:applyChangeOps", args), + listDailyIndex: (args) => callRegistered(context, "mcp:listDailyIndex", args), + listNodes: (args) => callRegistered(context, "mcp:listNodes", args), + }, +}); /** * Single registered data migration, narrowed to the shape the per-shard runner diff --git a/lunora/mcp.ts b/lunora/mcp.ts new file mode 100644 index 00000000..3844292a --- /dev/null +++ b/lunora/mcp.ts @@ -0,0 +1,153 @@ +/** + * Worker MCP ↔ Lunora bridge (LUNORA_OUTLINE=1). + * + * Regular `mutation`/`query` (not watermarked `defineMutator`) so the Worker + * can call them via trusted shard RPC without clientSeq headers. Browser + * editor keeps using fine-grained mutators; MCP keeps outline-ops planners. + */ + +import type { Id } from "./_generated/dataModel"; + +import { + docToNode, + nodeToInsertFields, + planFromChangeOps, + type OutlinePlan, +} from "../src/data/outline-plans"; +import { internalMutation, internalQuery, v } from "./_generated/server"; + +/** Wire node shape for MCP (no Lunora `userId`) — keeps codegen out of `src/`. */ +type McpNode = { + id: string; + parentId: string | null; + prevSiblingId: string | null; + text: string; + isTask: boolean; + completed: boolean; + collapsed: boolean; + bookmarkedAt: number | null; + mirrorOf: string | null; + createdAt: number; + updatedAt: number; + origin: string | null; + kind: "paragraph" | null; +}; + +type ShardTable = "nodes" | "tagColors" | "savedQueries" | "dailyIndex"; + +type MutatorDb = { + query: (table: ShardTable) => { + collect: () => Promise & { _id: string }>>; + }; + get: ( + id: Id, + ) => Promise<(Record & { _id: string }) | null>; + insert: ( + table: ShardTable, + document: Record, + options?: { clientId?: string }, + ) => Promise; + patch: (id: Id, fields: Record) => Promise; + delete: (id: Id) => Promise; +}; + +type MutatorCtx = { + auth: { userId?: string | null }; + db: MutatorDb; +}; + +function assertOwner(ctx: MutatorCtx, userId: string): void { + if (ctx.auth.userId !== userId) { + throw new Error("unauthorized: shard userId mismatch"); + } +} + +async function commitPlan(ctx: MutatorCtx, plan: OutlinePlan): Promise { + for (const id of plan.deletes) { + await ctx.db.delete(id as Id<"nodes">); + } + for (const patch of plan.patches) { + await ctx.db.patch( + patch.id as Id<"nodes">, + patch.fields as Record, + ); + } + for (const node of plan.inserts) { + await ctx.db.insert("nodes", nodeToInsertFields(node), { + clientId: node.id, + }); + } +} + +const wireNodeArg = v.object({ + id: v.string(), + parentId: v.string().nullable(), + prevSiblingId: v.string().nullable(), + text: v.string(), + isTask: v.boolean(), + completed: v.boolean(), + collapsed: v.boolean(), + bookmarkedAt: v.number().nullable(), + mirrorOf: v.string().nullable(), + createdAt: v.number(), + updatedAt: v.number(), + origin: v.string().nullable(), + kind: v.literal("paragraph").nullable(), +}); + +const changeOpArg = v.union( + v.object({ op: v.literal("insert"), value: wireNodeArg }), + v.object({ op: v.literal("update"), value: wireNodeArg }), + v.object({ op: v.literal("delete"), key: v.string() }), +); + +/** Full outline for MCP get_outline / search_nodes. Worker-only (system RPC). */ +export const listNodes = internalQuery + .input({ userId: v.string() }) + .query(async ({ ctx, args }): Promise => { + const mctx = ctx as unknown as MutatorCtx; + assertOwner(mctx, args.userId); + const rows = await mctx.db.query("nodes").collect(); + return rows.map((row) => { + const n = docToNode(row); + const { userId: _u, ...wire } = n; + return wire; + }); + }); + +/** Daily-index rows for MCP claimDailyScaffold. Worker-only (system RPC). */ +export const listDailyIndex = internalQuery + .input({ userId: v.string() }) + .query(async ({ ctx, args }) => { + const mctx = ctx as unknown as MutatorCtx; + assertOwner(mctx, args.userId); + const rows = await mctx.db.query("dailyIndex").collect(); + return rows.map((r) => ({ + key: String(r.key ?? r._id), + nodeId: String(r.nodeId ?? ""), + })); + }); + +/** + * Apply classic `ChangeOp[]` (outline-ops planners) as one shard transaction. + * Worker-only via `x-lunora-system` — not a browser mutator path. + * Spoiler redaction stays on MCP egress; daily claims use claimDailyMapping. + */ +export const applyChangeOps = internalMutation + .input({ + userId: v.string(), + ops: v.array(changeOpArg), + }) + .mutation(async ({ ctx, args }) => { + const mctx = ctx as unknown as MutatorCtx; + assertOwner(mctx, args.userId); + if (args.ops.length === 0) return { count: 0 }; + const plan = planFromChangeOps(args.userId, args.ops); + await commitPlan(mctx, plan); + return { + count: args.ops.length, + deletes: plan.deletes.length, + inserts: plan.inserts.length, + patches: plan.patches.length, + }; + }); diff --git a/src/data/outline-plans/change-ops.test.ts b/src/data/outline-plans/change-ops.test.ts new file mode 100644 index 00000000..399207ee --- /dev/null +++ b/src/data/outline-plans/change-ops.test.ts @@ -0,0 +1,30 @@ +import { describe, expect, test } from "bun:test"; + +import { planFromChangeOps } from "./change-ops"; +import { makeOutlineNode } from "./planners"; + +describe("planFromChangeOps", () => { + test("maps insert/update/delete into one OutlinePlan", () => { + const insert = makeOutlineNode({ + id: "n1", + userId: "u", + text: "hello", + }); + const { userId: _u, ...insertWire } = insert; + const plan = planFromChangeOps("u", [ + { op: "insert", value: insertWire }, + { + op: "update", + value: { ...insertWire, text: "hello!" }, + }, + { op: "delete", key: "gone" }, + ]); + expect(plan.deletes).toEqual(["gone"]); + expect(plan.inserts).toHaveLength(1); + expect(plan.inserts[0]!.text).toBe("hello"); + expect(plan.inserts[0]!.userId).toBe("u"); + expect(plan.patches).toHaveLength(1); + expect(plan.patches[0]!.id).toBe("n1"); + expect(plan.patches[0]!.fields.text).toBe("hello!"); + }); +}); diff --git a/src/data/outline-plans/change-ops.ts b/src/data/outline-plans/change-ops.ts new file mode 100644 index 00000000..b58ad758 --- /dev/null +++ b/src/data/outline-plans/change-ops.ts @@ -0,0 +1,62 @@ +/** + * Map classic DO `ChangeOp` batches (MCP outline-ops planners) onto an + * OutlinePlan for Lunora `commitPlan` / applyChangeOps. + */ + +import type { OutlineNode, OutlinePlan } from "./types"; + +import { emptyPlan } from "./types"; + +/** Wire ChangeOp shape without importing the Worker wire module. */ +export type ChangeOpLike = + | { op: "insert"; value: Omit & { userId?: string } } + | { op: "update"; value: Omit & { userId?: string } } + | { op: "delete"; key: string }; + +function toOutlineNode( + userId: string, + value: Omit & { userId?: string }, +): OutlineNode { + return { + id: value.id, + parentId: value.parentId ?? null, + prevSiblingId: value.prevSiblingId ?? null, + text: value.text ?? "", + isTask: Boolean(value.isTask), + completed: Boolean(value.completed), + collapsed: Boolean(value.collapsed), + bookmarkedAt: value.bookmarkedAt ?? null, + mirrorOf: value.mirrorOf ?? null, + createdAt: Number(value.createdAt ?? 0), + updatedAt: Number(value.updatedAt ?? 0), + origin: value.origin ?? null, + kind: value.kind === "paragraph" ? "paragraph" : null, + userId, + }; +} + +/** + * Convert a classic `{ops}` batch into one OutlinePlan (deletes → patches → + * inserts). Updates become full-field patches so Lunora can patch in place. + */ +export function planFromChangeOps( + userId: string, + ops: readonly ChangeOpLike[], +): OutlinePlan { + const plan = emptyPlan(); + for (const op of ops) { + if (op.op === "delete") { + plan.deletes.push(op.key); + continue; + } + const node = toOutlineNode(userId, op.value); + if (op.op === "insert") { + plan.inserts.push(node); + continue; + } + // update — patch every field except id/userId + const { id: _id, userId: _uid, ...fields } = node; + plan.patches.push({ id: node.id, fields }); + } + return plan; +} diff --git a/src/data/outline-plans/index.ts b/src/data/outline-plans/index.ts index 7f2421ba..1fc754f4 100644 --- a/src/data/outline-plans/index.ts +++ b/src/data/outline-plans/index.ts @@ -35,6 +35,9 @@ export { applyPlan, } from "./planners"; +export { planFromChangeOps } from "./change-ops"; +export type { ChangeOpLike } from "./change-ops"; + export { rowToNode, docToNode, diff --git a/worker/index.ts b/worker/index.ts index 5f960727..c1e0ff74 100644 --- a/worker/index.ts +++ b/worker/index.ts @@ -63,6 +63,10 @@ import { type InviteBatchResult, } from "./invites"; import { lunoraApp, ShardDO, type LunoraEnv } from "./lunora-app"; +import { + createLunoraOutlineStore, + isLunoraOutlineEnabled, +} from "./lunora-mcp-store"; import { handleMcp, mcpCorsPreflight } from "./mcp"; import { UserOutlineDO as BaseUserOutlineDO } from "./outline-do"; import { FREE_NODE_LIMIT, getPlan, nodeLimitForPlan } from "./plan"; @@ -967,10 +971,6 @@ function handleApiRequest( }, }); } - const mcpUserId = resolveUserId(token.userId, env); - const mcpStub = env.USER_OUTLINE.get( - env.USER_OUTLINE.idFromName(mcpUserId), - ); // Provenance: which agent is calling. The bearer token's OAuth client maps // to a registered harness name; every node its write tools create is // stamped with it, so the editor can mark agent edits apart from the user's. @@ -985,7 +985,15 @@ function handleApiRequest( // (handleMcp), not a 500. An operator comps themselves with a manual // subscription row (getPlan treats it as paid). const mcpPlan = yield* Effect.promise(() => getPlan(token.userId, env)); - return yield* handleMcp(request, mcpStub, origin, mcpPlan !== "free"); + // LUNORA_OUTLINE=1 → same shard as browser mutators (Better Auth userId). + // Default OFF keeps classic UserOutlineDO.applyBatch (resolveUserId / + // owner→'default' bridge unchanged). + const mcpStore = isLunoraOutlineEnabled(env) + ? createLunoraOutlineStore(env, token.userId) + : env.USER_OUTLINE.get( + env.USER_OUTLINE.idFromName(resolveUserId(token.userId, env)), + ); + return yield* handleMcp(request, mcpStore, origin, mcpPlan !== "free"); } // Identity = the validated session's stable user id. No session → 401. diff --git a/worker/lunora-app.ts b/worker/lunora-app.ts index 10a15c42..f90765f4 100644 --- a/worker/lunora-app.ts +++ b/worker/lunora-app.ts @@ -19,6 +19,12 @@ export type LunoraEnv = AuthEnv & { SHARD: ShardNamespaceLike; /** Optional Studio / admin bearer (unset = admin routes stay closed). */ LUNORA_ADMIN_TOKEN?: string; + /** + * When `"1"` / `"true"`, MCP outline tools read/write the Lunora SHARD + * (mutators:applyChangeOps + queries:listNodes) instead of UserOutlineDO. + * Default unset/off — mirrors client `dotflowy:flag:lunora-sync` for local/dev. + */ + LUNORA_OUTLINE?: string; }; // defineApp requires `Record`; AuthEnv is a closed interface. diff --git a/worker/lunora-mcp-bridge.test.ts b/worker/lunora-mcp-bridge.test.ts new file mode 100644 index 00000000..8561a838 --- /dev/null +++ b/worker/lunora-mcp-bridge.test.ts @@ -0,0 +1,24 @@ +/** + * Pure wiring: outline-ops ChangeOp batch → Lunora OutlinePlan + * (mcp:applyChangeOps input). Full shard RPC stays integration-only. + */ + +import { describe, expect, test } from "bun:test"; + +import { planFromChangeOps } from "../src/data/outline-plans"; +import { makeNode } from "../src/data/tree"; + +describe("MCP → Lunora applyChangeOps plan", () => { + test("planner batch becomes inserts/patches/deletes", () => { + const a = makeNode({ id: "a", text: "alpha" }); + const plan = planFromChangeOps("user-1", [ + { op: "insert", value: a }, + { op: "update", value: { ...a, text: "ALPHA" } }, + { op: "delete", key: "z" }, + ]); + expect(plan.inserts[0]!.userId).toBe("user-1"); + expect(plan.inserts[0]!.text).toBe("alpha"); + expect(plan.patches[0]!.fields.text).toBe("ALPHA"); + expect(plan.deletes).toEqual(["z"]); + }); +}); diff --git a/worker/lunora-mcp-store.test.ts b/worker/lunora-mcp-store.test.ts new file mode 100644 index 00000000..0af1e5ba --- /dev/null +++ b/worker/lunora-mcp-store.test.ts @@ -0,0 +1,16 @@ +import { describe, expect, test } from "bun:test"; + +import { isLunoraOutlineEnabled } from "./lunora-mcp-store"; + +describe("isLunoraOutlineEnabled", () => { + test("default OFF", () => { + expect(isLunoraOutlineEnabled({})).toBe(false); + expect(isLunoraOutlineEnabled({ LUNORA_OUTLINE: "" })).toBe(false); + expect(isLunoraOutlineEnabled({ LUNORA_OUTLINE: "0" })).toBe(false); + }); + + test("on for 1 or true", () => { + expect(isLunoraOutlineEnabled({ LUNORA_OUTLINE: "1" })).toBe(true); + expect(isLunoraOutlineEnabled({ LUNORA_OUTLINE: "true" })).toBe(true); + }); +}); diff --git a/worker/lunora-mcp-store.ts b/worker/lunora-mcp-store.ts new file mode 100644 index 00000000..7884ea0b --- /dev/null +++ b/worker/lunora-mcp-store.ts @@ -0,0 +1,159 @@ +/// + +/** + * MCP OutlineStore backed by the Lunora SHARD (ADR 0055). + * + * When `LUNORA_OUTLINE=1`, Worker MCP tools keep planning via outline-ops + * (`ChangeOp[]`) but commit through `mutators:applyChangeOps` on the same + * user shard the browser mutators use — not classic UserOutlineDO.applyBatch. + * + * Identity is Worker-trusted: the MCP bearer was already validated; we forward + * `x-lunora-userid` (+ system) to the shard the same way Lunora's compose + * forwards authenticated RPCs. + */ + +import { resolveShard, type ShardNamespaceLike } from "lunorash/runtime"; + +import type { ChangeOp, Node } from "../src/data/wire-schema"; +import type { OutlineStore } from "./mcp-tools"; + +type LunoraRpcEnv = { + SHARD: ShardNamespaceLike; +}; + +type RpcResult = { result?: unknown; error?: { message?: string } }; + +async function shardRpc( + env: LunoraRpcEnv, + userId: string, + functionPath: string, + args: Record, +): Promise { + const stub = resolveShard(env.SHARD, userId); + const res = await stub.fetch( + new Request("https://shard.internal/rpc", { + method: "POST", + headers: { + "content-type": "application/json", + "x-lunora-userid": userId, + // Trusted Worker→shard dispatch (same as compose cron/forward). + "x-lunora-system": "1", + }, + body: JSON.stringify({ functionPath, args }), + }), + ); + const json = (await res.json()) as RpcResult; + if (!res.ok || json.error) { + throw new Error( + json.error?.message ?? + `lunora shard rpc ${functionPath} failed (${res.status})`, + ); + } + return json.result; +} + +function wireNode(n: { + id: string; + parentId: string | null; + prevSiblingId: string | null; + text: string; + isTask: boolean; + completed: boolean; + collapsed: boolean; + bookmarkedAt: number | null; + mirrorOf: string | null; + createdAt: number; + updatedAt: number; + origin: string | null; + kind: "paragraph" | null; +}): Node { + return { + id: n.id, + parentId: n.parentId, + prevSiblingId: n.prevSiblingId, + text: n.text, + isTask: n.isTask, + completed: n.completed, + collapsed: n.collapsed, + bookmarkedAt: n.bookmarkedAt, + mirrorOf: n.mirrorOf, + createdAt: n.createdAt, + updatedAt: n.updatedAt, + origin: n.origin, + kind: n.kind, + }; +} + +/** + * OutlineStore that reads/writes the Lunora shard for `userId`. + * `userId` is the Better Auth id (shard key) — not resolveUserId('default'). + */ +export function createLunoraOutlineStore( + env: LunoraRpcEnv, + userId: string, +): OutlineStore { + return { + async getNodes() { + const rows = (await shardRpc(env, userId, "mcp:listNodes", { + userId, + })) as Array[0]>; + return (rows ?? []).map(wireNode); + }, + + async applyBatch(ops: readonly ChangeOp[]) { + if (ops.length === 0) return 0; + await shardRpc(env, userId, "mcp:applyChangeOps", { + userId, + ops, + }); + // Classic DO returns a seq; Lunora watermarks are internal. Tools ignore + // the numeric return (commit() awaits applyBatch for side effects only). + return ops.length; + }, + + async getKv(collection: string) { + if (collection !== "daily-index") return []; + const rows = (await shardRpc(env, userId, "mcp:listDailyIndex", { + userId, + })) as Array<{ key: string; nodeId: string }>; + return rows ?? []; + }, + + async getOrCreateKv(collection: string, key: string, value: unknown) { + if (collection !== "daily-index") { + throw new Error( + `lunora mcp store: unsupported kv collection ${collection}`, + ); + } + const candidate = + value && + typeof value === "object" && + "nodeId" in value && + typeof (value as { nodeId: unknown }).nodeId === "string" + ? (value as { nodeId: string }).nodeId + : null; + if (!candidate) { + throw new Error("lunora mcp store: daily claim needs { nodeId }"); + } + const result = (await shardRpc( + env, + userId, + "mutators:claimDailyMapping", + { + userId, + key, + nodeId: candidate, + touchedAt: Date.now(), + }, + )) as { nodeId: string }; + return { key, nodeId: result.nodeId }; + }, + }; +} + +/** True when Worker MCP should use the Lunora shard (default OFF). */ +export function isLunoraOutlineEnabled(env: { + LUNORA_OUTLINE?: string; +}): boolean { + return env.LUNORA_OUTLINE === "1" || env.LUNORA_OUTLINE === "true"; +} From 9f3a0500060e9426265003d7854590fab779b604 Mon Sep 17 00:00:00 2001 From: Cameron Pak Date: Thu, 23 Jul 2026 13:54:07 -0500 Subject: [PATCH 33/59] test(e2e): expand Lunora fixture with structural and undo specs Planner-backed seedOutlineLunora covers split/indent/delete/restore. Subset: lunora-sync-smoke, lunora-structural, lunora-undo. Co-authored-by: Cursor --- HANDOFF.md | 72 ++++---- e2e/fixtures.ts | 298 ++++++++++++++++++++++++++++------ e2e/lunora-structural.spec.ts | 104 ++++++++++++ e2e/lunora-undo.spec.ts | 51 ++++++ 4 files changed, 445 insertions(+), 80 deletions(-) create mode 100644 e2e/lunora-structural.spec.ts create mode 100644 e2e/lunora-undo.spec.ts diff --git a/HANDOFF.md b/HANDOFF.md index dc6f3960..b8dcf0bc 100644 --- a/HANDOFF.md +++ b/HANDOFF.md @@ -6,7 +6,7 @@ `phase-2-flag-swap` — outline sync can ride Lunora shapes/mutators behind a **default-OFF** flag. Custom `/api/sync` + `nodesCollection` + `runStructural` remain the default path (Playwright classic suite + normal `bun run dev`). **No PR until remaining gaps close + e2e green on Lunora (or still on old wire by design).** -## Flag — Lunora outline sync +## Flag — Lunora outline sync (client) | | | | ----------- | --------------------------------------------------------------------------------------------------------------------------------------- | @@ -16,7 +16,19 @@ | **Enable** | `localStorage.setItem("dotflowy:flag:lunora-sync", "on")` then reload, **or** `?lunora-sync=on` (URL wins for that load; not persisted) | | **Disable** | `"off"` in localStorage, or `?lunora-sync=off` | -### Smoke (flag ON) +## Flag — Lunora MCP store (Worker) + +| | | +| ------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| **Name** | `LUNORA_OUTLINE` (env / `.dev.vars`) | +| **Getter** | `isLunoraOutlineEnabled(env)` in `worker/lunora-mcp-store.ts` | +| **Default** | **OFF** (unset) | +| **Enable** | `LUNORA_OUTLINE=1` (or `true`) in `.dev.vars` / wrangler secrets — see `.dev.vars.example` | +| **Behavior** | When ON: `/mcp` tools plan via `outline-ops` then commit through Lunora `mcp:applyChangeOps` + `mcp:listNodes` on the user shard. When OFF: classic `UserOutlineDO.applyBatch`. | + +Pair with the client flag for dogfood (same shard key = Better Auth `user.id`). + +### Smoke (client flag ON) ```sh bun run lunora:codegen # after lunora/ edits @@ -49,40 +61,42 @@ Statuses: `migrated` | `skipped-nonempty` | `skipped-empty-source` | `failed`. ## What landed (this slice) -### dailyIndex on Lunora (KV 2b finish) - -| Mutator | Notes | -| -------------------- | ---------------------------------------------------------------------- | -| `claimDailyMapping` | Atomic get-or-create; bumps `touchedAt` so watermark poke always fires | -| `upsertDailyMapping` | `setMapping` / migrate heal | -| `deleteDailyMapping` | delete | +### e2e Lunora subset (fixture expanded) -- Table `dailyIndex` `.shardBy("userId")`, shape `userDailyIndex`, pure `resolveDailyClaim` unit-tested. -- Flag ON: `claimMapping` / daily index feed use Lunora; flag OFF unchanged `/api/kv`. -- `materializeDailyNodes` still the node half after claims (ADR 0041 seedEntryLine unchanged). +- `seedOutlineLunora` — planner-backed `/_lunora/rpc` mock (split/indent/outdent/remove/restore/field patches + daily claim). +- Specs (flag ON via fixture; classic suite untouched): + - `e2e/lunora-sync-smoke.spec.ts` — load + edit + hard reload + - `e2e/lunora-structural.spec.ts` — Enter split, Tab indent, `/delete` + reload + - `e2e/lunora-undo.spec.ts` — Cmd+Z / Cmd+Shift+Z via `restoreNodes` -### DO → Lunora migrate +```sh +bunx playwright test e2e/lunora-*.spec.ts +``` -- `src/data/lunora-migrate.ts` — auto on flag-ON empty shard; More menu + `__dotflowyMigrateToLunora`. -- Imports nodes via `importNodes` chunks (~500) + tag/saved/daily kv upserts. +**Last run (this slice):** 5 passed (chromium). -### e2e foundation +### MCP remount (Worker flag) -- `seedOutlineLunora` in `e2e/fixtures.ts` — mocks `/_lunora/ws` + `/_lunora/rpc`, enables flag via init script. -- `e2e/lunora-sync-smoke.spec.ts` — load + edit + reload smoke. -- Classic `seedOutline` untouched (flag OFF suite). +- `lunora/mcp.ts` — internal `listNodes` / `listDailyIndex` / `applyChangeOps` (system RPC only). +- `worker/lunora-mcp-store.ts` — `OutlineStore` → shard via `resolveShard` + `x-lunora-system`. +- `planFromChangeOps` (`src/data/outline-plans/change-ops.ts`) — pure ChangeOp → OutlinePlan. +- Spoiler redaction + daily `claimDailyMapping` unchanged on the tool path. +- Default OFF; set `LUNORA_OUTLINE=1` for local MCP↔Lunora. ### Prior slices (still true) -appendChild / importNodes / tagColors / savedQueries / multi-select / materializeDailyNodes / restoreNodes / mirrorNode / field+structural mutators / flag-swap architecture — see git log. +dailyIndex / claimDailyMapping / DO→Lunora migrate / field+structural mutators / flag-swap architecture — see git log. + +## Known gaps → flag-default-ON checklist -## Known gaps (toward flag-default-ON) +Keep **client flag default OFF** until all of these are solid: -- Full Playwright suite still on classic wire; only one Lunora smoke (expand fixture coverage). -- Daily flat→nested migration under Lunora dogfood; MCP remount onto mutators. -- Snapshot/R2 restore path still classic DO; delete `UserOutlineDO` custom sync **out of scope** until gates green. -- OPML mid-chunk failure can leave earlier chunks; tree-store Lunora feed is full rebuild per change. -- Flag must stay **default OFF** until migrate+e2e are dogfood-solid. +1. **Dogfood migrate** on a real account (auto + More menu); confirm daily flat→nested migration under Lunora. +2. **MCP dogfood** with `LUNORA_OUTLINE=1` against a live Worker (not only unit wiring). +3. **Expand Lunora e2e** as needed (daily claim, multi-select, markdown paste) — not the whole classic suite. +4. **Snapshot/R2/PITR** still classic DO — out of scope until gates green; delete `UserOutlineDO` only after. +5. OPML mid-chunk failure can leave earlier chunks; tree-store Lunora feed is full rebuild per change. +6. Gates green with flag OFF (always) + Lunora subset green; then consider flipping client default ON (and Worker env for prod MCP). ## Gates (flag OFF) @@ -90,13 +104,13 @@ appendChild / importNodes / tagColors / savedQueries / multi-select / materializ bun run lunora:codegen # after lunora/ edits bun run typecheck && bun run typecheck:worker && bun run typecheck:test bun run lint && bun run test -# optional: bun run test:e2e e2e/lunora-sync-smoke.spec.ts +bunx playwright test e2e/lunora-*.spec.ts ``` ## Next -1. Harden `seedOutlineLunora` (more mutators, daily claim) + expand smoke / port a few critical specs. -2. Dogfood migrate on a real account; MCP remount; then consider flag default ON. +1. Dogfood migrate + `LUNORA_OUTLINE=1` MCP against `bun run dev`. +2. Close checklist above → consider flag default ON. 3. Green gates → PR; **delete this `HANDOFF.md` in the shipping PR.** ## Note diff --git a/e2e/fixtures.ts b/e2e/fixtures.ts index 0827db55..8cadb378 100644 --- a/e2e/fixtures.ts +++ b/e2e/fixtures.ts @@ -1,5 +1,26 @@ import type { Page, Route, WebSocketRoute } from "@playwright/test"; +import { + applyPlan, + buildTreeIndex, + planIndent, + planInsertChildAtStart, + planInsertSibling, + planOutdent, + planRemoveNode, + planRestoreNodes, + planSetBookmarkedAt, + planSetCollapsed, + planSetCompleted, + planSetIsTask, + planSetKind, + planSetText, + planSplitNode, + type OutlineNode, + type OutlinePlan, +} from "../src/data/outline-plans"; +import { resolveDailyClaim } from "../src/plugins/daily/claim-mapping"; + // A node as the test author cares about it -- structural fields only. Everything // the schema also requires (isTask/completed/collapsed/timestamps) is filled in // with inert defaults by seedOutline so each test only states what matters. @@ -383,24 +404,69 @@ function toLunoraRow(n: SeedNode, userId: string): LunoraRow { return { ...base, _id: base.id, userId }; } +function rowToOutline(row: LunoraRow): OutlineNode { + const { _id: _, ...rest } = row; + return rest; +} + +function outlineToRow(node: OutlineNode): LunoraRow { + return { ...node, _id: node.id }; +} + +function commitOutlinePlan( + store: Map, + plan: OutlinePlan | null | undefined, +): void { + if (!plan) return; + const next = applyPlan([...store.values()].map(rowToOutline), plan); + store.clear(); + for (const n of next) store.set(n.id, outlineToRow(n)); +} + +type DailyIndexRow = { + _id: string; + key: string; + nodeId: string; + touchedAt: number; + userId: string; +}; + /** * Seed an outline on the Lunora flag-ON path by mocking `/_lunora/ws` + - * `/_lunora/rpc` enough for smoke (shape subscribe → poke seed; mutators - * update the in-memory store + poke lastMutationId for watermark hold). + * `/_lunora/rpc`. Structural mutators apply the same `outline-plans` pure + * planners as production (insert/split/indent/delete/restore/…). * * Classic `seedOutline` stays the default for the existing suite (flag OFF). - * This is the foundation — not a full protocol twin; expand as more Lunora - * e2e coverage lands. Auto-migrate is skipped by mocking GET `/api/nodes` → []. + * Opt into Lunora per-spec via this helper — flag stays default OFF in app. + * Auto-migrate is skipped by mocking GET `/api/nodes` → []. */ export async function seedOutlineLunora( page: Page, nodes: SeedNode[], - opts: { userId?: string } = {}, + opts: { + userId?: string; + /** Pre-seed Lunora kv shapes (dailyIndex / tagColors / savedQueries). */ + kv?: Record; + } = {}, ): Promise { const userId = opts.userId ?? "test-user"; const store = new Map(); for (const n of nodes) store.set(n.id, toLunoraRow(n, userId)); + const dailyIndex = new Map(); + for (const r of opts.kv?.["daily-index"] ?? []) { + const v = r.value as { key?: string; nodeId?: string }; + const key = v.key ?? r.key; + const nodeId = String(v.nodeId ?? ""); + dailyIndex.set(key, { + _id: key, + key, + nodeId, + touchedAt: 0, + userId, + }); + } + let clientSeq = 0; let checkpoint = 0; let pokeN = 0; @@ -417,7 +483,7 @@ export async function seedOutlineLunora( const sendPoke = ( ws: WebSocketRoute, shapeId: string, - rows: LunoraRow[], + rows: Array & { _id: string }>, lastMutationId: number, ) => { pokeN += 1; @@ -459,10 +525,29 @@ export async function seedOutlineLunora( sendPoke(ws, shapeId, [...store.values()], 0); return; } - // Empty kv shapes (tagColors / savedQueries / dailyIndex). + if (name === "userDailyIndex") { + sendPoke(ws, shapeId, [...dailyIndex.values()], 0); + return; + } + // Empty tagColors / savedQueries. sendPoke(ws, shapeId, [], 0); }; + const pokeSubscribed = (seq: number, shapes: ReadonlySet) => { + for (const ws of sockets) { + for (const [shapeId, meta] of shapeSubs) { + if (!shapes.has(meta.name)) continue; + if (meta.name === "wholeOutline") { + sendPoke(ws, shapeId, [...store.values()], seq); + } else if (meta.name === "userDailyIndex") { + sendPoke(ws, shapeId, [...dailyIndex.values()], seq); + } + } + } + }; + + const liveIndex = () => buildTreeIndex([...store.values()].map(rowToOutline)); + await page.addInitScript(() => { window.localStorage.setItem("dotflowy:flag:lunora-sync", "on"); }); @@ -517,57 +602,169 @@ export async function seedOutlineLunora( const seq = seqHeader ? Number(seqHeader) : ++clientSeq; if (Number.isFinite(seq)) clientSeq = Math.max(clientSeq, seq); - let result: unknown = null; + let result: unknown = {}; + let pokeShapes = new Set(["wholeOutline"]); + + const id = () => String(args.id ?? ""); + const updatedAt = () => Number(args.updatedAt ?? Date.now()); if (path === "mutators:setText") { - const id = String(args.id ?? ""); - const cur = store.get(id); - if (cur) { - store.set(id, { - ...cur, - text: String(args.text ?? ""), - updatedAt: Number(args.updatedAt ?? Date.now()), - }); - } - result = { id }; + commitOutlinePlan( + store, + planSetText(liveIndex(), id(), String(args.text ?? ""), updatedAt()), + ); + result = { id: id() }; + } else if (path === "mutators:setCompleted") { + commitOutlinePlan( + store, + planSetCompleted( + liveIndex(), + id(), + Boolean(args.completed), + updatedAt(), + ), + ); + } else if (path === "mutators:setCollapsed") { + commitOutlinePlan( + store, + planSetCollapsed( + liveIndex(), + id(), + Boolean(args.collapsed), + updatedAt(), + ), + ); + } else if (path === "mutators:setIsTask") { + commitOutlinePlan( + store, + planSetIsTask(liveIndex(), id(), Boolean(args.isTask), updatedAt()), + ); + } else if (path === "mutators:setKind") { + commitOutlinePlan( + store, + planSetKind( + liveIndex(), + id(), + args.kind === "paragraph" ? "paragraph" : null, + updatedAt(), + ), + ); + } else if (path === "mutators:setBookmarkedAt") { + commitOutlinePlan( + store, + planSetBookmarkedAt( + liveIndex(), + id(), + (args.bookmarkedAt as number | null) ?? null, + updatedAt(), + ), + ); } else if (path === "mutators:insertSibling") { - const id = String(args.id ?? ""); - const row: LunoraRow = { - _id: id, - id, - parentId: (args.parentId as string | null) ?? null, - prevSiblingId: (args.afterId as string | null) ?? null, - text: String(args.text ?? ""), - isTask: Boolean(args.isTask), - completed: false, - collapsed: false, - bookmarkedAt: null, - mirrorOf: null, - createdAt: Number(args.createdAt ?? 0), - updatedAt: Number(args.updatedAt ?? 0), - origin: null, - kind: args.kind === "paragraph" ? "paragraph" : null, - userId, - }; - store.set(id, row); - result = { id }; + commitOutlinePlan( + store, + planInsertSibling(liveIndex(), { + id: id(), + userId, + parentId: (args.parentId as string | null) ?? null, + afterId: (args.afterId as string | null) ?? null, + text: String(args.text ?? ""), + isTask: Boolean(args.isTask), + kind: args.kind === "paragraph" ? "paragraph" : null, + createdAt: Number(args.createdAt ?? 0), + updatedAt: updatedAt(), + }), + ); + result = { id: id() }; + } else if (path === "mutators:insertChildAtStart") { + commitOutlinePlan( + store, + planInsertChildAtStart(liveIndex(), { + id: id(), + userId, + parentId: (args.parentId as string | null) ?? null, + text: String(args.text ?? ""), + isTask: Boolean(args.isTask), + kind: args.kind === "paragraph" ? "paragraph" : null, + createdAt: Number(args.createdAt ?? 0), + updatedAt: updatedAt(), + }), + ); + result = { id: id() }; + } else if (path === "mutators:splitNode") { + const newId = String(args.newId ?? ""); + commitOutlinePlan( + store, + planSplitNode(liveIndex(), { + id: id(), + newId, + userId, + parentId: (args.parentId as string | null) ?? null, + afterId: String(args.afterId ?? id()), + leftText: String(args.leftText ?? ""), + rightText: String(args.rightText ?? ""), + isTask: Boolean(args.isTask), + kind: args.kind === "paragraph" ? "paragraph" : null, + createdAt: Number(args.createdAt ?? 0), + updatedAt: updatedAt(), + }), + ); + result = { id: newId }; + } else if (path === "mutators:indent") { + commitOutlinePlan( + store, + planIndent( + liveIndex(), + id(), + updatedAt(), + Boolean(args.resolveMirror), + ), + ); + } else if (path === "mutators:outdent") { + commitOutlinePlan(store, planOutdent(liveIndex(), id(), updatedAt())); + } else if (path === "mutators:removeNode") { + commitOutlinePlan( + store, + planRemoveNode(liveIndex(), id(), updatedAt()), + ); + } else if (path === "mutators:restoreNodes") { + const target = (args.nodes as OutlineNode[] | undefined) ?? []; + const current = [...store.values()].map(rowToOutline); + commitOutlinePlan(store, planRestoreNodes(current, target)); + result = { ok: true }; } else if (path === "mutators:seedIfEmpty") { result = { seeded: false }; - } else { - // Accept unknown mutators so watermark chain doesn't wedge. - result = {}; + } else if (path === "mutators:claimDailyMapping") { + const key = String(args.key ?? ""); + const candidate = String(args.nodeId ?? ""); + const existing = dailyIndex.get(key); + const { winner, won } = resolveDailyClaim(existing?.nodeId, candidate); + dailyIndex.set(key, { + _id: key, + key, + nodeId: winner, + touchedAt: Number(args.touchedAt ?? Date.now()), + userId, + }); + result = { nodeId: winner, won }; + pokeShapes = new Set(["userDailyIndex"]); + } else if (path === "mutators:upsertDailyMapping") { + const key = String(args.key ?? ""); + dailyIndex.set(key, { + _id: key, + key, + nodeId: String(args.nodeId ?? ""), + touchedAt: Number(args.touchedAt ?? Date.now()), + userId, + }); + pokeShapes = new Set(["userDailyIndex"]); + } else if (path === "mutators:deleteDailyMapping") { + dailyIndex.delete(String(args.key ?? "")); + pokeShapes = new Set(["userDailyIndex"]); } + // Unknown mutators: accept so watermark chain doesn't wedge. await reply(route, { result, lastMutationId: seq }); - - // Echo a poke so checkpoints.awaitMutationId resolves. - for (const ws of sockets) { - for (const [shapeId, meta] of shapeSubs) { - if (meta.name === "wholeOutline") { - sendPoke(ws, shapeId, [...store.values()], seq); - } - } - } + pokeSubscribed(seq, pokeShapes); }, ); @@ -593,7 +790,6 @@ export async function seedOutlineLunora( return; } if (msg.type === "connect") { - // No ack required by the client. return; } if (msg.type === "shape_subscribe" && msg.id && msg.shape?.name) { diff --git a/e2e/lunora-structural.spec.ts b/e2e/lunora-structural.spec.ts new file mode 100644 index 00000000..bb690af6 --- /dev/null +++ b/e2e/lunora-structural.spec.ts @@ -0,0 +1,104 @@ +import { expect, test, type Page } from "@playwright/test"; + +import { seedOutlineLunora, STANDARD_TREE, type SeedNode } from "./fixtures"; + +/** + * Lunora flag-ON structural subset — proves enter-split / indent / delete + * ride `seedOutlineLunora` (planner-backed `/_lunora/rpc` mock). + * + * Run: `bunx playwright test e2e/lunora-*.spec.ts` + * Classic suite stays on `seedOutline` (flag OFF). + */ + +const text = (page: Page, id: string) => + page.locator(`li[data-node-id="${id}"] > .outline-row .node-text`); + +const row = (page: Page, id: string) => + page.locator(`li[data-node-id="${id}"]`); + +const focused = (page: Page) => page.locator(".node-text:focus"); + +const orderedTexts = (page: Page) => + page.locator(".outline-row .node-text").allTextContents(); + +async function load(page: Page, tree: SeedNode[]) { + await seedOutlineLunora(page, tree); + await page.goto("/"); + await expect(text(page, tree[0]!.id)).toBeVisible({ timeout: 15_000 }); +} + +async function caretAt(page: Page, id: string, col: number) { + await text(page, id).click(); + await text(page, id).evaluate((el, target) => { + const sel = window.getSelection(); + if (!sel) return; + const walker = document.createTreeWalker(el, NodeFilter.SHOW_TEXT); + let remaining = target; + let node = walker.nextNode(); + const range = document.createRange(); + while (node) { + const len = node.textContent?.length ?? 0; + if (remaining <= len) { + range.setStart(node, remaining); + range.collapse(true); + sel.removeAllRanges(); + sel.addRange(range); + return; + } + remaining -= len; + node = walker.nextNode(); + } + range.selectNodeContents(el); + range.collapse(false); + sel.removeAllRanges(); + sel.addRange(range); + }, col); +} + +test.describe("Lunora structural (flag ON)", () => { + test("Enter mid-text splits into a sibling", async ({ page }) => { + await load(page, [ + { id: "n", parentId: null, prevSiblingId: null, text: "alphabravo" }, + ]); + + await caretAt(page, "n", 5); + await page.keyboard.press("Enter"); + + await expect(text(page, "n")).toHaveText("alpha"); + await expect(focused(page)).toHaveText("bravo"); + expect(await orderedTexts(page)).toEqual(["alpha", "bravo"]); + }); + + test("Tab indents under the previous sibling", async ({ page }) => { + await load(page, [ + { id: "a", parentId: null, prevSiblingId: null, text: "Alpha" }, + { id: "b", parentId: null, prevSiblingId: "a", text: "Bravo" }, + ]); + + await text(page, "b").click(); + await page.keyboard.press("Tab"); + + await expect(row(page, "b")).toHaveAttribute("data-parent-id", "a"); + await expect(row(page, "b")).toHaveAttribute("data-depth", "1"); + }); + + test("/delete removes a leaf and persists across reload", async ({ + page, + }) => { + await load(page, STANDARD_TREE); + + await text(page, "bravo").click(); + await page.keyboard.type(" /delete"); + await expect(page.getByRole("listbox")).toBeVisible(); + await page.keyboard.press("Enter"); + + await expect(row(page, "bravo")).toHaveCount(0); + await expect(text(page, "alpha")).toBeVisible(); + await expect(text(page, "charlie")).toBeVisible(); + + await page.reload(); + await expect(text(page, "alpha")).toBeVisible({ timeout: 15_000 }); + await expect(row(page, "bravo")).toHaveCount(0); + await expect(text(page, "charlie")).toBeVisible(); + }); +}); diff --git a/e2e/lunora-undo.spec.ts b/e2e/lunora-undo.spec.ts new file mode 100644 index 00000000..c90f328d --- /dev/null +++ b/e2e/lunora-undo.spec.ts @@ -0,0 +1,51 @@ +import { expect, test, type Page } from "@playwright/test"; + +import { seedOutlineLunora, type SeedNode } from "./fixtures"; + +/** + * Lunora flag-ON undo/redo via `mutators:restoreNodes` (mock applies + * planRestoreNodes). Small undos only — sliced modal path stays classic e2e. + * + * Run: `bunx playwright test e2e/lunora-*.spec.ts` + */ + +const text = (page: Page, id: string) => + page.locator(`li[data-node-id="${id}"] > .outline-row .node-text`); + +const row = (page: Page, id: string) => + page.locator(`li[data-node-id="${id}"]`); + +const TREE: SeedNode[] = [ + { id: "a", parentId: null, prevSiblingId: null, text: "Alpha" }, + { id: "b", parentId: null, prevSiblingId: "a", text: "Bravo" }, + { id: "c", parentId: null, prevSiblingId: "b", text: "Charlie" }, +]; + +test.describe("Lunora undo/redo (flag ON)", () => { + test("Cmd+Z restores a deleted leaf; Cmd+Shift+Z re-deletes", async ({ + page, + }) => { + await seedOutlineLunora(page, TREE); + await page.goto("/"); + await expect(text(page, "a")).toBeVisible({ timeout: 15_000 }); + + await text(page, "b").click(); + await page.keyboard.type(" /delete"); + await expect(page.getByRole("listbox")).toBeVisible(); + await page.keyboard.press("Enter"); + await expect(row(page, "b")).toHaveCount(0); + + await text(page, "a").click(); + await page.keyboard.press("ControlOrMeta+z"); + await expect(text(page, "b")).toBeVisible({ timeout: 10_000 }); + + await page.keyboard.press("ControlOrMeta+Shift+z"); + await expect(row(page, "b")).toHaveCount(0); + + // Persisted through the mock store. + await page.reload(); + await expect(text(page, "a")).toBeVisible({ timeout: 15_000 }); + await expect(row(page, "b")).toHaveCount(0); + await expect(text(page, "c")).toBeVisible(); + }); +}); From 380c83c22f6b6dcf3107e6691e5876f04af1dabb Mon Sep 17 00:00:00 2001 From: Cameron Pak Date: Thu, 23 Jul 2026 13:54:14 -0500 Subject: [PATCH 34/59] docs(e2e): note lunora-*.spec.ts run command on smoke file Co-authored-by: Cursor --- e2e/lunora-sync-smoke.spec.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/e2e/lunora-sync-smoke.spec.ts b/e2e/lunora-sync-smoke.spec.ts index 8f3b1e7a..d0147770 100644 --- a/e2e/lunora-sync-smoke.spec.ts +++ b/e2e/lunora-sync-smoke.spec.ts @@ -7,6 +7,8 @@ import { seedOutlineLunora, type SeedNode } from "./fixtures"; * Uses `seedOutlineLunora` (mocks `/_lunora/*`). Classic suite stays on * `seedOutline` with the flag default OFF. * + * Run with the Lunora subset: `bunx playwright test e2e/lunora-*.spec.ts` + * * If this flakes locally (WS poke / watermark timing), keep the fixture and * treat this file as the path forward — do not rewrite the whole e2e suite yet. */ From 446cd350371cfb3a348d1c34779c464a3e888dd3 Mon Sep 17 00:00:00 2001 From: Cameron Pak Date: Thu, 23 Jul 2026 14:34:57 -0500 Subject: [PATCH 35/59] fix(lunora): live-nodes reads for flag-ON selection, daily, paste Event-time callers were still reading classic nodesCollection (empty under Lunora). Prefer explicit Cmd+K delete targets so overlay focus restore cannot delete the wrong bullet. Co-authored-by: Cursor --- src/components/OutlineEditor.tsx | 17 +++-- src/components/markdown-paste.ts | 111 +++++++++++++++++++++++++++-- src/components/node-switcher.tsx | 5 +- src/data/focus-key.ts | 10 +-- src/data/live-nodes.ts | 36 ++++++++++ src/data/mutations.ts | 5 +- src/data/selection-state.ts | 9 +-- src/plugins/daily/get-or-create.ts | 19 ++--- 8 files changed, 183 insertions(+), 29 deletions(-) create mode 100644 src/data/live-nodes.ts diff --git a/src/components/OutlineEditor.tsx b/src/components/OutlineEditor.tsx index c016ba26..6fb24cae 100644 --- a/src/components/OutlineEditor.tsx +++ b/src/components/OutlineEditor.tsx @@ -1611,11 +1611,20 @@ function useNodeCommands({ // Delete the INSTANCE (position is local, ADR 0022): backspacing a // mirror's own row removes that mirror, never its source (which would // strand the other instances -- promote-on-source-delete is Stage 3). - // Address by the focused key; the keymap passes the content id in a - // mirror. - const activeKey = findFocusedId() ?? id; - const instanceId = instanceIdForKey(activeKey); + // Prefer the explicit target when it names a live node (Cmd+K / slash + // bind the id). Only fall back to focus when the caller passed a + // content id while a mirror INSTANCE holds focus (keymap). const idx = getTreeIndex(); + const focused = findFocusedId(); + const targetInstance = instanceIdForKey(id); + const focusedInstance = focused ? instanceIdForKey(focused) : null; + const activeKey = + focused && focusedInstance === targetInstance + ? focused + : idx.byId.has(id) + ? id + : (focused ?? id); + const instanceId = instanceIdForKey(activeKey); const mirrorsOn = isMirrorsEnabled(); const contentId = mirrorsOn ? (idx.byId.get(instanceId)?.mirrorOf ?? instanceId) diff --git a/src/components/markdown-paste.ts b/src/components/markdown-paste.ts index 87970551..d98f495c 100644 --- a/src/components/markdown-paste.ts +++ b/src/components/markdown-paste.ts @@ -11,10 +11,17 @@ import { toast } from "sonner"; +import type { OutlineNode } from "../data/outline-plans"; + import { nodesCollection } from "../data/collection"; -import { isMirrorsEnabled } from "../data/flags"; +import { isLunoraSyncEnabled, isMirrorsEnabled } from "../data/flags"; import { focusKeyFor } from "../data/focus-key"; import { capture, drop, RESTORE_SLICE_OPS } from "../data/history"; +import { getLiveNodes, getLiveOutlineNodes } from "../data/live-nodes"; +import { + getLunoraOutlineContext, + trackLunoraMutation, +} from "../data/lunora-sync"; import { countForest, parseMarkdownForest, @@ -25,7 +32,7 @@ import { type MdPastePlan, } from "../data/markdown-import"; import { runStructural, runStructuralSliced } from "../data/structural"; -import { buildTreeIndex, makeNode, now, type Node } from "../data/tree"; +import { buildTreeIndex, makeNode, now } from "../data/tree"; import { getTreeIndex } from "../data/tree-store"; import { getViewFilter, @@ -126,6 +133,31 @@ export function pasteMarkdownTree(args: MarkdownPasteArgs): boolean { return true; const timestamp = now(); + + // Lunora flag-ON: classic `nodesCollection` is idle — land via one + // `restoreNodes` watermark (anchor patch + inserts + repoints) so paste + // doesn't throw CollectionOperationError on a missing classic key. + if (isLunoraSyncEnabled()) { + const lunora = getLunoraOutlineContext(); + if (!lunora) { + toast.error("Sync is still starting — try pasting again in a moment."); + return true; + } + capture(index, activeKey); + runStructural(() => { + applyMarkdownPasteViaRestore(plan, anchorId, timestamp, lunora.userId); + }); + const seam = resolveSeam(plan, anchorId, count); + if (seam.id === anchorId) + focus.placeCaretHere(plan.anchor.text, seam.offset); + else { + const key = focusKeyFor(seam.id, activeKey); + focus.setPendingFocus(key, seam.offset); + scrollRowIntoView(key); + } + return true; + } + const writeAnchor = () => { nodesCollection.update(anchorId, (draft) => { draft.text = plan.anchor.text; @@ -197,6 +229,74 @@ export function pasteMarkdownTree(args: MarkdownPasteArgs): boolean { return true; } +/** Build the post-paste outline and commit via Lunora `restoreNodes`. */ +function applyMarkdownPasteViaRestore( + plan: MdPastePlan, + anchorId: string, + timestamp: number, + userId: string, +): void { + const lunora = getLunoraOutlineContext(); + if (!lunora) return; + + const byId = new Map( + getLiveOutlineNodes().map((n) => [n.id, { ...n } as OutlineNode]), + ); + const anchor = byId.get(anchorId); + if (!anchor) return; + + const nextAnchor: OutlineNode = { + ...anchor, + text: plan.anchor.text, + updatedAt: timestamp, + ...(plan.anchor.isTask !== null ? { isTask: plan.anchor.isTask } : {}), + ...(plan.anchor.completed !== null + ? { completed: plan.anchor.completed } + : {}), + ...(plan.anchor.kind !== null + ? { kind: plan.anchor.kind, isTask: false } + : plan.anchor.isTask + ? { kind: null } + : {}), + }; + byId.set(anchorId, nextAnchor); + + for (const ins of plan.inserts) { + byId.set(ins.id, { + id: ins.id, + userId, + parentId: ins.parentId, + prevSiblingId: ins.prevSiblingId, + text: ins.text, + isTask: ins.isTask, + completed: ins.completed, + collapsed: false, + bookmarkedAt: null, + mirrorOf: null, + createdAt: timestamp, + updatedAt: timestamp, + origin: null, + kind: ins.kind, + }); + } + for (const r of plan.repoints) { + const n = byId.get(r.id); + if (!n) continue; + byId.set(r.id, { + ...n, + prevSiblingId: r.prevSiblingId, + updatedAt: timestamp, + }); + } + + trackLunoraMutation( + lunora.store.mutators.restoreNodes({ + userId, + nodes: [...byId.values()], + }), + ); +} + /** * Where the caret actually lands, once the tree is on screen. * @@ -215,14 +315,15 @@ function resolveSeam( if (plan.focusId === anchorId) return { id: anchorId, offset: plan.focusOffset }; - // Build the visible set from a FRESH index off `nodesCollection.toArray` -- + // Build the visible set from a FRESH index off the live store -- // synchronously current after `runStructural` -- not `getTreeIndex()`, whose // change-notify can lag the optimistic apply and drop the just-inserted seam // node from the walk (the exact reason `focusKeyFor`, called right after this, - // rebuilds the same way; ADR 0044 / ADR 0022 Stage 2c). + // rebuilds the same way; ADR 0044 / ADR 0022 Stage 2c). Classic = + // `nodesCollection`; Lunora = `wholeOutline` via `getLiveNodes`. const visible = new Set( buildVisibleRows( - buildTreeIndex(nodesCollection.toArray as Node[]), + buildTreeIndex(getLiveNodes()), getViewRootId(), getViewIsHidden(), getViewFilter(), diff --git a/src/components/node-switcher.tsx b/src/components/node-switcher.tsx index 4be60a64..f0b856d7 100644 --- a/src/components/node-switcher.tsx +++ b/src/components/node-switcher.tsx @@ -328,8 +328,11 @@ function SwitcherDialog({ } function runAction(action: CommandCenterAction) { - close(); + // Run BEFORE close: verbs like Delete prefer `findFocusedId() ?? id`, and + // closing the dialog first lets Radix restore focus onto an unrelated row + // (Lunora tree remounts make this common) — deleting the wrong bullet. action.run(); + close(); } const actions: SearchAction[] = q diff --git a/src/data/focus-key.ts b/src/data/focus-key.ts index f2c8e65e..9d602c4c 100644 --- a/src/data/focus-key.ts +++ b/src/data/focus-key.ts @@ -1,7 +1,7 @@ import type { Node } from "./schema"; -import { nodesCollection } from "./collection"; import { isMirrorsEnabled } from "./flags"; +import { getLiveNodes } from "./live-nodes"; import { buildTreeIndex } from "./tree"; import { getViewIsHidden, getViewRootId } from "./view-state"; import { buildVisibleRows, focusKeyAfterEdit } from "./visible-order"; @@ -16,16 +16,16 @@ import { buildVisibleRows, focusKeyAfterEdit } from "./visible-order"; * * Off the flag (the 99% path) a node id is unique, so we return it directly and * skip the rebuild entirely. With the flag on we build a fresh index from - * `nodesCollection.toArray` -- synchronously current after `runStructural`, the - * same technique the structural invariant check uses -- rather than - * `getTreeIndex()`, whose change-notify can lag the optimistic apply. + * `getLiveNodes()` -- synchronously current after `runStructural` (classic + * `nodesCollection` or Lunora `wholeOutline`) -- rather than `getTreeIndex()`, + * whose change-notify can lag the optimistic apply. * * Lives here rather than beside its first caller because the markdown paste * (ADR 0044) needs it too, from a module the editor imports. */ export function focusKeyFor(instanceId: string, activeKey: string): string { if (!isMirrorsEnabled()) return instanceId; - const index = buildTreeIndex(nodesCollection.toArray as Node[]); + const index = buildTreeIndex(getLiveNodes() as Node[]); const rows = buildVisibleRows( index, getViewRootId(), diff --git a/src/data/live-nodes.ts b/src/data/live-nodes.ts new file mode 100644 index 00000000..ccb4d14c --- /dev/null +++ b/src/data/live-nodes.ts @@ -0,0 +1,36 @@ +/** + * Live outline rows for event-time reads that must see optimistic writes + * synchronously (selection refresh, markdown paste seam, multi-node mirror). + * + * Flag OFF → classic `nodesCollection`. Flag ON → Lunora `wholeOutline` + * collection (not `getTreeIndex()`, whose notify can lag the mutator apply — + * same reason `refreshSelection` historically read the collection directly). + */ + +import type { Node } from "./schema"; + +import { nodesCollection } from "./collection"; +import { isLunoraSyncEnabled } from "./flags"; +import { outlineNodeToNode } from "./lunora-bridge"; +import { getLunoraOutlineContext } from "./lunora-sync"; +import { rowToNode, type OutlineNode } from "./outline-plans"; + +/** Wire-shaped nodes (no Lunora `userId`) — selection / tree-index callers. */ +export function getLiveNodes(): Node[] { + if (isLunoraSyncEnabled()) { + const lunora = getLunoraOutlineContext(); + if (lunora) { + return lunora.store.collection.toArray.map((row) => + outlineNodeToNode(rowToNode(row)), + ); + } + } + return nodesCollection.toArray as Node[]; +} + +/** Planner nodes with shard `userId` — Lunora mutator args (restore/import). */ +export function getLiveOutlineNodes(): OutlineNode[] { + const lunora = getLunoraOutlineContext(); + if (!lunora) return []; + return lunora.store.collection.toArray.map(rowToNode); +} diff --git a/src/data/mutations.ts b/src/data/mutations.ts index fc8ffe96..91135e17 100644 --- a/src/data/mutations.ts +++ b/src/data/mutations.ts @@ -1,5 +1,6 @@ import { nodesCollection } from "./collection"; import { isLunoraSyncEnabled } from "./flags"; +import { getLiveNodes } from "./live-nodes"; import { getLunoraOutlineContext, trackLunoraMutation } from "./lunora-sync"; import { planIndent, @@ -348,7 +349,9 @@ export function mirrorManyNodes( ): number { let made = 0; for (const id of ids) { - const index = buildTreeIndex(nodesCollection.toArray); + // Live store (classic or Lunora) — nodesCollection is empty when the + // Lunora flag is ON, so rebuilding from it would no-op every mirror. + const index = buildTreeIndex(getLiveNodes()); if (mirrorNode(index, id, targetId)) made++; } return made; diff --git a/src/data/selection-state.ts b/src/data/selection-state.ts index 7ba3be07..51b3f07e 100644 --- a/src/data/selection-state.ts +++ b/src/data/selection-state.ts @@ -2,7 +2,7 @@ import { useSelector } from "@xstate/react"; import { Schema } from "effect"; import { createActor, setup } from "xstate"; -import { nodesCollection } from "./collection"; +import { getLiveNodes } from "./live-nodes"; import { buildTreeIndex, childrenOf, type Node, type TreeIndex } from "./tree"; import { getTreeIndex } from "./tree-store"; import { getViewIsHidden, getViewRootId } from "./view-state"; @@ -217,16 +217,17 @@ const selectionMachine = setup({ }, // Re-derive (parentId + rootIds) from the LIVE collection, same // anchor/focus, after a structural mutation relocates the run - // (indent/outdent). Reads `nodesCollection` directly so it's correct + // (indent/outdent). Reads the live store directly so it's correct // synchronously inside the same `runStructural` batch, before the tree - // store's subscription has rebuilt. ids + order are unchanged by an + // store's subscription has rebuilt (classic `nodesCollection` or Lunora + // `wholeOutline` — `getLiveNodes`). ids + order are unchanged by an // indent/outdent, so only `parentId` shifts. refresh: ({ context }) => { if (!context.data) return undefined; const d = computeRange( context.data.anchorId, context.data.focusId, - buildTreeIndex(nodesCollection.toArray), + buildTreeIndex(getLiveNodes()), ); return d ? { context: { data: d } } diff --git a/src/plugins/daily/get-or-create.ts b/src/plugins/daily/get-or-create.ts index 75b32da3..7195f62d 100644 --- a/src/plugins/daily/get-or-create.ts +++ b/src/plugins/daily/get-or-create.ts @@ -17,7 +17,7 @@ import { toast } from "sonner"; import type { PluginContext } from "../types"; import { setRestoreProgress } from "../../components/history-restore"; -import { nodesCollection, resyncNodes } from "../../data/collection"; +import { resyncNodes } from "../../data/collection"; import { dayKeyToScaffoldChain, parentScaffoldKey, @@ -25,6 +25,7 @@ import { } from "../../data/date-links"; import { isLunoraSyncEnabled } from "../../data/flags"; import { RESTORE_SLICE_OPS, capture } from "../../data/history"; +import { getLiveNodes } from "../../data/live-nodes"; import { getLunoraOutlineContext } from "../../data/lunora-sync"; import { appendChild, @@ -80,7 +81,7 @@ function liveOutlineNodes(): OutlineNode[] | null { function hasNode(id: string): boolean { const lunoraNodes = liveOutlineNodes(); if (lunoraNodes) return lunoraNodes.some((n) => n.id === id); - return nodesCollection.toArray.some((n) => n.id === id); + return getLiveNodes().some((n) => n.id === id); } /** One atomic claim for a scaffold/day key: the authoritative id, whether this @@ -113,7 +114,7 @@ function insertScaffoldNode( text: string, id: string, ): void { - const index = buildTreeIndex(nodesCollection.toArray); + const index = buildTreeIndex(getLiveNodes()); const siblings = childrenOf(index, parentNodeId).map((n) => ({ id: n.id, key: getKeyForNode(n.id), @@ -139,7 +140,7 @@ function healExistingDay( const lunoraNodes = liveOutlineNodes(); const node = lunoraNodes ? lunoraNodes.find((n) => n.id === dayId) - : nodesCollection.toArray.find((n) => n.id === dayId); + : getLiveNodes().find((n) => n.id === dayId); if (node && !node.text.trim()) setText(dayId, formatDayText(key)); // Seeding is opt-in at the OPEN boundary (ADR 0041): only a write-intent // surface (/today, Today button, Cmd+K "Go to Today") asks for an empty line. @@ -223,7 +224,7 @@ async function materializeNewDay( const { persisted } = runStructuralTracked(() => { // Container: appended at the end of the top level (special, not sorted). if (!hasNode(container.id)) { - const tops = childrenOf(buildTreeIndex(nodesCollection.toArray), null); + const tops = childrenOf(buildTreeIndex(getLiveNodes()), null); const after = tops.length ? tops[tops.length - 1]!.id : null; appendChild(null, after, DAILY_CONTAINER_TEXT, container.id); } @@ -406,7 +407,7 @@ async function materializeNewDayLunora(args: { function hasChildInLiveCollection(parentId: string): boolean { const lunoraNodes = liveOutlineNodes(); if (lunoraNodes) return lunoraNodes.some((n) => n.parentId === parentId); - return nodesCollection.toArray.some((n) => n.parentId === parentId); + return getLiveNodes().some((n) => n.parentId === parentId); } // --- one-time flat -> nested migration (issue #271, decision 8) -------------- @@ -440,7 +441,7 @@ let dailyMigration: Promise | null = null; async function ensureDailyMigrated(containerId: string): Promise { if (dailyMigration) return dailyMigration; const plan = planDailyMigration( - buildTreeIndex(nodesCollection.toArray), + buildTreeIndex(getLiveNodes()), containerId, getDailyRows(), getKeyForNode, @@ -464,7 +465,7 @@ function moveDaySorted( weekId: string, containerId: string, ): void { - const index = buildTreeIndex(nodesCollection.toArray); + const index = buildTreeIndex(getLiveNodes()); const day = index.byId.get(dayNodeId); if (!day) return; // deleted between plan and apply const dayKey = getKeyForNode(dayNodeId); @@ -547,7 +548,7 @@ async function runDailyMigration( // One undo point: snapshot the whole pre-migration tree, then apply. const captureStep = () => - capture(buildTreeIndex(nodesCollection.toArray), containerId); + capture(buildTreeIndex(getLiveNodes()), containerId); if (estimatedWrites < RESTORE_SLICE_OPS) { runStructural(() => { captureStep(); From 5d90aa1ef1080d56192f06106e1e2e51adfdac79 Mon Sep 17 00:00:00 2001 From: Cameron Pak Date: Thu, 23 Jul 2026 14:35:01 -0500 Subject: [PATCH 36/59] test(e2e): dual-path seedOutline Lunora via E2E_LUNORA=1 Extend the Lunora mock (per-shape checkpoints, poke deletes, unroute) so classic specs can run against /_lunora/*; skip transport-bound asserts. Co-authored-by: Cursor --- e2e/atomic-structural-writes.spec.ts | 12 +- e2e/daily-notes.spec.ts | 78 +++---- e2e/fixtures.ts | 301 ++++++++++++++++++++++++--- 3 files changed, 310 insertions(+), 81 deletions(-) diff --git a/e2e/atomic-structural-writes.spec.ts b/e2e/atomic-structural-writes.spec.ts index ccde2dcb..70504b67 100644 --- a/e2e/atomic-structural-writes.spec.ts +++ b/e2e/atomic-structural-writes.spec.ts @@ -1,6 +1,11 @@ import { expect, test, type Page } from "@playwright/test"; -import { seedOutline, STANDARD_TREE, type SeedNode } from "./fixtures"; +import { + seedOutline, + STANDARD_TREE, + isE2eLunora, + type SeedNode, +} from "./fixtures"; // Regression suite for the atomic-structural-writes cure (PLAN.md): // - P1: one structural edit = exactly ONE /api/nodes request carrying every op. @@ -99,6 +104,11 @@ function applyWrites(seed: SeedNode[], writes: NodesWrite[]): SeedNode[] { } test.describe("atomic structural writes", () => { + test.skip( + isE2eLunora(), + "asserts classic /api/nodes batch wire; Lunora uses /_lunora/rpc", + ); + test("a structural edit is exactly one /api/nodes batch request (P1)", async ({ page, }) => { diff --git a/e2e/daily-notes.spec.ts b/e2e/daily-notes.spec.ts index 8393f622..d18d2528 100644 --- a/e2e/daily-notes.spec.ts +++ b/e2e/daily-notes.spec.ts @@ -9,7 +9,12 @@ import { weekLabel, yearLabel, } from "../src/data/date-links"; -import { seedOutline, STANDARD_TREE, type SeedNode } from "./fixtures"; +import { + seedOutline, + STANDARD_TREE, + isE2eLunora, + type SeedNode, +} from "./fixtures"; // Cmd on macOS, Control elsewhere. function modifier() { @@ -538,6 +543,12 @@ test.describe("daily notes", () => { test("a lost claim adopts the winner's note (no duplicate on a race)", async ({ page, }) => { + // Classic-only: fakes a stale `/api/kv` replica + `?op=claim` winner ack. + // Lunora delivers daily-index via shapes (no empty-GET + claim override). + test.skip( + isE2eLunora(), + "claim-race simulation is classic /api/kv transport", + ); // Simulate the race: this device's local daily-index replica is empty (it // GETs an empty /api/kv below), so it thinks today is absent and CLAIMS -- // but another device already created the container + today's note, so the @@ -621,7 +632,9 @@ test.describe("daily notes", () => { }) => { // daily-index points at ids with no matching outline rows (stale mapping). // Today must create those nodes under the claimed ids, not show the - // "That bullet doesn't exist" empty state. + // "That bullet doesn't exist" empty state. Seed via `kv` so both classic + // `/api/kv` and Lunora `userDailyIndex` shapes see the orphans (a post-seed + // `/api/kv` route override is classic-only). const d = new Date(); const todayKey = `${d.getFullYear()}-${String(d.getMonth() + 1).padStart( 2, @@ -632,55 +645,20 @@ test.describe("daily notes", () => { [todayKey]: "ghost-today", }; - await seedOutline(page, STANDARD_TREE); - - const kvStore = new Map([ - ["container", { key: "container", nodeId: orphans.container }], - [todayKey, { key: todayKey, nodeId: orphans[todayKey] }], - ]); - - await page.route( - (url) => url.pathname === "/api/kv", - async (route) => { - const req = route.request(); - const collection = new URL(req.url()).searchParams.get("collection"); - if (collection !== "daily-index") return route.fallback(); - - switch (req.method()) { - case "GET": - return route.fulfill({ - status: 200, - contentType: "application/json", - body: JSON.stringify([...kvStore.values()]), - }); - case "POST": { - if (new URL(req.url()).searchParams.get("op") === "claim") { - const { key, value } = req.postDataJSON() as { - key: string; - value: { key: string; nodeId: string }; - }; - if (!kvStore.has(key)) kvStore.set(key, value); - return route.fulfill({ - status: 200, - contentType: "application/json", - body: JSON.stringify({ value: kvStore.get(key) }), - }); - } - const { rows } = req.postDataJSON() as { - rows: { key: string; value: { key: string; nodeId: string } }[]; - }; - for (const r of rows ?? []) kvStore.set(r.key, r.value); - return route.fulfill({ - status: 200, - contentType: "application/json", - body: JSON.stringify({ ok: true }), - }); - } - default: - return route.fallback(); - } + await seedOutline(page, STANDARD_TREE, { + kv: { + "daily-index": [ + { + key: "container", + value: { key: "container", nodeId: orphans.container }, + }, + { + key: todayKey, + value: { key: todayKey, nodeId: orphans[todayKey] }, + }, + ], }, - ); + }); await page.goto("/"); await expect( diff --git a/e2e/fixtures.ts b/e2e/fixtures.ts index 8cadb378..f5821bd5 100644 --- a/e2e/fixtures.ts +++ b/e2e/fixtures.ts @@ -3,10 +3,19 @@ import type { Page, Route, WebSocketRoute } from "@playwright/test"; import { applyPlan, buildTreeIndex, + planAppendChild, + planImportNodes, planIndent, + planIndentMany, planInsertChildAtStart, planInsertSibling, + planMaterializeDailyNodes, + planMirrorNode, + planMoveMany, + planMoveNode, planOutdent, + planOutdentMany, + planRemoveMany, planRemoveNode, planRestoreNodes, planSetBookmarkedAt, @@ -21,6 +30,23 @@ import { } from "../src/data/outline-plans"; import { resolveDailyClaim } from "../src/plugins/daily/claim-mapping"; +/** True when this Playwright process targets the Lunora mock (`E2E_LUNORA=1` + * or `seedOutline(..., { lunora: true })`). Specs that override classic + * `/api/kv?op=claim` should skip under Lunora — shapes/mutators replace that + * transport. */ +export function isE2eLunora(opts?: { lunora?: boolean }): boolean { + if (opts?.lunora === true) return true; + if (opts?.lunora === false) return false; + const env = process.env.E2E_LUNORA; + return env === "1" || env === "true"; +} + +/** Opt classic specs onto the Lunora mock: `seedOutline(..., { lunora: true })` + * or `E2E_LUNORA=1 bunx playwright test …`. Default stays classic (`/api/sync`). */ +function wantsLunoraSeed(opts: { lunora?: boolean } | undefined): boolean { + return isE2eLunora(opts); +} + // A node as the test author cares about it -- structural fields only. Everything // the schema also requires (isTask/completed/collapsed/timestamps) is filled in // with inert defaults by seedOutline so each test only states what matters. @@ -108,6 +134,11 @@ function toNode(n: SeedNode): ApiNode { * The store is scoped to this test's `page`. Playwright gives each test its own * page/context, so two tests never share state. Register before `page.goto(...)` * (every spec does) so the collection's first sync is mocked. + * + * Dual-path: pass `{ lunora: true }` or set `E2E_LUNORA=1` to route through + * `seedOutlineLunora` (flag ON + `/_lunora/*` mock). Classic-only opts + * (`echoDelayMs`, `echoChunks`, `postDelayMs`, `failStructuralWrites`, + * `serverVersion`) are ignored on that path — those specs stay classic-only. */ export async function seedOutline( page: Page, @@ -139,8 +170,15 @@ export async function seedOutline( * (not a transport error), so the client's retry policy doesn't kick in — * the failure lands immediately. */ failStructuralWrites?: boolean; + /** When true, use the Lunora `/_lunora/*` mock + enable the client flag. + * Also enabled by `E2E_LUNORA=1` / `true` when this is unset. */ + lunora?: boolean; } = {}, ): Promise { + if (wantsLunoraSeed(opts)) { + return seedOutlineLunora(page, nodes, { kv: opts.kv }); + } + const echoDelayMs = opts.echoDelayMs ?? 0; // Delay only the structural-batch POST *response* (not its echo). Opens a // window to prove the client serializes batches: a second batch must not be @@ -431,13 +469,28 @@ type DailyIndexRow = { userId: string; }; +type TagColorRow = { + _id: string; + tag: string; + color: string; + userId: string; +}; + +type SavedQueryRow = { + _id: string; + name: string; + query: string; + createdAt: number; + userId: string; +}; + /** * Seed an outline on the Lunora flag-ON path by mocking `/_lunora/ws` + * `/_lunora/rpc`. Structural mutators apply the same `outline-plans` pure - * planners as production (insert/split/indent/delete/restore/…). + * planners as production (insert/split/indent/delete/restore/move/multi/…). * - * Classic `seedOutline` stays the default for the existing suite (flag OFF). - * Opt into Lunora per-spec via this helper — flag stays default OFF in app. + * Also reachable via `seedOutline(..., { lunora: true })` or `E2E_LUNORA=1` + * so classic specs can run against Lunora without rewriting call sites. * Auto-migrate is skipped by mocking GET `/api/nodes` → []. */ export async function seedOutlineLunora( @@ -445,10 +498,19 @@ export async function seedOutlineLunora( nodes: SeedNode[], opts: { userId?: string; - /** Pre-seed Lunora kv shapes (dailyIndex / tagColors / savedQueries). */ + /** Pre-seed Lunora kv shapes from classic kv collection names + * (`daily-index` / `tag-colors` / `saved-queries`). */ kv?: Record; } = {}, ): Promise { + // Drop prior Lunora mocks from earlier tests on this page — stacked + // `routeWebSocket` handlers can keep an old in-memory store alive across + // reload (delete "persists" then resurrects from the stale mock). + await page.unroute("**/_lunora/**"); + await page.unroute("**/api/auth/get-session"); + await page.unroute("**/api/nodes"); + await page.unroute("**/api/kv"); + const userId = opts.userId ?? "test-user"; const store = new Map(); for (const n of nodes) store.set(n.id, toLunoraRow(n, userId)); @@ -467,9 +529,46 @@ export async function seedOutlineLunora( }); } + const tagColors = new Map(); + for (const r of opts.kv?.["tag-colors"] ?? []) { + const v = r.value as { tag?: string; color?: string }; + const tag = String(v.tag ?? r.key); + tagColors.set(tag, { + _id: tag, + tag, + color: String(v.color ?? ""), + userId, + }); + } + + const savedQueries = new Map(); + for (const r of opts.kv?.["saved-queries"] ?? []) { + const v = r.value as { + id?: string; + name?: string; + query?: string; + createdAt?: number; + }; + const id = String(v.id ?? r.key); + savedQueries.set(id, { + _id: id, + name: String(v.name ?? ""), + query: String(v.query ?? ""), + createdAt: Number(v.createdAt ?? 0), + userId, + }); + } + let clientSeq = 0; - let checkpoint = 0; let pokeN = 0; + /** Per-shape poke cursor — a shared counter desyncs shapes and Lunora + * drops the poke (`baseDiverged`) without firing `onCheckpoint`, which + * wedges `isPersisted` (claimDaily / materializeDaily / seedIfEmpty). */ + const shapeCheckpoints = new Map(); + /** Last keys we put into each shape — poke is a diff; without deletes for + * removed keys the client view keeps stale rows (Cmd+K delete "works" then + * the poke resurrects the bullet). */ + const shapeKeys = new Map>(); const sockets = new Set(); const shapeSubs = new Map(); @@ -488,12 +587,24 @@ export async function seedOutlineLunora( ) => { pokeN += 1; const pokeId = `p${pokeN}`; - checkpoint += 1; + const base = shapeCheckpoints.get(shapeId) ?? 0; + const next = base + 1; + shapeCheckpoints.set(shapeId, next); + const nextKeys = new Set(rows.map((r) => r._id)); + const prevKeys = shapeKeys.get(shapeId) ?? new Set(); + const rowsPatch: Array> = []; + for (const key of prevKeys) { + if (!nextKeys.has(key)) rowsPatch.push({ op: "delete", key }); + } + for (const r of rows) { + rowsPatch.push({ op: "put", key: r._id, value: r }); + } + shapeKeys.set(shapeId, nextKeys); ws.send( JSON.stringify({ type: "pokeStart", pokeId, - baseCheckpoint: checkpoint - 1, + baseCheckpoint: base, epoch: 1, }), ); @@ -503,50 +614,44 @@ export async function seedOutlineLunora( pokeId, shapeId, lastMutationId, - rowsPatch: rows.map((r) => ({ - op: "put", - key: r._id, - value: r, - })), + rowsPatch, }), ); ws.send( JSON.stringify({ type: "pokeEnd", pokeId, - checkpoint, + checkpoint: next, epoch: 1, }), ); }; + const shapeRows = ( + name: string, + ): Array & { _id: string }> => { + if (name === "wholeOutline") return [...store.values()]; + if (name === "userDailyIndex") return [...dailyIndex.values()]; + if (name === "userTagColors") return [...tagColors.values()]; + if (name === "userSavedQueries") return [...savedQueries.values()]; + return []; + }; + const seedShape = (ws: WebSocketRoute, shapeId: string, name: string) => { - if (name === "wholeOutline") { - sendPoke(ws, shapeId, [...store.values()], 0); - return; - } - if (name === "userDailyIndex") { - sendPoke(ws, shapeId, [...dailyIndex.values()], 0); - return; - } - // Empty tagColors / savedQueries. - sendPoke(ws, shapeId, [], 0); + sendPoke(ws, shapeId, shapeRows(name), 0); }; const pokeSubscribed = (seq: number, shapes: ReadonlySet) => { for (const ws of sockets) { for (const [shapeId, meta] of shapeSubs) { if (!shapes.has(meta.name)) continue; - if (meta.name === "wholeOutline") { - sendPoke(ws, shapeId, [...store.values()], seq); - } else if (meta.name === "userDailyIndex") { - sendPoke(ws, shapeId, [...dailyIndex.values()], seq); - } + sendPoke(ws, shapeId, shapeRows(meta.name), seq); } } }; const liveIndex = () => buildTreeIndex([...store.values()].map(rowToOutline)); + const liveNodes = () => [...store.values()].map(rowToOutline); await page.addInitScript(() => { window.localStorage.setItem("dotflowy:flag:lunora-sync", "on"); @@ -690,6 +795,21 @@ export async function seedOutlineLunora( }), ); result = { id: id() }; + } else if (path === "mutators:appendChild") { + commitOutlinePlan( + store, + planAppendChild(liveIndex(), { + id: id(), + userId, + parentId: (args.parentId as string | null) ?? null, + text: String(args.text ?? ""), + isTask: Boolean(args.isTask), + kind: args.kind === "paragraph" ? "paragraph" : null, + createdAt: Number(args.createdAt ?? 0), + updatedAt: updatedAt(), + }), + ); + result = { id: id() }; } else if (path === "mutators:splitNode") { const newId = String(args.newId ?? ""); commitOutlinePlan( @@ -726,13 +846,129 @@ export async function seedOutlineLunora( store, planRemoveNode(liveIndex(), id(), updatedAt()), ); + } else if (path === "mutators:moveNode") { + commitOutlinePlan( + store, + planMoveNode(liveIndex(), { + id: id(), + newParentId: (args.newParentId as string | null) ?? null, + afterSiblingId: (args.afterSiblingId as string | null) ?? null, + updatedAt: updatedAt(), + expandIds: args.expandIds as string[] | undefined, + }), + ); } else if (path === "mutators:restoreNodes") { const target = (args.nodes as OutlineNode[] | undefined) ?? []; - const current = [...store.values()].map(rowToOutline); - commitOutlinePlan(store, planRestoreNodes(current, target)); + commitOutlinePlan(store, planRestoreNodes(liveNodes(), target)); result = { ok: true }; + } else if (path === "mutators:importNodes") { + const imported = (args.nodes as OutlineNode[] | undefined) ?? []; + commitOutlinePlan(store, planImportNodes(imported)); + result = { count: imported.length }; + } else if (path === "mutators:mirrorNode") { + commitOutlinePlan( + store, + planMirrorNode(liveIndex(), { + id: id(), + userId, + sourceId: String(args.sourceId ?? ""), + targetParentId: (args.targetParentId as string | null) ?? null, + createdAt: Number(args.createdAt ?? 0), + updatedAt: updatedAt(), + }), + ); + result = { id: id() }; + } else if (path === "mutators:removeMany") { + const nodeIds = (args.nodeIds as string[] | undefined) ?? []; + commitOutlinePlan( + store, + planRemoveMany(liveNodes(), nodeIds, updatedAt()), + ); + } else if (path === "mutators:moveMany") { + const nodeIds = (args.nodeIds as string[] | undefined) ?? []; + commitOutlinePlan( + store, + planMoveMany(liveNodes(), { + targetId: (args.targetId as string | null) ?? null, + nodeIds, + updatedAt: updatedAt(), + }), + ); + } else if (path === "mutators:indentMany") { + const nodeIds = (args.nodeIds as string[] | undefined) ?? []; + commitOutlinePlan( + store, + planIndentMany( + liveNodes(), + nodeIds, + updatedAt(), + Boolean(args.resolveMirror), + ), + ); + } else if (path === "mutators:outdentMany") { + const nodeIds = (args.nodeIds as string[] | undefined) ?? []; + commitOutlinePlan( + store, + planOutdentMany(liveNodes(), nodeIds, updatedAt()), + ); + } else if (path === "mutators:materializeDailyNodes") { + const inserts = + (args.inserts as + | { + id: string; + parentId: string | null; + afterId: string | null; + text: string; + }[] + | undefined) ?? []; + commitOutlinePlan( + store, + planMaterializeDailyNodes(liveNodes(), { + userId, + inserts, + createdAt: Number(args.createdAt ?? 0), + updatedAt: updatedAt(), + }), + ); + result = { count: inserts.length }; } else if (path === "mutators:seedIfEmpty") { result = { seeded: false }; + } else if (path === "mutators:upsertTagColor") { + const tag = String(args.tag ?? ""); + tagColors.set(tag, { + _id: tag, + tag, + color: String(args.color ?? ""), + userId, + }); + pokeShapes = new Set(["userTagColors"]); + } else if (path === "mutators:deleteTagColor") { + tagColors.delete(String(args.tag ?? "")); + pokeShapes = new Set(["userTagColors"]); + } else if (path === "mutators:upsertSavedQuery") { + const sid = String(args.id ?? ""); + savedQueries.set(sid, { + _id: sid, + name: String(args.name ?? ""), + query: String(args.query ?? ""), + createdAt: Number(args.createdAt ?? 0), + userId, + }); + pokeShapes = new Set(["userSavedQueries"]); + } else if (path === "mutators:patchSavedQuery") { + const sid = String(args.id ?? ""); + const cur = savedQueries.get(sid); + if (cur) { + savedQueries.set(sid, { + ...cur, + name: args.name !== undefined ? String(args.name) : cur.name, + query: args.query !== undefined ? String(args.query) : cur.query, + }); + } + pokeShapes = new Set(["userSavedQueries"]); + } else if (path === "mutators:deleteSavedQuery") { + savedQueries.delete(String(args.id ?? "")); + pokeShapes = new Set(["userSavedQueries"]); } else if (path === "mutators:claimDailyMapping") { const key = String(args.key ?? ""); const candidate = String(args.nodeId ?? ""); @@ -763,6 +999,11 @@ export async function seedOutlineLunora( } // Unknown mutators: accept so watermark chain doesn't wedge. + // Watermark is per-client on the shard (wholeOutline checkpoints gate + // isPersisted). Kv-only mutators must still advance wholeOutline or + // claimDailyMapping / materializeDailyNodes hang awaiting the poke. + pokeShapes.add("wholeOutline"); + await reply(route, { result, lastMutationId: seq }); pokeSubscribed(seq, pokeShapes); }, From dc6b0424da37c31930593b655b04ce6d3458046a Mon Sep 17 00:00:00 2001 From: Cameron Pak Date: Thu, 23 Jul 2026 14:35:01 -0500 Subject: [PATCH 37/59] docs: handoff Lunora e2e matrix and default-ON blockers Record dual-path pass/skip matrix, dogfood migrate FAIL, keep flag OFF. Co-authored-by: Cursor --- HANDOFF.md | 150 +++++++++++++++++++++++++---------------------------- 1 file changed, 72 insertions(+), 78 deletions(-) diff --git a/HANDOFF.md b/HANDOFF.md index b8dcf0bc..cf379a24 100644 --- a/HANDOFF.md +++ b/HANDOFF.md @@ -4,115 +4,109 @@ ## Status -`phase-2-flag-swap` — outline sync can ride Lunora shapes/mutators behind a **default-OFF** flag. Custom `/api/sync` + `nodesCollection` + `runStructural` remain the default path (Playwright classic suite + normal `bun run dev`). **No PR until remaining gaps close + e2e green on Lunora (or still on old wire by design).** +Dual-path e2e + product fixes landed. Client flag **still default OFF**. Not ready to flip default ON — dogfood migrate blocked; a few classic specs stay Lunora-incompatible (skipped). ## Flag — Lunora outline sync (client) -| | | -| ----------- | --------------------------------------------------------------------------------------------------------------------------------------- | -| **Name** | `dotflowy:flag:lunora-sync` | -| **Getter** | `isLunoraSyncEnabled()` in `src/data/flags.ts` | -| **Default** | **OFF** | -| **Enable** | `localStorage.setItem("dotflowy:flag:lunora-sync", "on")` then reload, **or** `?lunora-sync=on` (URL wins for that load; not persisted) | -| **Disable** | `"off"` in localStorage, or `?lunora-sync=off` | +| | | +| ----------- | ----------------------------------------------------------------------------------------------- | +| **Name** | `dotflowy:flag:lunora-sync` | +| **Getter** | `isLunoraSyncEnabled()` in `src/data/flags.ts` | +| **Default** | **OFF** (do not flip until checklist below) | +| **Enable** | `localStorage.setItem("dotflowy:flag:lunora-sync", "on")` then reload, **or** `?lunora-sync=on` | +| **Disable** | `"off"` in localStorage, or `?lunora-sync=off` | ## Flag — Lunora MCP store (Worker) -| | | -| ------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| **Name** | `LUNORA_OUTLINE` (env / `.dev.vars`) | -| **Getter** | `isLunoraOutlineEnabled(env)` in `worker/lunora-mcp-store.ts` | -| **Default** | **OFF** (unset) | -| **Enable** | `LUNORA_OUTLINE=1` (or `true`) in `.dev.vars` / wrangler secrets — see `.dev.vars.example` | -| **Behavior** | When ON: `/mcp` tools plan via `outline-ops` then commit through Lunora `mcp:applyChangeOps` + `mcp:listNodes` on the user shard. When OFF: classic `UserOutlineDO.applyBatch`. | +| | | +| ----------- | ---------------------------------------------------------------------------------------- | +| **Name** | `LUNORA_OUTLINE` | +| **Default** | **OFF** (unset in `.dev.vars.example` still documents the opt-in; do not default to `1`) | +| **Enable** | `LUNORA_OUTLINE=1` in `.dev.vars` | -Pair with the client flag for dogfood (same shard key = Better Auth `user.id`). +## Default-ON readiness — **NO** -### Smoke (client flag ON) +| Gate | Result | +| ------------------------------- | ------------------------------ | +| typecheck* / lint / bun test | GREEN | +| `e2e/lunora-*.spec.ts` | GREEN (5/5) | +| Classic subset `E2E_LUNORA=1` | Mostly GREEN (see matrix) | +| Dogfood migrate (`bun run dev`) | **FAIL / blocked** (see below) | -```sh -bun run lunora:codegen # after lunora/ edits -bun run dev # vite :3000 + wrangler :8787 -# sign in (seed:user if needed) -# DevTools: -localStorage.setItem("dotflowy:flag:lunora-sync", "on") -location.reload() -# Or open http://localhost:3000/?lunora-sync=on -``` - -Expect: if classic DO has data and Lunora shard is empty → **auto-migrate** once (nodes + tag-colors + saved-queries + daily-index). Else empty Lunora seeds demo bullets via `seedIfEmpty`. Editor mutators + kv (incl. **dailyIndex / claimDailyMapping**) ride `/_lunora/*`. Second tab same user → live converge. - -## Migrate runbook (classic DO → Lunora) +Keep default OFF. -**Safe default: skip if Lunora already has any nodes** (no replace). Classic `UserOutlineDO` data is never deleted. +## e2e Lunora run matrix (this slice) -### Automatic (preferred) - -1. Enable `dotflowy:flag:lunora-sync` and reload while signed in. -2. On first ready load: if Lunora `wholeOutline` is empty **and** `GET /api/nodes` returns rows → chunked `importNodes` + kv upserts. -3. Console: `[lunora-migrate] imported N nodes + K kv rows from classic DO`. - -### Manual retry - -- **More menu** (flag ON only): "Migrate to Lunora" — same skip-if-nonempty semantics; toasts the outcome. -- **DevTools:** `await window.__dotflowyMigrateToLunora()` → `{ status, nodes?, kv?, error? }`. +```sh +export PLAYWRIGHT_BROWSERS_PATH="$HOME/Library/Caches/ms-playwright" +# Dedicated +bunx playwright test e2e/lunora-*.spec.ts --workers=1 +# Classic dual-path +E2E_LUNORA=1 E2E_PORT=3225 bunx playwright test \ + e2e/enter-split.spec.ts e2e/delete-command.spec.ts e2e/collapse-flash.spec.ts \ + e2e/markdown-paste.spec.ts e2e/node-multi-select.spec.ts e2e/mirrors.spec.ts \ + e2e/command-center.spec.ts e2e/emphasis.spec.ts e2e/daily-notes.spec.ts \ + e2e/quick-add.spec.ts e2e/paragraph.spec.ts e2e/move-flash.spec.ts \ + e2e/lunora-*.spec.ts e2e/atomic-structural-writes.spec.ts \ + --workers=1 +``` -Statuses: `migrated` | `skipped-nonempty` | `skipped-empty-source` | `failed`. +**Last matrix:** **132 passed / 4 skipped / 1 flake fixed after** (reload pollution) → expect **~136 pass / 4 skip** after `page.unroute` fix. -## What landed (this slice) +| Spec / area | Under `E2E_LUNORA=1` | +| ------------------------------------------------------- | ------------------------------------------------------------- | +| Dedicated `lunora-*.spec.ts` | PASS | +| enter-split, delete-command, collapse-flash, move-flash | PASS | +| markdown-paste, mirrors, emphasis, paragraph | PASS | +| node-multi-select, command-center, quick-add | PASS | +| daily-notes (most) | PASS — orphan kv + ADR 0052 migrate fixed via `getLiveNodes` | +| daily-notes: claim-race (`?op=claim` override) | **SKIP** — classic `/api/kv` transport only (`isE2eLunora()`) | +| atomic-structural-writes (`/api/nodes` batch asserts) | **SKIP** — classic wire only | -### e2e Lunora subset (fixture expanded) +### Fixture dual-path -- `seedOutlineLunora` — planner-backed `/_lunora/rpc` mock (split/indent/outdent/remove/restore/field patches + daily claim). -- Specs (flag ON via fixture; classic suite untouched): - - `e2e/lunora-sync-smoke.spec.ts` — load + edit + hard reload - - `e2e/lunora-structural.spec.ts` — Enter split, Tab indent, `/delete` + reload - - `e2e/lunora-undo.spec.ts` — Cmd+Z / Cmd+Shift+Z via `restoreNodes` +- `seedOutline(..., { lunora?: boolean })` **or** `E2E_LUNORA=1` → `seedOutlineLunora` +- Mock: per-shape checkpoints + **delete ops in pokes** (put-only resurrected deletes) +- `page.unroute("**/_lunora/**")` etc. at seed start (reload / stacked-handler flake) +- AuthGate session mock kept on Lunora path -```sh -bunx playwright test e2e/lunora-*.spec.ts -``` +### Product fixes this slice -**Last run (this slice):** 5 passed (chromium). +- `src/data/live-nodes.ts` — event-time reads for selection / paste / daily migration +- daily `get-or-create.ts` uses `getLiveNodes()` (scaffold migrate saw empty classic collection) +- Cmd+K: run action before close; `onDeleteNode` prefers explicit target id +- markdown-paste Lunora `restoreNodes` path -### MCP remount (Worker flag) +## Dogfood migrate smoke — **FAIL / blocked** -- `lunora/mcp.ts` — internal `listNodes` / `listDailyIndex` / `applyChangeOps` (system RPC only). -- `worker/lunora-mcp-store.ts` — `OutlineStore` → shard via `resolveShard` + `x-lunora-system`. -- `planFromChangeOps` (`src/data/outline-plans/change-ops.ts`) — pure ChangeOp → OutlinePlan. -- Spoiler redaction + daily `claimDailyMapping` unchanged on the tool path. -- Default OFF; set `LUNORA_OUTLINE=1` for local MCP↔Lunora. +Attempted `bun run dev` + agent-browser (`dev@dotflowy.local` / seed:user): -### Prior slices (still true) +1. Sign-in OK. +2. With `dotflowy:flag:lunora-sync=on`, UI stuck on **"Loading outline"**; wrangler showed **no** `/_lunora/ws` upgrade (only stray `GET /_lunora/ 404`). +3. Classic path for same account also showed **0 bullets** (empty shell) — unclear if seed/sync/email-verify quirk. -dailyIndex / claimDailyMapping / DO→Lunora migrate / field+structural mutators / flag-swap architecture — see git log. +**Not a fixture issue** — live Worker Lunora handshake needs a follow-up spike before default-ON. Re-run dogfood after `/_lunora/ws` connects in `bun run dev`. ## Known gaps → flag-default-ON checklist -Keep **client flag default OFF** until all of these are solid: +1. ~~Dual-path fixture + representative classic subset~~ **DONE** (this slice) +2. **Dogfood migrate** live — still blocked (above) +3. **MCP dogfood** with `LUNORA_OUTLINE=1` +4. Remaining classic specs under `E2E_LUNORA=1` (full suite) — maximize; skip only transport-bound specs +5. Snapshot/R2/PITR still classic DO — out of scope +6. Flip client default ON + `.dev.vars.example` `LUNORA_OUTLINE=1` only after 2–4 green -1. **Dogfood migrate** on a real account (auto + More menu); confirm daily flat→nested migration under Lunora. -2. **MCP dogfood** with `LUNORA_OUTLINE=1` against a live Worker (not only unit wiring). -3. **Expand Lunora e2e** as needed (daily claim, multi-select, markdown paste) — not the whole classic suite. -4. **Snapshot/R2/PITR** still classic DO — out of scope until gates green; delete `UserOutlineDO` only after. -5. OPML mid-chunk failure can leave earlier chunks; tree-store Lunora feed is full rebuild per change. -6. Gates green with flag OFF (always) + Lunora subset green; then consider flipping client default ON (and Worker env for prod MCP). - -## Gates (flag OFF) +## Gates ```sh -bun run lunora:codegen # after lunora/ edits bun run typecheck && bun run typecheck:worker && bun run typecheck:test bun run lint && bun run test bunx playwright test e2e/lunora-*.spec.ts +E2E_LUNORA=1 bunx playwright test --workers=1 ``` ## Next -1. Dogfood migrate + `LUNORA_OUTLINE=1` MCP against `bun run dev`. -2. Close checklist above → consider flag default ON. -3. Green gates → PR; **delete this `HANDOFF.md` in the shipping PR.** - -## Note - -Root Dotflowy = bun. Spike = pnpm only inside `spikes/lunora-outline`. +1. Fix live `/_lunora/ws` dogfood hang; re-run migrate smoke → PASS in this file. +2. Broader `E2E_LUNORA=1` classic suite; document remaining fails. +3. Then consider default ON → PR; **delete `HANDOFF.md` in shipping PR.** From 4d7de4fdd5c77cf399c51653d8bccd49f32fccdb Mon Sep 17 00:00:00 2001 From: Cameron Pak Date: Thu, 23 Jul 2026 14:40:23 -0500 Subject: [PATCH 38/59] fix(dev): proxy Lunora and API WebSocket upgrades Co-authored-by: Cursor --- HANDOFF.md | 13 ++++++++----- vite.config.ts | 17 ++++++++++++++--- 2 files changed, 22 insertions(+), 8 deletions(-) diff --git a/HANDOFF.md b/HANDOFF.md index cf379a24..94539995 100644 --- a/HANDOFF.md +++ b/HANDOFF.md @@ -79,13 +79,16 @@ E2E_LUNORA=1 E2E_PORT=3225 bunx playwright test \ ## Dogfood migrate smoke — **FAIL / blocked** -Attempted `bun run dev` + agent-browser (`dev@dotflowy.local` / seed:user): +`vite.config.ts` now sets `ws: true` for both `/api` and `/_lunora`; the old string shorthand silently dropped WebSocket upgrades. -1. Sign-in OK. -2. With `dotflowy:flag:lunora-sync=on`, UI stuck on **"Loading outline"**; wrangler showed **no** `/_lunora/ws` upgrade (only stray `GET /_lunora/ 404`). -3. Classic path for same account also showed **0 bullets** (empty shell) — unclear if seed/sync/email-verify quirk. +Live probe on `bun run dev` (`dev@dotflowy.local` / `dotflowy-dev`): -**Not a fixture issue** — live Worker Lunora handshake needs a follow-up spike before default-ON. Re-run dogfood after `/_lunora/ws` connects in `bun run dev`. +1. Both direct Worker and Vite-proxied `/_lunora/health` return **503**. +2. Cookie-less `/_lunora/ws` reaches Wrangler through both ports but returns **403**. +3. Better Auth sign-in returns **200** and supplies a session cookie, but the cookie-authenticated WebSocket still returns **403** through both ports. +4. Wrangler logs the Vite-proxied `GET /_lunora/ws`, so the proxy upgrade drop is fixed; Vite logs `EPIPE` because the raw probe closes after reading the response. + +**Not a fixture issue** — the remaining live Worker/Lunora authorization or health failure still blocks a successful subscription, so **"Loading outline" is not yet verified cleared**. Re-run browser dogfood after authenticated `/_lunora/ws` upgrades to **101** and health is available. ## Known gaps → flag-default-ON checklist diff --git a/vite.config.ts b/vite.config.ts index 4b9f0ffa..b0a12336 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -32,10 +32,21 @@ export default defineConfig({ // (`bun run dev:api` -> wrangler dev on :8787). This keeps Vite HMR for the // UI while the real /api/nodes path is served by the Worker against a local // D1. In production the same Worker serves both. See docs/adr/0008-sync-via-a-per-user-durable-object.md. + // `ws: true` is required — Vite's string shorthand only sets + // `{ target, changeOrigin }` and skips the upgrade listener, so + // `/api/sync` and `/_lunora/ws` never reach wrangler (outline stuck on + // "Loading outline"). See ADR 0055 dogfood hang. proxy: { - "/api": "http://localhost:8787", - // Lunora reserved paths (ADR 0055) — same Worker as /api during `bun run dev`. - "/_lunora": "http://localhost:8787", + "/api": { + target: "http://localhost:8787", + changeOrigin: true, + ws: true, + }, + "/_lunora": { + target: "http://localhost:8787", + changeOrigin: true, + ws: true, + }, }, }, plugins: [ From fe1c4a3fd9a6ab7f9917509b38b0446ea85507f7 Mon Sep 17 00:00:00 2001 From: Cameron Pak Date: Thu, 23 Jul 2026 14:44:20 -0500 Subject: [PATCH 39/59] fix(lunora): trust Vite origin for CSRF/CORS on /_lunora Co-authored-by: Cursor --- HANDOFF.md | 20 +++++------ worker/lunora-app.ts | 83 ++++++++++++++++++++++++++++++++++++-------- 2 files changed, 78 insertions(+), 25 deletions(-) diff --git a/HANDOFF.md b/HANDOFF.md index 94539995..481f8308 100644 --- a/HANDOFF.md +++ b/HANDOFF.md @@ -4,7 +4,7 @@ ## Status -Dual-path e2e + product fixes landed. Client flag **still default OFF**. Not ready to flip default ON — dogfood migrate blocked; a few classic specs stay Lunora-incompatible (skipped). +Dual-path e2e + product fixes landed. Client flag **still default OFF**. Live authenticated socket + loading smoke now pass; manual migration remains unverified and a few classic specs stay Lunora-incompatible (skipped). ## Flag — Lunora outline sync (client) @@ -77,23 +77,23 @@ E2E_LUNORA=1 E2E_PORT=3225 bunx playwright test \ - Cmd+K: run action before close; `onDeleteNode` prefers explicit target id - markdown-paste Lunora `restoreNodes` path -## Dogfood migrate smoke — **FAIL / blocked** +## Dogfood live smoke — **PASS (connection + loading)** -`vite.config.ts` now sets `ws: true` for both `/api` and `/_lunora`; the old string shorthand silently dropped WebSocket upgrades. +`vite.config.ts` sets `ws: true` for both `/api` and `/_lunora`; the old string shorthand silently dropped WebSocket upgrades. Live probe on `bun run dev` (`dev@dotflowy.local` / `dotflowy-dev`): -1. Both direct Worker and Vite-proxied `/_lunora/health` return **503**. -2. Cookie-less `/_lunora/ws` reaches Wrangler through both ports but returns **403**. -3. Better Auth sign-in returns **200** and supplies a session cookie, but the cookie-authenticated WebSocket still returns **403** through both ports. -4. Wrangler logs the Vite-proxied `GET /_lunora/ws`, so the proxy upgrade drop is fixed; Vite logs `EPIPE` because the raw probe closes after reading the response. +1. Better Auth sign-in through Vite (`:3000`) returned **200** and set `better-auth.session_token`; `GET /api/auth/get-session` resolved user `VkBqJpDMdmTnAxjsqeOw4SH0cVST2weX`. +2. Cookie-authenticated `/_lunora/ws?shard=` with `Origin: http://localhost:3000` returned **101** through both Vite (`:3000`) and direct Wrangler (`:8787`). The raw curl clients timed out after upgrading, as expected for an idle WebSocket. +3. Browser smoke with `dotflowy:flag:lunora-sync=on` rendered the Lunora outline and **cleared "Loading outline"**. +4. `window.__dotflowyMigrateToLunora` was absent during this smoke, so manual migrate was not run; the More-menu migration action was not exercised. -**Not a fixture issue** — the remaining live Worker/Lunora authorization or health failure still blocks a successful subscription, so **"Loading outline" is not yet verified cleared**. Re-run browser dogfood after authenticated `/_lunora/ws` upgrades to **101** and health is available. +**Keep default OFF.** The CSRF/CORS origin blocker is resolved; migration/MCP and broader dual-path coverage still gate default ON. ## Known gaps → flag-default-ON checklist 1. ~~Dual-path fixture + representative classic subset~~ **DONE** (this slice) -2. **Dogfood migrate** live — still blocked (above) +2. **Manual migration dogfood** — connection/loading pass; helper was absent in smoke, so migration remains unverified 3. **MCP dogfood** with `LUNORA_OUTLINE=1` 4. Remaining classic specs under `E2E_LUNORA=1` (full suite) — maximize; skip only transport-bound specs 5. Snapshot/R2/PITR still classic DO — out of scope @@ -110,6 +110,6 @@ E2E_LUNORA=1 bunx playwright test --workers=1 ## Next -1. Fix live `/_lunora/ws` dogfood hang; re-run migrate smoke → PASS in this file. +1. Run manual migrate smoke (console helper or More menu) now that `/_lunora/ws` upgrades. 2. Broader `E2E_LUNORA=1` classic suite; document remaining fails. 3. Then consider default ON → PR; **delete `HANDOFF.md` in shipping PR.** diff --git a/worker/lunora-app.ts b/worker/lunora-app.ts index f90765f4..55461989 100644 --- a/worker/lunora-app.ts +++ b/worker/lunora-app.ts @@ -25,28 +25,81 @@ export type LunoraEnv = AuthEnv & { * Default unset/off — mirrors client `dotflowy:flag:lunora-sync` for local/dev. */ LUNORA_OUTLINE?: string; + /** + * Extra origins for Lunora CSRF/CORS (comma-separated). Vite `:3000` / + * e2e `:3210` are always included — see `lunoraTrustedOrigins`. + */ + LUNORA_TRUSTED_ORIGINS?: string; + /** Same comma-list as `.dev.vars.example` for Better Auth CSRF (optional). */ + BETTER_AUTH_TRUSTED_ORIGINS?: string; }; // defineApp requires `Record`; AuthEnv is a closed interface. type LunoraAppEnv = LunoraEnv & Record; +/** + * Origins the SPA may use when talking to Lunora through the Vite/dev proxy. + * + * Lunora's CSRF guard compares `Origin` to `new URL(request.url).origin`. In + * `bun run dev`, the browser Origin is Vite (`:3000`) while the Worker URL + * (after `changeOrigin`) is wrangler (`:8787`) — without these trusted, cookie + * WS upgrades return `FORBIDDEN_ORIGIN` 403 and the outline never leaves + * "Loading outline". Mirrors Better Auth's `trustedOrigins` in `auth.ts`. + */ +function lunoraTrustedOrigins(env: LunoraEnv): string[] { + const fromEnv = [ + ...(env.LUNORA_TRUSTED_ORIGINS ?? "").split(","), + ...(env.BETTER_AUTH_TRUSTED_ORIGINS ?? "").split(","), + ] + .map((s) => s.trim()) + .filter(Boolean); + const fromBase = env.BETTER_AUTH_URL + ? (() => { + try { + return [new URL(env.BETTER_AUTH_URL).origin]; + } catch { + return []; + } + })() + : []; + return [ + ...new Set([ + "http://localhost:3000", + "http://localhost:3210", + ...fromBase, + ...fromEnv, + ]), + ]; +} + const app = defineApp() .shard((env) => env.SHARD) - .extend((env) => ({ - adminToken: env.LUNORA_ADMIN_TOKEN, - resolveIdentity: async (request) => { - const url = new URL(request.url); - const auth = createAuth(env, url.origin); - const session = await auth.api.getSession({ headers: request.headers }); - const userId = session?.user?.id; - if (!userId) return null; - return { - userId, - email: session.user.email ?? undefined, - }; - }, - authorizeShard: (identity, shardKey) => identity?.userId === shardKey, - })) + .extend((env) => { + const trustedOrigins = lunoraTrustedOrigins(env); + return { + adminToken: env.LUNORA_ADMIN_TOKEN, + security: { + // CORS allowlist also feeds CSRF `isTrustedOrigin` (see @lunora/runtime). + cors: { + allowedOrigins: trustedOrigins, + allowCredentials: true, + }, + csrf: { trustedOrigins }, + }, + resolveIdentity: async (request) => { + const url = new URL(request.url); + const auth = createAuth(env, url.origin); + const session = await auth.api.getSession({ headers: request.headers }); + const userId = session?.user?.id; + if (!userId) return null; + return { + userId, + email: session.user.email ?? undefined, + }; + }, + authorizeShard: (identity, shardKey) => identity?.userId === shardKey, + }; + }) .build(); export const ShardDO = app.ShardDO; From d676f8fac5fe03d2ef3054372d3f719f5fbc2de6 Mon Sep 17 00:00:00 2001 From: Cameron Pak Date: Thu, 23 Jul 2026 14:52:18 -0500 Subject: [PATCH 40/59] docs: record Lunora dogfood results Co-authored-by: Cursor --- HANDOFF.md | 35 +++++++++++++++++++++-------------- 1 file changed, 21 insertions(+), 14 deletions(-) diff --git a/HANDOFF.md b/HANDOFF.md index 481f8308..f89898db 100644 --- a/HANDOFF.md +++ b/HANDOFF.md @@ -4,7 +4,7 @@ ## Status -Dual-path e2e + product fixes landed. Client flag **still default OFF**. Live authenticated socket + loading smoke now pass; manual migration remains unverified and a few classic specs stay Lunora-incompatible (skipped). +Dual-path e2e + product fixes landed. Client flag **still default OFF**. Live authenticated socket, manual migration, and loading smoke pass; MCP's Lunora routing remains code-verified but needs an OAuth bearer + paid local entitlement for a live `tools/call`. ## Flag — Lunora outline sync (client) @@ -26,12 +26,12 @@ Dual-path e2e + product fixes landed. Client flag **still default OFF**. Live au ## Default-ON readiness — **NO** -| Gate | Result | -| ------------------------------- | ------------------------------ | -| typecheck* / lint / bun test | GREEN | -| `e2e/lunora-*.spec.ts` | GREEN (5/5) | -| Classic subset `E2E_LUNORA=1` | Mostly GREEN (see matrix) | -| Dogfood migrate (`bun run dev`) | **FAIL / blocked** (see below) | +| Gate | Result | +| ------------------------------- | -------------------------------- | +| typecheck* / lint / bun test | GREEN | +| `e2e/lunora-*.spec.ts` | GREEN (5/5) | +| Classic subset `E2E_LUNORA=1` | Mostly GREEN (see matrix) | +| Dogfood migrate (`bun run dev`) | **PASS** (2026-07-23; see below) | Keep default OFF. @@ -77,7 +77,7 @@ E2E_LUNORA=1 E2E_PORT=3225 bunx playwright test \ - Cmd+K: run action before close; `onDeleteNode` prefers explicit target id - markdown-paste Lunora `restoreNodes` path -## Dogfood live smoke — **PASS (connection + loading)** +## Dogfood live smoke — **PASS (connection + loading + migration)** `vite.config.ts` sets `ws: true` for both `/api` and `/_lunora`; the old string shorthand silently dropped WebSocket upgrades. @@ -86,18 +86,25 @@ Live probe on `bun run dev` (`dev@dotflowy.local` / `dotflowy-dev`): 1. Better Auth sign-in through Vite (`:3000`) returned **200** and set `better-auth.session_token`; `GET /api/auth/get-session` resolved user `VkBqJpDMdmTnAxjsqeOw4SH0cVST2weX`. 2. Cookie-authenticated `/_lunora/ws?shard=` with `Origin: http://localhost:3000` returned **101** through both Vite (`:3000`) and direct Wrangler (`:8787`). The raw curl clients timed out after upgrading, as expected for an idle WebSocket. 3. Browser smoke with `dotflowy:flag:lunora-sync=on` rendered the Lunora outline and **cleared "Loading outline"**. -4. `window.__dotflowyMigrateToLunora` was absent during this smoke, so manual migrate was not run; the More-menu migration action was not exercised. +4. Fresh run: flag OFF classic source held 3 welcome nodes. Flag ON exposed `window.__dotflowyMigrateToLunora` as a function and cleared loading. After clearing prior local Lunora spike seed rows, the empty shard auto-imported the three classic nodes; the concurrent manual helper then safely returned `skipped-nonempty` with `nodes: 3`. A full reload retained all three classic titles. More menu also displayed its safe-skip toast against a nonempty shard. -**Keep default OFF.** The CSRF/CORS origin blocker is resolved; migration/MCP and broader dual-path coverage still gate default ON. +**Keep default OFF.** Migration is now dogfood-verified, but MCP live writes and broader dual-path coverage still gate default ON. + +## Dogfood MCP with `LUNORA_OUTLINE=1` — **PARTIAL / auth-blocked** + +1. Local-only `.dev.vars` has `LUNORA_OUTLINE=1`; `bun run dev` was restarted and Wrangler listed `env.LUNORA_OUTLINE`. +2. `POST http://localhost:8787/mcp` JSON-RPC `initialize` correctly returned `401` with local protected-resource metadata. +3. Code path verified: `worker/index.ts` selects `createLunoraOutlineStore(env, token.userId)` when the flag is truthy; `worker/lunora-mcp-store.ts` dispatches writes to `mcp:applyChangeOps` on the authenticated user's `SHARD`. +4. No local OAuth bearer was minted: the endpoint requires Better Auth MCP OAuth dynamic registration + PKCE, and MCP tool calls additionally require a paid entitlement. No existing local MCP test client/admin token shortcut was found. Therefore no authenticated live `tools/call` has run yet. ## Known gaps → flag-default-ON checklist 1. ~~Dual-path fixture + representative classic subset~~ **DONE** (this slice) -2. **Manual migration dogfood** — connection/loading pass; helper was absent in smoke, so migration remains unverified -3. **MCP dogfood** with `LUNORA_OUTLINE=1` +2. ~~Manual migration dogfood~~ **DONE** (2026-07-23) +3. **MCP live write dogfood** with `LUNORA_OUTLINE=1` — mint local OAuth bearer for an entitled test user, then call a write tool and observe the Lunora editor update 4. Remaining classic specs under `E2E_LUNORA=1` (full suite) — maximize; skip only transport-bound specs 5. Snapshot/R2/PITR still classic DO — out of scope -6. Flip client default ON + `.dev.vars.example` `LUNORA_OUTLINE=1` only after 2–4 green +6. Flip client default ON + `.dev.vars.example` `LUNORA_OUTLINE=1` only after 3–4 green ## Gates @@ -110,6 +117,6 @@ E2E_LUNORA=1 bunx playwright test --workers=1 ## Next -1. Run manual migrate smoke (console helper or More menu) now that `/_lunora/ws` upgrades. +1. Mint an OAuth bearer for a locally entitled test user, exercise an MCP write with `LUNORA_OUTLINE=1`, and observe it in the Lunora editor. 2. Broader `E2E_LUNORA=1` classic suite; document remaining fails. 3. Then consider default ON → PR; **delete `HANDOFF.md` in shipping PR.** From 2d1f231306afa3362ce73c81fde24ef9ba302435 Mon Sep 17 00:00:00 2001 From: Cameron Pak Date: Thu, 23 Jul 2026 15:11:07 -0500 Subject: [PATCH 41/59] test(e2e): skip classic-wire asserts under E2E_LUNORA Co-authored-by: Cursor --- e2e/changelog.spec.ts | 10 +++++++++- e2e/drag-filtered.spec.ts | 4 +++- e2e/opml-import.spec.ts | 6 +++++- e2e/save-failure.spec.ts | 6 +++++- e2e/sibling-chain-repair.spec.ts | 6 +++++- e2e/update-available.spec.ts | 10 +++++++++- 6 files changed, 36 insertions(+), 6 deletions(-) diff --git a/e2e/changelog.spec.ts b/e2e/changelog.spec.ts index f0da7679..a14db76a 100644 --- a/e2e/changelog.spec.ts +++ b/e2e/changelog.spec.ts @@ -1,7 +1,7 @@ import { expect, test, type Page } from "@playwright/test"; import { readFileSync } from "node:fs"; -import { seedOutline, STANDARD_TREE } from "./fixtures"; +import { isE2eLunora, seedOutline, STANDARD_TREE } from "./fixtures"; /** * The changelog (ADR 0046): a "What's new" dialog reached from the More menu and @@ -88,6 +88,10 @@ test.describe("changelog", () => { test("a caught-up account shows no badge, and does not re-seed", async ({ page, }) => { + test.skip( + isE2eLunora(), + "seeds the cursor through the classic /api/kv mock", + ); const writes = await load(page, cursor(LATEST)); // Open + close the More menu so the header has demonstrably settled: "not @@ -124,6 +128,10 @@ test.describe("changelog", () => { test("opening it advances the cursor to the latest release", async ({ page, }) => { + test.skip( + isE2eLunora(), + "asserts cursor writes through the classic /api/kv mock", + ); // A cursor this build has never heard of: no badge (an unknown version stays // quiet) and no silent seed (a row already exists) -- so the only write that // can happen is the one the dialog itself makes. diff --git a/e2e/drag-filtered.spec.ts b/e2e/drag-filtered.spec.ts index d5d09688..e3b4a102 100644 --- a/e2e/drag-filtered.spec.ts +++ b/e2e/drag-filtered.spec.ts @@ -1,6 +1,6 @@ import { expect, test, type Page } from "@playwright/test"; -import { seedOutline, type SeedNode } from "./fixtures"; +import { isE2eLunora, seedOutline, type SeedNode } from "./fixtures"; // Drag-reorder while a ?q= filter is active (issue #244 / the ADR 0047 // amendment). Before the fix, buildRows passed `filter: null`, so the drag's @@ -57,6 +57,7 @@ test.describe("drag reorder under an active ?q= filter (#244)", () => { test("a drop between two visible rows with hidden siblings lands after the visible predecessor", async ({ page, }) => { + test.skip(isE2eLunora(), "awaits the classic /api/nodes structural POST"); // Real top-level order: S1, S2, V1, H1, H2, V2, X. Under #go the untagged // H1/H2 are pruned, leaving S1, S2, V1, V2, X. The S1/S2 spacers keep the // target V1/V2 gap well below the top-edge auto-scroll band so the drop @@ -120,6 +121,7 @@ test.describe("drag reorder under an active ?q= filter (#244)", () => { test("a drop that lands the node hidden discloses with a toast and the node vanishes from the filtered view", async ({ page, }) => { + test.skip(isE2eLunora(), "awaits the classic /api/nodes structural POST"); // Rendered under #go: A (match), C (A's child -- revealed match-descendant, // undimmed, NOT a match), P (dimmed context ancestor of K), K (match). const tree: SeedNode[] = [ diff --git a/e2e/opml-import.spec.ts b/e2e/opml-import.spec.ts index e73d8d2a..d06d6e80 100644 --- a/e2e/opml-import.spec.ts +++ b/e2e/opml-import.spec.ts @@ -8,7 +8,7 @@ import { expect, test, type FileChooser, type Page } from "@playwright/test"; import { readFileSync } from "node:fs"; import { fileURLToPath } from "node:url"; -import { seedOutline, STANDARD_TREE } from "./fixtures"; +import { isE2eLunora, seedOutline, STANDARD_TREE } from "./fixtures"; const SAMPLE_PATH = fileURLToPath( new URL( @@ -148,6 +148,10 @@ test.describe("OPML import", () => { test("a multi-slice import (>500 nodes) applies in yielding slices yet lands as ONE atomic batch", async ({ page, }) => { + test.skip( + isE2eLunora(), + "asserts the classic one-batch transport progress state", + ); // Delay the batch POST *response* so the dialog rests in its post-apply // "saving" phase — deterministic proof the sliced optimistic apply // finished (applied === count) while the single wire batch is in flight. diff --git a/e2e/save-failure.spec.ts b/e2e/save-failure.spec.ts index 34177f00..4e1b7fb7 100644 --- a/e2e/save-failure.spec.ts +++ b/e2e/save-failure.spec.ts @@ -1,6 +1,6 @@ import { expect, test, type Page } from "@playwright/test"; -import { seedOutline, STANDARD_TREE } from "./fixtures"; +import { isE2eLunora, seedOutline, STANDARD_TREE } from "./fixtures"; // A node's own editable text span. const text = (page: Page, id: string) => @@ -37,6 +37,10 @@ test.describe("Save failure surfaces a toast and rolls back (#230)", () => { test("a failed structural write toasts and reverts the optimistic bullet", async ({ page, }) => { + test.skip( + isE2eLunora(), + "injects a failure into the classic structural transport", + ); // Seed loads normally; only structural-batch POSTs fail from here on. await seedOutline(page, STANDARD_TREE, { failStructuralWrites: true }); await page.goto("/"); diff --git a/e2e/sibling-chain-repair.spec.ts b/e2e/sibling-chain-repair.spec.ts index 944a6a97..92bfcac5 100644 --- a/e2e/sibling-chain-repair.spec.ts +++ b/e2e/sibling-chain-repair.spec.ts @@ -1,6 +1,6 @@ import { expect, test } from "@playwright/test"; -import { seedOutline, type SeedNode } from "./fixtures"; +import { isE2eLunora, seedOutline, type SeedNode } from "./fixtures"; interface PatchUpdate { id: string; @@ -41,6 +41,10 @@ function chainsAreClean(nodes: SeedNode[]): boolean { test("heals a shattered sibling chain on load so every node is reorderable", async ({ page, }) => { + test.skip( + isE2eLunora(), + "loads malformed rows through the classic snapshot fixture", + ); // Mirrors the production corruption: B and C both point at A (root), so one // orphans out of the chain; A1/A2 both claim the head under A (a nested fan). const seed: SeedNode[] = [ diff --git a/e2e/update-available.spec.ts b/e2e/update-available.spec.ts index c83baccf..52e2af02 100644 --- a/e2e/update-available.spec.ts +++ b/e2e/update-available.spec.ts @@ -1,7 +1,7 @@ import { expect, test, type Page } from "@playwright/test"; import { readFileSync } from "node:fs"; -import { seedOutline, STANDARD_TREE } from "./fixtures"; +import { isE2eLunora, seedOutline, STANDARD_TREE } from "./fixtures"; /** * The stale-tab reload affordance (ADR 0046). @@ -29,6 +29,10 @@ async function load(page: Page, serverVersion?: string) { test.describe("update available", () => { test("a newer server raises a reload toast", async ({ page }) => { + test.skip( + isE2eLunora(), + "injects serverVersion through the classic sync handshake", + ); await load(page, "99.0.0"); await expect(toast(page)).toBeVisible(); await expect(page.getByRole("button", { name: "Reload" })).toBeVisible(); @@ -49,6 +53,10 @@ test.describe("update available", () => { }); test("the toast does not block editing", async ({ page }) => { + test.skip( + isE2eLunora(), + "injects serverVersion through the classic sync handshake", + ); await load(page, "99.0.0"); await expect(toast(page)).toBeVisible(); From 59064856372e504ae9450df18ad451e35e2ed71e Mon Sep 17 00:00:00 2001 From: Cameron Pak Date: Thu, 23 Jul 2026 15:12:39 -0500 Subject: [PATCH 42/59] fix(lunora): persist confirmed subtree deletes Co-authored-by: Cursor --- src/components/delete-confirm-dialog.tsx | 35 ++++++++++++++++++++++++ src/components/use-bullet-keymap.ts | 7 +++-- 2 files changed, 39 insertions(+), 3 deletions(-) diff --git a/src/components/delete-confirm-dialog.tsx b/src/components/delete-confirm-dialog.tsx index c2d84ade..def74907 100644 --- a/src/components/delete-confirm-dialog.tsx +++ b/src/components/delete-confirm-dialog.tsx @@ -3,7 +3,12 @@ import { useEffect, useState } from "react"; import { toast } from "sonner"; import { nodesCollection } from "../data/collection"; +import { isLunoraSyncEnabled } from "../data/flags"; import { capture, drop } from "../data/history"; +import { + getLunoraOutlineContext, + trackLunoraMutation, +} from "../data/lunora-sync"; import { runStructuralSliced } from "../data/structural"; import { now, planRemoveSubtrees } from "../data/tree"; import { getTreeIndex } from "../data/tree-store"; @@ -73,6 +78,36 @@ export function DeleteConfirmDialog() { // ONE undo point BEFORE the batch: a single Cmd+Z restores everything. capture(index, captureKey); + + // Lunora: no classic `{ops}` batch — one `removeMany` mutator owns the + // subtree delete + watermark. Progress is optimistic (apply is sync). + if (isLunoraSyncEnabled()) { + const lunora = getLunoraOutlineContext(); + if (!lunora) { + drop(); + setStage({ kind: "error" }); + return; + } + try { + setStage({ kind: "deleting", count, applied: count }); + const tx = lunora.store.mutators.removeMany({ + userId: lunora.userId, + nodeIds: [...rootIds], + updatedAt: now(), + }); + trackLunoraMutation(tx); + await tx.isPersisted.promise; + setStage({ kind: "closed" }); + toast.success( + `Deleted ${count.toLocaleString()} bullets. Cmd+Z restores them.`, + ); + } catch { + drop(); + setStage({ kind: "error" }); + } + return; + } + let applied = 0; const slices: Array<() => void> = []; if (plan.repoints.length > 0) { diff --git a/src/components/use-bullet-keymap.ts b/src/components/use-bullet-keymap.ts index 5fd853c5..c34dbad3 100644 --- a/src/components/use-bullet-keymap.ts +++ b/src/components/use-bullet-keymap.ts @@ -227,7 +227,8 @@ export function useBulletKeymap({ if (el.textContent !== "") return; e.preventDefault(); e.stopPropagation(); - commands.onDeleteNode(node.id); + // INSTANCE, not content: mirrors pass the source as `node` (ADR 0022). + commands.onDeleteNode(instanceId); }, options: { preventDefault: false, stopPropagation: false }, }, @@ -236,11 +237,11 @@ export function useBulletKeymap({ // regardless of text or caret position. On Mac "delete" is the // Backspace key; register Delete too for the forward-delete key. hotkey: "Mod+Shift+Backspace", - callback: () => commands.onDeleteNode(node.id), + callback: () => commands.onDeleteNode(instanceId), }, { hotkey: "Mod+Shift+Delete", - callback: () => commands.onDeleteNode(node.id), + callback: () => commands.onDeleteNode(instanceId), }, { // Shift+ArrowUp from the top visual line: ENTER node multi-selection From 24b41beef6174acfd9463d2d6acf0e175c34e95b Mon Sep 17 00:00:00 2001 From: Cameron Pak Date: Thu, 23 Jul 2026 15:14:47 -0500 Subject: [PATCH 43/59] docs: handoff Lunora dogfood green + e2e matrix Co-authored-by: Cursor --- .changeset/wet-candies-rule.md | 5 ++++ HANDOFF.md | 42 ++++++++++++++++++---------------- 2 files changed, 27 insertions(+), 20 deletions(-) create mode 100644 .changeset/wet-candies-rule.md diff --git a/.changeset/wet-candies-rule.md b/.changeset/wet-candies-rule.md new file mode 100644 index 00000000..eb468376 --- /dev/null +++ b/.changeset/wet-candies-rule.md @@ -0,0 +1,5 @@ +--- +"dotflowy": patch +--- + +Fix Lunora big-delete and mirror-instance delete; expand dual-path e2e skips. diff --git a/HANDOFF.md b/HANDOFF.md index f89898db..78b6ae8f 100644 --- a/HANDOFF.md +++ b/HANDOFF.md @@ -30,7 +30,7 @@ Dual-path e2e + product fixes landed. Client flag **still default OFF**. Live au | ------------------------------- | -------------------------------- | | typecheck* / lint / bun test | GREEN | | `e2e/lunora-*.spec.ts` | GREEN (5/5) | -| Classic subset `E2E_LUNORA=1` | Mostly GREEN (see matrix) | +| Classic subset `E2E_LUNORA=1` | Broader matrix GREEN (see below) | | Dogfood migrate (`bun run dev`) | **PASS** (2026-07-23; see below) | Keep default OFF. @@ -41,27 +41,27 @@ Keep default OFF. export PLAYWRIGHT_BROWSERS_PATH="$HOME/Library/Caches/ms-playwright" # Dedicated bunx playwright test e2e/lunora-*.spec.ts --workers=1 -# Classic dual-path -E2E_LUNORA=1 E2E_PORT=3225 bunx playwright test \ - e2e/enter-split.spec.ts e2e/delete-command.spec.ts e2e/collapse-flash.spec.ts \ - e2e/markdown-paste.spec.ts e2e/node-multi-select.spec.ts e2e/mirrors.spec.ts \ - e2e/command-center.spec.ts e2e/emphasis.spec.ts e2e/daily-notes.spec.ts \ - e2e/quick-add.spec.ts e2e/paragraph.spec.ts e2e/move-flash.spec.ts \ - e2e/lunora-*.spec.ts e2e/atomic-structural-writes.spec.ts \ - --workers=1 +# Broader classic dual-path (nearly full e2e/) +E2E_LUNORA=1 E2E_PORT=3231 bunx playwright test e2e --workers=1 ``` -**Last matrix:** **132 passed / 4 skipped / 1 flake fixed after** (reload pollution) → expect **~136 pass / 4 skip** after `page.unroute` fix. - -| Spec / area | Under `E2E_LUNORA=1` | -| ------------------------------------------------------- | ------------------------------------------------------------- | -| Dedicated `lunora-*.spec.ts` | PASS | -| enter-split, delete-command, collapse-flash, move-flash | PASS | -| markdown-paste, mirrors, emphasis, paragraph | PASS | -| node-multi-select, command-center, quick-add | PASS | -| daily-notes (most) | PASS — orphan kv + ADR 0052 migrate fixed via `getLiveNodes` | -| daily-notes: claim-race (`?op=claim` override) | **SKIP** — classic `/api/kv` transport only (`isE2eLunora()`) | -| atomic-structural-writes (`/api/nodes` batch asserts) | **SKIP** — classic wire only | +**Last broader matrix:** first full run **350 passed / 15 failed / 4 skipped**. +Focused regression re-run after product fixes + classic-wire skips: +**18 passed / 9 skipped / 0 failed**. Big-delete, sliced history restore, and +mirror-instance delete are green; the nine skips are classic-transport-only. + +| Spec / area | Under `E2E_LUNORA=1` | +| ----------------------------------------------------- | ------------------------------------------------------------- | +| Dedicated `lunora-*.spec.ts` | PASS | +| Nearly full classic `e2e/*.spec.ts` | PASS (product gaps fixed below) | +| daily-notes: claim-race (`?op=claim` override) | **SKIP** — classic `/api/kv` transport only (`isE2eLunora()`) | +| atomic-structural-writes (`/api/nodes` batch asserts) | **SKIP** — classic wire only | +| changelog cursor seed/write asserts | **SKIP** — classic `/api/kv` mock | +| drag-filtered structural POST await | **SKIP** — awaits classic `/api/nodes` | +| opml multi-slice "one atomic batch" progress copy | **SKIP** — classic transport progress state | +| save-failure structural fail injection | **SKIP** — classic structural transport | +| sibling-chain-repair malformed snapshot | **SKIP** — classic snapshot fixture | +| update-available `serverVersion` handshake | **SKIP** — classic sync handshake | ### Fixture dual-path @@ -76,6 +76,8 @@ E2E_LUNORA=1 E2E_PORT=3225 bunx playwright test \ - daily `get-or-create.ts` uses `getLiveNodes()` (scaffold migrate saw empty classic collection) - Cmd+K: run action before close; `onDeleteNode` prefers explicit target id - markdown-paste Lunora `restoreNodes` path +- big-delete confirm: Lunora path uses `mutators.removeMany` (not classic sliced `{ops}`) +- bullet keymap delete: pass `instanceId` so mirrors delete the instance, not the source ## Dogfood live smoke — **PASS (connection + loading + migration)** From 0db73ab7078b208c8fd26488f3168a75f961df2c Mon Sep 17 00:00:00 2001 From: Cameron Pak Date: Thu, 23 Jul 2026 15:14:58 -0500 Subject: [PATCH 44/59] docs: mark dual-path e2e done on Lunora handoff Co-authored-by: Cursor --- HANDOFF.md | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/HANDOFF.md b/HANDOFF.md index 78b6ae8f..c17e94aa 100644 --- a/HANDOFF.md +++ b/HANDOFF.md @@ -90,7 +90,7 @@ Live probe on `bun run dev` (`dev@dotflowy.local` / `dotflowy-dev`): 3. Browser smoke with `dotflowy:flag:lunora-sync=on` rendered the Lunora outline and **cleared "Loading outline"**. 4. Fresh run: flag OFF classic source held 3 welcome nodes. Flag ON exposed `window.__dotflowyMigrateToLunora` as a function and cleared loading. After clearing prior local Lunora spike seed rows, the empty shard auto-imported the three classic nodes; the concurrent manual helper then safely returned `skipped-nonempty` with `nodes: 3`. A full reload retained all three classic titles. More menu also displayed its safe-skip toast against a nonempty shard. -**Keep default OFF.** Migration is now dogfood-verified, but MCP live writes and broader dual-path coverage still gate default ON. +**Keep default OFF.** Migration + dual-path e2e are dogfood-verified; MCP live write still gates default ON. ## Dogfood MCP with `LUNORA_OUTLINE=1` — **PARTIAL / auth-blocked** @@ -104,9 +104,10 @@ Live probe on `bun run dev` (`dev@dotflowy.local` / `dotflowy-dev`): 1. ~~Dual-path fixture + representative classic subset~~ **DONE** (this slice) 2. ~~Manual migration dogfood~~ **DONE** (2026-07-23) 3. **MCP live write dogfood** with `LUNORA_OUTLINE=1` — mint local OAuth bearer for an entitled test user, then call a write tool and observe the Lunora editor update -4. Remaining classic specs under `E2E_LUNORA=1` (full suite) — maximize; skip only transport-bound specs -5. Snapshot/R2/PITR still classic DO — out of scope -6. Flip client default ON + `.dev.vars.example` `LUNORA_OUTLINE=1` only after 3–4 green +4. ~~Broader classic specs under `E2E_LUNORA=1`~~ **DONE** (transport-only skips; product gaps fixed) +5. Optional: re-run full `E2E_LUNORA=1 bunx playwright test e2e` for a clean green count (expect ~359 pass / ~13 skip) +6. Snapshot/R2/PITR still classic DO — out of scope +7. Flip client default ON + `.dev.vars.example` `LUNORA_OUTLINE=1` only after 3 green ## Gates @@ -120,5 +121,5 @@ E2E_LUNORA=1 bunx playwright test --workers=1 ## Next 1. Mint an OAuth bearer for a locally entitled test user, exercise an MCP write with `LUNORA_OUTLINE=1`, and observe it in the Lunora editor. -2. Broader `E2E_LUNORA=1` classic suite; document remaining fails. +2. Optional clean full-suite recount under `E2E_LUNORA=1`. 3. Then consider default ON → PR; **delete `HANDOFF.md` in shipping PR.** From f9e738bda034c8065ef0a88de14b03a31f07537d Mon Sep 17 00:00:00 2001 From: Cameron Pak Date: Thu, 23 Jul 2026 15:25:29 -0500 Subject: [PATCH 45/59] test(e2e): await Lunora remove before reload Hardens lunora-structural /delete against a watermark race, and records the broader E2E_LUNORA matrix (355 pass / 13 skip). Co-authored-by: Cursor --- HANDOFF.md | 11 +++++++---- e2e/lunora-structural.spec.ts | 9 +++++++++ 2 files changed, 16 insertions(+), 4 deletions(-) diff --git a/HANDOFF.md b/HANDOFF.md index c17e94aa..02160d04 100644 --- a/HANDOFF.md +++ b/HANDOFF.md @@ -45,10 +45,13 @@ bunx playwright test e2e/lunora-*.spec.ts --workers=1 E2E_LUNORA=1 E2E_PORT=3231 bunx playwright test e2e --workers=1 ``` -**Last broader matrix:** first full run **350 passed / 15 failed / 4 skipped**. -Focused regression re-run after product fixes + classic-wire skips: -**18 passed / 9 skipped / 0 failed**. Big-delete, sliced history restore, and -mirror-instance delete are green; the nine skips are classic-transport-only. +**Last broader matrix** (`E2E_LUNORA=1 E2E_PORT=3231 bunx playwright test e2e --workers=1`): +**355 passed / 1 flaked / 13 skipped**. Flake was `lunora-structural` `/delete` +reload racing fire-and-forget watermark — hardened to await `mutators:removeNode` +(repeat-each green). Prior full run before fixes: **350 / 15 / 4**. + +Product fixes that cleared the 15: Lunora big-delete → `mutators.removeMany`; +keymap delete passes `instanceId` (mirror instance, not source). | Spec / area | Under `E2E_LUNORA=1` | | ----------------------------------------------------- | ------------------------------------------------------------- | diff --git a/e2e/lunora-structural.spec.ts b/e2e/lunora-structural.spec.ts index bb690af6..15b0d7e0 100644 --- a/e2e/lunora-structural.spec.ts +++ b/e2e/lunora-structural.spec.ts @@ -90,7 +90,16 @@ test.describe("Lunora structural (flag ON)", () => { await text(page, "bravo").click(); await page.keyboard.type(" /delete"); await expect(page.getByRole("listbox")).toBeVisible(); + // Await the remove mutator before reload — fire-and-forget watermark can + // race page.reload() and resurrect the leaf from the mock store. + const removed = page.waitForResponse( + (r) => + r.url().includes("/_lunora/rpc") && + r.request().method() === "POST" && + (r.request().postData() ?? "").includes("mutators:removeNode"), + ); await page.keyboard.press("Enter"); + await removed; await expect(row(page, "bravo")).toHaveCount(0); await expect(text(page, "alpha")).toBeVisible(); From 342323c1e0ae8557c303d65f14a72fdddca62fc2 Mon Sep 17 00:00:00 2001 From: Cameron Pak Date: Thu, 23 Jul 2026 15:53:35 -0500 Subject: [PATCH 46/59] feat(scripts): add local MCP OAuth mint and dev plan comp Local-only dogfood path for Lunora MCP writes: comp an unlimited subscription row in local D1, mint a real Better Auth MCP bearer via PKCE, and document the live tools/call PASS in HANDOFF. Co-authored-by: Cursor --- HANDOFF.md | 44 +++++++-- package.json | 2 + scripts/comp-dev-plan.ts | 75 +++++++++++++++ scripts/mint-mcp-token.ts | 187 ++++++++++++++++++++++++++++++++++++++ 4 files changed, 300 insertions(+), 8 deletions(-) create mode 100644 scripts/comp-dev-plan.ts create mode 100644 scripts/mint-mcp-token.ts diff --git a/HANDOFF.md b/HANDOFF.md index 02160d04..74bc7d0b 100644 --- a/HANDOFF.md +++ b/HANDOFF.md @@ -93,20 +93,48 @@ Live probe on `bun run dev` (`dev@dotflowy.local` / `dotflowy-dev`): 3. Browser smoke with `dotflowy:flag:lunora-sync=on` rendered the Lunora outline and **cleared "Loading outline"**. 4. Fresh run: flag OFF classic source held 3 welcome nodes. Flag ON exposed `window.__dotflowyMigrateToLunora` as a function and cleared loading. After clearing prior local Lunora spike seed rows, the empty shard auto-imported the three classic nodes; the concurrent manual helper then safely returned `skipped-nonempty` with `nodes: 3`. A full reload retained all three classic titles. More menu also displayed its safe-skip toast against a nonempty shard. -**Keep default OFF.** Migration + dual-path e2e are dogfood-verified; MCP live write still gates default ON. +**Keep default OFF.** Migration + dual-path e2e + MCP Lunora live write are dogfood-verified; default ON still waits on optional browser re-check + broader recount. -## Dogfood MCP with `LUNORA_OUTLINE=1` — **PARTIAL / auth-blocked** +## Dogfood MCP with `LUNORA_OUTLINE=1` — **PASS (live write, 2026-07-23)** -1. Local-only `.dev.vars` has `LUNORA_OUTLINE=1`; `bun run dev` was restarted and Wrangler listed `env.LUNORA_OUTLINE`. -2. `POST http://localhost:8787/mcp` JSON-RPC `initialize` correctly returned `401` with local protected-resource metadata. -3. Code path verified: `worker/index.ts` selects `createLunoraOutlineStore(env, token.userId)` when the flag is truthy; `worker/lunora-mcp-store.ts` dispatches writes to `mcp:applyChangeOps` on the authenticated user's `SHARD`. -4. No local OAuth bearer was minted: the endpoint requires Better Auth MCP OAuth dynamic registration + PKCE, and MCP tool calls additionally require a paid entitlement. No existing local MCP test client/admin token shortcut was found. Therefore no authenticated live `tools/call` has run yet. +1. Local-only `.dev.vars` has `LUNORA_OUTLINE=1`; `bun run dev` restarted; Wrangler lists `env.LUNORA_OUTLINE`. +2. **Entitlement:** `bun run comp:dev-plan` hand-inserts an `active` `unlimited` row in local D1 for `dev@dotflowy.local` (`referenceId = VkBqJpDMdmTnAxjsqeOw4SH0cVST2weX`). Idempotent; no production gate changes. +3. **Auth:** `bun run mint:mcp-token` runs dynamic registration + PKCE against `http://localhost:8787/api/auth/mcp/*` and prints a real bearer (`auth.api.getMcpSession`-valid). +4. **Live write proof** (with `LUNORA_OUTLINE=1`, comped plan, minted bearer): + +```sh +bun run comp:dev-plan +TOKEN=$(bun run mint:mcp-token 2>/dev/null | rg '^access_token:' | cut -d' ' -f2) +# tools/call add_node +curl -s -X POST http://localhost:8787/mcp \ + -H "authorization: Bearer $TOKEN" \ + -H 'content-type: application/json' \ + -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"add_node","arguments":{"text":"MCP-LUNORA-PASS-1784839995"}}}' +# → {"result":{"content":[{"type":"text","text":"Added \"MCP-LUNORA-PASS-1784839995\" at the top level (id: d4659316-091a-462f-9274-0c8dc29aade5)."}]}} +# tools/call search_nodes +curl -s -X POST http://localhost:8787/mcp \ + -H "authorization: Bearer $TOKEN" \ + -H 'content-type: application/json' \ + -d '{"jsonrpc":"2.0","id":2,"method":"tools/call","params":{"name":"search_nodes","arguments":{"query":"MCP-LUNORA-PASS-1784839995"}}}' +# → {"result":{"content":[{"type":"text","text":"- \"MCP-LUNORA-PASS-1784839995\" (id: d4659316-091a-462f-9274-0c8dc29aade5)"}]}} +# tools/call get_outline (Lunora shard via createLunoraOutlineStore → mcp:listNodes) +curl -s -X POST http://localhost:8787/mcp \ + -H "authorization: Bearer $TOKEN" \ + -H 'content-type: application/json' \ + -d '{"jsonrpc":"2.0","id":3,"method":"tools/call","params":{"name":"get_outline","arguments":{}}}' +# → outline text includes the new bullet id d4659316-091a-462f-9274-0c8dc29aade5 +``` + +5. Pre-comp control: same bearer without subscription row got JSON-RPC `-32001` upgrade required on `tools/call` (entitlement gate intact). +6. Browser with `dotflowy:flag:lunora-sync=on` not re-run this slice — MCP readback confirms the Lunora SHARD mutation (same `userId` shard key as browser mutators). Optional follow-up: reload editor and confirm the marker bullet renders. + +**Scripts (committed):** `scripts/comp-dev-plan.ts`, `scripts/mint-mcp-token.ts` → `bun run comp:dev-plan`, `bun run mint:mcp-token`. ## Known gaps → flag-default-ON checklist 1. ~~Dual-path fixture + representative classic subset~~ **DONE** (this slice) 2. ~~Manual migration dogfood~~ **DONE** (2026-07-23) -3. **MCP live write dogfood** with `LUNORA_OUTLINE=1` — mint local OAuth bearer for an entitled test user, then call a write tool and observe the Lunora editor update +3. ~~**MCP live write dogfood** with `LUNORA_OUTLINE=1`~~ **DONE** (2026-07-23; see above) 4. ~~Broader classic specs under `E2E_LUNORA=1`~~ **DONE** (transport-only skips; product gaps fixed) 5. Optional: re-run full `E2E_LUNORA=1 bunx playwright test e2e` for a clean green count (expect ~359 pass / ~13 skip) 6. Snapshot/R2/PITR still classic DO — out of scope @@ -123,6 +151,6 @@ E2E_LUNORA=1 bunx playwright test --workers=1 ## Next -1. Mint an OAuth bearer for a locally entitled test user, exercise an MCP write with `LUNORA_OUTLINE=1`, and observe it in the Lunora editor. +1. Optional: browser reload with `dotflowy:flag:lunora-sync=on` to visually confirm MCP-written bullets. 2. Optional clean full-suite recount under `E2E_LUNORA=1`. 3. Then consider default ON → PR; **delete `HANDOFF.md` in shipping PR.** diff --git a/package.json b/package.json index a770f88e..09db5712 100644 --- a/package.json +++ b/package.json @@ -20,6 +20,8 @@ "preview": "vite preview", "cf:dev": "bun scripts/cf-dev.ts", "seed:user": "bun scripts/seed-user.ts", + "comp:dev-plan": "bun scripts/comp-dev-plan.ts", + "mint:mcp-token": "bun scripts/mint-mcp-token.ts", "invite": "bun scripts/invite.ts", "announce": "bun scripts/announce.ts", "deploy": "bun run build:cf && wrangler deploy", diff --git a/scripts/comp-dev-plan.ts b/scripts/comp-dev-plan.ts new file mode 100644 index 00000000..5d4c1bcc --- /dev/null +++ b/scripts/comp-dev-plan.ts @@ -0,0 +1,75 @@ +/** + * Operator-comp an active unlimited subscription for the local dev account + * (`dev@dotflowy.local`) in local D1 — the same pattern documented in + * worker/plan.ts (hand-inserted row, no Stripe ids). MCP tool calls require a + * paid plan (#170); this keeps local dogfood off the production entitlement gate. + * + * Idempotent: re-running is a no-op when an active/trialing row already exists. + * Localhost-only: resolves the user from the live Worker session, never accepts + * an email override (no accidental prod targeting). + * + * Requires `bun run dev` / `bun run dev:api` and a seeded dev account + * (`bun run seed:user`). + */ +const API = "http://localhost:8787"; +const EMAIL = "dev@dotflowy.local"; +const PASSWORD = "dotflowy-dev"; +const ORIGIN = "http://localhost:8787"; +const SUBSCRIPTION_ID = "local-dev-unlimited-comp"; + +async function signInUserId(): Promise { + const res = await fetch(`${API}/api/auth/sign-in/email`, { + method: "POST", + headers: { + "content-type": "application/json", + origin: ORIGIN, + }, + body: JSON.stringify({ email: EMAIL, password: PASSWORD }), + }); + if (!res.ok) { + const text = await res.text(); + throw new Error( + `sign-in failed (${res.status}): ${text}. Run \`bun run seed:user\` first.`, + ); + } + const body = (await res.json()) as { user?: { id?: string } }; + const userId = body.user?.id; + if (!userId) throw new Error("sign-in succeeded but user id missing"); + return userId; +} + +function compSubscription(userId: string): void { + const proc = Bun.spawnSync( + [ + "wrangler", + "d1", + "execute", + "dotflowy-db", + "--local", + "--command", + `INSERT OR IGNORE INTO subscription (id, plan, referenceId, status) VALUES ('${SUBSCRIPTION_ID}', 'unlimited', '${userId}', 'active')`, + ], + { stdout: "pipe", stderr: "pipe" }, + ); + if (proc.exitCode !== 0) { + const err = new TextDecoder().decode(proc.stderr); + throw new Error( + `wrangler d1 execute failed (exit ${proc.exitCode}): ${err}`, + ); + } +} + +async function main(): Promise { + try { + await fetch(`${API}/api/auth/ok`); + } catch { + console.error(`Worker not reachable at ${API}. Run \`bun run dev\` first.`); + process.exit(1); + } + + const userId = await signInUserId(); + compSubscription(userId); + console.log(`comped unlimited plan for ${EMAIL} (${userId}) in local D1`); +} + +await main(); diff --git a/scripts/mint-mcp-token.ts b/scripts/mint-mcp-token.ts new file mode 100644 index 00000000..9c91c186 --- /dev/null +++ b/scripts/mint-mcp-token.ts @@ -0,0 +1,187 @@ +/** + * Mint a real Better Auth MCP OAuth bearer for the local dev account against a + * running Worker — dynamic client registration + PKCE authorization code, the + * same path `auth.api.getMcpSession` validates on `/mcp`. + * + * Localhost-only by construction (`API` is hardcoded). Use the printed bearer + * with `Authorization: Bearer …` on `POST http://localhost:8787/mcp`. + * + * MCP tool calls also require a paid plan locally — run `bun run comp:dev-plan` + * once per D1 reset before exercising writes. + * + * Requires `bun run dev` / `bun run dev:api` and `bun run seed:user`. + */ +const API = "http://localhost:8787"; +const AUTH = `${API}/api/auth`; +const EMAIL = "dev@dotflowy.local"; +const PASSWORD = "dotflowy-dev"; +const ORIGIN = "http://localhost:8787"; +/** Loopback redirect the authorize step can target without a listener. */ +const REDIRECT_URI = "http://127.0.0.1:8765/callback"; + +type SignInBody = { user?: { id?: string; email?: string } }; +type RegisterBody = { client_id?: string; error?: string }; +type TokenBody = { + access_token?: string; + token_type?: string; + expires_in?: number; + error?: string; + error_description?: string; +}; + +function randomVerifier(): string { + const bytes = crypto.getRandomValues(new Uint8Array(32)); + return btoa(String.fromCharCode(...bytes)) + .replace(/\+/g, "-") + .replace(/\//g, "_") + .replace(/=+$/, ""); +} + +async function pkceChallenge(verifier: string): Promise { + const digest = await crypto.subtle.digest( + "SHA-256", + new TextEncoder().encode(verifier), + ); + return btoa(String.fromCharCode(...new Uint8Array(digest))) + .replace(/\+/g, "-") + .replace(/\//g, "_") + .replace(/=+$/, ""); +} + +function sessionCookie(res: Response): string { + const setCookie = res.headers.getSetCookie?.() ?? []; + return setCookie.map((c) => c.split(";")[0]).join("; "); +} + +async function signIn(): Promise<{ cookie: string; userId: string }> { + const res = await fetch(`${AUTH}/sign-in/email`, { + method: "POST", + headers: { + "content-type": "application/json", + origin: ORIGIN, + }, + body: JSON.stringify({ email: EMAIL, password: PASSWORD }), + }); + if (!res.ok) { + const text = await res.text(); + throw new Error( + `sign-in failed (${res.status}): ${text}. Run \`bun run seed:user\` first.`, + ); + } + const body = (await res.json()) as SignInBody; + const userId = body.user?.id; + if (!userId) throw new Error("sign-in succeeded but user id missing"); + return { cookie: sessionCookie(res), userId }; +} + +async function registerClient(cookie: string): Promise { + const res = await fetch(`${AUTH}/mcp/register`, { + method: "POST", + headers: { + "content-type": "application/json", + cookie, + origin: ORIGIN, + }, + body: JSON.stringify({ + client_name: "local-mcp-dogfood", + redirect_uris: [REDIRECT_URI], + token_endpoint_auth_method: "none", + grant_types: ["authorization_code"], + response_types: ["code"], + }), + }); + const body = (await res.json()) as RegisterBody; + if (!res.ok || !body.client_id) { + throw new Error( + `client registration failed (${res.status}): ${JSON.stringify(body)}`, + ); + } + return body.client_id; +} + +async function authorizeCode( + cookie: string, + clientId: string, + challenge: string, +): Promise { + const url = new URL(`${AUTH}/mcp/authorize`); + url.searchParams.set("client_id", clientId); + url.searchParams.set("redirect_uri", REDIRECT_URI); + url.searchParams.set("response_type", "code"); + url.searchParams.set("code_challenge", challenge); + url.searchParams.set("code_challenge_method", "S256"); + url.searchParams.set("scope", "openid"); + + const res = await fetch(url, { + redirect: "manual", + headers: { cookie, origin: ORIGIN }, + }); + const location = res.headers.get("location"); + if (res.status !== 302 || !location) { + throw new Error( + `authorize failed (status ${res.status}, location ${location ?? "none"})`, + ); + } + const code = new URL(location).searchParams.get("code"); + if (!code) throw new Error(`authorize redirect missing code: ${location}`); + return code; +} + +async function exchangeToken( + clientId: string, + code: string, + verifier: string, +): Promise { + const body = new URLSearchParams({ + grant_type: "authorization_code", + code, + redirect_uri: REDIRECT_URI, + client_id: clientId, + code_verifier: verifier, + }); + const res = await fetch(`${AUTH}/mcp/token`, { + method: "POST", + headers: { + "content-type": "application/x-www-form-urlencoded", + origin: ORIGIN, + }, + body, + }); + const json = (await res.json()) as TokenBody; + if (!res.ok || !json.access_token) { + throw new Error( + `token exchange failed (${res.status}): ${JSON.stringify(json)}`, + ); + } + return json; +} + +async function main(): Promise { + try { + await fetch(`${API}/api/auth/ok`); + } catch { + console.error(`Worker not reachable at ${API}. Run \`bun run dev\` first.`); + process.exit(1); + } + + const { cookie, userId } = await signIn(); + const clientId = await registerClient(cookie); + const verifier = randomVerifier(); + const challenge = await pkceChallenge(verifier); + const code = await authorizeCode(cookie, clientId, challenge); + const token = await exchangeToken(clientId, code, verifier); + + console.log(`userId: ${userId}`); + console.log(`clientId: ${clientId}`); + console.log(`access_token: ${token.access_token}`); + console.log(`expires_in: ${token.expires_in ?? "unknown"}s`); + console.log(""); + console.log("Example: curl -s -X POST http://localhost:8787/mcp \\"); + console.log(` -H 'authorization: Bearer ${token.access_token}' \\`); + console.log(" -H 'content-type: application/json' \\"); + console.log( + ' -d \'{"jsonrpc":"2.0","id":1,"method":"tools/list","params":{}}\'', + ); +} + +await main(); From 0a62090b5a46eee7fd5a55fbe771739271d9e40e Mon Sep 17 00:00:00 2001 From: Cameron Pak Date: Thu, 23 Jul 2026 16:14:25 -0500 Subject: [PATCH 47/59] fix(e2e): wait for Lunora poke after seeded navigation delete-confirm could time out on big rows when shape hydration lagged page.goto in the full serial suite. Add openSeededOutline helpers and use them in delete-confirm; HANDOFF records 356/0/13 on E2E_PORT=3235. Co-authored-by: Cursor --- HANDOFF.md | 10 ++++++---- e2e/delete-confirm.spec.ts | 21 +++++++++++++++------ e2e/fixtures.ts | 20 ++++++++++++++++++++ 3 files changed, 41 insertions(+), 10 deletions(-) diff --git a/HANDOFF.md b/HANDOFF.md index 74bc7d0b..0458946c 100644 --- a/HANDOFF.md +++ b/HANDOFF.md @@ -45,10 +45,11 @@ bunx playwright test e2e/lunora-*.spec.ts --workers=1 E2E_LUNORA=1 E2E_PORT=3231 bunx playwright test e2e --workers=1 ``` -**Last broader matrix** (`E2E_LUNORA=1 E2E_PORT=3231 bunx playwright test e2e --workers=1`): -**355 passed / 1 flaked / 13 skipped**. Flake was `lunora-structural` `/delete` -reload racing fire-and-forget watermark — hardened to await `mutators:removeNode` -(repeat-each green). Prior full run before fixes: **350 / 15 / 4**. +**Last broader matrix** (`E2E_LUNORA=1 E2E_PORT=3235 bunx playwright test e2e --workers=1`): +**356 passed / 0 failed / 13 skipped** (369 total — max pass under transport skips). +Prior flake: `delete-confirm` big-delete reload hid rows before Lunora poke — +`openSeededOutline` / `waitForSeededNode` in fixtures (2026-07-23). Earlier: +**355 / 1 flake / 13**; before product fixes **350 / 15 / 4**. Product fixes that cleared the 15: Lunora big-delete → `mutators.removeMany`; keymap delete passes `instanceId` (mirror instance, not source). @@ -72,6 +73,7 @@ keymap delete passes `instanceId` (mirror instance, not source). - Mock: per-shape checkpoints + **delete ops in pokes** (put-only resurrected deletes) - `page.unroute("**/_lunora/**")` etc. at seed start (reload / stacked-handler flake) - AuthGate session mock kept on Lunora path +- `openSeededOutline` / `waitForSeededNode` — post-`goto` Lunora hydration wait ### Product fixes this slice diff --git a/e2e/delete-confirm.spec.ts b/e2e/delete-confirm.spec.ts index 94246a48..e37d8013 100644 --- a/e2e/delete-confirm.spec.ts +++ b/e2e/delete-confirm.spec.ts @@ -6,7 +6,13 @@ // unchanged. One Cmd+Z restores the whole subtree either way. import { expect, test, type Page } from "@playwright/test"; -import { seedOutline, STANDARD_TREE, type SeedNode } from "./fixtures"; +import { + openSeededOutline, + seedOutline, + STANDARD_TREE, + waitForSeededNode, + type SeedNode, +} from "./fixtures"; const text = (page: Page, id: string) => page.locator(`li[data-node-id="${id}"] > .outline-row .node-text`); @@ -36,7 +42,7 @@ function bigSeed(n: number): SeedNode[] { test.describe("big-delete confirmation", () => { test("a small delete never asks (regression)", async ({ page }) => { await seedOutline(page, STANDARD_TREE); - await page.goto("/"); + await openSeededOutline(page, { anchorId: "alpha" }); await expect(text(page, "alpha")).toBeVisible(); // alpha's subtree is 3 nodes (< 30): deleted inline, no dialog. @@ -50,7 +56,7 @@ test.describe("big-delete confirmation", () => { page, }) => { await seedOutline(page, bigSeed(40)); // 41-node subtree >= 30 - await page.goto("/"); + await openSeededOutline(page, { anchorId: "big" }); await expect(text(page, "big")).toBeVisible(); await text(page, "big").click(); @@ -64,6 +70,7 @@ test.describe("big-delete confirmation", () => { // Nothing was deleted — and a reload agrees. await expect(text(page, "big")).toBeVisible(); await page.reload(); + await waitForSeededNode(page, "big"); await expect(text(page, "big")).toBeVisible(); }); @@ -71,7 +78,7 @@ test.describe("big-delete confirmation", () => { page, }) => { await seedOutline(page, bigSeed(40)); - await page.goto("/"); + await openSeededOutline(page, { anchorId: "big" }); await expect(text(page, "big")).toBeVisible(); await text(page, "big").click(); @@ -83,6 +90,7 @@ test.describe("big-delete confirmation", () => { await expect(text(page, "charlie")).toBeVisible(); // Persisted through the (mock) server store. await page.reload(); + await waitForSeededNode(page, "alpha"); await expect(text(page, "alpha")).toBeVisible(); await expect(page.locator('li[data-node-id="big"]')).toHaveCount(0); @@ -106,7 +114,7 @@ test.describe("big-delete confirmation", () => { // Delay the batch POST response so the dialog rests in its post-apply // "saving" phase — proof every slice applied while ONE batch is in flight. await seedOutline(page, bigSeed(600), { postDelayMs: 600 }); - await page.goto("/"); + await openSeededOutline(page, { anchorId: "big" }); await expect(text(page, "big")).toBeVisible(); await text(page, "big").click(); @@ -123,6 +131,7 @@ test.describe("big-delete confirmation", () => { await expect(page.getByTestId("delete-confirm-dialog")).toHaveCount(0); await expect(page.locator('li[data-node-id="big"]')).toHaveCount(0); await page.reload(); + await waitForSeededNode(page, "alpha"); await expect(text(page, "alpha")).toBeVisible(); await expect(page.locator('li[data-node-id="big"]')).toHaveCount(0); }); @@ -131,7 +140,7 @@ test.describe("big-delete confirmation", () => { page, }) => { await seedOutline(page, bigSeed(40)); - await page.goto("/"); + await openSeededOutline(page, { anchorId: "big" }); await expect(text(page, "big")).toBeVisible(); // Enter node selection on the big parent (Shift+Down selects the focused diff --git a/e2e/fixtures.ts b/e2e/fixtures.ts index f5821bd5..bbdae7c5 100644 --- a/e2e/fixtures.ts +++ b/e2e/fixtures.ts @@ -47,6 +47,26 @@ function wantsLunoraSeed(opts: { lunora?: boolean } | undefined): boolean { return isE2eLunora(opts); } +/** Lunora shape pokes can land after `goto`; wait for a seeded row. No-op classic. */ +export async function waitForSeededNode( + page: Page, + nodeId: string, +): Promise { + if (!isE2eLunora()) return; + await page + .locator(`li[data-node-id="${nodeId}"]`) + .waitFor({ state: "attached", timeout: 15_000 }); +} + +/** `page.goto` + Lunora hydration wait on a known seeded id. */ +export async function openSeededOutline( + page: Page, + opts: { path?: string; anchorId?: string } = {}, +): Promise { + await page.goto(opts.path ?? "/"); + await waitForSeededNode(page, opts.anchorId ?? "alpha"); +} + // A node as the test author cares about it -- structural fields only. Everything // the schema also requires (isTask/completed/collapsed/timestamps) is filled in // with inert defaults by seedOutline so each test only states what matters. From b94d865d246d677e51c3115f2cf0d00aebe2a66b Mon Sep 17 00:00:00 2001 From: Cameron Pak Date: Thu, 23 Jul 2026 16:16:48 -0500 Subject: [PATCH 48/59] feat(lunora): default outline sync ON for client and Worker Flip isLunoraSyncEnabled and isLunoraOutlineEnabled to ON when unset; keep localStorage/?lunora-sync=off and LUNORA_OUTLINE=0|false|off as escape hatches. Classic e2e seedOutline forces flag off so the default suite stays on /api/sync mocks. Co-authored-by: Cursor --- .changeset/lunora-default-on.md | 5 +++ .dev.vars.example | 8 ++-- HANDOFF.md | 42 ++++++++++--------- ...055-lunora-replaces-custom-outline-sync.md | 2 +- e2e/fixtures.ts | 13 ++++-- src/data/flags.test.ts | 4 +- src/data/flags.ts | 14 +++---- worker/index.ts | 6 +-- worker/lunora-app.ts | 5 +-- worker/lunora-mcp-store.test.ts | 16 +++---- worker/lunora-mcp-store.ts | 7 +++- 11 files changed, 70 insertions(+), 52 deletions(-) create mode 100644 .changeset/lunora-default-on.md diff --git a/.changeset/lunora-default-on.md b/.changeset/lunora-default-on.md new file mode 100644 index 00000000..eb5e0269 --- /dev/null +++ b/.changeset/lunora-default-on.md @@ -0,0 +1,5 @@ +--- +"dotflowy": minor +--- + +Outline sync now defaults to Lunora for the browser and MCP. Disable with `?lunora-sync=off` or `localStorage` `dotflowy:flag:lunora-sync=off`; set `LUNORA_OUTLINE=0` in Worker env to keep MCP on the classic DO. diff --git a/.dev.vars.example b/.dev.vars.example index b492b7fe..fe2b8e58 100644 --- a/.dev.vars.example +++ b/.dev.vars.example @@ -34,10 +34,10 @@ INVITE_CODES=dev-invite # STRIPE_SECRET_KEY=sk_test_replace-me # STRIPE_WEBHOOK_SECRET=whsec_replace-me -# Optional: MCP outline store = Lunora SHARD (ADR 0055). Exactly "1" or "true" -# routes /mcp tools through mutators:applyChangeOps + queries:listNodes on the -# same user shard as the browser flag. Unset = classic UserOutlineDO (default). -# Local dogfood: set alongside client `dotflowy:flag:lunora-sync=on`. +# Lunora MCP outline store (ADR 0055). Default ON when unset — /mcp tools use +# the Lunora SHARD (mutators:applyChangeOps + queries:listNodes), same shard as +# the browser. Set "0", "false", or "off" to route MCP through classic +# UserOutlineDO (local debugging escape hatch). Explicit enable still works: # LUNORA_OUTLINE=1 # Optional: pin the OAuth issuer the MCP discovery metadata advertises (ADR diff --git a/HANDOFF.md b/HANDOFF.md index 0458946c..99194dbf 100644 --- a/HANDOFF.md +++ b/HANDOFF.md @@ -4,27 +4,28 @@ ## Status -Dual-path e2e + product fixes landed. Client flag **still default OFF**. Live authenticated socket, manual migration, and loading smoke pass; MCP's Lunora routing remains code-verified but needs an OAuth bearer + paid local entitlement for a live `tools/call`. +Dual-path e2e + product fixes landed. **Client + Worker default ON** (2026-07-23). Live authenticated socket, manual migration, loading smoke, and MCP Lunora live write pass. Kill-switches remain for rollback. ## Flag — Lunora outline sync (client) -| | | -| ----------- | ----------------------------------------------------------------------------------------------- | -| **Name** | `dotflowy:flag:lunora-sync` | -| **Getter** | `isLunoraSyncEnabled()` in `src/data/flags.ts` | -| **Default** | **OFF** (do not flip until checklist below) | -| **Enable** | `localStorage.setItem("dotflowy:flag:lunora-sync", "on")` then reload, **or** `?lunora-sync=on` | -| **Disable** | `"off"` in localStorage, or `?lunora-sync=off` | +| | | +| ----------- | ------------------------------------------------------------------------------ | +| **Name** | `dotflowy:flag:lunora-sync` | +| **Getter** | `isLunoraSyncEnabled()` in `src/data/flags.ts` | +| **Default** | **ON** | +| **Disable** | `"off"` in localStorage, or `?lunora-sync=off` | +| **Enable** | `"on"` in localStorage, or `?lunora-sync=on` (explicit; default needs neither) | ## Flag — Lunora MCP store (Worker) -| | | -| ----------- | ---------------------------------------------------------------------------------------- | -| **Name** | `LUNORA_OUTLINE` | -| **Default** | **OFF** (unset in `.dev.vars.example` still documents the opt-in; do not default to `1`) | -| **Enable** | `LUNORA_OUTLINE=1` in `.dev.vars` | +| | | +| ----------- | ---------------------------------------------------------------------------------- | +| **Name** | `LUNORA_OUTLINE` | +| **Default** | **ON** when unset — browser + MCP share one shard | +| **Disable** | `LUNORA_OUTLINE=0` / `false` / `off` in `.dev.vars` (local debugging escape hatch) | +| **Enable** | unset (default), or `LUNORA_OUTLINE=1` / `true` (explicit) | -## Default-ON readiness — **NO** +## Default-ON readiness — **YES** | Gate | Result | | ------------------------------- | -------------------------------- | @@ -32,8 +33,9 @@ Dual-path e2e + product fixes landed. Client flag **still default OFF**. Live au | `e2e/lunora-*.spec.ts` | GREEN (5/5) | | Classic subset `E2E_LUNORA=1` | Broader matrix GREEN (see below) | | Dogfood migrate (`bun run dev`) | **PASS** (2026-07-23; see below) | +| MCP live write dogfood | **PASS** (2026-07-23; see below) | -Keep default OFF. +**Shipped default ON** with kill-switches above. Classic e2e forces flag OFF in `seedOutline`. ## e2e Lunora run matrix (this slice) @@ -95,7 +97,7 @@ Live probe on `bun run dev` (`dev@dotflowy.local` / `dotflowy-dev`): 3. Browser smoke with `dotflowy:flag:lunora-sync=on` rendered the Lunora outline and **cleared "Loading outline"**. 4. Fresh run: flag OFF classic source held 3 welcome nodes. Flag ON exposed `window.__dotflowyMigrateToLunora` as a function and cleared loading. After clearing prior local Lunora spike seed rows, the empty shard auto-imported the three classic nodes; the concurrent manual helper then safely returned `skipped-nonempty` with `nodes: 3`. A full reload retained all three classic titles. More menu also displayed its safe-skip toast against a nonempty shard. -**Keep default OFF.** Migration + dual-path e2e + MCP Lunora live write are dogfood-verified; default ON still waits on optional browser re-check + broader recount. +**Default ON.** Migration + dual-path e2e + MCP Lunora live write dogfood-verified. ## Dogfood MCP with `LUNORA_OUTLINE=1` — **PASS (live write, 2026-07-23)** @@ -140,7 +142,7 @@ curl -s -X POST http://localhost:8787/mcp \ 4. ~~Broader classic specs under `E2E_LUNORA=1`~~ **DONE** (transport-only skips; product gaps fixed) 5. Optional: re-run full `E2E_LUNORA=1 bunx playwright test e2e` for a clean green count (expect ~359 pass / ~13 skip) 6. Snapshot/R2/PITR still classic DO — out of scope -7. Flip client default ON + `.dev.vars.example` `LUNORA_OUTLINE=1` only after 3 green +7. ~~Flip client default ON + Worker default ON + `.dev.vars.example`~~ **DONE** (2026-07-23) ## Gates @@ -153,6 +155,6 @@ E2E_LUNORA=1 bunx playwright test --workers=1 ## Next -1. Optional: browser reload with `dotflowy:flag:lunora-sync=on` to visually confirm MCP-written bullets. -2. Optional clean full-suite recount under `E2E_LUNORA=1`. -3. Then consider default ON → PR; **delete `HANDOFF.md` in shipping PR.** +1. Open PR from `spike/lunora-outline`; **delete `HANDOFF.md` in shipping PR.** +2. Optional: browser reload to visually confirm MCP-written bullets render in the editor. +3. Optional clean full-suite recount under `E2E_LUNORA=1`. diff --git a/docs/adr/0055-lunora-replaces-custom-outline-sync.md b/docs/adr/0055-lunora-replaces-custom-outline-sync.md index 2c0cf35b..ed8ac106 100644 --- a/docs/adr/0055-lunora-replaces-custom-outline-sync.md +++ b/docs/adr/0055-lunora-replaces-custom-outline-sync.md @@ -25,7 +25,7 @@ Dotflowy’s hand-rolled per-user DO sync (`/api/sync` + client-planned `{ops}` ## Identity / e2e / kv (locked) - **Identity:** product Better Auth stays the session authority (MCP OAuth, Stripe, invite/Turnstile). Lunora `resolveIdentity` reads that session — do **not** run a second `@lunora/auth` signup stack in the main app. -- **e2e:** keep `seedOutline` (`/api/sync`+`/api/nodes`) until the collection swap; then replace with a Lunora-aware fixture (route-mock `/_lunora/*` first; real Miniflare only if the mock cannot prove watermark). Sync-contract specs that assert custom `seq` frames are rewritten, not preserved. +- **e2e:** dual-path fixtures — `seedOutline` forces `lunora-sync=off` (classic `/api/sync` mock); `seedOutlineLunora` / `E2E_LUNORA=1` forces ON (`/_lunora/*` mock). Product defaults both client flag and Worker `LUNORA_OUTLINE` to ON; kill-switches stay for rollback. - **KV side-collections:** phase **2b** after nodes sync is on Lunora — do not block the collection swap on tag-colors/daily-index/saved-queries. ## Sequence (implementation order) diff --git a/e2e/fixtures.ts b/e2e/fixtures.ts index bbdae7c5..13e5ee22 100644 --- a/e2e/fixtures.ts +++ b/e2e/fixtures.ts @@ -156,9 +156,11 @@ function toNode(n: SeedNode): ApiNode { * (every spec does) so the collection's first sync is mocked. * * Dual-path: pass `{ lunora: true }` or set `E2E_LUNORA=1` to route through - * `seedOutlineLunora` (flag ON + `/_lunora/*` mock). Classic-only opts - * (`echoDelayMs`, `echoChunks`, `postDelayMs`, `failStructuralWrites`, - * `serverVersion`) are ignored on that path — those specs stay classic-only. + * `seedOutlineLunora` (flag ON + `/_lunora/*` mock). The classic path sets + * `dotflowy:flag:lunora-sync=off` so specs stay on `/api/sync` even though + * the product default is ON. Classic-only opts (`echoDelayMs`, `echoChunks`, + * `postDelayMs`, `failStructuralWrites`, `serverVersion`) are ignored on the + * Lunora path — those specs stay classic-only. */ export async function seedOutline( page: Page, @@ -199,6 +201,11 @@ export async function seedOutline( return seedOutlineLunora(page, nodes, { kv: opts.kv }); } + // Product default is Lunora ON; classic e2e mocks `/api/sync` only. + await page.addInitScript(() => { + window.localStorage.setItem("dotflowy:flag:lunora-sync", "off"); + }); + const echoDelayMs = opts.echoDelayMs ?? 0; // Delay only the structural-batch POST *response* (not its echo). Opens a // window to prove the client serializes batches: a second batch must not be diff --git a/src/data/flags.test.ts b/src/data/flags.test.ts index d4d65df3..551a6300 100644 --- a/src/data/flags.test.ts +++ b/src/data/flags.test.ts @@ -33,8 +33,8 @@ afterEach(() => { }); describe("isLunoraSyncEnabled", () => { - test("defaults OFF", () => { - expect(isLunoraSyncEnabled()).toBe(false); + test("defaults ON", () => { + expect(isLunoraSyncEnabled()).toBe(true); }); test("localStorage on enables", () => { diff --git a/src/data/flags.ts b/src/data/flags.ts index fb1e6823..cce11133 100644 --- a/src/data/flags.ts +++ b/src/data/flags.ts @@ -34,17 +34,17 @@ export function isMirrorsEnabled(): boolean { /** ADR 0055 Phase-2: outline sync via Lunora shapes/mutators instead of custom DO. */ export const LUNORA_SYNC_FLAG_KEY = "dotflowy:flag:lunora-sync"; -// Default OFF — Playwright + normal `bun run dev` stay on `/api/sync` + -// `nodesCollection`. Dogfood: localStorage `on` or `?lunora-sync=on`, then reload. -const LUNORA_SYNC_DEFAULT = false; +// Default ON — outline sync rides Lunora (ADR 0055). localStorage `"off"` or +// `?lunora-sync=off` is the rollback escape hatch (classic `/api/sync` path). +const LUNORA_SYNC_DEFAULT = true; /** * Whether outline sync rides Lunora (`/_lunora` + `@lunora/db`) instead of the - * custom `/api/sync` + `nodesCollection` path (ADR 0055). Default OFF. + * custom `/api/sync` + `nodesCollection` path (ADR 0055). Default ON. * - * Enable: `localStorage.setItem("dotflowy:flag:lunora-sync", "on")` then reload, - * or open with `?lunora-sync=on` (URL wins for that load; does not persist). - * Disable: `"off"` in localStorage, or `?lunora-sync=off`. + * Disable: `localStorage.setItem("dotflowy:flag:lunora-sync", "off")` then reload, + * or open with `?lunora-sync=off` (URL wins for that load; does not persist). + * Enable: `"on"` in localStorage, or `?lunora-sync=on`. */ export function isLunoraSyncEnabled(): boolean { if (typeof window === "undefined") return LUNORA_SYNC_DEFAULT; diff --git a/worker/index.ts b/worker/index.ts index c1e0ff74..982e2958 100644 --- a/worker/index.ts +++ b/worker/index.ts @@ -985,9 +985,9 @@ function handleApiRequest( // (handleMcp), not a 500. An operator comps themselves with a manual // subscription row (getPlan treats it as paid). const mcpPlan = yield* Effect.promise(() => getPlan(token.userId, env)); - // LUNORA_OUTLINE=1 → same shard as browser mutators (Better Auth userId). - // Default OFF keeps classic UserOutlineDO.applyBatch (resolveUserId / - // owner→'default' bridge unchanged). + // LUNORA_OUTLINE unset → same shard as browser mutators (default ON). + // LUNORA_OUTLINE=0|false|off keeps classic UserOutlineDO.applyBatch + // (resolveUserId / owner→'default' bridge unchanged). const mcpStore = isLunoraOutlineEnabled(env) ? createLunoraOutlineStore(env, token.userId) : env.USER_OUTLINE.get( diff --git a/worker/lunora-app.ts b/worker/lunora-app.ts index 55461989..7d5dad4e 100644 --- a/worker/lunora-app.ts +++ b/worker/lunora-app.ts @@ -20,9 +20,8 @@ export type LunoraEnv = AuthEnv & { /** Optional Studio / admin bearer (unset = admin routes stay closed). */ LUNORA_ADMIN_TOKEN?: string; /** - * When `"1"` / `"true"`, MCP outline tools read/write the Lunora SHARD - * (mutators:applyChangeOps + queries:listNodes) instead of UserOutlineDO. - * Default unset/off — mirrors client `dotflowy:flag:lunora-sync` for local/dev. + * Default ON when unset — browser + MCP share the Lunora SHARD. Set + * `"0"` / `"false"` / `"off"` to route MCP through classic UserOutlineDO. */ LUNORA_OUTLINE?: string; /** diff --git a/worker/lunora-mcp-store.test.ts b/worker/lunora-mcp-store.test.ts index 0af1e5ba..d13cfa37 100644 --- a/worker/lunora-mcp-store.test.ts +++ b/worker/lunora-mcp-store.test.ts @@ -3,14 +3,16 @@ import { describe, expect, test } from "bun:test"; import { isLunoraOutlineEnabled } from "./lunora-mcp-store"; describe("isLunoraOutlineEnabled", () => { - test("default OFF", () => { - expect(isLunoraOutlineEnabled({})).toBe(false); - expect(isLunoraOutlineEnabled({ LUNORA_OUTLINE: "" })).toBe(false); - expect(isLunoraOutlineEnabled({ LUNORA_OUTLINE: "0" })).toBe(false); - }); - - test("on for 1 or true", () => { + test("default ON when unset", () => { + expect(isLunoraOutlineEnabled({})).toBe(true); + expect(isLunoraOutlineEnabled({ LUNORA_OUTLINE: "" })).toBe(true); expect(isLunoraOutlineEnabled({ LUNORA_OUTLINE: "1" })).toBe(true); expect(isLunoraOutlineEnabled({ LUNORA_OUTLINE: "true" })).toBe(true); }); + + test("explicit off values disable", () => { + expect(isLunoraOutlineEnabled({ LUNORA_OUTLINE: "0" })).toBe(false); + expect(isLunoraOutlineEnabled({ LUNORA_OUTLINE: "false" })).toBe(false); + expect(isLunoraOutlineEnabled({ LUNORA_OUTLINE: "off" })).toBe(false); + }); }); diff --git a/worker/lunora-mcp-store.ts b/worker/lunora-mcp-store.ts index 7884ea0b..cf43450d 100644 --- a/worker/lunora-mcp-store.ts +++ b/worker/lunora-mcp-store.ts @@ -151,9 +151,12 @@ export function createLunoraOutlineStore( }; } -/** True when Worker MCP should use the Lunora shard (default OFF). */ +/** True when Worker MCP should use the Lunora shard (default ON when unset). */ export function isLunoraOutlineEnabled(env: { LUNORA_OUTLINE?: string; }): boolean { - return env.LUNORA_OUTLINE === "1" || env.LUNORA_OUTLINE === "true"; + const raw = env.LUNORA_OUTLINE?.trim().toLowerCase(); + if (!raw) return true; + if (raw === "0" || raw === "false" || raw === "off") return false; + return true; } From 51599b483e328fbef9d5ff6c4954bd7f71df01b8 Mon Sep 17 00:00:00 2001 From: Cameron Pak Date: Thu, 23 Jul 2026 16:17:03 -0500 Subject: [PATCH 49/59] chore: remove branch HANDOFF before Lunora cutover PR Co-authored-by: Cursor --- HANDOFF.md | 160 ----------------------------------------------------- 1 file changed, 160 deletions(-) delete mode 100644 HANDOFF.md diff --git a/HANDOFF.md b/HANDOFF.md deleted file mode 100644 index 99194dbf..00000000 --- a/HANDOFF.md +++ /dev/null @@ -1,160 +0,0 @@ -# HANDOFF — spike/lunora-outline - -**Delete this file before merging to `main`.** Branch-local build coordination only. - -## Status - -Dual-path e2e + product fixes landed. **Client + Worker default ON** (2026-07-23). Live authenticated socket, manual migration, loading smoke, and MCP Lunora live write pass. Kill-switches remain for rollback. - -## Flag — Lunora outline sync (client) - -| | | -| ----------- | ------------------------------------------------------------------------------ | -| **Name** | `dotflowy:flag:lunora-sync` | -| **Getter** | `isLunoraSyncEnabled()` in `src/data/flags.ts` | -| **Default** | **ON** | -| **Disable** | `"off"` in localStorage, or `?lunora-sync=off` | -| **Enable** | `"on"` in localStorage, or `?lunora-sync=on` (explicit; default needs neither) | - -## Flag — Lunora MCP store (Worker) - -| | | -| ----------- | ---------------------------------------------------------------------------------- | -| **Name** | `LUNORA_OUTLINE` | -| **Default** | **ON** when unset — browser + MCP share one shard | -| **Disable** | `LUNORA_OUTLINE=0` / `false` / `off` in `.dev.vars` (local debugging escape hatch) | -| **Enable** | unset (default), or `LUNORA_OUTLINE=1` / `true` (explicit) | - -## Default-ON readiness — **YES** - -| Gate | Result | -| ------------------------------- | -------------------------------- | -| typecheck* / lint / bun test | GREEN | -| `e2e/lunora-*.spec.ts` | GREEN (5/5) | -| Classic subset `E2E_LUNORA=1` | Broader matrix GREEN (see below) | -| Dogfood migrate (`bun run dev`) | **PASS** (2026-07-23; see below) | -| MCP live write dogfood | **PASS** (2026-07-23; see below) | - -**Shipped default ON** with kill-switches above. Classic e2e forces flag OFF in `seedOutline`. - -## e2e Lunora run matrix (this slice) - -```sh -export PLAYWRIGHT_BROWSERS_PATH="$HOME/Library/Caches/ms-playwright" -# Dedicated -bunx playwright test e2e/lunora-*.spec.ts --workers=1 -# Broader classic dual-path (nearly full e2e/) -E2E_LUNORA=1 E2E_PORT=3231 bunx playwright test e2e --workers=1 -``` - -**Last broader matrix** (`E2E_LUNORA=1 E2E_PORT=3235 bunx playwright test e2e --workers=1`): -**356 passed / 0 failed / 13 skipped** (369 total — max pass under transport skips). -Prior flake: `delete-confirm` big-delete reload hid rows before Lunora poke — -`openSeededOutline` / `waitForSeededNode` in fixtures (2026-07-23). Earlier: -**355 / 1 flake / 13**; before product fixes **350 / 15 / 4**. - -Product fixes that cleared the 15: Lunora big-delete → `mutators.removeMany`; -keymap delete passes `instanceId` (mirror instance, not source). - -| Spec / area | Under `E2E_LUNORA=1` | -| ----------------------------------------------------- | ------------------------------------------------------------- | -| Dedicated `lunora-*.spec.ts` | PASS | -| Nearly full classic `e2e/*.spec.ts` | PASS (product gaps fixed below) | -| daily-notes: claim-race (`?op=claim` override) | **SKIP** — classic `/api/kv` transport only (`isE2eLunora()`) | -| atomic-structural-writes (`/api/nodes` batch asserts) | **SKIP** — classic wire only | -| changelog cursor seed/write asserts | **SKIP** — classic `/api/kv` mock | -| drag-filtered structural POST await | **SKIP** — awaits classic `/api/nodes` | -| opml multi-slice "one atomic batch" progress copy | **SKIP** — classic transport progress state | -| save-failure structural fail injection | **SKIP** — classic structural transport | -| sibling-chain-repair malformed snapshot | **SKIP** — classic snapshot fixture | -| update-available `serverVersion` handshake | **SKIP** — classic sync handshake | - -### Fixture dual-path - -- `seedOutline(..., { lunora?: boolean })` **or** `E2E_LUNORA=1` → `seedOutlineLunora` -- Mock: per-shape checkpoints + **delete ops in pokes** (put-only resurrected deletes) -- `page.unroute("**/_lunora/**")` etc. at seed start (reload / stacked-handler flake) -- AuthGate session mock kept on Lunora path -- `openSeededOutline` / `waitForSeededNode` — post-`goto` Lunora hydration wait - -### Product fixes this slice - -- `src/data/live-nodes.ts` — event-time reads for selection / paste / daily migration -- daily `get-or-create.ts` uses `getLiveNodes()` (scaffold migrate saw empty classic collection) -- Cmd+K: run action before close; `onDeleteNode` prefers explicit target id -- markdown-paste Lunora `restoreNodes` path -- big-delete confirm: Lunora path uses `mutators.removeMany` (not classic sliced `{ops}`) -- bullet keymap delete: pass `instanceId` so mirrors delete the instance, not the source - -## Dogfood live smoke — **PASS (connection + loading + migration)** - -`vite.config.ts` sets `ws: true` for both `/api` and `/_lunora`; the old string shorthand silently dropped WebSocket upgrades. - -Live probe on `bun run dev` (`dev@dotflowy.local` / `dotflowy-dev`): - -1. Better Auth sign-in through Vite (`:3000`) returned **200** and set `better-auth.session_token`; `GET /api/auth/get-session` resolved user `VkBqJpDMdmTnAxjsqeOw4SH0cVST2weX`. -2. Cookie-authenticated `/_lunora/ws?shard=` with `Origin: http://localhost:3000` returned **101** through both Vite (`:3000`) and direct Wrangler (`:8787`). The raw curl clients timed out after upgrading, as expected for an idle WebSocket. -3. Browser smoke with `dotflowy:flag:lunora-sync=on` rendered the Lunora outline and **cleared "Loading outline"**. -4. Fresh run: flag OFF classic source held 3 welcome nodes. Flag ON exposed `window.__dotflowyMigrateToLunora` as a function and cleared loading. After clearing prior local Lunora spike seed rows, the empty shard auto-imported the three classic nodes; the concurrent manual helper then safely returned `skipped-nonempty` with `nodes: 3`. A full reload retained all three classic titles. More menu also displayed its safe-skip toast against a nonempty shard. - -**Default ON.** Migration + dual-path e2e + MCP Lunora live write dogfood-verified. - -## Dogfood MCP with `LUNORA_OUTLINE=1` — **PASS (live write, 2026-07-23)** - -1. Local-only `.dev.vars` has `LUNORA_OUTLINE=1`; `bun run dev` restarted; Wrangler lists `env.LUNORA_OUTLINE`. -2. **Entitlement:** `bun run comp:dev-plan` hand-inserts an `active` `unlimited` row in local D1 for `dev@dotflowy.local` (`referenceId = VkBqJpDMdmTnAxjsqeOw4SH0cVST2weX`). Idempotent; no production gate changes. -3. **Auth:** `bun run mint:mcp-token` runs dynamic registration + PKCE against `http://localhost:8787/api/auth/mcp/*` and prints a real bearer (`auth.api.getMcpSession`-valid). -4. **Live write proof** (with `LUNORA_OUTLINE=1`, comped plan, minted bearer): - -```sh -bun run comp:dev-plan -TOKEN=$(bun run mint:mcp-token 2>/dev/null | rg '^access_token:' | cut -d' ' -f2) -# tools/call add_node -curl -s -X POST http://localhost:8787/mcp \ - -H "authorization: Bearer $TOKEN" \ - -H 'content-type: application/json' \ - -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"add_node","arguments":{"text":"MCP-LUNORA-PASS-1784839995"}}}' -# → {"result":{"content":[{"type":"text","text":"Added \"MCP-LUNORA-PASS-1784839995\" at the top level (id: d4659316-091a-462f-9274-0c8dc29aade5)."}]}} -# tools/call search_nodes -curl -s -X POST http://localhost:8787/mcp \ - -H "authorization: Bearer $TOKEN" \ - -H 'content-type: application/json' \ - -d '{"jsonrpc":"2.0","id":2,"method":"tools/call","params":{"name":"search_nodes","arguments":{"query":"MCP-LUNORA-PASS-1784839995"}}}' -# → {"result":{"content":[{"type":"text","text":"- \"MCP-LUNORA-PASS-1784839995\" (id: d4659316-091a-462f-9274-0c8dc29aade5)"}]}} -# tools/call get_outline (Lunora shard via createLunoraOutlineStore → mcp:listNodes) -curl -s -X POST http://localhost:8787/mcp \ - -H "authorization: Bearer $TOKEN" \ - -H 'content-type: application/json' \ - -d '{"jsonrpc":"2.0","id":3,"method":"tools/call","params":{"name":"get_outline","arguments":{}}}' -# → outline text includes the new bullet id d4659316-091a-462f-9274-0c8dc29aade5 -``` - -5. Pre-comp control: same bearer without subscription row got JSON-RPC `-32001` upgrade required on `tools/call` (entitlement gate intact). -6. Browser with `dotflowy:flag:lunora-sync=on` not re-run this slice — MCP readback confirms the Lunora SHARD mutation (same `userId` shard key as browser mutators). Optional follow-up: reload editor and confirm the marker bullet renders. - -**Scripts (committed):** `scripts/comp-dev-plan.ts`, `scripts/mint-mcp-token.ts` → `bun run comp:dev-plan`, `bun run mint:mcp-token`. - -## Known gaps → flag-default-ON checklist - -1. ~~Dual-path fixture + representative classic subset~~ **DONE** (this slice) -2. ~~Manual migration dogfood~~ **DONE** (2026-07-23) -3. ~~**MCP live write dogfood** with `LUNORA_OUTLINE=1`~~ **DONE** (2026-07-23; see above) -4. ~~Broader classic specs under `E2E_LUNORA=1`~~ **DONE** (transport-only skips; product gaps fixed) -5. Optional: re-run full `E2E_LUNORA=1 bunx playwright test e2e` for a clean green count (expect ~359 pass / ~13 skip) -6. Snapshot/R2/PITR still classic DO — out of scope -7. ~~Flip client default ON + Worker default ON + `.dev.vars.example`~~ **DONE** (2026-07-23) - -## Gates - -```sh -bun run typecheck && bun run typecheck:worker && bun run typecheck:test -bun run lint && bun run test -bunx playwright test e2e/lunora-*.spec.ts -E2E_LUNORA=1 bunx playwright test --workers=1 -``` - -## Next - -1. Open PR from `spike/lunora-outline`; **delete `HANDOFF.md` in shipping PR.** -2. Optional: browser reload to visually confirm MCP-written bullets render in the editor. -3. Optional clean full-suite recount under `E2E_LUNORA=1`. From b956ae55dd545a0d5a684c4066ced18a7d70fffa Mon Sep 17 00:00:00 2001 From: Cameron Pak Date: Thu, 23 Jul 2026 16:23:14 -0500 Subject: [PATCH 50/59] fix(lunora): wipe shard on delete, gate shell until migrate Account deletion now erases the Lunora SHARD (system RPC wipeUserShard) alongside USER_OUTLINE. Shell sync-ready and seedIfEmpty run only after auto-migrate settles. Document paired kill-switches (ADR 0051/0055). Co-authored-by: Cursor --- docs/adr/0051-self-serve-account-deletion.md | 5 +-- ...055-lunora-replaces-custom-outline-sync.md | 1 + lunora/_generated/api.ts | 1 + lunora/_generated/functions.ts | 8 +++++ lunora/mcp.ts | 36 ++++++++++++++++++- src/data/flags.ts | 5 +++ src/data/lunora-sync.ts | 5 ++- worker/auth.ts | 10 ++++++ worker/lunora-mcp-store.ts | 17 ++++++++- 9 files changed, 83 insertions(+), 5 deletions(-) diff --git a/docs/adr/0051-self-serve-account-deletion.md b/docs/adr/0051-self-serve-account-deletion.md index f94b5326..752aa1f4 100644 --- a/docs/adr/0051-self-serve-account-deletion.md +++ b/docs/adr/0051-self-serve-account-deletion.md @@ -11,7 +11,8 @@ Server-side, Better Auth's built-in `user.deleteUser` owns the lifecycle; we han - **`beforeDelete(user)`** — runs while the account still exists, in this order: 1. **Owner guard.** Refuse the `OWNER_USER_ID` account (`isOwnerAccount`). It maps to the constant `'default'` DO (the owner-continuity bridge, ADR 0011) holding pre-auth/shared data — wiping that is an operator decision, not a button. A `throw` here aborts with nothing destroyed. 2. **Cancel Stripe and clear the D1 `subscription` rows** (`cancelActiveSubscriptions`) — cancel immediately, **throw on failure** so the whole deletion aborts (the crux, below), then delete the rows for `referenceId = user.id`. The row delete lives HERE, not in the best-effort `afterDelete` sweep: Better Auth's `deleteUser` does not cascade the Stripe plugin's table, and a failed `afterDelete` would orphan the entitlement record. It runs unconditionally — a comped user (operator-inserted active row, no Stripe ids) and a free user (no row) both skip the Stripe call and just clear D1. - 3. **Wipe the outline DO** — `stub.wipe()` → `ctx.storage.deleteAll()`, which on a SQLite-backed DO erases both the SQL tables and the KV storage atomically. The stub is resolved from the authenticated `user.id` (never client input — the ADR 0014 trust boundary), and it also closes any live sync sockets. + 3. **Wipe the classic outline DO** — `stub.wipe()` on `USER_OUTLINE` keyed by `user.id` (never client input — the ADR 0014 trust boundary); closes live sync sockets and atomically erases SQL + KV via `deleteAll()`. + 4. **Wipe the Lunora shard** (ADR 0055) — `wipeLunoraUserShard(env, user.id)` via trusted system RPC on `env.SHARD`, keyed by the same Better Auth `user.id` the browser/MCP mutators use (**not** `resolveUserId` / `'default'`). Throws on failure like the DO wipe — deletion aborts before identity rows vanish. - **`afterDelete(user)`** — the identity rows are gone; clean up the rows core deletion doesn't (`deleteResidualUserRows`): the mcp OAuth rows (they cascade, but deleting by `userId` is idempotent belt-and-suspenders) and the email-keyed `waitlist` (0005) + `invites` (0007) rows — both carry PII (the address) that the erasure promise covers, deleted under the same `normalizeEmail` their inserts used. Best-effort AND non-fatal (wrapped, logged): any leftover is unreachable, so it never fails an already-done deletion. ## The two decisions worth recording @@ -34,7 +35,7 @@ Two grilled items consciously **not built**: ## Consequences / rejected -- **DO wipe in `beforeDelete`, not `afterDelete`.** If the core user-row delete then failed, we'd have wiped a still-alive account's outline — recoverable (they're signed in; the outline re-seeds). The inverse (wipe in `afterDelete`, fails) orphans data we _promised_ to delete — a privacy regression. So the irreversible wipe goes last-in-`beforeDelete`, after Stripe has committed. +- **DO wipe in `beforeDelete`, not `afterDelete`.** If the core user-row delete then failed, we'd have wiped a still-alive account's outline — recoverable (they're signed in; the outline re-seeds). The inverse (wipe in `afterDelete`, fails) orphans data we _promised_ to delete — a privacy regression. So the irreversible wipe goes last-in-`beforeDelete`, after Stripe has committed — classic `USER_OUTLINE` then Lunora `SHARD` (ADR 0055), both keyed by `user.id`. - **"Deleted" is honest about the 30-day PITR floor.** Durable Objects carry automatic 30-day Point-in-Time Recovery: `deleteAll()` removes the outline from every live path immediately, but the operator retains a recoverable backup for up to 30 days. The confirmation dialog says so in one line ("removed from the app right away; automatic backups are purged within 30 days") — disclosure, not a user-facing undo; a PITR restore is a manual operator support action, and the accidental-delete safety net in lieu of a product undo window (deferred). - **Refunds are decoupled.** Deletion cancels immediately, never auto-refunds; the ToS's 14-day window stays a manual support action. - **Not e2e-tested.** `seedOutline` mocks `/api/auth`, so the real deleteUser path is unreachable in Playwright; the owner guard, the billable-status sweep, and the residual-row scrub are unit-tested (`worker/account-deletion.test.ts`) and the full flow is verified by hand against the dev loop. diff --git a/docs/adr/0055-lunora-replaces-custom-outline-sync.md b/docs/adr/0055-lunora-replaces-custom-outline-sync.md index ed8ac106..37c151e4 100644 --- a/docs/adr/0055-lunora-replaces-custom-outline-sync.md +++ b/docs/adr/0055-lunora-replaces-custom-outline-sync.md @@ -26,6 +26,7 @@ Dotflowy’s hand-rolled per-user DO sync (`/api/sync` + client-planned `{ops}` - **Identity:** product Better Auth stays the session authority (MCP OAuth, Stripe, invite/Turnstile). Lunora `resolveIdentity` reads that session — do **not** run a second `@lunora/auth` signup stack in the main app. - **e2e:** dual-path fixtures — `seedOutline` forces `lunora-sync=off` (classic `/api/sync` mock); `seedOutlineLunora` / `E2E_LUNORA=1` forces ON (`/_lunora/*` mock). Product defaults both client flag and Worker `LUNORA_OUTLINE` to ON; kill-switches stay for rollback. +- **Kill-switch pairing:** the browser reads `isLunoraSyncEnabled()` (`dotflowy:flag:lunora-sync` / `?lunora-sync=`); Worker MCP reads `LUNORA_OUTLINE` (`isLunoraOutlineEnabled`). There is no cross-layer signal — flip **both** together (`lunora-sync=off` **and** `LUNORA_OUTLINE=0`) or MCP and the editor diverge on the same account. - **KV side-collections:** phase **2b** after nodes sync is on Lunora — do not block the collection swap on tag-colors/daily-index/saved-queries. ## Sequence (implementation order) diff --git a/lunora/_generated/api.ts b/lunora/_generated/api.ts index cbfe270d..24fc7aa7 100644 --- a/lunora/_generated/api.ts +++ b/lunora/_generated/api.ts @@ -14,6 +14,7 @@ export interface InternalApiTypes { applyChangeOps: FunctionReference<"mutation", { userId: string; ops: Array }, { count: number; deletes?: undefined; inserts?: undefined; patches?: undefined; } | { count: number; deletes: number; inserts: number; patches: number; }>; listDailyIndex: FunctionReference<"query", { userId: string }, { key: string; nodeId: string; }[]>; listNodes: FunctionReference<"query", { userId: string }, { id: string; parentId: string | null; prevSiblingId: string | null; text: string; isTask: boolean; completed: boolean; collapsed: boolean; bookmarkedAt: number | null; mirrorOf: string | null; createdAt: number; updatedAt: number; origin: string | null; kind: "paragraph" | null }[]>; + wipeUserShard: FunctionReference<"mutation", { userId: string }, { deleted: number; }>; }; } diff --git a/lunora/_generated/functions.ts b/lunora/_generated/functions.ts index d634fc55..1f4cd978 100644 --- a/lunora/_generated/functions.ts +++ b/lunora/_generated/functions.ts @@ -37,6 +37,7 @@ export const LUNORA_FUNCTIONS: Record = { "mcp:applyChangeOps": lunora_mcp_0.applyChangeOps as unknown as RegisteredLunoraFunction, "mcp:listDailyIndex": lunora_mcp_0.listDailyIndex as unknown as RegisteredLunoraFunction, "mcp:listNodes": lunora_mcp_0.listNodes as unknown as RegisteredLunoraFunction, + "mcp:wipeUserShard": lunora_mcp_0.wipeUserShard as unknown as RegisteredLunoraFunction, "mutators:appendChild": lunora_mutators_1.appendChild as unknown as RegisteredLunoraFunction, "mutators:claimDailyMapping": lunora_mutators_1.claimDailyMapping as unknown as RegisteredLunoraFunction, "mutators:deleteDailyMapping": lunora_mutators_1.deleteDailyMapping as unknown as RegisteredLunoraFunction, @@ -86,6 +87,11 @@ if (typeof source !== "object" || source === null || Array.isArray(source)) retu if (typeof source["userId"] !== "string") return DEFER; return { "userId": source["userId"] }; }); +installCompiledValidatorMap(lunora_mcp_0.wipeUserShard.args, (source) => { +if (typeof source !== "object" || source === null || Array.isArray(source)) return DEFER; +if (typeof source["userId"] !== "string") return DEFER; +return { "userId": source["userId"] }; +}); /** * Replication-shape registry — one entry per `defineShape` in `lunora/shapes.ts`. @@ -151,6 +157,7 @@ export interface Caller { applyChangeOps: (args: { userId: string; ops: Array }) => Promise<{ count: number; deletes?: undefined; inserts?: undefined; patches?: undefined; } | { count: number; deletes: number; inserts: number; patches: number; }>; listDailyIndex: (args: { userId: string }) => Promise<{ key: string; nodeId: string; }[]>; listNodes: (args: { userId: string }) => Promise<{ id: string; parentId: string | null; prevSiblingId: string | null; text: string; isTask: boolean; completed: boolean; collapsed: boolean; bookmarkedAt: number | null; mirrorOf: string | null; createdAt: number; updatedAt: number; origin: string | null; kind: "paragraph" | null }[]>; + wipeUserShard: (args: { userId: string }) => Promise<{ deleted: number; }>; }; } @@ -170,6 +177,7 @@ export const createCaller = (context: CallerCtx): Caller => ({ applyChangeOps: (args) => callRegistered(context, "mcp:applyChangeOps", args), listDailyIndex: (args) => callRegistered(context, "mcp:listDailyIndex", args), listNodes: (args) => callRegistered(context, "mcp:listNodes", args), + wipeUserShard: (args) => callRegistered(context, "mcp:wipeUserShard", args), }, }); diff --git a/lunora/mcp.ts b/lunora/mcp.ts index 3844292a..9145e6ca 100644 --- a/lunora/mcp.ts +++ b/lunora/mcp.ts @@ -33,7 +33,12 @@ type McpNode = { kind: "paragraph" | null; }; -type ShardTable = "nodes" | "tagColors" | "savedQueries" | "dailyIndex"; +type ShardTable = + | "nodes" + | "tagColors" + | "savedQueries" + | "dailyIndex" + | "ratelimit_buckets"; type MutatorDb = { query: (table: ShardTable) => { @@ -151,3 +156,32 @@ export const applyChangeOps = internalMutation patches: plan.patches.length, }; }); + +const WIPE_TABLES: ShardTable[] = [ + "nodes", + "tagColors", + "savedQueries", + "dailyIndex", + "ratelimit_buckets", +]; + +/** + * Erase every row in this user's shard (outline + side-collections). Worker-only + * via `x-lunora-system` — self-serve account deletion (ADR 0051 + ADR 0055). + * Keyed by Better Auth `user.id` (same shard the browser/MCP mutators use). + */ +export const wipeUserShard = internalMutation + .input({ userId: v.string() }) + .mutation(async ({ ctx, args }) => { + const mctx = ctx as unknown as MutatorCtx; + assertOwner(mctx, args.userId); + let deleted = 0; + for (const table of WIPE_TABLES) { + const rows = await mctx.db.query(table).collect(); + for (const row of rows) { + await mctx.db.delete(row._id as Id); + deleted += 1; + } + } + return { deleted }; + }); diff --git a/src/data/flags.ts b/src/data/flags.ts index cce11133..f908faf8 100644 --- a/src/data/flags.ts +++ b/src/data/flags.ts @@ -42,6 +42,11 @@ const LUNORA_SYNC_DEFAULT = true; * Whether outline sync rides Lunora (`/_lunora` + `@lunora/db`) instead of the * custom `/api/sync` + `nodesCollection` path (ADR 0055). Default ON. * + * Kill-switch pairing (ADR 0055): the browser reads this flag; Worker MCP reads + * `LUNORA_OUTLINE` (`isLunoraOutlineEnabled` in worker/lunora-mcp-store.ts). + * Flip BOTH together (`lunora-sync=off` AND `LUNORA_OUTLINE=0`) or MCP and the + * editor diverge on the same account. + * * Disable: `localStorage.setItem("dotflowy:flag:lunora-sync", "off")` then reload, * or open with `?lunora-sync=off` (URL wins for that load; does not persist). * Enable: `"on"` in localStorage, or `?lunora-sync=on`. diff --git a/src/data/lunora-sync.ts b/src/data/lunora-sync.ts index f0d940b8..5a3a473e 100644 --- a/src/data/lunora-sync.ts +++ b/src/data/lunora-sync.ts @@ -5,6 +5,7 @@ * - creates `@lunora/db` `wholeOutline` collection + bound mutators * - feeds ADR 0004 `tree-store` from collection rows * - marks sync ready (shell spinner) + `seedIfEmpty` when the outline is empty + * AFTER auto-migrate from classic DO settles (success or skip) * * SPA/no-SSR: never start during prerender. Custom `/api/sync` stays cold * (see `collection.ts` early-return when the flag is ON). @@ -125,11 +126,13 @@ export function startLunoraOutlineSync(userId: string): void { .then(async () => { if (!ctx || ctx.store !== store) return; feedTreeFromCollection(store); - markNodesSyncReady(); // One-shot classic DO → Lunora when shard empty (skip if already has rows). + // Shell stays gated until migrate settles — otherwise the user can edit/ + // seed into an empty shard while import chunks land. const next = await maybeAutoMigrateToLunora(store, userId); if (!ctx || ctx.store !== store) return; feedTreeFromCollection(store); + markNodesSyncReady(); if (next === "seed") maybeSeed(store, userId); }) .catch((err) => { diff --git a/worker/auth.ts b/worker/auth.ts index c5049c1e..cf1661fb 100644 --- a/worker/auth.ts +++ b/worker/auth.ts @@ -12,6 +12,8 @@ * Durable Object. */ +import type { ShardNamespaceLike } from "lunorash/runtime"; + import { stripe } from "@better-auth/stripe"; import { betterAuth } from "better-auth"; import { APIError, createAuthMiddleware } from "better-auth/api"; @@ -28,6 +30,7 @@ import { import { sendEmail } from "./email"; import { isSignupOpen, matchesSharedInviteCode } from "./identity"; import { isRedeemableInvite, normalizeEmail, redeemInvite } from "./invites"; +import { wipeLunoraUserShard } from "./lunora-mcp-store"; import { FOUNDING_SEAT_LIMIT, countFoundingSeats } from "./plan"; /** The slice of the Worker env Better Auth needs. */ @@ -74,6 +77,9 @@ export interface AuthEnv { * /api/nodes through, resolved here from the authenticated session's user.id * (never a client-supplied id; the DO trust boundary, ADR 0014). */ USER_OUTLINE: DurableObjectNamespace; + /** Lunora shard DO namespace (ADR 0055). Self-serve deletion wipes this + * alongside USER_OUTLINE — keyed by `user.id`, not resolveUserId. */ + SHARD: ShardNamespaceLike; /** The owner's Better Auth `user.id`. When set, that one account routes to the * constant 'default' DO (worker/index.ts resolveUserId); self-serve deletion * refuses it (docs/adr/0051). */ @@ -243,6 +249,10 @@ export function createAuth( env.USER_OUTLINE.idFromName(user.id), ); await stub.wipe(); + // Lunora shard (ADR 0055): same Better Auth user.id the browser/MCP + // mutators use — NOT resolveUserId / 'default'. Throws on RPC failure + // so deletion aborts before identity rows vanish (ADR 0051 posture). + await wipeLunoraUserShard(env, user.id); }, // afterDelete runs once the identity rows are gone. Better Auth's core // deletes user/session/account; the mcp OAuth rows and the email-keyed diff --git a/worker/lunora-mcp-store.ts b/worker/lunora-mcp-store.ts index cf43450d..4c34a2b3 100644 --- a/worker/lunora-mcp-store.ts +++ b/worker/lunora-mcp-store.ts @@ -151,7 +151,14 @@ export function createLunoraOutlineStore( }; } -/** True when Worker MCP should use the Lunora shard (default ON when unset). */ +/** + * True when Worker MCP should use the Lunora shard (default ON when unset). + * + * Kill-switch pairing (ADR 0055): MCP reads this env var; the browser reads + * `isLunoraSyncEnabled()` (`dotflowy:flag:lunora-sync` / `?lunora-sync=`). + * Flip BOTH together (`LUNORA_OUTLINE=0` AND client `lunora-sync=off`) or MCP + * and the editor diverge on the same account. + */ export function isLunoraOutlineEnabled(env: { LUNORA_OUTLINE?: string; }): boolean { @@ -160,3 +167,11 @@ export function isLunoraOutlineEnabled(env: { if (raw === "0" || raw === "false" || raw === "off") return false; return true; } + +/** Permanently erase this user's Lunora shard — account deletion (ADR 0051). */ +export async function wipeLunoraUserShard( + env: LunoraRpcEnv, + userId: string, +): Promise { + await shardRpc(env, userId, "mcp:wipeUserShard", { userId }); +} From c0d7b869823b402e7325b624a307167f8c21e3c7 Mon Sep 17 00:00:00 2001 From: Cameron Pak Date: Thu, 23 Jul 2026 17:37:40 -0500 Subject: [PATCH 51/59] feat(lunora): opt-in beta via synced account-prefs Lunora outline sync defaults OFF; Settings beta toggle writes account-prefs and mirrors localStorage before reload. Worker MCP reads env force then the same preference on classic DO. Co-authored-by: Cursor --- .changeset/lunora-default-on.md | 5 - .changeset/lunora-opt-in-beta.md | 5 + .dev.vars.example | 8 +- AGENTS.md | 6 + ...055-lunora-replaces-custom-outline-sync.md | 4 +- src/components/header-more-menu.tsx | 2 +- src/data/account-prefs.ts | 166 ++++++++++++++++++ src/data/flags.test.ts | 4 +- src/data/flags.ts | 21 ++- src/routes/__root.tsx | 2 + src/routes/settings.tsx | 34 ++++ worker/index.ts | 20 ++- worker/lunora-mcp-store.test.ts | 82 +++++++-- worker/lunora-mcp-store.ts | 60 +++++-- 14 files changed, 363 insertions(+), 56 deletions(-) delete mode 100644 .changeset/lunora-default-on.md create mode 100644 .changeset/lunora-opt-in-beta.md create mode 100644 src/data/account-prefs.ts diff --git a/.changeset/lunora-default-on.md b/.changeset/lunora-default-on.md deleted file mode 100644 index eb5e0269..00000000 --- a/.changeset/lunora-default-on.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"dotflowy": minor ---- - -Outline sync now defaults to Lunora for the browser and MCP. Disable with `?lunora-sync=off` or `localStorage` `dotflowy:flag:lunora-sync=off`; set `LUNORA_OUTLINE=0` in Worker env to keep MCP on the classic DO. diff --git a/.changeset/lunora-opt-in-beta.md b/.changeset/lunora-opt-in-beta.md new file mode 100644 index 00000000..9b335a40 --- /dev/null +++ b/.changeset/lunora-opt-in-beta.md @@ -0,0 +1,5 @@ +--- +"dotflowy": minor +--- + +Add opt-in Lunora outline beta in Settings. Classic DO sync remains the default; enable the experimental Lunora backend per account (syncs across devices). Local dogfood: `LUNORA_OUTLINE=1` or `?lunora-sync=on`. diff --git a/.dev.vars.example b/.dev.vars.example index fe2b8e58..b8e53833 100644 --- a/.dev.vars.example +++ b/.dev.vars.example @@ -34,10 +34,10 @@ INVITE_CODES=dev-invite # STRIPE_SECRET_KEY=sk_test_replace-me # STRIPE_WEBHOOK_SECRET=whsec_replace-me -# Lunora MCP outline store (ADR 0055). Default ON when unset — /mcp tools use -# the Lunora SHARD (mutators:applyChangeOps + queries:listNodes), same shard as -# the browser. Set "0", "false", or "off" to route MCP through classic -# UserOutlineDO (local debugging escape hatch). Explicit enable still works: +# Lunora MCP outline store (ADR 0055). Optional **force** for local MCP/browser +# dogfood — not the production default (users opt in via Settings). +# LUNORA_OUTLINE=1 forces MCP onto the Lunora shard; 0|false|off forces classic +# UserOutlineDO. Unset → per-user `account-prefs` / lunora-beta on classic DO. # LUNORA_OUTLINE=1 # Optional: pin the OAuth issuer the MCP discovery metadata advertises (ADR diff --git a/AGENTS.md b/AGENTS.md index 1facab83..2b0c1f8b 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -546,7 +546,13 @@ Screenshots **cannot capture view-transition overlays** (they show the settled D - Landing accents should match the app palette — do not introduce colors (e.g. blue accent) that aren't used in the Dotflowy app. - On the landing page, keep feature/list bullets vertical even on desktop — no horizontal bullet rows. - Landing import copy should mention Workflowy import alongside OPML (most visitors don't know what OPML is). +- When grilling or design options are presented, pick the best reasonable option without waiting — favor robustness and best practices, balanced against not over-optimizing low-value work. +- Prefer deepening Effect TS and XState usage where they fit. +- In Cursor, prefer Cursor Auto or Cursor Grok 4.5 for implementation subagents. +- Lunora sync must stay opt-in (user-facing beta/settings flag); do not force a production cutover while Lunora is alpha. ## Learned Workspace Facts - Marketing site lives in the separate `landing/` package (`dotflowy-landing`) at dotflowy.com; the app SPA is at app.dotflowy.com. +- Lunora (`anolilab/lunora`) is the experimental outline-sync path behind client `dotflowy:flag:lunora-sync` and Worker `LUNORA_OUTLINE`; classic per-user DO remains the default. +- Vite proxies for `/api` and `/_lunora` need explicit `ws: true` — string shorthand does not upgrade WebSockets and blocks Lunora dogfood on "Loading outline". diff --git a/docs/adr/0055-lunora-replaces-custom-outline-sync.md b/docs/adr/0055-lunora-replaces-custom-outline-sync.md index 37c151e4..da891f61 100644 --- a/docs/adr/0055-lunora-replaces-custom-outline-sync.md +++ b/docs/adr/0055-lunora-replaces-custom-outline-sync.md @@ -25,8 +25,8 @@ Dotflowy’s hand-rolled per-user DO sync (`/api/sync` + client-planned `{ops}` ## Identity / e2e / kv (locked) - **Identity:** product Better Auth stays the session authority (MCP OAuth, Stripe, invite/Turnstile). Lunora `resolveIdentity` reads that session — do **not** run a second `@lunora/auth` signup stack in the main app. -- **e2e:** dual-path fixtures — `seedOutline` forces `lunora-sync=off` (classic `/api/sync` mock); `seedOutlineLunora` / `E2E_LUNORA=1` forces ON (`/_lunora/*` mock). Product defaults both client flag and Worker `LUNORA_OUTLINE` to ON; kill-switches stay for rollback. -- **Kill-switch pairing:** the browser reads `isLunoraSyncEnabled()` (`dotflowy:flag:lunora-sync` / `?lunora-sync=`); Worker MCP reads `LUNORA_OUTLINE` (`isLunoraOutlineEnabled`). There is no cross-layer signal — flip **both** together (`lunora-sync=off` **and** `LUNORA_OUTLINE=0`) or MCP and the editor diverge on the same account. +- **e2e:** dual-path fixtures — `seedOutline` forces `lunora-sync=off` (classic `/api/sync` mock); `seedOutlineLunora` / `E2E_LUNORA=1` forces ON (`/_lunora/*` mock). **Production defaults OFF** — classic DO is the default for browser and MCP until the user opts in via Settings (`account-prefs` / `lunora-beta`, synced across devices). Local dogfood can force ON with `LUNORA_OUTLINE=1` (Worker MCP) and `?lunora-sync=on` or localStorage (browser). +- **Kill-switch pairing:** the browser reads `isLunoraSyncEnabled()` (`dotflowy:flag:lunora-sync`, mirrored from synced `account-prefs` on load); Worker MCP reads env force first, else the same preference on classic DO (`isLunoraOutlineEnabledForUser`). For local debugging divergence, flip env + client together (`LUNORA_OUTLINE=0` **and** `lunora-sync=off`, or force both ON). - **KV side-collections:** phase **2b** after nodes sync is on Lunora — do not block the collection swap on tag-colors/daily-index/saved-queries. ## Sequence (implementation order) diff --git a/src/components/header-more-menu.tsx b/src/components/header-more-menu.tsx index 8269aab7..aa20c923 100644 --- a/src/components/header-more-menu.tsx +++ b/src/components/header-more-menu.tsx @@ -47,7 +47,7 @@ import { async function runMigrateToLunora() { const lunora = getLunoraOutlineContext(); if (!lunora) { - toast.error("Enable lunora-sync flag first, then reload"); + toast.error("Turn on Lunora beta in Settings, then reload"); return; } const result = await migrateClassicToLunora(lunora.store, lunora.userId); diff --git a/src/data/account-prefs.ts b/src/data/account-prefs.ts new file mode 100644 index 00000000..a8b35bad --- /dev/null +++ b/src/data/account-prefs.ts @@ -0,0 +1,166 @@ +/** + * Account-scoped preferences synced via classic DO `/api/kv` (ADR 0055 opt-in). + * + * Lunora beta opt-in lives here — not localStorage alone — so enabling on one + * device can converge others on next load. The runtime flag still mirrors to + * `dotflowy:flag:lunora-sync` so `LunoraSyncHost` remounts cleanly after reload. + */ + +import { queryCollectionOptions } from "@tanstack/query-db-collection"; +import { createCollection } from "@tanstack/react-db"; +import { Schema } from "effect"; +import { useSyncExternalStore } from "react"; + +import { hardReset } from "../lib/auth-client"; +import { isLunoraSyncEnabled, LUNORA_SYNC_FLAG_KEY } from "./flags"; +import { kvFetch, kvPut, toKvRows } from "./kv-api"; +import { queryClient } from "./query-client"; + +const prefRowSchema = Schema.Struct({ + id: Schema.String, + enabled: Schema.Boolean, +}); + +export type AccountPrefRow = Schema.Schema.Type; + +const KV = "account-prefs"; +export const LUNORA_BETA_ROW_ID = "lunora-beta"; + +const PREFS_RELOAD_GUARD = "dotflowy:lunora-pref-sync-reload"; + +export const accountPrefsCollection = createCollection( + queryCollectionOptions({ + id: "account-prefs", + queryKey: ["kv", KV], + queryClient, + queryFn: () => kvFetch(KV), + getKey: (row: AccountPrefRow) => row.id, + schema: Schema.toStandardSchemaV1(prefRowSchema), + onInsert: async ({ transaction }) => { + await kvPut(KV, toKvRows(transaction)); + return { refetch: false }; + }, + onUpdate: async ({ transaction }) => { + await kvPut(KV, toKvRows(transaction)); + return { refetch: false }; + }, + }), +); + +function lunoraBetaRow(): AccountPrefRow | null { + return ( + accountPrefsCollection.toArray.find((r) => r.id === LUNORA_BETA_ROW_ID) ?? + null + ); +} + +function mirrorLunoraFlag(enabled: boolean) { + try { + window.localStorage.setItem(LUNORA_SYNC_FLAG_KEY, enabled ? "on" : "off"); + } catch { + // Private mode — reload still picks up URL-less default until next success. + } +} + +function writeLunoraBeta(enabled: boolean) { + const exists = accountPrefsCollection.toArray.some( + (r) => r.id === LUNORA_BETA_ROW_ID, + ); + if (exists) { + accountPrefsCollection.update( + LUNORA_BETA_ROW_ID, + (draft) => void (draft.enabled = enabled), + ); + } else { + accountPrefsCollection.insert({ id: LUNORA_BETA_ROW_ID, enabled }); + } +} + +/** Persist Lunora beta opt-in, mirror the runtime flag, and reload. */ +export function setLunoraBetaEnabled(enabled: boolean): void { + writeLunoraBeta(enabled); + mirrorLunoraFlag(enabled); + hardReset(window.location.pathname + window.location.search); +} + +// --- Reactive read ----------------------------------------------------------- + +const HIDDEN = { ready: false, enabled: false } as const; + +type LunoraBetaSnapshot = { ready: boolean; enabled: boolean }; + +let snapshot: LunoraBetaSnapshot = HIDDEN; +let collectionReady = false; +const listeners = new Set<() => void>(); +let started = false; + +function rebuild() { + const enabled = collectionReady ? (lunoraBetaRow()?.enabled ?? false) : false; + if (snapshot.ready === collectionReady && snapshot.enabled === enabled) + return; + snapshot = { ready: collectionReady, enabled }; + for (const l of listeners) l(); +} + +function ensureStarted() { + if (started || typeof window === "undefined") return; + started = true; + accountPrefsCollection.subscribeChanges(() => rebuild(), { + includeInitialState: true, + }); + void accountPrefsCollection + .toArrayWhenReady() + .then(() => { + collectionReady = true; + rebuild(); + maybeSyncLocalFlagFromAccount(); + }) + .catch(() => {}); +} + +function subscribe(cb: () => void): () => void { + ensureStarted(); + listeners.add(cb); + return () => { + listeners.delete(cb); + }; +} + +function getSnapshot(): LunoraBetaSnapshot { + ensureStarted(); + return snapshot; +} + +/** Synced Lunora beta preference. `enabled` is false until the kv row loads. */ +export function useLunoraBetaPref(): LunoraBetaSnapshot { + return useSyncExternalStore(subscribe, getSnapshot, () => HIDDEN); +} + +/** + * When account pref and localStorage disagree, mirror localStorage and reload + * once so `LunoraSyncHost` picks the synced value (multi-device opt-in). + */ +function maybeSyncLocalFlagFromAccount() { + if (typeof window === "undefined") return; + try { + if (sessionStorage.getItem(PREFS_RELOAD_GUARD)) return; + const q = new URLSearchParams(window.location.search).get("lunora-sync"); + if (q === "on" || q === "off" || q === "0" || q === "1") return; + + const synced = lunoraBetaRow()?.enabled === true; + const localOn = isLunoraSyncEnabled(); + if (synced === localOn) return; + + mirrorLunoraFlag(synced); + sessionStorage.setItem(PREFS_RELOAD_GUARD, "1"); + hardReset(window.location.pathname + window.location.search); + } catch { + // sessionStorage / localStorage unavailable — skip cross-device sync. + } +} + +/** Mount once inside AuthGate to start the pref subscription + sync pass. */ +export function AccountPrefsController() { + useLunoraBetaPref(); + return null; +} diff --git a/src/data/flags.test.ts b/src/data/flags.test.ts index 551a6300..d4d65df3 100644 --- a/src/data/flags.test.ts +++ b/src/data/flags.test.ts @@ -33,8 +33,8 @@ afterEach(() => { }); describe("isLunoraSyncEnabled", () => { - test("defaults ON", () => { - expect(isLunoraSyncEnabled()).toBe(true); + test("defaults OFF", () => { + expect(isLunoraSyncEnabled()).toBe(false); }); test("localStorage on enables", () => { diff --git a/src/data/flags.ts b/src/data/flags.ts index f908faf8..3ade304c 100644 --- a/src/data/flags.ts +++ b/src/data/flags.ts @@ -34,22 +34,21 @@ export function isMirrorsEnabled(): boolean { /** ADR 0055 Phase-2: outline sync via Lunora shapes/mutators instead of custom DO. */ export const LUNORA_SYNC_FLAG_KEY = "dotflowy:flag:lunora-sync"; -// Default ON — outline sync rides Lunora (ADR 0055). localStorage `"off"` or -// `?lunora-sync=off` is the rollback escape hatch (classic `/api/sync` path). -const LUNORA_SYNC_DEFAULT = true; +// Default OFF — Lunora is alpha; classic DO is production. Opt in via Settings +// (synced `account-prefs`) or localStorage / URL for e2e and local dogfood. +const LUNORA_SYNC_DEFAULT = false; /** * Whether outline sync rides Lunora (`/_lunora` + `@lunora/db`) instead of the - * custom `/api/sync` + `nodesCollection` path (ADR 0055). Default ON. + * custom `/api/sync` + `nodesCollection` path (ADR 0055). Default OFF. * - * Kill-switch pairing (ADR 0055): the browser reads this flag; Worker MCP reads - * `LUNORA_OUTLINE` (`isLunoraOutlineEnabled` in worker/lunora-mcp-store.ts). - * Flip BOTH together (`lunora-sync=off` AND `LUNORA_OUTLINE=0`) or MCP and the - * editor diverge on the same account. + * Kill-switch pairing (ADR 0055): the browser reads this flag (mirrored from + * synced `account-prefs` on load); Worker MCP reads env force then the same + * preference on classic DO. Flip env + client together when debugging divergence. * - * Disable: `localStorage.setItem("dotflowy:flag:lunora-sync", "off")` then reload, - * or open with `?lunora-sync=off` (URL wins for that load; does not persist). - * Enable: `"on"` in localStorage, or `?lunora-sync=on`. + * Enable: Settings beta toggle (persists + reload), `"on"` in localStorage, or + * `?lunora-sync=on`. Disable: Settings, `"off"` in localStorage, or + * `?lunora-sync=off` (URL wins for that load; does not persist). */ export function isLunoraSyncEnabled(): boolean { if (typeof window === "undefined") return LUNORA_SYNC_DEFAULT; diff --git a/src/routes/__root.tsx b/src/routes/__root.tsx index 999c3bae..dc702cef 100644 --- a/src/routes/__root.tsx +++ b/src/routes/__root.tsx @@ -29,6 +29,7 @@ import { TextSizeProvider } from "../components/text-size-provider"; import { ThemeProvider } from "../components/theme-provider"; import { Toaster } from "../components/ui/sonner"; import { UpdateAvailableToast } from "../components/update-available"; +import { AccountPrefsController } from "../data/account-prefs"; import { hardReset, useSession } from "../lib/auth-client"; import { FAVICON_DARK, FAVICON_LIGHT } from "../lib/favicon"; import { @@ -146,6 +147,7 @@ function RootComponent() { ) : ( + {/* ADR 0055: no-op when lunora-sync flag OFF (default). */} diff --git a/src/routes/settings.tsx b/src/routes/settings.tsx index 2b781ab1..f3cba266 100644 --- a/src/routes/settings.tsx +++ b/src/routes/settings.tsx @@ -23,6 +23,8 @@ import { openOpmlImport } from "../components/opml-import-opener"; import { useTextSize, type TextSize } from "../components/text-size-provider"; import { useTheme } from "../components/theme-provider"; import { Button } from "../components/ui/button"; +import { Switch } from "../components/ui/switch"; +import { setLunoraBetaEnabled, useLunoraBetaPref } from "../data/account-prefs"; import { localDateKey } from "../data/date-links"; import { downloadTextFile } from "../data/download"; import { outlineToMarkdown } from "../data/markdown"; @@ -736,6 +738,37 @@ function AppearanceSection() { ); } +function BetaSection() { + const { ready, enabled } = useLunoraBetaPref(); + return ( +
    + + + Try the experimental Lunora sync backend (alpha). Classic storage + remains the production default. May have bugs. Your choice syncs + across devices; turning it on or off reloads the app. + + } + action={ + setLunoraBetaEnabled(checked)} + aria-label="Lunora outline sync beta" + /> + } + /> + +
    + ); +} + function SettingsPage() { // One subscription fetch for the whole page; Plan & billing and the // Connections nudge both read it (no double request, no divergent state). @@ -774,6 +807,7 @@ function SettingsPage() { + diff --git a/worker/index.ts b/worker/index.ts index 982e2958..1da90566 100644 --- a/worker/index.ts +++ b/worker/index.ts @@ -65,7 +65,7 @@ import { import { lunoraApp, ShardDO, type LunoraEnv } from "./lunora-app"; import { createLunoraOutlineStore, - isLunoraOutlineEnabled, + isLunoraOutlineEnabledForUser, } from "./lunora-mcp-store"; import { handleMcp, mcpCorsPreflight } from "./mcp"; import { UserOutlineDO as BaseUserOutlineDO } from "./outline-do"; @@ -168,6 +168,7 @@ const KV_COLLECTIONS = new Set([ "daily-index", "changelog", "saved-queries", + "account-prefs", ]); /** @@ -985,14 +986,17 @@ function handleApiRequest( // (handleMcp), not a 500. An operator comps themselves with a manual // subscription row (getPlan treats it as paid). const mcpPlan = yield* Effect.promise(() => getPlan(token.userId, env)); - // LUNORA_OUTLINE unset → same shard as browser mutators (default ON). - // LUNORA_OUTLINE=0|false|off keeps classic UserOutlineDO.applyBatch - // (resolveUserId / owner→'default' bridge unchanged). - const mcpStore = isLunoraOutlineEnabled(env) + const classicStub = env.USER_OUTLINE.get( + env.USER_OUTLINE.idFromName(resolveUserId(token.userId, env)), + ); + const useLunora = yield* Effect.promise(() => + isLunoraOutlineEnabledForUser(env, () => + classicStub.getKv("account-prefs"), + ), + ); + const mcpStore = useLunora ? createLunoraOutlineStore(env, token.userId) - : env.USER_OUTLINE.get( - env.USER_OUTLINE.idFromName(resolveUserId(token.userId, env)), - ); + : classicStub; return yield* handleMcp(request, mcpStore, origin, mcpPlan !== "free"); } diff --git a/worker/lunora-mcp-store.test.ts b/worker/lunora-mcp-store.test.ts index d13cfa37..04cef392 100644 --- a/worker/lunora-mcp-store.test.ts +++ b/worker/lunora-mcp-store.test.ts @@ -1,18 +1,78 @@ import { describe, expect, test } from "bun:test"; -import { isLunoraOutlineEnabled } from "./lunora-mcp-store"; +import { + isLunoraOutlineEnabledForUser, + isLunoraOutlineEnabledSync, + parseLunoraBetaPref, + resolveLunoraOutlineEnvForce, +} from "./lunora-mcp-store"; -describe("isLunoraOutlineEnabled", () => { - test("default ON when unset", () => { - expect(isLunoraOutlineEnabled({})).toBe(true); - expect(isLunoraOutlineEnabled({ LUNORA_OUTLINE: "" })).toBe(true); - expect(isLunoraOutlineEnabled({ LUNORA_OUTLINE: "1" })).toBe(true); - expect(isLunoraOutlineEnabled({ LUNORA_OUTLINE: "true" })).toBe(true); +describe("resolveLunoraOutlineEnvForce", () => { + test("unset returns null", () => { + expect(resolveLunoraOutlineEnvForce({})).toBe(null); + expect(resolveLunoraOutlineEnvForce({ LUNORA_OUTLINE: "" })).toBe(null); }); - test("explicit off values disable", () => { - expect(isLunoraOutlineEnabled({ LUNORA_OUTLINE: "0" })).toBe(false); - expect(isLunoraOutlineEnabled({ LUNORA_OUTLINE: "false" })).toBe(false); - expect(isLunoraOutlineEnabled({ LUNORA_OUTLINE: "off" })).toBe(false); + test("explicit on values force ON", () => { + expect(resolveLunoraOutlineEnvForce({ LUNORA_OUTLINE: "1" })).toBe(true); + expect(resolveLunoraOutlineEnvForce({ LUNORA_OUTLINE: "true" })).toBe(true); + expect(resolveLunoraOutlineEnvForce({ LUNORA_OUTLINE: "on" })).toBe(true); + }); + + test("explicit off values force OFF", () => { + expect(resolveLunoraOutlineEnvForce({ LUNORA_OUTLINE: "0" })).toBe(false); + expect(resolveLunoraOutlineEnvForce({ LUNORA_OUTLINE: "false" })).toBe( + false, + ); + expect(resolveLunoraOutlineEnvForce({ LUNORA_OUTLINE: "off" })).toBe(false); + }); +}); + +describe("parseLunoraBetaPref", () => { + test("missing or disabled rows → false", () => { + expect(parseLunoraBetaPref([])).toBe(false); + expect(parseLunoraBetaPref([{ id: "lunora-beta", enabled: false }])).toBe( + false, + ); + expect(parseLunoraBetaPref([{ id: "other", enabled: true }])).toBe(false); + }); + + test("enabled row → true", () => { + expect(parseLunoraBetaPref([{ id: "lunora-beta", enabled: true }])).toBe( + true, + ); + }); +}); + +describe("isLunoraOutlineEnabledSync", () => { + test("unset env → false (classic default)", () => { + expect(isLunoraOutlineEnabledSync({})).toBe(false); + }); + + test("respects env force", () => { + expect(isLunoraOutlineEnabledSync({ LUNORA_OUTLINE: "1" })).toBe(true); + expect(isLunoraOutlineEnabledSync({ LUNORA_OUTLINE: "0" })).toBe(false); + }); +}); + +describe("isLunoraOutlineEnabledForUser", () => { + test("env force on skips preference lookup", async () => { + let called = false; + expect( + await isLunoraOutlineEnabledForUser({ LUNORA_OUTLINE: "1" }, async () => { + called = true; + return []; + }), + ).toBe(true); + expect(called).toBe(false); + }); + + test("unset env uses account pref", async () => { + expect( + await isLunoraOutlineEnabledForUser({}, async () => [ + { id: "lunora-beta", enabled: true }, + ]), + ).toBe(true); + expect(await isLunoraOutlineEnabledForUser({}, async () => [])).toBe(false); }); }); diff --git a/worker/lunora-mcp-store.ts b/worker/lunora-mcp-store.ts index 4c34a2b3..bae10133 100644 --- a/worker/lunora-mcp-store.ts +++ b/worker/lunora-mcp-store.ts @@ -151,21 +151,57 @@ export function createLunoraOutlineStore( }; } +export type LunoraOutlineEnv = { LUNORA_OUTLINE?: string }; + +export const LUNORA_BETA_PREF_ID = "lunora-beta"; + +/** Env force: ON, OFF, or unset (use synced account preference). */ +export function resolveLunoraOutlineEnvForce( + env: LunoraOutlineEnv, +): boolean | null { + const raw = env.LUNORA_OUTLINE?.trim().toLowerCase(); + if (!raw) return null; + if (raw === "0" || raw === "false" || raw === "off") return false; + if (raw === "1" || raw === "true" || raw === "on") return true; + return false; +} + +/** Parse synced `account-prefs` rows for Lunora beta opt-in. */ +export function parseLunoraBetaPref(rows: unknown[]): boolean { + const row = rows.find( + (r) => + r && + typeof r === "object" && + (r as { id?: string }).id === LUNORA_BETA_PREF_ID, + ) as { enabled?: unknown } | undefined; + return row?.enabled === true; +} + /** - * True when Worker MCP should use the Lunora shard (default ON when unset). + * Sync helper: env force only. Unset env → false (classic DO default). + * MCP uses {@link isLunoraOutlineEnabledForUser} for preference lookup. + */ +export function isLunoraOutlineEnabledSync(env: LunoraOutlineEnv): boolean { + const forced = resolveLunoraOutlineEnvForce(env); + if (forced !== null) return forced; + return false; +} + +/** + * Whether Worker MCP should use the Lunora shard for this user. * - * Kill-switch pairing (ADR 0055): MCP reads this env var; the browser reads - * `isLunoraSyncEnabled()` (`dotflowy:flag:lunora-sync` / `?lunora-sync=`). - * Flip BOTH together (`LUNORA_OUTLINE=0` AND client `lunora-sync=off`) or MCP - * and the editor diverge on the same account. + * Kill-switch pairing (ADR 0055): env force first; else synced + * `account-prefs` on classic DO; browser reads mirrored localStorage after + * {@link AccountPrefsController} sync. */ -export function isLunoraOutlineEnabled(env: { - LUNORA_OUTLINE?: string; -}): boolean { - const raw = env.LUNORA_OUTLINE?.trim().toLowerCase(); - if (!raw) return true; - if (raw === "0" || raw === "false" || raw === "off") return false; - return true; +export async function isLunoraOutlineEnabledForUser( + env: LunoraOutlineEnv, + getAccountPrefs: () => Promise, +): Promise { + const forced = resolveLunoraOutlineEnvForce(env); + if (forced !== null) return forced; + const rows = await getAccountPrefs(); + return parseLunoraBetaPref(rows); } /** Permanently erase this user's Lunora shard — account deletion (ADR 0051). */ From 854282f725f0aeb9ebe3dfd690c94ba3cfc8d1a2 Mon Sep 17 00:00:00 2001 From: Cameron Pak Date: Fri, 24 Jul 2026 08:00:53 -0500 Subject: [PATCH 52/59] fix(lunora): hold typed text across missed shape pokes Stamp TanStack direct-tx metadata and wait on shape-first checkpoints so the 3s fallback no longer reverts keystrokes. Also hardens kv natural keys, beta Settings copy, More menu actions-first with Copy as Markdown, and cf:dev jsxDEV. Co-authored-by: Cursor --- AGENTS.md | 3 +- e2e/fixtures.ts | 34 ++++++-- e2e/lunora-optimistic-hold.spec.ts | 50 ++++++++++++ e2e/lunora-save-failure.spec.ts | 56 +++++++++++++ lunora/mutators.ts | 93 +++++++++++++--------- lunora/schema.ts | 15 ++-- scripts/react-jsx-dev-runtime-shim.ts | 23 ++++++ src/components/OutlineEditor.tsx | 9 ++- src/components/OutlineRow.tsx | 11 +-- src/components/header-more-menu.tsx | 109 +++++++++----------------- src/data/lunora-checkpoints.test.ts | 109 ++++++++++++++++++++++++++ src/data/lunora-checkpoints.ts | 97 +++++++++++++++++++++++ src/data/lunora-kv-store.ts | 2 +- src/data/lunora-outline-store.ts | 54 ++++++++++--- src/data/lunora-sync.ts | 11 +++ src/data/node-count.ts | 47 ++++++----- src/routes/settings.tsx | 13 +-- vite.config.ts | 6 ++ 18 files changed, 574 insertions(+), 168 deletions(-) create mode 100644 e2e/lunora-optimistic-hold.spec.ts create mode 100644 e2e/lunora-save-failure.spec.ts create mode 100644 scripts/react-jsx-dev-runtime-shim.ts create mode 100644 src/data/lunora-checkpoints.test.ts create mode 100644 src/data/lunora-checkpoints.ts diff --git a/AGENTS.md b/AGENTS.md index 2b0c1f8b..a84bc960 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -550,9 +550,10 @@ Screenshots **cannot capture view-transition overlays** (they show the settled D - Prefer deepening Effect TS and XState usage where they fit. - In Cursor, prefer Cursor Auto or Cursor Grok 4.5 for implementation subagents. - Lunora sync must stay opt-in (user-facing beta/settings flag); do not force a production cutover while Lunora is alpha. +- User-facing Settings/beta copy must not name Lunora — frame it as an upgraded/experimental sync option users can try (helps improve Dotflowy; they still own their data). ## Learned Workspace Facts - Marketing site lives in the separate `landing/` package (`dotflowy-landing`) at dotflowy.com; the app SPA is at app.dotflowy.com. -- Lunora (`anolilab/lunora`) is the experimental outline-sync path behind client `dotflowy:flag:lunora-sync` and Worker `LUNORA_OUTLINE`; classic per-user DO remains the default. +- Lunora (`anolilab/lunora`) is the experimental outline-sync path behind synced `account-prefs`/`lunora-beta` (mirrors localStorage `dotflowy:flag:lunora-sync`) and Worker `LUNORA_OUTLINE`; classic per-user DO remains the default. - Vite proxies for `/api` and `/_lunora` need explicit `ws: true` — string shorthand does not upgrade WebSockets and blocks Lunora dogfood on "Loading outline". diff --git a/e2e/fixtures.ts b/e2e/fixtures.ts index 13e5ee22..f494542d 100644 --- a/e2e/fixtures.ts +++ b/e2e/fixtures.ts @@ -160,7 +160,9 @@ function toNode(n: SeedNode): ApiNode { * `dotflowy:flag:lunora-sync=off` so specs stay on `/api/sync` even though * the product default is ON. Classic-only opts (`echoDelayMs`, `echoChunks`, * `postDelayMs`, `failStructuralWrites`, `serverVersion`) are ignored on the - * Lunora path — those specs stay classic-only. + * Lunora path — those specs stay classic-only. Lunora-only opts + * (`suppressWholeOutlinePoke`, `failMutatorWrites`) live on + * `seedOutlineLunora` directly. */ export async function seedOutline( page: Page, @@ -528,6 +530,17 @@ export async function seedOutlineLunora( /** Pre-seed Lunora kv shapes from classic kv collection names * (`daily-index` / `tag-colors` / `saved-queries`). */ kv?: Record; + /** + * Skip post-mutation `wholeOutline` WS pokes (RPC still mutates the mock + * store). Reproduces a missed shape poke so the client hits the ~3s + * checkpoint fallback — pins the sticky-optimistic typing fix. + */ + suppressWholeOutlinePoke?: boolean; + /** + * Fail every `mutators:*` RPC with 500 before mutating the store — + * Lunora twin of classic `failStructuralWrites` (save-failure rollback). + */ + failMutatorWrites?: boolean; } = {}, ): Promise { // Drop prior Lunora mocks from earlier tests on this page — stacked @@ -734,8 +747,14 @@ export async function seedOutlineLunora( const seq = seqHeader ? Number(seqHeader) : ++clientSeq; if (Number.isFinite(seq)) clientSeq = Math.max(clientSeq, seq); + if (opts.failMutatorWrites && path.startsWith("mutators:")) { + return route.fulfill({ status: 500, body: "mutator failed" }); + } + let result: unknown = {}; - let pokeShapes = new Set(["wholeOutline"]); + let pokeShapes = new Set( + opts.suppressWholeOutlinePoke ? [] : ["wholeOutline"], + ); const id = () => String(args.id ?? ""); const updatedAt = () => Number(args.updatedAt ?? Date.now()); @@ -1028,11 +1047,16 @@ export async function seedOutlineLunora( // Watermark is per-client on the shard (wholeOutline checkpoints gate // isPersisted). Kv-only mutators must still advance wholeOutline or - // claimDailyMapping / materializeDailyNodes hang awaiting the poke. - pokeShapes.add("wholeOutline"); + // claimDailyMapping / materializeDailyNodes hang awaiting the poke — + // unless a spec opts into `suppressWholeOutlinePoke` (missed-poke case). + if (!opts.suppressWholeOutlinePoke) { + pokeShapes.add("wholeOutline"); + } else { + pokeShapes.delete("wholeOutline"); + } await reply(route, { result, lastMutationId: seq }); - pokeSubscribed(seq, pokeShapes); + if (pokeShapes.size > 0) pokeSubscribed(seq, pokeShapes); }, ); diff --git a/e2e/lunora-optimistic-hold.spec.ts b/e2e/lunora-optimistic-hold.spec.ts new file mode 100644 index 00000000..a5981f1c --- /dev/null +++ b/e2e/lunora-optimistic-hold.spec.ts @@ -0,0 +1,50 @@ +import { expect, test, type Page } from "@playwright/test"; + +import { seedOutlineLunora, type SeedNode } from "./fixtures"; + +/** + * Pins the Lunora sticky-optimistic typing fix: when a `wholeOutline` shape + * poke is missed, the ~3s checkpoint fallback must NOT drop typed text + * (Settings → back used to look empty until hard refresh). + * + * Run: `bunx playwright test e2e/lunora-optimistic-hold.spec.ts` + */ + +const text = (page: Page, id: string) => + page.locator(`li[data-node-id="${id}"] > .outline-row .node-text`); + +const TREE: SeedNode[] = [ + { id: "hold", parentId: null, prevSiblingId: null, text: "HoldBase" }, +]; + +test.describe("Lunora optimistic hold (missed shape poke)", () => { + test("typed text survives 3s fallback and Settings round-trip", async ({ + page, + }) => { + await seedOutlineLunora(page, TREE, { suppressWholeOutlinePoke: true }); + await page.goto("/"); + await expect(text(page, "hold")).toBeVisible({ timeout: 15_000 }); + await expect(text(page, "hold")).toHaveText("HoldBase"); + + await text(page, "hold").click(); + await page.keyboard.type("X"); + await expect(text(page, "hold")).toHaveText("HoldBaseX"); + + // Past SHAPE_CHECKPOINT_FALLBACK_MS — without sticky-direct the overlay + // would revert to HoldBase here. + await expect(text(page, "hold")).toHaveText("HoldBaseX", { + timeout: 5_000, + }); + await page.waitForTimeout(3_500); + await expect(text(page, "hold")).toHaveText("HoldBaseX"); + + // SPA remount of the outline (the surface that made the bug obvious). + await page.goto("/settings"); + await expect(page.getByRole("heading", { name: "Settings" })).toBeVisible({ + timeout: 10_000, + }); + await page.goto("/"); + await expect(text(page, "hold")).toBeVisible({ timeout: 15_000 }); + await expect(text(page, "hold")).toHaveText("HoldBaseX"); + }); +}); diff --git a/e2e/lunora-save-failure.spec.ts b/e2e/lunora-save-failure.spec.ts new file mode 100644 index 00000000..456291c6 --- /dev/null +++ b/e2e/lunora-save-failure.spec.ts @@ -0,0 +1,56 @@ +import { expect, test, type Page } from "@playwright/test"; + +import { seedOutlineLunora, STANDARD_TREE } from "./fixtures"; + +/** + * Lunora twin of `save-failure.spec.ts`: a failed mutator RPC must toast and + * roll back optimistic UI — sticky `__tanstack_db_direct` must not keep a + * rejected edit forever. + * + * Run: `bunx playwright test e2e/lunora-save-failure.spec.ts` + */ + +const text = (page: Page, id: string) => + page.locator(`li[data-node-id="${id}"] > .outline-row .node-text`); + +const orderedTexts = (page: Page) => + page.locator(".outline-row .node-text").allTextContents(); + +const saveFailedToast = (page: Page) => + page.locator("[data-sonner-toast]", { + hasText: "Couldn't save your changes", + }); + +async function caretAtEnd(page: Page, id: string) { + const el = text(page, id); + await el.click(); + await el.evaluate((node) => { + const sel = window.getSelection(); + if (!sel) return; + const range = document.createRange(); + range.selectNodeContents(node); + range.collapse(false); + sel.removeAllRanges(); + sel.addRange(range); + }); +} + +test.describe("Lunora save failure rolls back optimistic edits", () => { + test("a failed structural mutator toasts and reverts the optimistic bullet", async ({ + page, + }) => { + await seedOutlineLunora(page, STANDARD_TREE, { failMutatorWrites: true }); + await page.goto("/"); + await expect(text(page, "alpha")).toBeVisible({ timeout: 15_000 }); + + const before = await orderedTexts(page); + + await caretAtEnd(page, "alpha"); + await page.keyboard.press("Enter"); + + await expect(saveFailedToast(page)).toBeVisible({ timeout: 10_000 }); + await expect + .poll(() => orderedTexts(page), { timeout: 10_000 }) + .toEqual(before); + }); +}); diff --git a/lunora/mutators.ts b/lunora/mutators.ts index 59bb3604..0b1581fd 100644 --- a/lunora/mutators.ts +++ b/lunora/mutators.ts @@ -76,6 +76,31 @@ function assertOwner(ctx: MutatorCtx, userId: string): void { } } +/** + * Lunora `clientId` must be a UUID — daily keys (`container`, `YYYY-MM-DD`) and + * tag names are not. Look up side-collection rows by their natural key index + * and let insert assign a server UUID `_id`. + */ +async function getDailyByKey( + ctx: MutatorCtx, + key: string, +): Promise<(Record & { _id: string }) | null> { + return ctx.db + .query("dailyIndex") + .withIndex("by_key", (q) => q.eq("key", key)) + .first(); +} + +async function getTagColorByTag( + ctx: MutatorCtx, + tag: string, +): Promise<(Record & { _id: string }) | null> { + return ctx.db + .query("tagColors") + .withIndex("by_tag", (q) => q.eq("tag", tag)) + .first(); +} + async function commitPlan(ctx: MutatorCtx, plan: OutlinePlan): Promise { // deletes → patches → inserts: restore-safe (a deleted id must be gone // before a same-batch insert could reclaim it) and fine for structural ops. @@ -664,7 +689,7 @@ export const materializeDailyNodes = defineMutator({ // --- Phase 2b side-collections (tagColors + savedQueries) ------------------- -/** Upsert a tag color. `tag` is the clientId / `_id`. */ +/** Upsert a tag color. Natural key = `tag` (index `by_tag`); `_id` is a UUID. */ export const upsertTagColor = defineMutator({ args: { userId: userIdArg, @@ -674,17 +699,18 @@ export const upsertTagColor = defineMutator({ server: async (ctx, args) => { const mctx = ctx as unknown as MutatorCtx; assertOwner(mctx, args.userId); - const existing = await mctx.db.get(args.tag as Id<"tagColors">); + const existing = await getTagColorByTag(mctx, args.tag); if (existing) { - await mctx.db.patch(args.tag as Id<"tagColors">, { + await mctx.db.patch(existing._id as Id<"tagColors">, { color: args.color, }); } else { - await mctx.db.insert( - "tagColors", - { tag: args.tag, color: args.color, userId: args.userId }, - { clientId: args.tag }, - ); + // No clientId: tag names aren't UUIDs (Lunora requires UUID clientIds). + await mctx.db.insert("tagColors", { + tag: args.tag, + color: args.color, + userId: args.userId, + }); } }, }); @@ -694,8 +720,8 @@ export const deleteTagColor = defineMutator({ server: async (ctx, args) => { const mctx = ctx as unknown as MutatorCtx; assertOwner(mctx, args.userId); - const existing = await mctx.db.get(args.tag as Id<"tagColors">); - if (existing) await mctx.db.delete(args.tag as Id<"tagColors">); + const existing = await getTagColorByTag(mctx, args.tag); + if (existing) await mctx.db.delete(existing._id as Id<"tagColors">); }, }); @@ -768,7 +794,8 @@ export const deleteSavedQuery = defineMutator({ /** * Atomic get-or-create of a `key → nodeId` mapping. Pre-existing wins; returns * `{ nodeId, won }` so the client knows whether to materialize the node. - * `_id` = `key` via clientId (same as tagColors). + * Natural key = `key` (index `by_key`); `_id` is a server UUID (keys like + * `container` / `YYYY-MM-DD` are not valid Lunora clientIds). */ export const claimDailyMapping = defineMutator({ args: { @@ -780,27 +807,23 @@ export const claimDailyMapping = defineMutator({ server: async (ctx, args) => { const mctx = ctx as unknown as MutatorCtx; assertOwner(mctx, args.userId); - const existing = await mctx.db.get(args.key as Id<"dailyIndex">); + const existing = await getDailyByKey(mctx, args.key); const existingNodeId = existing && typeof existing.nodeId === "string" ? existing.nodeId : null; const { winner, won } = resolveDailyClaim(existingNodeId, args.nodeId); if (existing) { // Always write (touchedAt) so the watermark poke fires even on a lost race. - await mctx.db.patch(args.key as Id<"dailyIndex">, { + await mctx.db.patch(existing._id as Id<"dailyIndex">, { nodeId: winner, touchedAt: args.touchedAt, }); } else { - await mctx.db.insert( - "dailyIndex", - { - key: args.key, - nodeId: winner, - touchedAt: args.touchedAt, - userId: args.userId, - }, - { clientId: args.key }, - ); + await mctx.db.insert("dailyIndex", { + key: args.key, + nodeId: winner, + touchedAt: args.touchedAt, + userId: args.userId, + }); } return { nodeId: winner, won }; }, @@ -817,23 +840,19 @@ export const upsertDailyMapping = defineMutator({ server: async (ctx, args) => { const mctx = ctx as unknown as MutatorCtx; assertOwner(mctx, args.userId); - const existing = await mctx.db.get(args.key as Id<"dailyIndex">); + const existing = await getDailyByKey(mctx, args.key); if (existing) { - await mctx.db.patch(args.key as Id<"dailyIndex">, { + await mctx.db.patch(existing._id as Id<"dailyIndex">, { nodeId: args.nodeId, touchedAt: args.touchedAt, }); } else { - await mctx.db.insert( - "dailyIndex", - { - key: args.key, - nodeId: args.nodeId, - touchedAt: args.touchedAt, - userId: args.userId, - }, - { clientId: args.key }, - ); + await mctx.db.insert("dailyIndex", { + key: args.key, + nodeId: args.nodeId, + touchedAt: args.touchedAt, + userId: args.userId, + }); } }, }); @@ -843,7 +862,7 @@ export const deleteDailyMapping = defineMutator({ server: async (ctx, args) => { const mctx = ctx as unknown as MutatorCtx; assertOwner(mctx, args.userId); - const existing = await mctx.db.get(args.key as Id<"dailyIndex">); - if (existing) await mctx.db.delete(args.key as Id<"dailyIndex">); + const existing = await getDailyByKey(mctx, args.key); + if (existing) await mctx.db.delete(existing._id as Id<"dailyIndex">); }, }); diff --git a/lunora/schema.ts b/lunora/schema.ts index a529959b..8258af31 100644 --- a/lunora/schema.ts +++ b/lunora/schema.ts @@ -29,7 +29,10 @@ export default defineSchema({ .shardBy("userId") .index("by_parent", ["parentId"]), - /** Custom tag colors (ADR 0007). `_id` = normalized tag via clientId. */ + /** + * Custom tag colors (ADR 0007). Natural key = `tag` (`by_tag`); `_id` is a + * server UUID (tag names aren't valid Lunora clientIds). + */ tagColors: defineTable({ tag: v.string(), color: v.string(), @@ -38,7 +41,7 @@ export default defineSchema({ .shardBy("userId") .index("by_tag", ["tag"]), - /** Saved filter queries (ADR 0048). `_id` = row id via clientId. */ + /** Saved filter queries (ADR 0048). `_id` = row id via clientId (UUID). */ savedQueries: defineTable({ name: v.string(), query: v.string(), @@ -47,10 +50,10 @@ export default defineSchema({ }).shardBy("userId"), /** - * Daily scaffold identity (ADR 0052). `_id` = key via clientId - * (`container` / `YYYY` / `YYYY-MM` / `YYYY-Www` / `YYYY-MM-DD`). - * `touchedAt` bumps on every claim so a lost-race claim still emits a - * poke (watermark hold needs a write). + * Daily scaffold identity (ADR 0052). Natural key = `key` (`by_key`) — + * `container` / `YYYY` / `YYYY-MM` / `YYYY-Www` / `YYYY-MM-DD`. `_id` is a + * server UUID (those keys aren't valid Lunora clientIds). `touchedAt` bumps + * on every claim so a lost-race claim still emits a poke (watermark hold). */ dailyIndex: defineTable({ key: v.string(), diff --git a/scripts/react-jsx-dev-runtime-shim.ts b/scripts/react-jsx-dev-runtime-shim.ts new file mode 100644 index 00000000..2a437987 --- /dev/null +++ b/scripts/react-jsx-dev-runtime-shim.ts @@ -0,0 +1,23 @@ +/** + * Production-safe `react/jsx-dev-runtime` shim. + * + * `@lunora/react` publishes packem output that imports `jsxDEV` from + * `react/jsx-dev-runtime`. Vite's production React resolve replaces that + * module with `{ jsxDEV: undefined }`, so `LunoraProvider` (and anything + * else from the package) crashes with "jsxDEV is not a function" under + * `cf:dev` / `build:cf`. Dev (`bun run dev`) keeps a real jsxDEV and is fine. + * + * Aliased from `vite.config.ts` — map jsxDEV onto production jsx/jsxs. + */ +import { Fragment, jsx, jsxs } from "react/jsx-runtime"; + +export { Fragment }; + +export function jsxDEV( + type: Parameters[0], + props: Parameters[1], + key?: Parameters[2], + isStaticChildren?: boolean, +) { + return isStaticChildren ? jsxs(type, props!, key) : jsx(type, props!, key); +} diff --git a/src/components/OutlineEditor.tsx b/src/components/OutlineEditor.tsx index 6fb24cae..3686fda3 100644 --- a/src/components/OutlineEditor.tsx +++ b/src/components/OutlineEditor.tsx @@ -31,7 +31,7 @@ import { toast } from "sonner"; import type { PluginContext, SlotSpec, ViewContext } from "../plugins/types"; import type { NodeCommands } from "./node-commands"; -import { nodesCollection } from "../data/collection"; +import { echoedTextFor, nodesCollection } from "../data/collection"; import { setNodeActionBridge } from "../data/command-bridge"; import { isMirrorsEnabled } from "../data/flags"; import { focusKeyFor } from "../data/focus-key"; @@ -1862,6 +1862,13 @@ function ZoomedTitle({ const el = ref.current; if (!el || composingRef.current) return; if (syncedRef.current === node.text) return; + // Same focused-skip as OutlineRow: don't paint a lagging/stale store over + // local typing (classic echoedText + Lunora overlay gap). + if (document.activeElement === el) { + if (echoedTextFor(node.id) === node.text) return; + const dom = readSource(el); + if (dom !== node.text && dom.startsWith(node.text)) return; + } const focused = document.activeElement === el; const revealOffset = focused ? getCaretOffset(el) : null; decorate(el, node.text, revealOffset, focused); diff --git a/src/components/OutlineRow.tsx b/src/components/OutlineRow.tsx index f04e3a4a..0645606a 100644 --- a/src/components/OutlineRow.tsx +++ b/src/components/OutlineRow.tsx @@ -321,15 +321,16 @@ function RowChrome({ // that merely echoes the network back is a lagging/out-of-order echo of our // own keystrokes -- repainting it scrambles characters and jumps the caret // mid-type, so it's skipped; blur reconciles. See collection.ts `echoedText`. + // Lunora: optimistic overlay can briefly drop to a stale synced snapshot + // before the shape row lands — treat DOM-ahead-of-store the same as an echo. useEffect(() => { const el = textRef.current; if (!el || composingRef.current) return; if (syncedRef.current === content.text) return; - if ( - document.activeElement === el && - echoedTextFor(content.id) === content.text - ) { - return; + if (document.activeElement === el) { + if (echoedTextFor(content.id) === content.text) return; + const dom = readSource(el); + if (dom !== content.text && dom.startsWith(content.text)) return; } const focused = document.activeElement === el; const revealOffset = focused ? getCaretOffset(el) : null; diff --git a/src/components/header-more-menu.tsx b/src/components/header-more-menu.tsx index aa20c923..13926316 100644 --- a/src/components/header-more-menu.tsx +++ b/src/components/header-more-menu.tsx @@ -3,6 +3,7 @@ import { ChevronsDownUpIcon, ChevronsUpDownIcon, CircleCheckIcon, + ClipboardCopyIcon, FileTextIcon, FocusIcon, LogOutIcon, @@ -18,11 +19,8 @@ import { useUnseenReleaseCount } from "../data/changelog-cursor"; import { localDateKey } from "../data/date-links"; import { downloadTextFile } from "../data/download"; import { openFeedbackReport } from "../data/feedback"; -import { isLunoraSyncEnabled } from "../data/flags"; import { capture } from "../data/history"; import { flattenInline } from "../data/inline-text"; -import { migrateClassicToLunora } from "../data/lunora-migrate"; -import { getLunoraOutlineContext } from "../data/lunora-sync"; import { outlineToMarkdown } from "../data/markdown"; import { toggleCollapsed } from "../data/mutations"; import { exportOpml } from "../data/opml-export"; @@ -44,34 +42,6 @@ import { DropdownMenuTrigger, } from "./ui/dropdown-menu"; -async function runMigrateToLunora() { - const lunora = getLunoraOutlineContext(); - if (!lunora) { - toast.error("Turn on Lunora beta in Settings, then reload"); - return; - } - const result = await migrateClassicToLunora(lunora.store, lunora.userId); - switch (result.status) { - case "migrated": - toast.success( - `Migrated ${result.nodes} nodes (+ ${result.kv} kv) to Lunora`, - ); - break; - case "skipped-nonempty": - toast.message( - `Lunora already has ${result.nodes} nodes — skipped (safe default)`, - ); - break; - case "skipped-empty-source": - toast.message("Classic outline is empty — nothing to migrate"); - break; - case "failed": - toast.error("Migrate failed — see console"); - console.error("[lunora-migrate]", result.error); - break; - } -} - /** * GitHub's brand glyph (Simple Icons). lucide-react dropped its Github icon, so * we inline the mark here -- fill-based (not lucide's stroke), currentColor, and @@ -201,12 +171,11 @@ export function setViewCollapsed(collapsed: boolean) { /** * Header overflow ("More") menu. Since #171 the plan/billing, account (Connect - * Google, Delete account), connections (MCP), data (import/export/copy), and + * Google, Delete account), connections (MCP), data (import/export), and * appearance (theme, text size) controls all live on the dedicated `/settings` - * page -- so this menu is now just the outline-view actions (collapse/expand, - * show completed, spotlight), the read-only links (What's new, Report a bug, - * GitHub), and the two entry points that belong on every screen: Settings (top) - * and Sign out (bottom). + * page -- so this menu is outline-view actions first (copy, collapse/expand, + * show completed, spotlight), then read-only links (What's new, Report a bug, + * GitHub, legal) + Settings, with Sign out last. * * This is the static v1 of the header-action overflow: the pinned/overflow * split is a fixed default. User-customizable pinning (Chrome-extension style) @@ -246,6 +215,39 @@ export function HeaderMoreMenu() { } /> + void copyOutlineAsMarkdown()}> + + Copy as Markdown + + + setViewCollapsed(true)}> + + Collapse all + + + setViewCollapsed(false)}> + + Expand all + + + + + Show completed + + + + + Spotlight mode + + + + void navigate({ to: "/settings" })}> Settings @@ -311,41 +313,6 @@ export function HeaderMoreMenu() { - setViewCollapsed(true)}> - - Collapse all - - - setViewCollapsed(false)}> - - Expand all - - - - - Show completed - - - - - Spotlight mode - - - {isLunoraSyncEnabled() && ( - void runMigrateToLunora()}> - - Migrate to Lunora - - )} - - - signOutAndReload()} diff --git a/src/data/lunora-checkpoints.test.ts b/src/data/lunora-checkpoints.test.ts new file mode 100644 index 00000000..96eb408c --- /dev/null +++ b/src/data/lunora-checkpoints.test.ts @@ -0,0 +1,109 @@ +import { describe, expect, test } from "bun:test"; + +import { + DIRECT_TRANSACTION_METADATA_KEY, + SHAPE_CHECKPOINT_FALLBACK_MS, + shapeFirstCheckpoints, + withDirectOptimisticMetadata, + type CheckpointRegistry, +} from "./lunora-checkpoints"; + +function deferred() { + let resolve!: () => void; + const promise = new Promise((r) => { + resolve = r; + }); + return { promise, resolve }; +} + +function makeShapeGate(): CheckpointRegistry & { + pending: Map>; +} { + const pending = new Map>(); + return { + pending, + awaitCheckpoint: async () => undefined, + resolve: (watermark) => { + const id = watermark.mutationId; + if (id == null) return; + const d = pending.get(id); + if (d) { + pending.delete(id); + d.resolve(); + } + }, + awaitMutationId: (id) => { + let d = pending.get(id); + if (!d) { + d = deferred(); + pending.set(id, d); + } + return d.promise; + }, + }; +} + +describe("withDirectOptimisticMetadata", () => { + test("stamps __tanstack_db_direct without dropping serverRef", () => { + const raw = { + setText: (_args: never) => ({ + metadata: { serverRef: "mutators:setText" } as Record, + }), + }; + const bound = withDirectOptimisticMetadata(raw); + const tx = bound.setText({} as never); + expect(tx.metadata.serverRef).toBe("mutators:setText"); + expect(tx.metadata[DIRECT_TRANSACTION_METADATA_KEY]).toBe(true); + }); +}); + +describe("shapeFirstCheckpoints", () => { + test("resolves when the shape poke arrives (no fallback)", async () => { + const shape = makeShapeGate(); + const client = { confirmedMutationWatermark: () => 0 }; + const gate = shapeFirstCheckpoints(client, "u1", shape, { + fallbackMs: 5_000, + }); + + const wait = gate.awaitMutationId(1); + let done = false; + void wait.then(() => { + done = true; + }); + + await new Promise((r) => setTimeout(r, 30)); + expect(done).toBe(false); + + shape.resolve({ mutationId: 1 }); + await wait; + expect(done).toBe(true); + }); + + test("falls back after RPC watermark when shape never pokes", async () => { + const shape = makeShapeGate(); + let watermark = 0; + const client = { + confirmedMutationWatermark: () => watermark, + }; + const gate = shapeFirstCheckpoints(client, "u1", shape, { + fallbackMs: 40, + }); + + const wait = gate.awaitMutationId(7); + // Watermark still behind — fallback must not arm yet. + await new Promise((r) => setTimeout(r, 80)); + let settled = false; + void wait.then(() => { + settled = true; + }); + expect(settled).toBe(false); + + watermark = 7; + await wait; + expect(settled).toBe(true); + }); + + test("default fallback window is 3s", () => { + expect(SHAPE_CHECKPOINT_FALLBACK_MS).toBe(3000); + }); +}); diff --git a/src/data/lunora-checkpoints.ts b/src/data/lunora-checkpoints.ts new file mode 100644 index 00000000..94788310 --- /dev/null +++ b/src/data/lunora-checkpoints.ts @@ -0,0 +1,97 @@ +/** + * Lunora mutator checkpoint + optimistic-hold helpers (ADR 0055). + * + * Kept dependency-light so unit tests can pin the overlay/fallback policy + * without standing up a full outline store. + */ + +import type { lunoraCollectionOptions } from "@lunora/db"; +import type { LunoraClient } from "lunorash/client"; + +export type CheckpointRegistry = ReturnType< + typeof lunoraCollectionOptions +>["checkpoints"]; + +/** + * TanStack DB's "direct" transaction flag (same key `collection.insert`/ + * `update` stamp). Completing `mutationFn` with no pending shape sync drops + * optimistic rows as "stale" unless this is set — our checkpoint fallback + * then reverts typed text to the old synced value. + * + * String literal on purpose: `@tanstack/db` doesn't re-export the constant + * from its package root (lives under `collection/transaction-metadata`). + */ +export const DIRECT_TRANSACTION_METADATA_KEY = "__tanstack_db_direct"; + +/** Stamp TanStack's direct-tx flag before `mutationFn` settles. */ +export function withDirectOptimisticMetadata< + M extends Record< + string, + (args: never) => { metadata: Record } + >, +>(mutators: M): M { + const bound = {} as M; + for (const name of Object.keys(mutators) as Array) { + const run = mutators[name]!; + bound[name] = ((args: never) => { + const tx = run(args); + tx.metadata[DIRECT_TRANSACTION_METADATA_KEY] = true; + return tx; + }) as M[typeof name]; + } + return bound; +} + +/** + * Hold optimistic overlays until the shape poke lands — NOT until RPC ack. + * + * Short-circuiting on `confirmedMutationWatermark` (RPC ack) drops the + * overlay before `wholeOutline` has the new row. Always wait on the shape + * gate first; if a poke is missed, fall back after the RPC ack so Today + * can't hang forever. Paired with `withDirectOptimisticMetadata` so the + * fallback doesn't revert typed text. + */ +export const SHAPE_CHECKPOINT_FALLBACK_MS = 3000; + +export type ShapeFirstCheckpointsOpts = { + /** Override for unit tests (default {@link SHAPE_CHECKPOINT_FALLBACK_MS}). */ + fallbackMs?: number; +}; + +export function shapeFirstCheckpoints( + client: Pick, + shardKey: string, + shape: CheckpointRegistry, + opts: ShapeFirstCheckpointsOpts = {}, +): CheckpointRegistry { + const fallbackMs = opts.fallbackMs ?? SHAPE_CHECKPOINT_FALLBACK_MS; + return { + awaitCheckpoint: (cursor) => shape.awaitCheckpoint(cursor), + resolve: (watermark) => shape.resolve(watermark), + awaitMutationId: (id) => { + let settled = false; + return new Promise((resolve) => { + const finish = () => { + if (settled) return; + settled = true; + resolve(); + }; + void shape.awaitMutationId(id).then(finish); + + const armFallback = () => { + if (settled) return; + if (id > client.confirmedMutationWatermark(shardKey)) { + setTimeout(armFallback, 50); + return; + } + setTimeout(() => { + if (settled) return; + shape.resolve({ mutationId: id }); + finish(); + }, fallbackMs); + }; + armFallback(); + }); + }, + }; +} diff --git a/src/data/lunora-kv-store.ts b/src/data/lunora-kv-store.ts index 30c836ea..23957733 100644 --- a/src/data/lunora-kv-store.ts +++ b/src/data/lunora-kv-store.ts @@ -21,7 +21,7 @@ export type SavedQueryRowDoc = { _creationTime?: number; } & Record; -/** Daily scaffold key → nodeId (ADR 0052). `_id` = key. */ +/** Daily scaffold key → nodeId (ADR 0052). Collection getKey = `key`. */ export type DailyIndexRowDoc = { _id: string; key: string; diff --git a/src/data/lunora-outline-store.ts b/src/data/lunora-outline-store.ts index e9e0b3db..a9a17f90 100644 --- a/src/data/lunora-outline-store.ts +++ b/src/data/lunora-outline-store.ts @@ -16,6 +16,11 @@ import type { TagColorRowDoc, } from "./lunora-kv-store"; +import { + shapeFirstCheckpoints, + withDirectOptimisticMetadata, + type CheckpointRegistry, +} from "./lunora-checkpoints"; import { buildTreeIndex, nodeToRow, @@ -48,6 +53,22 @@ import { type OutlinePlan, } from "./outline-plans"; +/** + * Kv-only mutators poke their own shape, not `wholeOutline`. Fan those pokes + * into the mutator gate so a shape-based wait can still complete (e2e force- + * pokes `wholeOutline` for the same reason). + */ +function relayCheckpoints( + from: CheckpointRegistry, + to: CheckpointRegistry, +): void { + const orig = from.resolve.bind(from); + from.resolve = (watermark) => { + orig(watermark); + to.resolve(watermark); + }; +} + /** Row shape for TanStack — Lunora Doc + index signature for collection drafts. */ export type NodeRow = NodeDocLike & Record & { _creationTime?: number }; @@ -613,6 +634,8 @@ export function createOutlineStore( const tagOpts = lunoraCollectionOptions({ client, id: `tagColors:${userId}`, + // Natural key = tag (server `_id` is a UUID — tag names aren't valid clientIds). + getKey: (row) => row.tag, shape: { name: "userTagColors", args: { userId }, @@ -633,6 +656,8 @@ export function createOutlineStore( const dailyOpts = lunoraCollectionOptions({ client, id: `dailyIndex:${userId}`, + // Natural key = scaffold/day key (server `_id` is a UUID). + getKey: (row) => row.key, shape: { name: "userDailyIndex", args: { userId }, @@ -641,20 +666,29 @@ export function createOutlineStore( load: "eager", }); + // Fan side-collection shape pokes into the wholeOutline gate (belt for the + // offline/outbox path where RPC ack hasn't advanced the watermark yet). + relayCheckpoints(tagOpts.checkpoints, checkpoints); + relayCheckpoints(savedOpts.checkpoints, checkpoints); + relayCheckpoints(dailyOpts.checkpoints, checkpoints); + const collection = createCollection(config); const tagColors = createCollection(tagOpts.config); const savedQueries = createCollection(savedOpts.config); const dailyIndex = createCollection(dailyOpts.config); - // wholeOutline checkpoints gate overlay drop for the shared clientSeq FIFO - // (watermark is per-client on the shard, not per-shape). - const mutators = bindOutlineMutators( - client, - collection, - tagColors, - savedQueries, - dailyIndex, - checkpoints, - userId, + // Shared clientSeq FIFO; hold overlays until shape poke (shapeFirstCheckpoints). + // Stamp TanStack "direct" metadata so a missed shape poke's 3s fallback + // doesn't drop optimistic typed text as stale. + const mutators = withDirectOptimisticMetadata( + bindOutlineMutators( + client, + collection, + tagColors, + savedQueries, + dailyIndex, + shapeFirstCheckpoints(client, userId, checkpoints), + userId, + ), ); return { collection, tagColors, savedQueries, dailyIndex, mutators }; } diff --git a/src/data/lunora-sync.ts b/src/data/lunora-sync.ts index 5a3a473e..eac8591c 100644 --- a/src/data/lunora-sync.ts +++ b/src/data/lunora-sync.ts @@ -178,3 +178,14 @@ export function trackLunoraMutation(tx: { }): void { tx.isPersisted.promise.catch(notifySaveFailed); } + +// HMR: `startLunoraOutlineSync` is idempotent per userId, so a store-module +// edit would otherwise keep the old mutator bindings (and a hung isPersisted +// waiter) alive across Fast Refresh. Tear down + restart with the new store. +if (import.meta.hot) { + import.meta.hot.accept("./lunora-outline-store", () => { + const userId = ctx?.userId; + stopLunoraOutlineSync(); + if (userId) startLunoraOutlineSync(userId); + }); +} diff --git a/src/data/node-count.ts b/src/data/node-count.ts index ff2abd3b..252a5dca 100644 --- a/src/data/node-count.ts +++ b/src/data/node-count.ts @@ -2,37 +2,41 @@ * Live total node count — the number the free-tier ceiling (#170) is measured * against, read reactively for the Settings page's usage meter. * - * Modelled on `changelog-cursor.ts`: `subscribeChanges` + `useSyncExternalStore`, - * NEVER `useLiveQuery` (which hard-fails the `/` prerender, and Settings shares - * the same bundle). Subscribing here also STARTS the collection's sync if nothing - * else has yet — a direct visit to `/settings` (no OutlineEditor mounted) still - * gets a real count once the snapshot lands. + * Modelled on `changelog-cursor.ts`: `useSyncExternalStore` over the shared + * tree index + sync-ready signal, NEVER `useLiveQuery` (which hard-fails the + * `/` prerender, and Settings shares the same bundle). * - * `toArray.length` is the same basis the DO caps on (every live row, including - * the daily scaffold), so the meter and the wall agree. + * Count comes from `getTreeIndex().byId.size` so both sync backends agree: + * classic DO feeds the tree via `nodesCollection`, Lunora (ADR 0055) via + * `resetTreeFromNodes`. Reading classic `nodesCollection` alone shows 0 when + * the Lunora flag is ON (that collection stays idle + empty). + * + * `byId.size` is the same basis the free-tier wall measures (every live row, + * including the daily scaffold). */ import { useSyncExternalStore } from "react"; -import { nodesCollection } from "./collection"; +import { isSyncReady, subscribeSyncReady } from "./collection"; +import { getTreeIndex, subscribeTree } from "./tree-store"; export interface NodeCountSnapshot { /** Total live nodes, or `0` until the first snapshot lands. */ count: number; - /** False until the collection has loaded at least once — the meter shows a - * muted placeholder while false so we never flash "0 of 10,000". */ + /** False until sync is ready — the meter shows a muted placeholder while + * false so we never flash "0 of 10,000" for a still-loading outline. */ ready: boolean; } const HIDDEN: NodeCountSnapshot = { count: 0, ready: false }; let snapshot: NodeCountSnapshot = HIDDEN; -let ready = false; -let started = false; const listeners = new Set<() => void>(); +let started = false; function rebuild() { - const count = ready ? nodesCollection.toArray.length : 0; + const ready = isSyncReady(); + const count = ready ? getTreeIndex().byId.size : 0; // Referential stability: useSyncExternalStore re-renders on identity change. if (snapshot.ready === ready && snapshot.count === count) return; snapshot = { ready, count }; @@ -42,18 +46,11 @@ function rebuild() { function ensureStarted() { if (started || typeof window === "undefined") return; started = true; - // subscribeChanges starts the collection syncing if it hasn't already. - nodesCollection.subscribeChanges(() => rebuild(), { - includeInitialState: true, - }); - void nodesCollection - .toArrayWhenReady() - .then(() => { - ready = true; - rebuild(); - }) - // A snapshot that never lands leaves the meter in its muted placeholder. - .catch(() => {}); + // Tree subscription starts classic collection sync when the Lunora flag is + // OFF; when ON, LunoraSyncHost feeds the tree and marks sync ready. + subscribeTree(() => rebuild()); + subscribeSyncReady(() => rebuild()); + rebuild(); } function subscribe(cb: () => void): () => void { diff --git a/src/routes/settings.tsx b/src/routes/settings.tsx index f3cba266..b81aabe9 100644 --- a/src/routes/settings.tsx +++ b/src/routes/settings.tsx @@ -743,16 +743,17 @@ function BetaSection() { return (
    - Try the experimental Lunora sync backend (alpha). Classic storage - remains the production default. May have bugs. Your choice syncs - across devices; turning it on or off reloads the app. + Try Dotflowy's next sync engine. Your outline stays yours — + we never claim your data. Opting in helps us harden it before + everyone gets it. May have rough edges; your choice syncs across + devices, and toggling reloads the app. } action={ @@ -760,7 +761,7 @@ function BetaSection() { checked={ready ? enabled : false} disabled={!ready} onCheckedChange={(checked) => setLunoraBetaEnabled(checked)} - aria-label="Lunora outline sync beta" + aria-label="Upgraded outline sync beta" /> } /> diff --git a/vite.config.ts b/vite.config.ts index b0a12336..70300d0f 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -90,6 +90,12 @@ export default defineConfig({ resolve: { alias: { "@": new URL("./src", import.meta.url).pathname, + // @lunora/react ships precompiled `jsxDEV` imports; Vite's prod React + // stub leaves jsxDEV undefined (LunoraProvider crash under cf:dev). + "react/jsx-dev-runtime": new URL( + "./scripts/react-jsx-dev-runtime-shim.ts", + import.meta.url, + ).pathname, }, }, }); From 6b160398816c80eff0619b6e0870b6ca6b5951a2 Mon Sep 17 00:00:00 2001 From: Cameron Pak Date: Fri, 24 Jul 2026 08:21:11 -0500 Subject: [PATCH 53/59] chore: add changeset for Lunora typing-hold fix Co-authored-by: Cursor --- .changeset/calm-nodes-hold.md | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 .changeset/calm-nodes-hold.md diff --git a/.changeset/calm-nodes-hold.md b/.changeset/calm-nodes-hold.md new file mode 100644 index 00000000..a8784e1a --- /dev/null +++ b/.changeset/calm-nodes-hold.md @@ -0,0 +1,5 @@ +--- +"dotflowy": patch +--- + +Keep typed outline text when sync shape confirmation is late (Settings round-trip no longer looks empty until hard refresh). More menu: actions first, restore Copy as Markdown, drop Migrate to Lunora. Settings beta copy no longer names the sync engine. From 0d03db0d01d083fdf6d67007e654681ae2441e87 Mon Sep 17 00:00:00 2001 From: Cameron Pak Date: Fri, 24 Jul 2026 08:23:51 -0500 Subject: [PATCH 54/59] chore: remove superseded Lunora outline spike Production Lunora path owns sync; drop spikes/lunora-outline and retarget ADR/comments/lint ignores that pointed at it. Co-authored-by: Cursor --- .oxfmtrc.json | 3 +- .oxlintrc.json | 3 +- ...055-lunora-replaces-custom-outline-sync.md | 2 +- spikes/lunora-outline/.env.example | 5 - spikes/lunora-outline/.gitignore | 38 - spikes/lunora-outline/README.md | 90 - spikes/lunora-outline/_oxlintrc.json | 8 - spikes/lunora-outline/index.html | 13 - spikes/lunora-outline/lunora/mutators.ts | 176 - .../lunora-outline/lunora/ratelimit/schema.ts | 49 - spikes/lunora-outline/lunora/schema.ts | 27 - spikes/lunora-outline/lunora/shapes.ts | 17 - spikes/lunora-outline/package.json | 47 - spikes/lunora-outline/pnpm-lock.yaml | 8263 ----------------- spikes/lunora-outline/pnpm-workspace.yaml | 29 - spikes/lunora-outline/public/favicon.svg | 1 - spikes/lunora-outline/src/App.tsx | 309 - spikes/lunora-outline/src/auth-client.ts | 7 - spikes/lunora-outline/src/index.css | 5 - spikes/lunora-outline/src/main.tsx | 29 - spikes/lunora-outline/src/outline-store.ts | 159 - spikes/lunora-outline/src/outline/index.ts | 52 - .../src/outline/lunora-bridge.test.ts | 114 - .../src/outline/lunora-bridge.ts | 34 - .../src/outline/planners.test.ts | 54 - .../lunora-outline/src/outline/seed.test.ts | 40 - spikes/lunora-outline/src/server.ts | 41 - .../lunora-outline/src/use-lunora-client.ts | 8 - spikes/lunora-outline/tsconfig.app.json | 30 - spikes/lunora-outline/tsconfig.json | 7 - spikes/lunora-outline/tsconfig.node.json | 23 - spikes/lunora-outline/vite.config.ts | 20 - spikes/lunora-outline/vitest.config.ts | 19 - spikes/lunora-outline/wrangler.jsonc | 19 - src/data/lunora-bridge.ts | 3 +- src/data/lunora-outline-store.ts | 4 +- 36 files changed, 6 insertions(+), 9742 deletions(-) delete mode 100644 spikes/lunora-outline/.env.example delete mode 100644 spikes/lunora-outline/.gitignore delete mode 100644 spikes/lunora-outline/README.md delete mode 100644 spikes/lunora-outline/_oxlintrc.json delete mode 100644 spikes/lunora-outline/index.html delete mode 100644 spikes/lunora-outline/lunora/mutators.ts delete mode 100644 spikes/lunora-outline/lunora/ratelimit/schema.ts delete mode 100644 spikes/lunora-outline/lunora/schema.ts delete mode 100644 spikes/lunora-outline/lunora/shapes.ts delete mode 100644 spikes/lunora-outline/package.json delete mode 100644 spikes/lunora-outline/pnpm-lock.yaml delete mode 100644 spikes/lunora-outline/pnpm-workspace.yaml delete mode 100644 spikes/lunora-outline/public/favicon.svg delete mode 100644 spikes/lunora-outline/src/App.tsx delete mode 100644 spikes/lunora-outline/src/auth-client.ts delete mode 100644 spikes/lunora-outline/src/index.css delete mode 100644 spikes/lunora-outline/src/main.tsx delete mode 100644 spikes/lunora-outline/src/outline-store.ts delete mode 100644 spikes/lunora-outline/src/outline/index.ts delete mode 100644 spikes/lunora-outline/src/outline/lunora-bridge.test.ts delete mode 100644 spikes/lunora-outline/src/outline/lunora-bridge.ts delete mode 100644 spikes/lunora-outline/src/outline/planners.test.ts delete mode 100644 spikes/lunora-outline/src/outline/seed.test.ts delete mode 100644 spikes/lunora-outline/src/server.ts delete mode 100644 spikes/lunora-outline/src/use-lunora-client.ts delete mode 100644 spikes/lunora-outline/tsconfig.app.json delete mode 100644 spikes/lunora-outline/tsconfig.json delete mode 100644 spikes/lunora-outline/tsconfig.node.json delete mode 100644 spikes/lunora-outline/vite.config.ts delete mode 100644 spikes/lunora-outline/vitest.config.ts delete mode 100644 spikes/lunora-outline/wrangler.jsonc diff --git a/.oxfmtrc.json b/.oxfmtrc.json index 036180bf..bb709975 100644 --- a/.oxfmtrc.json +++ b/.oxfmtrc.json @@ -8,8 +8,7 @@ "dist/**", "src/routeTree.gen.ts", "landing/src/routeTree.gen.ts", - "lunora/_generated/**", - "spikes/**/lunora/_generated/**" + "lunora/_generated/**" ], "sortTailwindcss": { "stylesheet": "./src/styles.css", diff --git a/.oxlintrc.json b/.oxlintrc.json index e760fde5..2b831dc6 100644 --- a/.oxlintrc.json +++ b/.oxlintrc.json @@ -30,7 +30,6 @@ "ignorePatterns": [ "src/routeTree.gen.ts", "landing/src/routeTree.gen.ts", - "lunora/_generated/**", - "spikes/**/lunora/_generated/**" + "lunora/_generated/**" ] } diff --git a/docs/adr/0055-lunora-replaces-custom-outline-sync.md b/docs/adr/0055-lunora-replaces-custom-outline-sync.md index da891f61..c0a93f75 100644 --- a/docs/adr/0055-lunora-replaces-custom-outline-sync.md +++ b/docs/adr/0055-lunora-replaces-custom-outline-sync.md @@ -1,6 +1,6 @@ # Lunora replaces custom outline sync -Dotflowy’s hand-rolled per-user DO sync (`/api/sync` + client-planned `{ops}` batches) converges on the same shape Lunora already ships — DO-as-log, poke fan-out, TanStack DB client, watermarked optimistic mutators ([ADR 0008](./0008-sync-via-a-per-user-durable-object.md)). We **cut over to Lunora** for outline storage/sync so Cam maintains product/UX, not a second sync engine. A greenfield spike (`spikes/lunora-outline/`) already proved ADR 0009’s chain invariant, live multi-tab convergence, watermark hold, shard deny, and hard-reload seed. +Dotflowy’s hand-rolled per-user DO sync (`/api/sync` + client-planned `{ops}` batches) converges on the same shape Lunora already ships — DO-as-log, poke fan-out, TanStack DB client, watermarked optimistic mutators ([ADR 0008](./0008-sync-via-a-per-user-durable-object.md)). We **cut over to Lunora** for outline storage/sync so Cam maintains product/UX, not a second sync engine. A prior greenfield spike proved ADR 0009’s chain invariant, live multi-tab convergence, watermark hold, shard deny, and hard-reload seed before the production port. **Decision.** Outline nodes (and, in follow-on slices, kv side-collections) move onto Lunora: `defineTable` + `.shardBy("userId")`, `defineShape` (`wholeOutline` / later partitions), server-authoritative `defineMutator` with shared pure `plan*` twins on the client (`@lunora/db` + checkpoints). Dotflowy keeps editor, plugins, domain MCP tool names (thin `/mcp` → mutators — [ADR 0026](./0026-agent-native-mcp-server.md) Option A), and existing non-outline HTTP (unfurl, waitlist, admin, Stripe, Better Auth identity) remounted beside Lunora’s Worker compose. diff --git a/spikes/lunora-outline/.env.example b/spikes/lunora-outline/.env.example deleted file mode 100644 index 749b94bb..00000000 --- a/spikes/lunora-outline/.env.example +++ /dev/null @@ -1,5 +0,0 @@ -# Lunora endpoint for the browser client. -# Vite statically replaces `import.meta.env.VITE_LUNORA_URL` at `vite dev` / build. -# Leave it unset to use the page origin; set it to point at a deployed Worker: -# -# VITE_LUNORA_URL=https://my-app.example.workers.dev diff --git a/spikes/lunora-outline/.gitignore b/spikes/lunora-outline/.gitignore deleted file mode 100644 index 43cf296f..00000000 --- a/spikes/lunora-outline/.gitignore +++ /dev/null @@ -1,38 +0,0 @@ -# Logs -logs -*.log -npm-debug.log* -yarn-debug.log* -yarn-error.log* -pnpm-debug.log* -lerna-debug.log* - -node_modules -dist -dist-ssr -*.local - -# Editor directories and files -.vscode/* -!.vscode/extensions.json -.idea -.DS_Store -*.suo -*.ntvs* -*.njsproj -*.sln -*.sw? - -# Lunora -.wrangler -.env -.env.* -!.env.example -.lunora/ -.lunora-cache -lunora/_generated - -# Local secrets (wrangler / Lunora) -.dev.vars -.dev.vars.* -lunora/.lunora-schema.json diff --git a/spikes/lunora-outline/README.md b/spikes/lunora-outline/README.md deleted file mode 100644 index 73fd84db..00000000 --- a/spikes/lunora-outline/README.md +++ /dev/null @@ -1,90 +0,0 @@ -# Lunora outline spike (Phase 1 — bridge) - -Proof that Dotflowy outline semantics can run on Lunora (shapes + mutators + watermark) **without** Dotflowy’s custom `{ops}` sync. Phase 1 adds shared row mapping, empty-outline seed, and an ADR 0004 `TreeIndex` bridge. - -## Purpose - -Greenfield Vite + React Lunora app with outline nodes, structural mutators (`plan*` shared client+server), and ADR 0009-style optimistic hold until server watermark confirm (via `@lunora/db` checkpoints — not a hand-rolled `waitForSeq`). - -Constraining ADRs (repo root): - -- [ADR 0004 — Localized rendering via the tree store](../../docs/adr/0004-localized-rendering-via-the-tree-store.md) — bridge seam only; **do not** port OutlineEditor -- [ADR 0008 — Sync via a per-user Durable Object](../../docs/adr/0008-sync-via-a-per-user-durable-object.md) -- [ADR 0009 — Atomic structural writes](../../docs/adr/0009-atomic-structural-writes.md) - -## How to run - -**Always run pnpm from this directory.** Root Dotflowy uses bun (`packageManager: bun@…`); pnpm belongs only here. - -```sh -cd spikes/lunora-outline -pnpm install -pnpm codegen # after schema/mutator changes -pnpm test # planner + bridge + seed unit tests -pnpm build -pnpm dev # Vite + Worker (default :5173; next free port if busy) -``` - -Other scripts: `pnpm lint`, `pnpm preview`. - -Local secrets: `.dev.vars` is gitignored. Scaffold needs `AUTH_SECRET` (and optional `LUNORA_ADMIN_TOKEN` for Studio). Copy patterns from `.env.example` / existing `.dev.vars`. - -## Demo: two-tab live sync - -1. `pnpm dev` → open the Local URL (e.g. `http://localhost:5174/`). -2. **Sign up** once (`spike@dotflowy.local` / `spike-dev-password` prefilled — change as you like). -3. Empty outline **auto-seeds** 4 demo bullets via server `seedIfEmpty` (idempotent — DO watermark FIFO; second concurrent call no-ops). -4. Indent/outdent/delete/edit text; insert more bullets. -5. Open a **second tab** to the same origin (already signed in via cookie). -6. Edits in either tab should converge live (shape poke + watermark). -7. Hard reload either tab — outline restores from `wholeOutline` seed. - -Cross-user: sign out → sign up as a different email → that session’s `authorizeShard` only allows `identity.userId === shardKey`, so the other user’s outline is unreachable. - -## Exit criteria - -1. Sibling-chain invariant under rapid structural edits (planner unit tests) — **covered** (`pnpm test`) -2. Two browsers, same user: live convergence without refresh — **manual** (steps above) -3. Optimistic overlay held until server watermark confirm (ADR 0009 P2 analogue) — **wired** via `lunoraCollectionOptions` checkpoints → `bindMutators` -4. Cross-user shard access denied (`authorizeShard: identity.userId === shardKey`) — **wired** -5. Hard reload restores outline from shape seed — **manual** -6. TreeIndex bridge order matches planner apply (insert/indent/remove) — **covered** (`lunora-bridge.test.ts`) - -## Shared planners (Phase-2 lift) - -Pure `plan*` / seed / map-node live in the **repo root** at -[`src/data/outline-plans/`](../../src/data/outline-plans/) (Dotflowy `Node` + -`tree.ts`). This spike imports them via the Vite/vitest alias -`@dotflowy/outline-plans` (see `vite.config.ts` / `vitest.config.ts`). -`src/outline/` is a thin re-export + the local `lunora-bridge` seam. - -Root also composes Lunora beside `UserOutlineDO` (`lunora/`, `worker/lunora-app.ts`) -and has a **default-OFF** product flag-swap (`dotflowy:flag:lunora-sync` / -`isLunoraSyncEnabled()`) — see root `HANDOFF.md`. Keep running this spike with -**pnpm from this directory**. - -## Layout - -| Path | Role | -| ------------------------------ | ----------------------------------------------------------------------- | -| `lunora/schema.ts` | `nodes` table (Dotflowy field parity), `.shardBy("userId")` | -| `lunora/shapes.ts` | `wholeOutline` owner-gated shape | -| `lunora/mutators.ts` | Server `defineMutator` — imports `@dotflowy/outline-plans` | -| `../../src/data/outline-plans` | Shared pure planners (canonical; `bun run test` at repo root) | -| `src/outline/` | Re-exports + `lunora-bridge` | -| `src/outline/lunora-bridge.ts` | ADR 0004 seam: Lunora rows → Dotflowy-shaped `TreeIndex` | -| `src/outline-store.ts` | Client `lunoraCollectionOptions` + `@lunora/db/mutators` `bindMutators` | -| `src/App.tsx` | Auth gate + tiny outline list UI (renders via bridge) | - -## Pinned Lunora packages - -| Package | Version | -| ------------------- | ---------------- | -| `lunorash` | `1.0.0-alpha.98` | -| `@lunora/db` | `1.0.0-alpha.27` | -| `@lunora/react` | `1.0.0-alpha.31` | -| `@lunora/auth` | `1.0.0-alpha.36` | -| `@lunora/ratelimit` | `1.0.0-alpha.9` | -| `@lunora/vite` | `1.0.0-alpha.78` | -| `@lunora/studio` | `1.0.0-alpha.58` | -| `packageManager` | `pnpm@11.9.0` | diff --git a/spikes/lunora-outline/_oxlintrc.json b/spikes/lunora-outline/_oxlintrc.json deleted file mode 100644 index 6fa991da..00000000 --- a/spikes/lunora-outline/_oxlintrc.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "$schema": "./node_modules/oxlint/configuration_schema.json", - "plugins": ["react", "typescript", "oxc"], - "rules": { - "react/rules-of-hooks": "error", - "react/only-export-components": ["warn", { "allowConstantExport": true }] - } -} diff --git a/spikes/lunora-outline/index.html b/spikes/lunora-outline/index.html deleted file mode 100644 index a30e2750..00000000 --- a/spikes/lunora-outline/index.html +++ /dev/null @@ -1,13 +0,0 @@ - - - - - - - Lunora outline spike - - -
    - - - diff --git a/spikes/lunora-outline/lunora/mutators.ts b/spikes/lunora-outline/lunora/mutators.ts deleted file mode 100644 index e70bae50..00000000 --- a/spikes/lunora-outline/lunora/mutators.ts +++ /dev/null @@ -1,176 +0,0 @@ -import { - buildTreeIndex, - docToNode, - nodeToInsertFields, - planIndent, - planInsertSibling, - planOutdent, - planRemoveNode, - planSeedIfEmpty, - planSetText, - type OutlineNode, - type OutlinePlan, -} from "@dotflowy/outline-plans"; -import { defineMutator, v } from "lunorash/server"; - -import type { Id } from "./_generated/dataModel.js"; - -/** Minimal mutator ctx — defineMutator's ServerContext is the base MutationCtx. */ -type MutatorDb = { - query: (table: "nodes") => { - collect: () => Promise & { _id: string }>>; - }; - insert: ( - table: "nodes", - document: Record, - options?: { clientId?: string }, - ) => Promise; - patch: (id: Id<"nodes">, fields: Record) => Promise; - delete: (id: Id<"nodes">) => Promise; -}; - -type MutatorCtx = { - auth: { userId?: string | null }; - db: MutatorDb; -}; - -async function loadNodes(ctx: MutatorCtx): Promise { - const rows = await ctx.db.query("nodes").collect(); - return rows.map(docToNode); -} - -function assertOwner(ctx: MutatorCtx, userId: string): void { - if (ctx.auth.userId !== userId) { - throw new Error("unauthorized: shard userId mismatch"); - } -} - -async function commitPlan(ctx: MutatorCtx, plan: OutlinePlan): Promise { - for (const node of plan.inserts) { - await ctx.db.insert("nodes", nodeToInsertFields(node), { - clientId: node.id, - }); - } - - for (const patch of plan.patches) { - await ctx.db.patch( - patch.id as Id<"nodes">, - patch.fields as Record, - ); - } - - for (const id of plan.deletes) { - await ctx.db.delete(id as Id<"nodes">); - } -} - -const userIdArg = v.string(); -const idArg = v.string(); -const tsArg = v.number(); - -export const insertSibling = defineMutator({ - args: { - id: idArg, - userId: userIdArg, - parentId: v.string().nullable(), - afterId: v.string().nullable(), - text: v.string(), - isTask: v.optional(v.boolean()), - kind: v.optional(v.literal("paragraph").nullable()), - createdAt: tsArg, - updatedAt: tsArg, - }, - server: async (ctx, args) => { - const mctx = ctx as unknown as MutatorCtx; - assertOwner(mctx, args.userId); - const index = buildTreeIndex(await loadNodes(mctx)); - const plan = planInsertSibling(index, { - id: args.id, - userId: args.userId, - parentId: args.parentId, - afterId: args.afterId, - text: args.text, - isTask: args.isTask, - kind: args.kind, - createdAt: args.createdAt, - updatedAt: args.updatedAt, - }); - if (!plan) throw new Error("insertSibling: invalid parent/afterId"); - await commitPlan(mctx, plan); - return { id: args.id }; - }, -}); - -/** - * Server-authoritative empty-outline seed. Concurrent calls serialize on the - * DO watermark FIFO — second sees non-empty and returns `{ seeded: false }`. - */ -export const seedIfEmpty = defineMutator({ - args: { - userId: userIdArg, - createdAt: tsArg, - }, - server: async (ctx, args) => { - const mctx = ctx as unknown as MutatorCtx; - assertOwner(mctx, args.userId); - const nodes = await loadNodes(mctx); - const plan = planSeedIfEmpty(nodes, { - userId: args.userId, - createdAt: args.createdAt, - }); - if (!plan) return { seeded: false as const }; - await commitPlan(mctx, plan); - return { - seeded: true as const, - ids: plan.inserts.map((n) => n.id), - }; - }, -}); - -export const indent = defineMutator({ - args: { id: idArg, userId: userIdArg, updatedAt: tsArg }, - server: async (ctx, args) => { - const mctx = ctx as unknown as MutatorCtx; - assertOwner(mctx, args.userId); - const index = buildTreeIndex(await loadNodes(mctx)); - const plan = planIndent(index, args.id, args.updatedAt); - if (!plan) throw new Error("indent: no-op or missing node"); - await commitPlan(mctx, plan); - }, -}); - -export const outdent = defineMutator({ - args: { id: idArg, userId: userIdArg, updatedAt: tsArg }, - server: async (ctx, args) => { - const mctx = ctx as unknown as MutatorCtx; - assertOwner(mctx, args.userId); - const index = buildTreeIndex(await loadNodes(mctx)); - const plan = planOutdent(index, args.id, args.updatedAt); - if (!plan) throw new Error("outdent: no-op or missing node"); - await commitPlan(mctx, plan); - }, -}); - -export const removeNode = defineMutator({ - args: { id: idArg, userId: userIdArg, updatedAt: tsArg }, - server: async (ctx, args) => { - const mctx = ctx as unknown as MutatorCtx; - assertOwner(mctx, args.userId); - const index = buildTreeIndex(await loadNodes(mctx)); - const plan = planRemoveNode(index, args.id, args.updatedAt); - if (!plan) throw new Error("removeNode: missing node"); - await commitPlan(mctx, plan); - }, -}); - -export const setText = defineMutator({ - args: { id: idArg, userId: userIdArg, text: v.string(), updatedAt: tsArg }, - server: async (ctx, args) => { - const mctx = ctx as unknown as MutatorCtx; - assertOwner(mctx, args.userId); - const index = buildTreeIndex(await loadNodes(mctx)); - const plan = planSetText(index, args.id, args.text, args.updatedAt); - if (!plan) throw new Error("setText: missing node"); - await commitPlan(mctx, plan); - }, -}); diff --git a/spikes/lunora-outline/lunora/ratelimit/schema.ts b/spikes/lunora-outline/lunora/ratelimit/schema.ts deleted file mode 100644 index 70dbe3e0..00000000 --- a/spikes/lunora-outline/lunora/ratelimit/schema.ts +++ /dev/null @@ -1,49 +0,0 @@ -import type { RateLimitConfigMap } from "lunorash/ratelimit"; -import type { Middleware } from "lunorash/server"; - -import { createDbStore, RateLimiter } from "lunorash/ratelimit"; -import { - defineSchemaExtension, - defineTable, - definePlugin, - v, -} from "lunorash/server"; - -export const limits = { - default: { kind: "token bucket", period: 60_000, rate: 10 }, -} as const satisfies RateLimitConfigMap; - -export type LimitName = keyof typeof limits; - -export const makeRateLimiter = (ctx: { db: unknown }): RateLimiter => - new RateLimiter({ - config: limits, - store: createDbStore({ db: ctx.db as never, table: "ratelimit_buckets" }), - }); - -const middleware: Middleware< - { api?: Record; db: unknown }, - { api: Record; db: unknown } -> = ({ ctx, next }) => - next({ - ctx: { - ...ctx, - api: { ...ctx.api, ratelimit: makeRateLimiter(ctx) }, - }, - }); - -export const ratelimit = definePlugin("ratelimit", { - extension: defineSchemaExtension("ratelimit", { - tables: { - buckets: defineTable({ - key: v.string(), - value: v.number(), - ts: v.number(), - prev: v.optional(v.number()), - }) - .index("by_key", ["key"]) - .externallyManaged(), - }, - }), - middleware, -}); diff --git a/spikes/lunora-outline/lunora/schema.ts b/spikes/lunora-outline/lunora/schema.ts deleted file mode 100644 index 0cc00f10..00000000 --- a/spikes/lunora-outline/lunora/schema.ts +++ /dev/null @@ -1,27 +0,0 @@ -import { defineSchema, defineTable, v } from "lunorash/server"; - -import { ratelimit } from "./ratelimit/schema.js"; - -/** - * Outline nodes — full Dotflowy Node field parity, sharded per user. - * Dotflowy `id` maps to Lunora `_id` via `clientId` on insert. - */ -export default defineSchema({ - nodes: defineTable({ - parentId: v.string().nullable(), - prevSiblingId: v.string().nullable(), - text: v.string(), - isTask: v.boolean(), - completed: v.boolean(), - collapsed: v.boolean(), - bookmarkedAt: v.number().nullable(), - mirrorOf: v.string().nullable(), - createdAt: v.number(), - updatedAt: v.number(), - origin: v.string().nullable(), - kind: v.literal("paragraph").nullable(), - userId: v.string(), - }) - .shardBy("userId") - .index("by_parent", ["parentId"]), -}).extend(ratelimit.extension); diff --git a/spikes/lunora-outline/lunora/shapes.ts b/spikes/lunora-outline/lunora/shapes.ts deleted file mode 100644 index 2b80ad92..00000000 --- a/spikes/lunora-outline/lunora/shapes.ts +++ /dev/null @@ -1,17 +0,0 @@ -import { defineShape, v } from "lunorash/server"; - -/** - * Whole-outline replication for one user shard. - * Read-as-permission: only the authenticated owner may subscribe, and the - * row filter is pinned to their `userId` (never a forged arg alone). - */ -export const wholeOutline = defineShape({ - args: { userId: v.string() }, - table: "nodes", - where: (ctx, { userId }) => { - // Shape `where` returns WhereInput (not boolean). `{ OR: [] }` is the - // vacuously-false deny sentinel used by Lunora RLS/shapes. - if (!ctx.auth.userId || ctx.auth.userId !== userId) return { OR: [] }; - return { userId }; - }, -}); diff --git a/spikes/lunora-outline/package.json b/spikes/lunora-outline/package.json deleted file mode 100644 index b0bfb3b2..00000000 --- a/spikes/lunora-outline/package.json +++ /dev/null @@ -1,47 +0,0 @@ -{ - "name": "lunora-outline", - "version": "0.0.0", - "private": true, - "type": "module", - "imports": { - "#lunora/*": "./lunora/*" - }, - "scripts": { - "dev": "vite", - "build": "tsc -b && vite build", - "lint": "oxlint", - "preview": "vite preview", - "codegen": "lunora codegen", - "deploy": "vite build && lunora deploy", - "test": "vitest run --config vitest.config.ts", - "test:watch": "vitest --config vitest.config.ts" - }, - "dependencies": { - "@lunora/auth": "1.0.0-alpha.36", - "@lunora/db": "1.0.0-alpha.27", - "@lunora/ratelimit": "1.0.0-alpha.9", - "@lunora/react": "1.0.0-alpha.31", - "@tanstack/db": "^0.6.16", - "@tanstack/offline-transactions": "^1.0.41", - "@tanstack/react-db": "^0.1.94", - "better-auth": "^1.6.24", - "lunorash": "1.0.0-alpha.98", - "react": "^19.2.7", - "react-dom": "^19.2.7" - }, - "devDependencies": { - "@cloudflare/workers-types": "^4.20260611.1", - "@lunora/studio": "1.0.0-alpha.58", - "@lunora/vite": "1.0.0-alpha.78", - "@types/node": "^24.13.3", - "@types/react": "^19.2.17", - "@types/react-dom": "^19.2.3", - "@vitejs/plugin-react": "^6.0.3", - "oxlint": "^1.74.0", - "typescript": "~6.0.2", - "vite": "^8.1.5", - "vitest": "^4.1.10", - "wrangler": "^4.100.0" - }, - "packageManager": "pnpm@11.9.0" -} diff --git a/spikes/lunora-outline/pnpm-lock.yaml b/spikes/lunora-outline/pnpm-lock.yaml deleted file mode 100644 index b500a6dc..00000000 --- a/spikes/lunora-outline/pnpm-lock.yaml +++ /dev/null @@ -1,8263 +0,0 @@ -lockfileVersion: '9.0' - -settings: - autoInstallPeers: true - excludeLinksFromLockfile: false - -importers: - - .: - dependencies: - '@lunora/auth': - specifier: 1.0.0-alpha.36 - version: 1.0.0-alpha.36(@better-auth/core@1.6.24(@better-auth/utils@0.4.2)(@better-fetch/fetch@1.3.1)(@cloudflare/workers-types@4.20260702.1)(better-call@1.3.7(zod@4.4.3))(jose@6.2.4)(kysely@0.29.4)(nanostores@1.4.1))(@better-auth/utils@0.4.2)(@better-fetch/fetch@1.3.1)(@cloudflare/workers-types@4.20260702.1)(better-call@1.3.7(zod@4.4.3))(drizzle-orm@0.45.2(@cloudflare/workers-types@4.20260702.1)(kysely@0.29.4))(kysely@0.29.4)(nanostores@1.4.1)(react-dom@19.2.8(react@19.2.8))(react@19.2.8)(solid-js@1.9.14)(svelte@5.56.7)(vitest@4.1.10(@types/node@24.13.3)(vite@8.1.5(@types/node@24.13.3)(esbuild@0.28.1)(jiti@2.7.0)(yaml@2.9.0)))(vue@3.5.40(typescript@6.0.3)) - '@lunora/db': - specifier: 1.0.0-alpha.27 - version: 1.0.0-alpha.27(@tanstack/db@0.6.16(typescript@6.0.3))(@tanstack/offline-transactions@1.0.41(typescript@6.0.3))(@tanstack/react-query@5.101.4(react@19.2.8))(@tanstack/solid-query@5.101.4(solid-js@1.9.14))(@tanstack/svelte-query@6.1.38(svelte@5.56.7))(@tanstack/vue-query@5.101.4(vue@3.5.40(typescript@6.0.3)))(react@19.2.8)(solid-js@1.9.14)(svelte@5.56.7)(vue@3.5.40(typescript@6.0.3)) - '@lunora/ratelimit': - specifier: 1.0.0-alpha.9 - version: 1.0.0-alpha.9 - '@lunora/react': - specifier: 1.0.0-alpha.31 - version: 1.0.0-alpha.31(@tanstack/react-query@5.101.4(react@19.2.8))(@tanstack/solid-query@5.101.4(solid-js@1.9.14))(@tanstack/svelte-query@6.1.38(svelte@5.56.7))(@tanstack/vue-query@5.101.4(vue@3.5.40(typescript@6.0.3)))(react-dom@19.2.8(react@19.2.8))(react@19.2.8)(solid-js@1.9.14)(svelte@5.56.7)(vue@3.5.40(typescript@6.0.3)) - '@tanstack/db': - specifier: ^0.6.16 - version: 0.6.16(typescript@6.0.3) - '@tanstack/offline-transactions': - specifier: ^1.0.41 - version: 1.0.41(typescript@6.0.3) - '@tanstack/react-db': - specifier: ^0.1.94 - version: 0.1.94(react@19.2.8)(typescript@6.0.3) - better-auth: - specifier: ^1.6.24 - version: 1.6.24(@cloudflare/workers-types@4.20260702.1)(drizzle-orm@0.45.2(@cloudflare/workers-types@4.20260702.1)(kysely@0.29.4))(react-dom@19.2.8(react@19.2.8))(react@19.2.8)(solid-js@1.9.14)(svelte@5.56.7)(vitest@4.1.10(@types/node@24.13.3)(vite@8.1.5(@types/node@24.13.3)(esbuild@0.28.1)(jiti@2.7.0)(yaml@2.9.0)))(vue@3.5.40(typescript@6.0.3)) - lunorash: - specifier: 1.0.0-alpha.98 - version: 1.0.0-alpha.98(b1170eeda25a14142d7dd6aa1a0018b2) - react: - specifier: ^19.2.7 - version: 19.2.8 - react-dom: - specifier: ^19.2.7 - version: 19.2.8(react@19.2.8) - devDependencies: - '@cloudflare/workers-types': - specifier: ^4.20260611.1 - version: 4.20260702.1 - '@lunora/studio': - specifier: 1.0.0-alpha.58 - version: 1.0.0-alpha.58(@cloudflare/workers-types@4.20260702.1)(@tanstack/solid-query@5.101.4(solid-js@1.9.14))(@tanstack/svelte-query@6.1.38(svelte@5.56.7))(@tanstack/vue-query@5.101.4(vue@3.5.40(typescript@6.0.3)))(@types/react-dom@19.2.3(@types/react@19.2.17))(@types/react@19.2.17)(immer@11.1.15)(kysely@0.29.4)(react-dom@19.2.8(react@19.2.8))(react-is@18.3.1)(react@19.2.8)(redux@5.0.1)(solid-js@1.9.14)(svelte@5.56.7)(vue@3.5.40(typescript@6.0.3)) - '@lunora/vite': - specifier: 1.0.0-alpha.78 - version: 1.0.0-alpha.78(@ai-sdk/provider@4.0.3)(@cloudflare/workers-types@4.20260702.1)(@lunora/server@1.0.0-alpha.30(@cloudflare/workers-types@4.20260702.1)(kysely@0.29.4))(@lunora/studio@1.0.0-alpha.58(@cloudflare/workers-types@4.20260702.1)(@tanstack/solid-query@5.101.4(solid-js@1.9.14))(@tanstack/svelte-query@6.1.38(svelte@5.56.7))(@tanstack/vue-query@5.101.4(vue@3.5.40(typescript@6.0.3)))(@types/react-dom@19.2.3(@types/react@19.2.17))(@types/react@19.2.17)(immer@11.1.15)(kysely@0.29.4)(react-dom@19.2.8(react@19.2.8))(react-is@18.3.1)(react@19.2.8)(redux@5.0.1)(solid-js@1.9.14)(svelte@5.56.7)(vue@3.5.40(typescript@6.0.3)))(@lunora/values@1.0.0-alpha.10)(@types/node@24.13.3)(ai@7.0.31(zod@4.4.3))(asn1js@3.0.10)(kysely@0.29.4)(luxon@3.7.2)(react-dom@19.2.8(react@19.2.8))(react@19.2.8)(vite@8.1.5(@types/node@24.13.3)(esbuild@0.28.1)(jiti@2.7.0)(yaml@2.9.0))(wrangler@4.113.0(@cloudflare/workers-types@4.20260702.1))(zod@4.4.3) - '@types/node': - specifier: ^24.13.3 - version: 24.13.3 - '@types/react': - specifier: ^19.2.17 - version: 19.2.17 - '@types/react-dom': - specifier: ^19.2.3 - version: 19.2.3(@types/react@19.2.17) - '@vitejs/plugin-react': - specifier: ^6.0.3 - version: 6.0.4(vite@8.1.5(@types/node@24.13.3)(esbuild@0.28.1)(jiti@2.7.0)(yaml@2.9.0)) - oxlint: - specifier: ^1.74.0 - version: 1.75.0 - typescript: - specifier: ~6.0.2 - version: 6.0.3 - vite: - specifier: ^8.1.5 - version: 8.1.5(@types/node@24.13.3)(esbuild@0.28.1)(jiti@2.7.0)(yaml@2.9.0) - vitest: - specifier: ^4.1.10 - version: 4.1.10(@types/node@24.13.3)(vite@8.1.5(@types/node@24.13.3)(esbuild@0.28.1)(jiti@2.7.0)(yaml@2.9.0)) - wrangler: - specifier: ^4.100.0 - version: 4.113.0(@cloudflare/workers-types@4.20260702.1) - -packages: - - '@ai-sdk/gateway@4.0.23': - resolution: {integrity: sha512-f85diFdPMXYJpxCjOYZchMQkRH8h3r6lhK4Q2xmzJ7UA2OQ80L3W7tFu61742xGQK7zHWm5AhxYhNuc50H9SGQ==} - engines: {node: '>=22'} - peerDependencies: - zod: ^3.25.76 || ^4.1.8 - - '@ai-sdk/provider-utils@5.0.11': - resolution: {integrity: sha512-7/96wE+ZsKB35iS9ASyllrE4Ym/EolXEB7AkuJ5FI++fmS85BVTAs77890C+1Z2jwHfBKjBQSBmsliOsAh0iFQ==} - engines: {node: '>=22'} - peerDependencies: - zod: ^3.25.76 || ^4.1.8 - - '@ai-sdk/provider@4.0.3': - resolution: {integrity: sha512-e0CpNWJUY7OxAFAnCZkw+ri9QOHWwTs1tXP42782KFGCU07qt8NiXCrCVowyCB5dP2r5/Uls+g2oPd8kOJn9dw==} - engines: {node: '>=22'} - - '@antfu/install-pkg@1.1.0': - resolution: {integrity: sha512-MGQsmw10ZyI+EJo45CdSER4zEb+p31LpDAFp2Z3gkSd1yqVZGi0Ebx++YTEMonJy4oChEMLsxZ64j8FH6sSqtQ==} - - '@babel/code-frame@7.29.7': - resolution: {integrity: sha512-Aup7aUOfpbAUg2ROOJN6Iw5f9DMBlzu0mIkm/malLQFN/YQgO48wCj0Kxa3sEHJvPVFg7siR+qRInwXd2qhQKw==} - engines: {node: '>=6.9.0'} - - '@babel/compat-data@7.29.7': - resolution: {integrity: sha512-locTkQyKvwIEgBzVrn8693ebc97F2U8ZHjbXwDXJ5Fn2TCpNwTlKcaKLkdHop5c/icOFE7qt7Q9JC5hnKNa6Gg==} - engines: {node: '>=6.9.0'} - - '@babel/core@7.29.7': - resolution: {integrity: sha512-RgHBCvtjbOK2gXSNBNIkNoEc9qoVEtau3hj8gEqKQuL3HZAibKarWFEI3Lfm6EYKkLalOh8eSrj9b+ch9H/VBA==} - engines: {node: '>=6.9.0'} - - '@babel/generator@7.29.7': - resolution: {integrity: sha512-DkXD5OJQaAQIdZ1bt3UZdEnHAn9Imd3IVBdX03UFe+ony9Ojw5pzr9YVKGDY1jt+Gcn/FnGkNf8r+Vj5NOJWtQ==} - engines: {node: '>=6.9.0'} - - '@babel/helper-compilation-targets@7.29.7': - resolution: {integrity: sha512-wem6WaBj4NaVYVdNhLPPVacES6ZJ+KBBfSkTMD3YZxbP3rm3Di85tJU5ljaUNhaOynt+Aj0xruhYuzQBt8n71g==} - engines: {node: '>=6.9.0'} - - '@babel/helper-globals@7.29.7': - resolution: {integrity: sha512-3nQVUAtvkKH9zahfWgw96Jc/uFOmjACE1kQz82E2lqWmHBgjzbNlsC22nuQTfahmWeQtTq5nQ/4Nnd2A1wj4zA==} - engines: {node: '>=6.9.0'} - - '@babel/helper-module-imports@7.29.7': - resolution: {integrity: sha512-ejHwrQQYcm9xnTivShn2IDOlIzInN34AXskvq9QicvCtEzq1Vzclu/tKF8Jq1Cg8JG2GL6/EmjgsCT7lXepE3g==} - engines: {node: '>=6.9.0'} - - '@babel/helper-module-transforms@7.29.7': - resolution: {integrity: sha512-UPUVSyXbOh627KiCIGQSgwWzGeBKLkaJ9PJEdrngIwMSzxLR4jS4+f1f1jb7VzBbg8nFLaYotvVPFCTqdrmTAg==} - engines: {node: '>=6.9.0'} - peerDependencies: - '@babel/core': ^7.0.0 - - '@babel/helper-string-parser@7.29.7': - resolution: {integrity: sha512-Pb5ijPrZ89GDH8223L4UP8i6QApWxs04RbPQJTeWDV0/keR2E36MeKnyr6LYmUUvqRRI+Iv87SuF1W6ErINzYw==} - engines: {node: '>=6.9.0'} - - '@babel/helper-validator-identifier@7.29.7': - resolution: {integrity: sha512-qehxGkRj55h/ff8EMaJ+cYhyaKlHIxqYDn682wQD7RNp9UujOQsHog2uS0r2vzr4pW+sXf90NeeayjcNaX3fFg==} - engines: {node: '>=6.9.0'} - - '@babel/helper-validator-option@7.29.7': - resolution: {integrity: sha512-N9ZErrD+yW5geCDtBqnOoxmR8+tNKiGuxKlDpuJxfsqpa2dFcexaziGAE/qoHLiDDreVNMupxGmSoNlyvsA3gw==} - engines: {node: '>=6.9.0'} - - '@babel/helpers@7.29.7': - resolution: {integrity: sha512-1k2lAGRMfHTcwuNYcCNUmaUffmQv8KWMfh2iJUUeRlwlwH4FdNG7mfPI10NPfLHJFThE4Tyr4mv7kTNZOiPuBg==} - engines: {node: '>=6.9.0'} - - '@babel/parser@7.29.7': - resolution: {integrity: sha512-hnORnjP/1P/zFEndoeX+n+t1RwWRJiJpM/jO7FW32Kn9r5+sJB2JWOdYo4L6k78j15eCwY3Gm/7364B1EMwtNg==} - engines: {node: '>=6.0.0'} - hasBin: true - - '@babel/runtime@7.29.7': - resolution: {integrity: sha512-Nq8OhGWiZIZGV6hLHoyAKLLcJihP/xFeBMGJoUrxTX2psI8dCifzLhZISFb+VWS3wFMRDmCGw5R+dOySCqPLhw==} - engines: {node: '>=6.9.0'} - - '@babel/template@7.29.7': - resolution: {integrity: sha512-puq+Gf35oI24FeN11LkoUQFqv9uwNeWpxXZi/Ji3rRIoKAzKnxRaZ+Gkj0vKS9ZCiTESfng1N9LyOyXvo+m+Gg==} - engines: {node: '>=6.9.0'} - - '@babel/traverse@7.29.7': - resolution: {integrity: sha512-EhlfNQtZ+NK22w5BM61ciuiq1m58ed33Wr1Xan//ZRTy6hgjnwyCffRYwzsGXdASJSUJ1guZILsErh1eQcl+zw==} - engines: {node: '>=6.9.0'} - - '@babel/types@7.29.7': - resolution: {integrity: sha512-4zBIxpPzowiZpusoFkyGVwakdRJUyuH5PxQ/PrqghfdFWWasvnCdPfQXHrenDai+gyLARulZjZowCOj6fjT4pA==} - engines: {node: '>=6.9.0'} - - '@balena/dockerignore@1.0.2': - resolution: {integrity: sha512-wMue2Sy4GAVTk6Ic4tJVcnfdau+gx2EnG7S+uAEe+TWJFqE4YoWN4/H8MSLj4eYJKxGg26lZwboEniNiNwZQ6Q==} - - '@base-ui/react@1.6.0': - resolution: {integrity: sha512-/jzjTWJYXhRFO45Bev9lc3cHbmjzCMpUqbMZ2AgKy/z25mY9B6shGSNcXcjQar9n5doM0KYW1W8fcFv2jZBuMw==} - engines: {node: '>=14.0.0'} - peerDependencies: - '@date-fns/tz': ^1.2.0 - '@types/react': ^17 || ^18 || ^19 - date-fns: ^4.0.0 - react: ^17 || ^18 || ^19 - react-dom: ^17 || ^18 || ^19 - peerDependenciesMeta: - '@date-fns/tz': - optional: true - '@types/react': - optional: true - date-fns: - optional: true - - '@base-ui/utils@0.3.1': - resolution: {integrity: sha512-gFFiltORVmW/N6IILTGxizP3PBpVpysqML1ALY5Vk0mH+7faVkCknOU31goYHN5Aoek2dkjxva1XOD2Ce9WuIg==} - peerDependencies: - '@types/react': ^17 || ^18 || ^19 - react: ^17 || ^18 || ^19 - react-dom: ^17 || ^18 || ^19 - peerDependenciesMeta: - '@types/react': - optional: true - - '@better-auth/core@1.6.24': - resolution: {integrity: sha512-zQuYZgwGvUcnQt/qyLYZv+d4UEwMzg3mKKPiYDZoGx4jhRORjV8214b3EpieYfiFAeBY/EAJo1zGhZLJ+7VFeQ==} - peerDependencies: - '@better-auth/utils': 0.4.2 - '@better-fetch/fetch': 1.3.1 - '@cloudflare/workers-types': '>=4' - '@opentelemetry/api': ^1.9.0 - better-call: 1.3.7 - jose: ^6.1.0 - kysely: ^0.28.5 || ^0.29.0 - nanostores: ^1.0.1 - peerDependenciesMeta: - '@cloudflare/workers-types': - optional: true - '@opentelemetry/api': - optional: true - - '@better-auth/drizzle-adapter@1.6.24': - resolution: {integrity: sha512-sdzSegGWDH+pjSMYLpuX51sAOAtCOpDeXOyFYoQbAUuV0qONvVg5haS9Uezul2cfXxC5S5HPQeY2lXp+BzZJ5Q==} - peerDependencies: - '@better-auth/core': ^1.6.24 - '@better-auth/utils': 0.4.2 - drizzle-orm: ^0.45.2 - peerDependenciesMeta: - drizzle-orm: - optional: true - - '@better-auth/kysely-adapter@1.6.24': - resolution: {integrity: sha512-dj3DsCMdW6ybOeASZmQZwyRkaYYQ76Mhzo/wSxcI7i1llypbvRS35Cr1YwcZnN4IekFTyw9jhVWxT+yBzfQRZA==} - peerDependencies: - '@better-auth/core': ^1.6.24 - '@better-auth/utils': 0.4.2 - kysely: ^0.28.17 || ^0.29.0 - peerDependenciesMeta: - kysely: - optional: true - - '@better-auth/memory-adapter@1.6.24': - resolution: {integrity: sha512-pAp49UWXE32sW/47ra9SlJTUYrzvB/8jayh6QM9DD3ivs1TgPbq10iwwJOecJIi5WkHWw64up7g8ZhhDpAqqIg==} - peerDependencies: - '@better-auth/core': ^1.6.24 - '@better-auth/utils': 0.4.2 - - '@better-auth/mongo-adapter@1.6.24': - resolution: {integrity: sha512-2Snbv2v/gJNGHGHRgAEfKSHwoDYQ+mqcGO2sih+KYK50AW6LQX93OXZPtwkUOZAmyN70gz4/GgM2yWPC+dPiow==} - peerDependencies: - '@better-auth/core': ^1.6.24 - '@better-auth/utils': 0.4.2 - mongodb: ^6.0.0 || ^7.0.0 - peerDependenciesMeta: - mongodb: - optional: true - - '@better-auth/passkey@1.6.24': - resolution: {integrity: sha512-kuv/vKDNOAbehNEkYGIusK0HHV3PZ79JAquBjMLvsNBMKFETsfsjW306YDs8LPzCwLz8QlVgUD1gV6+VfButEg==} - peerDependencies: - '@better-auth/core': ^1.6.24 - '@better-auth/utils': 0.4.2 - '@better-fetch/fetch': 1.3.1 - better-auth: ^1.6.24 - better-call: 1.3.7 - nanostores: ^1.0.1 - - '@better-auth/prisma-adapter@1.6.24': - resolution: {integrity: sha512-TZRhUEzV6BhWM4/l2ystZaY59MuNoaqqYp7IJrSTHT3l363LWLD9ZYUBNPZZ7+hlpMC0obPgfR7nbRQ+trniHg==} - peerDependencies: - '@better-auth/core': ^1.6.24 - '@better-auth/utils': 0.4.2 - '@prisma/client': ^5.0.0 || ^6.0.0 || ^7.0.0 - prisma: ^5.0.0 || ^6.0.0 || ^7.0.0 - peerDependenciesMeta: - '@prisma/client': - optional: true - prisma: - optional: true - - '@better-auth/telemetry@1.6.24': - resolution: {integrity: sha512-q4NeSDLPKMQIhip76OQ9OXgUXU/7XoQu5dAqptX2VxtPoQNn/cbgxs+daYsZSwJQT1+ZSz5fUvbacKlt6J6Luw==} - peerDependencies: - '@better-auth/core': ^1.6.24 - '@better-auth/utils': 0.4.2 - '@better-fetch/fetch': 1.3.1 - - '@better-auth/utils@0.4.2': - resolution: {integrity: sha512-AUxrvu+HaaODsUyzDxFgwd/8RZ1yZaYo42LXKSrU2oGgR38pS1ij8nqQKNgtTWoYGpNevNXtCfgTy6loHveW9A==} - - '@better-fetch/fetch@1.3.1': - resolution: {integrity: sha512-ABkD1WhyfPZprKRQI3bhATjeiFuNWC9PXhfGWqL+sg/gKrM977oFrYkdb4msM3hgUGonr7KlOsOFT5TU2rht9g==} - - '@bomb.sh/tab@0.0.19': - resolution: {integrity: sha512-dTRfo9Q9B+lbLG3JCu8a/AGQSfD2XXcFcnakQzVjSOX+VvR/s9zpsH8TlqV3iHqazniRn1Ypwd1hcRlXcu/4BA==} - hasBin: true - peerDependencies: - cac: ^6.7.14 - citty: ^0.1.6 || ^0.2.0 - commander: ^13.1.0 || ^14.0.0 || ^15.0.0 - peerDependenciesMeta: - cac: - optional: true - citty: - optional: true - commander: - optional: true - - '@cloudflare/kv-asset-handler@0.5.0': - resolution: {integrity: sha512-jxQYkj8dSIzc0cD6cMMNdOc1UVjqSqu8BZdor5s8cGjW2I8BjODt/kWPVdY+u9zj3ms75Q5qaZgnxUad83+eAg==} - engines: {node: '>=22.0.0'} - - '@cloudflare/unenv-preset@2.16.1': - resolution: {integrity: sha512-ECxObrMfyTl5bhQf/lZCXwo5G6xX9IAUo+nDMKK4SZ8m4Jvvxp52vilxyySSWh2YTZz8+HQ07qGH/2rEom1vDw==} - peerDependencies: - unenv: 2.0.0-rc.24 - workerd: '>1.20260305.0 <2.0.0-0' - peerDependenciesMeta: - workerd: - optional: true - - '@cloudflare/vite-plugin@1.45.1': - resolution: {integrity: sha512-C+iDpO9pVH7IqrjdYtUV+obcTAdpiNk0OSinGEZZyd2ZWyGVjGk7iJ2p3xpMBpZuTa1I4hfAECNp0yN/8f3PIQ==} - hasBin: true - peerDependencies: - vite: ^6.1.0 || ^7.0.0 || ^8.0.0 - wrangler: ^4.112.0 - - '@cloudflare/workerd-darwin-64@1.20260714.1': - resolution: {integrity: sha512-ZWXqAN8G7Cx9hMRQuk+59ziJhR3j1F4iO+Qs8aHdfKZ3Dq5Yi/57xvkJTgCGBnW1YU/L78r8f6HEy51bwbTpNw==} - engines: {node: '>=16'} - cpu: [x64] - os: [darwin] - - '@cloudflare/workerd-darwin-64@1.20260721.1': - resolution: {integrity: sha512-VivNMhiEdZIB4JBWxf1RMJGROErv53qmQ+dvhjA1evrCouvqRYW718VqDideU3PSV7Ythl5Df48NqZYWoaEHpQ==} - engines: {node: '>=16'} - cpu: [x64] - os: [darwin] - - '@cloudflare/workerd-darwin-arm64@1.20260714.1': - resolution: {integrity: sha512-tueWxWC3wyCbMG6zRAxsMXX0YLgrRWbiAPYFQ2uJ7dUH8G+5E7UTWaQS9B1HdJ0bpKFW1NWxhs1o2noKVFSUYg==} - engines: {node: '>=16'} - cpu: [arm64] - os: [darwin] - - '@cloudflare/workerd-darwin-arm64@1.20260721.1': - resolution: {integrity: sha512-k7oye1ZiuwnnBBA2eTMduconr/ud5ZxFtRNTsYwMdmJeeeislw2+M72otrHxxvybCP7JWPPlJ38uhfajpcyhOA==} - engines: {node: '>=16'} - cpu: [arm64] - os: [darwin] - - '@cloudflare/workerd-linux-64@1.20260714.1': - resolution: {integrity: sha512-1VChTZRb0l0F7R4e1G5RtLKV4oFi6x+rQgxh2+yu887j3l/3TLgatuv1L8/5zhc9gKEhATTxOh0e52Rtd9dDWQ==} - engines: {node: '>=16'} - cpu: [x64] - os: [linux] - - '@cloudflare/workerd-linux-64@1.20260721.1': - resolution: {integrity: sha512-hon0lW4ZQ4boAVgaw+0ZFTNS8v5MWPWvK0HZnt4tDpKYnDUviLZawtUW3KqvFmCQTipVHl1S34j3J8Eqb93hGQ==} - engines: {node: '>=16'} - cpu: [x64] - os: [linux] - - '@cloudflare/workerd-linux-arm64@1.20260714.1': - resolution: {integrity: sha512-rMm3G+NirG2UdgHIRDdF1asNC6FqgIzZzkRG+VDhhDGcVxAQwvrMT1E38BivEvHr3G04MB4AfhcOczX0+GtRkQ==} - engines: {node: '>=16'} - cpu: [arm64] - os: [linux] - - '@cloudflare/workerd-linux-arm64@1.20260721.1': - resolution: {integrity: sha512-nAl+HRQqpX5b7xVwWcvLPZmCk8NQ2yjI0yvJTWcHiRswbMEg1ZZckVmjJUAn0PHzZARbCSyIV7v3UjM+SPRmIQ==} - engines: {node: '>=16'} - cpu: [arm64] - os: [linux] - - '@cloudflare/workerd-windows-64@1.20260714.1': - resolution: {integrity: sha512-cGqnU3Hg2YZS/k3SAqrMp1DjpdsyFde72tWltdl6ZT9+SFz/Zrk/8gyTU1TcxC4YApXeNVH5TyU5cOGPgUJ0pg==} - engines: {node: '>=16'} - cpu: [x64] - os: [win32] - - '@cloudflare/workerd-windows-64@1.20260721.1': - resolution: {integrity: sha512-9paFG5cMTKz/CRixnEEnZbe5uvFPBFSDthxJHANfCWhUtBj49GSL1FPIokIg+Q+H8DGJEExU0lL92LtxD0lTxQ==} - engines: {node: '>=16'} - cpu: [x64] - os: [win32] - - '@cloudflare/workers-types@4.20260702.1': - resolution: {integrity: sha512-mOhf5TUEB1m2vPrxtqoIGfz0fUC9xyxRDx5gWHy5s+OCo6dcV+g7wI1R7gYCMFohhqF/2y2xeKVwMwCJjfn/WA==} - - '@cspotcode/source-map-support@0.8.1': - resolution: {integrity: sha512-IchNf6dN4tHoMFIn/7OE8LWZ19Y6q/67Bmf6vnGREv8RSbBVb9LPJxEcnwrcwX6ixSvaiGoomAUvu4YSxXrVgw==} - engines: {node: '>=12'} - - '@emnapi/core@1.11.1': - resolution: {integrity: sha512-RSvbQmHzdKzNsLYa/wHrbc3KN4sYLKAdPZxqiM2HATqv/SBk2/ENSHpvXGaLOMcsAyz0poEGqkmmKYG3OWiJEQ==} - - '@emnapi/runtime@1.11.1': - resolution: {integrity: sha512-vgj7R3y3Wgx24IQaGPA/R6YFXLHVMOZ0uVEyIQPaWs+rd1AzfEMXlAC22FYwO1XkKR6NPsq7mUandH8oIRdZFw==} - - '@emnapi/runtime@1.11.2': - resolution: {integrity: sha512-kyOl3X0DuTiT1h2ft8r2fYO8JYtU9a9Xis/zBSiGArNaagCOWx90N1k2wxp18czFDH+OgcWGb5ZP/XMt3dcyPA==} - - '@emnapi/wasi-threads@1.2.2': - resolution: {integrity: sha512-c95qOXkHdydNKhscBTebqEC1CVAZpyqOfVfBzQ1qgzyl3gfeldUjIggDbIZgDKsHLgnsM+igH7TJ/eAasaVuMA==} - - '@esbuild/aix-ppc64@0.28.1': - resolution: {integrity: sha512-Svl7tq8k/08+p6CXPpRjQ1fKX+1odH/BQbb48fV6fj3CWHhsoIOoY87w1oHXm0qEpkIK3ZfVgp0hed3XBXzXMQ==} - engines: {node: '>=18'} - cpu: [ppc64] - os: [aix] - - '@esbuild/android-arm64@0.28.1': - resolution: {integrity: sha512-34EGEbCIAgosYz6goLcopX6Mo7NyGv9tfwEM2/7Ce2VcVRk568iSvniGWcUXIy7wEDR1wzolcxcriFVrWYcwBg==} - engines: {node: '>=18'} - cpu: [arm64] - os: [android] - - '@esbuild/android-arm@0.28.1': - resolution: {integrity: sha512-0k2F129Xdio1TdJfzJ8sy1Q47vUD2NnwdhiAf7drUN1EBTfPf4hsFCtmMgu/6m8JSzsBrlmVjudMBQqOfG8usQ==} - engines: {node: '>=18'} - cpu: [arm] - os: [android] - - '@esbuild/android-x64@0.28.1': - resolution: {integrity: sha512-dbwY7ltSMDWsRatcRpCnES4F+im88OCUgGZjy52shC7GqHRE/cYlxNbB4Z4UpJswpcc4Qxd2oE/ufM0p61IKng==} - engines: {node: '>=18'} - cpu: [x64] - os: [android] - - '@esbuild/darwin-arm64@0.28.1': - resolution: {integrity: sha512-TZbWkQY7kvTAXbXUT7uVACR5cMHsDiSz9z7ZKAX/RTq/WJEk3QyRr0wZpNhBDX+/0CtdqUIJlOiodQcta6tY3Q==} - engines: {node: '>=18'} - cpu: [arm64] - os: [darwin] - - '@esbuild/darwin-x64@0.28.1': - resolution: {integrity: sha512-zfdzgK9ACBNZLI/CyHTOx81SyNbM6YXn7rxSgX97VjyiPl9W1i4Ka4fgKECEoFCKGpvBj5qArWIGgQjOwkgskQ==} - engines: {node: '>=18'} - cpu: [x64] - os: [darwin] - - '@esbuild/freebsd-arm64@0.28.1': - resolution: {integrity: sha512-wG2EA8ENdEI0qhkSZMjfqrdY+ziCYCPMmtZjjIwOmXFjmyzEHn+UUxk5of+SYsjtfs3VpnlC7QLzSI5hY/rOAw==} - engines: {node: '>=18'} - cpu: [arm64] - os: [freebsd] - - '@esbuild/freebsd-x64@0.28.1': - resolution: {integrity: sha512-i7dZ9vQgnvSCzi/rYCXNgtF/U+eKZNJBzu3eTQbRgHnM7tNSizLOkRFAl3qzVc/Op/u5YkHHa4pf/3DOYHthLQ==} - engines: {node: '>=18'} - cpu: [x64] - os: [freebsd] - - '@esbuild/linux-arm64@0.28.1': - resolution: {integrity: sha512-yHs+0uc8+nvEAfAfxrWQKK5peSNzBc4PegcMO0EJ2hT71uA7vB8Ihg2e77R2P7SG5uYjPbHlLLmve4LLLRCf0g==} - engines: {node: '>=18'} - cpu: [arm64] - os: [linux] - - '@esbuild/linux-arm@0.28.1': - resolution: {integrity: sha512-qVXBOHQS+d5Y722GwJzJUtOLlX7km3CraOaGormF1pDtPd2C/l1SHRPgjLunLGe51Sh5YYWKMFDyV4SxgMQYTQ==} - engines: {node: '>=18'} - cpu: [arm] - os: [linux] - - '@esbuild/linux-ia32@0.28.1': - resolution: {integrity: sha512-d1z4ZuP0ajrfz/FhGT4vv278rX8KnPPJx8i5+AtK7TYbx9Le9F1hyzurZpkEyjkGa9dUGhQow4C1NmeGvqxN2w==} - engines: {node: '>=18'} - cpu: [ia32] - os: [linux] - - '@esbuild/linux-loong64@0.28.1': - resolution: {integrity: sha512-M5sRjUVZrkm1OAPR3dlOYzNmN+loZKGVi1VUQGrwuqLcbR6qeAz+famMhjASeH3YVKvZz+zT1jlh/keC3Rj/lg==} - engines: {node: '>=18'} - cpu: [loong64] - os: [linux] - - '@esbuild/linux-mips64el@0.28.1': - resolution: {integrity: sha512-mRObBZeHh2OxcBFPWE/FjylkRgZdYuiTR3vaTozquCGOH14iP9oN4x4Ge81CoIDYQrXmIxpFumJBu5MtZpnQJQ==} - engines: {node: '>=18'} - cpu: [mips64el] - os: [linux] - - '@esbuild/linux-ppc64@0.28.1': - resolution: {integrity: sha512-slScBsMAb3GFDcdrCgLwZtPYRoH2H/youv10QiZyRjmsP48fznoveWytSgCI/R0ZcUgpc0ZhIUEx6LHts8yrfQ==} - engines: {node: '>=18'} - cpu: [ppc64] - os: [linux] - - '@esbuild/linux-riscv64@0.28.1': - resolution: {integrity: sha512-kw0owk1o0GFETUJyW0jc0G4Yzs0BHZn0JDZ8JRT088vjJYX777BAs1fDGxAC+q831qOs2DTC96mNsG2opdfyyQ==} - engines: {node: '>=18'} - cpu: [riscv64] - os: [linux] - - '@esbuild/linux-s390x@0.28.1': - resolution: {integrity: sha512-/lAIjX8aYFRByhh6L5rYtPEDRqa9de/4V/juOXcta5frjvzXO4/sqEtyytse0g3zZFuWu5cDN0MkLz2qRDD2Ag==} - engines: {node: '>=18'} - cpu: [s390x] - os: [linux] - - '@esbuild/linux-x64@0.28.1': - resolution: {integrity: sha512-u/anNYF2mmVOEDwLtnQ1wOr3EZ9sTNGLWrsYGYwHWzGA3Si84IOkHXlbWTD1NB+9/1lcnweYKO54uhxZydNzfA==} - engines: {node: '>=18'} - cpu: [x64] - os: [linux] - - '@esbuild/netbsd-arm64@0.28.1': - resolution: {integrity: sha512-oks0DYbLwWMmaakTsCb+zL4E+aHRVLom9IJZOAthMQEPiQmydXHkziYEsGYRx0uNV/IjEKGAV941JzH02pflqw==} - engines: {node: '>=18'} - cpu: [arm64] - os: [netbsd] - - '@esbuild/netbsd-x64@0.28.1': - resolution: {integrity: sha512-aeL6lAnN89Hz43Mlh1G8ARasbuoYvSITDEx0tHh5b7jJnHcssqgjy9Yx430GDpmCa6OyrKoS0aNRjKundRizGg==} - engines: {node: '>=18'} - cpu: [x64] - os: [netbsd] - - '@esbuild/openbsd-arm64@0.28.1': - resolution: {integrity: sha512-MEFJe5C3R8pwXdZ5Y21oo6m7ePiS0d9pWucn99O/wvyJZChoIQKrQDxKrGeW8F5+T0okTHesAmDeiHDTIq0V/Q==} - engines: {node: '>=18'} - cpu: [arm64] - os: [openbsd] - - '@esbuild/openbsd-x64@0.28.1': - resolution: {integrity: sha512-i/ZLIOafE0Z8cI/XANJAixoJL/uRAoS2xOA3rb0xN+KK0K177cMAsQYkzHtBrtMXAKuAc7HGgcWiZ/sRC1Nxgw==} - engines: {node: '>=18'} - cpu: [x64] - os: [openbsd] - - '@esbuild/openharmony-arm64@0.28.1': - resolution: {integrity: sha512-ge+Z7EXFNt2BO1oAMsVpiQ8EwndV9i1xXerAeTIK7AtPs3bKFXQM7nlRxDSIUIMeueR1CNXxqztLzdNeReKBJg==} - engines: {node: '>=18'} - cpu: [arm64] - os: [openharmony] - - '@esbuild/sunos-x64@0.28.1': - resolution: {integrity: sha512-BEjgtECkL3vY+SaSQ6nzVfiALUeFxpawyp8Jmf5PtYhf1Ug40N1h/hxlhts+f1FvSvarEigdxS3BlSMI2PJLcQ==} - engines: {node: '>=18'} - cpu: [x64] - os: [sunos] - - '@esbuild/win32-arm64@0.28.1': - resolution: {integrity: sha512-lCv9eK/H6ZJWbE7bh2nw54CZ9M2nupBxJcTsdk/QQnWkdSjKGuxmmH8/GWrlT1eMmZfn4dGcCjRte397WqfQXA==} - engines: {node: '>=18'} - cpu: [arm64] - os: [win32] - - '@esbuild/win32-ia32@0.28.1': - resolution: {integrity: sha512-zvb/mB2bSCoJOpoCBgYKKpX6YM6mJBlBUVUtVj41DlZJVEB6/0CKlRYxP5wWl1C1ILiCoAU5wZZ4q1P3qeS6Eg==} - engines: {node: '>=18'} - cpu: [ia32] - os: [win32] - - '@esbuild/win32-x64@0.28.1': - resolution: {integrity: sha512-bm4Mowrv+GXMlpWX++EcXw/iLyd1o3+bJkC2DkWXYVvgZCqD/bSj9ctZeAMC3cIxgjRVR2Dufaiu4YPxr5gW1A==} - engines: {node: '>=18'} - cpu: [x64] - os: [win32] - - '@faker-js/faker@10.5.0': - resolution: {integrity: sha512-bsxD8WLS5lIj7aaoCx1YJkktqYj5vlBUE6HWzu2Q51ksrGJ0H737ECCKlFU7Yf8Br45z9t99frBp/J7kzbMPAg==} - engines: {node: ^20.19.0 || ^22.13.0 || ^23.5.0 || >=24.0.0, npm: '>=10'} - - '@floating-ui/core@1.8.0': - resolution: {integrity: sha512-0CIZ5itps/8x7BG8dEIhs53BvCUH2PCoogtakwRTut+Arm58sJooJ0AuZhLw2HJYIR5cMLNPBSS728sPho2khQ==} - - '@floating-ui/dom@1.8.0': - resolution: {integrity: sha512-yXSrzeHZBTZadLOlfyhCkJHNeLJnHRnRInwdZ40L7ZiaAtrBwoYlsDrX3v5zB1Utk7CLfzcOVnVVWoXEky7Ceg==} - - '@floating-ui/react-dom@2.1.9': - resolution: {integrity: sha512-JDjEFGCpImxDCA7JJKviA0M9+RtmJdj0m/NVU5IMgBK+AmZouAQQ7/+2GLH0GXXY0YMw9oXPB8hKdbPYg5QLYg==} - peerDependencies: - react: '>=16.8.0' - react-dom: '>=16.8.0' - - '@floating-ui/utils@0.2.12': - resolution: {integrity: sha512-HpCo8tmWzLVad5s2d19EhAz5zqrrQ6s69qd6moPMQvkOuSwDT1YgRfWSVuc4ennqrgv3OHppiOGMQ7oC13yIww==} - - '@grpc/grpc-js@1.14.4': - resolution: {integrity: sha512-k9Dj3DV/itK9D06Y8f190Qgop7/Ui+D0njFV3LHMPwPT75DpXLQohE9Wmz0QElrJnzsjB7KPWiKJbOl7IPDArQ==} - engines: {node: '>=12.10.0'} - - '@grpc/proto-loader@0.7.15': - resolution: {integrity: sha512-tMXdRCfYVixjuFK+Hk0Q1s38gV9zDiDJfWL3h1rv4Qc39oILCu1TRTDt7+fGUI8K4G1Fj125Hx/ru3azECWTyQ==} - engines: {node: '>=6'} - hasBin: true - - '@grpc/proto-loader@0.8.1': - resolution: {integrity: sha512-wtF6h+DY6M3YaDBPAmvuuA6jV8Sif9MjtOI5euKFWRgCDl5PeDpPsHR9u2l6St5ceY8AZgoNDww5+HvEsXFsGg==} - engines: {node: '>=6'} - hasBin: true - - '@hexagon/base64@1.1.28': - resolution: {integrity: sha512-lhqDEAvWixy3bZ+UOYbPwUbBkwBq5C1LAJ/xPC8Oi+lL54oyakv/npbA0aU2hgCsx/1NUd4IBvV03+aUBWxerw==} - - '@hono/node-server@1.19.14': - resolution: {integrity: sha512-GwtvgtXxnWsucXvbQXkRgqksiH2Qed37H9xHZocE5sA3N8O8O8/8FA3uclQXxXVzc9XBZuEOMK7+r02FmSpHtw==} - engines: {node: '>=18.14.1'} - peerDependencies: - hono: ^4 - - '@hugeicons/core-free-icons@4.2.3': - resolution: {integrity: sha512-fpiU0qFZkv4ABi23xJ2m4qNr0BBfuIaYjPboN8WDA6aj9D+OzXa7eykxKOpACZRuGbDz1U9S5DsNx1d5KNnsgA==} - - '@hugeicons/react@1.1.9': - resolution: {integrity: sha512-O+lWSWjbijoAvMCxn4K2bQWCGN5+mP1y5j+X99j23mXMj+s0X25fs71T6t9YJLaBodwmZdaewD27dzS/PiboQw==} - peerDependencies: - react: '>=16.0.0' - - '@img/colour@1.1.0': - resolution: {integrity: sha512-Td76q7j57o/tLVdgS746cYARfSyxk8iEfRxewL9h4OMzYhbW4TAcppl0mT4eyqXddh6L/jwoM75mo7ixa/pCeQ==} - engines: {node: '>=18'} - - '@img/sharp-darwin-arm64@0.34.5': - resolution: {integrity: sha512-imtQ3WMJXbMY4fxb/Ndp6HBTNVtWCUI0WdobyheGf5+ad6xX8VIDO8u2xE4qc/fr08CKG/7dDseFtn6M6g/r3w==} - engines: {node: ^18.17.0 || ^20.3.0 || >=21.0.0} - cpu: [arm64] - os: [darwin] - - '@img/sharp-darwin-x64@0.34.5': - resolution: {integrity: sha512-YNEFAF/4KQ/PeW0N+r+aVVsoIY0/qxxikF2SWdp+NRkmMB7y9LBZAVqQ4yhGCm/H3H270OSykqmQMKLBhBJDEw==} - engines: {node: ^18.17.0 || ^20.3.0 || >=21.0.0} - cpu: [x64] - os: [darwin] - - '@img/sharp-libvips-darwin-arm64@1.2.4': - resolution: {integrity: sha512-zqjjo7RatFfFoP0MkQ51jfuFZBnVE2pRiaydKJ1G/rHZvnsrHAOcQALIi9sA5co5xenQdTugCvtb1cuf78Vf4g==} - cpu: [arm64] - os: [darwin] - - '@img/sharp-libvips-darwin-x64@1.2.4': - resolution: {integrity: sha512-1IOd5xfVhlGwX+zXv2N93k0yMONvUlANylbJw1eTah8K/Jtpi15KC+WSiaX/nBmbm2HxRM1gZ0nSdjSsrZbGKg==} - cpu: [x64] - os: [darwin] - - '@img/sharp-libvips-linux-arm64@1.2.4': - resolution: {integrity: sha512-excjX8DfsIcJ10x1Kzr4RcWe1edC9PquDRRPx3YVCvQv+U5p7Yin2s32ftzikXojb1PIFc/9Mt28/y+iRklkrw==} - cpu: [arm64] - os: [linux] - libc: [glibc] - - '@img/sharp-libvips-linux-arm@1.2.4': - resolution: {integrity: sha512-bFI7xcKFELdiNCVov8e44Ia4u2byA+l3XtsAj+Q8tfCwO6BQ8iDojYdvoPMqsKDkuoOo+X6HZA0s0q11ANMQ8A==} - cpu: [arm] - os: [linux] - libc: [glibc] - - '@img/sharp-libvips-linux-ppc64@1.2.4': - resolution: {integrity: sha512-FMuvGijLDYG6lW+b/UvyilUWu5Ayu+3r2d1S8notiGCIyYU/76eig1UfMmkZ7vwgOrzKzlQbFSuQfgm7GYUPpA==} - cpu: [ppc64] - os: [linux] - libc: [glibc] - - '@img/sharp-libvips-linux-riscv64@1.2.4': - resolution: {integrity: sha512-oVDbcR4zUC0ce82teubSm+x6ETixtKZBh/qbREIOcI3cULzDyb18Sr/Wcyx7NRQeQzOiHTNbZFF1UwPS2scyGA==} - cpu: [riscv64] - os: [linux] - libc: [glibc] - - '@img/sharp-libvips-linux-s390x@1.2.4': - resolution: {integrity: sha512-qmp9VrzgPgMoGZyPvrQHqk02uyjA0/QrTO26Tqk6l4ZV0MPWIW6LTkqOIov+J1yEu7MbFQaDpwdwJKhbJvuRxQ==} - cpu: [s390x] - os: [linux] - libc: [glibc] - - '@img/sharp-libvips-linux-x64@1.2.4': - resolution: {integrity: sha512-tJxiiLsmHc9Ax1bz3oaOYBURTXGIRDODBqhveVHonrHJ9/+k89qbLl0bcJns+e4t4rvaNBxaEZsFtSfAdquPrw==} - cpu: [x64] - os: [linux] - libc: [glibc] - - '@img/sharp-libvips-linuxmusl-arm64@1.2.4': - resolution: {integrity: sha512-FVQHuwx1IIuNow9QAbYUzJ+En8KcVm9Lk5+uGUQJHaZmMECZmOlix9HnH7n1TRkXMS0pGxIJokIVB9SuqZGGXw==} - cpu: [arm64] - os: [linux] - libc: [musl] - - '@img/sharp-libvips-linuxmusl-x64@1.2.4': - resolution: {integrity: sha512-+LpyBk7L44ZIXwz/VYfglaX/okxezESc6UxDSoyo2Ks6Jxc4Y7sGjpgU9s4PMgqgjj1gZCylTieNamqA1MF7Dg==} - cpu: [x64] - os: [linux] - libc: [musl] - - '@img/sharp-linux-arm64@0.34.5': - resolution: {integrity: sha512-bKQzaJRY/bkPOXyKx5EVup7qkaojECG6NLYswgktOZjaXecSAeCWiZwwiFf3/Y+O1HrauiE3FVsGxFg8c24rZg==} - engines: {node: ^18.17.0 || ^20.3.0 || >=21.0.0} - cpu: [arm64] - os: [linux] - libc: [glibc] - - '@img/sharp-linux-arm@0.34.5': - resolution: {integrity: sha512-9dLqsvwtg1uuXBGZKsxem9595+ujv0sJ6Vi8wcTANSFpwV/GONat5eCkzQo/1O6zRIkh0m/8+5BjrRr7jDUSZw==} - engines: {node: ^18.17.0 || ^20.3.0 || >=21.0.0} - cpu: [arm] - os: [linux] - libc: [glibc] - - '@img/sharp-linux-ppc64@0.34.5': - resolution: {integrity: sha512-7zznwNaqW6YtsfrGGDA6BRkISKAAE1Jo0QdpNYXNMHu2+0dTrPflTLNkpc8l7MUP5M16ZJcUvysVWWrMefZquA==} - engines: {node: ^18.17.0 || ^20.3.0 || >=21.0.0} - cpu: [ppc64] - os: [linux] - libc: [glibc] - - '@img/sharp-linux-riscv64@0.34.5': - resolution: {integrity: sha512-51gJuLPTKa7piYPaVs8GmByo7/U7/7TZOq+cnXJIHZKavIRHAP77e3N2HEl3dgiqdD/w0yUfiJnII77PuDDFdw==} - engines: {node: ^18.17.0 || ^20.3.0 || >=21.0.0} - cpu: [riscv64] - os: [linux] - libc: [glibc] - - '@img/sharp-linux-s390x@0.34.5': - resolution: {integrity: sha512-nQtCk0PdKfho3eC5MrbQoigJ2gd1CgddUMkabUj+rBevs8tZ2cULOx46E7oyX+04WGfABgIwmMC0VqieTiR4jg==} - engines: {node: ^18.17.0 || ^20.3.0 || >=21.0.0} - cpu: [s390x] - os: [linux] - libc: [glibc] - - '@img/sharp-linux-x64@0.34.5': - resolution: {integrity: sha512-MEzd8HPKxVxVenwAa+JRPwEC7QFjoPWuS5NZnBt6B3pu7EG2Ge0id1oLHZpPJdn3OQK+BQDiw9zStiHBTJQQQQ==} - engines: {node: ^18.17.0 || ^20.3.0 || >=21.0.0} - cpu: [x64] - os: [linux] - libc: [glibc] - - '@img/sharp-linuxmusl-arm64@0.34.5': - resolution: {integrity: sha512-fprJR6GtRsMt6Kyfq44IsChVZeGN97gTD331weR1ex1c1rypDEABN6Tm2xa1wE6lYb5DdEnk03NZPqA7Id21yg==} - engines: {node: ^18.17.0 || ^20.3.0 || >=21.0.0} - cpu: [arm64] - os: [linux] - libc: [musl] - - '@img/sharp-linuxmusl-x64@0.34.5': - resolution: {integrity: sha512-Jg8wNT1MUzIvhBFxViqrEhWDGzqymo3sV7z7ZsaWbZNDLXRJZoRGrjulp60YYtV4wfY8VIKcWidjojlLcWrd8Q==} - engines: {node: ^18.17.0 || ^20.3.0 || >=21.0.0} - cpu: [x64] - os: [linux] - libc: [musl] - - '@img/sharp-wasm32@0.34.5': - resolution: {integrity: sha512-OdWTEiVkY2PHwqkbBI8frFxQQFekHaSSkUIJkwzclWZe64O1X4UlUjqqqLaPbUpMOQk6FBu/HtlGXNblIs0huw==} - engines: {node: ^18.17.0 || ^20.3.0 || >=21.0.0} - cpu: [wasm32] - - '@img/sharp-win32-arm64@0.34.5': - resolution: {integrity: sha512-WQ3AgWCWYSb2yt+IG8mnC6Jdk9Whs7O0gxphblsLvdhSpSTtmu69ZG1Gkb6NuvxsNACwiPV6cNSZNzt0KPsw7g==} - engines: {node: ^18.17.0 || ^20.3.0 || >=21.0.0} - cpu: [arm64] - os: [win32] - - '@img/sharp-win32-ia32@0.34.5': - resolution: {integrity: sha512-FV9m/7NmeCmSHDD5j4+4pNI8Cp3aW+JvLoXcTUo0IqyjSfAZJ8dIUmijx1qaJsIiU+Hosw6xM5KijAWRJCSgNg==} - engines: {node: ^18.17.0 || ^20.3.0 || >=21.0.0} - cpu: [ia32] - os: [win32] - - '@img/sharp-win32-x64@0.34.5': - resolution: {integrity: sha512-+29YMsqY2/9eFEiW93eqWnuLcWcufowXewwSNIT6UwZdUUCrM3oFjMWH/Z6/TMmb4hlFenmfAVbpWeup2jryCw==} - engines: {node: ^18.17.0 || ^20.3.0 || >=21.0.0} - cpu: [x64] - os: [win32] - - '@jest/schemas@29.6.3': - resolution: {integrity: sha512-mo5j5X+jIZmJQveBKeS/clAueipV7KgiX1vMgCxam1RNYiqE1w62n0/tJJnHtjW8ZHcQco5gY85jA3mi0L+nSA==} - engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} - - '@jest/types@29.6.3': - resolution: {integrity: sha512-u3UPsIilWKOM3F9CXtrG8LEJmNxwoCQC/XVj4IKYXvvpx7QIi/Kg1LI5uDmDpKlac62NUtX7eLjRh+jVZcLOzw==} - engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} - - '@jridgewell/gen-mapping@0.3.13': - resolution: {integrity: sha512-2kkt/7niJ6MgEPxF0bYdQ6etZaA+fQvDcLKckhy1yIQOzaoKjBBjSj63/aLVjYE3qhRt5dvM+uUyfCg6UKCBbA==} - - '@jridgewell/remapping@2.3.5': - resolution: {integrity: sha512-LI9u/+laYG4Ds1TDKSJW2YPrIlcVYOwi2fUC6xB43lueCjgxV4lffOCZCtYFiH6TNOX+tQKXx97T4IKHbhyHEQ==} - - '@jridgewell/resolve-uri@3.1.2': - resolution: {integrity: sha512-bRISgCIjP20/tbWSPWMEi54QVPRZExkuD9lJL+UIxUKtwVJA8wW1Trb1jMs1RFXo1CBTNZ/5hpC9QvmKWdopKw==} - engines: {node: '>=6.0.0'} - - '@jridgewell/sourcemap-codec@1.5.5': - resolution: {integrity: sha512-cYQ9310grqxueWbl+WuIUIaiUaDcj7WOq5fVhEljNVgRfOUhY9fy2zTvfoqWsnebh8Sl70VScFbICvJnLKB0Og==} - - '@jridgewell/trace-mapping@0.3.31': - resolution: {integrity: sha512-zzNR+SdQSDJzc8joaeP8QQoCQr8NuYx2dIIytl1QeBEZHJ9uW6hebsrYgbz8hJwUQao3TWCMtmfV8Nu1twOLAw==} - - '@jridgewell/trace-mapping@0.3.9': - resolution: {integrity: sha512-3Belt6tdc8bPgAtbcmdtNJlirVoTmEb5e2gC94PnkwEW9jI6CAHUeoG85tjWP5WquqfavoMtMwiG4P926ZKKuQ==} - - '@js-sdsl/ordered-map@4.4.2': - resolution: {integrity: sha512-iUKgm52T8HOE/makSxjqoWhe95ZJA1/G1sYsGev2JDKUSS14KAgg1LHb+Ba+IPow0xflbnSkOsZcO08C7w1gYw==} - - '@levischuck/tiny-cbor@0.2.11': - resolution: {integrity: sha512-llBRm4dT4Z89aRsm6u2oEZ8tfwL/2l6BwpZ7JcyieouniDECM5AqNgr/y08zalEIvW3RSK4upYyybDcmjXqAow==} - - '@lingui/babel-plugin-lingui-macro@6.5.0': - resolution: {integrity: sha512-p80TT6WMGXpFnAe9nP9ad/BJsADBxBvTa1QFy07tZqpg/5G5eOxUn641koQjHHr/EQ3yNstLohPV9aAVoKKsiA==} - engines: {node: '>=22.19.0'} - - '@lingui/conf@6.5.0': - resolution: {integrity: sha512-zfR4uuzev2mz9ayVB2AwEQlzodDKgMcq/OR3pdHiJFCl80UQRsFA5Oqe67TmxA7SSbTygK+U0nS0qrotmXjyrA==} - engines: {node: '>=22.19.0'} - - '@lingui/core@6.5.0': - resolution: {integrity: sha512-zAoD/fIMNqtgvH15BJBtyHSMRssnMSumCEggj4c4kGYU0hh5rWn1JoOw/xLbA0Xe2iH4oBG9/SDnvVjJ4VvWrA==} - engines: {node: '>=22.19.0'} - peerDependencies: - babel-plugin-macros: 2 || 3 - peerDependenciesMeta: - babel-plugin-macros: - optional: true - - '@lingui/message-utils@6.5.0': - resolution: {integrity: sha512-qZZijYERMADeWVJbpQGyFxicW3F17CjtR2hnzo0VgT4cICPE27e0zBieQHxuUD/pj4dmyOOldVhWhHs5CN6ABw==} - engines: {node: '>=22.19.0'} - - '@lunora/advisor@1.0.0-alpha.33': - resolution: {integrity: sha512-RkrNaxzUIAU06BWqIzTgWpE131aL9HKlxBqtJnsXddZtIrub/Ysps4xb7ddtv6LqPUbSrkq4IgvVtp2iIT2+IQ==} - engines: {node: ^22.15.0 || >=24.11.0} - - '@lunora/agent@1.0.0-alpha.9': - resolution: {integrity: sha512-zEscfULS0fh5khpSsWHpcGEHWZpOCe5nhxhDLvvQLibZttJHYMKnNdwOV3uMIiZPliI1RKMjD0OtlzrnO+DDEQ==} - engines: {node: ^22.15.0 || >=24.11.0} - - '@lunora/ai@1.0.0-alpha.24': - resolution: {integrity: sha512-2eNTvES3QcpKES6h6hUgyRRInz4a9uPh8gwSi2ghnaey9hNZq7P93NeYeQoNZFjiBqywTmyY04z1zkjC15UJCw==} - engines: {node: ^22.15.0 || >=24.11.0} - peerDependencies: - '@ai-sdk/anthropic': 4.0.16 - '@ai-sdk/openai': 4.0.16 - peerDependenciesMeta: - '@ai-sdk/anthropic': - optional: true - '@ai-sdk/openai': - optional: true - - '@lunora/auth@1.0.0-alpha.36': - resolution: {integrity: sha512-tCDS9DU/S2zyn/4lCOFLhF/1fnDe5a2tDpv+/5q8T7xNgRc+t3byrGCsK1udneY7Rt4egH9NSrjDZ7cW8ju6Hw==} - engines: {node: ^22.15.0 || >=24.11.0} - - '@lunora/bindings@1.0.0-alpha.10': - resolution: {integrity: sha512-KNZhIQ7WpB2AJT5NXnc7456XQPYGQsXj2NCpEzH3e/ltQurS+p6mAba3hekUAxSYSiTKF8MPsQIBJ40nGb6B+A==} - engines: {node: ^22.15.0 || >=24.11.0} - - '@lunora/cli@1.0.0-alpha.97': - resolution: {integrity: sha512-CJuRYaoAdRnY76d+55SBQorHNSzGsYrUIukcTMW2YDmAFURDyVCD/tCG9lIB6worid4qC9iZ94v1KwG2Mvjfaw==} - engines: {node: ^22.15.0 || >=24.11.0} - hasBin: true - - '@lunora/client@1.0.0-alpha.27': - resolution: {integrity: sha512-42Fi8R5KEw4fzYEJjgQs1aEhCgf/9h+d2UdgrSe1mxM1bNaW/ogJkccy6gk2ZKtlfR4XN3p38QDQWO/QPJNU9g==} - engines: {node: ^22.15.0 || >=24.11.0} - - '@lunora/codegen@1.0.0-alpha.52': - resolution: {integrity: sha512-CtRkXDtn8BD1hZIaZFoqSRBLU4ieELXIp4yjdtoRcwkZ0NO0OgZHAzKdwzdkJ6CEu3DO0jw5GA+3C1E5cNp47w==} - engines: {node: ^22.15.0 || >=24.11.0} - - '@lunora/config@1.0.0-alpha.78': - resolution: {integrity: sha512-O98w3XnEwAJEfTcpvhoeJjBY8hEHJcdZZYUjH10fcnsfcZeDS+7Na5tJ9xTkMeonV0VIBZLE23GGQMFZL5jKlQ==} - engines: {node: ^22.15.0 || >=24.11.0} - peerDependencies: - '@lunora/studio': '>=1.0.0-alpha.50 <2.0.0-0' - peerDependenciesMeta: - '@lunora/studio': - optional: true - - '@lunora/container@1.0.0-alpha.14': - resolution: {integrity: sha512-NF2/jwn026x6pEzoizJdUi9pcwisgl+JKCkVAq+AKGjbmA9kED0McbOc6osnpUcaAojV9eygwCDdLQlWLrFl4w==} - engines: {node: ^22.15.0 || >=24.11.0} - - '@lunora/d1@1.0.0-alpha.37': - resolution: {integrity: sha512-HxqNikMv/qVKquYMPVEtOWQOIxIwMa9lY6bGgSH8wUWio6yAHrXt9OLYJwTHN4v0lW12LpalnxpXZGrPpVLAaQ==} - engines: {node: ^22.15.0 || >=24.11.0} - - '@lunora/db@1.0.0-alpha.27': - resolution: {integrity: sha512-zJBaP0PRX72kFLM92KCBa1EtxK1YcEzkK7NJpxddaUr5qdXBt+6/WGGwGv7oQ2dhb0YrNHQvLtt8tyk5xxYkAA==} - engines: {node: ^22.15.0 || >=24.11.0} - peerDependencies: - '@tanstack/db': ^0.6.0 - '@tanstack/offline-transactions': ^1.0.0 - - '@lunora/do@1.0.0-alpha.41': - resolution: {integrity: sha512-sC9vb1O034H0UpQmJBSmz4wqn5l+7EBb2kiILjSTQMQJB6U/mjdKKsx20tuVFpntKa6lXh1lj7n+vTZSY7IJXQ==} - engines: {node: ^22.15.0 || >=24.11.0} - - '@lunora/errors@1.0.0-alpha.6': - resolution: {integrity: sha512-IBn86WYhsT2bZrwnDrp88aIn+GENPzr9qtjHsuwU3bcbNrjQoe1GKbMMCmPP6AVl6mAe3/6UqJhIE3Cw5r8MIA==} - engines: {node: ^22.15.0 || >=24.11.0} - - '@lunora/errors@1.0.0-alpha.7': - resolution: {integrity: sha512-8OAPVm28DDbz6ygJA9Jju0Ik1fRf85vO1HeM295bD0C67vCbg7RhEUh9NCfhNJqtU5Mq0PF6IM3sSpw8TLxQHw==} - engines: {node: ^22.15.0 || >=24.11.0} - - '@lunora/fingerprint@1.0.0-alpha.3': - resolution: {integrity: sha512-Yzn7jvDWPFEaWIwXXWYC0DPMvDkhX26vv2hdlGIqIyHLK3lATdfmjcQ3WSqn5PMBWzYN/6NKLjQ7MTP/OiDYpw==} - engines: {node: ^22.15.0 || >=24.11.0} - - '@lunora/flags@1.0.0-alpha.15': - resolution: {integrity: sha512-vdlS6WqWGjZCa+pVLasHORtO0iOUSTt0Njn/ch4HiDSbGpbipKoi/9h9n9h9D7wOsJXfLmY3nM7tbYBI0ZduOQ==} - engines: {node: ^22.15.0 || >=24.11.0} - peerDependencies: - '@cloudflare/flagship': ^0.4.2 - '@openfeature/web-sdk': ^1.9.0 - peerDependenciesMeta: - '@cloudflare/flagship': - optional: true - '@openfeature/web-sdk': - optional: true - - '@lunora/mail@1.0.0-alpha.17': - resolution: {integrity: sha512-p8pSGzjp60LaD/nY5A4f6Q9yjL2KOAQfhqxGo78r9Cx0mnymSD6aQSCKLWliw7iYChJGzX/lYNWpEHqtrnZs8A==} - engines: {node: ^22.15.0 || >=24.11.0} - peerDependencies: - react: ^19.2.7 - peerDependenciesMeta: - react: - optional: true - - '@lunora/queue@1.0.0-alpha.9': - resolution: {integrity: sha512-1czZdLukS6ydRoL5ky+hjVp8/7npKVbIoui8+cizV1nTT4QEXVa9Q6iQC4N6NKSdUiyyvxLmAoWdHLnfxo4pbA==} - engines: {node: ^22.15.0 || >=24.11.0} - - '@lunora/ratelimit@1.0.0-alpha.9': - resolution: {integrity: sha512-QGoBK6PfaGbD2kkj/h1GHfDwHksFc3SOGvxb1Z1ySPi6x8wruOcAw3z2bYyztYiy0M5DBgBgQSjjdu2iV6mraQ==} - engines: {node: ^22.15.0 || >=24.11.0} - - '@lunora/react@1.0.0-alpha.31': - resolution: {integrity: sha512-Cg6v3i/KVRk+Qpgu+VrInhw0Ln61M8h35Wa77WxwHLi6VtO6xD3re6LxE5PfA9YGJDfNCDnqu+ApCYkK+tJQrw==} - engines: {node: ^22.15.0 || >=24.11.0} - peerDependencies: - '@tanstack/react-query': ^5.101.0 - react: ^19.2.7 - react-dom: ^19.2.7 - peerDependenciesMeta: - react-dom: - optional: true - - '@lunora/runtime@1.0.0-alpha.35': - resolution: {integrity: sha512-GOQ+yfLGuA1/zE/9c+HHF1CEJG5NlfATict0L25kz6krXJKwI+f047aUiEvuMAQw21qVUkinDkw8WJmPMz6Wgg==} - engines: {node: ^22.15.0 || >=24.11.0} - - '@lunora/scheduler@1.0.0-alpha.11': - resolution: {integrity: sha512-WL69zUMEIBg20SgSYW33IHuulsI1RF+wG3NQPiT9VzWiL1aiO0phjmnRNO1k2rfM0ZdeGJ3Uq4chy5p1D3fAOw==} - engines: {node: ^22.15.0 || >=24.11.0} - - '@lunora/seed@1.0.0-alpha.29': - resolution: {integrity: sha512-wrlvkSLSSv0TW3z8EBcb16ZWzqC9fzIqhG4nuUhwe30L6tJxYpyDwtf5B2JWjBvpKvuWU/N9KKPicZg/Ssy2Gg==} - engines: {node: ^22.15.0 || >=24.11.0} - peerDependencies: - '@lunora/server': '>=1.0.0-alpha.24 <2.0.0-0' - '@lunora/values': '>=1.0.0-alpha.7 <2.0.0-0' - - '@lunora/server@1.0.0-alpha.30': - resolution: {integrity: sha512-PPmxINwxI9NCkMu1FEMczIehVRh9zj5H46bupj9gu3Q0k4sQy9/gb1+0aJP/W5WKo7kPpgzrqNrepqSllcgqMw==} - engines: {node: ^22.15.0 || >=24.11.0} - - '@lunora/sql-store@1.0.0-alpha.38': - resolution: {integrity: sha512-Yo0taNzAE5ar6gV6vLxC1CnISCRvh6Zk+CPx7BMqtLL8KkumIeQrop9j5Jq2cRGc0mv1RjpyK32yDPWpaBAg9w==} - engines: {node: ^22.15.0 || >=24.11.0} - - '@lunora/studio@1.0.0-alpha.58': - resolution: {integrity: sha512-GseUcrcAqS6fV5zxsEtSpsa1CSSmIa/h0wkRj3ndUJljOCJVcbBBedGbrMsybv2I0FEUkaSVwUYw9wTvBVKcyw==} - engines: {node: ^22.15.0 || >=24.11.0} - peerDependencies: - react: ^19.2.7 - react-dom: ^19.2.7 - - '@lunora/values@1.0.0-alpha.10': - resolution: {integrity: sha512-kHY0iarVf5WqekBOkAmeiSnbb1bM9I0iIjmnmZflJXC40CgmATRni25bCpeX3MZASdiPEGaD7c1Al3oMpII5/g==} - engines: {node: ^22.15.0 || >=24.11.0} - - '@lunora/vite@1.0.0-alpha.78': - resolution: {integrity: sha512-m+KCkYJSGW6QIV/YYIzHkK9I0qZ/6KPPGEga7Azf4duzQ7dV5JFkbpO8LZoAr68jcfBO15TPPCmtDXgHiJPfMg==} - engines: {node: ^22.15.0 || >=24.11.0} - peerDependencies: - '@lunora/studio': '>=1.0.0-alpha.50 <2.0.0-0' - vite: ^8.1.5 - peerDependenciesMeta: - '@lunora/studio': - optional: true - - '@lunora/workflow@1.0.0-alpha.12': - resolution: {integrity: sha512-mmV9YuKkpCBCdnf1vs+a8UIAUB8nsQbzNKjbPC5JV46uZGeMF7Cmo1wekXcscCKbeK1PoIvX52K6WrwZxObISA==} - engines: {node: ^22.15.0 || >=24.11.0} - - '@messageformat/date-skeleton@1.1.0': - resolution: {integrity: sha512-rmGAfB1tIPER+gh3p/RgA+PVeRE/gxuQ2w4snFWPF5xtb5mbWR7Cbw7wCOftcUypbD6HVoxrVdyyghPm3WzP5A==} - - '@messageformat/parser@5.1.1': - resolution: {integrity: sha512-3p0YRGCcTUCYvBKLIxtDDyrJ0YijGIwrTRu1DT8gIviIDZru8H23+FkY6MJBzM1n9n20CiM4VeDYuBsrrwnLjg==} - - '@modelcontextprotocol/sdk@1.29.0': - resolution: {integrity: sha512-zo37mZA9hJWpULgkRpowewez1y6ML5GsXJPY8FI0tBBCd77HEvza4jDqRKOXgHNn867PVGCyTdzqpz0izu5ZjQ==} - engines: {node: '>=18'} - peerDependencies: - '@cfworker/json-schema': ^4.1.1 - zod: ^3.25 || ^4.0 - peerDependenciesMeta: - '@cfworker/json-schema': - optional: true - - '@napi-rs/wasm-runtime@1.1.6': - resolution: {integrity: sha512-ZLv/JdUfkvOy9eCnnBaGfiO+XimbjebAeO+MRQqD/B+FR1tnRN0tpKSJHRbE8sFfS6aqsXZ67TQjfwfsxULVbg==} - peerDependencies: - '@emnapi/core': ^1.7.1 - '@emnapi/runtime': ^1.7.1 - - '@noble/ciphers@2.2.0': - resolution: {integrity: sha512-Z6pjIZ/8IJcCGzb2S/0Px5J81yij85xASuk1teLNeg75bfT07MV3a/O2Mtn1I2se43k3lkVEcFaR10N4cgQcZA==} - engines: {node: '>= 20.19.0'} - - '@noble/hashes@2.2.0': - resolution: {integrity: sha512-IYqDGiTXab6FniAgnSdZwgWbomxpy9FtYvLKs7wCUs2a8RkITG+DFGO1DM9cr+E3/RgADRpFjrKVaJ1z6sjtEg==} - engines: {node: '>= 20.19.0'} - - '@openfeature/core@1.11.0': - resolution: {integrity: sha512-P0u3/ht/oZCQT89fOed+laLk0kZR529a825cS02uPDglxXbE97irWYpDAeRGGVETIzKfuy+H2g8c3Ccv/tXJNQ==} - - '@openfeature/server-sdk@1.22.0': - resolution: {integrity: sha512-YBrf6SQkn0FNB/dRAtLEs41dvFMUE8CrQTwI+iLaMFUIqWlqGNJfGnulKSneEKS+2OgKTAC6DdmKcZ6tK7kBcg==} - engines: {node: '>=20'} - peerDependencies: - '@openfeature/core': ^1.11.0 - - '@opentelemetry/semantic-conventions@1.43.0': - resolution: {integrity: sha512-eSYWTm620tTk45EKSedaUL8MFYI8hW164hIXsgIHyxu3VobUB3fFCu5t0hQby6OoWRPsG1KkKUG2M5UadiLiVg==} - engines: {node: '>=14'} - - '@oxc-project/types@0.139.0': - resolution: {integrity: sha512-r9gHphtCs+1M7J0pw6Sn/hh/Wpa/iQrOOkrNAlVLF/gHq+/CJmHIWKKUUhdWjcD6CIa8idarspCsASiXCXvFUw==} - - '@oxlint/binding-android-arm-eabi@1.75.0': - resolution: {integrity: sha512-lutovtFzJqlRaqpZrCqSSGaHZzl9nIxxpjLzhSRLunN6dCLylj0uzlCyQGaQDIys7rrv8kVXiFO+R4Zpn0bX7g==} - engines: {node: ^20.19.0 || >=22.12.0} - cpu: [arm] - os: [android] - - '@oxlint/binding-android-arm64@1.75.0': - resolution: {integrity: sha512-hXI0hDgHkw4w5nfru72aG7y+2iQJmC4waH/KV6H/hbgA6yAP5jYNx0P9yug15Hs0tWl/+mda3Jjn/2gmDT48tw==} - engines: {node: ^20.19.0 || >=22.12.0} - cpu: [arm64] - os: [android] - - '@oxlint/binding-darwin-arm64@1.75.0': - resolution: {integrity: sha512-D91BWbK/dMYfCcrghspPIuKs2D9LF4Z/OabVSQjw1AO6PWxArD7teDA48bm0ySFqWDaPVqmQRl5GMWNglTXyrQ==} - engines: {node: ^20.19.0 || >=22.12.0} - cpu: [arm64] - os: [darwin] - - '@oxlint/binding-darwin-x64@1.75.0': - resolution: {integrity: sha512-02mpwzf12BonZ6PT0TuQoomvEh2kVl2WGBIKWezCyToIS+rYkQZ6GXnARBAl9A4Ovm2V+Xe7M4KretyqmmcnJQ==} - engines: {node: ^20.19.0 || >=22.12.0} - cpu: [x64] - os: [darwin] - - '@oxlint/binding-freebsd-x64@1.75.0': - resolution: {integrity: sha512-qZJgLnDaBsiL5YESx2t/TZ8eXkL9fEkKoXEdzegROhlz9A0lgyGnZ0dAzJrh7LJAHQl2K9RdRueN2s/9N7+odg==} - engines: {node: ^20.19.0 || >=22.12.0} - cpu: [x64] - os: [freebsd] - - '@oxlint/binding-linux-arm-gnueabihf@1.75.0': - resolution: {integrity: sha512-7XlaWA5BJD3XpCfrEqjEe6Zseeb14S7QGa304XfwKignRaKQ+eIj775BQ7nIslggWickl4IsPUFqJ+/gAyNHVg==} - engines: {node: ^20.19.0 || >=22.12.0} - cpu: [arm] - os: [linux] - - '@oxlint/binding-linux-arm-musleabihf@1.75.0': - resolution: {integrity: sha512-av6Tpv8yrcMMMOadOqENBhlsLRcGFXXwoQ0hzHhsmS9FJ4Wioy8we427GbcMe2XTxmL2e60T67H1Dyr3up+tAA==} - engines: {node: ^20.19.0 || >=22.12.0} - cpu: [arm] - os: [linux] - - '@oxlint/binding-linux-arm64-gnu@1.75.0': - resolution: {integrity: sha512-WcUhd8fHT5plrA14lANevl+hOl815mVI5t2hU21oFWrZKFXIVV/Sr4rWQV0NzSvzBupbMLNc5ErEA6Ehxh5jMg==} - engines: {node: ^20.19.0 || >=22.12.0} - cpu: [arm64] - os: [linux] - libc: [glibc] - - '@oxlint/binding-linux-arm64-musl@1.75.0': - resolution: {integrity: sha512-UWzp5wRHFe/ESO3+eEaxXsTkYTGLYjnTsi/I5neEacXSItQ6WNleapfOAeA4x2b8nyhJ4uQxqvtv9pHv8kWJtQ==} - engines: {node: ^20.19.0 || >=22.12.0} - cpu: [arm64] - os: [linux] - libc: [musl] - - '@oxlint/binding-linux-ppc64-gnu@1.75.0': - resolution: {integrity: sha512-XEVRwGMLKCUKrvhLAz4F6AIh8MJrQVdSZtAmPpRZt9tGPsUnamPOcl3dS/ZQzJnar/Ymgc//+xho0L60Emzuxg==} - engines: {node: ^20.19.0 || >=22.12.0} - cpu: [ppc64] - os: [linux] - libc: [glibc] - - '@oxlint/binding-linux-riscv64-gnu@1.75.0': - resolution: {integrity: sha512-mAG4DUXqfLC8cTjMD2kt3jDmVzFREYtDyeLNdLdsCcBc4Zbl2EMuiFektGBilQwkNjYnMvCqJs55U+Hyb+b+jw==} - engines: {node: ^20.19.0 || >=22.12.0} - cpu: [riscv64] - os: [linux] - libc: [glibc] - - '@oxlint/binding-linux-riscv64-musl@1.75.0': - resolution: {integrity: sha512-95hrAvriAlI+pekSomTFIn0+bawMDlDwTNVmdjsFusTHyL2JWh7TWvRNG/Lkim72uN8OiCcO9wcaC6omLP5E3w==} - engines: {node: ^20.19.0 || >=22.12.0} - cpu: [riscv64] - os: [linux] - libc: [musl] - - '@oxlint/binding-linux-s390x-gnu@1.75.0': - resolution: {integrity: sha512-4b6f2+FrtruAESrCqIKcrarzfrSx+wk2QNcp+RT91/Prc+pMQMAfyZ1rG1c3tFQNl8Bc616tx40uNXyxNBRPbQ==} - engines: {node: ^20.19.0 || >=22.12.0} - cpu: [s390x] - os: [linux] - libc: [glibc] - - '@oxlint/binding-linux-x64-gnu@1.75.0': - resolution: {integrity: sha512-nshAhrUvXFUWOvqQ2soIw7HFNWvpvEV4o0cYSqPtzLiPF5gKyYTDOOTJ6Rn8g8K/iGvPIrbDA4v8+5MvnjJrrg==} - engines: {node: ^20.19.0 || >=22.12.0} - cpu: [x64] - os: [linux] - libc: [glibc] - - '@oxlint/binding-linux-x64-musl@1.75.0': - resolution: {integrity: sha512-e4jNxLKnxLC6sYBQRxrI2pgIIxnmMtF8U/VwNYcjTT/CLS+spH624cYVnj07bTKwaEWT37/e025isOs6j/0xqA==} - engines: {node: ^20.19.0 || >=22.12.0} - cpu: [x64] - os: [linux] - libc: [musl] - - '@oxlint/binding-openharmony-arm64@1.75.0': - resolution: {integrity: sha512-hZ2lH+1qLf/DiEP9UWuQTK2JWj/BgvMB4jhIV4SmNU1wfEiYYX4TynQyAZXx0j9X4qRYizAL042SKaV+8ynh4w==} - engines: {node: ^20.19.0 || >=22.12.0} - cpu: [arm64] - os: [openharmony] - - '@oxlint/binding-win32-arm64-msvc@1.75.0': - resolution: {integrity: sha512-Ilj6PNzGDS3bCU0MSJH7Msh0NhH+T/mRp2shwg+q+GHeVlPwP5LEboW96aW+3kVKFk6zYZy1Xi5pZkqZh6X8KQ==} - engines: {node: ^20.19.0 || >=22.12.0} - cpu: [arm64] - os: [win32] - - '@oxlint/binding-win32-ia32-msvc@1.75.0': - resolution: {integrity: sha512-QVit2nOEOiPhkmsrksPSkoGCdnZRNkspt8fwoYyP09te1VEbnSj4LAxua4rc8FKTmWkySVe05j8iz9GXYfF1AQ==} - engines: {node: ^20.19.0 || >=22.12.0} - cpu: [ia32] - os: [win32] - - '@oxlint/binding-win32-x64-msvc@1.75.0': - resolution: {integrity: sha512-DSxnNkBUAYARPwJtR12Ig3deWr8w0H997xP6jy33i+e0SyYJw8FKuz4+cZtpmPEhQmvlPJE3X/2vNxDmLkd/rA==} - engines: {node: ^20.19.0 || >=22.12.0} - cpu: [x64] - os: [win32] - - '@peculiar/asn1-android@2.8.0': - resolution: {integrity: sha512-skLbS+IOGv1lUgDqtChr8xvtvEr3HMse/JGBaL2r1J1o/n7a8wqOrovMtlRq/UXLhxvmLaONP67hwtshgzwfzA==} - - '@peculiar/asn1-cms@2.8.0': - resolution: {integrity: sha512-NgekZOrSJFSBFLFoLfwePguAWAx7z1+f2TEsWFUMyiqqfntZ4+S/S5hzqME3q4pCA0iOsFKdwiQ35dwY24eVqA==} - - '@peculiar/asn1-csr@2.8.0': - resolution: {integrity: sha512-akbF8+uvleHs8sejNPQxwmVFuInAg6FMNHOwMILXfP518YfFJwdR3jr6oNUPOaEJfuEhn/vkNOCIT6ASUd4mbg==} - - '@peculiar/asn1-ecc@2.8.0': - resolution: {integrity: sha512-ohwlk+u9Rv2NOAY1c6MfHj45ATVF8R1DUN/WCgABiRtLi2ZftlZWZX7KvpAbU8v9xPcmoILfELeEABj/rn18AQ==} - - '@peculiar/asn1-pfx@2.8.0': - resolution: {integrity: sha512-5yof1ytoB++RQtaFbqSUJ8pxDJtZT6vbVqZ8XoJ61ph7UjNVvfFwAilnCodqkNsAodpy13gDhoxZXw00pghnyg==} - - '@peculiar/asn1-pkcs8@2.8.0': - resolution: {integrity: sha512-qAKXtLpBEw9LqhKpjw3ajZSXlBur+ipW+y2ivVBQAG6F6qRx94yO+1ZR4mvw+YaCfKSaOzLeYEzsPaBp4SJELA==} - - '@peculiar/asn1-pkcs9@2.8.0': - resolution: {integrity: sha512-b5nDWCnkV60+cQ141D6sVVwK9nz64R5n3zSVnklGd+ECdkW2Ol3U1a6yYFlalpSOaD557yuJB64A+q42jG7lUQ==} - - '@peculiar/asn1-rsa@2.8.0': - resolution: {integrity: sha512-zHEUlCqB2mk7x2lxDwHHJy7hWZOPdGHVlsmITWKB5/PbQo61atbu9PJ/0r9dQNMwFzbKPXZ8uK8/91eUhRznSg==} - - '@peculiar/asn1-schema@2.8.0': - resolution: {integrity: sha512-7YT0U/ze0tF2QOBbE15gKZwy5tvgGyLRiRHLzhlbOpf7BT032oBSd0haZqXn5W6l26WLlu3dyxzjM+2638/z2Q==} - - '@peculiar/asn1-x509-attr@2.8.0': - resolution: {integrity: sha512-tHjkfS/qhMnmrlB2J9NhflQlQ7In3khO3CfmVrriOlpTeErY9ZIKOso1hQ5JQiyrJ7ShvqVPk7E5fQmbclkSKA==} - - '@peculiar/asn1-x509@2.8.0': - resolution: {integrity: sha512-N0CMuhWUzsWEVq6F1q9X6+VKUnWzSW+cSVg+aPaGGwDdbFoFWTYgin5MHwXgpWd6y9COMBxnfy/Qc+Xc7F0Zwg==} - - '@peculiar/utils@2.0.3': - resolution: {integrity: sha512-+oL3HPFRIZ1St2K50lWCXiioIgSoxzz7R1J3uF6neO2yl1sgmpgY6XXJH4BdpoDkMWznQTeYF6oWNDZLCdQ4eQ==} - - '@peculiar/x509@1.14.3': - resolution: {integrity: sha512-C2Xj8FZ0uHWeCXXqX5B4/gVFQmtSkiuOolzAgutjTfseNOHT3pUjljDZsTSxXFGgio54bCzVFqmEOUrIVk8RDA==} - engines: {node: '>=20.0.0'} - - '@poppinss/colors@4.1.6': - resolution: {integrity: sha512-H9xkIdFswbS8n1d6vmRd8+c10t2Qe+rZITbbDHHkQixH5+2x1FDGmi/0K+WgWiqQFKPSlIYB7jlH6Kpfn6Fleg==} - - '@poppinss/dumper@0.6.5': - resolution: {integrity: sha512-NBdYIb90J7LfOI32dOewKI1r7wnkiH6m920puQ3qHUeZkxNkQiFnXVWoE6YtFSv6QOiPPf7ys6i+HWWecDz7sw==} - - '@poppinss/exception@1.2.3': - resolution: {integrity: sha512-dCED+QRChTVatE9ibtoaxc+WkdzOSjYTKi/+uacHWIsfodVfpsueo3+DKpgU5Px8qXjgmXkSvhXvSCz3fnP9lw==} - - '@protobufjs/aspromise@1.1.2': - resolution: {integrity: sha512-j+gKExEuLmKwvz3OgROXtrJ2UG2x8Ch2YZUxahh+s1F2HZ+wAceUNLkvy6zKCPVRkU++ZWQrdxsUeQXmcg4uoQ==} - - '@protobufjs/base64@1.1.2': - resolution: {integrity: sha512-AZkcAA5vnN/v4PDqKyMR5lx7hZttPDgClv83E//FMNhR2TMcLUhfRUBHCmSl0oi9zMgDDqRUJkSxO3wm85+XLg==} - - '@protobufjs/codegen@2.0.5': - resolution: {integrity: sha512-zgXFLzW3Ap33e6d0Wlj4MGIm6Ce8O89n/apUaGNB/jx+hw+ruWEp7EwGUshdLKVRCxZW12fp9r40E1mQrf/34g==} - - '@protobufjs/eventemitter@1.1.1': - resolution: {integrity: sha512-vW1GmwMZNnL+gMRaovlh9yZX74kc+TTU3FObkkurpMaRtBfLP3ldjS9KQWlwZgraRE0+dheEEoAxdzcJQ8eXZg==} - - '@protobufjs/fetch@1.1.1': - resolution: {integrity: sha512-GpptLrs57adMSuHi3VNj0mAF8dwh36LMaYF6XyJ6JMWlVsc+t42tm1HSEDmOs3A8fC9yyeisgLhsTVQokOZ0zw==} - - '@protobufjs/float@1.0.2': - resolution: {integrity: sha512-Ddb+kVXlXst9d+R9PfTIxh1EdNkgoRe5tOX6t01f1lYWOvJnSPDBlG241QLzcyPdoNTsblLUdujGSE4RzrTZGQ==} - - '@protobufjs/path@1.1.2': - resolution: {integrity: sha512-6JOcJ5Tm08dOHAbdR3GrvP+yUUfkjG5ePsHYczMFLq3ZmMkAD98cDgcT2iA1lJ9NVwFd4tH/iSSoe44YWkltEA==} - - '@protobufjs/pool@1.1.0': - resolution: {integrity: sha512-0kELaGSIDBKvcgS4zkjz1PeddatrjYcmMWOlAuAPwAeccUrPHdUqo/J6LiymHHEiJT5NrF1UVwxY14f+fy4WQw==} - - '@protobufjs/utf8@1.1.2': - resolution: {integrity: sha512-b1UQwcEZ4yCnMCD8DAL1VlbvBJE9/IX4FTIp7BG1xYpf29SLazLSrqUkj4w7Y5y7cCVP6E5tcqqcI0xemPkHug==} - - '@react-email/render@2.1.0': - resolution: {integrity: sha512-F+zE3O6d6sW6Aj2UjvZAA17R7tJKM7kcq2mgV6k4HCT8jeLLFaVP2txMtH1lgqYFRMZ0Gxsd37q2PRyiXLXXxA==} - engines: {node: '>=20.0.0'} - peerDependencies: - react: ^18.0 || ^19.0 || ^19.0.0-rc - react-dom: ^18.0 || ^19.0 || ^19.0.0-rc - - '@reduxjs/toolkit@2.12.0': - resolution: {integrity: sha512-KiT+RzZbp6mQET+Mg+h2c97+9j1sNflUxQkIHI7Yuzf6Peu+OYpmkn6nbHWmLLWj+1ZODUJFwGZ7gx3L9R9EOw==} - peerDependencies: - react: ^16.9.0 || ^17.0.0 || ^18 || ^19 - react-redux: ^7.2.1 || ^8.1.3 || ^9.0.0 - peerDependenciesMeta: - react: - optional: true - react-redux: - optional: true - - '@rolldown/binding-android-arm64@1.1.5': - resolution: {integrity: sha512-lZg8fqIv2v7FF237bwMgzGZEJvGL79/s5knJ/i6FmsGF4XXlzccZ4jb+TrFIxtSSxFtIpdsgrPZeMk1I9AFcyQ==} - engines: {node: ^20.19.0 || >=22.12.0} - cpu: [arm64] - os: [android] - - '@rolldown/binding-darwin-arm64@1.1.5': - resolution: {integrity: sha512-51Bnx9pNiMRKSUNtBfySkNJ9vMU9Hh3I1ozDd6gyPPYzaXCfnptUcEZxXGYFn+ul2dtcMUiqGR1Yai2K10uoTw==} - engines: {node: ^20.19.0 || >=22.12.0} - cpu: [arm64] - os: [darwin] - - '@rolldown/binding-darwin-x64@1.1.5': - resolution: {integrity: sha512-Tm+gbfC0aHu1tBA/JvKQh32S0K6YgCHkiAF4/W6xX0K0RmNuc94VeK419dJoE65R5aRxmo+noZQSWrAMF6yb6g==} - engines: {node: ^20.19.0 || >=22.12.0} - cpu: [x64] - os: [darwin] - - '@rolldown/binding-freebsd-x64@1.1.5': - resolution: {integrity: sha512-JMzDKCCXq93YccG5gz3hvOs1oXRKAf0XYpfOS88e+wZrC8Iugj6j68867vrYZkvpDDpKn/KoKORThmchMpF6TA==} - engines: {node: ^20.19.0 || >=22.12.0} - cpu: [x64] - os: [freebsd] - - '@rolldown/binding-linux-arm-gnueabihf@1.1.5': - resolution: {integrity: sha512-uML21j2K5TfPGutKxub+M+nLjZIrWjXQ5Grx4lCe/nimTj9B4L63zHpjXLl4y0L3mcm2htEQIb06oCG/szerNw==} - engines: {node: ^20.19.0 || >=22.12.0} - cpu: [arm] - os: [linux] - - '@rolldown/binding-linux-arm64-gnu@1.1.5': - resolution: {integrity: sha512-navSiuTMogvnQoZoM/v+l3ZWo50/NTwSHSzheABx/RCnmUPaKwq9qSo4Br2OYRs21+Fz8uFqITZM3H4opOB0/Q==} - engines: {node: ^20.19.0 || >=22.12.0} - cpu: [arm64] - os: [linux] - libc: [glibc] - - '@rolldown/binding-linux-arm64-musl@1.1.5': - resolution: {integrity: sha512-lAryqH7IteztmCXQXk0etKj4wBQ7Gx5S6LjKhsgp9zb8I5bsuvU/2llH1hDQcjsFeqIsovMVN339/8pUDDBXxA==} - engines: {node: ^20.19.0 || >=22.12.0} - cpu: [arm64] - os: [linux] - libc: [musl] - - '@rolldown/binding-linux-ppc64-gnu@1.1.5': - resolution: {integrity: sha512-fsK/sNBnxzBlL4O1JNrZakVQxPspqpED5dLtNsZS9oOKmtSpdNIzxH2kkol5HYTWJN47sE20ztMJPxfZ89qGOg==} - engines: {node: ^20.19.0 || >=22.12.0} - cpu: [ppc64] - os: [linux] - libc: [glibc] - - '@rolldown/binding-linux-s390x-gnu@1.1.5': - resolution: {integrity: sha512-gLYb4BIadlfTOYT5gO503n8zQjXflgzpD0FcyKh0Mzx3rqCZKnHoJWV9xe1KXUJ5lx2JfcSHr/mhzS0PC/McAA==} - engines: {node: ^20.19.0 || >=22.12.0} - cpu: [s390x] - os: [linux] - libc: [glibc] - - '@rolldown/binding-linux-x64-gnu@1.1.5': - resolution: {integrity: sha512-FjcpEKUyJygHgs1o50VYNvkt5+7Le/VEdYt0AkRpkL33MnyQfwr8l5mXwMmfmTbyMPr5vJLC+8/Gd9gXnwU1QQ==} - engines: {node: ^20.19.0 || >=22.12.0} - cpu: [x64] - os: [linux] - libc: [glibc] - - '@rolldown/binding-linux-x64-musl@1.1.5': - resolution: {integrity: sha512-Me+PfPI2TMeOQk0gYWfLQZtTktrmzbr8cDboqX83XKc7UrgAi55gF+2dUkWdxd19n55Essp2yeca+O9N5rBxHg==} - engines: {node: ^20.19.0 || >=22.12.0} - cpu: [x64] - os: [linux] - libc: [musl] - - '@rolldown/binding-openharmony-arm64@1.1.5': - resolution: {integrity: sha512-yc5WrLzXks6zCQfn9Oxr8pORKyl/pF+QjHmW/Qx3qu0oyrrNC+y2JLTU1E2rcWYAmzlnqngWXHQjy51VzW70Vw==} - engines: {node: ^20.19.0 || >=22.12.0} - cpu: [arm64] - os: [openharmony] - - '@rolldown/binding-wasm32-wasi@1.1.5': - resolution: {integrity: sha512-VbQGPX2b4r48TAMIM2cjgluIM1HYutm4pcTEJsle7iEP7sB1dFqtPLBVbdLAZCxy1txCcPxf4QFf4v8uvltPqA==} - engines: {node: ^20.19.0 || >=22.12.0} - cpu: [wasm32] - - '@rolldown/binding-win32-arm64-msvc@1.1.5': - resolution: {integrity: sha512-gHv82k63z4qpV5+Q1y/12KrK0ltWBukVDI8nZcbT7Tt/ZlOIVwppazneq0F93oDxTo3IgAMEDIoQh3E2n6mVsw==} - engines: {node: ^20.19.0 || >=22.12.0} - cpu: [arm64] - os: [win32] - - '@rolldown/binding-win32-x64-msvc@1.1.5': - resolution: {integrity: sha512-tTZuDBPw85tEN5PQi1pnEBzDy0Z49HtScLAbD5t6hyeU92A95pRWaSMw1GZZi/RwgSgUIl0xrSlXIT/9QzvYSA==} - engines: {node: ^20.19.0 || >=22.12.0} - cpu: [x64] - os: [win32] - - '@rolldown/pluginutils@1.0.1': - resolution: {integrity: sha512-2j9bGt5Jh8hj+vPtgzPtl72j0yRxHAyumoo6TNfAjsLB04UtpSvPbPcDcBMxz7n+9CYB0c1GxQFxYRg2jimqGw==} - - '@selderee/plugin-htmlparser2@0.11.0': - resolution: {integrity: sha512-P33hHGdldxGabLFjPPpaTxVolMrzrcegejx+0GxjrIb9Zv48D8yAIA/QTDR2dFl7Uz7urX8aX6+5bCZslr+gWQ==} - - '@selderee/plugin-htmlparser2@0.12.0': - resolution: {integrity: sha512-oELmoyA6ML9jDRMV3kgcMQFKxUfBU0yFVn6yTctVaLT5ygXnxH52I3TZEgV9EhXJC68/uFvE5Daj1/25c0Xa/A==} - peerDependencies: - selderee: ~0.12.0 - - '@shikijs/cli@4.3.0': - resolution: {integrity: sha512-On4JSevjRHpFFix8Dh/2BWk3xwXL9u0PRl33Gy/Ho5l2pQlgnIZ+8jXLDYp/Qq8S6lOookd/+ZUu4ihIy2tWBQ==} - engines: {node: '>=20'} - hasBin: true - - '@shikijs/core@4.3.0': - resolution: {integrity: sha512-EooU3i9F6IAE8kEu+AnGf9DFZWkQBZ+hJn3tLVbsH+61mtQiva5biai66fAA6nvFPXkLgvrh7BrR7YcJU83xQQ==} - engines: {node: '>=20'} - - '@shikijs/core@4.3.1': - resolution: {integrity: sha512-ANMDxuaPsNMdDC1m4vfvhlDmJweMwkE5XitTwrq2rWHx5jM+dlm4MmHt2PP6t0uejfR77SuhrhJ0zEijIF/uhA==} - engines: {node: '>=20'} - - '@shikijs/engine-javascript@4.3.0': - resolution: {integrity: sha512-hTv/KiFf2tpiqlACPiztGGurEARWIutB8YUhcrA1pUC7VzzwKO+g5crUocrLztrZ5ro5Z4hbXg7bYclETn3gSQ==} - engines: {node: '>=20'} - - '@shikijs/engine-javascript@4.3.1': - resolution: {integrity: sha512-JBItcnPuYq7jVJdZo/vMj94r+szT7XEjHFX+mvFDGSEIbVAXAGyHAHzhbWzpGOwYidCZrErJLLgn2PVeiokHnQ==} - engines: {node: '>=20'} - - '@shikijs/engine-oniguruma@4.3.0': - resolution: {integrity: sha512-1vMdN3gHfnKfLYwecUI2ITJI4RhHt96xEaJumVn7Heb0IlJ8WQMIH0Voak+2j22BpSNKdnOfB/pCTPnPm2gq7A==} - engines: {node: '>=20'} - - '@shikijs/engine-oniguruma@4.3.1': - resolution: {integrity: sha512-OXyNMzg0pews+msMj4cHeqT4xiYKKvbnn6VbdAXxfoFl3SSx4fJTc8FadECuc5/H9p3BzhNAoAUXKwAu9rWYhg==} - engines: {node: '>=20'} - - '@shikijs/langs@4.3.0': - resolution: {integrity: sha512-rnlqFbBRSys9bT4gl/5rw9RnS0W/I84ZldXPkO7cvlEMoV85TyF/aU01N7/NbSR776RNLjrJKjfFUXJR6wN1Cg==} - engines: {node: '>=20'} - - '@shikijs/langs@4.3.1': - resolution: {integrity: sha512-m0l9nsDqgBHvbZbk7A0/kXz/impK3uB/c6rAn6Gpg/uPtdZRQ+alsN/17MU5thb68XTj/4DxkZAotrM0GGSpDQ==} - engines: {node: '>=20'} - - '@shikijs/primitive@4.3.0': - resolution: {integrity: sha512-CPkz64PTa5diRW1ggzMZH9VM/du4RNChYgVtgqrFcgruvIybmCvySv8GkiHSczUHXYuuR8TdKEwFx+UnZMpgdg==} - engines: {node: '>=20'} - - '@shikijs/primitive@4.3.1': - resolution: {integrity: sha512-CXQRQOYy1leqQ8ceTeJdmXv/bsUY++6QyLpXJ94LZAAYj5X2SKRdc5ipguv4NPyGVKItB2PPwUpRNe0Sjh5S1A==} - engines: {node: '>=20'} - - '@shikijs/themes@4.3.0': - resolution: {integrity: sha512-Avgt05YiT+Y3prjIc9lmQxhJzHBcCfR6cjiFW4OyaMBbt2A6trX5rfjUzx+Vj/mE9qpArYjatnqo9XPjQNW/AQ==} - engines: {node: '>=20'} - - '@shikijs/themes@4.3.1': - resolution: {integrity: sha512-dgpoJ4WqNi2yTmizQHBJ5zcX6j2lE6icN/0yt4l1kkf16jrY/pwPLoTb1ETsWMz0OBLf9ZNvwmxft+cH+N9qSA==} - engines: {node: '>=20'} - - '@shikijs/types@4.3.0': - resolution: {integrity: sha512-oc8b9U2SYvofKZk8e/737nIX0qwf6eV2vHFATeObAu7r+mUVpLs8Re0BmVkIjAWAYgkmG/CzLNo7rzuBzRu/wQ==} - engines: {node: '>=20'} - - '@shikijs/types@4.3.1': - resolution: {integrity: sha512-CHFxE0jztBIZRHH6gxXE7DXUCFXjReEGxZ/j0rfSLGKZuwp2xBYycEP14875DSa9KLL/6700oxIq6oO6ef9K2g==} - engines: {node: '>=20'} - - '@shikijs/vscode-textmate@10.0.2': - resolution: {integrity: sha512-83yeghZ2xxin3Nj8z1NMd/NCuca+gsYXswywDy5bHvwlWL8tpTQmzGeUuHd9FC3E/SBEMvzJRwWEOz5gGes9Qg==} - - '@simplewebauthn/browser@13.3.0': - resolution: {integrity: sha512-BE/UWv6FOToAdVk0EokzkqQQDOWtNydYlY6+OrmiZ5SCNmb41VehttboTetUM3T/fr6EAFYVXjz4My2wg230rQ==} - - '@simplewebauthn/server@13.3.2': - resolution: {integrity: sha512-KEDhfcGP1PAKRVSDjA3npTQFqS2b/srm+ipoNBNHdkzrHAlaRQUTE+a5f4ywsx6thxAw1NU2rYcLEY1949RGbQ==} - engines: {node: '>=20.0.0'} - - '@sinclair/typebox@0.27.12': - resolution: {integrity: sha512-hhyNJ+nbR6ZR7pToHvllEFun9TL0sbL+tk/ON75lo+Xas054uez98qRbsuNt7MBCyZKK4+8Yli/OAGZhmfBZ/g==} - - '@sindresorhus/is@7.2.0': - resolution: {integrity: sha512-P1Cz1dWaFfR4IR+U13mqqiGsLFf1KbayybWwdd2vfctdV6hDpUkgCY0nKOLLTMSoRd/jJNjtbqzf13K8DCCXQw==} - engines: {node: '>=18'} - - '@speed-highlight/core@1.2.17': - resolution: {integrity: sha512-Z92FwKpCtfaW1V0jTU/fh3QzYEZN8wDwrzRIBoADCJfn4mJCNcJN/XegifX7BDrQ8/h9Xh/JnbyMchL0FqXrkg==} - - '@standard-schema/spec@1.1.0': - resolution: {integrity: sha512-l2aFy5jALhniG5HgqrD6jXLi/rUWrKvqN/qJx6yoJsgKhblVd+iqqU4RCXavm/jPityDo5TCvKMnpjKnOriy0w==} - - '@standard-schema/utils@0.3.0': - resolution: {integrity: sha512-e7Mew686owMaPJVNNLs55PUvgz371nKgwsc4vxE49zsODpJEnxgxRo2y/OKrqueavXgZNMDVj3DdHFlaSAeU8g==} - - '@sveltejs/acorn-typescript@1.0.11': - resolution: {integrity: sha512-LFuZUkjJ9iF7JZye/aG5XM0SFcQ5VyL0oVX4WJ9dc0Va3R3s0OauX1BESVCb+YN/ol8TAfqGDDAQsTG627Y5kw==} - peerDependencies: - acorn: ^8.9.0 - - '@tanstack/db-ivm@0.1.18': - resolution: {integrity: sha512-+pZJiRKdoKRM5Epq9T7otD9ZJl82pRFauo7LKuJGrarjVKQ7r+QQlPe3kGdN9LEKSnuNGIWjX9OOY4M8kH4eLw==} - peerDependencies: - typescript: '>=4.7' - - '@tanstack/db@0.6.16': - resolution: {integrity: sha512-6tZ4sAyh7g4G5awO4Q4D/UQVPoPEBsqqDBImjCZNTRJznrpwGqFJZxozov197k8ty8QxZC++eGcbo+BBKF3nzw==} - peerDependencies: - typescript: '>=4.7' - - '@tanstack/history@1.162.0': - resolution: {integrity: sha512-79pf/RkhteYZTRgcR4F9kbk84P2N8rugQJswxfIqovlbRiT3yI7eBE+5QorIrZaOKktsgzRlXh1l/du/xpl4iA==} - engines: {node: '>=20.19'} - - '@tanstack/match-sorter-utils@8.19.4': - resolution: {integrity: sha512-Wo1iKt2b9OT7d+YGhvEPD3DXvPv2etTusIMhMUoG7fbhmxcXCtIjJDEygy91Y2JFlwGyjqiBPRozme7UD8hoqg==} - engines: {node: '>=12'} - - '@tanstack/offline-transactions@1.0.41': - resolution: {integrity: sha512-74Exr8H9dSWsWnmyqE3fTNa2ypB+2GV90u6JNQilDitd+MAtU5ZZV8aaTueL1D/ZDn7XNmvZgfyBTQNvonIpjw==} - peerDependencies: - '@react-native-community/netinfo': '>=11.0.0' - react-native: '>=0.70.0' - peerDependenciesMeta: - '@react-native-community/netinfo': - optional: true - react-native: - optional: true - - '@tanstack/pacer-lite@0.2.2': - resolution: {integrity: sha512-eQ1MyLKCHyXiH7NbdmB80W77OhiMgGBUb+qDx/8WMGbwg5Lf/NlfD0TfNYAqY77i8V3AxoDoYdICrQE5ADw4Yw==} - engines: {node: '>=18'} - - '@tanstack/query-core@5.101.4': - resolution: {integrity: sha512-gNwcvOJcRbLWPOLG/2OBm+zM+Yv+MKsXKEOWC57USuZDEsI71hEErQsiEGx5wX9rzWWkfwM0fVSPoiIFSsxfiw==} - - '@tanstack/react-db@0.1.94': - resolution: {integrity: sha512-ZtSMBOCdR/ElcBxg84uboXrqQ+kqiOwlq6kTy+o54UDywYr/by02jmWKHqayrnoiPVlrx83WNHDaomfe141f4A==} - peerDependencies: - react: '>=16.8.0' - - '@tanstack/react-query@5.101.4': - resolution: {integrity: sha512-yRg2pfOCxIs4ZJW3XYYHU/WgtD04FHSnfHlpRT7h7pR77hwkdRG4wxbKe4aq6P0RvXUTBSQpQeadS1SUYUe+KA==} - peerDependencies: - react: ^18 || ^19 - - '@tanstack/react-router@1.170.18': - resolution: {integrity: sha512-wpbGYZEp/fmz1q4bn7BD8VZ+/VZ7GBqSJv5V969pU+chP8y7dquWDmKTFMohvUegb9lg12m1uPVvD6kB2wORvQ==} - engines: {node: '>=20.19'} - peerDependencies: - react: '>=18.0.0 || >=19.0.0' - react-dom: '>=18.0.0 || >=19.0.0' - - '@tanstack/react-store@0.9.3': - resolution: {integrity: sha512-y2iHd/N9OkoQbFJLUX1T9vbc2O9tjH0pQRgTcx1/Nz4IlwLvkgpuglXUx+mXt0g5ZDFrEeDnONPqkbfxXJKwRg==} - peerDependencies: - react: ^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0 - react-dom: ^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0 - - '@tanstack/react-table@8.21.3': - resolution: {integrity: sha512-5nNMTSETP4ykGegmVkhjcS8tTLW6Vl4axfEGQN3v0zdHYbK4UfoqfPChclTrJ4EoK9QynqAu9oUf8VEmrpZ5Ww==} - engines: {node: '>=12'} - peerDependencies: - react: '>=16.8' - react-dom: '>=16.8' - - '@tanstack/react-virtual@3.14.8': - resolution: {integrity: sha512-O39GJQpAYEJcIu3uN1//YtmhjSEOyw75vg9CKCatBDPiD5hKtZQoJHfferyrB/LdOD3UWaoMLWtdEjarwIwdDw==} - peerDependencies: - react: ^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0 - react-dom: ^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0 - - '@tanstack/router-core@1.171.15': - resolution: {integrity: sha512-IILCDcLaItMZQ2jEmCABHY1Nhjjn5XUvwpQp3e4Nmu+vfg0BgYFuu/QASz2SwE2ZNbVMrvt8X/wxa+Gg5aErxA==} - engines: {node: '>=20.19'} - - '@tanstack/solid-query@5.101.4': - resolution: {integrity: sha512-w+QNX4al4zkfOfO6FYILouPX3yAxLANvBNz0cZqaBrSRKfBP3qNC179wu/eS2w1asH+QqEeI0rR2/s7gRGxnFA==} - peerDependencies: - solid-js: ^1.6.0 - - '@tanstack/store@0.9.3': - resolution: {integrity: sha512-8reSzl/qGWGGVKhBoxXPMWzATSbZLZFWhwBAFO9NAyp0TxzfBP0mIrGb8CP8KrQTmvzXlR/vFPPUrHTLBGyFyw==} - - '@tanstack/svelte-query@6.1.38': - resolution: {integrity: sha512-oV5S/+uAot23p3lJChLAHr82+8ApgQMyIgroWPpN0d6Y6TlThRbLSXnhx6CoUk6AkwlCPxf9vh4SOHa0eXHiWg==} - peerDependencies: - svelte: ^5.25.0 - - '@tanstack/table-core@8.21.3': - resolution: {integrity: sha512-ldZXEhOBb8Is7xLs01fR3YEc3DERiz5silj8tnGkFZytt1abEvl/GhUmCE0PMLaMPTa3Jk4HbKmRlHmu+gCftg==} - engines: {node: '>=12'} - - '@tanstack/virtual-core@3.17.6': - resolution: {integrity: sha512-h0/Ebo18CkOrChlQIhNtQkM5ySUnh/GumQ/D1st3hG2HWUPEF+ILUc2k29UtivCi/9G7w7G3/f7Xyd5cCFbKBw==} - - '@tanstack/vue-query@5.101.4': - resolution: {integrity: sha512-UYjkUZhnWQIFGNb7SdgjCitAftNyYQfOIVUh6vBUQAG4SQKNMSBKeQERFDubpxLAMpIBJTaOrE8fM4c1kZcIGQ==} - peerDependencies: - '@vue/composition-api': ^1.1.2 - vue: ^2.6.0 || ^3.3.0 - peerDependenciesMeta: - '@vue/composition-api': - optional: true - - '@ts-morph/common@0.29.0': - resolution: {integrity: sha512-35oUmphHbJvQ/+UTwFNme/t2p3FoKiGJ5auTjjpNTop2dyREspirjMy82PLSC1pnDJ8ah1GU98hwpVt64YXQsg==} - - '@tybys/wasm-util@0.10.3': - resolution: {integrity: sha512-F3fo1MYrRJYL3zER0OUOmkutjr1Vp23m7OsSgp7nq4SP6OqX6C/56XFIPAl5bt3zaBRjmW7SGz3u/6LwFpYcOg==} - - '@types/chai@5.2.3': - resolution: {integrity: sha512-Mw558oeA9fFbv65/y4mHtXDs9bPnFMZAL/jxdPFUpOHHIXX91mcgEHbS5Lahr+pwZFR8A7GQleRWeI6cGFC2UA==} - - '@types/d3-array@3.2.2': - resolution: {integrity: sha512-hOLWVbm7uRza0BYXpIIW5pxfrKe0W+D5lrFiAEYR+pb6w3N2SwSMaJbXdUfSEv+dT4MfHBLtn5js0LAWaO6otw==} - - '@types/d3-color@3.1.3': - resolution: {integrity: sha512-iO90scth9WAbmgv7ogoq57O9YpKmFBbmoEoCHDB2xMBY0+/KVrqAaCDyCE16dUspeOvIxFFRI+0sEtqDqy2b4A==} - - '@types/d3-drag@3.0.7': - resolution: {integrity: sha512-HE3jVKlzU9AaMazNufooRJ5ZpWmLIoc90A37WU2JMmeq28w1FQqCZswHZ3xR+SuxYftzHq6WU6KJHvqxKzTxxQ==} - - '@types/d3-ease@3.0.2': - resolution: {integrity: sha512-NcV1JjO5oDzoK26oMzbILE6HW7uVXOHLQvHshBUW4UMdZGfiY6v5BeQwh9a9tCzv+CeefZQHJt5SRgK154RtiA==} - - '@types/d3-interpolate@3.0.4': - resolution: {integrity: sha512-mgLPETlrpVV1YRJIglr4Ez47g7Yxjl1lj7YKsiMCb27VJH9W8NVM6Bb9d8kkpG/uAQS5AmbA48q2IAolKKo1MA==} - - '@types/d3-path@3.1.1': - resolution: {integrity: sha512-VMZBYyQvbGmWyWVea0EHs/BwLgxc+MKi1zLDCONksozI4YJMcTt8ZEuIR4Sb1MMTE8MMW49v0IwI5+b7RmfWlg==} - - '@types/d3-scale@4.0.9': - resolution: {integrity: sha512-dLmtwB8zkAeO/juAMfnV+sItKjlsw2lKdZVVy6LRr0cBmegxSABiLEpGVmSJJ8O08i4+sGR6qQtb6WtuwJdvVw==} - - '@types/d3-selection@3.0.11': - resolution: {integrity: sha512-bhAXu23DJWsrI45xafYpkQ4NtcKMwWnAC/vKrd2l+nxMFuvOT3XMYTIj2opv8vq8AO5Yh7Qac/nSeP/3zjTK0w==} - - '@types/d3-shape@3.1.8': - resolution: {integrity: sha512-lae0iWfcDeR7qt7rA88BNiqdvPS5pFVPpo5OfjElwNaT2yyekbM0C9vK+yqBqEmHr6lDkRnYNoTBYlAgJa7a4w==} - - '@types/d3-time@3.0.4': - resolution: {integrity: sha512-yuzZug1nkAAaBlBBikKZTgzCeA+k1uy4ZFwWANOfKw5z5LRhV0gNA7gNkKm7HoK+HRN0wX3EkxGk0fpbWhmB7g==} - - '@types/d3-timer@3.0.2': - resolution: {integrity: sha512-Ps3T8E8dZDam6fUyNiMkekK3XUsaUEik+idO9/YjPtfj2qruF8tFBXS7XhtE4iIXBLxhmLjP3SXpLhVf21I9Lw==} - - '@types/d3-transition@3.0.9': - resolution: {integrity: sha512-uZS5shfxzO3rGlu0cC3bjmMFKsXv+SmZZcgp0KD22ts4uGXp5EVYGzu/0YdwZeKmddhcAccYtREJKkPfXkZuCg==} - - '@types/d3-zoom@3.0.8': - resolution: {integrity: sha512-iqMC4/YlFCSlO8+2Ii1GGGliCAY4XdeG748w5vQUbevlbDu0zSjH/+jojorQVBK/se0j6DUFNPBGSqD3YWYnDw==} - - '@types/deep-eql@4.0.2': - resolution: {integrity: sha512-c9h9dVVMigMPc4bwTvC5dxqtqJZwQPePsWjPlpSOnojbor6pGqdk541lfA7AqFQr5pB1BRdq0juY9db81BwyFw==} - - '@types/estree@1.0.9': - resolution: {integrity: sha512-GhdPgy1el4/ImP05X05Uw4cw2/M93BCUmnEvWZNStlCzEKME4Fkk+YpoA5OiHNQmoS7Cafb8Xa3Pya8m1Qrzeg==} - - '@types/hast@3.0.5': - resolution: {integrity: sha512-rp/ezSWaD1m44dPKICGhiskI13nVr7qTloFwDa/IYkhhf5nzwP+zIQcIJh3WIFSBOy/H1PzB40jPjMDksN4F+g==} - - '@types/istanbul-lib-coverage@2.0.6': - resolution: {integrity: sha512-2QF/t/auWm0lsy8XtKVPG19v3sSOQlJe/YHZgfjb/KBBHOGSV+J2q/S671rcq9uTBrLAXmZpqJiaQbMT+zNU1w==} - - '@types/istanbul-lib-report@3.0.3': - resolution: {integrity: sha512-NQn7AHQnk/RSLOxrBbGyJM/aVQ+pjj5HCgasFxc0K/KhoATfQ/47AyUl15I2yBUpihjmas+a+VJBOqecrFH+uA==} - - '@types/istanbul-reports@3.0.4': - resolution: {integrity: sha512-pk2B1NWalF9toCRu6gjBzR69syFjP4Od8WRAX+0mmf9lAjCRicLOWc+ZrxZHx/0XRjotgkF9t6iaMJ+aXcOdZQ==} - - '@types/mdast@4.0.4': - resolution: {integrity: sha512-kGaNbPh1k7AFzgpud/gMdvIm5xuECykRR+JnWKQno9TAXVa6WIVCGTPvYGekIDL4uwCZQSYbUxNBSb1aUo79oA==} - - '@types/node@24.13.3': - resolution: {integrity: sha512-Dh8vAsV36ig5wa9OX4pXvMc9D3Veibfw2wix0CUwYODLD8nkj9UsLjASr49nPg+2eKzxhBV+v7L8pXvT4e639Q==} - - '@types/react-dom@19.2.3': - resolution: {integrity: sha512-jp2L/eY6fn+KgVVQAOqYItbF0VY/YApe5Mz2F0aykSO8gx31bYCZyvSeYxCHKvzHG5eZjc+zyaS5BrBWya2+kQ==} - peerDependencies: - '@types/react': ^19.2.0 - - '@types/react@19.2.17': - resolution: {integrity: sha512-MXfmqaVPEVgkBT/aY0aGCkRWWtByiYQXo3xdQ8r5RzuFrPiRn8Gar2tQdXSUQ2GKV3bkXckek89V8wQBY2Q/Aw==} - - '@types/trusted-types@2.0.7': - resolution: {integrity: sha512-ScaPdn1dQczgbl0QFTeTOmVHFULt394XJgOQNoyVhZ6r2vLnMLJfBPd53SB52T/3G36VI1/g2MZaX0cwDuXsfw==} - - '@types/unist@3.0.3': - resolution: {integrity: sha512-ko/gIFJRv177XgZsZcBwnqJN5x/Gien8qNOn0D5bQU/zAzVf9Zt3BlcUiLqhV9y4ARk0GbT3tnUiPNgnTXzc/Q==} - - '@types/use-sync-external-store@0.0.6': - resolution: {integrity: sha512-zFDAD+tlpf2r4asuHEj0XH6pY6i0g5NeAHPn+15wk3BV6JA69eERFXC1gyGThDkVa1zCyKr5jox1+2LbV/AMLg==} - - '@types/yargs-parser@21.0.3': - resolution: {integrity: sha512-I4q9QU9MQv4oEOz4tAHJtNz1cwuLxn2F3xcc2iV5WdqLPpUnj30aUuxt1mAxYTG+oe8CZMV/+6rU4S4gRDzqtQ==} - - '@types/yargs@17.0.35': - resolution: {integrity: sha512-qUHkeCyQFxMXg79wQfTtfndEC+N9ZZg76HJftDJp+qH2tV7Gj4OJi7l+PiWwJ+pWtW8GwSmqsDj/oymhrTWXjg==} - - '@ungap/structured-clone@1.3.3': - resolution: {integrity: sha512-60YRaenCQcVjYEKOcG824+DRGGIQ3VKErcBoAEDJZz5bKIs2ZG+X/H9Nk+Q6EVkwJk5QNApxbrc5QtBSwtrXAg==} - - '@vercel/oidc@3.2.0': - resolution: {integrity: sha512-UycprH3T6n3jH0k44NHMa7pnFHGu/N05MjojYr+Mc6I7obkoLIJujSWwin1pCvdy/eOxrI/l3uDLQsmcrOb4ug==} - engines: {node: '>= 20'} - - '@visulima/ansi@4.0.0': - resolution: {integrity: sha512-UUYBvGNiXdM3PCd7ICsTkhbxdNSsOZFfYknTH435qDhhNo4ftv6unpiEDZOwrWNl1dtuE5mraUGG3/DMIwLqDA==} - engines: {node: ^22.14.0 || >=24.10.0} - - '@visulima/cerebro@3.0.0': - resolution: {integrity: sha512-DuwJbqND+Ie3niYLm79OBD5ECETj5daBd5Srqf8Syf+duwLWi02XgSU3wZ99N3LKs8NJs13dJl2Aq4/cuuCpcw==} - engines: {node: ^22.14.0 || >=24.10.0} - os: [darwin, linux, win32] - peerDependencies: - '@bomb.sh/tab': '>=0.0.16' - '@visulima/boxen': 3.0.0 - '@visulima/find-cache-dir': 3.0.0 - '@visulima/pail': 4.0.0 - github-slugger: '>=2.0.0' - peerDependenciesMeta: - '@bomb.sh/tab': - optional: true - '@visulima/boxen': - optional: true - '@visulima/find-cache-dir': - optional: true - '@visulima/pail': - optional: true - github-slugger: - optional: true - - '@visulima/colorize@2.0.0': - resolution: {integrity: sha512-qG+VECZOOSQZdr63eqSl2HjjBTzmbziqQ/tOAzSZD8MexSKvBUWfNB30L4vhz6vLPo+CxHHwytX7iyasi3Ma6Q==} - engines: {node: ^22.14.0 || >=24.10.0} - os: [darwin, linux, win32] - - '@visulima/disposable-email-domains@1.0.1': - resolution: {integrity: sha512-G5YIQOqr6np1aOpIJiI0Tk63i4cRcXMY3HtEapguu32eyUizUyg/ICjMvn15mP7sWjm7a2xWEvtYlVJAIH7guQ==} - engines: {node: ^22.14.0 || >=24.10.0} - - '@visulima/email-provider-mx@1.0.0': - resolution: {integrity: sha512-ado7nF5ow9tozAgYioHCeFs56T0yGP3QT/4Ta6928/GAyJJqKakWCAguIqzQvDUW+W7aYLC9sSIWTTa0FxSWvw==} - engines: {node: ^22.14.0 || >=24.10.0} - - '@visulima/email-verifier@1.0.1': - resolution: {integrity: sha512-GqIELl0Cud0vpcUPlH0Lcoy/FYp8cpggkJwn4sivH9Ar69p5SK9VrPWy4sRPptiaAO5CL1unfRDn1hmSlh0YdQ==} - engines: {node: ^22.14.0 || >=24.10.0} - - '@visulima/email@2.1.1': - resolution: {integrity: sha512-HMvn+WJb+gH0nDfbsBi5bSbsBlfwApCiJLtXbdrOW1ug5kn1+OHgdHEjLxbJjccDmR+Cmmo4p7W/+XT6iReb0A==} - engines: {node: ^22.14.0 || >=24.10.0} - peerDependencies: - '@opentelemetry/api': ^1.0.0 || ^2.0.0 - '@react-email/render': ^2.0.10 - '@vue-email/render': 0.0.9 - asn1js: '>=3.0.10' - fast-xml-parser: ^4.5.0 - handlebars: '>=4.7.9' - jsx-email: ^2.0.0 - juice: ^11.0.0 - liquidjs: ^10.0.0 - mjml: '>=5.4.0' - nodemailer: '>=7' - pkijs: '>=3.4.0' - unstorage: ^1.13.0 - peerDependenciesMeta: - '@opentelemetry/api': - optional: true - '@react-email/render': - optional: true - '@vue-email/render': - optional: true - asn1js: - optional: true - fast-xml-parser: - optional: true - handlebars: - optional: true - jsx-email: - optional: true - juice: - optional: true - liquidjs: - optional: true - mjml: - optional: true - nodemailer: - optional: true - pkijs: - optional: true - unstorage: - optional: true - - '@visulima/error@6.0.0': - resolution: {integrity: sha512-kBuOlM1FVQ0ekaIznGA9AByvYX6OpJ+0H8zSLmHh1hRKaVboEB0zbegvRZXCcXg1bES8HUbLiJPN+7zZT3NUmA==} - engines: {node: ^22.14.0 || >=24.10.0} - os: [darwin, linux, win32] - peerDependencies: - ai: '>=6.0.202' - peerDependenciesMeta: - ai: - optional: true - - '@visulima/find-ai-runner@1.0.0': - resolution: {integrity: sha512-NQmdERt6NoOT3nWHgvQn4SHG31iubH9oeB80eo/A8nthG4tfLY2codwL9BtZlV3DCctMQRAJwsfRZ+CLGhghhw==} - engines: {node: ^22.14.0 || >=24.10.0} - hasBin: true - - '@visulima/free-email-domains@1.0.0': - resolution: {integrity: sha512-PZ8dXsi5brBcY0SUwjeUVvRf3+6hH4jQGAWtKGYrwS07m2r9JJUWKmfQzljxptDt5ex/6kE3oImQ6UyY0ed2rw==} - engines: {node: ^22.14.0 || >=24.10.0} - - '@visulima/fs@5.0.4': - resolution: {integrity: sha512-eJAJGtezASY/UNUkKJwqgZkVcrqdLyp9rJ282Bud2bx98Mekx667aBZ5UOsrB4IduZQ7bMfdqccNVGtnM8TnEg==} - engines: {node: ^22.14.0 || >=24.10.0} - os: [darwin, linux, win32] - peerDependencies: - ini: ^7.0.0 - json5: ^2.2.3 - jsonc-parser: ^3.3.1 - smol-toml: ^1.7.0 - yaml: '>=2.9.0' - peerDependenciesMeta: - ini: - optional: true - json5: - optional: true - jsonc-parser: - optional: true - smol-toml: - optional: true - yaml: - optional: true - - '@visulima/interactive-manager@1.0.0': - resolution: {integrity: sha512-sPiEitNQbO81FnuMQJ3d/Anef5vTd9xDwB1o2MJQtI52taG8HXbgtESqVWajnpjBLpgY5n4Gn/Sw1ut8WUN90A==} - engines: {node: ^22.14.0 || >=24.10.0} - - '@visulima/is-ansi-color-supported@3.0.0': - resolution: {integrity: sha512-uHSrAgO9qrBlP+VQbkXh+/jKHzW2aKZNyrwrBXA0qR/Ro4dsrt3A6oZ9CMB7jVlCmHR/WKLP16o7ch+B1XhItw==} - engines: {node: ^22.14.0 || >=24.10.0} - - '@visulima/package@5.0.4': - resolution: {integrity: sha512-xge9CbB/ShmufIucxpzGmBogGTUOZH79f261CLEYWroi8thlS+kymo8Puqac8bLYAcaIZUpltdt8hi1D2aQcTA==} - engines: {node: ^22.14.0 || >=24.10.0} - os: [darwin, linux, win32] - - '@visulima/pail@4.0.0': - resolution: {integrity: sha512-g6s0/Sxq1JYA7NojRkjjXWwHj0JP81WVmxMThiQJcT+5v9GXJNSEurwEL7ljjT92ySp1vs4q/hXUZN9RCgMdfA==} - engines: {node: ^22.14.0 || >=24.10.0} - os: [darwin, linux, win32] - peerDependencies: - '@opentelemetry/api': ^1.9.1 - '@sveltejs/kit': '>=2.0' - '@visulima/redact': 3.0.0 - elysia: '>=1.0' - express: '>=4.0' - fastify: '>=4.0' - hono: '>=4.0' - next: '>=14.0' - rotating-file-stream: '>=3.2.9' - peerDependenciesMeta: - '@opentelemetry/api': - optional: true - '@sveltejs/kit': - optional: true - '@visulima/redact': - optional: true - elysia: - optional: true - express: - optional: true - fastify: - optional: true - hono: - optional: true - next: - optional: true - rotating-file-stream: - optional: true - - '@visulima/path@3.0.0': - resolution: {integrity: sha512-l9vlDaoFrmPlG3OFuC+ZitAT8fMB2AJu1ILNZhgToVQ0HCAFVG8X1pIM/GIBQeDULveW+unIRYR4HOhS+plsCA==} - engines: {node: ^22.14.0 || >=24.10.0} - os: [darwin, linux, win32] - - '@visulima/redact@3.0.0': - resolution: {integrity: sha512-WC4HCu+zwVrrP8c0pw9TGO7E9S4OxlJrqNzLltDJTYZxXfzjN5yEqA7cCVtbLSgcWgiTLVc8QOa6n6Fm6y0lCw==} - engines: {node: ^22.14.0 || >=24.10.0} - - '@visulima/spinner@1.0.0': - resolution: {integrity: sha512-3gCKLOUw4EGXWuf/Y6wabQkBsXyTAe3LSmwgZjn0a5S/EbY00jC/ZlpBAB/Zp6rqS/4yKjanhu6oEtwV5ZVaHw==} - engines: {node: ^22.14.0 || >=24.10.0} - - '@visulima/storage-client@1.0.0': - resolution: {integrity: sha512-wWtf7dGLouySavWzbhRMu3+4IGsdsTpOxAjcsHa5zxGV0lgMsY/+qs29STOg4BYSKs8ux8vDhW+dLy9qNba8Bg==} - engines: {node: ^22.14.0 || >=24.10.0} - peerDependencies: - '@tanstack/react-query': '>=5.100.9' - '@tanstack/solid-query': '>=5.100.9' - '@tanstack/svelte-query': '>=6.1.28' - '@tanstack/vue-query': '>=5.100.9' - react: '>=19.2.6' - solid-js: '>=1.9.12' - svelte: '>=3.0.0' - vue: '>=3.5.34' - - '@visulima/string@3.0.0': - resolution: {integrity: sha512-XflLJ8DelNZGrHoyywidrFUG+pG8zr1+aR31hyH8NhgdED31cHjY5w0n0pmjG/1yZBQNLNVhwvBbC+H6Od9YeA==} - engines: {node: ^22.14.0 || >=24.10.0} - - '@visulima/tabular@4.0.0': - resolution: {integrity: sha512-2BZVeNojH++U2AiMM8sIJb/Ofcrp8Pz2VnSJLyPH5kAGpE0c/KgFgUW8D6SPJIa5aylzMvK11p9YDPjaJ3igHQ==} - engines: {node: ^22.14.0 || >=24.10.0} - - '@visulima/tui-binding-darwin-arm64@1.0.4': - resolution: {integrity: sha512-CniUOHk6NPvy/Mf42ggTLpDvQQk33fyr+3ylKL0EunxtQm5Co0KZG4nogsrD4sq7pYwDeJGRutqUu4mY+CgHGQ==} - engines: {node: ^22.14.0 || >=24.10.0} - cpu: [arm64] - os: [darwin] - - '@visulima/tui-binding-darwin-x64@1.0.4': - resolution: {integrity: sha512-5gROWmnjF6X9vZbd8u7wimAr2BcGVWDHE8LTMHWBdBCDNYeYs5R4P+JIw2XqKhbYq+6JHsJtvFQ5mHphTk3b7A==} - engines: {node: ^22.14.0 || >=24.10.0} - cpu: [x64] - os: [darwin] - - '@visulima/tui-binding-linux-arm64-gnu@1.0.4': - resolution: {integrity: sha512-io6ZZ50UND6+9WJtVnv8k0Cl9KSX1i6Hec/GzkrK38BiNCaySa1Tu3L+uSbpemn6/42jUwGzFKBfeR4PnHwsEw==} - engines: {node: ^22.14.0 || >=24.10.0} - cpu: [arm64] - os: [linux] - libc: [glibc] - - '@visulima/tui-binding-linux-arm64-musl@1.0.4': - resolution: {integrity: sha512-2RuiO6NXJGo4X5fqj7ZnOXVqXTmHIETjK1HZqSrMwOSYB9KbC9PZ7pN7Uq1tnYnzHpwl6avbP0QYW0POFvkZVg==} - engines: {node: ^22.14.0 || >=24.10.0} - cpu: [arm64] - os: [linux] - libc: [musl] - - '@visulima/tui-binding-linux-x64-gnu@1.0.4': - resolution: {integrity: sha512-SBpgX9wOYE2EUgG4P+afyCeSyu/HWGiW3V0zrzGe7PaCNnsQqvy85rbT1i3W7u1wJE1yXTx/Kn4aMUSl4WYUcw==} - engines: {node: ^22.14.0 || >=24.10.0} - cpu: [x64] - os: [linux] - libc: [glibc] - - '@visulima/tui-binding-linux-x64-musl@1.0.4': - resolution: {integrity: sha512-wjR24V0Gw1pJlJGzvLEt0sbjUBFtR58eYA1s+H0VQsEMdCeW1SIoId+Hl3FdhjqISc0ozi0Wl2oWMvx0TcOs/w==} - engines: {node: ^22.14.0 || >=24.10.0} - cpu: [x64] - os: [linux] - libc: [musl] - - '@visulima/tui-binding-win32-arm64-msvc@1.0.4': - resolution: {integrity: sha512-7kNPxAxEjVwn14AF5S5zm61kjM7pEFh6Izh59QUUkYh78SNdTiiA956vlq7G4+ZebpOcwRrmmkdGHa0sgA+jAg==} - engines: {node: ^22.14.0 || >=24.10.0} - cpu: [arm64] - os: [win32] - - '@visulima/tui-binding-win32-x64-msvc@1.0.4': - resolution: {integrity: sha512-jogXEQq+Yei2qCOa31ipwqk5bAo17czmMUHc0TRmh34XxTGlTdMPSxxum0xIetr/A0Ije2z1rE1CDdSe3eatAA==} - engines: {node: ^22.14.0 || >=24.10.0} - cpu: [x64] - os: [win32] - - '@visulima/tui@1.0.4': - resolution: {integrity: sha512-8FqrzHi/JitHHZ25/hivZYVGL/HGt1iqZ8vN+RyZbl4jOkhZ0c4g4gOxvjPGF3yLKXicWj+JrfrwEyXD1v7Trg==} - engines: {node: ^22.14.0 || >=24.10.0} - peerDependencies: - '@shikijs/langs': ^4.3.0 - '@shikijs/themes': ^4.3.0 - '@visulima/tabular': 4.0.0 - cfonts: ^3.3.1 - diff: ^9.0.0 - marked: ^18.0.5 - react: ^19.2.6 - react-devtools-core: ^7.0.1 - react-reconciler: ^0.33.0 - shiki: ^4.3.0 - ws: ^8.21.0 - peerDependenciesMeta: - '@shikijs/langs': - optional: true - '@shikijs/themes': - optional: true - '@visulima/tabular': - optional: true - cfonts: - optional: true - diff: - optional: true - marked: - optional: true - react-devtools-core: - optional: true - shiki: - optional: true - ws: - optional: true - - '@visulima/vite-overlay@2.0.4': - resolution: {integrity: sha512-Vl0CTX3iZgXhVxrbxvdAtqA/EVMtGQ9jKEsfk6Nk8hwej6xZMQTc9oW6PUiDYMMk/yYZrAfeW90o5CLU2vX+zA==} - engines: {node: ^22.14.0 || >=24.10.0} - peerDependencies: - vite: ^6 || ^7 || ^8 - - '@vitejs/plugin-react@6.0.4': - resolution: {integrity: sha512-XcCQz0TBpBgljhj0gMuuDj49i6Ytqh5q1osT/Gp5uAVJUCTWxyskk/l1jwYYiu2xcNHHipdMz40EGfM1VdamVg==} - engines: {node: ^20.19.0 || >=22.12.0} - peerDependencies: - '@rolldown/plugin-babel': ^0.1.7 || ^0.2.0 - babel-plugin-react-compiler: ^1.0.0 - vite: ^8.0.0 - peerDependenciesMeta: - '@rolldown/plugin-babel': - optional: true - babel-plugin-react-compiler: - optional: true - - '@vitest/expect@4.1.10': - resolution: {integrity: sha512-YsCn+qAk1GWjQOWFEsEcL2gNQ0zmVmQu3T03qP6UyjhtmdtwtbuI+DASn/7iQB3HGTXkdBwGddzxPlmiql5vlA==} - - '@vitest/mocker@4.1.10': - resolution: {integrity: sha512-v0xaezt+DKEmKfaxg133ldzADrwLGd7Ze1MfQQTYfvs8OqZIwbxyxaYURivwV7sWy5fqn3rH5uOrSp07bp44Ow==} - peerDependencies: - msw: ^2.4.9 - vite: ^6.0.0 || ^7.0.0 || ^8.0.0 - peerDependenciesMeta: - msw: - optional: true - vite: - optional: true - - '@vitest/pretty-format@4.1.10': - resolution: {integrity: sha512-W1HsjSH4MXQ9YfmmhLAoIYf1HRfekQCGngeIgcei6MP5QQGWUe0gkopdZQaVCFO+JDJMrAJGwa5pRpNpvy4P8Q==} - - '@vitest/runner@4.1.10': - resolution: {integrity: sha512-IKI6kpIH+LmpROplyLwBBaCfMgOZOMsygVa6BARD6ahA04VRuJSa6OaVG7kRvSEMD870Vd91rSSw0eegtWyLGg==} - - '@vitest/snapshot@4.1.10': - resolution: {integrity: sha512-xRkfOT1qpTAi/Ti4Y1LtfRc3kEuqxGw59eN2jN9pRWMtS/XDevekhcFSqvQqjUNGksfjMJu3Y+oJ+4Ypn2OaJw==} - - '@vitest/spy@4.1.10': - resolution: {integrity: sha512-PLf/Ugvoq5wO/b4rwYCR1h2PSIdXz7wnkQFMiUpLdtM7l6pqVFcQIBEHyT1+l+cj7mNwAfZHzqXqDyjvOuwbDw==} - - '@vitest/utils@4.1.10': - resolution: {integrity: sha512-fy9am/HWxbaGt/Sawrp90vt6Y6jQwf1RX77cz3uwoJwJVMli/e1IEwRPnMNJ7vKfPTwo0diXifkpPvwH9v7nGA==} - - '@vue/compiler-core@3.5.40': - resolution: {integrity: sha512-39E8IgOhTbVDnoJFMKc2DvYnypcZwUqgUhQkccva/0m6FUwtIKSGV7n1hpVmYcFaoRAwf9pBcwnKlCEsN63ZEQ==} - - '@vue/compiler-dom@3.5.40': - resolution: {integrity: sha512-pwkx4vqlqOspFstrcmzwkKLePVMD3PT65imRzLhanU2V1Fj4K13g6OXjanOyzw3aTAuRk84BOmY8f3rEHqPaVA==} - - '@vue/compiler-sfc@3.5.40': - resolution: {integrity: sha512-gIf497P4kpuALcvs5n3AEg1Vdn0pSY4XbjASIfHNYF1/MP3T2Mf2STERTubysBxCRxzJGJYtF/O7vwJrxFB3Vw==} - - '@vue/compiler-ssr@3.5.40': - resolution: {integrity: sha512-rrE5xiXG663+vHCHa3J9p2z5OcBRjXmoqenprJxAFQxg5pSshzeBiCE6pu46axapRJ2Adk0YDA2BRZVjiHXnhg==} - - '@vue/devtools-api@6.6.4': - resolution: {integrity: sha512-sGhTPMuXqZ1rVOk32RylztWkfXTRhuS7vgAKv0zjqk8gbsHkJ7xfFf+jbySxt7tWObEJwyKaHMikV/WGDiQm8g==} - - '@vue/reactivity@3.5.40': - resolution: {integrity: sha512-B7ot9UlUZOi1zbq61/LvE88ZLTV8IlajTdiZTAEiDQgrnIMIZoPr9kGw0Zw46ObW62O9+H/Be3kMbfb7kYPQZA==} - - '@vue/runtime-core@3.5.40': - resolution: {integrity: sha512-KAZLweuZ6uUJPK1PMSQPgBU5gCjgrrfjUhSglmU9NhH+Zjepa8cnwSydPWDWHDwOgY4g3VcZ+PljbiHlURNCbw==} - - '@vue/runtime-dom@3.5.40': - resolution: {integrity: sha512-ZfrX8ssZQds900L9pr8AuK05ddnMsR4MPMZr8cPN9GoqoPWcXLhjvvbIA2SMv+7a97sJ1vv9pj/zxK0Cq/eEFQ==} - - '@vue/server-renderer@3.5.40': - resolution: {integrity: sha512-XNJym9WpevhTVt1HuwOrCRJ5Q+9z4BjTMrDtjTrvx74SmUll8spNTw6whWJa9mEkO4PKn5TihI/bm/8ds2QVJw==} - - '@vue/shared@3.5.40': - resolution: {integrity: sha512-WxnBtruIqOoV3rA4jeKDWzrYI5h7Cp4+pjwDi8kWGHz+IslhiN+wguLVVhtv2l8VoU02rzDCVfDjgCl1lNpZVg==} - - '@workflow/serde@4.1.0': - resolution: {integrity: sha512-pav4F2BoirECWR7Nf1TKt+2eETcBj7jj4cBefQ8VXQCA6NPkaKeLfj/zMgi+3zYV5ZIBT4GuUiphsj0/b9hPQQ==} - - '@xyflow/react@12.11.2': - resolution: {integrity: sha512-eLAlDWJfWnQEhJwGMjlWdAXO9eYllKpliUmPQlAmOLxz6mExXuzMVDUKLMquixgkrtmMFFtug3jGKmYYld12cA==} - peerDependencies: - '@types/react': '>=17' - '@types/react-dom': '>=17' - react: '>=17' - react-dom: '>=17' - peerDependenciesMeta: - '@types/react': - optional: true - '@types/react-dom': - optional: true - - '@xyflow/system@0.0.79': - resolution: {integrity: sha512-czLyOh91NF0hIzbNzwi8I6GlqG23BHh2435OddfI6uiaLH3xdrdygO93gqgH1Bv9mhy8XPFQJOBn1FTq4LvEWA==} - - accepts@2.0.0: - resolution: {integrity: sha512-5cvg6CtKwfgdmVqY1WIiXKc3Q1bkRqGLi+2W/6ao+6Y7gu/RCwRuAhGEzh5B4KlszSuTLgZYuqFqo5bImjNKng==} - engines: {node: '>= 0.6'} - - acorn@8.17.0: - resolution: {integrity: sha512-xRQbDb9BnwDafYNn6Vwl839DYVjqXYb1XVGtWAZ1kcDc6iwAL4hg3B1dZlRiuENFeO2H53gFG3in621AdERVAg==} - engines: {node: '>=0.4.0'} - hasBin: true - - ai@7.0.31: - resolution: {integrity: sha512-pJfwKXjF5kw0rKRTePwYo60EfWb8wfzJAgf3ojln/YkOsVVKttzZAJVcRPsg37Z3a06ZdKkxX+DSrMAFlPm5Mw==} - engines: {node: '>=22'} - peerDependencies: - zod: ^3.25.76 || ^4.1.8 - - ajv-formats@3.0.1: - resolution: {integrity: sha512-8iUql50EUR+uUcdRQ3HDqa6EVyo3docL8g5WJ3FNcWmu62IbkGUue/pEyLBW8VGKKucTPgqeks4fIU1DA4yowQ==} - peerDependencies: - ajv: ^8.0.0 - peerDependenciesMeta: - ajv: - optional: true - - ajv@8.20.0: - resolution: {integrity: sha512-Thbli+OlOj+iMPYFBVBfJ3OmCAnaSyNn4M1vz9T6Gka5Jt9ba/HIR56joy65tY6kx/FCF5VXNB819Y7/GUrBGA==} - - ansi-regex@5.0.1: - resolution: {integrity: sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==} - engines: {node: '>=8'} - - ansi-styles@4.3.0: - resolution: {integrity: sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==} - engines: {node: '>=8'} - - ansi-styles@5.2.0: - resolution: {integrity: sha512-Cxwpt2SfTzTtXcfOlzGEee8O+c+MmUgGrNiBcXnuWxuFJHe6a5Hz7qwhwe5OgaSYI0IJvkLqWX1ASG+cJOkEiA==} - engines: {node: '>=10'} - - ansis@4.3.1: - resolution: {integrity: sha512-BJ8/l4R5LRE7hW9WdSuGYrLSHi2ynxeFpDFbH0K/CgNeY/tyhk+vO6TYxXC5r5CpUhNVX310xzPsN/H9lCdfOA==} - engines: {node: '>=14'} - - aria-query@5.3.1: - resolution: {integrity: sha512-Z/ZeOgVl7bcSYZ/u/rh0fOpvEpq//LZmdbkXyc7syVzjPAhfOa9ebsdTSjEBDU4vs5nC98Kfduj1uFo0qyET3g==} - engines: {node: '>= 0.4'} - - asn1@0.2.6: - resolution: {integrity: sha512-ix/FxPn0MDjeyJ7i/yoHGFt/EX6LyNbxSEhPPXODPL+KB0VPk86UYfL0lMdy+KCnv+fmvIzySwaK5COwqVbWTQ==} - - asn1js@3.0.10: - resolution: {integrity: sha512-S2s3aOytiKdFRdulw2qPE51MzjzVOisppcVv7jVFR+Kw0kxwvFrDcYA0h7Ndqbmj0HkMIXYWaoj7fli8kgx1eg==} - engines: {node: '>=12.0.0'} - - assertion-error@2.0.1: - resolution: {integrity: sha512-Izi8RQcffqCeNVgFigKli1ssklIbpHnCYc6AknXGYoB6grJqyeby7jv12JUQgmTAnIDnbck1uxksT4dzN3PWBA==} - engines: {node: '>=12'} - - axobject-query@4.1.0: - resolution: {integrity: sha512-qIj0G9wZbMGNLjLmg1PT6v2mE9AH2zlnADJD/2tC6E00hgmhUOfEB6greHPAfLRSufHqROIUTkw6E+M3lH0PTQ==} - engines: {node: '>= 0.4'} - - balanced-match@4.0.4: - resolution: {integrity: sha512-BLrgEcRTwX2o6gGxGOCNyMvGSp35YofuYzw9h1IMTRmKqttAZZVU67bdb9Pr2vUHA8+j3i2tJfjO6C6+4myGTA==} - engines: {node: 18 || 20 || >=22} - - base64-js@1.5.1: - resolution: {integrity: sha512-AKpaYlHn8t4SVbOHCy+b5+KKgvR4vrsD8vbvrbiQJps7fKDTkjkDry6ji0rUJjC0kzbNePLwzxq8iypo41qeWA==} - - baseline-browser-mapping@2.11.1: - resolution: {integrity: sha512-HYXq73DDpCtNzOmrFsm9eSwCvWCql0RzqjpDzXN9EadiLJ4DNat0nsZ/Bzmy+Ud12mb4/zKDY0cQ805ZzN+i0A==} - engines: {node: '>=6.0.0'} - hasBin: true - - bcrypt-pbkdf@1.0.2: - resolution: {integrity: sha512-qeFIXtP4MSoi6NLqO12WfqARWWuCKi2Rn/9hJLEmtB5yTNr9DqFWkJRCf2qShWzPeAMRnOgCrq0sg/KLv5ES9w==} - - better-auth@1.6.24: - resolution: {integrity: sha512-MtBxUKI2y5hXBBLU1MAXkUA/xTEPJ2lkzWLKCTQyG/IKNQQ8ve3tZK0uvq4AIv9iOLZHKUpBOBsDoqTEHaRb9Q==} - peerDependencies: - '@lynx-js/react': '*' - '@prisma/client': ^5.0.0 || ^6.0.0 || ^7.0.0 - '@sveltejs/kit': ^2.0.0 - '@tanstack/react-start': ^1.0.0 - '@tanstack/solid-start': ^1.0.0 - better-sqlite3: ^12.0.0 - drizzle-kit: '>=0.31.4' - drizzle-orm: ^0.45.2 - mongodb: ^6.0.0 || ^7.0.0 - mysql2: ^3.0.0 - next: ^14.0.0 || ^15.0.0 || ^16.0.0 - pg: ^8.0.0 - prisma: ^5.0.0 || ^6.0.0 || ^7.0.0 - react: ^18.0.0 || ^19.0.0 - react-dom: ^18.0.0 || ^19.0.0 - solid-js: ^1.0.0 - svelte: ^4.0.0 || ^5.0.0 - vitest: ^2.0.0 || ^3.0.0 || ^4.0.0 - vue: ^3.0.0 - peerDependenciesMeta: - '@lynx-js/react': - optional: true - '@prisma/client': - optional: true - '@sveltejs/kit': - optional: true - '@tanstack/react-start': - optional: true - '@tanstack/solid-start': - optional: true - better-sqlite3: - optional: true - drizzle-kit: - optional: true - drizzle-orm: - optional: true - mongodb: - optional: true - mysql2: - optional: true - next: - optional: true - pg: - optional: true - prisma: - optional: true - react: - optional: true - react-dom: - optional: true - solid-js: - optional: true - svelte: - optional: true - vitest: - optional: true - vue: - optional: true - - better-call@1.3.7: - resolution: {integrity: sha512-Al51/hjp2SSp6CRTa3F2ptcx4yQVS1xWKoY6jcVXqNYOap6mHFP2jUBn5EwIL4iIed1/Sq4hlQ+Umm6EflZG+w==} - peerDependencies: - zod: ^4.0.0 - peerDependenciesMeta: - zod: - optional: true - - bl@4.1.0: - resolution: {integrity: sha512-1W07cM9gS6DcLperZfFSj+bWLtaPGSOHWhPiGzXmvVJbRLdG82sH/Kn8EtW1VqWVA54AKf2h5k5BbnIbwF3h6w==} - - blake3-wasm@2.1.5: - resolution: {integrity: sha512-F1+K8EbfOZE49dtoPtmxUQrpXaBIl3ICvasLh+nJta0xkz+9kF/7uet9fLnwKqhDrmj6g+6K3Tw9yQPUg2ka5g==} - - body-parser@2.3.0: - resolution: {integrity: sha512-2cGmJupaNgg+QUwVLAucDuWuoMZ6EX9iHDRswZ5lsNYEmwPaRknMPCLZz07yTzVq/83p4o/wzbDZbBrTvGGTIw==} - engines: {node: '>=18'} - - brace-expansion@5.0.7: - resolution: {integrity: sha512-7oFy703dxfY3/NLxC1fh2SUCQ0H9rmAY+5EpDVfXjUTTs+HEwR2nYaqLv+GWcTsumwxPfiz6CzCNkwXwBUwqCA==} - engines: {node: 18 || 20 || >=22} - - browserslist@4.28.7: - resolution: {integrity: sha512-JxV13hNrFxqjOc8alRbq9dK1MM79NEXYpma2B2J4wAtpWS5zIEIKqWPGCl7N4o7Uc7B7itylh7SuDujATRyyTw==} - engines: {node: ^6 || ^7 || ^8 || ^9 || ^10 || ^11 || ^12 || >=13.7} - hasBin: true - - buffer@5.7.1: - resolution: {integrity: sha512-EHcyIPBQ4BSGlvjB16k5KgAJ27CIsHY/2JBmCRReo48y9rQ3MaUzWX3KVlBa4U7MyX02HdVj0K7C3WaB3ju7FQ==} - - buildcheck@0.0.7: - resolution: {integrity: sha512-lHblz4ahamxpTmnsk+MNTRWsjYKv965MwOrSJyeD588rR3Jcu7swE+0wN5F+PbL5cjgu/9ObkhfzEPuofEMwLA==} - engines: {node: '>=10.0.0'} - - bytes@3.1.2: - resolution: {integrity: sha512-/Nf7TyzTx6S3yRJObOAV7956r8cr2+Oj8AC5dt8wSP3BQAoeX58NoHyCU8P8zGkNXStjTSi6fzO6F0pBdcYbEg==} - engines: {node: '>= 0.8'} - - cac@7.0.0: - resolution: {integrity: sha512-tixWYgm5ZoOD+3g6UTea91eow5z6AAHaho3g0V9CNSNb45gM8SmflpAc+GRd1InC4AqN/07Unrgp56Y94N9hJQ==} - engines: {node: '>=20.19.0'} - - 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'} - - camelcase@6.3.0: - resolution: {integrity: sha512-Gmy6FhYlCY7uOElZUSbxo2UCDH8owEk996gkbrpsgGtrJLM3J7jGxl9Ic7Qwwj4ivOE5AWZWRMecDdF7hqGjFA==} - engines: {node: '>=10'} - - caniuse-lite@1.0.30001806: - resolution: {integrity: sha512-72Cuvd95zbSYPKq6Fhg8eDJRlzgWDf7/mtoZv6Qe/DYNCEBdNxoA3+rZAU2ZhGCpZlns3EssFavaZomckT5Uuw==} - - ccount@2.0.1: - resolution: {integrity: sha512-eyrF0jiFpY+3drT6383f1qhkbGsLSifNAjA61IUjZjmLCWjItY6LB9ft9YhoDgwfmclB2zhu51Lc7+95b8NRAg==} - - cfonts@3.3.1: - resolution: {integrity: sha512-ZGEmN3W9mViWEDjsuPo4nK4h39sfh6YtoneFYp9WLPI/rw8BaSSrfQC6jkrGW3JMvV3ZnExJB/AEqXc/nHYxkw==} - engines: {node: '>=10'} - hasBin: true - - chai@6.2.2: - resolution: {integrity: sha512-NUPRluOfOiTKBKvWPtSD4PhFvWCqOi0BGStNWs57X9js7XGTprSmFoz5F0tWhR4WPjNeR9jXqdC7/UpSJTnlRg==} - engines: {node: '>=18'} - - chalk@4.1.2: - resolution: {integrity: sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==} - engines: {node: '>=10'} - - character-entities-html4@2.1.0: - resolution: {integrity: sha512-1v7fgQRj6hnSwFpq1Eu0ynr/CDEw0rXo2B61qXrLNdHZmPKgb7fqS1a2JwF0rISo9q77jDI8VMEHoApn8qDoZA==} - - character-entities-legacy@3.0.0: - resolution: {integrity: sha512-RpPp0asT/6ufRm//AJVwpViZbGM/MkjQFxJccQRHmISF/22NBtsHqAWmL+/pmkPWoIUJdWyeVleTl1wydHATVQ==} - - chownr@1.1.4: - resolution: {integrity: sha512-jJ0bqzaylmJtVnNgzTeSOs8DPavpbYgEr/b0YL8/2GO3xJEhInFmhKMUnEJQjZumK7KXGFhUy89PrsJWlakBVg==} - - class-variance-authority@0.7.1: - resolution: {integrity: sha512-Ka+9Trutv7G8M6WT6SeiRWz792K5qEqIGEGzXKhAE6xOWAY6pPH8U+9IY3oCMv6kqTmLsv7Xh/2w2RigkePMsg==} - - classcat@5.0.5: - resolution: {integrity: sha512-JhZUT7JFcQy/EzW605k/ktHtncoo9vnyW/2GspNYwFlN1C/WmjuV/xtS04e9SOkL2sTdw0VAZ2UGCcQ9lR6p6w==} - - cli-boxes@4.0.1: - resolution: {integrity: sha512-5IOn+jcCEHEraYolBPs/sT4BxYCe2nHg374OPiItB1O96KZFseS2gthU4twyYzeDcFew4DaUM/xwc5BQf08JJw==} - engines: {node: '>=18.20 <19 || >=20.10'} - - cliui@8.0.1: - resolution: {integrity: sha512-BSeNnyus75C4//NQ9gQt1/csTXyo/8Sb+afLAkzAptFuMsod9HFokGNudZpi/oQV73hnVK+sR+5PVRMd+Dr7YQ==} - engines: {node: '>=12'} - - clsx@2.1.1: - resolution: {integrity: sha512-eYm0QWBtUrBWZWG0d386OGAw16Z995PiOVo2B7bjWSbHedGl5e0ZWaq65kOGgUSNesEIDkB9ISbTg/JK9dhCZA==} - engines: {node: '>=6'} - - code-block-writer@13.0.3: - resolution: {integrity: sha512-Oofo0pq3IKnsFtuHqSF7TqBfr71aeyZDVJ0HpmqB7FBM2qEigL0iPONSCZSO9pE9dZTAxANe5XHG9Uy0YMv8cg==} - - code-excerpt@4.0.0: - resolution: {integrity: sha512-xxodCmBen3iy2i0WtAK8FlFNrRzjUqjRsMfho58xT/wvZU1YTM3fCnRjcy1gJPMepaRlgm/0e6w8SpWHpn3/cA==} - engines: {node: ^12.20.0 || ^14.13.1 || >=16.0.0} - - color-convert@2.0.1: - resolution: {integrity: sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==} - engines: {node: '>=7.0.0'} - - color-name@1.1.4: - resolution: {integrity: sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==} - - comma-separated-tokens@2.0.3: - resolution: {integrity: sha512-Fu4hJdvzeylCfQPp9SGWidpzrMs7tTrlu6Vb8XGaRGck8QSNZJJp538Wrb60Lax4fPwR64ViY468OIUTbRlGZg==} - - compromise@14.16.0: - resolution: {integrity: sha512-4DFYl/Hl7sW4XWUDfx9S5vxqyYKpZDwwqrpXsQv5acdbVP+joKceIcIaLb0lhVWUpDBV0OnExk/o/dnYUwXnhQ==} - engines: {node: '>=12.0.0'} - - content-disposition@1.1.0: - resolution: {integrity: sha512-5jRCH9Z/+DRP7rkvY83B+yGIGX96OYdJmzngqnw2SBSxqCFPd0w2km3s5iawpGX8krnwSGmF0FW5Nhr0Hfai3g==} - engines: {node: '>=18'} - - content-type@1.0.5: - resolution: {integrity: sha512-nTjqfcBFEipKdXCv4YDQWCfmcLZKm81ldF0pAopTvyrFGVbcR6P/VAAd5G7N+0tTr8QqiU0tFadD6FK4NtJwOA==} - engines: {node: '>= 0.6'} - - content-type@2.0.0: - resolution: {integrity: sha512-j/O/d7GcZCyNl7/hwZAb606rzqkyvaDctLmckbxLzHvFBzTJHuGEdodATcP3yIRoDrLHkIATJuvzbFlp/ki2cQ==} - engines: {node: '>=18'} - - convert-source-map@2.0.0: - resolution: {integrity: sha512-Kvp459HrV2FEJ1CAsi1Ku+MY3kasH19TFykTz2xWmMeq6bk2NU3XXvfJ+Q61m0xktWwt+1HSYf3JZsTms3aRJg==} - - convert-to-spaces@2.0.1: - resolution: {integrity: sha512-rcQ1bsQO9799wq24uE5AM2tAILy4gXGIK/njFWcVQkGNZ96edlpY+A7bjwvzjYvLDyzmG1MmMLZhpcsb+klNMQ==} - engines: {node: ^12.20.0 || ^14.13.1 || >=16.0.0} - - cookie-es@3.1.1: - resolution: {integrity: sha512-UaXxwISYJPTr9hwQxMFYZ7kNhSXboMXP+Z3TRX6f1/NyaGPfuNUZOWP1pUEb75B2HjfklIYLVRfWiFZJyC6Npg==} - - 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'} - - cpu-features@0.0.10: - resolution: {integrity: sha512-9IkYqtX3YHPCzoVg1Py+o9057a3i0fp7S530UWokCSaFVTc7CwXPRiOjRjBQQ18ZCNafx78YfnG+HALxtVmOGA==} - engines: {node: '>=10.0.0'} - - cron-parser@5.6.2: - resolution: {integrity: sha512-yJ/G1LVir6CnlkLI40CsampPLKl1SprGGlUagWtGJxewytRVYezv5xVyzzbT+Pvzx+VIRvZVF7/a0eEMTxdnTA==} - engines: {node: '>=18'} - - cross-spawn@7.0.6: - resolution: {integrity: sha512-uV2QOWP2nWzsy2aMp8aRibhi9dlzF5Hgh5SHaB9OiTGEyDTiJJyx0uy51QXdyWbtAHNua4XJzUKca3OzKUd3vA==} - engines: {node: '>= 8'} - - csstype@3.2.3: - resolution: {integrity: sha512-z1HGKcYy2xA8AGQfwrn0PAy+PB7X/GSj3UVJW9qKyn43xWa+gl5nXmU4qqLMRzWVLFC8KusUX8T/0kCiOYpAIQ==} - - d3-array@3.2.4: - resolution: {integrity: sha512-tdQAmyA18i4J7wprpYq8ClcxZy3SC31QMeByyCFyRt7BVHdREQZ5lpzoe5mFEYZUWe+oq8HBvk9JjpibyEV4Jg==} - engines: {node: '>=12'} - - d3-color@3.1.0: - resolution: {integrity: sha512-zg/chbXyeBtMQ1LbD/WSoW2DpC3I0mpmPdW+ynRTj/x2DAWYrIY7qeZIHidozwV24m4iavr15lNwIwLxRmOxhA==} - engines: {node: '>=12'} - - d3-dispatch@3.0.1: - resolution: {integrity: sha512-rzUyPU/S7rwUflMyLc1ETDeBj0NRuHKKAcvukozwhshr6g6c5d8zh4c2gQjY2bZ0dXeGLWc1PF174P2tVvKhfg==} - engines: {node: '>=12'} - - d3-drag@3.0.0: - resolution: {integrity: sha512-pWbUJLdETVA8lQNJecMxoXfH6x+mO2UQo8rSmZ+QqxcbyA3hfeprFgIT//HW2nlHChWeIIMwS2Fq+gEARkhTkg==} - engines: {node: '>=12'} - - d3-ease@3.0.1: - resolution: {integrity: sha512-wR/XK3D3XcLIZwpbvQwQ5fK+8Ykds1ip7A2Txe0yxncXSdq1L9skcG7blcedkOX+ZcgxGAmLX1FrRGbADwzi0w==} - engines: {node: '>=12'} - - d3-format@3.1.2: - resolution: {integrity: sha512-AJDdYOdnyRDV5b6ArilzCPPwc1ejkHcoyFarqlPqT7zRYjhavcT3uSrqcMvsgh2CgoPbK3RCwyHaVyxYcP2Arg==} - engines: {node: '>=12'} - - d3-interpolate@3.0.1: - resolution: {integrity: sha512-3bYs1rOD33uo8aqJfKP3JWPAibgw8Zm2+L9vBKEHJ2Rg+viTR7o5Mmv5mZcieN+FRYaAOWX5SJATX6k1PWz72g==} - engines: {node: '>=12'} - - d3-path@3.1.0: - resolution: {integrity: sha512-p3KP5HCf/bvjBSSKuXid6Zqijx7wIfNW+J/maPs+iwR35at5JCbLUT0LzF1cnjbCHWhqzQTIN2Jpe8pRebIEFQ==} - engines: {node: '>=12'} - - d3-scale@4.0.2: - resolution: {integrity: sha512-GZW464g1SH7ag3Y7hXjf8RoUuAFIqklOAq3MRl4OaWabTFJY9PN/E1YklhXLh+OQ3fM9yS2nOkCoS+WLZ6kvxQ==} - engines: {node: '>=12'} - - d3-selection@3.0.0: - resolution: {integrity: sha512-fmTRWbNMmsmWq6xJV8D19U/gw/bwrHfNXxrIN+HfZgnzqTHp9jOmKMhsTUjXOJnZOdZY9Q28y4yebKzqDKlxlQ==} - engines: {node: '>=12'} - - d3-shape@3.2.0: - resolution: {integrity: sha512-SaLBuwGm3MOViRq2ABk3eLoxwZELpH6zhl3FbAoJ7Vm1gofKx6El1Ib5z23NUEhF9AsGl7y+dzLe5Cw2AArGTA==} - engines: {node: '>=12'} - - d3-time-format@4.1.0: - resolution: {integrity: sha512-dJxPBlzC7NugB2PDLwo9Q8JiTR3M3e4/XANkreKSUxF8vvXKqm1Yfq4Q5dl8budlunRVlUUaDUgFt7eA8D6NLg==} - engines: {node: '>=12'} - - d3-time@3.1.0: - resolution: {integrity: sha512-VqKjzBLejbSMT4IgbmVgDjpkYrNWUYJnbCGo874u7MMKIWsILRX+OpX/gTk8MqjpT1A/c6HY2dCA77ZN0lkQ2Q==} - engines: {node: '>=12'} - - d3-timer@3.0.1: - resolution: {integrity: sha512-ndfJ/JxxMd3nw31uyKoY2naivF+r29V+Lc0svZxe1JvvIRmi8hUsrMvdOwgS1o6uBHmiz91geQ0ylPP0aj1VUA==} - engines: {node: '>=12'} - - d3-transition@3.0.1: - resolution: {integrity: sha512-ApKvfjsSR6tg06xrL434C0WydLr7JewBB3V+/39RMHsaXTOG0zmt/OAXeng5M5LBm0ojmxJrpomQVZ1aPvBL4w==} - engines: {node: '>=12'} - peerDependencies: - d3-selection: 2 - 3 - - d3-zoom@3.0.0: - resolution: {integrity: sha512-b8AmV3kfQaqWAuacbPuNbL6vahnOJflOhexLzMMNLga62+/nh0JzvJ0aO/5a5MVgUFGS7Hu1P9P03o3fJkDCyw==} - engines: {node: '>=12'} - - debug@4.4.3: - resolution: {integrity: sha512-RGwwWnwQvkVfavKVt22FGLw+xYSdzARwm0ru6DhTVA3umU5hZc28V3kO4stgYryrTlLpuvgI9GiijltAjNbcqA==} - engines: {node: '>=6.0'} - peerDependencies: - supports-color: '*' - peerDependenciesMeta: - supports-color: - optional: true - - decimal.js-light@2.5.1: - resolution: {integrity: sha512-qIMFpTMZmny+MMIitAB6D7iVPEorVw6YQRWkvarTkT4tBeSLLiHzcwj6q0MmYSFCiVpiqPJTJEYIrpcPzVEIvg==} - - deepmerge-ts@7.1.5: - resolution: {integrity: sha512-HOJkrhaYsweh+W+e74Yn7YStZOilkoPb6fycpwNLKzSPtruFs48nYis0zy5yJz1+ktUhHxoRDJ27RQAWLIJVJw==} - engines: {node: '>=16.0.0'} - - deepmerge@4.3.1: - resolution: {integrity: sha512-3sUqbMEc77XqpdNO7FRyRog+eW3ph+GYCbj+rK+uYyRMuwsVy0rMiVtPn+QJlKFvWP/1PYpapqYn0Me2knFn+A==} - engines: {node: '>=0.10.0'} - - define-property@1.0.0: - resolution: {integrity: sha512-cZTYKFWspt9jZsMscWo8sc/5lbPC9Q0N5nBLgb+Yd915iL3udB1uFgS3B8YCx66UVHq018DAVFoee7x+gxggeA==} - engines: {node: '>=0.10.0'} - - defu@6.1.7: - resolution: {integrity: sha512-7z22QmUWiQ/2d0KkdYmANbRUVABpZ9SNYyH5vx6PZ+nE5bcC0l7uFvEfHlyld/HcGBFTL536ClDt3DEcSlEJAQ==} - - 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'} - - detect-libc@2.1.2: - resolution: {integrity: sha512-Btj2BOOO83o3WyH59e8MgXsxEQVcarkUOpEYrubB0urwnN10yQ364rsiByU11nZlqWYZm05i/of7io4mzihBtQ==} - engines: {node: '>=8'} - - devalue@5.8.2: - resolution: {integrity: sha512-DObPPAfdtFbXjxLqK8s2Xk9ZuWz5+ZoFEhC7J76es4GU/rEiXwHTmbImoCdyoCOcBH1UF3+Cz6Z2sYD4hyl5TA==} - - devlop@1.1.0: - resolution: {integrity: sha512-RWmIqhcFf1lRYBvNmr7qTNuyCt/7/ns2jbpp1+PalgE/rDQcBT0fioSMUpJ93irlUhC5hrg4cYqe6U+0ImW0rA==} - - docker-modem@5.0.7: - resolution: {integrity: sha512-XJgGhoR/CLpqshm4d3L7rzH6t8NgDFUIIpztYlLHIApeJjMZKYJMz2zxPsYxnejq5h3ELYSw/RBsi3t5h7gNTA==} - engines: {node: '>= 8.0'} - - dockerode@5.0.1: - resolution: {integrity: sha512-avsq/xk4YPIrn0CgleX5bjT9Y8IT1p9PxrNQ++RBQ2WEyFfHCTDsT9kmyxz+H/axnjAwg8wJWEIuPGOUuNupiA==} - engines: {node: '>= 14.17'} - - dom-serializer@2.0.0: - resolution: {integrity: sha512-wIkAryiqt/nV5EQKqQpo3SToSOV9J0DnbJqwK7Wv/Trc92zIAYZ4FlMu+JPFW1DfGFt81ZTCGgDEabffXeLyJg==} - - domelementtype@2.3.0: - resolution: {integrity: sha512-OLETBj6w0OsagBwdXnPdN0cnMfF9opN69co+7ZrbfPGrdpPVNBUj02spi6B1N7wChLQiPn4CSH/zJvXw56gmHw==} - - domhandler@5.0.3: - resolution: {integrity: sha512-cgwlv/1iFQiFnU96XXgROh8xTeetsnJiDsTc7TYCLFd9+/WNkIqPTxiM/8pSd8VIrhXGTf1Ny1q1hquVqDJB5w==} - engines: {node: '>= 4'} - - domutils@3.2.2: - resolution: {integrity: sha512-6kZKyUajlDuqlHKVX1w7gyslj9MPIXzIFiz/rGu35uC1wMi+kMhQwGhl4lt9unC9Vb9INnY9Z3/ZA3+FhASLaw==} - - drizzle-orm@0.45.2: - resolution: {integrity: sha512-kY0BSaTNYWnoDMVoyY8uxmyHjpJW1geOmBMdSSicKo9CIIWkSxMIj2rkeSR51b8KAPB7m+qysjuHme5nKP+E5Q==} - peerDependencies: - '@aws-sdk/client-rds-data': '>=3' - '@cloudflare/workers-types': '>=4' - '@electric-sql/pglite': '>=0.2.0' - '@libsql/client': '>=0.10.0' - '@libsql/client-wasm': '>=0.10.0' - '@neondatabase/serverless': '>=0.10.0' - '@op-engineering/op-sqlite': '>=2' - '@opentelemetry/api': ^1.4.1 - '@planetscale/database': '>=1.13' - '@prisma/client': '*' - '@tidbcloud/serverless': '*' - '@types/better-sqlite3': '*' - '@types/pg': '*' - '@types/sql.js': '*' - '@upstash/redis': '>=1.34.7' - '@vercel/postgres': '>=0.8.0' - '@xata.io/client': '*' - better-sqlite3: '>=7' - bun-types: '*' - expo-sqlite: '>=14.0.0' - gel: '>=2' - knex: '*' - kysely: '*' - mysql2: '>=2' - pg: '>=8' - postgres: '>=3' - prisma: '*' - sql.js: '>=1' - sqlite3: '>=5' - peerDependenciesMeta: - '@aws-sdk/client-rds-data': - optional: true - '@cloudflare/workers-types': - optional: true - '@electric-sql/pglite': - optional: true - '@libsql/client': - optional: true - '@libsql/client-wasm': - optional: true - '@neondatabase/serverless': - optional: true - '@op-engineering/op-sqlite': - optional: true - '@opentelemetry/api': - optional: true - '@planetscale/database': - optional: true - '@prisma/client': - optional: true - '@tidbcloud/serverless': - optional: true - '@types/better-sqlite3': - optional: true - '@types/pg': - optional: true - '@types/sql.js': - optional: true - '@upstash/redis': - optional: true - '@vercel/postgres': - optional: true - '@xata.io/client': - optional: true - better-sqlite3: - optional: true - bun-types: - optional: true - expo-sqlite: - optional: true - gel: - optional: true - knex: - optional: true - kysely: - optional: true - mysql2: - optional: true - pg: - optional: true - postgres: - optional: true - prisma: - optional: true - sql.js: - optional: true - 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==} - - efrt@2.7.0: - resolution: {integrity: sha512-/RInbCy1d4P6Zdfa+TMVsf/ufZVotat5hCw3QXmWtjU+3pFEOvOQ7ibo3aIxyCJw2leIeAMjmPj+1SLJiCpdrQ==} - engines: {node: '>=12.0.0'} - - electron-to-chromium@1.5.395: - resolution: {integrity: sha512-7zt9Aw+SrmxLWLN0zhaTWZQiCdryLVrYTq5R7iZakLvi2UQPYMMsROYV/2qVCzMeCiSXHwKOU+sZ4zOVVlrtKA==} - - emoji-regex@8.0.0: - resolution: {integrity: sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==} - - encodeurl@2.0.0: - resolution: {integrity: sha512-Q0n9HRi4m6JuGIV1eFlmvJB7ZEVxu93IrMyiMsGC0lrMJMWzRgx6WGquyfQgZVb31vhGgXnfmPNNXmxnOkRBrg==} - engines: {node: '>= 0.8'} - - end-of-stream@1.4.5: - resolution: {integrity: sha512-ooEGc6HP26xXq/N+GCGOT0JKCLDGrq2bQUZrQ7gyrJiZANJ/8YDTxTpQBXGMn+WbIQXNVpyWymm7KYVICQnyOg==} - - entities@4.5.0: - resolution: {integrity: sha512-V0hjH4dGPh9Ao5p0MoRY6BVqtwCjhz6vI5LT8AJ55H+4g9/4vbHx1I54fS0XuclLhDHArPQCiMjDxjaL8fPxhw==} - engines: {node: '>=0.12'} - - entities@7.0.1: - resolution: {integrity: sha512-TWrgLOFUQTH994YUyl1yT4uyavY5nNB5muff+RtWaqNVCAK408b5ZnnbNAUEWLTCpum9w6arT70i1XdQ4UeOPA==} - engines: {node: '>=0.12'} - - error-stack-parser-es@1.0.5: - resolution: {integrity: sha512-5qucVt2XcuGMcEGgWI7i+yZpmpByQ8J1lHhcL7PwqCwu9FPP3VUXzT4ltHe5i2z9dePwEHcDVOAfSnHsOlCXRA==} - - 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'} - - es-module-lexer@2.3.1: - resolution: {integrity: sha512-shc1dbU90Yl/xq1QrC7QRtfcwURZuVRfPhZbDoldJ1cn1gzDvBaBWlv0eFolj5+0znnPJz5TXLxsN77X/12KTA==} - - es-object-atoms@1.1.2: - resolution: {integrity: sha512-HWcBoN6NileqtSydK2FqHbS/LoDd2pqrnQHLyJzBj4kOp/ky2MWMN694xOfkK8/SnUsW2DH7EfyVlydKCsm1Zw==} - engines: {node: '>= 0.4'} - - es-toolkit@1.49.0: - resolution: {integrity: sha512-G5iZ6Pc/FNRY/soKZHC+TxGDD83rHUDXxzaWhGCX44vAv/tMs56WMusnm/KMNK+luUPsgA9U28cGr4RDlSzL2g==} - - esbuild@0.28.1: - resolution: {integrity: sha512-HrJrvZv5ayxBzPfwphOoNzkzOIIlifzk0KJrGK2c8R4+LKpMtpYLQeUdjnwjWv/LZlkH2laZk+4w78pi99D4Vw==} - engines: {node: '>=18'} - hasBin: true - - escalade@3.2.0: - resolution: {integrity: sha512-WUj2qlxaQtO4g6Pq5c29GTcWGDyd8itL8zTlipgECz3JesAiiOKotd8JU6otB3PACgG6xkJUyVhboMS+bje/jA==} - engines: {node: '>=6'} - - escape-html@1.0.3: - resolution: {integrity: sha512-NiSupZ4OeuGwr68lGIeym/ksIZMJodUGOSCZ/FSnTxcrekbvqrgdUxlJOMpijaKZVjAJrWrGs/6Jy8OMuyj9ow==} - - esm-env@1.2.2: - resolution: {integrity: sha512-Epxrv+Nr/CaL4ZcFGPJIYLWFom+YeV1DqMLHJoEd9SYRxNbaFruBwfEX/kkHUJf55j2+TUbmDcmuilbP1TmXHA==} - - esrap@2.3.0: - resolution: {integrity: sha512-GQ/7RN8uOtEfNpzZzBMTzW9JBcX42oaSVtPzdF+6cEL8pqIL094iUpr9jzYGn4O4P/1S60dJ6izyT8F4LYARng==} - peerDependencies: - '@typescript-eslint/types': ^8.2.0 - peerDependenciesMeta: - '@typescript-eslint/types': - optional: true - - estree-walker@2.0.2: - resolution: {integrity: sha512-Rfkk/Mp/DL7JVje3u18FxFujQlTNR2q6QfMSMB7AvCBx91NGj/ba3kCfza0f6dVDbw7YlRf/nDrn7pQrCCyQ/w==} - - estree-walker@3.0.3: - resolution: {integrity: sha512-7RUKfXgSMMkzt6ZuXmqapOurLGPPfgj6l9uRZ7lRGolvk0y2yocc35LdcxKC5PQZdn2DMqioAQ2NoWcrTKmm6g==} - - etag@1.8.1: - resolution: {integrity: sha512-aIL5Fx7mawVa300al2BnEE4iNvo1qETxLrPI/o05L7z6go7fCw1J6EQmbK4FmJ2AS7kgVF/KEZWufBfdClMcPg==} - engines: {node: '>= 0.6'} - - eventemitter3@5.0.4: - resolution: {integrity: sha512-mlsTRyGaPBjPedk6Bvw+aqbsXDtoAyAzm5MO7JgU+yVRyMQ5O8bD4Kcci7BS85f93veegeCPkL8R4GLClnjLFw==} - - eventsource-parser@3.1.0: - resolution: {integrity: sha512-kJezFj9YFAMLeORyi7aCLxLbD5/qWMQnoMVlVPyHIll7lgRJCc3JVln9Vgl9nwQi0YkMnhdGTMNn7CkRRAptMg==} - 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.6.0: - resolution: {integrity: sha512-XKJXDsASUOo0LLtFwW5hCcQGH0N4WQc/Rn8/Pvoia+TJFOkkFPvrtW9lZOeeNcxQJspvOIERMwiRLsVFlhHEkA==} - engines: {node: '>= 16'} - peerDependencies: - express: '>= 4.11' - - express@5.2.1: - resolution: {integrity: sha512-hIS4idWWai69NezIdRt2xFVofaF4j+6INOpJlVOLDO8zXGpUVEVzIYk12UUi2JzjEzWL3IOAxcTubgz9Po0yXw==} - engines: {node: '>= 18'} - - fast-deep-equal@3.1.3: - resolution: {integrity: sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==} - - fast-uri@3.1.4: - resolution: {integrity: sha512-8JnbkQ4juDyvYs4mgFGQqg4yCYtFDtUtmp2QIQq11ZZe5CFQ5wcqm1rqDgAh/QdMySuBnPzMUiJUNZG5N/AiQw==} - - fastest-levenshtein@1.0.16: - resolution: {integrity: sha512-eRnCtTTtGZFpQCwhJiUOuxPQWRXVKYDn0b2PeHfXL6/Zi53SLAzAHfVhVWK2AryC/WH05kGfxhFIPvTF0SXQzg==} - engines: {node: '>= 4.9.1'} - - fdir@6.5.0: - resolution: {integrity: sha512-tIbYtZbucOs0BRGqPJkshJUYdL+SDH7dVM8gjy+ERp3WAUjLEFJE+02kanyHtwjWOnwrKYBiwAmM0p4kLJAnXg==} - engines: {node: '>=12.0.0'} - peerDependencies: - picomatch: ^3 || ^4 - peerDependenciesMeta: - picomatch: - optional: true - - finalhandler@2.1.1: - resolution: {integrity: sha512-S8KoZgRZN+a5rNwqTxlZZePjT/4cnm0ROV70LedRHZ0p8u9fRID0hJUZQpkKLzro8LfmC8sx23bY6tVNxv8pQA==} - engines: {node: '>= 18.0.0'} - - forwarded@0.2.0: - resolution: {integrity: sha512-buRG0fpBtRHSTCOASe6hD258tEubFoRLb4ZNA6NxMVHNw2gOcwHo9wyablzMzOA5z9xA9L1KNjk/Nt6MT9aYow==} - engines: {node: '>= 0.6'} - - fractional-indexing@3.4.0: - resolution: {integrity: sha512-8J3glhz2rrpKG6KmI7wmJo3zH1VjeOpN+vTJSw1fOyO+Viqq3zX6/5NGh6oaZB2qIAYdOYuu5Dz9xp4faOO0Pg==} - engines: {node: ^14.13.1 || >=16.0.0} - - framer-motion@12.42.2: - resolution: {integrity: sha512-5XY9luDiu0oHfHBjpDthFMh0ES+122w6p/papSJBweMkO8Sn+PW2QaEgRblQBpWFnuvZS5qvarpt/hO2pjGmnw==} - peerDependencies: - '@emotion/is-prop-valid': '*' - react: ^18.0.0 || ^19.0.0 - react-dom: ^18.0.0 || ^19.0.0 - peerDependenciesMeta: - '@emotion/is-prop-valid': - optional: true - react: - optional: true - react-dom: - optional: true - - fresh@2.0.0: - resolution: {integrity: sha512-Rx/WycZ60HOaqLKAi6cHRKKI7zxWbJ31MhntmtwMoaTeF7XFH9hhBp8vITaMidfljRQ6eYWCKkaTK+ykVJHP2A==} - engines: {node: '>= 0.8'} - - fs-constants@1.0.0: - resolution: {integrity: sha512-y6OAwoSIf7FyjMIv94u+b5rdheZEjzR63GTyZJm5qh4Bi+2YgwLCcI/fPFZkL5PSixOt6ZNKm+w+Hfp/Bciwow==} - - fsevents@2.3.3: - resolution: {integrity: sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==} - engines: {node: ^8.16.0 || ^10.6.0 || >=11.0.0} - os: [darwin] - - function-bind@1.1.2: - resolution: {integrity: sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA==} - - gensync@1.0.0-beta.2: - resolution: {integrity: sha512-3hN7NaskYvMDLQY55gnW3NQ+mesEAepTqlg+VEbj7zzqEMBVNhzcGYYeqFo/TlYz6eQiFcp1HcsCZO+nGgS8zg==} - engines: {node: '>=6.9.0'} - - get-caller-file@2.0.5: - resolution: {integrity: sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg==} - engines: {node: 6.* || 8.* || >= 10.*} - - get-intrinsic@1.3.0: - resolution: {integrity: sha512-9fSjSaos/fRIVIp+xSJlE6lfwhES7LNtKaCBIamHsjr2na1BiABJPo0mOjjz8GJDURarmCPGqaiVg5mfjb98CQ==} - engines: {node: '>= 0.4'} - - get-proto@1.0.1: - resolution: {integrity: sha512-sTSfBjoXBp89JvIKIefqw7U2CCebsc74kiY6awiGogKtoSGbgjYE/G/+l9sF3MWFPNc9IcoOC4ODfKHfxFmp0g==} - engines: {node: '>= 0.4'} - - giget@3.3.0: - resolution: {integrity: sha512-gzi2D96p+AMfDcmJHGDj3KJ9NRiwvlFAU5yfa3ROwWZmFUjX4P43x3BcyRaOMMLto1vUo7C+86+MFhYTl6Ryiw==} - hasBin: true - - gopd@1.2.0: - resolution: {integrity: sha512-ZUKRh6/kUFoAiTAtTYPZJ3hw9wNxx+BIBOijnlG9PnrJsCcSjs1wyyD6vJpaYtgnzDrKYRSqf3OO6Rfa93xsRg==} - engines: {node: '>= 0.4'} - - grad-school@0.0.5: - resolution: {integrity: sha512-rXunEHF9M9EkMydTBux7+IryYXEZinRk6g8OBOGDBzo/qWJjhTxy86i5q7lQYpCLHN8Sqv1XX3OIOc7ka2gtvQ==} - engines: {node: '>=8.0.0'} - - has-flag@4.0.0: - resolution: {integrity: sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==} - engines: {node: '>=8'} - - 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'} - - hast-util-to-html@9.0.5: - resolution: {integrity: sha512-OguPdidb+fbHQSU4Q4ZiLKnzWo8Wwsf5bZfbvu7//a9oTYoqD/fWpe96NuHkoS9h0ccGOTe0C4NGXdtS0iObOw==} - - hast-util-whitespace@3.0.0: - resolution: {integrity: sha512-88JUN06ipLwsnv+dVn+OIYOvAuvBMy/Qoi6O7mQHxdPXpjy+Cd6xRkWwux7DKO+4sYILtLBRIKgsdpS2gQc7qw==} - - hono@4.12.31: - resolution: {integrity: sha512-zJIHFrl6bq3RDd2YusFNCDlM8qUprxKswyi/OPzPyzKDdyBXDqWx8bZlZ7R+saTdSTatUmb3O7K4SspGPaEOQg==} - engines: {node: '>=16.9.0'} - - hosted-git-info@10.1.1: - resolution: {integrity: sha512-DeOnSPAvOndYKfw075gt8yZzQ7S2hNztw34zBTfhIzLhmBTswIBg5/y+pqu/VD5cYWm5goAFTusDmUEmKZ0PEQ==} - engines: {node: ^22.22.2 || ^24.15.0 || >=26.0.0} - - html-to-image@1.11.13: - resolution: {integrity: sha512-cuOPoI7WApyhBElTTb9oqsawRvZ0rHhaHwghRLlTuffoD1B2aDemlCruLeZrUIIdvG7gs9xeELEPm6PhuASqrg==} - - html-to-text@10.0.0: - resolution: {integrity: sha512-2OH59Gtprdczel+7Rxgpz9hGVJREaf8Lt1H4kZwWHpEn70VQKRuMNGsb2eDbwaTzrYzb0hheiOG1P7Dim0B4dQ==} - engines: {node: '>=20.19.0'} - - html-to-text@9.0.5: - resolution: {integrity: sha512-qY60FjREgVZL03vJU6IfMV4GDjGBIoOyvuFdpBDIX9yTlDw0TjxVBQp+P8NvpdIXNJvfWBTNul7fsAQJq2FNpg==} - engines: {node: '>=14'} - - html-void-elements@3.0.0: - resolution: {integrity: sha512-bEqo66MRXsUGxWHV5IP0PUiAWwoEjba4VCzg0LjFJBpchPaTfyfCKTG6bc5F8ucKec3q5y6qOdGyYTSBEvhCrg==} - - html5parser@3.0.0: - resolution: {integrity: sha512-iNpSopa+4YHX50UOk825tBy7MghmXHo/ZpLskBYN0kAr1xhH8GlIMk5bLRXcZlfP3AnLUcSuFMu8C4MdOUxA8A==} - - htmlparser2@10.1.0: - resolution: {integrity: sha512-VTZkM9GWRAtEpveh7MSF6SjjrpNVNNVJfFup7xTY3UpFtm67foy9HDVXneLtFVt4pMz5kZtgNcvCniNFb1hlEQ==} - - htmlparser2@8.0.2: - resolution: {integrity: sha512-GYdjWKDkbRLkZ5geuHs5NY1puJ+PXwP7+fHPRz06Eirsb9ugf6d8kkXav6ADhcODhFFPMIXyxkxSuMf3D6NCFA==} - - http-errors@2.0.1: - resolution: {integrity: sha512-4FbRdAX+bSdmo4AUFuS0WNiPz8NgFt+r8ThgNWmlrjQjt1Q7ZR9+zTlce2859x4KSXrwIsaeTqDoKQmtP8pLmQ==} - engines: {node: '>= 0.8'} - - ical-generator@11.0.0: - resolution: {integrity: sha512-OScZbXduIbjqtJzq0WLyPpAuKnc106+l28wszD+Wi2O9jXn76NVBfr4Ksv2XFyQn4JNZ9vWr5xAac0uT/FhVag==} - engines: {node: 22 || >=24.0.0} - peerDependencies: - '@touch4it/ical-timezones': '>=1.6.0' - '@types/luxon': '>= 1.26.0' - '@types/mocha': '>= 8.2.1' - '@types/node': '*' - dayjs: '>= 1.10.0' - luxon: '>= 1.26.0' - moment: '>= 2.29.0' - moment-timezone: '>= 0.5.33' - rrule: '>= 2.6.8' - peerDependenciesMeta: - '@touch4it/ical-timezones': - optional: true - '@types/luxon': - optional: true - '@types/mocha': - optional: true - '@types/node': - optional: true - dayjs: - optional: true - luxon: - optional: true - moment: - optional: true - moment-timezone: - optional: true - rrule: - optional: true - - 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==} - - immer@11.1.15: - resolution: {integrity: sha512-VrNANlmnWQnh5COXIIOQXM9oOJw7naGKlBT74ZOOR6lpVXc3gFEu9FJLDFcpCJ2j+NWr8TIwtWD//T6ZX6TKiQ==} - - inherits@2.0.4: - resolution: {integrity: sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==} - - internmap@2.0.3: - resolution: {integrity: sha512-5Hh7Y1wQbvY5ooGgPbDaL5iYLAPzMTUrjMulskHLH6wnv/A+1q5rgEaiuqEjB+oxGXIVZs1FF+R/KPN3ZSQYYg==} - engines: {node: '>=12'} - - ip-address@10.2.0: - resolution: {integrity: sha512-/+S6j4E9AHvW9SWMSEY9Xfy66O5PWvVEJ08O0y5JGyEKQpojb0K0GKpz/v5HJ/G0vi3D2sjGK78119oXZeE0qA==} - engines: {node: '>= 12'} - - ipaddr.js@1.9.1: - resolution: {integrity: sha512-0KI/607xoxSToH7GjN1FfSbLoU0+btTicjsQSWQlh/hZykN8KpmMf7uYwPW3R+akZ6R/w18ZlXSHBYXiYUPO3g==} - engines: {node: '>= 0.10'} - - is-accessor-descriptor@1.0.2: - resolution: {integrity: sha512-AIbwAcazqP3R65dGvqk1V+a+vE5Fg1yu/ZKMOiBWSUIXXiwQkYmXQcVa2O0nh0tSDKDFKxG2mY7dB1Sr4hEP1g==} - engines: {node: '>= 0.4'} - - is-buffer@1.1.6: - resolution: {integrity: sha512-NcdALwpXkTm5Zvvbk7owOUSvVvBKDgKP5/ewfXEznmQFfs4ZRmanOeKBTjRVjka3QFoN6XJ+9F3USqfHqTaU5w==} - - is-data-descriptor@1.0.1: - resolution: {integrity: sha512-bc4NlCDiCr28U4aEsQ3Qs2491gVq4V8G7MQyws968ImqjKuYtTJXrl7Vq7jsN7Ly/C3xj5KWFrY7sHNeDkAzXw==} - engines: {node: '>= 0.4'} - - is-descriptor@1.0.4: - resolution: {integrity: sha512-bv5z95W0dDtLfKwDfkTNxaRxmISBD3eQBKJeVxv2AQ7MjuUnDNG7cIQqvFtMOUYhsILWHhMayWdoGqNqYYYjww==} - engines: {node: '>= 0.4'} - - is-fullwidth-code-point@3.0.0: - resolution: {integrity: sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==} - engines: {node: '>=8'} - - is-in-ci@2.0.0: - resolution: {integrity: sha512-cFeerHriAnhrQSbpAxL37W1wcJKUUX07HyLWZCW1URJT/ra3GyUTzBgUnh24TMVfNTV2Hij2HLxkPHFZfOZy5w==} - engines: {node: '>=20'} - hasBin: true - - is-number@3.0.0: - resolution: {integrity: sha512-4cboCqIpliH+mAvFNegjZQ4kgKc3ZUhQVr3HvWbSh5q3WH2v82ct+T2Y1hdU5Gdtorx/cLifQjqCbL7bpznLTg==} - engines: {node: '>=0.10.0'} - - is-promise@4.0.0: - resolution: {integrity: sha512-hvpoI6korhJMnej285dSg6nu1+e6uxs7zG3BYAm5byqDsgJNWwxzM6z6iZiAgQR4TJ30JmBTOwqZUw3WlyH3AQ==} - - is-reference@3.0.3: - resolution: {integrity: sha512-ixkJoqQvAP88E6wLydLGGqCJsrFUnqoH6HnaczB8XmDH1oaWU+xxdptvikTgaEhtZ53Ky6YXiBuUI2WXLMCwjw==} - - isbot@5.2.1: - resolution: {integrity: sha512-dJ+LpKyClQZ7NG+j3OensC/mAZkGpukE9YUrgPYvAZj2doVL0edfDgywTUh5CXa0o+nW9a1V9e5+CJTX8+SxRw==} - engines: {node: '>=18'} - - isexe@2.0.0: - resolution: {integrity: sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==} - - jest-get-type@29.6.3: - resolution: {integrity: sha512-zrteXnqYxfQh7l5FHyL38jL39di8H8rHoecLH3JNxH3BwOrBsNeabdap5e0I23lD4HHI8W5VFBZqG4Eaq5LNcw==} - engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} - - jest-validate@29.7.0: - resolution: {integrity: sha512-ZB7wHqaRGVw/9hST/OuFUReG7M8vKeq0/J2egIGLdvjHCmYqGARhzXmtgi+gVeZ5uXFF219aOc3Ls2yLg27tkw==} - engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} - - jiti@2.7.0: - resolution: {integrity: sha512-AC/7JofJvZGrrneWNaEnJeOLUx+JlGt7tNa0wZiRPT4MY1wmfKjt2+6O2p2uz2+skll8OZZmJMNqeke7kKbNgQ==} - hasBin: true - - jose@6.2.4: - resolution: {integrity: sha512-N8acGzVsQy6M/fjFcxtysNc4Q379TcM5dM/qKkNtsHFji88yANnXTr7BLeP75iPnFwBfQzM/jg2BZ9+HZrHCZA==} - - js-sha256@0.10.1: - resolution: {integrity: sha512-5obBtsz9301ULlsgggLg542s/jqtddfOpV5KJc4hajc9JV8GeY2gZHSVpYBn4nWqAUTJ9v+xwtbJ1mIBgIH5Vw==} - - js-tokens@4.0.0: - resolution: {integrity: sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==} - - jsesc@3.1.0: - resolution: {integrity: sha512-/sM3dO2FOzXjKQhJuo0Q173wf2KOo8t4I8vHy6lF9poUp7bKT0/NHE8fPX23PwfhnykfqnC2xRxOnVw5XuGIaA==} - engines: {node: '>=6'} - hasBin: true - - 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==} - - json5@2.2.3: - resolution: {integrity: sha512-XmOWe7eyHYH14cLdVPoyg+GOH3rYX++KpzrylJwSW98t3Nk+U8XOl8FWKOgwtzdb8lXGf6zYwDUzeHMWfxasyg==} - engines: {node: '>=6'} - hasBin: true - - jsonc-parser@3.3.1: - resolution: {integrity: sha512-HUgH65KyejrUFPvHFPbqOY0rsFip3Bo5wb4ngvdi1EpCYWUQDC5V+Y7mZws+DLkr4M//zQJoanu1SP+87Dv1oQ==} - - kind-of@3.2.2: - resolution: {integrity: sha512-NOW9QQXMoZGg/oqnVNoNTTIFEIid1627WCffUBJEdMxYApq7mNE7CpzucIPc+ZQg25Phej7IJSmX3hO+oblOtQ==} - engines: {node: '>=0.10.0'} - - kleur@4.1.5: - resolution: {integrity: sha512-o+NO+8WrRiQEE4/7nwRJhN1HWpVmJm511pBHUxPLtp0BUISzlBplORYSmTclCnJvQq2tKu/sgl3xVpkc7ZWuQQ==} - engines: {node: '>=6'} - - kysely@0.29.4: - resolution: {integrity: sha512-y5mVgQNkMbs1eK9Xyc0pmNdabN2wHhRYY/5r4W5HrUT1rYCEPeVNSj1RUJeSDKT3U0p+mXCvLgkrFuIafYI6BA==} - engines: {node: '>=22.0.0'} - - leac@0.6.0: - resolution: {integrity: sha512-y+SqErxb8h7nE/fiEX07jsbuhrpO9lL8eca7/Y1nuWV2moNlXhyd59iDGcRf6moVyDMbmTNzL40SUyrFU/yDpg==} - - leac@0.7.0: - resolution: {integrity: sha512-qMrZeyEekgdRQ9o6a4NAB2EQZrv827GJdn1vnapwSJ90hWRB4TzUSunvacPkxQ2TnNqHNI1/zSt0hlo0crG8Jw==} - - leven@3.1.0: - resolution: {integrity: sha512-qsda+H8jTaUaN/x5vzW2rzc+8Rw4TAQ/4KjB46IwK5VH+IlVeeeje/EoZRpiXvIqjFgK84QffqPztGI3VBLG1A==} - engines: {node: '>=6'} - - lightningcss-android-arm64@1.33.0: - resolution: {integrity: sha512-gEpRTalKdosp4Bb8qWtc2iOgE5SeIHlpS1up9bFq2wAyYhl1UdTObYiHe98zEM9SQvSoqQZ1IQD0JNpg3Ml5pg==} - engines: {node: '>= 12.0.0'} - cpu: [arm64] - os: [android] - - lightningcss-darwin-arm64@1.33.0: - resolution: {integrity: sha512-Sciaz8eenNTKn9b3t7+xr0ipTp9YxKQY4npwQ3mrRuL0BAVHBLyZxofhaKBAVtzmtRZ/zTyo0/to4B1uWG/Djg==} - engines: {node: '>= 12.0.0'} - cpu: [arm64] - os: [darwin] - - lightningcss-darwin-x64@1.33.0: - resolution: {integrity: sha512-Z5UPAxzrjlWNNyGy6i65cJzzvgJ5D3T6wMvs+gWpY9d7qRhANrxqAp6LhxIgZhWEw18RfJTGcRxjuLIBr+m8XQ==} - engines: {node: '>= 12.0.0'} - cpu: [x64] - os: [darwin] - - lightningcss-freebsd-x64@1.33.0: - resolution: {integrity: sha512-QQM/Ti/hQajJwCY+RiWuCZ9sdtI/XQk7nDK5vC8kkdwixezOlDgvDx7+RT+QjK6FcFT4MpsuoBnHIo/O3StRRg==} - engines: {node: '>= 12.0.0'} - cpu: [x64] - os: [freebsd] - - lightningcss-linux-arm-gnueabihf@1.33.0: - resolution: {integrity: sha512-N7FVBe6iS24MlM6R/4RBTxGhQheZGs7tiQ9U32UtF75NzP5Q7xWPRqLBCKxlRQRk3rY1jCIPLzx7WzOhuUIRLQ==} - engines: {node: '>= 12.0.0'} - cpu: [arm] - os: [linux] - - lightningcss-linux-arm64-gnu@1.33.0: - resolution: {integrity: sha512-j2v/itmy4HlNxlc6voKXYgBqNi0Ng2LShg4z7GufpEgs05P+2suBVyi9I6YHq5uoVFx9ETin3eCEhLVyXGQnKg==} - engines: {node: '>= 12.0.0'} - cpu: [arm64] - os: [linux] - libc: [glibc] - - lightningcss-linux-arm64-musl@1.33.0: - resolution: {integrity: sha512-yiO5ROMuYQgXbC60yjZU5CYSFZGKXL0HFATXt9mHJn1+zW55oCtMI9NfcVhYLMFDL7gV7oBPon/EmMMGg2OvtQ==} - engines: {node: '>= 12.0.0'} - cpu: [arm64] - os: [linux] - libc: [musl] - - lightningcss-linux-x64-gnu@1.33.0: - resolution: {integrity: sha512-ar+Ju7LmcN0Jo4FpL4hpFybwNG9/3A/Br5KW2n2jyODg3MEZXaDYADdemoNS+BDNfMgKvylJLj4S5tyRActuAg==} - engines: {node: '>= 12.0.0'} - cpu: [x64] - os: [linux] - libc: [glibc] - - lightningcss-linux-x64-musl@1.33.0: - resolution: {integrity: sha512-RYiYbkokw0trfKqqzfF55lginwEPrD3OJDfTuJzFs1MK6iFnDenaz1fqLLtX4ITG3OktJQXOeTaw1awrBAlZPw==} - engines: {node: '>= 12.0.0'} - cpu: [x64] - os: [linux] - libc: [musl] - - lightningcss-win32-arm64-msvc@1.33.0: - resolution: {integrity: sha512-1K+MPfLSFVpphzpdbfkhlWk6wBrTObBzS2T6db10PNOZgR9GoVsAWzwNyuhUYYbTp23j+4RrncfujZ4uAzXvwA==} - engines: {node: '>= 12.0.0'} - cpu: [arm64] - os: [win32] - - lightningcss-win32-x64-msvc@1.33.0: - resolution: {integrity: sha512-OlEICDx/Xl0FqSp4bry8zFnCvGpig3Gl4gCquvYwHuqJKEC1+n9NgDniFvqHGmMv1ZkqDJrDqKKSykTDX+ehuA==} - engines: {node: '>= 12.0.0'} - cpu: [x64] - os: [win32] - - lightningcss@1.33.0: - resolution: {integrity: sha512-WkUDrojuJs0xkgGf2udWxa3yGBRxPtxUkB79i6aCZLRgc7PM8fZe9TosfPDcvEpQZbuFASnHYmRLBLUbmLOIIA==} - engines: {node: '>= 12.0.0'} - - lilconfig@3.1.3: - resolution: {integrity: sha512-/vlFKAoH5Cgt3Ie+JLhRbwOsCQePABiU3tJ1egGvyQ+33R/vcwM2Zl2QR/LzjsBeItPt3oSVXapn+m4nQDvpzw==} - engines: {node: '>=14'} - - locate-character@3.0.0: - resolution: {integrity: sha512-SW13ws7BjaeJ6p7Q6CO2nchbYEc3X3J6WrmTTDto7yMPqVSZTUyY5Tjbid+Ab8gLnATtygYtiDIJGQRRn2ZOiA==} - - lodash.camelcase@4.3.0: - resolution: {integrity: sha512-TwuEnCnxbc3rAvhf/LbG7tJUDzhqXyFnv3dtzLOPgCG/hODL7WFnsbwktkD7yUV0RrreP/l1PALq/YSg6VvjlA==} - - long@5.3.2: - resolution: {integrity: sha512-mNAgZ1GmyNhD7AuqnTG3/VQ26o760+ZYBPKjPvugO8+nLbYfX6TVpJPseBvopbdY+qpZ/lKUnmEc1LeZYS3QAA==} - - lru-cache@11.5.1: - resolution: {integrity: sha512-RPimw/7aMdv2oqRrxKwvZXcPfwBrn/JZ2xYcY9Hus/6LaS3VOAKVWKWgNLCFSiOm1ESXinjsDlidVU7JlnCN2A==} - engines: {node: 20 || >=22} - - lru-cache@11.5.2: - resolution: {integrity: sha512-4pfM1Ff0x50o0tQwb5ucw/RzNyD0/YJME6IVcStalZuMWxdt3sR3huStTtxz4PUmvZfRguvDejasvQ2kifR11g==} - engines: {node: 20 || >=22} - - lru-cache@5.1.1: - resolution: {integrity: sha512-KpNARQA3Iwv+jTA0utUVVbrh+Jlrr1Fv0e56GGzAFOXN7dk/FviaDW8LHmK52DlcH4WP2n6gI8vN1aesBFgo9w==} - - lunorash@1.0.0-alpha.98: - resolution: {integrity: sha512-AEb+KNKlHaTb2slZZn7Jku1cPJPfXweFfdT4tCJFj6VymGanH3PHPSeHpcJ1jBx+x+LyzNuhYeqT/lQwu3dJfQ==} - engines: {node: ^22.15.0 || >=24.11.0} - hasBin: true - - luxon@3.7.2: - resolution: {integrity: sha512-vtEhXh/gNjI9Yg1u4jX/0YVPMvxzHuGgCm6tC5kZyb08yjGWGnqAjGJvcXbqQR2P3MyMEFnRbpcdFS6PBcLqew==} - engines: {node: '>=12'} - - magic-string@0.30.21: - resolution: {integrity: sha512-vd2F4YUyEXKGcLHoq+TEyCjxueSeHnFxyyjNp80yg0XV4vUhnDer/lvvlqM/arB5bXQN5K2/3oinyCRyx8T2CQ==} - - magic-string@1.0.0: - resolution: {integrity: sha512-CGvjzMN08iv6w1mm4/x3Gh1hLb4VnyRUA15FFpl6CsCIGGoe36k7kY5KNz9QDbSBN5I/fWHM6ZlIkUTa5xdUEA==} - - math-intrinsics@1.1.0: - resolution: {integrity: sha512-/IXtbwEk5HTPyEwyKX6hGkYXxM9nbj64B+ilVJnC/R6B0pH5G4V3b0pVbL7DBj4tkhBAppbQUlf6F6Xl9LHu1g==} - engines: {node: '>= 0.4'} - - mdast-util-to-hast@13.2.1: - resolution: {integrity: sha512-cctsq2wp5vTsLIcaymblUriiTcZd0CwWtCbLvrOzYCDZoWyMNV8sZ7krj09FSnsiJi3WVsHLM4k6Dq/yaPyCXA==} - - media-typer@1.1.0: - resolution: {integrity: sha512-aisnrDP4GNe06UcKFnV5bfMNPBUw4jsLGaWwWfnH3v02GnBuXX2MCVn5RbrWo0j3pczUilYblq7fQ7Nw2t5XKw==} - engines: {node: '>= 0.8'} - - merge-descriptors@2.0.0: - resolution: {integrity: sha512-Snk314V5ayFLhp3fkUREub6WtjBfPdCPY1Ln8/8munuLuiYhsABgBVWsozAG+MWMbVEvcdcpbi9R7ww22l9Q3g==} - engines: {node: '>=18'} - - micromark-util-character@2.1.1: - resolution: {integrity: sha512-wv8tdUTJ3thSFFFJKtpYKOYiGP2+v96Hvk4Tu8KpCAsTMs6yi+nVmGh1syvSCsaxz45J6Jbw+9DD6g97+NV67Q==} - - micromark-util-encode@2.0.1: - resolution: {integrity: sha512-c3cVx2y4KqUnwopcO9b/SCdo2O67LwJJ/UyqGfbigahfegL9myoEFoDYZgkT7f36T0bLrM9hZTAaAyH+PCAXjw==} - - micromark-util-sanitize-uri@2.0.1: - resolution: {integrity: sha512-9N9IomZ/YuGGZZmQec1MbgxtlgougxTodVwDzzEouPKo3qFWvymFHWcnDi2vzV1ff6kas9ucW+o3yzJK9YB1AQ==} - - micromark-util-symbol@2.0.1: - resolution: {integrity: sha512-vs5t8Apaud9N28kgCrRUdEed4UJ+wWNvicHLPxCa9ENlYuAY31M0ETy5y1vA33YoNPDFTghEbnh6efaE8h4x0Q==} - - micromark-util-types@2.0.2: - resolution: {integrity: sha512-Yw0ECSpJoViF1qTU4DC6NwtC4aWGt1EkzaQB8KPPyCRR8z9TWeV0HbEFGTO+ZY1wB22zmxnJqhPyTpOVCpeHTA==} - - 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'} - - mime@4.1.0: - resolution: {integrity: sha512-X5ju04+cAzsojXKes0B/S4tcYtFAJ6tTMuSPBEn9CPGlrWr8Fiw7qYeLT0XyH80HSoAoqWCaz+MWKh22P7G1cw==} - engines: {node: '>=16'} - hasBin: true - - miniflare@4.20260714.0: - resolution: {integrity: sha512-MYlTCLdWCPqvrYY2uLwOjXwmglXuiHE3TGGkbOW4BwjUPa1r07E0iuHwrNDIs/sxK21r+o90Jx58AV2KeNdJZw==} - engines: {node: '>=22.0.0'} - hasBin: true - - miniflare@4.20260721.0: - resolution: {integrity: sha512-fBLaCxZ2i/nPH8iyLzvza0C8/sSF4sjD1ma1Skf+pkZVK0TlaW5ujHJlUHwcwR66v2JZt+Q28d4DCX/oaLG0cA==} - engines: {node: '>=22.0.0'} - hasBin: true - - minimatch@10.2.5: - resolution: {integrity: sha512-MULkVLfKGYDFYejP07QOurDLLQpcjk7Fw+7jXS2R2czRQzR56yHRveU5NDJEOviH+hETZKSkIk5c+T23GjFUMg==} - engines: {node: 18 || 20 || >=22} - - mkdirp-classic@0.5.3: - resolution: {integrity: sha512-gKLcREMhtuZRwRAfqP3RFW+TK4JqApVBtOIftVgjuABpAtpxhPGaDcfvbhNvD0B8iD1oUr/txX35NjcaY6Ns/A==} - - moo@0.5.3: - resolution: {integrity: sha512-m2fmM2dDm7GZQsY7KK2cme8agi+AAljILjQnof7p1ZMDe6dQ4bdnSMx0cPppudoeNv5hEFQirN6u+O4fDE0IWA==} - - motion-dom@12.42.2: - resolution: {integrity: sha512-5gIMWLp/PycBtJRJWRgjxke5n8dlvkSn2DrYW+tr3XcqAZY1xZh6BJyooJXCM8wdfM7wfMjkBJNLge1CKPUIRA==} - - motion-utils@12.39.0: - resolution: {integrity: sha512-8nadJAJjTtqRkmRF36FoJTrywK9nnFmnPwnSMyxaOCU7GDjN9RTMJIxx9De8ErM+vpPhMccr/6fo5WciyQLnMQ==} - - motion@12.42.2: - resolution: {integrity: sha512-Atvv11yUKIid41cVrRBDVX5m8tF8kNpExRSlbpt6APClhDjtwQssgFHhQzejxw7/7YYbjHSPKBVbHo05BuJT5Q==} - peerDependencies: - '@emotion/is-prop-valid': '*' - react: ^18.0.0 || ^19.0.0 - react-dom: ^18.0.0 || ^19.0.0 - peerDependenciesMeta: - '@emotion/is-prop-valid': - optional: true - react: - optional: true - react-dom: - optional: true - - ms@2.1.3: - resolution: {integrity: sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==} - - nan@2.28.0: - resolution: {integrity: sha512-fTsDz99OTq2sVePhGdp4qQhggZFtKr64ZNVyVajRKtMOkJxYekplBh577PiJB12v/D3s2E5cGtOI45LWp6rnLQ==} - - nanoid@3.3.16: - resolution: {integrity: sha512-bzlKTyNJ7+LdGIIwy8ijFpIqEQIvafahV7eYykJ8Cvh42EdJeODoJ6gUJXpQJvej1BddH8OqTXZNE/KfbWAu8Q==} - engines: {node: ^10 || ^12 || ^13.7 || ^14 || >=15.0.1} - hasBin: true - - nanostores@1.4.1: - resolution: {integrity: sha512-PGd3uPojJB9Z07d5NX3Db/SOSBbyy3wLMUGq0GpnEEJfVzY9mq7daPMAZ3jObV5D3Jn+YKND636eI5ULg7F80Q==} - engines: {node: ^20.0.0 || >=22.0.0} - - negotiator@1.0.0: - resolution: {integrity: sha512-8Ofs/AUQh8MaEcrlq5xOX0CQ9ypTF5dl78mjlMNfOK08fzpgTHQRQPBxcPlEtIw0yRpws+Zo/3r+5WRby7u3Gg==} - engines: {node: '>= 0.6'} - - node-releases@2.0.51: - resolution: {integrity: sha512-wRNIrw4DmVLKQlbgOMdkMx27Wrpzes2hh5Jtbi2bjPd+4wJstWIqP5A+lscnqbm0xxmT5Bpg8Lec5ItEBwx6BQ==} - engines: {node: '>=18'} - - normalize-package-data@9.0.0: - resolution: {integrity: sha512-la34cHOCAT6itNOYCvPi40XP8r0y6OHuNkooOfnfFUHdgy5MBw665qq5xsuS02AEC7WPQvhwvb7E9PI1gipplw==} - engines: {node: ^22.22.2 || ^24.15.0 || >=26.0.0} - - normalize-path@3.0.0: - resolution: {integrity: sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA==} - engines: {node: '>=0.10.0'} - - object-assign@4.1.1: - 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'} - - obug@2.1.4: - resolution: {integrity: sha512-4a+OsYv9UktOJKE+l1A4OufDgdRF9PifWj+tJnHURo/P+WOxpG4GzUFL9qCalmWauao6ogiG+QvnCovwPoyAWA==} - engines: {node: '>=12.20.0'} - - on-finished@2.4.1: - resolution: {integrity: sha512-oVlzkg3ENAhCk2zdv7IJwd/QUD4z2RxRwpkcGY8psCVcCYZNq4wYnVWALHM+brtuJjePWiYF/ClmuDr8Ch5+kg==} - engines: {node: '>= 0.8'} - - once@1.4.0: - resolution: {integrity: sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w==} - - oniguruma-parser@0.12.2: - resolution: {integrity: sha512-6HVa5oIrgMC6aA6WF6XyyqbhRPJrKR02L20+2+zpDtO5QAzGHAUGw5TKQvwi5vctNnRHkJYmjAhRVQF2EKdTQw==} - - oniguruma-to-es@4.3.6: - resolution: {integrity: sha512-csuQ9x3Yr0cEIs/Zgx/OEt9iBw9vqIunAPQkx19R/fiMq2oGVTgcMqO/V3Ybqefr1TBvosI6jU539ksaBULJyA==} - - oxlint@1.75.0: - resolution: {integrity: sha512-m9WzjRcRYA/uqIZDa9tclrieoPJ/ln1QYTKdFx6NUOs8uY5DiHlIwRQoCrHT6OM6O3ww3l2skY5gO7G7ZphE7g==} - engines: {node: ^20.19.0 || >=22.12.0} - hasBin: true - peerDependencies: - oxlint-tsgolint: '>=7.0.2001' - vite-plus: '*' - peerDependenciesMeta: - oxlint-tsgolint: - optional: true - vite-plus: - optional: true - - package-manager-detector@1.8.0: - resolution: {integrity: sha512-yQA4H19AmPEoMUeavPMDIe1higySl/gH/yaQrkT/s07Qp+7pp2hYz30N3z2l5BkjVkF9Ow6o0wjJamm2y7Sn0A==} - - parseley@0.12.1: - resolution: {integrity: sha512-e6qHKe3a9HWr0oMRVDTRhKce+bRO8VGQR3NyVwcjwrbhMmFCX9KszEV35+rn4AdilFAq9VPxP/Fe1wC9Qjd2lw==} - - parseley@0.13.1: - resolution: {integrity: sha512-uNBJZzmb60l6p6VWLTmevizNAGnE0xoSf1n0B4q3ntegDNzcS68NRCcBDZTcyXHxt2XhBChsCuqj4M+nChvE/A==} - - parseurl@1.3.3: - resolution: {integrity: sha512-CiyeOxFT/JZyN5m0z9PfXw4SCBJ6Sygz1Dpl0wqjlhDEGGBP1GnsUVEL0p63hoG1fcj3fHynXi9NYO4nWOL+qQ==} - engines: {node: '>= 0.8'} - - patch-console@2.0.0: - resolution: {integrity: sha512-0YNdUceMdaQwoKce1gatDScmMo5pu/tfABfnzEqeG0gtTmd7mh/WcwgUjtAeOU7N8nFFlbQBnFK2gXW5fGvmMA==} - engines: {node: ^12.20.0 || ^14.13.1 || >=16.0.0} - - path-browserify@1.0.1: - resolution: {integrity: sha512-b7uo2UCUOYZcnF/3ID0lulOJi/bafxa1xPe7ZPsammBSpjSWQkjNxlt635YGS2MiR9GjvuXCtz2emr3jbsz98g==} - - path-key@3.1.1: - resolution: {integrity: sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==} - engines: {node: '>=8'} - - path-to-regexp@6.3.0: - resolution: {integrity: sha512-Yhpw4T9C6hPpgPeA28us07OJeqZ5EzQTkbfwuhsUg0c237RomFoETJgmp2sa3F/41gfLE6G5cqcYwznmeEeOlQ==} - - path-to-regexp@8.4.2: - resolution: {integrity: sha512-qRcuIdP69NPm4qbACK+aDogI5CBDMi1jKe0ry5rSQJz8JVLsC7jV8XpiJjGRLLol3N+R5ihGYcrPLTno6pAdBA==} - - pathe@2.0.3: - resolution: {integrity: sha512-WUjGcAqP1gQacoQe+OBJsFA7Ld4DyXuUIjZ5cc75cLHvJ7dtNsTugphxIADwspS+AraAUePCKrSVtPLFj/F88w==} - - peberminta@0.10.0: - resolution: {integrity: sha512-80B2AsU+I4Qdb0ZAPSfe9UwvGzwkM37IKIFEvdS3D/3Ndgv2bsuJ0bfG1+iEYO+l7Gfd4EUJmuRyq7efLgRMzQ==} - - peberminta@0.9.0: - resolution: {integrity: sha512-XIxfHpEuSJbITd1H3EeQwpcZbTLHc+VVr8ANI9t5sit565tsI4/xK3KWTUFE2e6QiangUkh3B0jihzmGnNrRsQ==} - - picocolors@1.1.1: - resolution: {integrity: sha512-xceH2snhtb5M9liqDsmEw56le376mTZkEX/jEb/RxNFyegNul7eNslCXP9FDj/Lcu0X8KEyMceP2ntpaHrDEVA==} - - picomatch@4.0.5: - resolution: {integrity: sha512-RvwwcruNjI1ncT5xRakeyS9Lf8lcItv34KD+aif+VH9kduAyfYBipGh12274xtenIPZ119/R9BdTBa8gAwSh0A==} - engines: {node: '>=12'} - - pkce-challenge@5.0.1: - resolution: {integrity: sha512-wQ0b/W4Fr01qtpHlqSqspcj3EhBvimsdh0KlHhH8HRZnMsEa0ea2fTULOXOS9ccQr3om+GcGRk4e+isrZWV8qQ==} - engines: {node: '>=16.20.0'} - - postal-mime@2.7.5: - resolution: {integrity: sha512-GNEXKvWFQnbgO5NlrGzVa0FmWzBZ24PersAWErttSg1Hjpf0ATxTwS5DOMGaOpTG6bUh5cTr7xi0jAD942wCJA==} - - postcss@8.5.22: - resolution: {integrity: sha512-KBDEIpLrvpv16pp3K0Fw+UCoZfopFjjgeB+0tA/aaThfEE74kKDLrgg603YvOWJyg3+WYtyq3xYsQWsIyZlPqQ==} - engines: {node: ^10 || ^12 || >=14} - - prettier@3.9.6: - resolution: {integrity: sha512-OpN0zzVdiaiAhxpuuj5efpIS4sY9j7bY6uR5mnj5yPzGkdkjNKSJeUThPb60Jw29QuAZgA4o+/iB49kFiaBX6g==} - engines: {node: '>=14'} - hasBin: true - - pretty-format@29.7.0: - resolution: {integrity: sha512-Pdlw/oPxN+aXdmM9R00JVC9WVFoCLTKJvDVLgmJ+qAffBMxsV85l/Lu7sNx4zSzPyoL2euImuEwHhOXdEgNFZQ==} - engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} - - property-information@7.2.0: - resolution: {integrity: sha512-IAtzIB6sUiWaJYrX9smp3V46pBGbBeLFRGdh25kg1334VcBlD8HzhPeNIWQH9zhGmo2itIe25EHt9dQP7G5hmg==} - - protobufjs@7.6.5: - resolution: {integrity: sha512-/FPD0nUc9jH6rfFjji9IBqOz4pcSE3CsT1m7Ep6Mdb0LxSUMj8hgl6GomOvZzpNpAqqGaXA0P3VSrZLFzIhQrw==} - engines: {node: '>=12.0.0'} - - proxy-addr@2.0.7: - resolution: {integrity: sha512-llQsMLSUDUPT44jdrU/O37qlnifitDP+ZwrmmZcoSKyLKvtZxpyV0n2/bD/N4tBAAZ/gJEdZU7KMraoK1+XYAg==} - engines: {node: '>= 0.10'} - - pump@3.0.4: - resolution: {integrity: sha512-VS7sjc6KR7e1ukRFhQSY5LM2uBWAUPiOPa/A3mkKmiMwSmRFUITt0xuj+/lesgnCv+dPIEYlkzrcyXgquIHMcA==} - - pvtsutils@1.3.6: - resolution: {integrity: sha512-PLgQXQ6H2FWCaeRak8vvk1GW462lMxB5s3Jm673N82zI4vqtVUPuZdffdZbPDFRoU8kAhItWFtPCWiPpp4/EDg==} - - pvutils@1.1.5: - resolution: {integrity: sha512-KTqnxsgGiQ6ZAzZCVlJH5eOjSnvlyEgx1m8bkRJfOhmGRqfo5KLvmAlACQkrjEtOQ4B7wF9TdSLIs9O90MX9xA==} - engines: {node: '>=16.0.0'} - - qs@6.15.3: - resolution: {integrity: sha512-O9gl3zCl5h5blw1KGUzQKhA5oUXSl8rwUIM5o0S3nCXMliSvy5Dzx7/DJcI+SwgICv+IneSZwhBh1oSyEHA71A==} - engines: {node: '>=0.6'} - - range-parser@1.3.0: - resolution: {integrity: sha512-hek2mFQpPuI4E1BBKrSto+BU3e3x4xuarsbiwr3+lf7p44juvFMV0XFWQAP3xUyqXA4RrXLIoaSUGbSt056ZMw==} - engines: {node: '>= 0.6'} - - raw-body@3.0.2: - resolution: {integrity: sha512-K5zQjDllxWkf7Z5xJdV0/B0WTNqx6vxG70zJE4N0kBs4LovmEYWJzQGxC9bS9RAKu3bgM40lrd5zoLJ12MQ5BA==} - engines: {node: '>= 0.10'} - - react-dom@19.2.8: - resolution: {integrity: sha512-rVprimfGBG3DR+Tq0IQG2DT5PxKth1WIGDmj5yPmlzr4YBe7uyE+Du4oVqTDXZSHGGGXRtTJEGSSePyQCMBglQ==} - peerDependencies: - react: ^19.2.8 - - react-is@18.3.1: - resolution: {integrity: sha512-/LLMVyas0ljjAtoYiPqYiL8VWXzUUdThrmU5+n20DZv+a+ClRoevUzw5JxU+Ieh5/c87ytoTBV9G1FiKfNJdmg==} - - react-reconciler@0.33.0: - resolution: {integrity: sha512-KetWRytFv1epdpJc3J4G75I4WrplZE5jOL7Yq0p34+OVOKF4Se7WrdIdVC45XsSSmUTlht2FM/fM1FZb1mfQeA==} - engines: {node: '>=0.10.0'} - peerDependencies: - react: ^19.2.0 - - react-redux@9.3.0: - resolution: {integrity: sha512-KQopgqFo/p/fgmAs5qz6p5RWaNAzq40WAu7fJIXnQpYxFPbJYtsJPWvGeF2rOBaY/kEuV77AVsX8TsQzKm+A/g==} - peerDependencies: - '@types/react': ^18.2.25 || ^19 - react: ^18.0 || ^19 - redux: ^5.0.0 - peerDependenciesMeta: - '@types/react': - optional: true - redux: - optional: true - - react@19.2.8: - resolution: {integrity: sha512-PWaYA1L/q9u2u7xYQi+Y3L3Yfnie7XyLeaJICV1MGD6LprsBxcAqGjYyr0eY3p+QdsA+x/Irkt4Qif8D63+Sbw==} - engines: {node: '>=0.10.0'} - - readable-stream@3.6.2: - resolution: {integrity: sha512-9u/sniCrY3D5WdsERHzHE4G2YCXqoG5FTHUiCC4SIbr6XcLZBY05ya9EKjYek9O5xOAwjGq+1JdGBAS7Q9ScoA==} - engines: {node: '>= 6'} - - recharts@3.10.0: - resolution: {integrity: sha512-wulMvfncpIlmu2uFtRU/mE5/+NiVtASXkw2KdwJTdHs3WsASX0WxZlX+rpKgyn5BDbIhkPtCpUKkB9XNK5KE0w==} - engines: {node: '>=18'} - peerDependencies: - react: ^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0 - react-dom: ^16.0.0 || ^17.0.0 || ^18.0.0 || ^19.0.0 - react-is: ^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0 - - redux-thunk@3.1.0: - resolution: {integrity: sha512-NW2r5T6ksUKXCabzhL9z+h206HQw/NJkcLm1GPImRQ8IzfXwRGqjVhKJGauHirT0DAuyy6hjdnMZaRoAcy0Klw==} - peerDependencies: - redux: ^5.0.0 - - redux@5.0.1: - resolution: {integrity: sha512-M9/ELqF6fy8FwmkpnF0S3YKOqMyoWJ4+CS5Efg2ct3oY9daQvd/Pc71FpGZsVsbl3Cpb+IIcjBDUnnyBdQbq4w==} - - reflect-metadata@0.2.2: - resolution: {integrity: sha512-urBwgfrvVP/eAyXx4hluJivBKzuEbSQs9rKWCrCkbSxNv8mxPcUZKeuoF3Uy4mJl3Lwprp6yy5/39VWigZ4K6Q==} - - regex-recursion@6.0.2: - resolution: {integrity: sha512-0YCaSCq2VRIebiaUviZNs0cBz1kg5kVS2UKUfNIx8YVs1cN3AV7NTctO5FOKBA+UT2BPJIWZauYHPqJODG50cg==} - - regex-utilities@2.3.0: - resolution: {integrity: sha512-8VhliFJAWRaUiVvREIiW2NXXTmHs4vMNnSzuJVhscgmGav3g9VDxLrQndI3dZZVVdp0ZO/5v0xmX516/7M9cng==} - - regex@6.1.0: - resolution: {integrity: sha512-6VwtthbV4o/7+OaAF9I5L5V3llLEsoPyq9P1JVXkedTP33c7MfCG0/5NOPcSJn0TzXcG9YUrR0gQSWioew3LDg==} - - remove-accents@0.5.0: - resolution: {integrity: sha512-8g3/Otx1eJaVD12e31UbJj1YzdtVvzH85HV7t+9MJYk/u3XmkOUJ5Ys9wQrf9PCPK8+xn4ymzqYCiZl6QWKn+A==} - - require-directory@2.1.1: - resolution: {integrity: sha512-fGxEI7+wsG9xrvdjsrlmL22OMTTiHRwAMroiEeMgq8gzoLC/PQr7RsRDSTLUg/bZAZtF+TVIkHc6/4RIKrui+Q==} - engines: {node: '>=0.10.0'} - - require-from-string@2.0.2: - resolution: {integrity: sha512-Xf0nWe6RseziFMu+Ap9biiUbmplq6S9/p+7w7YXP/JBHhrUDDUhwa+vANyubuqfZWTveU//DYVGsDG7RKL/vEw==} - engines: {node: '>=0.10.0'} - - reselect@5.2.0: - resolution: {integrity: sha512-AgZ3UOZm3YndfrJ4OYjgrT7bmCm/1iqkjvEfH/oYjzh6PD2qw4QuT3jjnXIrpdt4MTpMXclMT3lXbmRY+XRakw==} - - rolldown@1.1.5: - resolution: {integrity: sha512-t9z29cJjXf/vxQ8dyhCSpt6H6aSwHTk8cT5I3iy6SMXuFpk5mB6PL6XfC8PCwrPTx93udwKUm9HRteAlTGBLiA==} - engines: {node: ^20.19.0 || >=22.12.0} - hasBin: true - - rou3@0.7.12: - resolution: {integrity: sha512-iFE4hLDuloSWcD7mjdCDhx2bKcIsYbtOTpfH5MHHLSKMOUyjqQXTeZVa289uuwEGEKFoE/BAPbhaU4B774nceg==} - - router@2.2.0: - resolution: {integrity: sha512-nLTrUKm2UyiL7rlhapu/Zl45FwNgkZGaCpZbIHajDYgwlJCOzLSk+cIPAnsEqV955GjILJnKbdQC1nVPz+gAYQ==} - engines: {node: '>= 18'} - - safe-buffer@5.2.1: - resolution: {integrity: sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==} - - safer-buffer@2.1.2: - resolution: {integrity: sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==} - - scheduler@0.27.0: - resolution: {integrity: sha512-eNv+WrVbKu1f3vbYJT/xtiF5syA5HPIMtf9IgY/nKg0sWqzAUEvqY/xm7OcZc/qafLx/iO9FgOmeSAp4v5ti/Q==} - - selderee@0.11.0: - resolution: {integrity: sha512-5TF+l7p4+OsnP8BCCvSyZiSPc4x4//p5uPwK8TCnVPJYRmU2aYKMpOXvw8zM5a5JvuuCGN1jmsMwuU2W02ukfA==} - - selderee@0.12.0: - resolution: {integrity: sha512-b1YMh3+DHZp59DLna3qVwQ5iOla/nrI6mLBNW02XxU77M3046Df6VLkoaJyFz20VsGIG5kkp+FK0kg4K4HnUFw==} - - semver@6.3.1: - resolution: {integrity: sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==} - hasBin: true - - semver@7.8.5: - resolution: {integrity: sha512-Y7/KDsb8LjooZpwaqGyulO6DQlksgCncchHGk+sZIY4SBvUocMBEFH5Ur1fI4dV+Jvl0w6cjvucaIi40puRioA==} - engines: {node: '>=10'} - hasBin: true - - send@1.2.1: - resolution: {integrity: sha512-1gnZf7DFcoIcajTjTwjwuDjzuz4PPcY2StKPlsGAQ1+YH20IRVrBaXSWmdjowTJ6u8Rc01PoYOGHXfP1mYcZNQ==} - engines: {node: '>= 18'} - - seroval-plugins@1.5.6: - resolution: {integrity: sha512-HXuLAX2pu/UByPpaeo/TaMfvMIi+1QqIoPJYCcAtU8QkVNwgR6MPlGuCQTErV1JwraaMbYaWVIBX7mppzGLATQ==} - engines: {node: '>=10'} - peerDependencies: - seroval: ^1.0 - - seroval@1.5.6: - resolution: {integrity: sha512-rVQVWjjSvlINzaQPZH5JFqsqEsIWdTxY3iJZCnTL/5gQbXIRooVZKI60tVCkOVfzcRPejboxO2t0P89dg5mQaA==} - engines: {node: '>=10'} - - serve-static@2.2.1: - resolution: {integrity: sha512-xRXBn0pPqQTVQiC8wyQrKs2MOlX24zQ0POGaj0kultvoOCstBQM5yvOhAVSUwOMjQtTvsPWoNCHfPGwaaQJhTw==} - engines: {node: '>= 18'} - - set-cookie-parser@3.1.2: - resolution: {integrity: sha512-5/r/lTwbJ3zQ+qwdUFZYeRNqda7P5HD8zQKqlSjdGt1/S0cjLAphHusj4Y58ahDtWn/g32xrIS58/ikOvwl0Lw==} - - setprototypeof@1.2.0: - resolution: {integrity: sha512-E5LDX7Wrp85Kil5bhZv46j8jOeboKq5JMmYM3gVGdGH8xFpPWXUMsNrlODCrkoxMEeNi/XZIwuRvY4XNwYMJpw==} - - sharp@0.34.5: - resolution: {integrity: sha512-Ou9I5Ft9WNcCbXrU9cMgPBcCK8LiwLqcbywW3t4oDV37n1pzpuNLsYiAV8eODnjbtQlSDwZ2cUEeQz4E54Hltg==} - engines: {node: ^18.17.0 || ^20.3.0 || >=21.0.0} - - shebang-command@2.0.0: - resolution: {integrity: sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==} - engines: {node: '>=8'} - - shebang-regex@3.0.0: - resolution: {integrity: sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==} - engines: {node: '>=8'} - - shiki@4.3.0: - resolution: {integrity: sha512-NKKjWzR6LIGL3sXBrWDw9sDS9cxx42/DkysaNqJEeOWE8Kix5gpak0bc00OfDVEO4oyXSyz8+aRaqKoBD1yo7A==} - engines: {node: '>=20'} - - shiki@4.3.1: - resolution: {integrity: sha512-oR+qDVi2OjX1tmDpyv+3KviX01KzO6Af+0NNnKnsp9491UEGz2YpxTuJboS/6VhYpTdqzmuJBuiTlrAWWJAssw==} - engines: {node: '>=20'} - - 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==} - - signal-exit@4.1.0: - resolution: {integrity: sha512-bzyZ1e88w9O1iNJbKnOlvYTrWPDl46O1bG0D3XInv+9tkPrxrN8jUUTiFlDkkmKWgn1M6CfIA13SuGqOa9Korw==} - engines: {node: '>=14'} - - solid-js@1.9.14: - resolution: {integrity: sha512-sAEXC0Kk0S1EDg+8ysEWJDbYhA3RRoEjwuySUGlKIemeo0I5YZfOyumNjNs9Sv3y2nmhD+0rW66ag2HsMuQiGQ==} - - sorted-btree@1.8.1: - resolution: {integrity: sha512-395+XIP+wqNn3USkFSrNz7G3Ss/MXlZEqesxvzCRFwL14h6e8LukDHdLBePn5pwbm5OQ9vGu8mDyz2lLDIqamQ==} - - source-map-js@1.2.1: - resolution: {integrity: sha512-UXWMKhLOwVKb728IUtQPXxfYU+usdybtUrK/8uGE8CQMvrhOpwvzDBwj0QhSL7MQc7vIsISBG8VQ8+IDQxpfQA==} - engines: {node: '>=0.10.0'} - - space-separated-tokens@2.0.2: - resolution: {integrity: sha512-PEGlAwrG8yXGXRjW32fGbg66JAlOAwbObuqVoJpv/mRgoWDQfgH1wDPvtzWyUSNAXBGSk8h755YDbbcEy3SH2Q==} - - spdx-correct@3.2.0: - resolution: {integrity: sha512-kN9dJbvnySHULIluDHy32WHRUu3Og7B9sbY7tsFLctQkIqnMh3hErYgdMjTYuqmcXX+lK5T1lnUt3G7zNswmZA==} - - spdx-exceptions@2.5.0: - resolution: {integrity: sha512-PiU42r+xO4UbUS1buo3LPJkjlO7430Xn5SVAhdpzzsPHsjbYVflnnFdATgabnLude+Cqu25p6N+g2lw/PFsa4w==} - - spdx-expression-parse@3.0.1: - resolution: {integrity: sha512-cbqHunsQWnJNE6KhVSMsMeH5H/L9EpymbzqTQ3uLwNCLZ1Q481oWaofqH7nO6V07xlXwY6PhQdQ2IedWx/ZK4Q==} - - spdx-license-ids@3.0.23: - resolution: {integrity: sha512-CWLcCCH7VLu13TgOH+r8p1O/Znwhqv/dbb6lqWy67G+pT1kHmeD/+V36AVb/vq8QMIQwVShJ6Ssl5FPh0fuSdw==} - - split-ca@1.0.1: - resolution: {integrity: sha512-Q5thBSxp5t8WPTTJQS59LrGqOZqOsrhDGDVm8azCqIBjSBd7nd9o2PM+mDulQQkh8h//4U6hFZnc/mul8t5pWQ==} - - ssh2@1.17.0: - resolution: {integrity: sha512-wPldCk3asibAjQ/kziWQQt1Wh3PgDFpC0XpwclzKcdT1vql6KeYxf5LIt4nlFkUeR8WuphYMKqUA56X4rjbfgQ==} - engines: {node: '>=10.16.0'} - - stackback@0.0.2: - resolution: {integrity: sha512-1XMJE5fQo1jGH6Y/7ebnwPOBEkIEnT4QF32d5R1+VXdXveM0IBMJt8zfaxX1P3QhVwrYe+576+jkANtSS2mBbw==} - - statuses@2.0.2: - resolution: {integrity: sha512-DvEy55V3DB7uknRo+4iOGT5fP1slR8wQohVdknigZPMpMstaKJQWhwiYBACJE3Ul2pTnATihhBYnRhZQHGBiRw==} - engines: {node: '>= 0.8'} - - std-env@4.2.0: - resolution: {integrity: sha512-oCUKSupKTHX53EyjDtuZQ64pjLJ6yYCtpmEw0goYxtjG9KpbRe8KAsl2tBUGU9DyMcJ0RwJ8GqJAFzMXcXW1Rw==} - - string-width@4.2.3: - resolution: {integrity: sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==} - engines: {node: '>=8'} - - string_decoder@1.3.0: - resolution: {integrity: sha512-hkRX8U1WjJFd8LsDJ2yQ/wWWxaopEsABU1XfkM8A+j0+85JAGppt16cr1Whg6KIbb4okU6Mql6BOj+uup/wKeA==} - - stringify-entities@4.0.4: - resolution: {integrity: sha512-IwfBptatlO+QCJUo19AqvrPNqlVMpW9YEL2LIVY+Rpv2qsjCGxaDLNRgeGsQWJhfItebuJhsGSLjaBbNSQ+ieg==} - - strip-ansi@6.0.1: - resolution: {integrity: sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==} - engines: {node: '>=8'} - - suffix-thumb@5.0.2: - resolution: {integrity: sha512-I5PWXAFKx3FYnI9a+dQMWNqTxoRt6vdBdb0O+BJ1sxXCWtSoQCusc13E58f+9p4MYx/qCnEMkD5jac6K2j3dgA==} - - supports-color@10.2.2: - resolution: {integrity: sha512-SS+jx45GF1QjgEXQx4NJZV9ImqmO2NPz5FNsIHrsDjh2YsHnawpan7SNQ1o8NuhrbHZy9AZhIoCUiCeaW/C80g==} - engines: {node: '>=18'} - - supports-color@7.2.0: - resolution: {integrity: sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==} - engines: {node: '>=8'} - - supports-color@8.1.1: - resolution: {integrity: sha512-MpUEN2OodtUzxvKQl72cUF7RQ5EiHsGvSsVG0ia9c5RbWGL2CI4C7EpPS8UTBIplnlzZiNuV56w+FuNxy3ty2Q==} - engines: {node: '>=10'} - - svelte@5.56.7: - resolution: {integrity: sha512-5qERUZX80oQj6XrDMUmD2Uhd/cIpCPDWWKBK3ZHmyRUC9apPyamWM8xMo31mbWsIQxwG2hVoSnOJ/EcnhVkkzQ==} - engines: {node: '>=18'} - - tailwind-merge@3.6.0: - resolution: {integrity: sha512-uxL7qAVQriqRQPAyK3pj66VqskWqoZ37PW94jwOTwNfq/z9oyu1V+eqrZqtR2+fCiXdYOZe/Modt8GtvqNzu+w==} - - tar-fs@2.1.5: - resolution: {integrity: sha512-OboTd8mmMhZDNPV+UjQcK9yKAatXu2aJ+r1w4im1Otd4M4fl2hwvdoXUxIYHFTHWK/3y3FarBP70v3vwmGlOxw==} - - tar-stream@2.2.0: - resolution: {integrity: sha512-ujeqbceABgwMZxEJnk2HDY2DlnUZ+9oEcb1KzTVfYHio0UE6dG71n60d8D2I4qNvleWrrXpmjpt7vZeF1LnMZQ==} - engines: {node: '>=6'} - - terminal-size@4.0.1: - resolution: {integrity: sha512-avMLDQpUI9I5XFrklECw1ZEUPJhqzcwSWsyyI8blhRLT+8N1jLJWLWWYQpB2q2xthq8xDvjZPISVh53T/+CLYQ==} - engines: {node: '>=18'} - - tiny-invariant@1.3.3: - resolution: {integrity: sha512-+FbBPE1o9QAYvviau/qC5SE3caw21q3xkvWKBtja5vgqOWIHHJ3ioaq1VPfn/Szqctz2bU/oYeKd9/z5BL+PVg==} - - tinybench@2.9.0: - resolution: {integrity: sha512-0+DUvqWMValLmha6lr4kD8iAMK1HzV0/aKnCtWb9v9641TnP/MFb7Pc2bxoxQjTXAErryXVgUOfv2YqNllqGeg==} - - tinyexec@1.2.4: - resolution: {integrity: sha512-SHf/r48b7vOrjve9PxJo3MN5v5yuyjHvdUcrQffT3WXMUfnGmHDVbC4k3sHJaJTgZCwpUplIaAo5ANtMyp3YHg==} - engines: {node: '>=18'} - - tinyglobby@0.2.17: - resolution: {integrity: sha512-wXR/dYpcqKmfWpEdZjiKJOwCNFndD0DMnrW/cYjVGttEkBfVgcLFHoNrlj47mjOVic9yyNu65alsgF4NQyTa2g==} - engines: {node: '>=12.0.0'} - - tinyrainbow@3.1.0: - resolution: {integrity: sha512-Bf+ILmBgretUrdJxzXM0SgXLZ3XfiaUuOj/IKQHuTXip+05Xn+uyEYdVg0kYDipTBcLrCVyUzAPz7QmArb0mmw==} - engines: {node: '>=14.0.0'} - - toidentifier@1.0.1: - resolution: {integrity: sha512-o5sSPKEkg/DIQNmH43V0/uerLrpzVedkUh8tGNvaeXpfpuwjKenlSox/2O/BTlZUtEe+JG7s5YhEz608PlAHRA==} - engines: {node: '>=0.6'} - - trim-lines@3.0.1: - resolution: {integrity: sha512-kRj8B+YHZCc9kQYdWfJB2/oUl9rA99qbowYYBtr4ui4mZyAQ2JpvVBd/6U2YloATfqBhBTSMhTpgBHtU0Mf3Rg==} - - ts-morph@28.0.0: - resolution: {integrity: sha512-Wp3tnZ2bzwxyTZMtgWVzXDfm7lB1Drz+y9DmmYH/L702PQhPyVrp3pkou3yIz4qjS14GY9kcpmLiOOMvl8oG1g==} - - tseep@1.3.1: - resolution: {integrity: sha512-ZPtfk1tQnZVyr7BPtbJ93qaAh2lZuIOpTMjhrYa4XctT8xe7t4SAW9LIxrySDuYMsfNNayE51E/WNGrNVgVicQ==} - - tslib@1.14.1: - resolution: {integrity: sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==} - - tslib@2.8.1: - resolution: {integrity: sha512-oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w==} - - tsyringe@4.10.0: - resolution: {integrity: sha512-axr3IdNuVIxnaK5XGEUFTu3YmAQ6lllgrvqfEoR16g/HGnYY/6We4oWENtAnzK6/LpJ2ur9PAb80RBt7/U4ugw==} - engines: {node: '>= 6.0.0'} - - tweetnacl@0.14.5: - resolution: {integrity: sha512-KXXFFdAbFXY4geFIwoyNK+f5Z1b7swfXABfL7HXCmoIWMKU3dmS26672A4EeQtDzLKy7SXmfBu51JolvEKwtGA==} - - type-is@2.1.0: - resolution: {integrity: sha512-faYHw0anBbc/kWF3zFTEnxSFOAGUX9GFbOBthvDdLsIlEoWOFOtS0zgCiQYwIskL9iGXZL3kAXD8OoZ4GmMATA==} - engines: {node: '>= 18'} - - typescript@6.0.3: - resolution: {integrity: sha512-y2TvuxSZPDyQakkFRPZHKFm+KKVqIisdg9/CZwm9ftvKXLP8NRWj38/ODjNbr43SsoXqNuAisEf1GdCxqWcdBw==} - engines: {node: '>=14.17'} - hasBin: true - - undici-types@7.18.2: - resolution: {integrity: sha512-AsuCzffGHJybSaRrmr5eHr81mwJU3kjw6M+uprWvCXiNeN9SOGwQ3Jn8jb8m3Z6izVgknn1R0FTCEAP2QrLY/w==} - - undici@7.28.0: - resolution: {integrity: sha512-cRZYrTDwWznlnRiPjggAGxZXanty6M8RV1ff8Wm4LWXBp7/IG8v5DnOm74DtUBp9OONpK75YlPnIjQqX0dBDtA==} - engines: {node: '>=20.18.1'} - - unenv@2.0.0-rc.24: - resolution: {integrity: sha512-i7qRCmY42zmCwnYlh9H2SvLEypEFGye5iRmEMKjcGi7zk9UquigRjFtTLz0TYqr0ZGLZhaMHl/foy1bZR+Cwlw==} - - unist-util-is@6.0.1: - resolution: {integrity: sha512-LsiILbtBETkDz8I9p1dQ0uyRUWuaQzd/cuEeS1hoRSyW5E5XGmTzlwY1OrNzzakGowI9Dr/I8HVaw4hTtnxy8g==} - - unist-util-position@5.0.0: - resolution: {integrity: sha512-fucsC7HjXvkB5R3kTCO7kUjRdrS0BJt3M/FPxmHMBOm8JQi2BsHAHFsy27E0EolP8rp0NzXsJ+jNPyDWvOJZPA==} - - unist-util-stringify-position@4.0.0: - resolution: {integrity: sha512-0ASV06AAoKCDkS2+xw5RXJywruurpbC4JZSm7nr7MOt1ojAzvyyaO+UxZf18j8FCF6kmzCZKcAgN/yu2gm2XgQ==} - - unist-util-visit-parents@6.0.2: - resolution: {integrity: sha512-goh1s1TBrqSqukSc8wrjwWhL0hiJxgA8m4kFxGlQ+8FYQ3C/m11FcTs4YYem7V664AhHVvgoQLk890Ssdsr2IQ==} - - 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'} - - update-browserslist-db@1.2.3: - resolution: {integrity: sha512-Js0m9cx+qOgDxo0eMiFGEueWztz+d4+M3rGlmKPT+T4IS/jP4ylw3Nwpu6cpTTP8R1MAC1kF4VbdLt3ARf209w==} - hasBin: true - peerDependencies: - browserslist: '>= 4.21.0' - - use-sync-external-store@1.6.0: - resolution: {integrity: sha512-Pp6GSwGP/NrPIrxVFAIkOQeyw8lFenOHijQWkUTrDvrF4ALqylP2C/KCkeS9dpUM3KvYRQhna5vt7IL95+ZQ9w==} - peerDependencies: - react: ^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0 - - util-deprecate@1.0.2: - resolution: {integrity: sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw==} - - validate-npm-package-license@3.0.4: - resolution: {integrity: sha512-DpKm2Ui/xN7/HQKCtpZxoRWBhZ9Z0kqtygG8XCgNQ8ZlDnxuQmWhj566j8fN4Cu3/JmbhsDo7fcAJq4s9h27Ew==} - - vary@1.1.2: - resolution: {integrity: sha512-BNGbWLfd0eUPabhkXUVm0j8uuvREyTh5ovRa/dyow/BqAbZJyC+5fU+IzQOzmAKzYqYRAISoRhdQr3eIZ/PXqg==} - engines: {node: '>= 0.8'} - - vfile-message@4.0.3: - resolution: {integrity: sha512-QTHzsGd1EhbZs4AsQ20JX1rC3cOlt/IWJruk893DfLRr57lcnOeMaWG4K0JrRta4mIJZKth2Au3mM3u03/JWKw==} - - vfile@6.0.3: - resolution: {integrity: sha512-KzIbH/9tXat2u30jf+smMwFCsno4wHVdNmzFyL+T/L3UGqqk6JKfVqOFOZEpZSHADH1k40ab6NUIXZq422ov3Q==} - - victory-vendor@37.3.6: - resolution: {integrity: sha512-SbPDPdDBYp+5MJHhBCAyI7wKM3d5ivekigc2Dk2s7pgbZ9wIgIBYGVw4zGHBml/qTFbexrofXW6Gu4noGxrOwQ==} - - vite@8.1.5: - resolution: {integrity: sha512-7ULLwsCdYx/nRyrpiEwvqb5TFHrMVZyBt+rg/OAXT7rgj/z+DtTDyKFeLAdDkubDVDKD8jOsndmy7m55XcfUsw==} - engines: {node: ^20.19.0 || >=22.12.0} - hasBin: true - peerDependencies: - '@types/node': ^20.19.0 || >=22.12.0 - '@vitejs/devtools': ^0.3.0 - esbuild: ^0.27.0 || ^0.28.0 - jiti: '>=1.21.0' - less: ^4.0.0 - sass: ^1.70.0 - sass-embedded: ^1.70.0 - stylus: '>=0.54.8' - sugarss: ^5.0.0 - terser: ^5.16.0 - tsx: ^4.8.1 - yaml: ^2.4.2 - peerDependenciesMeta: - '@types/node': - optional: true - '@vitejs/devtools': - optional: true - esbuild: - optional: true - jiti: - optional: true - less: - optional: true - sass: - optional: true - sass-embedded: - optional: true - stylus: - optional: true - sugarss: - optional: true - terser: - optional: true - tsx: - optional: true - yaml: - optional: true - - vitest@4.1.10: - resolution: {integrity: sha512-R9jUTe5S4Qb0HCd4TNqpC7oGcrMssMRGXLW80ubjWsW9VH5GF8y1Y0SFLY9AbqSk6nt0PnOx4H4WNJYZ13GUPw==} - engines: {node: ^20.0.0 || ^22.0.0 || >=24.0.0} - hasBin: true - peerDependencies: - '@edge-runtime/vm': '*' - '@opentelemetry/api': ^1.9.0 - '@types/node': ^20.0.0 || ^22.0.0 || >=24.0.0 - '@vitest/browser-playwright': 4.1.10 - '@vitest/browser-preview': 4.1.10 - '@vitest/browser-webdriverio': 4.1.10 - '@vitest/coverage-istanbul': 4.1.10 - '@vitest/coverage-v8': 4.1.10 - '@vitest/ui': 4.1.10 - happy-dom: '*' - jsdom: '*' - vite: ^6.0.0 || ^7.0.0 || ^8.0.0 - peerDependenciesMeta: - '@edge-runtime/vm': - optional: true - '@opentelemetry/api': - optional: true - '@types/node': - optional: true - '@vitest/browser-playwright': - optional: true - '@vitest/browser-preview': - optional: true - '@vitest/browser-webdriverio': - optional: true - '@vitest/coverage-istanbul': - optional: true - '@vitest/coverage-v8': - optional: true - '@vitest/ui': - optional: true - happy-dom: - optional: true - jsdom: - optional: true - - vue-demi@0.14.10: - resolution: {integrity: sha512-nMZBOwuzabUO0nLgIcc6rycZEebF6eeUfaiQx9+WSk8e29IbLvPU9feI6tqW4kTo3hvoYAJkMh8n8D0fuISphg==} - engines: {node: '>=12'} - hasBin: true - peerDependencies: - '@vue/composition-api': ^1.0.0-rc.1 - vue: ^3.0.0-0 || ^2.6.0 - peerDependenciesMeta: - '@vue/composition-api': - optional: true - - vue@3.5.40: - resolution: {integrity: sha512-+8PJ4SJXdn/cHGImF4CKdxlWHIN5Dkt7DoufRREM6h6uVCx2m7QxgcEQmmzyOK8A9mcafg7sFbJFYsdFVubTig==} - peerDependencies: - typescript: '*' - peerDependenciesMeta: - typescript: - optional: true - - which@2.0.2: - resolution: {integrity: sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==} - engines: {node: '>= 8'} - hasBin: true - - why-is-node-running@2.3.0: - resolution: {integrity: sha512-hUrmaWBdVDcxvYqnyh09zunKzROWjbZTiNy8dBEjkS7ehEDQibXJ7XvlmtbwuTclUiIyN+CyXQD4Vmko8fNm8w==} - engines: {node: '>=8'} - hasBin: true - - window-size@1.1.1: - resolution: {integrity: sha512-5D/9vujkmVQ7pSmc0SCBmHXbkv6eaHwXEx65MywhmUMsI8sGqJ972APq1lotfcwMKPFLuCFfL8xGHLIp7jaBmA==} - engines: {node: '>= 0.10.0'} - hasBin: true - - workerd@1.20260714.1: - resolution: {integrity: sha512-oIbQzfdyl9UQUnG6XLegcSq0Mgt/7WKDbFOoqGgOWCS+/fhyGB460uKEgdAQQ9RHCO/ttcNCX/KiMIQzdoeu3Q==} - engines: {node: '>=16'} - hasBin: true - - workerd@1.20260721.1: - resolution: {integrity: sha512-b/DWhpV0jTudzQpLhDovcOgBz233386q+3Hbari7CLCNT9UXxjQziSTZ9yCoKdT2K3TSx5jrwlOisq8hlLWXYg==} - engines: {node: '>=16'} - hasBin: true - - workers-ai-provider@3.3.1: - resolution: {integrity: sha512-vArwnmiAxQQF1clsXJd9ADn1xK9YUZVxE4umaMhrdsxM2kucxP430LfaoH4rn0AfoqtnuH3bfRhW1ak0r1x/8A==} - peerDependencies: - '@ai-sdk/anthropic': ^3.0.0 - '@ai-sdk/google': ^3.0.0 - '@ai-sdk/openai': ^3.0.0 - '@ai-sdk/provider': ^3.0.0 - ai: ^6.0.0 - peerDependenciesMeta: - '@ai-sdk/anthropic': - optional: true - '@ai-sdk/google': - optional: true - '@ai-sdk/openai': - optional: true - - wrangler@4.113.0: - resolution: {integrity: sha512-ROGzSloJv0y21It6Oc9LaruNcu1tdiQ/XzL3Jc3YkFjzXEMXzTqVhA8vQaGMTdZHTjFP0PVcwAHNgaw3gXu4wA==} - engines: {node: '>=22.0.0'} - hasBin: true - peerDependencies: - '@cloudflare/workers-types': ^5.20260721.1 - peerDependenciesMeta: - '@cloudflare/workers-types': - optional: true - - wrap-ansi@7.0.0: - resolution: {integrity: sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==} - engines: {node: '>=10'} - - wrappy@1.0.2: - resolution: {integrity: sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==} - - ws@8.21.0: - resolution: {integrity: sha512-Vsp28b7DRcimFQvrqu2Wek3z1iYxDCWqHYB8Qsnk/S4RfaCQzPGPyBNuVjJV3cd6UiKtUtp6sNM77gWvzcCH+g==} - engines: {node: '>=10.0.0'} - peerDependencies: - bufferutil: ^4.0.1 - utf-8-validate: '>=5.0.2' - peerDependenciesMeta: - bufferutil: - optional: true - utf-8-validate: - optional: true - - y18n@5.0.8: - resolution: {integrity: sha512-0pfFzegeDWJHJIAmTLRP2DwHjdF5s7jo9tuztdQxAhINCdvS+3nGINqPd00AphqJR/0LhANUS6/+7SCb98YOfA==} - engines: {node: '>=10'} - - yallist@3.1.1: - resolution: {integrity: sha512-a4UGQaWPH59mOXUYnAG2ewncQS4i4F43Tv3JoAM+s2VDAmS9NsK8GpDMLrCHPksFT7h3K6TOoUNn2pb7RoXx4g==} - - yaml@2.9.0: - resolution: {integrity: sha512-2AvhNX3mb8zd6Zy7INTtSpl1F15HW6Wnqj0srWlkKLcpYl/gMIMJiyuGq2KeI2YFxUPjdlB+3Lc10seMLtL4cA==} - engines: {node: '>= 14.6'} - hasBin: true - - yargs-parser@21.1.1: - resolution: {integrity: sha512-tVpsJW7DdjecAiFpbIB1e3qxIQsE6NoPc5/eTdrbbIC4h0LVsWhnoa3g+m2HclBIujHzsxZ4VJVA+GUuc2/LBw==} - engines: {node: '>=12'} - - yargs@17.7.3: - resolution: {integrity: sha512-GZtjxm/J/4TSxuL3FNYjCmLktBTnIw/rVmKSIyKeYAZpmJB2ig9VauCC5xsa82GNKVKDAqpOn3KVzNt0zmrU0g==} - engines: {node: '>=12'} - - yoga-layout@3.2.1: - resolution: {integrity: sha512-0LPOt3AxKqMdFBZA3HBAt/t/8vIKq7VaQYbuA8WxCgung+p9TVyKRYdpvCb80HcdTN2NkbIKbhNwKUfm3tQywQ==} - - youch-core@0.3.3: - resolution: {integrity: sha512-ho7XuGjLaJ2hWHoK8yFnsUGy2Y5uDpqSTq1FkHLK4/oqKtyUU1AFbOOxY4IpC9f0fTLjwYbslUz0Po5BpD1wrA==} - - youch@4.1.0-beta.10: - resolution: {integrity: sha512-rLfVLB4FgQneDr0dv1oddCVZmKjcJ6yX6mS4pU82Mq/Dt9a3cLZQ62pDBL4AUO+uVrCvtWz3ZFUL2HFAFJ/BXQ==} - - zimmerframe@1.1.4: - resolution: {integrity: sha512-B58NGBEoc8Y9MWWCQGl/gq9xBCe4IiKM0a2x7GZdQKOW5Exr8S1W24J6OgM1njK8xCRGvAJIL/MxXHf6SkmQKQ==} - - zod-to-json-schema@3.25.2: - resolution: {integrity: sha512-O/PgfnpT1xKSDeQYSCfRI5Gy3hPf91mKVDuYLUHZJMiDFptvP41MSnWofm8dnCm0256ZNfZIM7DSzuSMAFnjHA==} - peerDependencies: - zod: ^3.25.28 || ^4 - - zod@4.4.3: - resolution: {integrity: sha512-ytENFjIJFl2UwYglde2jchW2Hwm4GJFLDiSXWdTrJQBIN9Fcyp7n4DhxJEiWNAJMV1/BqWfW/kkg71UDcHJyTQ==} - - zustand@4.5.7: - resolution: {integrity: sha512-CHOUy7mu3lbD6o6LJLfllpjkzhHXSBlX8B9+qPddUsIfeF5S/UZ5q0kmCsnRqT1UHFQZchNFDDzMbQsuesHWlw==} - engines: {node: '>=12.7.0'} - peerDependencies: - '@types/react': '>=16.8' - immer: '>=9.0.6' - react: '>=16.8' - peerDependenciesMeta: - '@types/react': - optional: true - immer: - optional: true - react: - optional: true - - zwitch@2.0.4: - resolution: {integrity: sha512-bXE4cR/kVZhKZX/RjPEflHaKVhUVl85noU3v6b8apfQEc1x4A+zBxjZ4lN8LqGd6WZ3dl98pY4o717VFmoPp+A==} - -snapshots: - - '@ai-sdk/gateway@4.0.23(zod@4.4.3)': - dependencies: - '@ai-sdk/provider': 4.0.3 - '@ai-sdk/provider-utils': 5.0.11(zod@4.4.3) - '@vercel/oidc': 3.2.0 - zod: 4.4.3 - - '@ai-sdk/provider-utils@5.0.11(zod@4.4.3)': - dependencies: - '@ai-sdk/provider': 4.0.3 - '@standard-schema/spec': 1.1.0 - '@workflow/serde': 4.1.0 - eventsource-parser: 3.1.0 - zod: 4.4.3 - - '@ai-sdk/provider@4.0.3': - dependencies: - json-schema: 0.4.0 - - '@antfu/install-pkg@1.1.0': - dependencies: - package-manager-detector: 1.8.0 - tinyexec: 1.2.4 - - '@babel/code-frame@7.29.7': - dependencies: - '@babel/helper-validator-identifier': 7.29.7 - js-tokens: 4.0.0 - picocolors: 1.1.1 - - '@babel/compat-data@7.29.7': {} - - '@babel/core@7.29.7': - dependencies: - '@babel/code-frame': 7.29.7 - '@babel/generator': 7.29.7 - '@babel/helper-compilation-targets': 7.29.7 - '@babel/helper-module-transforms': 7.29.7(@babel/core@7.29.7) - '@babel/helpers': 7.29.7 - '@babel/parser': 7.29.7 - '@babel/template': 7.29.7 - '@babel/traverse': 7.29.7 - '@babel/types': 7.29.7 - '@jridgewell/remapping': 2.3.5 - convert-source-map: 2.0.0 - debug: 4.4.3 - gensync: 1.0.0-beta.2 - json5: 2.2.3 - semver: 6.3.1 - transitivePeerDependencies: - - supports-color - - '@babel/generator@7.29.7': - dependencies: - '@babel/parser': 7.29.7 - '@babel/types': 7.29.7 - '@jridgewell/gen-mapping': 0.3.13 - '@jridgewell/trace-mapping': 0.3.31 - jsesc: 3.1.0 - - '@babel/helper-compilation-targets@7.29.7': - dependencies: - '@babel/compat-data': 7.29.7 - '@babel/helper-validator-option': 7.29.7 - browserslist: 4.28.7 - lru-cache: 5.1.1 - semver: 6.3.1 - - '@babel/helper-globals@7.29.7': {} - - '@babel/helper-module-imports@7.29.7': - dependencies: - '@babel/traverse': 7.29.7 - '@babel/types': 7.29.7 - transitivePeerDependencies: - - supports-color - - '@babel/helper-module-transforms@7.29.7(@babel/core@7.29.7)': - dependencies: - '@babel/core': 7.29.7 - '@babel/helper-module-imports': 7.29.7 - '@babel/helper-validator-identifier': 7.29.7 - '@babel/traverse': 7.29.7 - transitivePeerDependencies: - - supports-color - - '@babel/helper-string-parser@7.29.7': {} - - '@babel/helper-validator-identifier@7.29.7': {} - - '@babel/helper-validator-option@7.29.7': {} - - '@babel/helpers@7.29.7': - dependencies: - '@babel/template': 7.29.7 - '@babel/types': 7.29.7 - - '@babel/parser@7.29.7': - dependencies: - '@babel/types': 7.29.7 - - '@babel/runtime@7.29.7': {} - - '@babel/template@7.29.7': - dependencies: - '@babel/code-frame': 7.29.7 - '@babel/parser': 7.29.7 - '@babel/types': 7.29.7 - - '@babel/traverse@7.29.7': - dependencies: - '@babel/code-frame': 7.29.7 - '@babel/generator': 7.29.7 - '@babel/helper-globals': 7.29.7 - '@babel/parser': 7.29.7 - '@babel/template': 7.29.7 - '@babel/types': 7.29.7 - debug: 4.4.3 - transitivePeerDependencies: - - supports-color - - '@babel/types@7.29.7': - dependencies: - '@babel/helper-string-parser': 7.29.7 - '@babel/helper-validator-identifier': 7.29.7 - - '@balena/dockerignore@1.0.2': {} - - '@base-ui/react@1.6.0(@types/react@19.2.17)(react-dom@19.2.8(react@19.2.8))(react@19.2.8)': - dependencies: - '@babel/runtime': 7.29.7 - '@base-ui/utils': 0.3.1(@types/react@19.2.17)(react-dom@19.2.8(react@19.2.8))(react@19.2.8) - '@floating-ui/react-dom': 2.1.9(react-dom@19.2.8(react@19.2.8))(react@19.2.8) - '@floating-ui/utils': 0.2.12 - react: 19.2.8 - react-dom: 19.2.8(react@19.2.8) - use-sync-external-store: 1.6.0(react@19.2.8) - optionalDependencies: - '@types/react': 19.2.17 - - '@base-ui/utils@0.3.1(@types/react@19.2.17)(react-dom@19.2.8(react@19.2.8))(react@19.2.8)': - dependencies: - '@babel/runtime': 7.29.7 - '@floating-ui/utils': 0.2.12 - react: 19.2.8 - react-dom: 19.2.8(react@19.2.8) - reselect: 5.2.0 - use-sync-external-store: 1.6.0(react@19.2.8) - optionalDependencies: - '@types/react': 19.2.17 - - '@better-auth/core@1.6.24(@better-auth/utils@0.4.2)(@better-fetch/fetch@1.3.1)(@cloudflare/workers-types@4.20260702.1)(better-call@1.3.7(zod@4.4.3))(jose@6.2.4)(kysely@0.29.4)(nanostores@1.4.1)': - dependencies: - '@better-auth/utils': 0.4.2 - '@better-fetch/fetch': 1.3.1 - '@opentelemetry/semantic-conventions': 1.43.0 - '@standard-schema/spec': 1.1.0 - better-call: 1.3.7(zod@4.4.3) - jose: 6.2.4 - kysely: 0.29.4 - nanostores: 1.4.1 - zod: 4.4.3 - optionalDependencies: - '@cloudflare/workers-types': 4.20260702.1 - - '@better-auth/drizzle-adapter@1.6.24(@better-auth/core@1.6.24(@better-auth/utils@0.4.2)(@better-fetch/fetch@1.3.1)(@cloudflare/workers-types@4.20260702.1)(better-call@1.3.7(zod@4.4.3))(jose@6.2.4)(kysely@0.29.4)(nanostores@1.4.1))(@better-auth/utils@0.4.2)(drizzle-orm@0.45.2(@cloudflare/workers-types@4.20260702.1)(kysely@0.29.4))': - dependencies: - '@better-auth/core': 1.6.24(@better-auth/utils@0.4.2)(@better-fetch/fetch@1.3.1)(@cloudflare/workers-types@4.20260702.1)(better-call@1.3.7(zod@4.4.3))(jose@6.2.4)(kysely@0.29.4)(nanostores@1.4.1) - '@better-auth/utils': 0.4.2 - optionalDependencies: - drizzle-orm: 0.45.2(@cloudflare/workers-types@4.20260702.1)(kysely@0.29.4) - - '@better-auth/kysely-adapter@1.6.24(@better-auth/core@1.6.24(@better-auth/utils@0.4.2)(@better-fetch/fetch@1.3.1)(@cloudflare/workers-types@4.20260702.1)(better-call@1.3.7(zod@4.4.3))(jose@6.2.4)(kysely@0.29.4)(nanostores@1.4.1))(@better-auth/utils@0.4.2)(kysely@0.29.4)': - dependencies: - '@better-auth/core': 1.6.24(@better-auth/utils@0.4.2)(@better-fetch/fetch@1.3.1)(@cloudflare/workers-types@4.20260702.1)(better-call@1.3.7(zod@4.4.3))(jose@6.2.4)(kysely@0.29.4)(nanostores@1.4.1) - '@better-auth/utils': 0.4.2 - optionalDependencies: - kysely: 0.29.4 - - '@better-auth/memory-adapter@1.6.24(@better-auth/core@1.6.24(@better-auth/utils@0.4.2)(@better-fetch/fetch@1.3.1)(@cloudflare/workers-types@4.20260702.1)(better-call@1.3.7(zod@4.4.3))(jose@6.2.4)(kysely@0.29.4)(nanostores@1.4.1))(@better-auth/utils@0.4.2)': - dependencies: - '@better-auth/core': 1.6.24(@better-auth/utils@0.4.2)(@better-fetch/fetch@1.3.1)(@cloudflare/workers-types@4.20260702.1)(better-call@1.3.7(zod@4.4.3))(jose@6.2.4)(kysely@0.29.4)(nanostores@1.4.1) - '@better-auth/utils': 0.4.2 - - '@better-auth/mongo-adapter@1.6.24(@better-auth/core@1.6.24(@better-auth/utils@0.4.2)(@better-fetch/fetch@1.3.1)(@cloudflare/workers-types@4.20260702.1)(better-call@1.3.7(zod@4.4.3))(jose@6.2.4)(kysely@0.29.4)(nanostores@1.4.1))(@better-auth/utils@0.4.2)': - dependencies: - '@better-auth/core': 1.6.24(@better-auth/utils@0.4.2)(@better-fetch/fetch@1.3.1)(@cloudflare/workers-types@4.20260702.1)(better-call@1.3.7(zod@4.4.3))(jose@6.2.4)(kysely@0.29.4)(nanostores@1.4.1) - '@better-auth/utils': 0.4.2 - - '@better-auth/passkey@1.6.24(@better-auth/core@1.6.24(@better-auth/utils@0.4.2)(@better-fetch/fetch@1.3.1)(@cloudflare/workers-types@4.20260702.1)(better-call@1.3.7(zod@4.4.3))(jose@6.2.4)(kysely@0.29.4)(nanostores@1.4.1))(@better-auth/utils@0.4.2)(@better-fetch/fetch@1.3.1)(better-auth@1.6.24(@cloudflare/workers-types@4.20260702.1)(drizzle-orm@0.45.2(@cloudflare/workers-types@4.20260702.1)(kysely@0.29.4))(react-dom@19.2.8(react@19.2.8))(react@19.2.8)(solid-js@1.9.14)(svelte@5.56.7)(vitest@4.1.10(@types/node@24.13.3)(vite@8.1.5(@types/node@24.13.3)(esbuild@0.28.1)(jiti@2.7.0)(yaml@2.9.0)))(vue@3.5.40(typescript@6.0.3)))(better-call@1.3.7(zod@4.4.3))(nanostores@1.4.1)': - dependencies: - '@better-auth/core': 1.6.24(@better-auth/utils@0.4.2)(@better-fetch/fetch@1.3.1)(@cloudflare/workers-types@4.20260702.1)(better-call@1.3.7(zod@4.4.3))(jose@6.2.4)(kysely@0.29.4)(nanostores@1.4.1) - '@better-auth/utils': 0.4.2 - '@better-fetch/fetch': 1.3.1 - '@simplewebauthn/browser': 13.3.0 - '@simplewebauthn/server': 13.3.2 - better-auth: 1.6.24(@cloudflare/workers-types@4.20260702.1)(drizzle-orm@0.45.2(@cloudflare/workers-types@4.20260702.1)(kysely@0.29.4))(react-dom@19.2.8(react@19.2.8))(react@19.2.8)(solid-js@1.9.14)(svelte@5.56.7)(vitest@4.1.10(@types/node@24.13.3)(vite@8.1.5(@types/node@24.13.3)(esbuild@0.28.1)(jiti@2.7.0)(yaml@2.9.0)))(vue@3.5.40(typescript@6.0.3)) - better-call: 1.3.7(zod@4.4.3) - nanostores: 1.4.1 - zod: 4.4.3 - - '@better-auth/prisma-adapter@1.6.24(@better-auth/core@1.6.24(@better-auth/utils@0.4.2)(@better-fetch/fetch@1.3.1)(@cloudflare/workers-types@4.20260702.1)(better-call@1.3.7(zod@4.4.3))(jose@6.2.4)(kysely@0.29.4)(nanostores@1.4.1))(@better-auth/utils@0.4.2)': - dependencies: - '@better-auth/core': 1.6.24(@better-auth/utils@0.4.2)(@better-fetch/fetch@1.3.1)(@cloudflare/workers-types@4.20260702.1)(better-call@1.3.7(zod@4.4.3))(jose@6.2.4)(kysely@0.29.4)(nanostores@1.4.1) - '@better-auth/utils': 0.4.2 - - '@better-auth/telemetry@1.6.24(@better-auth/core@1.6.24(@better-auth/utils@0.4.2)(@better-fetch/fetch@1.3.1)(@cloudflare/workers-types@4.20260702.1)(better-call@1.3.7(zod@4.4.3))(jose@6.2.4)(kysely@0.29.4)(nanostores@1.4.1))(@better-auth/utils@0.4.2)(@better-fetch/fetch@1.3.1)': - dependencies: - '@better-auth/core': 1.6.24(@better-auth/utils@0.4.2)(@better-fetch/fetch@1.3.1)(@cloudflare/workers-types@4.20260702.1)(better-call@1.3.7(zod@4.4.3))(jose@6.2.4)(kysely@0.29.4)(nanostores@1.4.1) - '@better-auth/utils': 0.4.2 - '@better-fetch/fetch': 1.3.1 - - '@better-auth/utils@0.4.2': - dependencies: - '@noble/hashes': 2.2.0 - - '@better-fetch/fetch@1.3.1': {} - - '@bomb.sh/tab@0.0.19': {} - - '@cloudflare/kv-asset-handler@0.5.0': {} - - '@cloudflare/unenv-preset@2.16.1(unenv@2.0.0-rc.24)(workerd@1.20260714.1)': - dependencies: - unenv: 2.0.0-rc.24 - optionalDependencies: - workerd: 1.20260714.1 - - '@cloudflare/unenv-preset@2.16.1(unenv@2.0.0-rc.24)(workerd@1.20260721.1)': - dependencies: - unenv: 2.0.0-rc.24 - optionalDependencies: - workerd: 1.20260721.1 - - '@cloudflare/vite-plugin@1.45.1(vite@8.1.5(@types/node@24.13.3)(esbuild@0.28.1)(jiti@2.7.0)(yaml@2.9.0))(wrangler@4.113.0(@cloudflare/workers-types@4.20260702.1))': - dependencies: - '@cloudflare/unenv-preset': 2.16.1(unenv@2.0.0-rc.24)(workerd@1.20260714.1) - miniflare: 4.20260714.0 - unenv: 2.0.0-rc.24 - vite: 8.1.5(@types/node@24.13.3)(esbuild@0.28.1)(jiti@2.7.0)(yaml@2.9.0) - workerd: 1.20260714.1 - wrangler: 4.113.0(@cloudflare/workers-types@4.20260702.1) - ws: 8.21.0 - transitivePeerDependencies: - - bufferutil - - utf-8-validate - - '@cloudflare/workerd-darwin-64@1.20260714.1': - optional: true - - '@cloudflare/workerd-darwin-64@1.20260721.1': - optional: true - - '@cloudflare/workerd-darwin-arm64@1.20260714.1': - optional: true - - '@cloudflare/workerd-darwin-arm64@1.20260721.1': - optional: true - - '@cloudflare/workerd-linux-64@1.20260714.1': - optional: true - - '@cloudflare/workerd-linux-64@1.20260721.1': - optional: true - - '@cloudflare/workerd-linux-arm64@1.20260714.1': - optional: true - - '@cloudflare/workerd-linux-arm64@1.20260721.1': - optional: true - - '@cloudflare/workerd-windows-64@1.20260714.1': - optional: true - - '@cloudflare/workerd-windows-64@1.20260721.1': - optional: true - - '@cloudflare/workers-types@4.20260702.1': {} - - '@cspotcode/source-map-support@0.8.1': - dependencies: - '@jridgewell/trace-mapping': 0.3.9 - - '@emnapi/core@1.11.1': - dependencies: - '@emnapi/wasi-threads': 1.2.2 - tslib: 2.8.1 - optional: true - - '@emnapi/runtime@1.11.1': - dependencies: - tslib: 2.8.1 - optional: true - - '@emnapi/runtime@1.11.2': - dependencies: - tslib: 2.8.1 - optional: true - - '@emnapi/wasi-threads@1.2.2': - dependencies: - tslib: 2.8.1 - optional: true - - '@esbuild/aix-ppc64@0.28.1': - optional: true - - '@esbuild/android-arm64@0.28.1': - optional: true - - '@esbuild/android-arm@0.28.1': - optional: true - - '@esbuild/android-x64@0.28.1': - optional: true - - '@esbuild/darwin-arm64@0.28.1': - optional: true - - '@esbuild/darwin-x64@0.28.1': - optional: true - - '@esbuild/freebsd-arm64@0.28.1': - optional: true - - '@esbuild/freebsd-x64@0.28.1': - optional: true - - '@esbuild/linux-arm64@0.28.1': - optional: true - - '@esbuild/linux-arm@0.28.1': - optional: true - - '@esbuild/linux-ia32@0.28.1': - optional: true - - '@esbuild/linux-loong64@0.28.1': - optional: true - - '@esbuild/linux-mips64el@0.28.1': - optional: true - - '@esbuild/linux-ppc64@0.28.1': - optional: true - - '@esbuild/linux-riscv64@0.28.1': - optional: true - - '@esbuild/linux-s390x@0.28.1': - optional: true - - '@esbuild/linux-x64@0.28.1': - optional: true - - '@esbuild/netbsd-arm64@0.28.1': - optional: true - - '@esbuild/netbsd-x64@0.28.1': - optional: true - - '@esbuild/openbsd-arm64@0.28.1': - optional: true - - '@esbuild/openbsd-x64@0.28.1': - optional: true - - '@esbuild/openharmony-arm64@0.28.1': - optional: true - - '@esbuild/sunos-x64@0.28.1': - optional: true - - '@esbuild/win32-arm64@0.28.1': - optional: true - - '@esbuild/win32-ia32@0.28.1': - optional: true - - '@esbuild/win32-x64@0.28.1': - optional: true - - '@faker-js/faker@10.5.0': {} - - '@floating-ui/core@1.8.0': - dependencies: - '@floating-ui/utils': 0.2.12 - - '@floating-ui/dom@1.8.0': - dependencies: - '@floating-ui/core': 1.8.0 - '@floating-ui/utils': 0.2.12 - - '@floating-ui/react-dom@2.1.9(react-dom@19.2.8(react@19.2.8))(react@19.2.8)': - dependencies: - '@floating-ui/dom': 1.8.0 - react: 19.2.8 - react-dom: 19.2.8(react@19.2.8) - - '@floating-ui/utils@0.2.12': {} - - '@grpc/grpc-js@1.14.4': - dependencies: - '@grpc/proto-loader': 0.8.1 - '@js-sdsl/ordered-map': 4.4.2 - - '@grpc/proto-loader@0.7.15': - dependencies: - lodash.camelcase: 4.3.0 - long: 5.3.2 - protobufjs: 7.6.5 - yargs: 17.7.3 - - '@grpc/proto-loader@0.8.1': - dependencies: - lodash.camelcase: 4.3.0 - long: 5.3.2 - protobufjs: 7.6.5 - yargs: 17.7.3 - - '@hexagon/base64@1.1.28': {} - - '@hono/node-server@1.19.14(hono@4.12.31)': - dependencies: - hono: 4.12.31 - - '@hugeicons/core-free-icons@4.2.3': {} - - '@hugeicons/react@1.1.9(react@19.2.8)': - dependencies: - react: 19.2.8 - - '@img/colour@1.1.0': {} - - '@img/sharp-darwin-arm64@0.34.5': - optionalDependencies: - '@img/sharp-libvips-darwin-arm64': 1.2.4 - optional: true - - '@img/sharp-darwin-x64@0.34.5': - optionalDependencies: - '@img/sharp-libvips-darwin-x64': 1.2.4 - optional: true - - '@img/sharp-libvips-darwin-arm64@1.2.4': - optional: true - - '@img/sharp-libvips-darwin-x64@1.2.4': - optional: true - - '@img/sharp-libvips-linux-arm64@1.2.4': - optional: true - - '@img/sharp-libvips-linux-arm@1.2.4': - optional: true - - '@img/sharp-libvips-linux-ppc64@1.2.4': - optional: true - - '@img/sharp-libvips-linux-riscv64@1.2.4': - optional: true - - '@img/sharp-libvips-linux-s390x@1.2.4': - optional: true - - '@img/sharp-libvips-linux-x64@1.2.4': - optional: true - - '@img/sharp-libvips-linuxmusl-arm64@1.2.4': - optional: true - - '@img/sharp-libvips-linuxmusl-x64@1.2.4': - optional: true - - '@img/sharp-linux-arm64@0.34.5': - optionalDependencies: - '@img/sharp-libvips-linux-arm64': 1.2.4 - optional: true - - '@img/sharp-linux-arm@0.34.5': - optionalDependencies: - '@img/sharp-libvips-linux-arm': 1.2.4 - optional: true - - '@img/sharp-linux-ppc64@0.34.5': - optionalDependencies: - '@img/sharp-libvips-linux-ppc64': 1.2.4 - optional: true - - '@img/sharp-linux-riscv64@0.34.5': - optionalDependencies: - '@img/sharp-libvips-linux-riscv64': 1.2.4 - optional: true - - '@img/sharp-linux-s390x@0.34.5': - optionalDependencies: - '@img/sharp-libvips-linux-s390x': 1.2.4 - optional: true - - '@img/sharp-linux-x64@0.34.5': - optionalDependencies: - '@img/sharp-libvips-linux-x64': 1.2.4 - optional: true - - '@img/sharp-linuxmusl-arm64@0.34.5': - optionalDependencies: - '@img/sharp-libvips-linuxmusl-arm64': 1.2.4 - optional: true - - '@img/sharp-linuxmusl-x64@0.34.5': - optionalDependencies: - '@img/sharp-libvips-linuxmusl-x64': 1.2.4 - optional: true - - '@img/sharp-wasm32@0.34.5': - dependencies: - '@emnapi/runtime': 1.11.2 - optional: true - - '@img/sharp-win32-arm64@0.34.5': - optional: true - - '@img/sharp-win32-ia32@0.34.5': - optional: true - - '@img/sharp-win32-x64@0.34.5': - optional: true - - '@jest/schemas@29.6.3': - dependencies: - '@sinclair/typebox': 0.27.12 - - '@jest/types@29.6.3': - dependencies: - '@jest/schemas': 29.6.3 - '@types/istanbul-lib-coverage': 2.0.6 - '@types/istanbul-reports': 3.0.4 - '@types/node': 24.13.3 - '@types/yargs': 17.0.35 - chalk: 4.1.2 - - '@jridgewell/gen-mapping@0.3.13': - dependencies: - '@jridgewell/sourcemap-codec': 1.5.5 - '@jridgewell/trace-mapping': 0.3.31 - - '@jridgewell/remapping@2.3.5': - dependencies: - '@jridgewell/gen-mapping': 0.3.13 - '@jridgewell/trace-mapping': 0.3.31 - - '@jridgewell/resolve-uri@3.1.2': {} - - '@jridgewell/sourcemap-codec@1.5.5': {} - - '@jridgewell/trace-mapping@0.3.31': - dependencies: - '@jridgewell/resolve-uri': 3.1.2 - '@jridgewell/sourcemap-codec': 1.5.5 - - '@jridgewell/trace-mapping@0.3.9': - dependencies: - '@jridgewell/resolve-uri': 3.1.2 - '@jridgewell/sourcemap-codec': 1.5.5 - - '@js-sdsl/ordered-map@4.4.2': {} - - '@levischuck/tiny-cbor@0.2.11': {} - - '@lingui/babel-plugin-lingui-macro@6.5.0': - dependencies: - '@babel/core': 7.29.7 - '@babel/types': 7.29.7 - '@lingui/conf': 6.5.0 - '@lingui/message-utils': 6.5.0 - transitivePeerDependencies: - - supports-color - - '@lingui/conf@6.5.0': - dependencies: - jest-validate: 29.7.0 - jiti: 2.7.0 - lilconfig: 3.1.3 - normalize-path: 3.0.0 - - '@lingui/core@6.5.0': - dependencies: - '@lingui/babel-plugin-lingui-macro': 6.5.0 - '@lingui/message-utils': 6.5.0 - transitivePeerDependencies: - - supports-color - - '@lingui/message-utils@6.5.0': - dependencies: - '@messageformat/date-skeleton': 1.1.0 - '@messageformat/parser': 5.1.1 - js-sha256: 0.10.1 - - '@lunora/advisor@1.0.0-alpha.33(@cloudflare/workers-types@4.20260702.1)(kysely@0.29.4)': - dependencies: - '@lunora/errors': 1.0.0-alpha.7 - '@lunora/server': 1.0.0-alpha.30(@cloudflare/workers-types@4.20260702.1)(kysely@0.29.4) - transitivePeerDependencies: - - '@aws-sdk/client-rds-data' - - '@cloudflare/workers-types' - - '@electric-sql/pglite' - - '@libsql/client' - - '@libsql/client-wasm' - - '@neondatabase/serverless' - - '@op-engineering/op-sqlite' - - '@opentelemetry/api' - - '@planetscale/database' - - '@prisma/client' - - '@tidbcloud/serverless' - - '@types/better-sqlite3' - - '@types/pg' - - '@types/sql.js' - - '@upstash/redis' - - '@vercel/postgres' - - '@xata.io/client' - - better-sqlite3 - - bun-types - - expo-sqlite - - gel - - knex - - kysely - - mysql2 - - pg - - postgres - - prisma - - sql.js - - sqlite3 - - '@lunora/agent@1.0.0-alpha.9(@ai-sdk/provider@4.0.3)(@cloudflare/workers-types@4.20260702.1)(@types/node@24.13.3)(asn1js@3.0.10)(kysely@0.29.4)(luxon@3.7.2)(react-dom@19.2.8(react@19.2.8))(react@19.2.8)(zod@4.4.3)': - dependencies: - '@lunora/ai': 1.0.0-alpha.24(@ai-sdk/provider@4.0.3)(zod@4.4.3) - '@lunora/errors': 1.0.0-alpha.7 - '@lunora/mail': 1.0.0-alpha.17(@types/node@24.13.3)(asn1js@3.0.10)(luxon@3.7.2)(react-dom@19.2.8(react@19.2.8))(react@19.2.8) - '@lunora/server': 1.0.0-alpha.30(@cloudflare/workers-types@4.20260702.1)(kysely@0.29.4) - '@lunora/values': 1.0.0-alpha.10 - '@lunora/workflow': 1.0.0-alpha.12 - '@modelcontextprotocol/sdk': 1.29.0(zod@4.4.3) - ai: 7.0.31(zod@4.4.3) - transitivePeerDependencies: - - '@ai-sdk/anthropic' - - '@ai-sdk/google' - - '@ai-sdk/openai' - - '@ai-sdk/provider' - - '@aws-sdk/client-rds-data' - - '@cfworker/json-schema' - - '@cloudflare/workers-types' - - '@electric-sql/pglite' - - '@libsql/client' - - '@libsql/client-wasm' - - '@neondatabase/serverless' - - '@op-engineering/op-sqlite' - - '@opentelemetry/api' - - '@planetscale/database' - - '@prisma/client' - - '@tidbcloud/serverless' - - '@touch4it/ical-timezones' - - '@types/better-sqlite3' - - '@types/luxon' - - '@types/mocha' - - '@types/node' - - '@types/pg' - - '@types/sql.js' - - '@upstash/redis' - - '@vercel/postgres' - - '@vue-email/render' - - '@xata.io/client' - - asn1js - - better-sqlite3 - - bun-types - - dayjs - - expo-sqlite - - fast-xml-parser - - gel - - handlebars - - jsx-email - - juice - - knex - - kysely - - liquidjs - - luxon - - mjml - - moment - - moment-timezone - - mysql2 - - nodemailer - - pg - - pkijs - - postgres - - prisma - - react - - react-dom - - rrule - - sql.js - - sqlite3 - - supports-color - - unstorage - - zod - - '@lunora/ai@1.0.0-alpha.24(@ai-sdk/provider@4.0.3)(zod@4.4.3)': - dependencies: - '@lunora/errors': 1.0.0-alpha.7 - ai: 7.0.31(zod@4.4.3) - workers-ai-provider: 3.3.1(@ai-sdk/provider@4.0.3)(ai@7.0.31(zod@4.4.3)) - transitivePeerDependencies: - - '@ai-sdk/google' - - '@ai-sdk/provider' - - zod - - '@lunora/auth@1.0.0-alpha.36(@better-auth/core@1.6.24(@better-auth/utils@0.4.2)(@better-fetch/fetch@1.3.1)(@cloudflare/workers-types@4.20260702.1)(better-call@1.3.7(zod@4.4.3))(jose@6.2.4)(kysely@0.29.4)(nanostores@1.4.1))(@better-auth/utils@0.4.2)(@better-fetch/fetch@1.3.1)(@cloudflare/workers-types@4.20260702.1)(better-call@1.3.7(zod@4.4.3))(drizzle-orm@0.45.2(@cloudflare/workers-types@4.20260702.1)(kysely@0.29.4))(kysely@0.29.4)(nanostores@1.4.1)(react-dom@19.2.8(react@19.2.8))(react@19.2.8)(solid-js@1.9.14)(svelte@5.56.7)(vitest@4.1.10(@types/node@24.13.3)(vite@8.1.5(@types/node@24.13.3)(esbuild@0.28.1)(jiti@2.7.0)(yaml@2.9.0)))(vue@3.5.40(typescript@6.0.3))': - dependencies: - '@better-auth/passkey': 1.6.24(@better-auth/core@1.6.24(@better-auth/utils@0.4.2)(@better-fetch/fetch@1.3.1)(@cloudflare/workers-types@4.20260702.1)(better-call@1.3.7(zod@4.4.3))(jose@6.2.4)(kysely@0.29.4)(nanostores@1.4.1))(@better-auth/utils@0.4.2)(@better-fetch/fetch@1.3.1)(better-auth@1.6.24(@cloudflare/workers-types@4.20260702.1)(drizzle-orm@0.45.2(@cloudflare/workers-types@4.20260702.1)(kysely@0.29.4))(react-dom@19.2.8(react@19.2.8))(react@19.2.8)(solid-js@1.9.14)(svelte@5.56.7)(vitest@4.1.10(@types/node@24.13.3)(vite@8.1.5(@types/node@24.13.3)(esbuild@0.28.1)(jiti@2.7.0)(yaml@2.9.0)))(vue@3.5.40(typescript@6.0.3)))(better-call@1.3.7(zod@4.4.3))(nanostores@1.4.1) - '@lunora/errors': 1.0.0-alpha.7 - '@lunora/server': 1.0.0-alpha.30(@cloudflare/workers-types@4.20260702.1)(kysely@0.29.4) - '@lunora/values': 1.0.0-alpha.10 - '@visulima/disposable-email-domains': 1.0.1 - '@visulima/email-verifier': 1.0.1 - '@visulima/free-email-domains': 1.0.0 - '@visulima/redact': 3.0.0 - better-auth: 1.6.24(@cloudflare/workers-types@4.20260702.1)(drizzle-orm@0.45.2(@cloudflare/workers-types@4.20260702.1)(kysely@0.29.4))(react-dom@19.2.8(react@19.2.8))(react@19.2.8)(solid-js@1.9.14)(svelte@5.56.7)(vitest@4.1.10(@types/node@24.13.3)(vite@8.1.5(@types/node@24.13.3)(esbuild@0.28.1)(jiti@2.7.0)(yaml@2.9.0)))(vue@3.5.40(typescript@6.0.3)) - transitivePeerDependencies: - - '@aws-sdk/client-rds-data' - - '@better-auth/core' - - '@better-auth/utils' - - '@better-fetch/fetch' - - '@cloudflare/workers-types' - - '@electric-sql/pglite' - - '@libsql/client' - - '@libsql/client-wasm' - - '@lynx-js/react' - - '@neondatabase/serverless' - - '@op-engineering/op-sqlite' - - '@opentelemetry/api' - - '@planetscale/database' - - '@prisma/client' - - '@sveltejs/kit' - - '@tanstack/react-start' - - '@tanstack/solid-start' - - '@tidbcloud/serverless' - - '@types/better-sqlite3' - - '@types/pg' - - '@types/sql.js' - - '@upstash/redis' - - '@vercel/postgres' - - '@xata.io/client' - - better-call - - better-sqlite3 - - bun-types - - drizzle-kit - - drizzle-orm - - expo-sqlite - - gel - - knex - - kysely - - mongodb - - mysql2 - - nanostores - - next - - pg - - postgres - - prisma - - react - - react-dom - - solid-js - - sql.js - - sqlite3 - - svelte - - vitest - - vue - - '@lunora/bindings@1.0.0-alpha.10': - dependencies: - '@lunora/errors': 1.0.0-alpha.7 - - '@lunora/cli@1.0.0-alpha.97(@ai-sdk/provider@4.0.3)(@cloudflare/workers-types@4.20260702.1)(@lunora/server@1.0.0-alpha.30(@cloudflare/workers-types@4.20260702.1)(kysely@0.29.4))(@lunora/studio@1.0.0-alpha.58(@cloudflare/workers-types@4.20260702.1)(@tanstack/solid-query@5.101.4(solid-js@1.9.14))(@tanstack/svelte-query@6.1.38(svelte@5.56.7))(@tanstack/vue-query@5.101.4(vue@3.5.40(typescript@6.0.3)))(@types/react-dom@19.2.3(@types/react@19.2.17))(@types/react@19.2.17)(immer@11.1.15)(kysely@0.29.4)(react-dom@19.2.8(react@19.2.8))(react-is@18.3.1)(react@19.2.8)(redux@5.0.1)(solid-js@1.9.14)(svelte@5.56.7)(vue@3.5.40(typescript@6.0.3)))(@lunora/values@1.0.0-alpha.10)(@shikijs/langs@4.3.1)(@shikijs/themes@4.3.1)(@types/node@24.13.3)(@visulima/redact@3.0.0)(@visulima/tabular@4.0.0)(ai@7.0.31(zod@4.4.3))(asn1js@3.0.10)(express@5.2.1)(hono@4.12.31)(json5@2.2.3)(kysely@0.29.4)(luxon@3.7.2)(react-dom@19.2.8(react@19.2.8))(shiki@4.3.1)(ws@8.21.0)(yaml@2.9.0)(zod@4.4.3)': - dependencies: - '@bomb.sh/tab': 0.0.19 - '@lunora/bindings': 1.0.0-alpha.10 - '@lunora/codegen': 1.0.0-alpha.52(@ai-sdk/provider@4.0.3)(@cloudflare/workers-types@4.20260702.1)(@types/node@24.13.3)(asn1js@3.0.10)(kysely@0.29.4)(luxon@3.7.2)(react-dom@19.2.8(react@19.2.8))(react@19.2.8)(zod@4.4.3) - '@lunora/config': 1.0.0-alpha.78(@ai-sdk/provider@4.0.3)(@cloudflare/workers-types@4.20260702.1)(@lunora/server@1.0.0-alpha.30(@cloudflare/workers-types@4.20260702.1)(kysely@0.29.4))(@lunora/studio@1.0.0-alpha.58(@cloudflare/workers-types@4.20260702.1)(@tanstack/solid-query@5.101.4(solid-js@1.9.14))(@tanstack/svelte-query@6.1.38(svelte@5.56.7))(@tanstack/vue-query@5.101.4(vue@3.5.40(typescript@6.0.3)))(@types/react-dom@19.2.3(@types/react@19.2.17))(@types/react@19.2.17)(immer@11.1.15)(kysely@0.29.4)(react-dom@19.2.8(react@19.2.8))(react-is@18.3.1)(react@19.2.8)(redux@5.0.1)(solid-js@1.9.14)(svelte@5.56.7)(vue@3.5.40(typescript@6.0.3)))(@lunora/values@1.0.0-alpha.10)(@types/node@24.13.3)(asn1js@3.0.10)(kysely@0.29.4)(luxon@3.7.2)(react-dom@19.2.8(react@19.2.8))(react@19.2.8)(zod@4.4.3) - '@lunora/container': 1.0.0-alpha.14 - '@lunora/d1': 1.0.0-alpha.37(@cloudflare/workers-types@4.20260702.1)(kysely@0.29.4) - '@lunora/errors': 1.0.0-alpha.7 - '@lunora/runtime': 1.0.0-alpha.35 - '@lunora/seed': 1.0.0-alpha.29(@lunora/server@1.0.0-alpha.30(@cloudflare/workers-types@4.20260702.1)(kysely@0.29.4))(@lunora/values@1.0.0-alpha.10) - '@visulima/cerebro': 3.0.0(@bomb.sh/tab@0.0.19)(@visulima/pail@4.0.0(@visulima/redact@3.0.0)(express@5.2.1)(hono@4.12.31)) - '@visulima/error': 6.0.0(ai@7.0.31(zod@4.4.3)) - '@visulima/fs': 5.0.4(json5@2.2.3)(jsonc-parser@3.3.1)(yaml@2.9.0) - '@visulima/package': 5.0.4(jsonc-parser@3.3.1) - '@visulima/pail': 4.0.0(@visulima/redact@3.0.0)(express@5.2.1)(hono@4.12.31) - '@visulima/path': 3.0.0 - '@visulima/spinner': 1.0.0 - '@visulima/tui': 1.0.4(@shikijs/langs@4.3.1)(@shikijs/themes@4.3.1)(@visulima/tabular@4.0.0)(ai@7.0.31(zod@4.4.3))(cfonts@3.3.1)(react-reconciler@0.33.0(react@19.2.8))(react@19.2.8)(shiki@4.3.1)(ws@8.21.0) - cfonts: 3.3.1 - giget: 3.3.0 - jsonc-parser: 3.3.1 - magic-string: 1.0.0 - react: 19.2.8 - react-reconciler: 0.33.0(react@19.2.8) - ts-morph: 28.0.0 - transitivePeerDependencies: - - '@ai-sdk/anthropic' - - '@ai-sdk/google' - - '@ai-sdk/openai' - - '@ai-sdk/provider' - - '@aws-sdk/client-rds-data' - - '@cfworker/json-schema' - - '@cloudflare/workers-types' - - '@electric-sql/pglite' - - '@libsql/client' - - '@libsql/client-wasm' - - '@lunora/server' - - '@lunora/studio' - - '@lunora/values' - - '@neondatabase/serverless' - - '@op-engineering/op-sqlite' - - '@opentelemetry/api' - - '@planetscale/database' - - '@prisma/client' - - '@shikijs/langs' - - '@shikijs/themes' - - '@sveltejs/kit' - - '@tidbcloud/serverless' - - '@touch4it/ical-timezones' - - '@types/better-sqlite3' - - '@types/luxon' - - '@types/mocha' - - '@types/node' - - '@types/pg' - - '@types/sql.js' - - '@upstash/redis' - - '@vercel/postgres' - - '@visulima/boxen' - - '@visulima/find-cache-dir' - - '@visulima/redact' - - '@visulima/tabular' - - '@vue-email/render' - - '@xata.io/client' - - ai - - asn1js - - better-sqlite3 - - bun-types - - cac - - citty - - commander - - dayjs - - diff - - elysia - - expo-sqlite - - express - - fast-xml-parser - - fastify - - gel - - github-slugger - - handlebars - - hono - - ini - - json5 - - jsx-email - - juice - - knex - - kysely - - liquidjs - - luxon - - marked - - mjml - - moment - - moment-timezone - - mysql2 - - next - - nodemailer - - pg - - pkijs - - postgres - - prisma - - react-devtools-core - - react-dom - - rotating-file-stream - - rrule - - shiki - - smol-toml - - sql.js - - sqlite3 - - supports-color - - unstorage - - ws - - yaml - - zod - - '@lunora/client@1.0.0-alpha.27(@tanstack/react-query@5.101.4(react@19.2.8))(@tanstack/solid-query@5.101.4(solid-js@1.9.14))(@tanstack/svelte-query@6.1.38(svelte@5.56.7))(@tanstack/vue-query@5.101.4(vue@3.5.40(typescript@6.0.3)))(react@19.2.8)(solid-js@1.9.14)(svelte@5.56.7)(vue@3.5.40(typescript@6.0.3))': - dependencies: - '@lunora/errors': 1.0.0-alpha.7 - '@visulima/storage-client': 1.0.0(@tanstack/react-query@5.101.4(react@19.2.8))(@tanstack/solid-query@5.101.4(solid-js@1.9.14))(@tanstack/svelte-query@6.1.38(svelte@5.56.7))(@tanstack/vue-query@5.101.4(vue@3.5.40(typescript@6.0.3)))(react@19.2.8)(solid-js@1.9.14)(svelte@5.56.7)(vue@3.5.40(typescript@6.0.3)) - transitivePeerDependencies: - - '@tanstack/react-query' - - '@tanstack/solid-query' - - '@tanstack/svelte-query' - - '@tanstack/vue-query' - - react - - solid-js - - svelte - - vue - - '@lunora/codegen@1.0.0-alpha.52(@ai-sdk/provider@4.0.3)(@cloudflare/workers-types@4.20260702.1)(@types/node@24.13.3)(asn1js@3.0.10)(kysely@0.29.4)(luxon@3.7.2)(react-dom@19.2.8(react@19.2.8))(react@19.2.8)(zod@4.4.3)': - dependencies: - '@lunora/advisor': 1.0.0-alpha.33(@cloudflare/workers-types@4.20260702.1)(kysely@0.29.4) - '@lunora/agent': 1.0.0-alpha.9(@ai-sdk/provider@4.0.3)(@cloudflare/workers-types@4.20260702.1)(@types/node@24.13.3)(asn1js@3.0.10)(kysely@0.29.4)(luxon@3.7.2)(react-dom@19.2.8(react@19.2.8))(react@19.2.8)(zod@4.4.3) - '@lunora/container': 1.0.0-alpha.14 - '@lunora/errors': 1.0.0-alpha.7 - '@lunora/queue': 1.0.0-alpha.9 - '@lunora/scheduler': 1.0.0-alpha.11 - '@lunora/values': 1.0.0-alpha.10 - '@lunora/workflow': 1.0.0-alpha.12 - ts-morph: 28.0.0 - transitivePeerDependencies: - - '@ai-sdk/anthropic' - - '@ai-sdk/google' - - '@ai-sdk/openai' - - '@ai-sdk/provider' - - '@aws-sdk/client-rds-data' - - '@cfworker/json-schema' - - '@cloudflare/workers-types' - - '@electric-sql/pglite' - - '@libsql/client' - - '@libsql/client-wasm' - - '@neondatabase/serverless' - - '@op-engineering/op-sqlite' - - '@opentelemetry/api' - - '@planetscale/database' - - '@prisma/client' - - '@tidbcloud/serverless' - - '@touch4it/ical-timezones' - - '@types/better-sqlite3' - - '@types/luxon' - - '@types/mocha' - - '@types/node' - - '@types/pg' - - '@types/sql.js' - - '@upstash/redis' - - '@vercel/postgres' - - '@vue-email/render' - - '@xata.io/client' - - asn1js - - better-sqlite3 - - bun-types - - dayjs - - expo-sqlite - - fast-xml-parser - - gel - - handlebars - - jsx-email - - juice - - knex - - kysely - - liquidjs - - luxon - - mjml - - moment - - moment-timezone - - mysql2 - - nodemailer - - pg - - pkijs - - postgres - - prisma - - react - - react-dom - - rrule - - sql.js - - sqlite3 - - supports-color - - unstorage - - zod - - '@lunora/config@1.0.0-alpha.78(@ai-sdk/provider@4.0.3)(@cloudflare/workers-types@4.20260702.1)(@lunora/server@1.0.0-alpha.30(@cloudflare/workers-types@4.20260702.1)(kysely@0.29.4))(@lunora/studio@1.0.0-alpha.58(@cloudflare/workers-types@4.20260702.1)(@tanstack/solid-query@5.101.4(solid-js@1.9.14))(@tanstack/svelte-query@6.1.38(svelte@5.56.7))(@tanstack/vue-query@5.101.4(vue@3.5.40(typescript@6.0.3)))(@types/react-dom@19.2.3(@types/react@19.2.17))(@types/react@19.2.17)(immer@11.1.15)(kysely@0.29.4)(react-dom@19.2.8(react@19.2.8))(react-is@18.3.1)(react@19.2.8)(redux@5.0.1)(solid-js@1.9.14)(svelte@5.56.7)(vue@3.5.40(typescript@6.0.3)))(@lunora/values@1.0.0-alpha.10)(@types/node@24.13.3)(asn1js@3.0.10)(kysely@0.29.4)(luxon@3.7.2)(react-dom@19.2.8(react@19.2.8))(react@19.2.8)(zod@4.4.3)': - dependencies: - '@lunora/codegen': 1.0.0-alpha.52(@ai-sdk/provider@4.0.3)(@cloudflare/workers-types@4.20260702.1)(@types/node@24.13.3)(asn1js@3.0.10)(kysely@0.29.4)(luxon@3.7.2)(react-dom@19.2.8(react@19.2.8))(react@19.2.8)(zod@4.4.3) - '@lunora/container': 1.0.0-alpha.14 - '@lunora/errors': 1.0.0-alpha.7 - '@lunora/seed': 1.0.0-alpha.29(@lunora/server@1.0.0-alpha.30(@cloudflare/workers-types@4.20260702.1)(kysely@0.29.4))(@lunora/values@1.0.0-alpha.10) - '@visulima/colorize': 2.0.0 - '@visulima/find-ai-runner': 1.0.0 - dockerode: 5.0.1 - es-module-lexer: 2.3.1 - jsonc-parser: 3.3.1 - ts-morph: 28.0.0 - optionalDependencies: - '@lunora/studio': 1.0.0-alpha.58(@cloudflare/workers-types@4.20260702.1)(@tanstack/solid-query@5.101.4(solid-js@1.9.14))(@tanstack/svelte-query@6.1.38(svelte@5.56.7))(@tanstack/vue-query@5.101.4(vue@3.5.40(typescript@6.0.3)))(@types/react-dom@19.2.3(@types/react@19.2.17))(@types/react@19.2.17)(immer@11.1.15)(kysely@0.29.4)(react-dom@19.2.8(react@19.2.8))(react-is@18.3.1)(react@19.2.8)(redux@5.0.1)(solid-js@1.9.14)(svelte@5.56.7)(vue@3.5.40(typescript@6.0.3)) - transitivePeerDependencies: - - '@ai-sdk/anthropic' - - '@ai-sdk/google' - - '@ai-sdk/openai' - - '@ai-sdk/provider' - - '@aws-sdk/client-rds-data' - - '@cfworker/json-schema' - - '@cloudflare/workers-types' - - '@electric-sql/pglite' - - '@libsql/client' - - '@libsql/client-wasm' - - '@lunora/server' - - '@lunora/values' - - '@neondatabase/serverless' - - '@op-engineering/op-sqlite' - - '@opentelemetry/api' - - '@planetscale/database' - - '@prisma/client' - - '@tidbcloud/serverless' - - '@touch4it/ical-timezones' - - '@types/better-sqlite3' - - '@types/luxon' - - '@types/mocha' - - '@types/node' - - '@types/pg' - - '@types/sql.js' - - '@upstash/redis' - - '@vercel/postgres' - - '@vue-email/render' - - '@xata.io/client' - - asn1js - - better-sqlite3 - - bun-types - - dayjs - - expo-sqlite - - fast-xml-parser - - gel - - handlebars - - jsx-email - - juice - - knex - - kysely - - liquidjs - - luxon - - mjml - - moment - - moment-timezone - - mysql2 - - nodemailer - - pg - - pkijs - - postgres - - prisma - - react - - react-dom - - rrule - - sql.js - - sqlite3 - - supports-color - - unstorage - - zod - - '@lunora/container@1.0.0-alpha.14': - dependencies: - '@lunora/errors': 1.0.0-alpha.7 - - '@lunora/d1@1.0.0-alpha.37(@cloudflare/workers-types@4.20260702.1)(kysely@0.29.4)': - dependencies: - '@lunora/do': 1.0.0-alpha.41(@cloudflare/workers-types@4.20260702.1)(kysely@0.29.4) - '@lunora/errors': 1.0.0-alpha.7 - '@lunora/sql-store': 1.0.0-alpha.38(@cloudflare/workers-types@4.20260702.1)(kysely@0.29.4) - drizzle-orm: 0.45.2(@cloudflare/workers-types@4.20260702.1)(kysely@0.29.4) - transitivePeerDependencies: - - '@aws-sdk/client-rds-data' - - '@cloudflare/workers-types' - - '@electric-sql/pglite' - - '@libsql/client' - - '@libsql/client-wasm' - - '@neondatabase/serverless' - - '@op-engineering/op-sqlite' - - '@opentelemetry/api' - - '@planetscale/database' - - '@prisma/client' - - '@tidbcloud/serverless' - - '@types/better-sqlite3' - - '@types/pg' - - '@types/sql.js' - - '@upstash/redis' - - '@vercel/postgres' - - '@xata.io/client' - - better-sqlite3 - - bun-types - - expo-sqlite - - gel - - knex - - kysely - - mysql2 - - pg - - postgres - - prisma - - sql.js - - sqlite3 - - '@lunora/db@1.0.0-alpha.27(@tanstack/db@0.6.16(typescript@6.0.3))(@tanstack/offline-transactions@1.0.41(typescript@6.0.3))(@tanstack/react-query@5.101.4(react@19.2.8))(@tanstack/solid-query@5.101.4(solid-js@1.9.14))(@tanstack/svelte-query@6.1.38(svelte@5.56.7))(@tanstack/vue-query@5.101.4(vue@3.5.40(typescript@6.0.3)))(react@19.2.8)(solid-js@1.9.14)(svelte@5.56.7)(vue@3.5.40(typescript@6.0.3))': - dependencies: - '@lunora/client': 1.0.0-alpha.27(@tanstack/react-query@5.101.4(react@19.2.8))(@tanstack/solid-query@5.101.4(solid-js@1.9.14))(@tanstack/svelte-query@6.1.38(svelte@5.56.7))(@tanstack/vue-query@5.101.4(vue@3.5.40(typescript@6.0.3)))(react@19.2.8)(solid-js@1.9.14)(svelte@5.56.7)(vue@3.5.40(typescript@6.0.3)) - '@lunora/errors': 1.0.0-alpha.7 - '@tanstack/db': 0.6.16(typescript@6.0.3) - '@tanstack/offline-transactions': 1.0.41(typescript@6.0.3) - transitivePeerDependencies: - - '@tanstack/react-query' - - '@tanstack/solid-query' - - '@tanstack/svelte-query' - - '@tanstack/vue-query' - - react - - solid-js - - svelte - - vue - - '@lunora/do@1.0.0-alpha.41(@cloudflare/workers-types@4.20260702.1)(kysely@0.29.4)': - dependencies: - '@lunora/errors': 1.0.0-alpha.7 - '@lunora/fingerprint': 1.0.0-alpha.3 - '@visulima/redact': 3.0.0 - drizzle-orm: 0.45.2(@cloudflare/workers-types@4.20260702.1)(kysely@0.29.4) - transitivePeerDependencies: - - '@aws-sdk/client-rds-data' - - '@cloudflare/workers-types' - - '@electric-sql/pglite' - - '@libsql/client' - - '@libsql/client-wasm' - - '@neondatabase/serverless' - - '@op-engineering/op-sqlite' - - '@opentelemetry/api' - - '@planetscale/database' - - '@prisma/client' - - '@tidbcloud/serverless' - - '@types/better-sqlite3' - - '@types/pg' - - '@types/sql.js' - - '@upstash/redis' - - '@vercel/postgres' - - '@xata.io/client' - - better-sqlite3 - - bun-types - - expo-sqlite - - gel - - knex - - kysely - - mysql2 - - pg - - postgres - - prisma - - sql.js - - sqlite3 - - '@lunora/errors@1.0.0-alpha.6': {} - - '@lunora/errors@1.0.0-alpha.7': {} - - '@lunora/fingerprint@1.0.0-alpha.3': {} - - '@lunora/flags@1.0.0-alpha.15(@openfeature/core@1.11.0)': - dependencies: - '@lunora/errors': 1.0.0-alpha.7 - '@openfeature/server-sdk': 1.22.0(@openfeature/core@1.11.0) - transitivePeerDependencies: - - '@openfeature/core' - - '@lunora/mail@1.0.0-alpha.17(@types/node@24.13.3)(asn1js@3.0.10)(luxon@3.7.2)(react-dom@19.2.8(react@19.2.8))(react@19.2.8)': - dependencies: - '@lunora/errors': 1.0.0-alpha.7 - '@react-email/render': 2.1.0(react-dom@19.2.8(react@19.2.8))(react@19.2.8) - '@visulima/email': 2.1.1(@react-email/render@2.1.0(react-dom@19.2.8(react@19.2.8))(react@19.2.8))(@types/node@24.13.3)(asn1js@3.0.10)(luxon@3.7.2) - postal-mime: 2.7.5 - optionalDependencies: - react: 19.2.8 - transitivePeerDependencies: - - '@opentelemetry/api' - - '@touch4it/ical-timezones' - - '@types/luxon' - - '@types/mocha' - - '@types/node' - - '@vue-email/render' - - asn1js - - dayjs - - fast-xml-parser - - handlebars - - jsx-email - - juice - - liquidjs - - luxon - - mjml - - moment - - moment-timezone - - nodemailer - - pkijs - - react-dom - - rrule - - unstorage - - '@lunora/queue@1.0.0-alpha.9': - dependencies: - '@lunora/errors': 1.0.0-alpha.6 - - '@lunora/ratelimit@1.0.0-alpha.9': - dependencies: - '@lunora/errors': 1.0.0-alpha.6 - - '@lunora/react@1.0.0-alpha.31(@tanstack/react-query@5.101.4(react@19.2.8))(@tanstack/solid-query@5.101.4(solid-js@1.9.14))(@tanstack/svelte-query@6.1.38(svelte@5.56.7))(@tanstack/vue-query@5.101.4(vue@3.5.40(typescript@6.0.3)))(react-dom@19.2.8(react@19.2.8))(react@19.2.8)(solid-js@1.9.14)(svelte@5.56.7)(vue@3.5.40(typescript@6.0.3))': - dependencies: - '@lunora/client': 1.0.0-alpha.27(@tanstack/react-query@5.101.4(react@19.2.8))(@tanstack/solid-query@5.101.4(solid-js@1.9.14))(@tanstack/svelte-query@6.1.38(svelte@5.56.7))(@tanstack/vue-query@5.101.4(vue@3.5.40(typescript@6.0.3)))(react@19.2.8)(solid-js@1.9.14)(svelte@5.56.7)(vue@3.5.40(typescript@6.0.3)) - '@lunora/errors': 1.0.0-alpha.7 - '@lunora/ratelimit': 1.0.0-alpha.9 - '@tanstack/react-query': 5.101.4(react@19.2.8) - '@visulima/storage-client': 1.0.0(@tanstack/react-query@5.101.4(react@19.2.8))(@tanstack/solid-query@5.101.4(solid-js@1.9.14))(@tanstack/svelte-query@6.1.38(svelte@5.56.7))(@tanstack/vue-query@5.101.4(vue@3.5.40(typescript@6.0.3)))(react@19.2.8)(solid-js@1.9.14)(svelte@5.56.7)(vue@3.5.40(typescript@6.0.3)) - react: 19.2.8 - optionalDependencies: - react-dom: 19.2.8(react@19.2.8) - transitivePeerDependencies: - - '@tanstack/solid-query' - - '@tanstack/svelte-query' - - '@tanstack/vue-query' - - solid-js - - svelte - - vue - - '@lunora/runtime@1.0.0-alpha.35': - dependencies: - '@lunora/bindings': 1.0.0-alpha.10 - '@lunora/errors': 1.0.0-alpha.7 - - '@lunora/scheduler@1.0.0-alpha.11': - dependencies: - '@lunora/errors': 1.0.0-alpha.6 - cron-parser: 5.6.2 - - '@lunora/seed@1.0.0-alpha.29(@lunora/server@1.0.0-alpha.30(@cloudflare/workers-types@4.20260702.1)(kysely@0.29.4))(@lunora/values@1.0.0-alpha.10)': - dependencies: - '@faker-js/faker': 10.5.0 - '@lunora/errors': 1.0.0-alpha.7 - '@lunora/server': 1.0.0-alpha.30(@cloudflare/workers-types@4.20260702.1)(kysely@0.29.4) - '@lunora/values': 1.0.0-alpha.10 - - '@lunora/server@1.0.0-alpha.30(@cloudflare/workers-types@4.20260702.1)(kysely@0.29.4)': - dependencies: - '@lunora/errors': 1.0.0-alpha.7 - '@lunora/scheduler': 1.0.0-alpha.11 - '@lunora/values': 1.0.0-alpha.10 - drizzle-orm: 0.45.2(@cloudflare/workers-types@4.20260702.1)(kysely@0.29.4) - hono: 4.12.31 - transitivePeerDependencies: - - '@aws-sdk/client-rds-data' - - '@cloudflare/workers-types' - - '@electric-sql/pglite' - - '@libsql/client' - - '@libsql/client-wasm' - - '@neondatabase/serverless' - - '@op-engineering/op-sqlite' - - '@opentelemetry/api' - - '@planetscale/database' - - '@prisma/client' - - '@tidbcloud/serverless' - - '@types/better-sqlite3' - - '@types/pg' - - '@types/sql.js' - - '@upstash/redis' - - '@vercel/postgres' - - '@xata.io/client' - - better-sqlite3 - - bun-types - - expo-sqlite - - gel - - knex - - kysely - - mysql2 - - pg - - postgres - - prisma - - sql.js - - sqlite3 - - '@lunora/sql-store@1.0.0-alpha.38(@cloudflare/workers-types@4.20260702.1)(kysely@0.29.4)': - dependencies: - '@lunora/do': 1.0.0-alpha.41(@cloudflare/workers-types@4.20260702.1)(kysely@0.29.4) - '@lunora/errors': 1.0.0-alpha.7 - drizzle-orm: 0.45.2(@cloudflare/workers-types@4.20260702.1)(kysely@0.29.4) - transitivePeerDependencies: - - '@aws-sdk/client-rds-data' - - '@cloudflare/workers-types' - - '@electric-sql/pglite' - - '@libsql/client' - - '@libsql/client-wasm' - - '@neondatabase/serverless' - - '@op-engineering/op-sqlite' - - '@opentelemetry/api' - - '@planetscale/database' - - '@prisma/client' - - '@tidbcloud/serverless' - - '@types/better-sqlite3' - - '@types/pg' - - '@types/sql.js' - - '@upstash/redis' - - '@vercel/postgres' - - '@xata.io/client' - - better-sqlite3 - - bun-types - - expo-sqlite - - gel - - knex - - kysely - - mysql2 - - pg - - postgres - - prisma - - sql.js - - sqlite3 - - '@lunora/studio@1.0.0-alpha.58(@cloudflare/workers-types@4.20260702.1)(@tanstack/solid-query@5.101.4(solid-js@1.9.14))(@tanstack/svelte-query@6.1.38(svelte@5.56.7))(@tanstack/vue-query@5.101.4(vue@3.5.40(typescript@6.0.3)))(@types/react-dom@19.2.3(@types/react@19.2.17))(@types/react@19.2.17)(immer@11.1.15)(kysely@0.29.4)(react-dom@19.2.8(react@19.2.8))(react-is@18.3.1)(react@19.2.8)(redux@5.0.1)(solid-js@1.9.14)(svelte@5.56.7)(vue@3.5.40(typescript@6.0.3))': - dependencies: - '@base-ui/react': 1.6.0(@types/react@19.2.17)(react-dom@19.2.8(react@19.2.8))(react@19.2.8) - '@hugeicons/core-free-icons': 4.2.3 - '@hugeicons/react': 1.1.9(react@19.2.8) - '@lingui/core': 6.5.0 - '@lingui/message-utils': 6.5.0 - '@lunora/advisor': 1.0.0-alpha.33(@cloudflare/workers-types@4.20260702.1)(kysely@0.29.4) - '@lunora/bindings': 1.0.0-alpha.10 - '@lunora/client': 1.0.0-alpha.27(@tanstack/react-query@5.101.4(react@19.2.8))(@tanstack/solid-query@5.101.4(solid-js@1.9.14))(@tanstack/svelte-query@6.1.38(svelte@5.56.7))(@tanstack/vue-query@5.101.4(vue@3.5.40(typescript@6.0.3)))(react@19.2.8)(solid-js@1.9.14)(svelte@5.56.7)(vue@3.5.40(typescript@6.0.3)) - '@lunora/errors': 1.0.0-alpha.7 - '@lunora/react': 1.0.0-alpha.31(@tanstack/react-query@5.101.4(react@19.2.8))(@tanstack/solid-query@5.101.4(solid-js@1.9.14))(@tanstack/svelte-query@6.1.38(svelte@5.56.7))(@tanstack/vue-query@5.101.4(vue@3.5.40(typescript@6.0.3)))(react-dom@19.2.8(react@19.2.8))(react@19.2.8)(solid-js@1.9.14)(svelte@5.56.7)(vue@3.5.40(typescript@6.0.3)) - '@tanstack/react-query': 5.101.4(react@19.2.8) - '@tanstack/react-router': 1.170.18(react-dom@19.2.8(react@19.2.8))(react@19.2.8) - '@tanstack/react-table': 8.21.3(react-dom@19.2.8(react@19.2.8))(react@19.2.8) - '@tanstack/react-virtual': 3.14.8(react-dom@19.2.8(react@19.2.8))(react@19.2.8) - '@xyflow/react': 12.11.2(@types/react-dom@19.2.3(@types/react@19.2.17))(@types/react@19.2.17)(immer@11.1.15)(react-dom@19.2.8(react@19.2.8))(react@19.2.8) - class-variance-authority: 0.7.1 - clsx: 2.1.1 - html-to-image: 1.11.13 - motion: 12.42.2(react-dom@19.2.8(react@19.2.8))(react@19.2.8) - react: 19.2.8 - react-dom: 19.2.8(react@19.2.8) - recharts: 3.10.0(@types/react@19.2.17)(react-dom@19.2.8(react@19.2.8))(react-is@18.3.1)(react@19.2.8)(redux@5.0.1) - tailwind-merge: 3.6.0 - transitivePeerDependencies: - - '@aws-sdk/client-rds-data' - - '@cloudflare/workers-types' - - '@date-fns/tz' - - '@electric-sql/pglite' - - '@emotion/is-prop-valid' - - '@libsql/client' - - '@libsql/client-wasm' - - '@neondatabase/serverless' - - '@op-engineering/op-sqlite' - - '@opentelemetry/api' - - '@planetscale/database' - - '@prisma/client' - - '@tanstack/solid-query' - - '@tanstack/svelte-query' - - '@tanstack/vue-query' - - '@tidbcloud/serverless' - - '@types/better-sqlite3' - - '@types/pg' - - '@types/react' - - '@types/react-dom' - - '@types/sql.js' - - '@upstash/redis' - - '@vercel/postgres' - - '@xata.io/client' - - babel-plugin-macros - - better-sqlite3 - - bun-types - - date-fns - - expo-sqlite - - gel - - immer - - knex - - kysely - - mysql2 - - pg - - postgres - - prisma - - react-is - - redux - - solid-js - - sql.js - - sqlite3 - - supports-color - - svelte - - vue - - '@lunora/values@1.0.0-alpha.10': - dependencies: - '@lunora/errors': 1.0.0-alpha.7 - - '@lunora/vite@1.0.0-alpha.78(@ai-sdk/provider@4.0.3)(@cloudflare/workers-types@4.20260702.1)(@lunora/server@1.0.0-alpha.30(@cloudflare/workers-types@4.20260702.1)(kysely@0.29.4))(@lunora/studio@1.0.0-alpha.58(@cloudflare/workers-types@4.20260702.1)(@tanstack/solid-query@5.101.4(solid-js@1.9.14))(@tanstack/svelte-query@6.1.38(svelte@5.56.7))(@tanstack/vue-query@5.101.4(vue@3.5.40(typescript@6.0.3)))(@types/react-dom@19.2.3(@types/react@19.2.17))(@types/react@19.2.17)(immer@11.1.15)(kysely@0.29.4)(react-dom@19.2.8(react@19.2.8))(react-is@18.3.1)(react@19.2.8)(redux@5.0.1)(solid-js@1.9.14)(svelte@5.56.7)(vue@3.5.40(typescript@6.0.3)))(@lunora/values@1.0.0-alpha.10)(@types/node@24.13.3)(ai@7.0.31(zod@4.4.3))(asn1js@3.0.10)(kysely@0.29.4)(luxon@3.7.2)(react-dom@19.2.8(react@19.2.8))(react@19.2.8)(vite@8.1.5(@types/node@24.13.3)(esbuild@0.28.1)(jiti@2.7.0)(yaml@2.9.0))(wrangler@4.113.0(@cloudflare/workers-types@4.20260702.1))(zod@4.4.3)': - dependencies: - '@cloudflare/vite-plugin': 1.45.1(vite@8.1.5(@types/node@24.13.3)(esbuild@0.28.1)(jiti@2.7.0)(yaml@2.9.0))(wrangler@4.113.0(@cloudflare/workers-types@4.20260702.1)) - '@lunora/codegen': 1.0.0-alpha.52(@ai-sdk/provider@4.0.3)(@cloudflare/workers-types@4.20260702.1)(@types/node@24.13.3)(asn1js@3.0.10)(kysely@0.29.4)(luxon@3.7.2)(react-dom@19.2.8(react@19.2.8))(react@19.2.8)(zod@4.4.3) - '@lunora/config': 1.0.0-alpha.78(@ai-sdk/provider@4.0.3)(@cloudflare/workers-types@4.20260702.1)(@lunora/server@1.0.0-alpha.30(@cloudflare/workers-types@4.20260702.1)(kysely@0.29.4))(@lunora/studio@1.0.0-alpha.58(@cloudflare/workers-types@4.20260702.1)(@tanstack/solid-query@5.101.4(solid-js@1.9.14))(@tanstack/svelte-query@6.1.38(svelte@5.56.7))(@tanstack/vue-query@5.101.4(vue@3.5.40(typescript@6.0.3)))(@types/react-dom@19.2.3(@types/react@19.2.17))(@types/react@19.2.17)(immer@11.1.15)(kysely@0.29.4)(react-dom@19.2.8(react@19.2.8))(react-is@18.3.1)(react@19.2.8)(redux@5.0.1)(solid-js@1.9.14)(svelte@5.56.7)(vue@3.5.40(typescript@6.0.3)))(@lunora/values@1.0.0-alpha.10)(@types/node@24.13.3)(asn1js@3.0.10)(kysely@0.29.4)(luxon@3.7.2)(react-dom@19.2.8(react@19.2.8))(react@19.2.8)(zod@4.4.3) - '@lunora/errors': 1.0.0-alpha.7 - '@visulima/vite-overlay': 2.0.4(ai@7.0.31(zod@4.4.3))(vite@8.1.5(@types/node@24.13.3)(esbuild@0.28.1)(jiti@2.7.0)(yaml@2.9.0)) - jsonc-parser: 3.3.1 - ts-morph: 28.0.0 - vite: 8.1.5(@types/node@24.13.3)(esbuild@0.28.1)(jiti@2.7.0)(yaml@2.9.0) - optionalDependencies: - '@lunora/studio': 1.0.0-alpha.58(@cloudflare/workers-types@4.20260702.1)(@tanstack/solid-query@5.101.4(solid-js@1.9.14))(@tanstack/svelte-query@6.1.38(svelte@5.56.7))(@tanstack/vue-query@5.101.4(vue@3.5.40(typescript@6.0.3)))(@types/react-dom@19.2.3(@types/react@19.2.17))(@types/react@19.2.17)(immer@11.1.15)(kysely@0.29.4)(react-dom@19.2.8(react@19.2.8))(react-is@18.3.1)(react@19.2.8)(redux@5.0.1)(solid-js@1.9.14)(svelte@5.56.7)(vue@3.5.40(typescript@6.0.3)) - transitivePeerDependencies: - - '@ai-sdk/anthropic' - - '@ai-sdk/google' - - '@ai-sdk/openai' - - '@ai-sdk/provider' - - '@aws-sdk/client-rds-data' - - '@cfworker/json-schema' - - '@cloudflare/workers-types' - - '@electric-sql/pglite' - - '@libsql/client' - - '@libsql/client-wasm' - - '@lunora/server' - - '@lunora/values' - - '@neondatabase/serverless' - - '@op-engineering/op-sqlite' - - '@opentelemetry/api' - - '@planetscale/database' - - '@prisma/client' - - '@tidbcloud/serverless' - - '@touch4it/ical-timezones' - - '@types/better-sqlite3' - - '@types/luxon' - - '@types/mocha' - - '@types/node' - - '@types/pg' - - '@types/sql.js' - - '@upstash/redis' - - '@vercel/postgres' - - '@vue-email/render' - - '@xata.io/client' - - ai - - asn1js - - better-sqlite3 - - bufferutil - - bun-types - - dayjs - - expo-sqlite - - fast-xml-parser - - gel - - handlebars - - jsx-email - - juice - - knex - - kysely - - liquidjs - - luxon - - mjml - - moment - - moment-timezone - - mysql2 - - nodemailer - - pg - - pkijs - - postgres - - prisma - - react - - react-dom - - rrule - - sql.js - - sqlite3 - - supports-color - - unstorage - - utf-8-validate - - wrangler - - zod - - '@lunora/workflow@1.0.0-alpha.12': - dependencies: - '@lunora/errors': 1.0.0-alpha.7 - '@lunora/values': 1.0.0-alpha.10 - - '@messageformat/date-skeleton@1.1.0': {} - - '@messageformat/parser@5.1.1': - dependencies: - moo: 0.5.3 - - '@modelcontextprotocol/sdk@1.29.0(zod@4.4.3)': - dependencies: - '@hono/node-server': 1.19.14(hono@4.12.31) - ajv: 8.20.0 - ajv-formats: 3.0.1(ajv@8.20.0) - content-type: 1.0.5 - cors: 2.8.6 - cross-spawn: 7.0.6 - eventsource: 3.0.7 - eventsource-parser: 3.1.0 - express: 5.2.1 - express-rate-limit: 8.6.0(express@5.2.1) - hono: 4.12.31 - jose: 6.2.4 - json-schema-typed: 8.0.2 - pkce-challenge: 5.0.1 - raw-body: 3.0.2 - zod: 4.4.3 - zod-to-json-schema: 3.25.2(zod@4.4.3) - transitivePeerDependencies: - - supports-color - - '@napi-rs/wasm-runtime@1.1.6(@emnapi/core@1.11.1)(@emnapi/runtime@1.11.1)': - dependencies: - '@emnapi/core': 1.11.1 - '@emnapi/runtime': 1.11.1 - '@tybys/wasm-util': 0.10.3 - optional: true - - '@noble/ciphers@2.2.0': {} - - '@noble/hashes@2.2.0': {} - - '@openfeature/core@1.11.0': {} - - '@openfeature/server-sdk@1.22.0(@openfeature/core@1.11.0)': - dependencies: - '@openfeature/core': 1.11.0 - - '@opentelemetry/semantic-conventions@1.43.0': {} - - '@oxc-project/types@0.139.0': {} - - '@oxlint/binding-android-arm-eabi@1.75.0': - optional: true - - '@oxlint/binding-android-arm64@1.75.0': - optional: true - - '@oxlint/binding-darwin-arm64@1.75.0': - optional: true - - '@oxlint/binding-darwin-x64@1.75.0': - optional: true - - '@oxlint/binding-freebsd-x64@1.75.0': - optional: true - - '@oxlint/binding-linux-arm-gnueabihf@1.75.0': - optional: true - - '@oxlint/binding-linux-arm-musleabihf@1.75.0': - optional: true - - '@oxlint/binding-linux-arm64-gnu@1.75.0': - optional: true - - '@oxlint/binding-linux-arm64-musl@1.75.0': - optional: true - - '@oxlint/binding-linux-ppc64-gnu@1.75.0': - optional: true - - '@oxlint/binding-linux-riscv64-gnu@1.75.0': - optional: true - - '@oxlint/binding-linux-riscv64-musl@1.75.0': - optional: true - - '@oxlint/binding-linux-s390x-gnu@1.75.0': - optional: true - - '@oxlint/binding-linux-x64-gnu@1.75.0': - optional: true - - '@oxlint/binding-linux-x64-musl@1.75.0': - optional: true - - '@oxlint/binding-openharmony-arm64@1.75.0': - optional: true - - '@oxlint/binding-win32-arm64-msvc@1.75.0': - optional: true - - '@oxlint/binding-win32-ia32-msvc@1.75.0': - optional: true - - '@oxlint/binding-win32-x64-msvc@1.75.0': - optional: true - - '@peculiar/asn1-android@2.8.0': - dependencies: - '@peculiar/asn1-schema': 2.8.0 - asn1js: 3.0.10 - tslib: 2.8.1 - - '@peculiar/asn1-cms@2.8.0': - dependencies: - '@peculiar/asn1-schema': 2.8.0 - '@peculiar/asn1-x509': 2.8.0 - '@peculiar/asn1-x509-attr': 2.8.0 - asn1js: 3.0.10 - tslib: 2.8.1 - - '@peculiar/asn1-csr@2.8.0': - dependencies: - '@peculiar/asn1-schema': 2.8.0 - '@peculiar/asn1-x509': 2.8.0 - asn1js: 3.0.10 - tslib: 2.8.1 - - '@peculiar/asn1-ecc@2.8.0': - dependencies: - '@peculiar/asn1-schema': 2.8.0 - '@peculiar/asn1-x509': 2.8.0 - asn1js: 3.0.10 - tslib: 2.8.1 - - '@peculiar/asn1-pfx@2.8.0': - dependencies: - '@peculiar/asn1-cms': 2.8.0 - '@peculiar/asn1-pkcs8': 2.8.0 - '@peculiar/asn1-rsa': 2.8.0 - '@peculiar/asn1-schema': 2.8.0 - asn1js: 3.0.10 - tslib: 2.8.1 - - '@peculiar/asn1-pkcs8@2.8.0': - dependencies: - '@peculiar/asn1-schema': 2.8.0 - '@peculiar/asn1-x509': 2.8.0 - asn1js: 3.0.10 - tslib: 2.8.1 - - '@peculiar/asn1-pkcs9@2.8.0': - dependencies: - '@peculiar/asn1-cms': 2.8.0 - '@peculiar/asn1-pfx': 2.8.0 - '@peculiar/asn1-pkcs8': 2.8.0 - '@peculiar/asn1-schema': 2.8.0 - '@peculiar/asn1-x509': 2.8.0 - '@peculiar/asn1-x509-attr': 2.8.0 - asn1js: 3.0.10 - tslib: 2.8.1 - - '@peculiar/asn1-rsa@2.8.0': - dependencies: - '@peculiar/asn1-schema': 2.8.0 - '@peculiar/asn1-x509': 2.8.0 - asn1js: 3.0.10 - tslib: 2.8.1 - - '@peculiar/asn1-schema@2.8.0': - dependencies: - '@peculiar/utils': 2.0.3 - asn1js: 3.0.10 - tslib: 2.8.1 - - '@peculiar/asn1-x509-attr@2.8.0': - dependencies: - '@peculiar/asn1-schema': 2.8.0 - '@peculiar/asn1-x509': 2.8.0 - asn1js: 3.0.10 - tslib: 2.8.1 - - '@peculiar/asn1-x509@2.8.0': - dependencies: - '@peculiar/asn1-schema': 2.8.0 - '@peculiar/utils': 2.0.3 - asn1js: 3.0.10 - tslib: 2.8.1 - - '@peculiar/utils@2.0.3': - dependencies: - tslib: 2.8.1 - - '@peculiar/x509@1.14.3': - dependencies: - '@peculiar/asn1-cms': 2.8.0 - '@peculiar/asn1-csr': 2.8.0 - '@peculiar/asn1-ecc': 2.8.0 - '@peculiar/asn1-pkcs9': 2.8.0 - '@peculiar/asn1-rsa': 2.8.0 - '@peculiar/asn1-schema': 2.8.0 - '@peculiar/asn1-x509': 2.8.0 - pvtsutils: 1.3.6 - reflect-metadata: 0.2.2 - tslib: 2.8.1 - tsyringe: 4.10.0 - - '@poppinss/colors@4.1.6': - dependencies: - kleur: 4.1.5 - - '@poppinss/dumper@0.6.5': - dependencies: - '@poppinss/colors': 4.1.6 - '@sindresorhus/is': 7.2.0 - supports-color: 10.2.2 - - '@poppinss/exception@1.2.3': {} - - '@protobufjs/aspromise@1.1.2': {} - - '@protobufjs/base64@1.1.2': {} - - '@protobufjs/codegen@2.0.5': {} - - '@protobufjs/eventemitter@1.1.1': {} - - '@protobufjs/fetch@1.1.1': - dependencies: - '@protobufjs/aspromise': 1.1.2 - - '@protobufjs/float@1.0.2': {} - - '@protobufjs/path@1.1.2': {} - - '@protobufjs/pool@1.1.0': {} - - '@protobufjs/utf8@1.1.2': {} - - '@react-email/render@2.1.0(react-dom@19.2.8(react@19.2.8))(react@19.2.8)': - dependencies: - entities: 4.5.0 - html-to-text: 9.0.5 - html5parser: 3.0.0 - prettier: 3.9.6 - react: 19.2.8 - react-dom: 19.2.8(react@19.2.8) - - '@reduxjs/toolkit@2.12.0(react-redux@9.3.0(@types/react@19.2.17)(react@19.2.8)(redux@5.0.1))(react@19.2.8)': - dependencies: - '@standard-schema/spec': 1.1.0 - '@standard-schema/utils': 0.3.0 - immer: 11.1.15 - redux: 5.0.1 - redux-thunk: 3.1.0(redux@5.0.1) - reselect: 5.2.0 - optionalDependencies: - react: 19.2.8 - react-redux: 9.3.0(@types/react@19.2.17)(react@19.2.8)(redux@5.0.1) - - '@rolldown/binding-android-arm64@1.1.5': - optional: true - - '@rolldown/binding-darwin-arm64@1.1.5': - optional: true - - '@rolldown/binding-darwin-x64@1.1.5': - optional: true - - '@rolldown/binding-freebsd-x64@1.1.5': - optional: true - - '@rolldown/binding-linux-arm-gnueabihf@1.1.5': - optional: true - - '@rolldown/binding-linux-arm64-gnu@1.1.5': - optional: true - - '@rolldown/binding-linux-arm64-musl@1.1.5': - optional: true - - '@rolldown/binding-linux-ppc64-gnu@1.1.5': - optional: true - - '@rolldown/binding-linux-s390x-gnu@1.1.5': - optional: true - - '@rolldown/binding-linux-x64-gnu@1.1.5': - optional: true - - '@rolldown/binding-linux-x64-musl@1.1.5': - optional: true - - '@rolldown/binding-openharmony-arm64@1.1.5': - optional: true - - '@rolldown/binding-wasm32-wasi@1.1.5': - dependencies: - '@emnapi/core': 1.11.1 - '@emnapi/runtime': 1.11.1 - '@napi-rs/wasm-runtime': 1.1.6(@emnapi/core@1.11.1)(@emnapi/runtime@1.11.1) - optional: true - - '@rolldown/binding-win32-arm64-msvc@1.1.5': - optional: true - - '@rolldown/binding-win32-x64-msvc@1.1.5': - optional: true - - '@rolldown/pluginutils@1.0.1': {} - - '@selderee/plugin-htmlparser2@0.11.0': - dependencies: - domhandler: 5.0.3 - selderee: 0.11.0 - - '@selderee/plugin-htmlparser2@0.12.0(selderee@0.12.0)': - dependencies: - domelementtype: 2.3.0 - domhandler: 5.0.3 - selderee: 0.12.0 - - '@shikijs/cli@4.3.0': - dependencies: - '@shikijs/vscode-textmate': 10.0.2 - ansis: 4.3.1 - cac: 7.0.0 - shiki: 4.3.0 - - '@shikijs/core@4.3.0': - dependencies: - '@shikijs/primitive': 4.3.0 - '@shikijs/types': 4.3.0 - '@shikijs/vscode-textmate': 10.0.2 - '@types/hast': 3.0.5 - hast-util-to-html: 9.0.5 - - '@shikijs/core@4.3.1': - dependencies: - '@shikijs/primitive': 4.3.1 - '@shikijs/types': 4.3.1 - '@shikijs/vscode-textmate': 10.0.2 - '@types/hast': 3.0.5 - hast-util-to-html: 9.0.5 - - '@shikijs/engine-javascript@4.3.0': - dependencies: - '@shikijs/types': 4.3.0 - '@shikijs/vscode-textmate': 10.0.2 - oniguruma-to-es: 4.3.6 - - '@shikijs/engine-javascript@4.3.1': - dependencies: - '@shikijs/types': 4.3.1 - '@shikijs/vscode-textmate': 10.0.2 - oniguruma-to-es: 4.3.6 - - '@shikijs/engine-oniguruma@4.3.0': - dependencies: - '@shikijs/types': 4.3.0 - '@shikijs/vscode-textmate': 10.0.2 - - '@shikijs/engine-oniguruma@4.3.1': - dependencies: - '@shikijs/types': 4.3.1 - '@shikijs/vscode-textmate': 10.0.2 - - '@shikijs/langs@4.3.0': - dependencies: - '@shikijs/types': 4.3.0 - - '@shikijs/langs@4.3.1': - dependencies: - '@shikijs/types': 4.3.1 - - '@shikijs/primitive@4.3.0': - dependencies: - '@shikijs/types': 4.3.0 - '@shikijs/vscode-textmate': 10.0.2 - '@types/hast': 3.0.5 - - '@shikijs/primitive@4.3.1': - dependencies: - '@shikijs/types': 4.3.1 - '@shikijs/vscode-textmate': 10.0.2 - '@types/hast': 3.0.5 - - '@shikijs/themes@4.3.0': - dependencies: - '@shikijs/types': 4.3.0 - - '@shikijs/themes@4.3.1': - dependencies: - '@shikijs/types': 4.3.1 - - '@shikijs/types@4.3.0': - dependencies: - '@shikijs/vscode-textmate': 10.0.2 - '@types/hast': 3.0.5 - - '@shikijs/types@4.3.1': - dependencies: - '@shikijs/vscode-textmate': 10.0.2 - '@types/hast': 3.0.5 - - '@shikijs/vscode-textmate@10.0.2': {} - - '@simplewebauthn/browser@13.3.0': {} - - '@simplewebauthn/server@13.3.2': - dependencies: - '@hexagon/base64': 1.1.28 - '@levischuck/tiny-cbor': 0.2.11 - '@peculiar/asn1-android': 2.8.0 - '@peculiar/asn1-ecc': 2.8.0 - '@peculiar/asn1-rsa': 2.8.0 - '@peculiar/asn1-schema': 2.8.0 - '@peculiar/asn1-x509': 2.8.0 - '@peculiar/x509': 1.14.3 - - '@sinclair/typebox@0.27.12': {} - - '@sindresorhus/is@7.2.0': {} - - '@speed-highlight/core@1.2.17': {} - - '@standard-schema/spec@1.1.0': {} - - '@standard-schema/utils@0.3.0': {} - - '@sveltejs/acorn-typescript@1.0.11(acorn@8.17.0)': - dependencies: - acorn: 8.17.0 - - '@tanstack/db-ivm@0.1.18(typescript@6.0.3)': - dependencies: - fractional-indexing: 3.4.0 - sorted-btree: 1.8.1 - typescript: 6.0.3 - - '@tanstack/db@0.6.16(typescript@6.0.3)': - dependencies: - '@standard-schema/spec': 1.1.0 - '@tanstack/db-ivm': 0.1.18(typescript@6.0.3) - '@tanstack/pacer-lite': 0.2.2 - typescript: 6.0.3 - - '@tanstack/history@1.162.0': {} - - '@tanstack/match-sorter-utils@8.19.4': - dependencies: - remove-accents: 0.5.0 - - '@tanstack/offline-transactions@1.0.41(typescript@6.0.3)': - dependencies: - '@tanstack/db': 0.6.16(typescript@6.0.3) - transitivePeerDependencies: - - typescript - - '@tanstack/pacer-lite@0.2.2': {} - - '@tanstack/query-core@5.101.4': {} - - '@tanstack/react-db@0.1.94(react@19.2.8)(typescript@6.0.3)': - dependencies: - '@tanstack/db': 0.6.16(typescript@6.0.3) - react: 19.2.8 - use-sync-external-store: 1.6.0(react@19.2.8) - transitivePeerDependencies: - - typescript - - '@tanstack/react-query@5.101.4(react@19.2.8)': - dependencies: - '@tanstack/query-core': 5.101.4 - react: 19.2.8 - - '@tanstack/react-router@1.170.18(react-dom@19.2.8(react@19.2.8))(react@19.2.8)': - dependencies: - '@tanstack/history': 1.162.0 - '@tanstack/react-store': 0.9.3(react-dom@19.2.8(react@19.2.8))(react@19.2.8) - '@tanstack/router-core': 1.171.15 - isbot: 5.2.1 - react: 19.2.8 - react-dom: 19.2.8(react@19.2.8) - - '@tanstack/react-store@0.9.3(react-dom@19.2.8(react@19.2.8))(react@19.2.8)': - dependencies: - '@tanstack/store': 0.9.3 - react: 19.2.8 - react-dom: 19.2.8(react@19.2.8) - use-sync-external-store: 1.6.0(react@19.2.8) - - '@tanstack/react-table@8.21.3(react-dom@19.2.8(react@19.2.8))(react@19.2.8)': - dependencies: - '@tanstack/table-core': 8.21.3 - react: 19.2.8 - react-dom: 19.2.8(react@19.2.8) - - '@tanstack/react-virtual@3.14.8(react-dom@19.2.8(react@19.2.8))(react@19.2.8)': - dependencies: - '@tanstack/virtual-core': 3.17.6 - react: 19.2.8 - react-dom: 19.2.8(react@19.2.8) - - '@tanstack/router-core@1.171.15': - dependencies: - '@tanstack/history': 1.162.0 - cookie-es: 3.1.1 - seroval: 1.5.6 - seroval-plugins: 1.5.6(seroval@1.5.6) - - '@tanstack/solid-query@5.101.4(solid-js@1.9.14)': - dependencies: - '@tanstack/query-core': 5.101.4 - solid-js: 1.9.14 - - '@tanstack/store@0.9.3': {} - - '@tanstack/svelte-query@6.1.38(svelte@5.56.7)': - dependencies: - '@tanstack/query-core': 5.101.4 - svelte: 5.56.7 - - '@tanstack/table-core@8.21.3': {} - - '@tanstack/virtual-core@3.17.6': {} - - '@tanstack/vue-query@5.101.4(vue@3.5.40(typescript@6.0.3))': - dependencies: - '@tanstack/match-sorter-utils': 8.19.4 - '@tanstack/query-core': 5.101.4 - '@vue/devtools-api': 6.6.4 - vue: 3.5.40(typescript@6.0.3) - vue-demi: 0.14.10(vue@3.5.40(typescript@6.0.3)) - - '@ts-morph/common@0.29.0': - dependencies: - minimatch: 10.2.5 - path-browserify: 1.0.1 - tinyglobby: 0.2.17 - - '@tybys/wasm-util@0.10.3': - dependencies: - tslib: 2.8.1 - optional: true - - '@types/chai@5.2.3': - dependencies: - '@types/deep-eql': 4.0.2 - assertion-error: 2.0.1 - - '@types/d3-array@3.2.2': {} - - '@types/d3-color@3.1.3': {} - - '@types/d3-drag@3.0.7': - dependencies: - '@types/d3-selection': 3.0.11 - - '@types/d3-ease@3.0.2': {} - - '@types/d3-interpolate@3.0.4': - dependencies: - '@types/d3-color': 3.1.3 - - '@types/d3-path@3.1.1': {} - - '@types/d3-scale@4.0.9': - dependencies: - '@types/d3-time': 3.0.4 - - '@types/d3-selection@3.0.11': {} - - '@types/d3-shape@3.1.8': - dependencies: - '@types/d3-path': 3.1.1 - - '@types/d3-time@3.0.4': {} - - '@types/d3-timer@3.0.2': {} - - '@types/d3-transition@3.0.9': - dependencies: - '@types/d3-selection': 3.0.11 - - '@types/d3-zoom@3.0.8': - dependencies: - '@types/d3-interpolate': 3.0.4 - '@types/d3-selection': 3.0.11 - - '@types/deep-eql@4.0.2': {} - - '@types/estree@1.0.9': {} - - '@types/hast@3.0.5': - dependencies: - '@types/unist': 3.0.3 - - '@types/istanbul-lib-coverage@2.0.6': {} - - '@types/istanbul-lib-report@3.0.3': - dependencies: - '@types/istanbul-lib-coverage': 2.0.6 - - '@types/istanbul-reports@3.0.4': - dependencies: - '@types/istanbul-lib-report': 3.0.3 - - '@types/mdast@4.0.4': - dependencies: - '@types/unist': 3.0.3 - - '@types/node@24.13.3': - dependencies: - undici-types: 7.18.2 - - '@types/react-dom@19.2.3(@types/react@19.2.17)': - dependencies: - '@types/react': 19.2.17 - - '@types/react@19.2.17': - dependencies: - csstype: 3.2.3 - - '@types/trusted-types@2.0.7': {} - - '@types/unist@3.0.3': {} - - '@types/use-sync-external-store@0.0.6': {} - - '@types/yargs-parser@21.0.3': {} - - '@types/yargs@17.0.35': - dependencies: - '@types/yargs-parser': 21.0.3 - - '@ungap/structured-clone@1.3.3': {} - - '@vercel/oidc@3.2.0': {} - - '@visulima/ansi@4.0.0': {} - - '@visulima/cerebro@3.0.0(@bomb.sh/tab@0.0.19)(@visulima/pail@4.0.0(@visulima/redact@3.0.0)(express@5.2.1)(hono@4.12.31))': - dependencies: - '@visulima/colorize': 2.0.0 - '@visulima/tabular': 4.0.0 - fastest-levenshtein: 1.0.16 - optionalDependencies: - '@bomb.sh/tab': 0.0.19 - '@visulima/pail': 4.0.0(@visulima/redact@3.0.0)(express@5.2.1)(hono@4.12.31) - - '@visulima/colorize@2.0.0': - dependencies: - '@visulima/is-ansi-color-supported': 3.0.0 - - '@visulima/disposable-email-domains@1.0.1': {} - - '@visulima/email-provider-mx@1.0.0': {} - - '@visulima/email-verifier@1.0.1': - dependencies: - '@visulima/disposable-email-domains': 1.0.1 - '@visulima/email-provider-mx': 1.0.0 - '@visulima/free-email-domains': 1.0.0 - lru-cache: 11.5.1 - - '@visulima/email@2.1.1(@react-email/render@2.1.0(react-dom@19.2.8(react@19.2.8))(react@19.2.8))(@types/node@24.13.3)(asn1js@3.0.10)(luxon@3.7.2)': - dependencies: - html-to-text: 10.0.0 - ical-generator: 11.0.0(@types/node@24.13.3)(luxon@3.7.2) - lru-cache: 11.5.1 - mime: 4.1.0 - optionalDependencies: - '@react-email/render': 2.1.0(react-dom@19.2.8(react@19.2.8))(react@19.2.8) - asn1js: 3.0.10 - transitivePeerDependencies: - - '@touch4it/ical-timezones' - - '@types/luxon' - - '@types/mocha' - - '@types/node' - - dayjs - - luxon - - moment - - moment-timezone - - rrule - - '@visulima/error@6.0.0(ai@7.0.31(zod@4.4.3))': - optionalDependencies: - ai: 7.0.31(zod@4.4.3) - - '@visulima/find-ai-runner@1.0.0': {} - - '@visulima/free-email-domains@1.0.0': {} - - '@visulima/fs@5.0.4(json5@2.2.3)(jsonc-parser@3.3.1)(yaml@2.9.0)': - dependencies: - '@visulima/path': 3.0.0 - optionalDependencies: - json5: 2.2.3 - jsonc-parser: 3.3.1 - yaml: 2.9.0 - - '@visulima/interactive-manager@1.0.0': {} - - '@visulima/is-ansi-color-supported@3.0.0': {} - - '@visulima/package@5.0.4(jsonc-parser@3.3.1)': - dependencies: - '@antfu/install-pkg': 1.1.0 - '@visulima/fs': 5.0.4(json5@2.2.3)(jsonc-parser@3.3.1)(yaml@2.9.0) - '@visulima/path': 3.0.0 - json5: 2.2.3 - normalize-package-data: 9.0.0 - yaml: 2.9.0 - transitivePeerDependencies: - - ini - - jsonc-parser - - smol-toml - - '@visulima/pail@4.0.0(@visulima/redact@3.0.0)(express@5.2.1)(hono@4.12.31)': - dependencies: - '@visulima/colorize': 2.0.0 - '@visulima/interactive-manager': 1.0.0 - optionalDependencies: - '@visulima/redact': 3.0.0 - express: 5.2.1 - hono: 4.12.31 - - '@visulima/path@3.0.0': {} - - '@visulima/redact@3.0.0': - dependencies: - compromise: 14.16.0 - - '@visulima/spinner@1.0.0': - dependencies: - '@visulima/interactive-manager': 1.0.0 - - '@visulima/storage-client@1.0.0(@tanstack/react-query@5.101.4(react@19.2.8))(@tanstack/solid-query@5.101.4(solid-js@1.9.14))(@tanstack/svelte-query@6.1.38(svelte@5.56.7))(@tanstack/vue-query@5.101.4(vue@3.5.40(typescript@6.0.3)))(react@19.2.8)(solid-js@1.9.14)(svelte@5.56.7)(vue@3.5.40(typescript@6.0.3))': - dependencies: - '@tanstack/react-query': 5.101.4(react@19.2.8) - '@tanstack/solid-query': 5.101.4(solid-js@1.9.14) - '@tanstack/svelte-query': 6.1.38(svelte@5.56.7) - '@tanstack/vue-query': 5.101.4(vue@3.5.40(typescript@6.0.3)) - react: 19.2.8 - solid-js: 1.9.14 - svelte: 5.56.7 - vue: 3.5.40(typescript@6.0.3) - - '@visulima/string@3.0.0': {} - - '@visulima/tabular@4.0.0': {} - - '@visulima/tui-binding-darwin-arm64@1.0.4': - optional: true - - '@visulima/tui-binding-darwin-x64@1.0.4': - optional: true - - '@visulima/tui-binding-linux-arm64-gnu@1.0.4': - optional: true - - '@visulima/tui-binding-linux-arm64-musl@1.0.4': - optional: true - - '@visulima/tui-binding-linux-x64-gnu@1.0.4': - optional: true - - '@visulima/tui-binding-linux-x64-musl@1.0.4': - optional: true - - '@visulima/tui-binding-win32-arm64-msvc@1.0.4': - optional: true - - '@visulima/tui-binding-win32-x64-msvc@1.0.4': - optional: true - - '@visulima/tui@1.0.4(@shikijs/langs@4.3.1)(@shikijs/themes@4.3.1)(@visulima/tabular@4.0.0)(ai@7.0.31(zod@4.4.3))(cfonts@3.3.1)(react-reconciler@0.33.0(react@19.2.8))(react@19.2.8)(shiki@4.3.1)(ws@8.21.0)': - dependencies: - '@visulima/ansi': 4.0.0 - '@visulima/colorize': 2.0.0 - '@visulima/error': 6.0.0(ai@7.0.31(zod@4.4.3)) - '@visulima/spinner': 1.0.0 - '@visulima/string': 3.0.0 - cli-boxes: 4.0.1 - code-excerpt: 4.0.0 - is-in-ci: 2.0.0 - patch-console: 2.0.0 - react: 19.2.8 - react-reconciler: 0.33.0(react@19.2.8) - scheduler: 0.27.0 - signal-exit: 4.1.0 - terminal-size: 4.0.1 - tseep: 1.3.1 - yoga-layout: 3.2.1 - optionalDependencies: - '@shikijs/langs': 4.3.1 - '@shikijs/themes': 4.3.1 - '@visulima/tabular': 4.0.0 - '@visulima/tui-binding-darwin-arm64': 1.0.4 - '@visulima/tui-binding-darwin-x64': 1.0.4 - '@visulima/tui-binding-linux-arm64-gnu': 1.0.4 - '@visulima/tui-binding-linux-arm64-musl': 1.0.4 - '@visulima/tui-binding-linux-x64-gnu': 1.0.4 - '@visulima/tui-binding-linux-x64-musl': 1.0.4 - '@visulima/tui-binding-win32-arm64-msvc': 1.0.4 - '@visulima/tui-binding-win32-x64-msvc': 1.0.4 - cfonts: 3.3.1 - shiki: 4.3.1 - ws: 8.21.0 - transitivePeerDependencies: - - ai - - '@visulima/vite-overlay@2.0.4(ai@7.0.31(zod@4.4.3))(vite@8.1.5(@types/node@24.13.3)(esbuild@0.28.1)(jiti@2.7.0)(yaml@2.9.0))': - dependencies: - '@shikijs/cli': 4.3.0 - '@shikijs/langs': 4.3.1 - '@visulima/error': 6.0.0(ai@7.0.31(zod@4.4.3)) - fastest-levenshtein: 1.0.16 - shiki: 4.3.1 - vite: 8.1.5(@types/node@24.13.3)(esbuild@0.28.1)(jiti@2.7.0)(yaml@2.9.0) - transitivePeerDependencies: - - ai - - '@vitejs/plugin-react@6.0.4(vite@8.1.5(@types/node@24.13.3)(esbuild@0.28.1)(jiti@2.7.0)(yaml@2.9.0))': - dependencies: - '@rolldown/pluginutils': 1.0.1 - vite: 8.1.5(@types/node@24.13.3)(esbuild@0.28.1)(jiti@2.7.0)(yaml@2.9.0) - - '@vitest/expect@4.1.10': - dependencies: - '@standard-schema/spec': 1.1.0 - '@types/chai': 5.2.3 - '@vitest/spy': 4.1.10 - '@vitest/utils': 4.1.10 - chai: 6.2.2 - tinyrainbow: 3.1.0 - - '@vitest/mocker@4.1.10(vite@8.1.5(@types/node@24.13.3)(esbuild@0.28.1)(jiti@2.7.0)(yaml@2.9.0))': - dependencies: - '@vitest/spy': 4.1.10 - estree-walker: 3.0.3 - magic-string: 0.30.21 - optionalDependencies: - vite: 8.1.5(@types/node@24.13.3)(esbuild@0.28.1)(jiti@2.7.0)(yaml@2.9.0) - - '@vitest/pretty-format@4.1.10': - dependencies: - tinyrainbow: 3.1.0 - - '@vitest/runner@4.1.10': - dependencies: - '@vitest/utils': 4.1.10 - pathe: 2.0.3 - - '@vitest/snapshot@4.1.10': - dependencies: - '@vitest/pretty-format': 4.1.10 - '@vitest/utils': 4.1.10 - magic-string: 0.30.21 - pathe: 2.0.3 - - '@vitest/spy@4.1.10': {} - - '@vitest/utils@4.1.10': - dependencies: - '@vitest/pretty-format': 4.1.10 - convert-source-map: 2.0.0 - tinyrainbow: 3.1.0 - - '@vue/compiler-core@3.5.40': - dependencies: - '@babel/parser': 7.29.7 - '@vue/shared': 3.5.40 - entities: 7.0.1 - estree-walker: 2.0.2 - source-map-js: 1.2.1 - - '@vue/compiler-dom@3.5.40': - dependencies: - '@vue/compiler-core': 3.5.40 - '@vue/shared': 3.5.40 - - '@vue/compiler-sfc@3.5.40': - dependencies: - '@babel/parser': 7.29.7 - '@vue/compiler-core': 3.5.40 - '@vue/compiler-dom': 3.5.40 - '@vue/compiler-ssr': 3.5.40 - '@vue/shared': 3.5.40 - estree-walker: 2.0.2 - magic-string: 0.30.21 - postcss: 8.5.22 - source-map-js: 1.2.1 - - '@vue/compiler-ssr@3.5.40': - dependencies: - '@vue/compiler-dom': 3.5.40 - '@vue/shared': 3.5.40 - - '@vue/devtools-api@6.6.4': {} - - '@vue/reactivity@3.5.40': - dependencies: - '@vue/shared': 3.5.40 - - '@vue/runtime-core@3.5.40': - dependencies: - '@vue/reactivity': 3.5.40 - '@vue/shared': 3.5.40 - - '@vue/runtime-dom@3.5.40': - dependencies: - '@vue/reactivity': 3.5.40 - '@vue/runtime-core': 3.5.40 - '@vue/shared': 3.5.40 - csstype: 3.2.3 - - '@vue/server-renderer@3.5.40': - dependencies: - '@vue/compiler-ssr': 3.5.40 - '@vue/runtime-dom': 3.5.40 - '@vue/shared': 3.5.40 - - '@vue/shared@3.5.40': {} - - '@workflow/serde@4.1.0': {} - - '@xyflow/react@12.11.2(@types/react-dom@19.2.3(@types/react@19.2.17))(@types/react@19.2.17)(immer@11.1.15)(react-dom@19.2.8(react@19.2.8))(react@19.2.8)': - dependencies: - '@xyflow/system': 0.0.79 - classcat: 5.0.5 - react: 19.2.8 - react-dom: 19.2.8(react@19.2.8) - zustand: 4.5.7(@types/react@19.2.17)(immer@11.1.15)(react@19.2.8) - optionalDependencies: - '@types/react': 19.2.17 - '@types/react-dom': 19.2.3(@types/react@19.2.17) - transitivePeerDependencies: - - immer - - '@xyflow/system@0.0.79': - dependencies: - '@types/d3-drag': 3.0.7 - '@types/d3-interpolate': 3.0.4 - '@types/d3-selection': 3.0.11 - '@types/d3-transition': 3.0.9 - '@types/d3-zoom': 3.0.8 - d3-drag: 3.0.0 - d3-interpolate: 3.0.1 - d3-selection: 3.0.0 - d3-zoom: 3.0.0 - - accepts@2.0.0: - dependencies: - mime-types: 3.0.2 - negotiator: 1.0.0 - - acorn@8.17.0: {} - - ai@7.0.31(zod@4.4.3): - dependencies: - '@ai-sdk/gateway': 4.0.23(zod@4.4.3) - '@ai-sdk/provider': 4.0.3 - '@ai-sdk/provider-utils': 5.0.11(zod@4.4.3) - zod: 4.4.3 - - ajv-formats@3.0.1(ajv@8.20.0): - optionalDependencies: - ajv: 8.20.0 - - ajv@8.20.0: - dependencies: - fast-deep-equal: 3.1.3 - fast-uri: 3.1.4 - json-schema-traverse: 1.0.0 - require-from-string: 2.0.2 - - ansi-regex@5.0.1: {} - - ansi-styles@4.3.0: - dependencies: - color-convert: 2.0.1 - - ansi-styles@5.2.0: {} - - ansis@4.3.1: {} - - aria-query@5.3.1: {} - - asn1@0.2.6: - dependencies: - safer-buffer: 2.1.2 - - asn1js@3.0.10: - dependencies: - pvtsutils: 1.3.6 - pvutils: 1.1.5 - tslib: 2.8.1 - - assertion-error@2.0.1: {} - - axobject-query@4.1.0: {} - - balanced-match@4.0.4: {} - - base64-js@1.5.1: {} - - baseline-browser-mapping@2.11.1: {} - - bcrypt-pbkdf@1.0.2: - dependencies: - tweetnacl: 0.14.5 - - better-auth@1.6.24(@cloudflare/workers-types@4.20260702.1)(drizzle-orm@0.45.2(@cloudflare/workers-types@4.20260702.1)(kysely@0.29.4))(react-dom@19.2.8(react@19.2.8))(react@19.2.8)(solid-js@1.9.14)(svelte@5.56.7)(vitest@4.1.10(@types/node@24.13.3)(vite@8.1.5(@types/node@24.13.3)(esbuild@0.28.1)(jiti@2.7.0)(yaml@2.9.0)))(vue@3.5.40(typescript@6.0.3)): - dependencies: - '@better-auth/core': 1.6.24(@better-auth/utils@0.4.2)(@better-fetch/fetch@1.3.1)(@cloudflare/workers-types@4.20260702.1)(better-call@1.3.7(zod@4.4.3))(jose@6.2.4)(kysely@0.29.4)(nanostores@1.4.1) - '@better-auth/drizzle-adapter': 1.6.24(@better-auth/core@1.6.24(@better-auth/utils@0.4.2)(@better-fetch/fetch@1.3.1)(@cloudflare/workers-types@4.20260702.1)(better-call@1.3.7(zod@4.4.3))(jose@6.2.4)(kysely@0.29.4)(nanostores@1.4.1))(@better-auth/utils@0.4.2)(drizzle-orm@0.45.2(@cloudflare/workers-types@4.20260702.1)(kysely@0.29.4)) - '@better-auth/kysely-adapter': 1.6.24(@better-auth/core@1.6.24(@better-auth/utils@0.4.2)(@better-fetch/fetch@1.3.1)(@cloudflare/workers-types@4.20260702.1)(better-call@1.3.7(zod@4.4.3))(jose@6.2.4)(kysely@0.29.4)(nanostores@1.4.1))(@better-auth/utils@0.4.2)(kysely@0.29.4) - '@better-auth/memory-adapter': 1.6.24(@better-auth/core@1.6.24(@better-auth/utils@0.4.2)(@better-fetch/fetch@1.3.1)(@cloudflare/workers-types@4.20260702.1)(better-call@1.3.7(zod@4.4.3))(jose@6.2.4)(kysely@0.29.4)(nanostores@1.4.1))(@better-auth/utils@0.4.2) - '@better-auth/mongo-adapter': 1.6.24(@better-auth/core@1.6.24(@better-auth/utils@0.4.2)(@better-fetch/fetch@1.3.1)(@cloudflare/workers-types@4.20260702.1)(better-call@1.3.7(zod@4.4.3))(jose@6.2.4)(kysely@0.29.4)(nanostores@1.4.1))(@better-auth/utils@0.4.2) - '@better-auth/prisma-adapter': 1.6.24(@better-auth/core@1.6.24(@better-auth/utils@0.4.2)(@better-fetch/fetch@1.3.1)(@cloudflare/workers-types@4.20260702.1)(better-call@1.3.7(zod@4.4.3))(jose@6.2.4)(kysely@0.29.4)(nanostores@1.4.1))(@better-auth/utils@0.4.2) - '@better-auth/telemetry': 1.6.24(@better-auth/core@1.6.24(@better-auth/utils@0.4.2)(@better-fetch/fetch@1.3.1)(@cloudflare/workers-types@4.20260702.1)(better-call@1.3.7(zod@4.4.3))(jose@6.2.4)(kysely@0.29.4)(nanostores@1.4.1))(@better-auth/utils@0.4.2)(@better-fetch/fetch@1.3.1) - '@better-auth/utils': 0.4.2 - '@better-fetch/fetch': 1.3.1 - '@noble/ciphers': 2.2.0 - '@noble/hashes': 2.2.0 - better-call: 1.3.7(zod@4.4.3) - defu: 6.1.7 - jose: 6.2.4 - kysely: 0.29.4 - nanostores: 1.4.1 - zod: 4.4.3 - optionalDependencies: - drizzle-orm: 0.45.2(@cloudflare/workers-types@4.20260702.1)(kysely@0.29.4) - react: 19.2.8 - react-dom: 19.2.8(react@19.2.8) - solid-js: 1.9.14 - svelte: 5.56.7 - vitest: 4.1.10(@types/node@24.13.3)(vite@8.1.5(@types/node@24.13.3)(esbuild@0.28.1)(jiti@2.7.0)(yaml@2.9.0)) - vue: 3.5.40(typescript@6.0.3) - transitivePeerDependencies: - - '@cloudflare/workers-types' - - '@opentelemetry/api' - - better-call@1.3.7(zod@4.4.3): - dependencies: - '@better-auth/utils': 0.4.2 - '@better-fetch/fetch': 1.3.1 - rou3: 0.7.12 - set-cookie-parser: 3.1.2 - optionalDependencies: - zod: 4.4.3 - - bl@4.1.0: - dependencies: - buffer: 5.7.1 - inherits: 2.0.4 - readable-stream: 3.6.2 - - blake3-wasm@2.1.5: {} - - body-parser@2.3.0: - dependencies: - bytes: 3.1.2 - content-type: 2.0.0 - debug: 4.4.3 - http-errors: 2.0.1 - iconv-lite: 0.7.3 - on-finished: 2.4.1 - qs: 6.15.3 - raw-body: 3.0.2 - type-is: 2.1.0 - transitivePeerDependencies: - - supports-color - - brace-expansion@5.0.7: - dependencies: - balanced-match: 4.0.4 - - browserslist@4.28.7: - dependencies: - baseline-browser-mapping: 2.11.1 - caniuse-lite: 1.0.30001806 - electron-to-chromium: 1.5.395 - node-releases: 2.0.51 - update-browserslist-db: 1.2.3(browserslist@4.28.7) - - buffer@5.7.1: - dependencies: - base64-js: 1.5.1 - ieee754: 1.2.1 - - buildcheck@0.0.7: - optional: true - - bytes@3.1.2: {} - - cac@7.0.0: {} - - 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 - - camelcase@6.3.0: {} - - caniuse-lite@1.0.30001806: {} - - ccount@2.0.1: {} - - cfonts@3.3.1: - dependencies: - supports-color: 8.1.1 - window-size: 1.1.1 - - chai@6.2.2: {} - - chalk@4.1.2: - dependencies: - ansi-styles: 4.3.0 - supports-color: 7.2.0 - - character-entities-html4@2.1.0: {} - - character-entities-legacy@3.0.0: {} - - chownr@1.1.4: {} - - class-variance-authority@0.7.1: - dependencies: - clsx: 2.1.1 - - classcat@5.0.5: {} - - cli-boxes@4.0.1: {} - - cliui@8.0.1: - dependencies: - string-width: 4.2.3 - strip-ansi: 6.0.1 - wrap-ansi: 7.0.0 - - clsx@2.1.1: {} - - code-block-writer@13.0.3: {} - - code-excerpt@4.0.0: - dependencies: - convert-to-spaces: 2.0.1 - - color-convert@2.0.1: - dependencies: - color-name: 1.1.4 - - color-name@1.1.4: {} - - comma-separated-tokens@2.0.3: {} - - compromise@14.16.0: - dependencies: - efrt: 2.7.0 - grad-school: 0.0.5 - suffix-thumb: 5.0.2 - - content-disposition@1.1.0: {} - - content-type@1.0.5: {} - - content-type@2.0.0: {} - - convert-source-map@2.0.0: {} - - convert-to-spaces@2.0.1: {} - - cookie-es@3.1.1: {} - - 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 - - cpu-features@0.0.10: - dependencies: - buildcheck: 0.0.7 - nan: 2.28.0 - optional: true - - cron-parser@5.6.2: - dependencies: - luxon: 3.7.2 - - cross-spawn@7.0.6: - dependencies: - path-key: 3.1.1 - shebang-command: 2.0.0 - which: 2.0.2 - - csstype@3.2.3: {} - - d3-array@3.2.4: - dependencies: - internmap: 2.0.3 - - d3-color@3.1.0: {} - - d3-dispatch@3.0.1: {} - - d3-drag@3.0.0: - dependencies: - d3-dispatch: 3.0.1 - d3-selection: 3.0.0 - - d3-ease@3.0.1: {} - - d3-format@3.1.2: {} - - d3-interpolate@3.0.1: - dependencies: - d3-color: 3.1.0 - - d3-path@3.1.0: {} - - d3-scale@4.0.2: - dependencies: - d3-array: 3.2.4 - d3-format: 3.1.2 - d3-interpolate: 3.0.1 - d3-time: 3.1.0 - d3-time-format: 4.1.0 - - d3-selection@3.0.0: {} - - d3-shape@3.2.0: - dependencies: - d3-path: 3.1.0 - - d3-time-format@4.1.0: - dependencies: - d3-time: 3.1.0 - - d3-time@3.1.0: - dependencies: - d3-array: 3.2.4 - - d3-timer@3.0.1: {} - - d3-transition@3.0.1(d3-selection@3.0.0): - dependencies: - d3-color: 3.1.0 - d3-dispatch: 3.0.1 - d3-ease: 3.0.1 - d3-interpolate: 3.0.1 - d3-selection: 3.0.0 - d3-timer: 3.0.1 - - d3-zoom@3.0.0: - dependencies: - d3-dispatch: 3.0.1 - d3-drag: 3.0.0 - d3-interpolate: 3.0.1 - d3-selection: 3.0.0 - d3-transition: 3.0.1(d3-selection@3.0.0) - - debug@4.4.3: - dependencies: - ms: 2.1.3 - - decimal.js-light@2.5.1: {} - - deepmerge-ts@7.1.5: {} - - deepmerge@4.3.1: {} - - define-property@1.0.0: - dependencies: - is-descriptor: 1.0.4 - - defu@6.1.7: {} - - depd@2.0.0: {} - - dequal@2.0.3: {} - - detect-libc@2.1.2: {} - - devalue@5.8.2: {} - - devlop@1.1.0: - dependencies: - dequal: 2.0.3 - - docker-modem@5.0.7: - dependencies: - debug: 4.4.3 - readable-stream: 3.6.2 - split-ca: 1.0.1 - ssh2: 1.17.0 - transitivePeerDependencies: - - supports-color - - dockerode@5.0.1: - dependencies: - '@balena/dockerignore': 1.0.2 - '@grpc/grpc-js': 1.14.4 - '@grpc/proto-loader': 0.7.15 - docker-modem: 5.0.7 - protobufjs: 7.6.5 - tar-fs: 2.1.5 - transitivePeerDependencies: - - supports-color - - dom-serializer@2.0.0: - dependencies: - domelementtype: 2.3.0 - domhandler: 5.0.3 - entities: 4.5.0 - - domelementtype@2.3.0: {} - - domhandler@5.0.3: - dependencies: - domelementtype: 2.3.0 - - domutils@3.2.2: - dependencies: - dom-serializer: 2.0.0 - domelementtype: 2.3.0 - domhandler: 5.0.3 - - drizzle-orm@0.45.2(@cloudflare/workers-types@4.20260702.1)(kysely@0.29.4): - optionalDependencies: - '@cloudflare/workers-types': 4.20260702.1 - kysely: 0.29.4 - - 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: {} - - efrt@2.7.0: {} - - electron-to-chromium@1.5.395: {} - - emoji-regex@8.0.0: {} - - encodeurl@2.0.0: {} - - end-of-stream@1.4.5: - dependencies: - once: 1.4.0 - - entities@4.5.0: {} - - entities@7.0.1: {} - - error-stack-parser-es@1.0.5: {} - - es-define-property@1.0.1: {} - - es-errors@1.3.0: {} - - es-module-lexer@2.3.1: {} - - es-object-atoms@1.1.2: - dependencies: - es-errors: 1.3.0 - - es-toolkit@1.49.0: {} - - esbuild@0.28.1: - optionalDependencies: - '@esbuild/aix-ppc64': 0.28.1 - '@esbuild/android-arm': 0.28.1 - '@esbuild/android-arm64': 0.28.1 - '@esbuild/android-x64': 0.28.1 - '@esbuild/darwin-arm64': 0.28.1 - '@esbuild/darwin-x64': 0.28.1 - '@esbuild/freebsd-arm64': 0.28.1 - '@esbuild/freebsd-x64': 0.28.1 - '@esbuild/linux-arm': 0.28.1 - '@esbuild/linux-arm64': 0.28.1 - '@esbuild/linux-ia32': 0.28.1 - '@esbuild/linux-loong64': 0.28.1 - '@esbuild/linux-mips64el': 0.28.1 - '@esbuild/linux-ppc64': 0.28.1 - '@esbuild/linux-riscv64': 0.28.1 - '@esbuild/linux-s390x': 0.28.1 - '@esbuild/linux-x64': 0.28.1 - '@esbuild/netbsd-arm64': 0.28.1 - '@esbuild/netbsd-x64': 0.28.1 - '@esbuild/openbsd-arm64': 0.28.1 - '@esbuild/openbsd-x64': 0.28.1 - '@esbuild/openharmony-arm64': 0.28.1 - '@esbuild/sunos-x64': 0.28.1 - '@esbuild/win32-arm64': 0.28.1 - '@esbuild/win32-ia32': 0.28.1 - '@esbuild/win32-x64': 0.28.1 - - escalade@3.2.0: {} - - escape-html@1.0.3: {} - - esm-env@1.2.2: {} - - esrap@2.3.0: - dependencies: - '@jridgewell/sourcemap-codec': 1.5.5 - - estree-walker@2.0.2: {} - - estree-walker@3.0.3: - dependencies: - '@types/estree': 1.0.9 - - etag@1.8.1: {} - - eventemitter3@5.0.4: {} - - eventsource-parser@3.1.0: {} - - eventsource@3.0.7: - dependencies: - eventsource-parser: 3.1.0 - - expect-type@1.4.0: {} - - express-rate-limit@8.6.0(express@5.2.1): - dependencies: - debug: 4.4.3 - express: 5.2.1 - ip-address: 10.2.0 - transitivePeerDependencies: - - supports-color - - express@5.2.1: - dependencies: - accepts: 2.0.0 - body-parser: 2.3.0 - content-disposition: 1.1.0 - content-type: 1.0.5 - cookie: 0.7.2 - cookie-signature: 1.2.2 - debug: 4.4.3 - depd: 2.0.0 - encodeurl: 2.0.0 - 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.1 - once: 1.4.0 - parseurl: 1.3.3 - proxy-addr: 2.0.7 - qs: 6.15.3 - range-parser: 1.3.0 - 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 - - fast-deep-equal@3.1.3: {} - - fast-uri@3.1.4: {} - - fastest-levenshtein@1.0.16: {} - - fdir@6.5.0(picomatch@4.0.5): - optionalDependencies: - picomatch: 4.0.5 - - finalhandler@2.1.1: - dependencies: - debug: 4.4.3 - encodeurl: 2.0.0 - escape-html: 1.0.3 - on-finished: 2.4.1 - parseurl: 1.3.3 - statuses: 2.0.2 - transitivePeerDependencies: - - supports-color - - forwarded@0.2.0: {} - - fractional-indexing@3.4.0: {} - - framer-motion@12.42.2(react-dom@19.2.8(react@19.2.8))(react@19.2.8): - dependencies: - motion-dom: 12.42.2 - motion-utils: 12.39.0 - tslib: 2.8.1 - optionalDependencies: - react: 19.2.8 - react-dom: 19.2.8(react@19.2.8) - - fresh@2.0.0: {} - - fs-constants@1.0.0: {} - - fsevents@2.3.3: - optional: true - - function-bind@1.1.2: {} - - gensync@1.0.0-beta.2: {} - - get-caller-file@2.0.5: {} - - 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-proto@1.0.1: - dependencies: - dunder-proto: 1.0.1 - es-object-atoms: 1.1.2 - - giget@3.3.0: {} - - gopd@1.2.0: {} - - grad-school@0.0.5: {} - - has-flag@4.0.0: {} - - has-symbols@1.1.0: {} - - hasown@2.0.4: - dependencies: - function-bind: 1.1.2 - - hast-util-to-html@9.0.5: - dependencies: - '@types/hast': 3.0.5 - '@types/unist': 3.0.3 - ccount: 2.0.1 - comma-separated-tokens: 2.0.3 - hast-util-whitespace: 3.0.0 - html-void-elements: 3.0.0 - mdast-util-to-hast: 13.2.1 - property-information: 7.2.0 - space-separated-tokens: 2.0.2 - stringify-entities: 4.0.4 - zwitch: 2.0.4 - - hast-util-whitespace@3.0.0: - dependencies: - '@types/hast': 3.0.5 - - hono@4.12.31: {} - - hosted-git-info@10.1.1: - dependencies: - lru-cache: 11.5.2 - - html-to-image@1.11.13: {} - - html-to-text@10.0.0: - dependencies: - '@selderee/plugin-htmlparser2': 0.12.0(selderee@0.12.0) - deepmerge-ts: 7.1.5 - dom-serializer: 2.0.0 - htmlparser2: 10.1.0 - selderee: 0.12.0 - - html-to-text@9.0.5: - dependencies: - '@selderee/plugin-htmlparser2': 0.11.0 - deepmerge: 4.3.1 - dom-serializer: 2.0.0 - htmlparser2: 8.0.2 - selderee: 0.11.0 - - html-void-elements@3.0.0: {} - - html5parser@3.0.0: {} - - htmlparser2@10.1.0: - dependencies: - domelementtype: 2.3.0 - domhandler: 5.0.3 - domutils: 3.2.2 - entities: 7.0.1 - - htmlparser2@8.0.2: - dependencies: - domelementtype: 2.3.0 - domhandler: 5.0.3 - domutils: 3.2.2 - entities: 4.5.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 - - ical-generator@11.0.0(@types/node@24.13.3)(luxon@3.7.2): - optionalDependencies: - '@types/node': 24.13.3 - luxon: 3.7.2 - - iconv-lite@0.7.3: - dependencies: - safer-buffer: 2.1.2 - - ieee754@1.2.1: {} - - immer@11.1.15: {} - - inherits@2.0.4: {} - - internmap@2.0.3: {} - - ip-address@10.2.0: {} - - ipaddr.js@1.9.1: {} - - is-accessor-descriptor@1.0.2: - dependencies: - hasown: 2.0.4 - - is-buffer@1.1.6: {} - - is-data-descriptor@1.0.1: - dependencies: - hasown: 2.0.4 - - is-descriptor@1.0.4: - dependencies: - is-accessor-descriptor: 1.0.2 - is-data-descriptor: 1.0.1 - - is-fullwidth-code-point@3.0.0: {} - - is-in-ci@2.0.0: {} - - is-number@3.0.0: - dependencies: - kind-of: 3.2.2 - - is-promise@4.0.0: {} - - is-reference@3.0.3: - dependencies: - '@types/estree': 1.0.9 - - isbot@5.2.1: {} - - isexe@2.0.0: {} - - jest-get-type@29.6.3: {} - - jest-validate@29.7.0: - dependencies: - '@jest/types': 29.6.3 - camelcase: 6.3.0 - chalk: 4.1.2 - jest-get-type: 29.6.3 - leven: 3.1.0 - pretty-format: 29.7.0 - - jiti@2.7.0: {} - - jose@6.2.4: {} - - js-sha256@0.10.1: {} - - js-tokens@4.0.0: {} - - jsesc@3.1.0: {} - - json-schema-traverse@1.0.0: {} - - json-schema-typed@8.0.2: {} - - json-schema@0.4.0: {} - - json5@2.2.3: {} - - jsonc-parser@3.3.1: {} - - kind-of@3.2.2: - dependencies: - is-buffer: 1.1.6 - - kleur@4.1.5: {} - - kysely@0.29.4: {} - - leac@0.6.0: {} - - leac@0.7.0: {} - - leven@3.1.0: {} - - lightningcss-android-arm64@1.33.0: - optional: true - - lightningcss-darwin-arm64@1.33.0: - optional: true - - lightningcss-darwin-x64@1.33.0: - optional: true - - lightningcss-freebsd-x64@1.33.0: - optional: true - - lightningcss-linux-arm-gnueabihf@1.33.0: - optional: true - - lightningcss-linux-arm64-gnu@1.33.0: - optional: true - - lightningcss-linux-arm64-musl@1.33.0: - optional: true - - lightningcss-linux-x64-gnu@1.33.0: - optional: true - - lightningcss-linux-x64-musl@1.33.0: - optional: true - - lightningcss-win32-arm64-msvc@1.33.0: - optional: true - - lightningcss-win32-x64-msvc@1.33.0: - optional: true - - lightningcss@1.33.0: - dependencies: - detect-libc: 2.1.2 - optionalDependencies: - lightningcss-android-arm64: 1.33.0 - lightningcss-darwin-arm64: 1.33.0 - lightningcss-darwin-x64: 1.33.0 - lightningcss-freebsd-x64: 1.33.0 - lightningcss-linux-arm-gnueabihf: 1.33.0 - lightningcss-linux-arm64-gnu: 1.33.0 - lightningcss-linux-arm64-musl: 1.33.0 - lightningcss-linux-x64-gnu: 1.33.0 - lightningcss-linux-x64-musl: 1.33.0 - lightningcss-win32-arm64-msvc: 1.33.0 - lightningcss-win32-x64-msvc: 1.33.0 - - lilconfig@3.1.3: {} - - locate-character@3.0.0: {} - - lodash.camelcase@4.3.0: {} - - long@5.3.2: {} - - lru-cache@11.5.1: {} - - lru-cache@11.5.2: {} - - lru-cache@5.1.1: - dependencies: - yallist: 3.1.1 - - lunorash@1.0.0-alpha.98(b1170eeda25a14142d7dd6aa1a0018b2): - dependencies: - '@lunora/cli': 1.0.0-alpha.97(@ai-sdk/provider@4.0.3)(@cloudflare/workers-types@4.20260702.1)(@lunora/server@1.0.0-alpha.30(@cloudflare/workers-types@4.20260702.1)(kysely@0.29.4))(@lunora/studio@1.0.0-alpha.58(@cloudflare/workers-types@4.20260702.1)(@tanstack/solid-query@5.101.4(solid-js@1.9.14))(@tanstack/svelte-query@6.1.38(svelte@5.56.7))(@tanstack/vue-query@5.101.4(vue@3.5.40(typescript@6.0.3)))(@types/react-dom@19.2.3(@types/react@19.2.17))(@types/react@19.2.17)(immer@11.1.15)(kysely@0.29.4)(react-dom@19.2.8(react@19.2.8))(react-is@18.3.1)(react@19.2.8)(redux@5.0.1)(solid-js@1.9.14)(svelte@5.56.7)(vue@3.5.40(typescript@6.0.3)))(@lunora/values@1.0.0-alpha.10)(@shikijs/langs@4.3.1)(@shikijs/themes@4.3.1)(@types/node@24.13.3)(@visulima/redact@3.0.0)(@visulima/tabular@4.0.0)(ai@7.0.31(zod@4.4.3))(asn1js@3.0.10)(express@5.2.1)(hono@4.12.31)(json5@2.2.3)(kysely@0.29.4)(luxon@3.7.2)(react-dom@19.2.8(react@19.2.8))(shiki@4.3.1)(ws@8.21.0)(yaml@2.9.0)(zod@4.4.3) - '@lunora/client': 1.0.0-alpha.27(@tanstack/react-query@5.101.4(react@19.2.8))(@tanstack/solid-query@5.101.4(solid-js@1.9.14))(@tanstack/svelte-query@6.1.38(svelte@5.56.7))(@tanstack/vue-query@5.101.4(vue@3.5.40(typescript@6.0.3)))(react@19.2.8)(solid-js@1.9.14)(svelte@5.56.7)(vue@3.5.40(typescript@6.0.3)) - '@lunora/do': 1.0.0-alpha.41(@cloudflare/workers-types@4.20260702.1)(kysely@0.29.4) - '@lunora/errors': 1.0.0-alpha.7 - '@lunora/flags': 1.0.0-alpha.15(@openfeature/core@1.11.0) - '@lunora/ratelimit': 1.0.0-alpha.9 - '@lunora/runtime': 1.0.0-alpha.35 - '@lunora/server': 1.0.0-alpha.30(@cloudflare/workers-types@4.20260702.1)(kysely@0.29.4) - '@lunora/values': 1.0.0-alpha.10 - transitivePeerDependencies: - - '@ai-sdk/anthropic' - - '@ai-sdk/google' - - '@ai-sdk/openai' - - '@ai-sdk/provider' - - '@aws-sdk/client-rds-data' - - '@cfworker/json-schema' - - '@cloudflare/flagship' - - '@cloudflare/workers-types' - - '@electric-sql/pglite' - - '@libsql/client' - - '@libsql/client-wasm' - - '@lunora/studio' - - '@neondatabase/serverless' - - '@op-engineering/op-sqlite' - - '@openfeature/core' - - '@openfeature/web-sdk' - - '@opentelemetry/api' - - '@planetscale/database' - - '@prisma/client' - - '@shikijs/langs' - - '@shikijs/themes' - - '@sveltejs/kit' - - '@tanstack/react-query' - - '@tanstack/solid-query' - - '@tanstack/svelte-query' - - '@tanstack/vue-query' - - '@tidbcloud/serverless' - - '@touch4it/ical-timezones' - - '@types/better-sqlite3' - - '@types/luxon' - - '@types/mocha' - - '@types/node' - - '@types/pg' - - '@types/sql.js' - - '@upstash/redis' - - '@vercel/postgres' - - '@visulima/boxen' - - '@visulima/find-cache-dir' - - '@visulima/redact' - - '@visulima/tabular' - - '@vue-email/render' - - '@xata.io/client' - - ai - - asn1js - - better-sqlite3 - - bun-types - - cac - - citty - - commander - - dayjs - - diff - - elysia - - expo-sqlite - - express - - fast-xml-parser - - fastify - - gel - - github-slugger - - handlebars - - hono - - ini - - json5 - - jsx-email - - juice - - knex - - kysely - - liquidjs - - luxon - - marked - - mjml - - moment - - moment-timezone - - mysql2 - - next - - nodemailer - - pg - - pkijs - - postgres - - prisma - - react - - react-devtools-core - - react-dom - - rotating-file-stream - - rrule - - shiki - - smol-toml - - solid-js - - sql.js - - sqlite3 - - supports-color - - svelte - - unstorage - - vue - - ws - - yaml - - zod - - luxon@3.7.2: {} - - magic-string@0.30.21: - dependencies: - '@jridgewell/sourcemap-codec': 1.5.5 - - magic-string@1.0.0: - dependencies: - '@jridgewell/sourcemap-codec': 1.5.5 - - math-intrinsics@1.1.0: {} - - mdast-util-to-hast@13.2.1: - dependencies: - '@types/hast': 3.0.5 - '@types/mdast': 4.0.4 - '@ungap/structured-clone': 1.3.3 - devlop: 1.1.0 - micromark-util-sanitize-uri: 2.0.1 - trim-lines: 3.0.1 - unist-util-position: 5.0.0 - unist-util-visit: 5.1.0 - vfile: 6.0.3 - - media-typer@1.1.0: {} - - merge-descriptors@2.0.0: {} - - micromark-util-character@2.1.1: - dependencies: - micromark-util-symbol: 2.0.1 - micromark-util-types: 2.0.2 - - micromark-util-encode@2.0.1: {} - - micromark-util-sanitize-uri@2.0.1: - dependencies: - micromark-util-character: 2.1.1 - micromark-util-encode: 2.0.1 - micromark-util-symbol: 2.0.1 - - micromark-util-symbol@2.0.1: {} - - micromark-util-types@2.0.2: {} - - mime-db@1.54.0: {} - - mime-types@3.0.2: - dependencies: - mime-db: 1.54.0 - - mime@4.1.0: {} - - miniflare@4.20260714.0: - dependencies: - '@cspotcode/source-map-support': 0.8.1 - sharp: 0.34.5 - undici: 7.28.0 - workerd: 1.20260714.1 - ws: 8.21.0 - youch: 4.1.0-beta.10 - transitivePeerDependencies: - - bufferutil - - utf-8-validate - - miniflare@4.20260721.0: - dependencies: - '@cspotcode/source-map-support': 0.8.1 - sharp: 0.34.5 - undici: 7.28.0 - workerd: 1.20260721.1 - ws: 8.21.0 - youch: 4.1.0-beta.10 - transitivePeerDependencies: - - bufferutil - - utf-8-validate - - minimatch@10.2.5: - dependencies: - brace-expansion: 5.0.7 - - mkdirp-classic@0.5.3: {} - - moo@0.5.3: {} - - motion-dom@12.42.2: - dependencies: - motion-utils: 12.39.0 - - motion-utils@12.39.0: {} - - motion@12.42.2(react-dom@19.2.8(react@19.2.8))(react@19.2.8): - dependencies: - framer-motion: 12.42.2(react-dom@19.2.8(react@19.2.8))(react@19.2.8) - tslib: 2.8.1 - optionalDependencies: - react: 19.2.8 - react-dom: 19.2.8(react@19.2.8) - - ms@2.1.3: {} - - nan@2.28.0: - optional: true - - nanoid@3.3.16: {} - - nanostores@1.4.1: {} - - negotiator@1.0.0: {} - - node-releases@2.0.51: {} - - normalize-package-data@9.0.0: - dependencies: - hosted-git-info: 10.1.1 - semver: 7.8.5 - validate-npm-package-license: 3.0.4 - - normalize-path@3.0.0: {} - - object-assign@4.1.1: {} - - object-inspect@1.13.4: {} - - obug@2.1.4: {} - - on-finished@2.4.1: - dependencies: - ee-first: 1.1.1 - - once@1.4.0: - dependencies: - wrappy: 1.0.2 - - oniguruma-parser@0.12.2: {} - - oniguruma-to-es@4.3.6: - dependencies: - oniguruma-parser: 0.12.2 - regex: 6.1.0 - regex-recursion: 6.0.2 - - oxlint@1.75.0: - optionalDependencies: - '@oxlint/binding-android-arm-eabi': 1.75.0 - '@oxlint/binding-android-arm64': 1.75.0 - '@oxlint/binding-darwin-arm64': 1.75.0 - '@oxlint/binding-darwin-x64': 1.75.0 - '@oxlint/binding-freebsd-x64': 1.75.0 - '@oxlint/binding-linux-arm-gnueabihf': 1.75.0 - '@oxlint/binding-linux-arm-musleabihf': 1.75.0 - '@oxlint/binding-linux-arm64-gnu': 1.75.0 - '@oxlint/binding-linux-arm64-musl': 1.75.0 - '@oxlint/binding-linux-ppc64-gnu': 1.75.0 - '@oxlint/binding-linux-riscv64-gnu': 1.75.0 - '@oxlint/binding-linux-riscv64-musl': 1.75.0 - '@oxlint/binding-linux-s390x-gnu': 1.75.0 - '@oxlint/binding-linux-x64-gnu': 1.75.0 - '@oxlint/binding-linux-x64-musl': 1.75.0 - '@oxlint/binding-openharmony-arm64': 1.75.0 - '@oxlint/binding-win32-arm64-msvc': 1.75.0 - '@oxlint/binding-win32-ia32-msvc': 1.75.0 - '@oxlint/binding-win32-x64-msvc': 1.75.0 - - package-manager-detector@1.8.0: {} - - parseley@0.12.1: - dependencies: - leac: 0.6.0 - peberminta: 0.9.0 - - parseley@0.13.1: - dependencies: - leac: 0.7.0 - peberminta: 0.10.0 - - parseurl@1.3.3: {} - - patch-console@2.0.0: {} - - path-browserify@1.0.1: {} - - path-key@3.1.1: {} - - path-to-regexp@6.3.0: {} - - path-to-regexp@8.4.2: {} - - pathe@2.0.3: {} - - peberminta@0.10.0: {} - - peberminta@0.9.0: {} - - picocolors@1.1.1: {} - - picomatch@4.0.5: {} - - pkce-challenge@5.0.1: {} - - postal-mime@2.7.5: {} - - postcss@8.5.22: - dependencies: - nanoid: 3.3.16 - picocolors: 1.1.1 - source-map-js: 1.2.1 - - prettier@3.9.6: {} - - pretty-format@29.7.0: - dependencies: - '@jest/schemas': 29.6.3 - ansi-styles: 5.2.0 - react-is: 18.3.1 - - property-information@7.2.0: {} - - protobufjs@7.6.5: - dependencies: - '@protobufjs/aspromise': 1.1.2 - '@protobufjs/base64': 1.1.2 - '@protobufjs/codegen': 2.0.5 - '@protobufjs/eventemitter': 1.1.1 - '@protobufjs/fetch': 1.1.1 - '@protobufjs/float': 1.0.2 - '@protobufjs/path': 1.1.2 - '@protobufjs/pool': 1.1.0 - '@protobufjs/utf8': 1.1.2 - '@types/node': 24.13.3 - long: 5.3.2 - - proxy-addr@2.0.7: - dependencies: - forwarded: 0.2.0 - ipaddr.js: 1.9.1 - - pump@3.0.4: - dependencies: - end-of-stream: 1.4.5 - once: 1.4.0 - - pvtsutils@1.3.6: - dependencies: - tslib: 2.8.1 - - pvutils@1.1.5: {} - - qs@6.15.3: - dependencies: - es-define-property: 1.0.1 - side-channel: 1.1.1 - - range-parser@1.3.0: {} - - 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-dom@19.2.8(react@19.2.8): - dependencies: - react: 19.2.8 - scheduler: 0.27.0 - - react-is@18.3.1: {} - - react-reconciler@0.33.0(react@19.2.8): - dependencies: - react: 19.2.8 - scheduler: 0.27.0 - - react-redux@9.3.0(@types/react@19.2.17)(react@19.2.8)(redux@5.0.1): - dependencies: - '@types/use-sync-external-store': 0.0.6 - react: 19.2.8 - use-sync-external-store: 1.6.0(react@19.2.8) - optionalDependencies: - '@types/react': 19.2.17 - redux: 5.0.1 - - react@19.2.8: {} - - readable-stream@3.6.2: - dependencies: - inherits: 2.0.4 - string_decoder: 1.3.0 - util-deprecate: 1.0.2 - - recharts@3.10.0(@types/react@19.2.17)(react-dom@19.2.8(react@19.2.8))(react-is@18.3.1)(react@19.2.8)(redux@5.0.1): - dependencies: - '@reduxjs/toolkit': 2.12.0(react-redux@9.3.0(@types/react@19.2.17)(react@19.2.8)(redux@5.0.1))(react@19.2.8) - clsx: 2.1.1 - decimal.js-light: 2.5.1 - es-toolkit: 1.49.0 - eventemitter3: 5.0.4 - immer: 11.1.15 - react: 19.2.8 - react-dom: 19.2.8(react@19.2.8) - react-is: 18.3.1 - react-redux: 9.3.0(@types/react@19.2.17)(react@19.2.8)(redux@5.0.1) - reselect: 5.2.0 - tiny-invariant: 1.3.3 - use-sync-external-store: 1.6.0(react@19.2.8) - victory-vendor: 37.3.6 - transitivePeerDependencies: - - '@types/react' - - redux - - redux-thunk@3.1.0(redux@5.0.1): - dependencies: - redux: 5.0.1 - - redux@5.0.1: {} - - reflect-metadata@0.2.2: {} - - regex-recursion@6.0.2: - dependencies: - regex-utilities: 2.3.0 - - regex-utilities@2.3.0: {} - - regex@6.1.0: - dependencies: - regex-utilities: 2.3.0 - - remove-accents@0.5.0: {} - - require-directory@2.1.1: {} - - require-from-string@2.0.2: {} - - reselect@5.2.0: {} - - rolldown@1.1.5: - dependencies: - '@oxc-project/types': 0.139.0 - '@rolldown/pluginutils': 1.0.1 - optionalDependencies: - '@rolldown/binding-android-arm64': 1.1.5 - '@rolldown/binding-darwin-arm64': 1.1.5 - '@rolldown/binding-darwin-x64': 1.1.5 - '@rolldown/binding-freebsd-x64': 1.1.5 - '@rolldown/binding-linux-arm-gnueabihf': 1.1.5 - '@rolldown/binding-linux-arm64-gnu': 1.1.5 - '@rolldown/binding-linux-arm64-musl': 1.1.5 - '@rolldown/binding-linux-ppc64-gnu': 1.1.5 - '@rolldown/binding-linux-s390x-gnu': 1.1.5 - '@rolldown/binding-linux-x64-gnu': 1.1.5 - '@rolldown/binding-linux-x64-musl': 1.1.5 - '@rolldown/binding-openharmony-arm64': 1.1.5 - '@rolldown/binding-wasm32-wasi': 1.1.5 - '@rolldown/binding-win32-arm64-msvc': 1.1.5 - '@rolldown/binding-win32-x64-msvc': 1.1.5 - - rou3@0.7.12: {} - - 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 - - safe-buffer@5.2.1: {} - - safer-buffer@2.1.2: {} - - scheduler@0.27.0: {} - - selderee@0.11.0: - dependencies: - parseley: 0.12.1 - - selderee@0.12.0: - dependencies: - parseley: 0.13.1 - - semver@6.3.1: {} - - semver@7.8.5: {} - - send@1.2.1: - dependencies: - debug: 4.4.3 - encodeurl: 2.0.0 - 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.1 - range-parser: 1.3.0 - statuses: 2.0.2 - transitivePeerDependencies: - - supports-color - - seroval-plugins@1.5.6(seroval@1.5.6): - dependencies: - seroval: 1.5.6 - - seroval@1.5.6: {} - - serve-static@2.2.1: - dependencies: - encodeurl: 2.0.0 - escape-html: 1.0.3 - parseurl: 1.3.3 - send: 1.2.1 - transitivePeerDependencies: - - supports-color - - set-cookie-parser@3.1.2: {} - - setprototypeof@1.2.0: {} - - sharp@0.34.5: - dependencies: - '@img/colour': 1.1.0 - detect-libc: 2.1.2 - semver: 7.8.5 - optionalDependencies: - '@img/sharp-darwin-arm64': 0.34.5 - '@img/sharp-darwin-x64': 0.34.5 - '@img/sharp-libvips-darwin-arm64': 1.2.4 - '@img/sharp-libvips-darwin-x64': 1.2.4 - '@img/sharp-libvips-linux-arm': 1.2.4 - '@img/sharp-libvips-linux-arm64': 1.2.4 - '@img/sharp-libvips-linux-ppc64': 1.2.4 - '@img/sharp-libvips-linux-riscv64': 1.2.4 - '@img/sharp-libvips-linux-s390x': 1.2.4 - '@img/sharp-libvips-linux-x64': 1.2.4 - '@img/sharp-libvips-linuxmusl-arm64': 1.2.4 - '@img/sharp-libvips-linuxmusl-x64': 1.2.4 - '@img/sharp-linux-arm': 0.34.5 - '@img/sharp-linux-arm64': 0.34.5 - '@img/sharp-linux-ppc64': 0.34.5 - '@img/sharp-linux-riscv64': 0.34.5 - '@img/sharp-linux-s390x': 0.34.5 - '@img/sharp-linux-x64': 0.34.5 - '@img/sharp-linuxmusl-arm64': 0.34.5 - '@img/sharp-linuxmusl-x64': 0.34.5 - '@img/sharp-wasm32': 0.34.5 - '@img/sharp-win32-arm64': 0.34.5 - '@img/sharp-win32-ia32': 0.34.5 - '@img/sharp-win32-x64': 0.34.5 - - shebang-command@2.0.0: - dependencies: - shebang-regex: 3.0.0 - - shebang-regex@3.0.0: {} - - shiki@4.3.0: - dependencies: - '@shikijs/core': 4.3.0 - '@shikijs/engine-javascript': 4.3.0 - '@shikijs/engine-oniguruma': 4.3.0 - '@shikijs/langs': 4.3.0 - '@shikijs/themes': 4.3.0 - '@shikijs/types': 4.3.0 - '@shikijs/vscode-textmate': 10.0.2 - '@types/hast': 3.0.5 - - shiki@4.3.1: - dependencies: - '@shikijs/core': 4.3.1 - '@shikijs/engine-javascript': 4.3.1 - '@shikijs/engine-oniguruma': 4.3.1 - '@shikijs/langs': 4.3.1 - '@shikijs/themes': 4.3.1 - '@shikijs/types': 4.3.1 - '@shikijs/vscode-textmate': 10.0.2 - '@types/hast': 3.0.5 - - 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: {} - - solid-js@1.9.14: - dependencies: - csstype: 3.2.3 - seroval: 1.5.6 - seroval-plugins: 1.5.6(seroval@1.5.6) - - sorted-btree@1.8.1: {} - - source-map-js@1.2.1: {} - - space-separated-tokens@2.0.2: {} - - spdx-correct@3.2.0: - dependencies: - spdx-expression-parse: 3.0.1 - spdx-license-ids: 3.0.23 - - spdx-exceptions@2.5.0: {} - - spdx-expression-parse@3.0.1: - dependencies: - spdx-exceptions: 2.5.0 - spdx-license-ids: 3.0.23 - - spdx-license-ids@3.0.23: {} - - split-ca@1.0.1: {} - - ssh2@1.17.0: - dependencies: - asn1: 0.2.6 - bcrypt-pbkdf: 1.0.2 - optionalDependencies: - cpu-features: 0.0.10 - nan: 2.28.0 - - stackback@0.0.2: {} - - statuses@2.0.2: {} - - std-env@4.2.0: {} - - string-width@4.2.3: - dependencies: - emoji-regex: 8.0.0 - is-fullwidth-code-point: 3.0.0 - strip-ansi: 6.0.1 - - string_decoder@1.3.0: - dependencies: - safe-buffer: 5.2.1 - - stringify-entities@4.0.4: - dependencies: - character-entities-html4: 2.1.0 - character-entities-legacy: 3.0.0 - - strip-ansi@6.0.1: - dependencies: - ansi-regex: 5.0.1 - - suffix-thumb@5.0.2: {} - - supports-color@10.2.2: {} - - supports-color@7.2.0: - dependencies: - has-flag: 4.0.0 - - supports-color@8.1.1: - dependencies: - has-flag: 4.0.0 - - svelte@5.56.7: - dependencies: - '@jridgewell/remapping': 2.3.5 - '@jridgewell/sourcemap-codec': 1.5.5 - '@sveltejs/acorn-typescript': 1.0.11(acorn@8.17.0) - '@types/estree': 1.0.9 - '@types/trusted-types': 2.0.7 - acorn: 8.17.0 - aria-query: 5.3.1 - axobject-query: 4.1.0 - clsx: 2.1.1 - devalue: 5.8.2 - esm-env: 1.2.2 - esrap: 2.3.0 - is-reference: 3.0.3 - locate-character: 3.0.0 - magic-string: 0.30.21 - zimmerframe: 1.1.4 - transitivePeerDependencies: - - '@typescript-eslint/types' - - tailwind-merge@3.6.0: {} - - tar-fs@2.1.5: - dependencies: - chownr: 1.1.4 - mkdirp-classic: 0.5.3 - pump: 3.0.4 - tar-stream: 2.2.0 - - tar-stream@2.2.0: - dependencies: - bl: 4.1.0 - end-of-stream: 1.4.5 - fs-constants: 1.0.0 - inherits: 2.0.4 - readable-stream: 3.6.2 - - terminal-size@4.0.1: {} - - tiny-invariant@1.3.3: {} - - tinybench@2.9.0: {} - - tinyexec@1.2.4: {} - - tinyglobby@0.2.17: - dependencies: - fdir: 6.5.0(picomatch@4.0.5) - picomatch: 4.0.5 - - tinyrainbow@3.1.0: {} - - toidentifier@1.0.1: {} - - trim-lines@3.0.1: {} - - ts-morph@28.0.0: - dependencies: - '@ts-morph/common': 0.29.0 - code-block-writer: 13.0.3 - - tseep@1.3.1: {} - - tslib@1.14.1: {} - - tslib@2.8.1: {} - - tsyringe@4.10.0: - dependencies: - tslib: 1.14.1 - - tweetnacl@0.14.5: {} - - type-is@2.1.0: - dependencies: - content-type: 2.0.0 - media-typer: 1.1.0 - mime-types: 3.0.2 - - typescript@6.0.3: {} - - undici-types@7.18.2: {} - - undici@7.28.0: {} - - unenv@2.0.0-rc.24: - dependencies: - pathe: 2.0.3 - - unist-util-is@6.0.1: - dependencies: - '@types/unist': 3.0.3 - - unist-util-position@5.0.0: - dependencies: - '@types/unist': 3.0.3 - - unist-util-stringify-position@4.0.0: - dependencies: - '@types/unist': 3.0.3 - - unist-util-visit-parents@6.0.2: - dependencies: - '@types/unist': 3.0.3 - unist-util-is: 6.0.1 - - unist-util-visit@5.1.0: - dependencies: - '@types/unist': 3.0.3 - unist-util-is: 6.0.1 - unist-util-visit-parents: 6.0.2 - - unpipe@1.0.0: {} - - update-browserslist-db@1.2.3(browserslist@4.28.7): - dependencies: - browserslist: 4.28.7 - escalade: 3.2.0 - picocolors: 1.1.1 - - use-sync-external-store@1.6.0(react@19.2.8): - dependencies: - react: 19.2.8 - - util-deprecate@1.0.2: {} - - validate-npm-package-license@3.0.4: - dependencies: - spdx-correct: 3.2.0 - spdx-expression-parse: 3.0.1 - - vary@1.1.2: {} - - vfile-message@4.0.3: - dependencies: - '@types/unist': 3.0.3 - unist-util-stringify-position: 4.0.0 - - vfile@6.0.3: - dependencies: - '@types/unist': 3.0.3 - vfile-message: 4.0.3 - - victory-vendor@37.3.6: - dependencies: - '@types/d3-array': 3.2.2 - '@types/d3-ease': 3.0.2 - '@types/d3-interpolate': 3.0.4 - '@types/d3-scale': 4.0.9 - '@types/d3-shape': 3.1.8 - '@types/d3-time': 3.0.4 - '@types/d3-timer': 3.0.2 - d3-array: 3.2.4 - d3-ease: 3.0.1 - d3-interpolate: 3.0.1 - d3-scale: 4.0.2 - d3-shape: 3.2.0 - d3-time: 3.1.0 - d3-timer: 3.0.1 - - vite@8.1.5(@types/node@24.13.3)(esbuild@0.28.1)(jiti@2.7.0)(yaml@2.9.0): - dependencies: - lightningcss: 1.33.0 - picomatch: 4.0.5 - postcss: 8.5.22 - rolldown: 1.1.5 - tinyglobby: 0.2.17 - optionalDependencies: - '@types/node': 24.13.3 - esbuild: 0.28.1 - fsevents: 2.3.3 - jiti: 2.7.0 - yaml: 2.9.0 - - vitest@4.1.10(@types/node@24.13.3)(vite@8.1.5(@types/node@24.13.3)(esbuild@0.28.1)(jiti@2.7.0)(yaml@2.9.0)): - dependencies: - '@vitest/expect': 4.1.10 - '@vitest/mocker': 4.1.10(vite@8.1.5(@types/node@24.13.3)(esbuild@0.28.1)(jiti@2.7.0)(yaml@2.9.0)) - '@vitest/pretty-format': 4.1.10 - '@vitest/runner': 4.1.10 - '@vitest/snapshot': 4.1.10 - '@vitest/spy': 4.1.10 - '@vitest/utils': 4.1.10 - es-module-lexer: 2.3.1 - expect-type: 1.4.0 - magic-string: 0.30.21 - obug: 2.1.4 - pathe: 2.0.3 - picomatch: 4.0.5 - std-env: 4.2.0 - tinybench: 2.9.0 - tinyexec: 1.2.4 - tinyglobby: 0.2.17 - tinyrainbow: 3.1.0 - vite: 8.1.5(@types/node@24.13.3)(esbuild@0.28.1)(jiti@2.7.0)(yaml@2.9.0) - why-is-node-running: 2.3.0 - optionalDependencies: - '@types/node': 24.13.3 - transitivePeerDependencies: - - msw - - vue-demi@0.14.10(vue@3.5.40(typescript@6.0.3)): - dependencies: - vue: 3.5.40(typescript@6.0.3) - - vue@3.5.40(typescript@6.0.3): - dependencies: - '@vue/compiler-dom': 3.5.40 - '@vue/compiler-sfc': 3.5.40 - '@vue/runtime-dom': 3.5.40 - '@vue/server-renderer': 3.5.40 - '@vue/shared': 3.5.40 - optionalDependencies: - typescript: 6.0.3 - - which@2.0.2: - dependencies: - isexe: 2.0.0 - - why-is-node-running@2.3.0: - dependencies: - siginfo: 2.0.0 - stackback: 0.0.2 - - window-size@1.1.1: - dependencies: - define-property: 1.0.0 - is-number: 3.0.0 - - workerd@1.20260714.1: - optionalDependencies: - '@cloudflare/workerd-darwin-64': 1.20260714.1 - '@cloudflare/workerd-darwin-arm64': 1.20260714.1 - '@cloudflare/workerd-linux-64': 1.20260714.1 - '@cloudflare/workerd-linux-arm64': 1.20260714.1 - '@cloudflare/workerd-windows-64': 1.20260714.1 - - workerd@1.20260721.1: - optionalDependencies: - '@cloudflare/workerd-darwin-64': 1.20260721.1 - '@cloudflare/workerd-darwin-arm64': 1.20260721.1 - '@cloudflare/workerd-linux-64': 1.20260721.1 - '@cloudflare/workerd-linux-arm64': 1.20260721.1 - '@cloudflare/workerd-windows-64': 1.20260721.1 - - workers-ai-provider@3.3.1(@ai-sdk/provider@4.0.3)(ai@7.0.31(zod@4.4.3)): - dependencies: - '@ai-sdk/provider': 4.0.3 - ai: 7.0.31(zod@4.4.3) - - wrangler@4.113.0(@cloudflare/workers-types@4.20260702.1): - dependencies: - '@cloudflare/kv-asset-handler': 0.5.0 - '@cloudflare/unenv-preset': 2.16.1(unenv@2.0.0-rc.24)(workerd@1.20260721.1) - blake3-wasm: 2.1.5 - esbuild: 0.28.1 - miniflare: 4.20260721.0 - path-to-regexp: 6.3.0 - unenv: 2.0.0-rc.24 - workerd: 1.20260721.1 - optionalDependencies: - '@cloudflare/workers-types': 4.20260702.1 - fsevents: 2.3.3 - transitivePeerDependencies: - - bufferutil - - utf-8-validate - - wrap-ansi@7.0.0: - dependencies: - ansi-styles: 4.3.0 - string-width: 4.2.3 - strip-ansi: 6.0.1 - - wrappy@1.0.2: {} - - ws@8.21.0: {} - - y18n@5.0.8: {} - - yallist@3.1.1: {} - - yaml@2.9.0: {} - - yargs-parser@21.1.1: {} - - yargs@17.7.3: - dependencies: - cliui: 8.0.1 - escalade: 3.2.0 - get-caller-file: 2.0.5 - require-directory: 2.1.1 - string-width: 4.2.3 - y18n: 5.0.8 - yargs-parser: 21.1.1 - - yoga-layout@3.2.1: {} - - youch-core@0.3.3: - dependencies: - '@poppinss/exception': 1.2.3 - error-stack-parser-es: 1.0.5 - - youch@4.1.0-beta.10: - dependencies: - '@poppinss/colors': 4.1.6 - '@poppinss/dumper': 0.6.5 - '@speed-highlight/core': 1.2.17 - cookie: 1.1.1 - youch-core: 0.3.3 - - zimmerframe@1.1.4: {} - - zod-to-json-schema@3.25.2(zod@4.4.3): - dependencies: - zod: 4.4.3 - - zod@4.4.3: {} - - zustand@4.5.7(@types/react@19.2.17)(immer@11.1.15)(react@19.2.8): - dependencies: - use-sync-external-store: 1.6.0(react@19.2.8) - optionalDependencies: - '@types/react': 19.2.17 - immer: 11.1.15 - react: 19.2.8 - - zwitch@2.0.4: {} diff --git a/spikes/lunora-outline/pnpm-workspace.yaml b/spikes/lunora-outline/pnpm-workspace.yaml deleted file mode 100644 index 1886cf68..00000000 --- a/spikes/lunora-outline/pnpm-workspace.yaml +++ /dev/null @@ -1,29 +0,0 @@ -allowBuilds: - cpu-features: false - esbuild: true - protobufjs: false - sharp: false - ssh2: false - vue-demi: false - workerd: true -minimumReleaseAgeExclude: - - "@lunora/advisor@1.0.0-alpha.33" - - "@lunora/agent@1.0.0-alpha.9" - - "@lunora/ai@1.0.0-alpha.24" - - "@lunora/cli@1.0.0-alpha.97" - - "@lunora/client@1.0.0-alpha.27" - - "@lunora/codegen@1.0.0-alpha.52" - - "@lunora/config@1.0.0-alpha.78" - - "@lunora/d1@1.0.0-alpha.37" - - "@lunora/react@1.0.0-alpha.31" - - "@lunora/runtime@1.0.0-alpha.35" - - "@lunora/seed@1.0.0-alpha.29" - - "@lunora/server@1.0.0-alpha.30" - - "@lunora/sql-store@1.0.0-alpha.38" - - "@lunora/studio@1.0.0-alpha.58" - - "@lunora/values@1.0.0-alpha.10" - - "@lunora/vite@1.0.0-alpha.78" - - "@lunora/workflow@1.0.0-alpha.12" - - lunorash@1.0.0-alpha.98 - - "@lunora/db@1.0.0-alpha.27" - - "@lunora/auth@1.0.0-alpha.36" diff --git a/spikes/lunora-outline/public/favicon.svg b/spikes/lunora-outline/public/favicon.svg deleted file mode 100644 index 6893eb13..00000000 --- a/spikes/lunora-outline/public/favicon.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/spikes/lunora-outline/src/App.tsx b/spikes/lunora-outline/src/App.tsx deleted file mode 100644 index a7df05ab..00000000 --- a/spikes/lunora-outline/src/App.tsx +++ /dev/null @@ -1,309 +0,0 @@ -import { useMutator } from "@lunora/react"; -import { useLiveQuery } from "@tanstack/react-db"; -import { - useEffect, - useMemo, - useRef, - useState, - type CSSProperties, - type FormEvent, - type ReactNode, -} from "react"; - -import { authClient } from "./auth-client.js"; -import { createOutlineStore, type NodeRow } from "./outline-store.js"; -import { - bridgeOrderedChildren, - bridgeTreeIndex, - seedEmptyOutline, - shouldSeedOutline, - type OutlineNode, -} from "./outline/index.js"; -import { useLunoraClient } from "./use-lunora-client.js"; - -function newId(): string { - return crypto.randomUUID(); -} - -function AuthGate({ children }: { children: (userId: string) => ReactNode }) { - const session = authClient.useSession(); - const [email, setEmail] = useState("spike@dotflowy.local"); - const [password, setPassword] = useState("spike-dev-password"); - const [name, setName] = useState("Spike"); - const [error, setError] = useState(null); - - if (session.isPending) { - return
    Loading session…
    ; - } - - const userId = session.data?.user?.id; - if (userId) { - return <>{children(userId)}; - } - - const onSignIn = async (event: FormEvent) => { - event.preventDefault(); - setError(null); - const result = await authClient.signIn.email({ email, password }); - if (result.error) setError(result.error.message ?? "sign-in failed"); - }; - - const onSignUp = async (event: FormEvent) => { - event.preventDefault(); - setError(null); - const result = await authClient.signUp.email({ email, password, name }); - if (result.error) setError(result.error.message ?? "sign-up failed"); - }; - - return ( -
    -

    Lunora outline spike

    -

    - Sign up once, then open a second tab signed in as the same user to prove - live sync. Hard reload should restore the outline from the shape. An - empty outline seeds a few demo bullets once. -

    - -

    Sign in

    - setEmail(e.target.value)} - placeholder="email" - type="email" - /> - setPassword(e.target.value)} - placeholder="password" - type="password" - /> - - -
    -

    Or sign up

    - setName(e.target.value)} - placeholder="name" - /> - setEmail(e.target.value)} - placeholder="email" - type="email" - /> - setPassword(e.target.value)} - placeholder="password" - type="password" - /> - - - {error ?

    {error}

    : null} -
    - ); -} - -function OutlineApp({ userId }: { userId: string }) { - const client = useLunoraClient(); - const store = useMemo( - () => createOutlineStore(client, userId), - [client, userId], - ); - - const { - data: rows, - isLoading, - status, - } = useLiveQuery((q) => q.from({ n: store.collection })); - - const list = (rows as NodeRow[] | undefined) ?? []; - const nodeCount = list.length; - - // ADR 0004 seam: Lunora rows → TreeIndex (feed tree-store later). - const tree = useMemo( - () => bridgeTreeIndex((rows as NodeRow[] | undefined) ?? []), - [rows], - ); - const orderedTop = useMemo(() => bridgeOrderedChildren(tree, null), [tree]); - - const { mutate: insertSibling } = useMutator(store.mutators.insertSibling); - const { mutate: indent } = useMutator(store.mutators.indent); - const { mutate: outdent } = useMutator(store.mutators.outdent); - const { mutate: removeNode } = useMutator(store.mutators.removeNode); - const { mutate: setText } = useMutator(store.mutators.setText); - const { mutate: seedIfEmpty } = useMutator(store.mutators.seedIfEmpty); - - const [draft, setDraft] = useState(""); - const [afterId, setAfterId] = useState(null); - const [seedPending, setSeedPending] = useState(false); - const seedStarted = useRef(false); - - const isReady = !isLoading && status === "ready"; - - useEffect(() => { - if (seedStarted.current) return; - if (!shouldSeedOutline({ isReady, nodeCount })) return; - seedStarted.current = true; - setSeedPending(true); - void seedEmptyOutline({ - userId, - seedIfEmpty: (args) => seedIfEmpty(args), - }) - .catch((err) => { - seedStarted.current = false; - console.error("seedEmptyOutline failed", err); - }) - .finally(() => { - setSeedPending(false); - }); - }, [isReady, nodeCount, userId, seedIfEmpty]); - - const addBullet = async (event: FormEvent) => { - event.preventDefault(); - const text = draft.trim() || "untitled"; - const now = Date.now(); - const id = newId(); - setDraft(""); - await insertSibling({ - id, - userId, - parentId: null, - afterId, - text, - createdAt: now, - updatedAt: now, - }); - setAfterId(id); - }; - - const renderRow = (node: OutlineNode, depth: number) => { - const kids = bridgeOrderedChildren(tree, node.id); - return ( -
  • -
    - { - const text = e.target.value; - void setText({ - id: node.id, - userId, - text, - updatedAt: Date.now(), - }); - }} - style={{ flex: 1, font: "inherit", padding: 4 }} - /> - - - - -
    - {kids.length > 0 ? ( -
      - {kids.map((child) => renderRow(child, depth + 1))} -
    - ) : null} -
  • - ); - }; - - return ( -
    -
    -

    Outline spike

    - user {userId} - -
    -

    - Insert after: {afterId ?? "(head)"} · open a second tab to - watch live sync - {isLoading ? " · loading…" : null} -

    -
    - setDraft(e.target.value)} - placeholder="New bullet text" - style={{ flex: 1, padding: 8 }} - /> - - - -
      - {orderedTop.map((n) => renderRow(n, 0))} -
    - {isLoading ? ( -

    Loading outline…

    - ) : orderedTop.length === 0 ? ( -

    - {seedPending - ? "Seeding demo bullets…" - : "Outline empty — insert a bullet to start."} -

    - ) : null} -
    - ); -} - -export default function App() { - return {(userId) => }; -} - -const page: CSSProperties = { - maxWidth: 720, - margin: "2rem auto", - padding: 16, - fontFamily: "system-ui, sans-serif", -}; - -const form: CSSProperties = { - display: "grid", - gap: 8, - maxWidth: 320, - marginBottom: 16, -}; - -const row: CSSProperties = { - display: "flex", - gap: 6, - alignItems: "center", - padding: "4px 0", -}; diff --git a/spikes/lunora-outline/src/auth-client.ts b/spikes/lunora-outline/src/auth-client.ts deleted file mode 100644 index b7caaf20..00000000 --- a/spikes/lunora-outline/src/auth-client.ts +++ /dev/null @@ -1,7 +0,0 @@ -import { createAuthClient } from "better-auth/react"; - -const baseURL = - (import.meta.env.VITE_LUNORA_URL as string | undefined) ?? - globalThis.location.origin; - -export const authClient = createAuthClient({ baseURL }); diff --git a/spikes/lunora-outline/src/index.css b/spikes/lunora-outline/src/index.css deleted file mode 100644 index 8eabff16..00000000 --- a/spikes/lunora-outline/src/index.css +++ /dev/null @@ -1,5 +0,0 @@ -/* Minimal reset — App uses inline styles. */ -body { - margin: 0; - padding: 0; -} diff --git a/spikes/lunora-outline/src/main.tsx b/spikes/lunora-outline/src/main.tsx deleted file mode 100644 index 47e8b5d0..00000000 --- a/spikes/lunora-outline/src/main.tsx +++ /dev/null @@ -1,29 +0,0 @@ -import "./index.css"; -import { LunoraProvider } from "@lunora/react"; -import { LunoraClient } from "lunorash/client"; -import { StrictMode } from "react"; -import { createRoot } from "react-dom/client"; - -import App from "./App.tsx"; - -// `@lunora/vite` runs the Worker on the same origin as Vite, so default to -// `location.origin`. Point `VITE_LUNORA_URL` at a deployed Worker to develop -// the client against production data. -const url = - (import.meta.env.VITE_LUNORA_URL as string | undefined) ?? - globalThis.location.origin; -const client = new LunoraClient({ url }); - -const root = document.getElementById("root"); - -if (!root) { - throw new Error("missing #root mount node"); -} - -createRoot(root).render( - - - - - , -); diff --git a/spikes/lunora-outline/src/outline-store.ts b/spikes/lunora-outline/src/outline-store.ts deleted file mode 100644 index 5077825c..00000000 --- a/spikes/lunora-outline/src/outline-store.ts +++ /dev/null @@ -1,159 +0,0 @@ -import type { LunoraClient } from "lunorash/client"; - -import { lunoraCollectionOptions } from "@lunora/db"; -import { bindMutators, defineMutator } from "@lunora/db/mutators"; -import { createCollection, type Collection } from "@tanstack/db"; - -import type { Doc } from "../lunora/_generated/dataModel.js"; - -import { - buildTreeIndex, - nodeToRow, - planIndent, - planInsertSibling, - planOutdent, - planRemoveNode, - planSeedIfEmpty, - planSetText, - rowToNode, - type OutlineNode, - type OutlinePlan, -} from "./outline/index.js"; - -/** Row shape for TanStack — Doc interfaces lack an index signature. */ -export type NodeRow = Doc<"nodes"> & Record; - -function applyPlanToCollection( - collection: Collection, - plan: OutlinePlan, -): void { - for (const id of plan.deletes) { - collection.delete(id); - } - for (const patch of plan.patches) { - collection.update(patch.id, (draft) => { - Object.assign(draft, patch.fields); - }); - } - for (const insert of plan.inserts) { - collection.insert(nodeToRow(insert) as NodeRow); - } -} - -function snapshotNodes(collection: Collection): OutlineNode[] { - return collection.toArray.map(rowToNode); -} - -export type OutlineStore = { - collection: Collection; - mutators: ReturnType; -}; - -function bindOutlineMutators( - client: LunoraClient, - collection: Collection, - checkpoints: ReturnType< - typeof lunoraCollectionOptions - >["checkpoints"], - userId: string, -) { - return bindMutators( - client, - { - checkpoints, - collections: { nodes: collection as never }, - shardKey: userId, - }, - { - insertSibling: defineMutator<{ - id: string; - userId: string; - parentId: string | null; - afterId: string | null; - text: string; - isTask?: boolean; - kind?: "paragraph" | null; - createdAt: number; - updatedAt: number; - }>({ - serverRef: "mutators:insertSibling", - apply: (_ctx, args) => { - const index = buildTreeIndex(snapshotNodes(collection)); - const plan = planInsertSibling(index, args); - if (plan) applyPlanToCollection(collection, plan); - }, - }), - indent: defineMutator<{ id: string; userId: string; updatedAt: number }>({ - serverRef: "mutators:indent", - apply: (_ctx, args) => { - const index = buildTreeIndex(snapshotNodes(collection)); - const plan = planIndent(index, args.id, args.updatedAt); - if (plan) applyPlanToCollection(collection, plan); - }, - }), - outdent: defineMutator<{ id: string; userId: string; updatedAt: number }>( - { - serverRef: "mutators:outdent", - apply: (_ctx, args) => { - const index = buildTreeIndex(snapshotNodes(collection)); - const plan = planOutdent(index, args.id, args.updatedAt); - if (plan) applyPlanToCollection(collection, plan); - }, - }, - ), - removeNode: defineMutator<{ - id: string; - userId: string; - updatedAt: number; - }>({ - serverRef: "mutators:removeNode", - apply: (_ctx, args) => { - const index = buildTreeIndex(snapshotNodes(collection)); - const plan = planRemoveNode(index, args.id, args.updatedAt); - if (plan) applyPlanToCollection(collection, plan); - }, - }), - setText: defineMutator<{ - id: string; - userId: string; - text: string; - updatedAt: number; - }>({ - serverRef: "mutators:setText", - apply: (_ctx, args) => { - const index = buildTreeIndex(snapshotNodes(collection)); - const plan = planSetText(index, args.id, args.text, args.updatedAt); - if (plan) applyPlanToCollection(collection, plan); - }, - }), - seedIfEmpty: defineMutator<{ userId: string; createdAt: number }>({ - serverRef: "mutators:seedIfEmpty", - apply: (_ctx, args) => { - const plan = planSeedIfEmpty(snapshotNodes(collection), args); - if (plan) applyPlanToCollection(collection, plan); - }, - }), - }, - ); -} - -/** Build the outline collection + bound mutators for one signed-in user. */ -export function createOutlineStore( - client: LunoraClient, - userId: string, -): OutlineStore { - const { config, checkpoints } = lunoraCollectionOptions({ - client, - id: `nodes:${userId}`, - shape: { - name: "wholeOutline", - args: { userId }, - shardKey: userId, - }, - load: "eager", - }); - - const collection = createCollection(config); - const mutators = bindOutlineMutators(client, collection, checkpoints, userId); - return { collection, mutators }; -} diff --git a/spikes/lunora-outline/src/outline/index.ts b/spikes/lunora-outline/src/outline/index.ts deleted file mode 100644 index ee85f82f..00000000 --- a/spikes/lunora-outline/src/outline/index.ts +++ /dev/null @@ -1,52 +0,0 @@ -/** - * Spike re-exports shared planners from repo `src/data/outline-plans/`. - * Bridge stays local (ADR 0004 handoff UI seam). - * - * Import path: Vite/vitest alias `@dotflowy/outline-plans` → - * `../../../src/data/outline-plans` (see vite.config.ts / vitest.config.ts). - */ - -export type { - OutlineNode, - OutlinePlan, - PlanPatch, - NodeKind, - NodeDocLike, - SeedIfEmptyArgs, - SeedIfEmptyFn, - TreeIndex, - ChainDisagreement, -} from "@dotflowy/outline-plans"; - -export { - emptyPlan, - orderSiblings, - chainDisagreements, - buildTreeIndex, - childrenOf, - makeNode, - makeOutlineNode, - parentKeyOf, - planInsertSibling, - planIndent, - planOutdent, - planRemoveNode, - planSetText, - applyPlan, - rowToNode, - docToNode, - nodeToDocFields, - nodeToRow, - nodeToInsertFields, - DEMO_SEED_TEXTS, - DEMO_SEED_IDS, - shouldSeedOutline, - planSeedIfEmpty, - seedEmptyOutline, -} from "@dotflowy/outline-plans"; - -export { - rowsToOutlineNodes, - bridgeTreeIndex, - bridgeOrderedChildren, -} from "./lunora-bridge.js"; diff --git a/spikes/lunora-outline/src/outline/lunora-bridge.test.ts b/spikes/lunora-outline/src/outline/lunora-bridge.test.ts deleted file mode 100644 index 695cb8eb..00000000 --- a/spikes/lunora-outline/src/outline/lunora-bridge.test.ts +++ /dev/null @@ -1,114 +0,0 @@ -import type { OutlineNode } from "@dotflowy/outline-plans"; - -import { - applyPlan, - buildTreeIndex, - makeOutlineNode, - nodeToDocFields, - planIndent, - planInsertSibling, - planRemoveNode, -} from "@dotflowy/outline-plans"; -import { describe, expect, it } from "vitest"; - -import { - bridgeOrderedChildren, - bridgeTreeIndex, - rowsToOutlineNodes, -} from "./lunora-bridge.js"; - -const USER = "user-bridge"; - -function toRows(nodes: OutlineNode[]) { - return nodes.map(nodeToDocFields); -} - -describe("lunora-bridge (ADR 0004 seam)", () => { - it("maps rows → OutlineNode via shared rowToNode", () => { - const rows = [ - { - _id: "a", - parentId: null, - prevSiblingId: null, - text: "hello", - isTask: false, - completed: false, - collapsed: false, - bookmarkedAt: null, - mirrorOf: null, - createdAt: 1, - updatedAt: 1, - origin: null, - kind: null, - userId: USER, - }, - ]; - expect(rowsToOutlineNodes(rows)).toEqual([ - expect.objectContaining({ id: "a", text: "hello", userId: USER }), - ]); - }); - - it("bridge order matches planner apply (insert/indent/remove)", () => { - let nodes: OutlineNode[] = [ - makeOutlineNode({ - id: "a", - userId: USER, - parentId: null, - prevSiblingId: null, - text: "a", - createdAt: 0, - updatedAt: 0, - }), - makeOutlineNode({ - id: "b", - userId: USER, - parentId: null, - prevSiblingId: "a", - text: "b", - createdAt: 1, - updatedAt: 1, - }), - ]; - - { - const index = buildTreeIndex(nodes); - const plan = planInsertSibling(index, { - id: "c", - userId: USER, - parentId: null, - afterId: "a", - text: "c", - createdAt: 2, - updatedAt: 2, - }); - expect(plan).not.toBeNull(); - nodes = applyPlan(nodes, plan!); - } - - { - const index = buildTreeIndex(nodes); - const plan = planIndent(index, "c", 3); - expect(plan).not.toBeNull(); - nodes = applyPlan(nodes, plan!); - } - - const bridged = bridgeTreeIndex(toRows(nodes)); - expect(bridgeOrderedChildren(bridged, null).map((n) => n.id)).toEqual([ - "a", - "b", - ]); - expect(bridgeOrderedChildren(bridged, "a").map((n) => n.id)).toEqual(["c"]); - - { - const index = buildTreeIndex(nodes); - const plan = planRemoveNode(index, "a", 4); - expect(plan).not.toBeNull(); - nodes = applyPlan(nodes, plan!); - } - - const afterRemove = bridgeTreeIndex(toRows(nodes)); - expect(bridgeOrderedChildren(afterRemove, null).map((n) => n.id)).toEqual([ - "b", - ]); - }); -}); diff --git a/spikes/lunora-outline/src/outline/lunora-bridge.ts b/spikes/lunora-outline/src/outline/lunora-bridge.ts deleted file mode 100644 index 83d0ca7f..00000000 --- a/spikes/lunora-outline/src/outline/lunora-bridge.ts +++ /dev/null @@ -1,34 +0,0 @@ -/** - * ADR 0004 handoff seam — build Dotflowy-shaped `TreeIndex` / ordered children - * from Lunora collection rows (`wholeOutline`). Feed `tree-store` later; do - * **not** port OutlineEditor / virtualizer into this spike. - */ - -import type { OutlineNode, TreeIndex } from "@dotflowy/outline-plans"; - -import { - buildTreeIndex, - childrenOf, - rowToNode, - type NodeDocLike, -} from "@dotflowy/outline-plans"; - -/** Map collection / query rows → planner nodes. */ -export function rowsToOutlineNodes(rows: Iterable): OutlineNode[] { - const out: OutlineNode[] = []; - for (const row of rows) out.push(rowToNode(row)); - return out; -} - -/** Lunora rows → TreeIndex (ordered sibling ids per parent). */ -export function bridgeTreeIndex(rows: Iterable): TreeIndex { - return buildTreeIndex(rowsToOutlineNodes(rows)); -} - -/** Ordered children under `parentId` (`null` = top level). */ -export function bridgeOrderedChildren( - index: TreeIndex, - parentId: string | null, -): OutlineNode[] { - return childrenOf(index, parentId) as OutlineNode[]; -} diff --git a/spikes/lunora-outline/src/outline/planners.test.ts b/spikes/lunora-outline/src/outline/planners.test.ts deleted file mode 100644 index ec102d73..00000000 --- a/spikes/lunora-outline/src/outline/planners.test.ts +++ /dev/null @@ -1,54 +0,0 @@ -import { - applyPlan, - buildTreeIndex, - childrenOf, - makeOutlineNode, - planInsertSibling, -} from "@dotflowy/outline-plans"; -/** - * Spike keeps a thin vitest entry that re-runs shared planner tests via - * import. Canonical coverage lives in - * `src/data/outline-plans/planners.test.ts` (`bun run test`). - */ -import { describe, expect, it } from "vitest"; - -describe("shared outline-plans (spike import smoke)", () => { - it("planInsertSibling mid-list via @dotflowy/outline-plans", () => { - const nodes = [ - makeOutlineNode({ - id: "a", - userId: "u", - parentId: null, - prevSiblingId: null, - text: "a", - createdAt: 0, - updatedAt: 0, - }), - makeOutlineNode({ - id: "b", - userId: "u", - parentId: null, - prevSiblingId: "a", - text: "b", - createdAt: 1, - updatedAt: 1, - }), - ]; - const plan = planInsertSibling(buildTreeIndex(nodes), { - id: "x", - userId: "u", - parentId: null, - afterId: "a", - text: "x", - createdAt: 2, - updatedAt: 2, - }); - expect(plan).not.toBeNull(); - const next = applyPlan(nodes, plan!); - expect(childrenOf(buildTreeIndex(next), null).map((n) => n.id)).toEqual([ - "a", - "x", - "b", - ]); - }); -}); diff --git a/spikes/lunora-outline/src/outline/seed.test.ts b/spikes/lunora-outline/src/outline/seed.test.ts deleted file mode 100644 index a68ed935..00000000 --- a/spikes/lunora-outline/src/outline/seed.test.ts +++ /dev/null @@ -1,40 +0,0 @@ -import { - DEMO_SEED_IDS, - planSeedIfEmpty, - shouldSeedOutline, -} from "@dotflowy/outline-plans"; -import { describe, expect, it } from "vitest"; - -describe("shared seed planner (spike import smoke)", () => { - it("planSeedIfEmpty no-ops when non-empty", () => { - expect(shouldSeedOutline({ isReady: true, nodeCount: 0 })).toBe(true); - expect( - planSeedIfEmpty( - [ - { - id: "x", - parentId: null, - prevSiblingId: null, - text: "x", - isTask: false, - completed: false, - collapsed: false, - bookmarkedAt: null, - mirrorOf: null, - createdAt: 1, - updatedAt: 1, - origin: null, - kind: null, - userId: "u", - }, - ], - { userId: "u", createdAt: 1 }, - ), - ).toBeNull(); - }); - - it("uses DEMO_SEED_IDS by default", () => { - const plan = planSeedIfEmpty([], { userId: "u", createdAt: 1 }); - expect(plan!.inserts.map((n) => n.id)).toEqual([...DEMO_SEED_IDS]); - }); -}); diff --git a/spikes/lunora-outline/src/server.ts b/spikes/lunora-outline/src/server.ts deleted file mode 100644 index 01c7e7b1..00000000 --- a/spikes/lunora-outline/src/server.ts +++ /dev/null @@ -1,41 +0,0 @@ -import type { LunoraAuthOptions } from "@lunora/auth"; -import type { ShardNamespaceLike } from "lunorash/runtime"; - -import { defineApp } from "../lunora/_generated/app.js"; - -interface Env extends Record { - AUTH_SECRET: string; - AUTH_URL?: string; - DB: unknown; - SHARD: ShardNamespaceLike; -} - -const authOptions = (env: Env): LunoraAuthOptions => { - if (!env.AUTH_SECRET) { - throw new Error("AUTH_SECRET is required"); - } - - return { - appName: "Lunora Outline Spike", - baseURL: env.AUTH_URL, - emailAndPassword: { - enabled: true, - sendResetPassword: async ({ url, user }) => { - // Dev-only: log reset link (never commit real mail secrets). - console.log(`[auth] password reset for ${user.email}: ${url}`); - }, - }, - secret: env.AUTH_SECRET, - }; -}; - -const app = defineApp() - .shard((env) => env.SHARD) - .auth({ d1: (env) => env.DB, options: authOptions }) - .extend(() => ({ - authorizeShard: (identity, shardKey) => identity?.userId === shardKey, - })) - .build(); - -export const ShardDO = app.ShardDO; -export default app; diff --git a/spikes/lunora-outline/src/use-lunora-client.ts b/spikes/lunora-outline/src/use-lunora-client.ts deleted file mode 100644 index 8501ee11..00000000 --- a/spikes/lunora-outline/src/use-lunora-client.ts +++ /dev/null @@ -1,8 +0,0 @@ -import type { LunoraClient } from "lunorash/client"; - -import { useLunora } from "@lunora/react"; - -/** The LunoraClient from LunoraProvider (typed for outline-store wiring). */ -export function useLunoraClient(): LunoraClient { - return useLunora() as LunoraClient; -} diff --git a/spikes/lunora-outline/tsconfig.app.json b/spikes/lunora-outline/tsconfig.app.json deleted file mode 100644 index 4cb35d36..00000000 --- a/spikes/lunora-outline/tsconfig.app.json +++ /dev/null @@ -1,30 +0,0 @@ -{ - "compilerOptions": { - "tsBuildInfoFile": "./node_modules/.tmp/tsconfig.app.tsbuildinfo", - "target": "es2023", - "lib": ["ES2023", "DOM"], - "module": "esnext", - "types": ["vite/client"], - "allowArbitraryExtensions": true, - "skipLibCheck": true, - - /* Bundler mode */ - "moduleResolution": "bundler", - "allowImportingTsExtensions": true, - "verbatimModuleSyntax": true, - "moduleDetection": "force", - "noEmit": true, - "jsx": "react-jsx", - - /* Linting */ - "noUnusedLocals": true, - "noUnusedParameters": true, - "erasableSyntaxOnly": true, - "noFallthroughCasesInSwitch": true, - "paths": { - "@dotflowy/outline-plans": ["../../src/data/outline-plans/index.ts"], - "@dotflowy/outline-plans/*": ["../../src/data/outline-plans/*"] - } - }, - "include": ["src", "lunora"] -} diff --git a/spikes/lunora-outline/tsconfig.json b/spikes/lunora-outline/tsconfig.json deleted file mode 100644 index 1ffef600..00000000 --- a/spikes/lunora-outline/tsconfig.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "files": [], - "references": [ - { "path": "./tsconfig.app.json" }, - { "path": "./tsconfig.node.json" } - ] -} diff --git a/spikes/lunora-outline/tsconfig.node.json b/spikes/lunora-outline/tsconfig.node.json deleted file mode 100644 index 8455dcbc..00000000 --- a/spikes/lunora-outline/tsconfig.node.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "compilerOptions": { - "tsBuildInfoFile": "./node_modules/.tmp/tsconfig.node.tsbuildinfo", - "target": "es2023", - "lib": ["ES2023"], - "types": ["node"], - "skipLibCheck": true, - - /* Bundler mode */ - "module": "nodenext", - "allowImportingTsExtensions": true, - "verbatimModuleSyntax": true, - "moduleDetection": "force", - "noEmit": true, - - /* Linting */ - "noUnusedLocals": true, - "noUnusedParameters": true, - "erasableSyntaxOnly": true, - "noFallthroughCasesInSwitch": true - }, - "include": ["vite.config.ts"] -} diff --git a/spikes/lunora-outline/vite.config.ts b/spikes/lunora-outline/vite.config.ts deleted file mode 100644 index 776ccb17..00000000 --- a/spikes/lunora-outline/vite.config.ts +++ /dev/null @@ -1,20 +0,0 @@ -import { lunora } from "@lunora/vite"; -import react from "@vitejs/plugin-react"; -import path from "node:path"; -import { fileURLToPath } from "node:url"; -import { defineConfig } from "vite"; - -const spikeRoot = path.dirname(fileURLToPath(import.meta.url)); -const outlinePlans = path.resolve(spikeRoot, "../../src/data/outline-plans"); - -// https://vite.dev/config/ -export default defineConfig({ - plugins: [lunora(), react()], - resolve: { - alias: { - // Shared planners live in the Dotflowy repo root (bun). Spike (pnpm) - // imports them via this alias — see HANDOFF + spike README. - "@dotflowy/outline-plans": outlinePlans, - }, - }, -}); diff --git a/spikes/lunora-outline/vitest.config.ts b/spikes/lunora-outline/vitest.config.ts deleted file mode 100644 index 81353632..00000000 --- a/spikes/lunora-outline/vitest.config.ts +++ /dev/null @@ -1,19 +0,0 @@ -import path from "node:path"; -import { fileURLToPath } from "node:url"; -import { defineConfig } from "vitest/config"; - -const spikeRoot = path.dirname(fileURLToPath(import.meta.url)); -const outlinePlans = path.resolve(spikeRoot, "../../src/data/outline-plans"); - -// Pure planner / bridge tests — do NOT load vite.config.ts (lunora/Cloudflare plugin). -export default defineConfig({ - resolve: { - alias: { - "@dotflowy/outline-plans": outlinePlans, - }, - }, - test: { - include: ["src/**/*.test.ts"], - environment: "node", - }, -}); diff --git a/spikes/lunora-outline/wrangler.jsonc b/spikes/lunora-outline/wrangler.jsonc deleted file mode 100644 index 036491ff..00000000 --- a/spikes/lunora-outline/wrangler.jsonc +++ /dev/null @@ -1,19 +0,0 @@ -{ - "$schema": "node_modules/wrangler/config-schema.json", - "name": "lunora-outline", - "main": "src/server.ts", - "compatibility_date": "2026-06-10", - "compatibility_flags": ["nodejs_compat"], - "durable_objects": { - "bindings": [{ "name": "SHARD", "class_name": "ShardDO" }], - }, - "d1_databases": [ - { - "binding": "DB", - "database_name": "lunora-outline-auth", - "database_id": "00000000-0000-0000-0000-000000000001", - }, - ], - "migrations": [{ "tag": "v1", "new_sqlite_classes": ["ShardDO"] }], - "observability": { "enabled": true, "head_sampling_rate": 1 }, -} diff --git a/src/data/lunora-bridge.ts b/src/data/lunora-bridge.ts index 7502e383..e3cdf3e1 100644 --- a/src/data/lunora-bridge.ts +++ b/src/data/lunora-bridge.ts @@ -1,7 +1,6 @@ /** * ADR 0004 handoff seam — build Dotflowy-shaped `TreeIndex` / ordered children - * from Lunora collection rows (`wholeOutline`). Ported from - * `spikes/lunora-outline/src/outline/lunora-bridge.ts`. + * from Lunora collection rows (`wholeOutline`). */ import type { NodeDocLike, OutlineNode, TreeIndex } from "./outline-plans"; diff --git a/src/data/lunora-outline-store.ts b/src/data/lunora-outline-store.ts index a9a17f90..db6ab844 100644 --- a/src/data/lunora-outline-store.ts +++ b/src/data/lunora-outline-store.ts @@ -1,7 +1,7 @@ /** * Client outline store for the Lunora flag-swap path (ADR 0055). - * Ported from `spikes/lunora-outline/src/outline-store.ts` — `wholeOutline` - * shape + `bindMutators` with watermark checkpoints (replaces `waitForSeq`). + * `wholeOutline` shape + `bindMutators` with watermark checkpoints (replaces + * `waitForSeq`). */ import type { LunoraClient } from "lunorash/client"; From cafcc61cf4b4d4ca1cfa8f14f970bd765472273f Mon Sep 17 00:00:00 2001 From: Cameron Pak Date: Fri, 24 Jul 2026 08:31:29 -0500 Subject: [PATCH 55/59] chore: collapse Lunora branch changesets into one One minor user-facing fragment; drop e2e/internal patch notes that shouldn't ship in What's new. Co-authored-by: Cursor --- .changeset/calm-nodes-hold.md | 5 ----- .changeset/lunora-opt-in-beta.md | 2 +- .changeset/wet-candies-rule.md | 5 ----- 3 files changed, 1 insertion(+), 11 deletions(-) delete mode 100644 .changeset/calm-nodes-hold.md delete mode 100644 .changeset/wet-candies-rule.md diff --git a/.changeset/calm-nodes-hold.md b/.changeset/calm-nodes-hold.md deleted file mode 100644 index a8784e1a..00000000 --- a/.changeset/calm-nodes-hold.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"dotflowy": patch ---- - -Keep typed outline text when sync shape confirmation is late (Settings round-trip no longer looks empty until hard refresh). More menu: actions first, restore Copy as Markdown, drop Migrate to Lunora. Settings beta copy no longer names the sync engine. diff --git a/.changeset/lunora-opt-in-beta.md b/.changeset/lunora-opt-in-beta.md index 9b335a40..ed26a702 100644 --- a/.changeset/lunora-opt-in-beta.md +++ b/.changeset/lunora-opt-in-beta.md @@ -2,4 +2,4 @@ "dotflowy": minor --- -Add opt-in Lunora outline beta in Settings. Classic DO sync remains the default; enable the experimental Lunora backend per account (syncs across devices). Local dogfood: `LUNORA_OUTLINE=1` or `?lunora-sync=on`. +Opt-in experimental outline sync in Settings (classic sync stays the default; preference syncs across devices). Fixes typed text vanishing after a Settings round-trip, and big-delete / mirror-instance delete on the beta path. More menu lists actions first and restores Copy as Markdown; Settings no longer names the sync engine. diff --git a/.changeset/wet-candies-rule.md b/.changeset/wet-candies-rule.md deleted file mode 100644 index eb468376..00000000 --- a/.changeset/wet-candies-rule.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"dotflowy": patch ---- - -Fix Lunora big-delete and mirror-instance delete; expand dual-path e2e skips. From e033f012ef6f2a388eefe1d681ff212c0d0cee8f Mon Sep 17 00:00:00 2001 From: Cameron Pak Date: Fri, 24 Jul 2026 09:33:01 -0500 Subject: [PATCH 56/59] fix(lunora): address CodeRabbit review on PR #310 Harden MCP shard decode, force restore/import userId, unify empty applyChangeOps counts, and pin e2e SPA nav + caret placement. Co-authored-by: Cursor --- e2e/lunora-optimistic-hold.spec.ts | 7 +- e2e/lunora-sync-smoke.spec.ts | 10 ++ lunora/mcp.ts | 4 +- lunora/mutators.ts | 4 + lunora/shapes.ts | 34 +++--- src/components/delete-confirm-dialog.tsx | 8 +- src/data/lunora-checkpoints.test.ts | 32 +++++ src/data/lunora-checkpoints.ts | 4 +- worker/lunora-mcp-store.test.ts | 47 ++++++++ worker/lunora-mcp-store.ts | 142 +++++++++++++---------- 10 files changed, 201 insertions(+), 91 deletions(-) diff --git a/e2e/lunora-optimistic-hold.spec.ts b/e2e/lunora-optimistic-hold.spec.ts index a5981f1c..771aa220 100644 --- a/e2e/lunora-optimistic-hold.spec.ts +++ b/e2e/lunora-optimistic-hold.spec.ts @@ -38,12 +38,13 @@ test.describe("Lunora optimistic hold (missed shape poke)", () => { await page.waitForTimeout(3_500); await expect(text(page, "hold")).toHaveText("HoldBaseX"); - // SPA remount of the outline (the surface that made the bug obvious). - await page.goto("/settings"); + // SPA remount via in-app nav (hard goto would reset the Lunora client). + await page.getByRole("button", { name: /more/i }).click(); + await page.getByRole("menuitem", { name: "Settings" }).click(); await expect(page.getByRole("heading", { name: "Settings" })).toBeVisible({ timeout: 10_000, }); - await page.goto("/"); + await page.getByRole("button", { name: "Back to outline" }).click(); await expect(text(page, "hold")).toBeVisible({ timeout: 15_000 }); await expect(text(page, "hold")).toHaveText("HoldBaseX"); }); diff --git a/e2e/lunora-sync-smoke.spec.ts b/e2e/lunora-sync-smoke.spec.ts index d0147770..78aa31dd 100644 --- a/e2e/lunora-sync-smoke.spec.ts +++ b/e2e/lunora-sync-smoke.spec.ts @@ -27,7 +27,17 @@ test.describe("Lunora sync smoke (flag ON)", () => { await expect(text(page, "smoke")).toBeVisible({ timeout: 15_000 }); await expect(text(page, "smoke")).toHaveText("LunoraSmoke"); + // Place caret at end (contentEditable click can land mid-glyph / past text). await text(page, "smoke").click(); + await text(page, "smoke").evaluate((el) => { + const sel = window.getSelection(); + if (!sel) return; + const range = document.createRange(); + range.selectNodeContents(el); + range.collapse(false); + sel.removeAllRanges(); + sel.addRange(range); + }); await page.keyboard.type("X"); await expect(text(page, "smoke")).toHaveText("LunoraSmokeX"); diff --git a/lunora/mcp.ts b/lunora/mcp.ts index 9145e6ca..efe71813 100644 --- a/lunora/mcp.ts +++ b/lunora/mcp.ts @@ -146,7 +146,9 @@ export const applyChangeOps = internalMutation .mutation(async ({ ctx, args }) => { const mctx = ctx as unknown as MutatorCtx; assertOwner(mctx, args.userId); - if (args.ops.length === 0) return { count: 0 }; + if (args.ops.length === 0) { + return { count: 0, deletes: 0, inserts: 0, patches: 0 }; + } const plan = planFromChangeOps(args.userId, args.ops); await commitPlan(mctx, plan); return { diff --git a/lunora/mutators.ts b/lunora/mutators.ts index 0b1581fd..a1301c6e 100644 --- a/lunora/mutators.ts +++ b/lunora/mutators.ts @@ -515,8 +515,10 @@ export const restoreNodes = defineMutator({ const mctx = ctx as unknown as MutatorCtx; assertOwner(mctx, args.userId); const current = await loadNodes(mctx); + // Force shard owner — never trust a client-supplied snapshot userId. const target: OutlineNode[] = args.nodes.map((n) => ({ ...n, + userId: args.userId, kind: n.kind === "paragraph" ? "paragraph" : null, })); const plan = planRestoreNodes(current, target); @@ -542,8 +544,10 @@ export const importNodes = defineMutator({ server: async (ctx, args) => { const mctx = ctx as unknown as MutatorCtx; assertOwner(mctx, args.userId); + // Force shard owner — never trust a client-supplied snapshot userId. const nodes: OutlineNode[] = args.nodes.map((n) => ({ ...n, + userId: args.userId, kind: n.kind === "paragraph" ? "paragraph" : null, })); const plan = planImportNodes(nodes); diff --git a/lunora/shapes.ts b/lunora/shapes.ts index f63b14f8..71c6f5e3 100644 --- a/lunora/shapes.ts +++ b/lunora/shapes.ts @@ -4,43 +4,41 @@ import { defineShape, v } from "lunorash/server"; * Whole-outline replication for one user shard. * Read-as-permission: only the authenticated owner may subscribe. */ + +/** Owner-only shape filter — deny sentinel when auth ≠ arg userId. */ +function ownerWhere( + ctx: { auth: { userId?: string | null } }, + userId: string, +): { OR: [] } | { userId: string } { + // Shape `where` returns WhereInput (not boolean). `{ OR: [] }` is the + // vacuously-false deny sentinel used by Lunora RLS/shapes. + if (!ctx.auth.userId || ctx.auth.userId !== userId) return { OR: [] }; + return { userId }; +} + export const wholeOutline = defineShape({ args: { userId: v.string() }, table: "nodes", - where: (ctx, { userId }) => { - // Shape `where` returns WhereInput (not boolean). `{ OR: [] }` is the - // vacuously-false deny sentinel used by Lunora RLS/shapes. - if (!ctx.auth.userId || ctx.auth.userId !== userId) return { OR: [] }; - return { userId }; - }, + where: (ctx, { userId }) => ownerWhere(ctx, userId), }); /** Per-user tag color rows (phase 2b). */ export const userTagColors = defineShape({ args: { userId: v.string() }, table: "tagColors", - where: (ctx, { userId }) => { - if (!ctx.auth.userId || ctx.auth.userId !== userId) return { OR: [] }; - return { userId }; - }, + where: (ctx, { userId }) => ownerWhere(ctx, userId), }); /** Per-user saved filter queries (phase 2b). */ export const userSavedQueries = defineShape({ args: { userId: v.string() }, table: "savedQueries", - where: (ctx, { userId }) => { - if (!ctx.auth.userId || ctx.auth.userId !== userId) return { OR: [] }; - return { userId }; - }, + where: (ctx, { userId }) => ownerWhere(ctx, userId), }); /** Per-user daily scaffold index (phase 2b — claimDailyMapping). */ export const userDailyIndex = defineShape({ args: { userId: v.string() }, table: "dailyIndex", - where: (ctx, { userId }) => { - if (!ctx.auth.userId || ctx.auth.userId !== userId) return { OR: [] }; - return { userId }; - }, + where: (ctx, { userId }) => ownerWhere(ctx, userId), }); diff --git a/src/components/delete-confirm-dialog.tsx b/src/components/delete-confirm-dialog.tsx index def74907..710a45a1 100644 --- a/src/components/delete-confirm-dialog.tsx +++ b/src/components/delete-confirm-dialog.tsx @@ -5,10 +5,7 @@ import { toast } from "sonner"; import { nodesCollection } from "../data/collection"; import { isLunoraSyncEnabled } from "../data/flags"; import { capture, drop } from "../data/history"; -import { - getLunoraOutlineContext, - trackLunoraMutation, -} from "../data/lunora-sync"; +import { getLunoraOutlineContext } from "../data/lunora-sync"; import { runStructuralSliced } from "../data/structural"; import { now, planRemoveSubtrees } from "../data/tree"; import { getTreeIndex } from "../data/tree-store"; @@ -95,7 +92,8 @@ export function DeleteConfirmDialog() { nodeIds: [...rootIds], updatedAt: now(), }); - trackLunoraMutation(tx); + // Await persistence here (error stage below) — do not also + // trackLunoraMutation (would double-toast on failure). await tx.isPersisted.promise; setStage({ kind: "closed" }); toast.success( diff --git a/src/data/lunora-checkpoints.test.ts b/src/data/lunora-checkpoints.test.ts index 96eb408c..8799fc5a 100644 --- a/src/data/lunora-checkpoints.test.ts +++ b/src/data/lunora-checkpoints.test.ts @@ -106,4 +106,36 @@ describe("shapeFirstCheckpoints", () => { test("default fallback window is 3s", () => { expect(SHAPE_CHECKPOINT_FALLBACK_MS).toBe(3000); }); + + test("shape await rejection still falls back after RPC watermark", async () => { + const pending = new Map>(); + const shape: CheckpointRegistry = { + awaitCheckpoint: async () => undefined, + resolve: () => undefined, + awaitMutationId: (id) => { + let d = pending.get(id); + if (!d) { + d = deferred(); + pending.set(id, d); + } + // Reject instead of resolve — must not hang or throw unhandled. + return d.promise.then(() => { + throw new Error("shape poke missed"); + }); + }, + }; + let watermark = 0; + const gate = shapeFirstCheckpoints( + { confirmedMutationWatermark: () => watermark }, + "u1", + shape, + { fallbackMs: 40 }, + ); + + const wait = gate.awaitMutationId(3); + // Trigger the rejected shape wait. + pending.get(3)?.resolve(); + watermark = 3; + await wait; + }); }); diff --git a/src/data/lunora-checkpoints.ts b/src/data/lunora-checkpoints.ts index 94788310..ce4944c6 100644 --- a/src/data/lunora-checkpoints.ts +++ b/src/data/lunora-checkpoints.ts @@ -76,7 +76,9 @@ export function shapeFirstCheckpoints( settled = true; resolve(); }; - void shape.awaitMutationId(id).then(finish); + // Shape wait failure must not become an unhandled rejection — the + // RPC-watermark fallback below still settles the overlay. + void shape.awaitMutationId(id).then(finish, () => undefined); const armFallback = () => { if (settled) return; diff --git a/worker/lunora-mcp-store.test.ts b/worker/lunora-mcp-store.test.ts index 04cef392..bda408f0 100644 --- a/worker/lunora-mcp-store.test.ts +++ b/worker/lunora-mcp-store.test.ts @@ -1,6 +1,11 @@ import { describe, expect, test } from "bun:test"; import { + decodeClaimDailyResult, + decodeDailyClaimValue, + decodeDailyIndexRows, + decodeMcpNodeList, + decodeShardRpcEnvelope, isLunoraOutlineEnabledForUser, isLunoraOutlineEnabledSync, parseLunoraBetaPref, @@ -76,3 +81,45 @@ describe("isLunoraOutlineEnabledForUser", () => { expect(await isLunoraOutlineEnabledForUser({}, async () => [])).toBe(false); }); }); + +describe("shard RPC decode (Worker→Lunora trust boundary)", () => { + test("decodeShardRpcEnvelope accepts ok + error shapes", () => { + expect(decodeShardRpcEnvelope({ result: 1 })).toEqual({ result: 1 }); + expect(decodeShardRpcEnvelope({ error: { message: "nope" } })).toEqual({ + error: { message: "nope" }, + }); + }); + + test("decodeShardRpcEnvelope rejects garbage", () => { + expect(() => decodeShardRpcEnvelope("nope")).toThrow(); + }); + + test("decodeMcpNodeList validates wire nodes", () => { + const node = { + id: "n1", + parentId: null, + prevSiblingId: null, + text: "hi", + isTask: false, + completed: false, + collapsed: false, + bookmarkedAt: null, + mirrorOf: null, + createdAt: 1, + updatedAt: 1, + origin: null, + kind: null, + }; + expect(decodeMcpNodeList([node])).toEqual([node]); + expect(() => decodeMcpNodeList([{ id: "x" }])).toThrow(); + }); + + test("decodeDailyIndexRows + claim helpers", () => { + expect(decodeDailyIndexRows([{ key: "k", nodeId: "n" }])).toEqual([ + { key: "k", nodeId: "n" }, + ]); + expect(decodeClaimDailyResult({ nodeId: "n" })).toEqual({ nodeId: "n" }); + expect(decodeDailyClaimValue({ nodeId: "n" })).toEqual({ nodeId: "n" }); + expect(() => decodeDailyClaimValue({})).toThrow(); + }); +}); diff --git a/worker/lunora-mcp-store.ts b/worker/lunora-mcp-store.ts index bae10133..82b9e737 100644 --- a/worker/lunora-mcp-store.ts +++ b/worker/lunora-mcp-store.ts @@ -12,16 +12,66 @@ * forwards authenticated RPCs. */ +import { Schema } from "effect"; import { resolveShard, type ShardNamespaceLike } from "lunorash/runtime"; -import type { ChangeOp, Node } from "../src/data/wire-schema"; import type { OutlineStore } from "./mcp-tools"; +import { NodeSchema, type ChangeOp, type Node } from "../src/data/wire-schema"; + type LunoraRpcEnv = { SHARD: ShardNamespaceLike; }; -type RpcResult = { result?: unknown; error?: { message?: string } }; +const RpcEnvelopeSchema = Schema.Struct({ + result: Schema.optional(Schema.Unknown), + error: Schema.optional( + Schema.Struct({ + message: Schema.optional(Schema.String), + }), + ), +}); + +const DailyIndexRowSchema = Schema.Struct({ + key: Schema.String, + nodeId: Schema.String, +}); + +const ClaimDailyResultSchema = Schema.Struct({ + nodeId: Schema.String, +}); + +const DailyClaimValueSchema = Schema.Struct({ + nodeId: Schema.String, +}); + +/** Decode unknown JSON at the Worker→shard trust boundary (ADR 0014 twin). */ +export function decodeShardRpcEnvelope(raw: unknown): { + result?: unknown; + error?: { message?: string }; +} { + return Schema.decodeUnknownSync(RpcEnvelopeSchema)(raw); +} + +export function decodeMcpNodeList(raw: unknown): Node[] { + return [...Schema.decodeUnknownSync(Schema.Array(NodeSchema))(raw ?? [])]; +} + +export function decodeDailyIndexRows( + raw: unknown, +): Array<{ key: string; nodeId: string }> { + return [ + ...Schema.decodeUnknownSync(Schema.Array(DailyIndexRowSchema))(raw ?? []), + ]; +} + +export function decodeClaimDailyResult(raw: unknown): { nodeId: string } { + return Schema.decodeUnknownSync(ClaimDailyResultSchema)(raw); +} + +export function decodeDailyClaimValue(raw: unknown): { nodeId: string } { + return Schema.decodeUnknownSync(DailyClaimValueSchema)(raw); +} async function shardRpc( env: LunoraRpcEnv, @@ -42,46 +92,22 @@ async function shardRpc( body: JSON.stringify({ functionPath, args }), }), ); - const json = (await res.json()) as RpcResult; - if (!res.ok || json.error) { + let json: unknown; + try { + json = await res.json(); + } catch { throw new Error( - json.error?.message ?? + `lunora shard rpc ${functionPath}: non-JSON response (${res.status})`, + ); + } + const envelope = decodeShardRpcEnvelope(json); + if (!res.ok || envelope.error) { + throw new Error( + envelope.error?.message ?? `lunora shard rpc ${functionPath} failed (${res.status})`, ); } - return json.result; -} - -function wireNode(n: { - id: string; - parentId: string | null; - prevSiblingId: string | null; - text: string; - isTask: boolean; - completed: boolean; - collapsed: boolean; - bookmarkedAt: number | null; - mirrorOf: string | null; - createdAt: number; - updatedAt: number; - origin: string | null; - kind: "paragraph" | null; -}): Node { - return { - id: n.id, - parentId: n.parentId, - prevSiblingId: n.prevSiblingId, - text: n.text, - isTask: n.isTask, - completed: n.completed, - collapsed: n.collapsed, - bookmarkedAt: n.bookmarkedAt, - mirrorOf: n.mirrorOf, - createdAt: n.createdAt, - updatedAt: n.updatedAt, - origin: n.origin, - kind: n.kind, - }; + return envelope.result; } /** @@ -94,10 +120,8 @@ export function createLunoraOutlineStore( ): OutlineStore { return { async getNodes() { - const rows = (await shardRpc(env, userId, "mcp:listNodes", { - userId, - })) as Array[0]>; - return (rows ?? []).map(wireNode); + const raw = await shardRpc(env, userId, "mcp:listNodes", { userId }); + return decodeMcpNodeList(raw); }, async applyBatch(ops: readonly ChangeOp[]) { @@ -113,10 +137,10 @@ export function createLunoraOutlineStore( async getKv(collection: string) { if (collection !== "daily-index") return []; - const rows = (await shardRpc(env, userId, "mcp:listDailyIndex", { + const raw = await shardRpc(env, userId, "mcp:listDailyIndex", { userId, - })) as Array<{ key: string; nodeId: string }>; - return rows ?? []; + }); + return decodeDailyIndexRows(raw); }, async getOrCreateKv(collection: string, key: string, value: unknown) { @@ -125,27 +149,19 @@ export function createLunoraOutlineStore( `lunora mcp store: unsupported kv collection ${collection}`, ); } - const candidate = - value && - typeof value === "object" && - "nodeId" in value && - typeof (value as { nodeId: unknown }).nodeId === "string" - ? (value as { nodeId: string }).nodeId - : null; - if (!candidate) { + let candidate: string; + try { + candidate = decodeDailyClaimValue(value).nodeId; + } catch { throw new Error("lunora mcp store: daily claim needs { nodeId }"); } - const result = (await shardRpc( - env, + const raw = await shardRpc(env, userId, "mutators:claimDailyMapping", { userId, - "mutators:claimDailyMapping", - { - userId, - key, - nodeId: candidate, - touchedAt: Date.now(), - }, - )) as { nodeId: string }; + key, + nodeId: candidate, + touchedAt: Date.now(), + }); + const result = decodeClaimDailyResult(raw); return { key, nodeId: result.nodeId }; }, }; From 22ba77486efe9c4f88b87cdea023e326f7d3b8ce Mon Sep 17 00:00:00 2001 From: Cameron Pak Date: Fri, 24 Jul 2026 10:14:48 -0500 Subject: [PATCH 57/59] fix(lunora): harden beta toggle, undo gate, and shard RPC decode Await account-prefs kvPut before reload; refuse classic undo when Lunora is on but sync isn't ready; map failed RPC bodies to status errors. Co-authored-by: Cursor --- src/components/history-restore.tsx | 36 +++++++++++++++++------------- src/data/account-prefs.ts | 24 +++++++++----------- src/routes/settings.tsx | 2 +- worker/lunora-mcp-store.test.ts | 11 +++++++++ worker/lunora-mcp-store.ts | 15 ++++++++++++- 5 files changed, 56 insertions(+), 32 deletions(-) diff --git a/src/components/history-restore.tsx b/src/components/history-restore.tsx index c7f5b58d..1c374575 100644 --- a/src/components/history-restore.tsx +++ b/src/components/history-restore.tsx @@ -55,24 +55,28 @@ export function runHistoryRestore( if (isLunoraSyncEnabled()) { const lunora = getLunoraOutlineContext(); - if (lunora) { - const nodes: OutlineNode[] = plan.targetNodes.map((n) => ({ - ...n, - userId: lunora.userId, - })); - if (plan.opCount < RESTORE_SLICE_OPS) { - trackLunoraMutation( - lunora.store.mutators.restoreNodes({ - userId: lunora.userId, - nodes, - }), - ); - if (plan.focusId) setPendingFocus(plan.focusId); - return; - } - void runLunoraRestore(kind, plan, nodes, lunora.userId); + // Flag ON but sync host not ready — never fall through to classic DO. + if (!lunora) { + plan.revert(); + toast.error("Sync is still starting — try again in a moment."); return; } + const nodes: OutlineNode[] = plan.targetNodes.map((n) => ({ + ...n, + userId: lunora.userId, + })); + if (plan.opCount < RESTORE_SLICE_OPS) { + trackLunoraMutation( + lunora.store.mutators.restoreNodes({ + userId: lunora.userId, + nodes, + }), + ); + if (plan.focusId) setPendingFocus(plan.focusId); + return; + } + void runLunoraRestore(kind, plan, nodes, lunora.userId); + return; } if (plan.opCount < RESTORE_SLICE_OPS) { diff --git a/src/data/account-prefs.ts b/src/data/account-prefs.ts index a8b35bad..17a78879 100644 --- a/src/data/account-prefs.ts +++ b/src/data/account-prefs.ts @@ -62,23 +62,19 @@ function mirrorLunoraFlag(enabled: boolean) { } } -function writeLunoraBeta(enabled: boolean) { - const exists = accountPrefsCollection.toArray.some( - (r) => r.id === LUNORA_BETA_ROW_ID, - ); - if (exists) { - accountPrefsCollection.update( - LUNORA_BETA_ROW_ID, - (draft) => void (draft.enabled = enabled), - ); - } else { - accountPrefsCollection.insert({ id: LUNORA_BETA_ROW_ID, enabled }); - } +/** + * Persist the preference via a direct `kvPut` — not the collection's + * insert/update handlers. Those fire async `onInsert`/`onUpdate` that + * `hardReset` aborts mid-flight, so the synced row never lands. + */ +async function writeLunoraBeta(enabled: boolean): Promise { + const row: AccountPrefRow = { id: LUNORA_BETA_ROW_ID, enabled }; + await kvPut(KV, [{ key: LUNORA_BETA_ROW_ID, value: row }]); } /** Persist Lunora beta opt-in, mirror the runtime flag, and reload. */ -export function setLunoraBetaEnabled(enabled: boolean): void { - writeLunoraBeta(enabled); +export async function setLunoraBetaEnabled(enabled: boolean): Promise { + await writeLunoraBeta(enabled); mirrorLunoraFlag(enabled); hardReset(window.location.pathname + window.location.search); } diff --git a/src/routes/settings.tsx b/src/routes/settings.tsx index b81aabe9..b0473c2b 100644 --- a/src/routes/settings.tsx +++ b/src/routes/settings.tsx @@ -760,7 +760,7 @@ function BetaSection() { setLunoraBetaEnabled(checked)} + onCheckedChange={(checked) => void setLunoraBetaEnabled(checked)} aria-label="Upgraded outline sync beta" /> } diff --git a/worker/lunora-mcp-store.test.ts b/worker/lunora-mcp-store.test.ts index bda408f0..34789c6a 100644 --- a/worker/lunora-mcp-store.test.ts +++ b/worker/lunora-mcp-store.test.ts @@ -72,6 +72,17 @@ describe("isLunoraOutlineEnabledForUser", () => { expect(called).toBe(false); }); + test("env force off skips preference lookup", async () => { + let called = false; + expect( + await isLunoraOutlineEnabledForUser({ LUNORA_OUTLINE: "0" }, async () => { + called = true; + return [{ id: "lunora-beta", enabled: true }]; + }), + ).toBe(false); + expect(called).toBe(false); + }); + test("unset env uses account pref", async () => { expect( await isLunoraOutlineEnabledForUser({}, async () => [ diff --git a/worker/lunora-mcp-store.ts b/worker/lunora-mcp-store.ts index 82b9e737..3964e23e 100644 --- a/worker/lunora-mcp-store.ts +++ b/worker/lunora-mcp-store.ts @@ -100,7 +100,20 @@ async function shardRpc( `lunora shard rpc ${functionPath}: non-JSON response (${res.status})`, ); } - const envelope = decodeShardRpcEnvelope(json); + let envelope: { result?: unknown; error?: { message?: string } }; + try { + envelope = decodeShardRpcEnvelope(json); + } catch (err) { + // Failed HTTP with a non-envelope body → status error, not a Schema dump. + if (!res.ok) { + throw new Error( + `lunora shard rpc ${functionPath} failed (${res.status})`, + ); + } + throw err instanceof Error + ? err + : new Error(`lunora shard rpc ${functionPath}: invalid response`); + } if (!res.ok || envelope.error) { throw new Error( envelope.error?.message ?? From 510520c17fca3cb8865005edc3668371010e3f18 Mon Sep 17 00:00:00 2001 From: Cameron Pak Date: Fri, 24 Jul 2026 16:49:50 -0500 Subject: [PATCH 58/59] chore(mobile-bar): add temporary keyboard geometry readout A flag-gated (`?kbdebug=on`) overlay printing innerHeight, clientHeight, the visualViewport band, and the mobile bar's measured rect, so the ADR 0030 keyboard anchoring could be diagnosed on a real iPhone rather than reasoned about. Removed again in the follow-up commit; kept in history because iOS viewport behavior changes and this will be worth re-applying. Co-Authored-By: Claude Opus 5 --- src/components/OutlineEditor.tsx | 7 + src/components/keyboard-debug.tsx | 208 ++++++++++++++++++++++++++++++ src/data/flags.ts | 36 ++++++ 3 files changed, 251 insertions(+) create mode 100644 src/components/keyboard-debug.tsx diff --git a/src/components/OutlineEditor.tsx b/src/components/OutlineEditor.tsx index 3686fda3..e81fe3da 100644 --- a/src/components/OutlineEditor.tsx +++ b/src/components/OutlineEditor.tsx @@ -127,6 +127,7 @@ import { setCaretOffset, watchCaretReveal, } from "./inline-code"; +import { KeyboardDebugOverlay } from "./keyboard-debug"; import { openInlineTargetAtCaret } from "./link-keymap"; import { useMenus } from "./menu-engine"; import { MirrorBadge } from "./mirror-chrome"; @@ -740,6 +741,12 @@ export function OutlineEditor({ rootId }: OutlineEditorProps) { findFocusedId={findFocusedId} /> + {/* TEMPORARY: viewport-geometry readout for diagnosing the bar's + keyboard anchoring on a real iPhone (`?kbdebug=on`, default off). + Sits beside the bar rather than inside it so it still renders when + the bar is hidden or mispositioned. Delete with keyboard-debug.tsx. */} + + {/* Desktop-only formatting toolbar over a text selection (ADR 0036). Gates itself on a fine pointer + a single-span selection, so it renders nothing on touch or when nothing is selected. */} diff --git a/src/components/keyboard-debug.tsx b/src/components/keyboard-debug.tsx new file mode 100644 index 00000000..dd9edbcd --- /dev/null +++ b/src/components/keyboard-debug.tsx @@ -0,0 +1,208 @@ +/** + * TEMPORARY diagnostic scaffolding. Delete this file, its flag + * (`isKeyboardDebugEnabled`), and its mount in `OutlineEditor` once the ADR 0030 + * keyboard-anchored bar's positioning is fixed. + * + * Why it exists: the mobile actions bar dropped behind the software keyboard when + * you edited a bullet at the bottom of the page, and the shipped lift formula + * (`innerHeight - (vv.height + vv.offsetTop)`) was provably correct for the + * coordinate model we THOUGHT we were in. It printed the numbers that showed the + * model was wrong on real hardware: on one iPhone, one keyboard session, + * `innerHeight` read 526, `clientHeight` 498, and the true pre-keyboard band + * bottom 590 — three different answers. Positioning now rides the + * VirtualKeyboard API's inset (`--kb-inset`, see data/keyboard-inset.ts), and + * this readout is what confirms that inset is committing sane values on a given + * device. + * + * Two design constraints, both load-bearing: + * + * 1. **It must not share the bar's positioning.** The bar is bottom-anchored and + * lifted by a computed offset; if that offset is the bug, a readout riding + * the same anchor goes off-screen with it and tells us nothing. So this is + * TOP-anchored and translated by `visualViewport.offsetTop` alone — the one + * number that places an element in the visible band without touching + * `innerHeight`. If the readout itself lands wrong, that IS the finding. + * 2. **It measures the bar rather than reading its props.** `[data-mobile-bar]` + * is queried each frame for its real `getBoundingClientRect()`, so we learn + * where the bar actually went, not where we asked it to go. + * + * The update loop is a plain unconditional rAF, not the event-coalesced pattern + * of the real hook: iOS commits keyboard geometry across an animation, and a + * debug tool that samples on the same events as the code under test can miss + * exactly the frame that misbehaves. + */ + +import { useEffect, useRef, useState } from "react"; + +import { isKeyboardDebugEnabled } from "../data/flags"; + +interface Sample { + /** `window.innerHeight` — the term the old, broken formula trusted. */ + innerH: number; + /** `documentElement.clientHeight` — the layout viewport `bottom:0` resolves against. */ + clientH: number; + vvH: number; + vvTop: number; + vvPageTop: number; + scale: number; + scrollY: number; + /** Today's lift: `innerH - (vvH + vvTop)`, unclamped so a negative shows. */ + gap: number; + /** `vv.height + vv.offsetTop` captured at focusin, before the keyboard animates. */ + baseline: number | null; + /** The polyfill's SPEC rule 2: `max(0, baseline - vvH - vvTop)`. */ + remainder: number | null; + /** The polyfill's SPEC rule 2 trueHeight: `max(0, baselineH - vvH)`. */ + trueHeight: number | null; + /** Measured `[data-mobile-bar]` edges in client coords, or null when unmounted. */ + barTop: number | null; + barBottom: number | null; + /** The live `--kb-inset` — the lift the bar is actually using. */ + vkInset: string; + /** Where the measured anchor probe reports `bottom: 0` landing. The lift is + * this minus `vv.height`, so `probeBottom - vvH` should equal `vkInset`. */ + probeBottom: number; +} + +function readSample( + baseline: { bottom: number; height: number } | null, +): Sample { + const vv = window.visualViewport; + const vvH = vv?.height ?? window.innerHeight; + const vvTop = vv?.offsetTop ?? 0; + const bar = document.querySelector("[data-mobile-bar]"); + const rect = bar?.getBoundingClientRect() ?? null; + return { + innerH: window.innerHeight, + clientH: document.documentElement.clientHeight, + vvH: Math.round(vvH), + vvTop: Math.round(vvTop), + vvPageTop: Math.round(vv?.pageTop ?? 0), + scale: vv?.scale ?? 1, + scrollY: Math.round(window.scrollY), + gap: Math.round(window.innerHeight - (vvH + vvTop)), + baseline: baseline ? Math.round(baseline.bottom) : null, + remainder: baseline + ? Math.max(0, Math.round(baseline.bottom - vvH - vvTop)) + : null, + trueHeight: baseline + ? Math.max(0, Math.round(baseline.height - vvH)) + : null, + barTop: rect ? Math.round(rect.top) : null, + barBottom: rect ? Math.round(rect.bottom) : null, + vkInset: + document.documentElement.style.getPropertyValue("--kb-inset") || + "(unset)", + probeBottom: Math.round( + ( + document.querySelector("[data-kb-probe]") ?? document.body + ).getBoundingClientRect().bottom, + ), + }; +} + +function Row({ label, value }: { label: string; value: string | number }) { + return ( +
    + {label} + {value} +
    + ); +} + +/** + * Live viewport-geometry readout, top-anchored to the visual viewport. Renders + * nothing unless `?kbdebug=on` has been visited on this device. + */ +export function KeyboardDebugOverlay() { + // Read the flag once: it writes to localStorage, and re-running it every + // render would re-persist on every commit for no benefit. + const [enabled] = useState(isKeyboardDebugEnabled); + const [sample, setSample] = useState(null); + // The per-focus baseline the polyfill's SPEC rule 2 describes: captured on + // focusin BEFORE the keyboard animates, held across editable-to-editable + // focus, cleared on focusout. A ref, not state — it must not drive renders. + const baseline = useRef<{ bottom: number; height: number } | null>(null); + + useEffect(() => { + if (!enabled) return; + + const captureBaseline = () => { + const vv = window.visualViewport; + if (!vv) return; + // Held across editable-to-editable focus: only the first focusin of a + // keyboard session sees a pre-keyboard viewport, so re-capturing on the + // second bullet would bake the shrunk height in as the baseline. + if (baseline.current) return; + baseline.current = { + bottom: vv.height + vv.offsetTop, + height: vv.height, + }; + }; + const clearBaseline = () => { + // focusout fires before the next focusin when hopping bullets, so defer + // the clear a frame and let a refocus keep the baseline alive. + requestAnimationFrame(() => { + const el = document.activeElement; + const stillEditing = el instanceof HTMLElement && el.isContentEditable; + if (!stillEditing) baseline.current = null; + }); + }; + + let raf = 0; + const tick = () => { + setSample(readSample(baseline.current)); + raf = requestAnimationFrame(tick); + }; + raf = requestAnimationFrame(tick); + document.addEventListener("focusin", captureBaseline); + document.addEventListener("focusout", clearBaseline); + return () => { + cancelAnimationFrame(raf); + document.removeEventListener("focusin", captureBaseline); + document.removeEventListener("focusout", clearBaseline); + }; + }, [enabled]); + + if (!enabled || !sample) return null; + + return ( +
    + + + + + + + + +
    + ); +} diff --git a/src/data/flags.ts b/src/data/flags.ts index 3ade304c..e5d67a50 100644 --- a/src/data/flags.ts +++ b/src/data/flags.ts @@ -64,3 +64,39 @@ export function isLunoraSyncEnabled(): boolean { } return LUNORA_SYNC_DEFAULT; } + +/** TEMPORARY diagnostic flag — delete with `keyboard-debug.tsx` (see below). */ +export const KEYBOARD_DEBUG_FLAG_KEY = "dotflowy:flag:kbdebug"; + +/** + * Whether the viewport-geometry readout renders (`keyboard-debug.tsx`). + * Default OFF; scaffolding for diagnosing the ADR 0030 keyboard-anchored bar on + * a real iPhone, to be deleted once the positioning bug is understood. + * + * Diverges from the flags above in ONE way, on purpose: `?kbdebug=on` PERSISTS + * to localStorage. Every other flag is per-load because a dogfooder can flip it + * from a desktop console; this one is read on a phone, where typing a URL once + * is the only ergonomic switch there is. `?kbdebug=off` clears it again. + * + * Deliberately NOT gated on `import.meta.env.DEV`: the device loop here is + * `bun run cf:dev`, a production build served to the phone over the LAN, where + * `DEV` is false and a DEV-gated readout would silently render nothing. + */ +export function isKeyboardDebugEnabled(): boolean { + if (typeof window === "undefined") return false; + try { + const q = new URLSearchParams(window.location.search).get("kbdebug"); + if (q === "on" || q === "1") { + window.localStorage.setItem(KEYBOARD_DEBUG_FLAG_KEY, "on"); + return true; + } + if (q === "off" || q === "0") { + window.localStorage.removeItem(KEYBOARD_DEBUG_FLAG_KEY); + return false; + } + return window.localStorage.getItem(KEYBOARD_DEBUG_FLAG_KEY) === "on"; + } catch { + // localStorage / URLSearchParams can throw; stay off. + return false; + } +} From 19aeace15b4557b8cd0ea699e07cf8bb8c29a0a7 Mon Sep 17 00:00:00 2001 From: Cameron Pak Date: Fri, 24 Jul 2026 16:50:34 -0500 Subject: [PATCH 59/59] fix(mobile-bar): measure the keyboard anchor instead of computing it The mobile actions bar and quick-add panel could sit behind the software keyboard when editing near the bottom of a long page, and could drift up the screen mid-session. Both surfaces lifted by `innerHeight - (visualViewport.height + offsetTop)`. On iOS Safari `innerHeight` is not a stable quantity: it read 714, 635 and 279 in one simulator session, and 526 then 482 on a physical iPhone with nothing else changing. At the bottom of a long page it collapses to equal `visualViewport.height`, which reduces the expression to `-offsetTop` -- always negative, always clamped to zero, so the bar never lifted. `clientHeight` and the VirtualKeyboard API's per-focus baseline were both tried and both fail the same way: Safari moves the box `position: fixed; bottom: 0` resolves against, and no property reliably names it, so every formula is correct only while the chrome sits where it assumed. So measure it. `data/keyboard-inset.ts` appends a zero-size fixed bottom:0 probe and publishes `probe.bottom - visualViewport.height` as `--kb-inset` on . Consumers read the custom property, so the keyboard animation costs zero React re-renders, and the safe-area pad subtracts the same inset rather than branching on it. `useKeyboardViewport` is deleted. ADR 0030 records all four rejected approaches with the measurements that killed each; AGENTS.md leads with "measure the anchor, don't compute it". Co-Authored-By: Claude Opus 5 --- .changeset/mobile-bar-keyboard-anchor.md | 5 + AGENTS.md | 4 +- docs/adr/0030-mobile-actions-bar.md | 62 ++++++- src/components/MobileActionsBar.tsx | 19 ++- src/components/OutlineEditor.tsx | 7 - src/components/keyboard-debug.tsx | 208 ----------------------- src/components/quick-add.tsx | 10 +- src/data/flags.ts | 36 ---- src/data/keyboard-inset.ts | 105 ++++++++++++ src/hooks/use-keyboard-viewport.ts | 50 ------ src/routes/__root.tsx | 3 + src/styles.css | 8 + 12 files changed, 193 insertions(+), 324 deletions(-) create mode 100644 .changeset/mobile-bar-keyboard-anchor.md delete mode 100644 src/components/keyboard-debug.tsx create mode 100644 src/data/keyboard-inset.ts delete mode 100644 src/hooks/use-keyboard-viewport.ts diff --git a/.changeset/mobile-bar-keyboard-anchor.md b/.changeset/mobile-bar-keyboard-anchor.md new file mode 100644 index 00000000..21142d26 --- /dev/null +++ b/.changeset/mobile-bar-keyboard-anchor.md @@ -0,0 +1,5 @@ +--- +"dotflowy": patch +--- + +The mobile editing toolbar and quick-add panel now stay put above the keyboard. They could previously sit behind it when you edited a bullet near the bottom of a long page, or drift up the screen mid-session, because iOS Safari moves the reference point they were positioned against as its own chrome resizes. diff --git a/AGENTS.md b/AGENTS.md index a84bc960..cccf3917 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -305,7 +305,7 @@ Inline Tailwind classes, not a separate CSS file (separate CSS only for the view A mobile-only, keyboard-anchored action strip ([ADR 0030](./docs/adr/0030-mobile-actions-bar.md)) — `MobileActionsBar` (`MobileActionsBar.tsx`), mounted once inside `OutlineEditor`, self-gating on pointer type. Six buttons: `[outdent][indent] | [undo][redo] | [complete][/]`. Styled as a floating frosted-glass capsule that blends with (can't remove) iOS's keyboard accessory bar — the ADR argues the shape grammar and the no-dismiss-button / boxed-check de-dups. -- **Three orthogonal signals, kept separate:** presence = `matchMedia("(pointer: coarse)")` (never mounts on desktop), visibility = an outline contentEditable being focused (`findFocusedId()` non-null, which also guarantees every button a target), position = `window.visualViewport` (`useKeyboardViewport`, rAF-throttled; falls back to `bottom:0` + `env(safe-area-inset-bottom)`, **not** `env(keyboard-inset-*)`). +- **Three orthogonal signals, kept separate:** presence = `matchMedia("(pointer: coarse)")` (never mounts on desktop), visibility = an outline contentEditable being focused (`findFocusedId()` non-null, which also guarantees every button a target), position = the **`--kb-inset`** CSS custom property, written on `` by `src/data/keyboard-inset.ts` (`styles.css` holds the `0px` default). **Do NOT compute this lift from a viewport property — measure the anchor.** That module appends a zero-size `position:fixed;bottom:0` probe and reads its `getBoundingClientRect().bottom` against `visualViewport.height`, because iOS Safari moves the box `bottom:0` resolves against: on one iPhone, one keyboard session, `innerHeight` read 526 then 482 while `clientHeight` said 498 and the pre-keyboard band said 590. `innerHeight`, `clientHeight`, and the VirtualKeyboard API's per-focus baseline were each tried and each is right only while the chrome sits where that formula assumed (ADR 0030 rejected alternatives). The hook that used to do this (`useKeyboardViewport`) is deleted; the safe-area pad SUBTRACTS the inset instead of branching on it. - **Dumb chrome over a facade.** `useMobileBarActions` re-exposes `commands`/`undo`/`redo` as zero-arg methods resolving `findFocusedId()` internally, so the bar inherits `runStructural` atomicity + protected-node guards and adds **no new mutation path**. Buttons are always-enabled; invalid actions no-op with feedback at the row. - **Every button `preventDefault`s on `onPointerDown`** (keeps the caret/keyboard alive), but the **action fires on `pointerup`, gated by a ~10px movement threshold** so a scroll of the `overflow-x-auto` pill doesn't trigger the button under your finger. - **The `/` button inserts a literal `/` via `document.execCommand("insertText", false, "/")`** so the row's own `detectSlash`/`useSlashMenu` opens the palette — don't hand-splice the DOM. @@ -406,7 +406,7 @@ A distraction-free capture overlay that files a real node in one gesture **witho - **Third render path.** The surface is a full mini single-node editor (`MiniNodeEditor`) so `#tags`, `[[`links, `/paragraph`, emphasis/highlight/spoiler, folding, and the caret menus all work live. It does NOT fork `ZoomedTitle` — it calls the same shared primitives (`decorate`, `readSource`, `getCaretOffset`, `watchCaretReveal`, `useSlashMenu`, `useMenus`, source-offset copy/cut/paste) the same way, **and renders the same `title:before-text` Seam-F node slots** (the todos checkbox etc.) — but only the PLUGIN slots, and only once the draft is BORN (before born the node is the `PLACEHOLDER_NODE`, so no slot fires against a fake id). **The keymap is curated text-authoring-ONLY:** **Enter = commit & close** (toast if off-page), **Cmd+Enter = commit & next**, Escape=close, plus all Seam-D formatting keymaps EXCEPT `Mod+Enter` — which quick-add claims for commit&next, so the mini-editor DROPS both title-path `Mod+Enter` behaviors (inline-link-open + todos toggle-task); todo toggle stays on `/todo`+`Mod+D`, and the drop is scoped to `MiniNodeEditor` (OutlineRow/ZoomedTitle keep their bindings). **Structural nav is suppressed by construction** (no indent/outdent/move/zoom/cross-bullet-arrow/expand-collapse wiring), and the `/` palette filters out `move`/`mirror`/`delete`/`send-to-today`/`mirror-to-today`. This is the bullet→title→**mini-editor** three-path trap: a new bullet key/caret/**slot** interaction no-ops here until added. `ctx.mutations` is a minimal `NodeCommands` acting on the single draft (structural methods are unreachable no-ops). - **Born on first keystroke, discard-if-empty.** No node exists until you type; each capture is a self-contained `DraftState` whose node is created (one `runStructural`, one undo point) at the destination's **bottom** on the first non-empty input. An untouched or fully-cleared capture leaves NOTHING (born-then-emptied → dropped). **Enter = commit & CLOSE** (files the single node, dismisses the overlay; if the destination isn't the current zoom root, a sonner `toast` "Added to {label}" with a **"Go there"** action zooms there — copies daily's "Send to Today" / move-dialog "Go"). **Cmd+Enter = commit & next** (snapshots the draft into the session list, starts a fresh draft, resets the destination to Today — the burst path; the session list is only meaningful here now). **Esc closes** (keeps a non-empty draft — commit-immediately). Each capture is a sibling in the chronological Today log. - **Destination = Seam L, lazy + seed-free.** The default is resolved through the new **capture-destination seam** (below), daily-filled with today's note. Resolution is **lazy** — Today is get-or-created only at born, so opening + abandoning mints nothing. The inline `Today ▾` chip retargets the current draft via `MoveDialogInner`'s Fuse search reused inline (`CaptureTargetPicker`, no modal-over-modal); unborn drafts swap resolver, born drafts live-move (one `runStructural`). Per-row relocate in the session list is one `runStructural` each. -- **Reach.** Desktop: the bare **`q`** hotkey (Todoist parity, a global capture-phase keydown registered like Cmd+K, NOT the title keymap) + a Cmd+K "Quick add" action (`command-actions.tsx`). `q` fires only when you're NOT typing — guarded on no modifier, `activeElement` not a contentEditable/input/textarea/select, and no `[role="dialog"]` open — so typing "q" in a bullet is untouched. It **replaced `Opt+Cmd+N`**, which browsers and macOS (incl. the in-app browser) swallow. **No new header button.** Mobile: `QuickAddFab` (coarse-pointer only via `useCoarsePointer()` — the shared `src/hooks/use-coarse-pointer.ts` seam the mobile bar also uses; shown when NOT editing and the overlay is closed), the overlay keyboard-anchored via `useKeyboardViewport()` — the ADR 0030 presence/visibility/position discipline. +- **Reach.** Desktop: the bare **`q`** hotkey (Todoist parity, a global capture-phase keydown registered like Cmd+K, NOT the title keymap) + a Cmd+K "Quick add" action (`command-actions.tsx`). `q` fires only when you're NOT typing — guarded on no modifier, `activeElement` not a contentEditable/input/textarea/select, and no `[role="dialog"]` open — so typing "q" in a bullet is untouched. It **replaced `Opt+Cmd+N`**, which browsers and macOS (incl. the in-app browser) swallow. **No new header button.** Mobile: `QuickAddFab` (coarse-pointer only via `useCoarsePointer()` — the shared `src/hooks/use-coarse-pointer.ts` seam the mobile bar also uses; shown when NOT editing and the overlay is closed), the overlay keyboard-anchored via the `--kb-inset` custom property — the ADR 0030 presence/visibility/position discipline. - **Destination picker = an anchored popover, not an inline swap.** The `Today ▾` chip (and each session row's destination button) opens the `CaptureTargetPicker` in a Base UI `Popover` (`src/components/ui/popover.tsx`) anchored to the trigger and origin-aware (`--transform-origin`), so picking never reflows the capture text. Base UI knows the popover is a child popup of the Quick-add Dialog, so the dialog's focus trap still lets the picker input take focus. The **keyboard-shortcut legend is fine-pointer only** (`!useCoarsePointer()`) — meaningless on a software keyboard. ## Plugins (`src/plugins`) diff --git a/docs/adr/0030-mobile-actions-bar.md b/docs/adr/0030-mobile-actions-bar.md index 3e7ca590..6f32f0d0 100644 --- a/docs/adr/0030-mobile-actions-bar.md +++ b/docs/adr/0030-mobile-actions-bar.md @@ -22,14 +22,51 @@ behaviors, and keeping them separate is what makes the bar robust: state) and hides on blur. This is not cosmetic: it guarantees every button has a valid target by construction — `findFocusedId()` is non-null whenever the bar is visible, so each zero-arg action can resolve the node it operates on with no ambiguity and no "nothing selected" state to design around. -- **Position = visual viewport.** A `useKeyboardViewport` hook reads `window.visualViewport` (rAF-throttled) - and translates the bar up by `innerHeight - (visualViewport.height + visualViewport.offsetTop)` so it rides - above the software keyboard. When the viewport isn't shrunk (hardware keyboard / iPad) that gap is 0 and the - bar falls back to `bottom:0` + `env(safe-area-inset-bottom)`. +- **Position = a measured anchor.** One CSS custom property, `--kb-inset`, written on `` by + `data/keyboard-inset.ts` from a zero-size `position: fixed; bottom: 0` probe (`styles.css` holds the `0px` + default). The bar stays `bottom: 0` and lifts by `calc(-1 * var(--kb-inset))`; its safe-area pad SUBTRACTS the + same inset, because a raised keyboard already covers the home indicator. Both declarations are branchless, and + the keyboard animation costs zero React re-renders. -**Why pure `visualViewport`, not `env(keyboard-inset-*)`.** The `env(keyboard-inset-*)` CSS environment -variables are Chromium-only; iOS Safari (the primary target) needs the JS `visualViewport` path regardless. -One system that covers both beats two half-systems, so the bar tracks the keyboard entirely in JS. +**Amended 2026-07-24: the lift cannot be computed from any live viewport property.** This ADR originally +specified `innerHeight - (visualViewport.height + visualViewport.offsetTop)`, computed in a `useKeyboardViewport` +hook. That shipped, dogfooded fine, and was wrong. Three candidate replacements were measured on device, in +order, and each was also wrong: + +1. **`window.innerHeight` is not a stable quantity on iOS Safari.** In one simulator session, one page, one + keyboard, it read **714, 635 and 279** as the page scrolled and the keyboard animated, silently switching + between describing the layout viewport and the visual one. At the bottom of a long page it collapses to + equal `visualViewport.height`, which reduces the whole expression to `-offsetTop`: always negative, always + clamped to zero, so the bar never lifted. That is the bug users hit, and it is bottom-of-page specific + because that is where the collapse happens. +2. **`documentElement.clientHeight` is not the answer either.** It looked like one — it held 714 across every + simulator sample while `innerHeight` thrashed — but on a physical iPhone the same instant read + `innerHeight` **526**, `clientHeight` **498**, and a true pre-keyboard band bottom of **590**. Three + different answers, and the one that matters is not readable after the keyboard has already opened. +3. **The VirtualKeyboard API's per-focus baseline is also not the answer.** Tried next, via + [`virtual-keyboard-api-polyfill`](https://github.com/cameronapak/polyfill-virtual-keyboard-api), whose SPEC + rule 2 captures the visible band at `focusin` and computes + `remainder = max(0, baselineBottom - vv.height - vv.offsetTop)`. Correct in principle and it committed + sane-looking values — but its baseline (590) is not the box `bottom: 0` resolves against (498), so it + over-lifted by exactly that 92px difference. Safari's chrome sits between the two. + +The reason all three fail is the same, and it is the finding worth keeping: **iOS Safari moves the box that +`position: fixed; bottom: 0` resolves against, and no property reliably names it.** Across two samples in one +keyboard session, `innerHeight` read 526 then **482** while `clientHeight` stayed 498 and the pre-keyboard band +stayed 590 — nothing else changed. That is why the bar was fine "for the most part" and then suddenly was not: +each formula is correct only while the chrome sits where that formula assumed. + +So the anchor is **measured, not computed**. `data/keyboard-inset.ts` appends a zero-size +`position: fixed; bottom: 0` probe and reads its `getBoundingClientRect().bottom`, which is where `bottom: 0` +lands by definition, with no model in between; a client rect is reported in the same space as +`visualViewport.height`, so the lift is their difference. Fed the two samples above it yields the correct 228 in +both, even though the anchor itself measured 418 and 390. Chrome drift is absorbed rather than modelled. + +**Why not `env(keyboard-inset-*)` even with a polyfill.** The original rejection was "Chromium-only, and iOS +needs the JS path anyway". A polyfill does close the engine gap, so that premise expired — but the API answers +a different question than we are asking. It reports the keyboard's occlusion of the _visible band_; we need the +distance from _our fixed anchor_, and on a page with browser chrome those differ. The name `--kb-inset` is kept +because it is what consumers mean, but the value is ours. **Why we blend with iOS's keyboard accessory bar rather than remove it.** On iOS Safari there is **no web API** to hide or reorder the system keyboard accessory bar (the floating pill with the prev/next-field arrows + a @@ -87,7 +124,16 @@ API first. check — dropping it de-duplicates and simplifies the control set. - **Width breakpoint instead of pointer type.** Would show the bar to a desktop user in a narrow window and hide it on a large tablet — the wrong axis. Pointer type is the finger signal. -- **`env(keyboard-inset-*)` for positioning.** Chromium-only; iOS needs the JS path anyway (see above). +- **Computing the lift from a viewport property.** Four attempts, all measured on device, all wrong the same + way — the anchor moves and the formula does not. Do not re-derive any of these: + - **`innerHeight`.** Shipped for a year. Not a stable quantity on iOS; collapses to `visualViewport.height` + at the bottom of a long page, which zeroes the lift entirely. This was the reported bug. + - **`clientHeight`.** The obvious correction, and stable across every simulator sample — but 92px off the + real anchor on a physical iPhone. + - **The VirtualKeyboard API baseline** (native `env(keyboard-inset-*)` or the polyfill). Answers a different + question: the keyboard's occlusion of the visible band, not the distance from our fixed anchor. + - **Zero lift (`bottom: 0` alone),** on the theory that Safari already resolves `bottom` against the visible + band. It does not; the bar landed at 589 against a band of 377. - **True `/` toggle.** Needs cross-component menu-state observation for a marginal gain over insert-and-open. - **Per-node reactive button state (enable/disable, checked).** Re-fights the ADR 0014 per-node render budget; row-level feedback already tells the user what happened. diff --git a/src/components/MobileActionsBar.tsx b/src/components/MobileActionsBar.tsx index f08b50df..a93c5928 100644 --- a/src/components/MobileActionsBar.tsx +++ b/src/components/MobileActionsBar.tsx @@ -11,7 +11,6 @@ import { useEffect, useRef, useState, type ReactNode } from "react"; import { cn } from "@/lib/utils"; import { useCoarsePointer } from "../hooks/use-coarse-pointer"; -import { useKeyboardViewport } from "../hooks/use-keyboard-viewport"; /** * The zero-arg command surface the bar drives. Each method resolves the focused @@ -143,22 +142,28 @@ export function MobileActionsBar({ }) { const coarse = useCoarsePointer(); const editing = useOutlineEditing(findFocusedId); - const keyboardOffset = useKeyboardViewport(); // Presence gate: a mouse user never mounts the bar. Visibility gate: no bar // without a focused bullet, so every action has a valid target by construction. if (!coarse || !editing) return null; return ( - // Outer layer owns positioning: fixed to the bottom, lifted above the software - // keyboard by the visualViewport gap, and the safe-area pad when it sits at the - // real bottom (no keyboard). The pill inside centers within this. + // Outer layer owns positioning: fixed to the bottom and lifted above the + // software keyboard by `--kb-inset` (styles.css -- the VirtualKeyboard API's + // inset, native on Chromium and polyfilled on Safari). The pill inside + // centers within this. + // + // Both declarations are branchless on purpose. The lift is 0px whenever no + // keyboard is up, and the safe-area pad SUBTRACTS the lift because a raised + // keyboard already covers the home indicator -- padding for it on top of the + // lift would float the bar a thumb's width too high. `max(0px, ...)` is what + // makes the two cases one expression instead of a ternary on a JS number.
    - {/* TEMPORARY: viewport-geometry readout for diagnosing the bar's - keyboard anchoring on a real iPhone (`?kbdebug=on`, default off). - Sits beside the bar rather than inside it so it still renders when - the bar is hidden or mispositioned. Delete with keyboard-debug.tsx. */} - - {/* Desktop-only formatting toolbar over a text selection (ADR 0036). Gates itself on a fine pointer + a single-span selection, so it renders nothing on touch or when nothing is selected. */} diff --git a/src/components/keyboard-debug.tsx b/src/components/keyboard-debug.tsx deleted file mode 100644 index dd9edbcd..00000000 --- a/src/components/keyboard-debug.tsx +++ /dev/null @@ -1,208 +0,0 @@ -/** - * TEMPORARY diagnostic scaffolding. Delete this file, its flag - * (`isKeyboardDebugEnabled`), and its mount in `OutlineEditor` once the ADR 0030 - * keyboard-anchored bar's positioning is fixed. - * - * Why it exists: the mobile actions bar dropped behind the software keyboard when - * you edited a bullet at the bottom of the page, and the shipped lift formula - * (`innerHeight - (vv.height + vv.offsetTop)`) was provably correct for the - * coordinate model we THOUGHT we were in. It printed the numbers that showed the - * model was wrong on real hardware: on one iPhone, one keyboard session, - * `innerHeight` read 526, `clientHeight` 498, and the true pre-keyboard band - * bottom 590 — three different answers. Positioning now rides the - * VirtualKeyboard API's inset (`--kb-inset`, see data/keyboard-inset.ts), and - * this readout is what confirms that inset is committing sane values on a given - * device. - * - * Two design constraints, both load-bearing: - * - * 1. **It must not share the bar's positioning.** The bar is bottom-anchored and - * lifted by a computed offset; if that offset is the bug, a readout riding - * the same anchor goes off-screen with it and tells us nothing. So this is - * TOP-anchored and translated by `visualViewport.offsetTop` alone — the one - * number that places an element in the visible band without touching - * `innerHeight`. If the readout itself lands wrong, that IS the finding. - * 2. **It measures the bar rather than reading its props.** `[data-mobile-bar]` - * is queried each frame for its real `getBoundingClientRect()`, so we learn - * where the bar actually went, not where we asked it to go. - * - * The update loop is a plain unconditional rAF, not the event-coalesced pattern - * of the real hook: iOS commits keyboard geometry across an animation, and a - * debug tool that samples on the same events as the code under test can miss - * exactly the frame that misbehaves. - */ - -import { useEffect, useRef, useState } from "react"; - -import { isKeyboardDebugEnabled } from "../data/flags"; - -interface Sample { - /** `window.innerHeight` — the term the old, broken formula trusted. */ - innerH: number; - /** `documentElement.clientHeight` — the layout viewport `bottom:0` resolves against. */ - clientH: number; - vvH: number; - vvTop: number; - vvPageTop: number; - scale: number; - scrollY: number; - /** Today's lift: `innerH - (vvH + vvTop)`, unclamped so a negative shows. */ - gap: number; - /** `vv.height + vv.offsetTop` captured at focusin, before the keyboard animates. */ - baseline: number | null; - /** The polyfill's SPEC rule 2: `max(0, baseline - vvH - vvTop)`. */ - remainder: number | null; - /** The polyfill's SPEC rule 2 trueHeight: `max(0, baselineH - vvH)`. */ - trueHeight: number | null; - /** Measured `[data-mobile-bar]` edges in client coords, or null when unmounted. */ - barTop: number | null; - barBottom: number | null; - /** The live `--kb-inset` — the lift the bar is actually using. */ - vkInset: string; - /** Where the measured anchor probe reports `bottom: 0` landing. The lift is - * this minus `vv.height`, so `probeBottom - vvH` should equal `vkInset`. */ - probeBottom: number; -} - -function readSample( - baseline: { bottom: number; height: number } | null, -): Sample { - const vv = window.visualViewport; - const vvH = vv?.height ?? window.innerHeight; - const vvTop = vv?.offsetTop ?? 0; - const bar = document.querySelector("[data-mobile-bar]"); - const rect = bar?.getBoundingClientRect() ?? null; - return { - innerH: window.innerHeight, - clientH: document.documentElement.clientHeight, - vvH: Math.round(vvH), - vvTop: Math.round(vvTop), - vvPageTop: Math.round(vv?.pageTop ?? 0), - scale: vv?.scale ?? 1, - scrollY: Math.round(window.scrollY), - gap: Math.round(window.innerHeight - (vvH + vvTop)), - baseline: baseline ? Math.round(baseline.bottom) : null, - remainder: baseline - ? Math.max(0, Math.round(baseline.bottom - vvH - vvTop)) - : null, - trueHeight: baseline - ? Math.max(0, Math.round(baseline.height - vvH)) - : null, - barTop: rect ? Math.round(rect.top) : null, - barBottom: rect ? Math.round(rect.bottom) : null, - vkInset: - document.documentElement.style.getPropertyValue("--kb-inset") || - "(unset)", - probeBottom: Math.round( - ( - document.querySelector("[data-kb-probe]") ?? document.body - ).getBoundingClientRect().bottom, - ), - }; -} - -function Row({ label, value }: { label: string; value: string | number }) { - return ( -
    - {label} - {value} -
    - ); -} - -/** - * Live viewport-geometry readout, top-anchored to the visual viewport. Renders - * nothing unless `?kbdebug=on` has been visited on this device. - */ -export function KeyboardDebugOverlay() { - // Read the flag once: it writes to localStorage, and re-running it every - // render would re-persist on every commit for no benefit. - const [enabled] = useState(isKeyboardDebugEnabled); - const [sample, setSample] = useState(null); - // The per-focus baseline the polyfill's SPEC rule 2 describes: captured on - // focusin BEFORE the keyboard animates, held across editable-to-editable - // focus, cleared on focusout. A ref, not state — it must not drive renders. - const baseline = useRef<{ bottom: number; height: number } | null>(null); - - useEffect(() => { - if (!enabled) return; - - const captureBaseline = () => { - const vv = window.visualViewport; - if (!vv) return; - // Held across editable-to-editable focus: only the first focusin of a - // keyboard session sees a pre-keyboard viewport, so re-capturing on the - // second bullet would bake the shrunk height in as the baseline. - if (baseline.current) return; - baseline.current = { - bottom: vv.height + vv.offsetTop, - height: vv.height, - }; - }; - const clearBaseline = () => { - // focusout fires before the next focusin when hopping bullets, so defer - // the clear a frame and let a refocus keep the baseline alive. - requestAnimationFrame(() => { - const el = document.activeElement; - const stillEditing = el instanceof HTMLElement && el.isContentEditable; - if (!stillEditing) baseline.current = null; - }); - }; - - let raf = 0; - const tick = () => { - setSample(readSample(baseline.current)); - raf = requestAnimationFrame(tick); - }; - raf = requestAnimationFrame(tick); - document.addEventListener("focusin", captureBaseline); - document.addEventListener("focusout", clearBaseline); - return () => { - cancelAnimationFrame(raf); - document.removeEventListener("focusin", captureBaseline); - document.removeEventListener("focusout", clearBaseline); - }; - }, [enabled]); - - if (!enabled || !sample) return null; - - return ( -
    - - - - - - - - -
    - ); -} diff --git a/src/components/quick-add.tsx b/src/components/quick-add.tsx index 89f4bc25..f082da04 100644 --- a/src/components/quick-add.tsx +++ b/src/components/quick-add.tsx @@ -95,7 +95,6 @@ import { import { getTreeIndex, useNode } from "../data/tree-store"; import { getViewRootId } from "../data/view-state"; import { useCoarsePointer } from "../hooks/use-coarse-pointer"; -import { useKeyboardViewport } from "../hooks/use-keyboard-viewport"; import { getCaptureDestination, keymapSpecs, @@ -634,7 +633,6 @@ function QuickAddOverlay({ onClose }: { onClose: () => void }) { // Position signal (ADR 0030): lift the panel above the software keyboard on a // coarse pointer; a fine pointer centers it and ignores the offset. const coarse = useCoarsePointer(); - const keyboardOffset = useKeyboardViewport(); // The destination for the CURRENT draft (resets to the default per node). The // default is the LAZY provider (label known now, node created only at born) -- @@ -1033,11 +1031,11 @@ function QuickAddOverlay({ onClose }: { onClose: () => void }) { style={ coarse ? { - transform: `translateY(-${keyboardOffset}px)`, + // Lift above the software keyboard via the VirtualKeyboard + // inset; branchless, same reasoning as MobileActionsBar. + transform: "translateY(calc(-1 * var(--kb-inset)))", marginBottom: - keyboardOffset === 0 - ? "env(safe-area-inset-bottom)" - : undefined, + "max(0px, calc(env(safe-area-inset-bottom) - var(--kb-inset)))", } : undefined } diff --git a/src/data/flags.ts b/src/data/flags.ts index e5d67a50..3ade304c 100644 --- a/src/data/flags.ts +++ b/src/data/flags.ts @@ -64,39 +64,3 @@ export function isLunoraSyncEnabled(): boolean { } return LUNORA_SYNC_DEFAULT; } - -/** TEMPORARY diagnostic flag — delete with `keyboard-debug.tsx` (see below). */ -export const KEYBOARD_DEBUG_FLAG_KEY = "dotflowy:flag:kbdebug"; - -/** - * Whether the viewport-geometry readout renders (`keyboard-debug.tsx`). - * Default OFF; scaffolding for diagnosing the ADR 0030 keyboard-anchored bar on - * a real iPhone, to be deleted once the positioning bug is understood. - * - * Diverges from the flags above in ONE way, on purpose: `?kbdebug=on` PERSISTS - * to localStorage. Every other flag is per-load because a dogfooder can flip it - * from a desktop console; this one is read on a phone, where typing a URL once - * is the only ergonomic switch there is. `?kbdebug=off` clears it again. - * - * Deliberately NOT gated on `import.meta.env.DEV`: the device loop here is - * `bun run cf:dev`, a production build served to the phone over the LAN, where - * `DEV` is false and a DEV-gated readout would silently render nothing. - */ -export function isKeyboardDebugEnabled(): boolean { - if (typeof window === "undefined") return false; - try { - const q = new URLSearchParams(window.location.search).get("kbdebug"); - if (q === "on" || q === "1") { - window.localStorage.setItem(KEYBOARD_DEBUG_FLAG_KEY, "on"); - return true; - } - if (q === "off" || q === "0") { - window.localStorage.removeItem(KEYBOARD_DEBUG_FLAG_KEY); - return false; - } - return window.localStorage.getItem(KEYBOARD_DEBUG_FLAG_KEY) === "on"; - } catch { - // localStorage / URLSearchParams can throw; stay off. - return false; - } -} diff --git a/src/data/keyboard-inset.ts b/src/data/keyboard-inset.ts new file mode 100644 index 00000000..13fc6b6a --- /dev/null +++ b/src/data/keyboard-inset.ts @@ -0,0 +1,105 @@ +/** + * Publishes `--kb-inset` on ``: how far a `position: fixed; bottom: 0` + * surface must lift to sit just above the software keyboard (ADR 0030). + * + * **It MEASURES the anchor instead of computing it.** Every previous version of + * this tried to derive the lift from a viewport property, and each one worked + * until iOS Safari moved its chrome. Measured on one iPhone across two samples, + * one keyboard session: + * + * | innerHeight | clientHeight | pre-keyboard band | vv.height | vv.offsetTop | + * | ----------- | ------------ | ----------------- | --------- | ------------ | + * | 526 | 498 | 590 | 234 | 108 | + * | 482 | 498 | 590 | 234 | 108 | + * + * Three candidate anchors, none of them agreeing, and `innerHeight` moving 44px + * between samples while nothing else did. Formulas built on `innerHeight`, + * `clientHeight`, or the pre-keyboard band are each correct only while the + * chrome is in the state they assumed — which is exactly why the bar was fine + * "for the most part" and then suddenly wasn't. + * + * So: append a zero-size `position: fixed; bottom: 0` PROBE and read its + * `getBoundingClientRect().bottom`. That IS where `bottom: 0` resolves, by + * definition, with no model in between — and a client rect is reported in the + * same space as `visualViewport.height`, so the band's bottom edge is just + * `vv.height` and the lift is their difference. Fed the two samples above, this + * yields the correct 228 in both even though the anchor itself measured 418 and + * 390. Any future chrome drift is absorbed for free. + * + * Writing a CSS custom property rather than returning a React value is + * deliberate: the keyboard animates over many frames, and no consumer should + * re-render per frame to follow it. `styles.css` declares the `0px` default. + */ + +/** Runs only while a text-editable is focused — the only time the value can be + * non-zero, and the only time a per-frame loop is worth paying for. */ +function isEditing(): boolean { + const el = document.activeElement; + return ( + el instanceof HTMLElement && + (el.isContentEditable || + el instanceof HTMLInputElement || + el instanceof HTMLTextAreaElement) + ); +} + +function install(): void { + const vv = window.visualViewport; + if (!vv) return; + + const probe = document.createElement("div"); + // `visibility: hidden` still produces a layout box (unlike `display: none`), + // which is the whole point — we need its rect, not its pixels. + probe.style.cssText = + "position:fixed;bottom:0;left:0;width:0;height:0;visibility:hidden;pointer-events:none"; + probe.setAttribute("aria-hidden", "true"); + document.body.appendChild(probe); + + const root = document.documentElement; + let current = -1; + let raf = 0; + + const measure = () => { + raf = 0; + // Not editing: no keyboard, so no lift. Cheap early exit that also stops the + // loop from fighting a `bottom: 0` element during ordinary page scrolling. + const lift = isEditing() + ? Math.max( + 0, + Math.round(probe.getBoundingClientRect().bottom - vv.height), + ) + : 0; + // Only touch the DOM when the value actually changes: iOS fires resize and + // scroll in bursts through the keyboard animation, and most frames repeat. + if (lift !== current) { + current = lift; + root.style.setProperty("--kb-inset", `${lift}px`); + } + if (isEditing()) raf = requestAnimationFrame(measure); + }; + + const start = () => { + if (!raf) raf = requestAnimationFrame(measure); + }; + const stop = () => { + // focusout fires before the next focusin when moving between bullets, so + // settle a frame before deciding the keyboard is really gone. + requestAnimationFrame(() => { + if (!isEditing()) measure(); + }); + }; + + // The rAF loop is the primary signal (Safari moves its chrome without firing + // anything useful); these just start it and catch the settle after blur. + document.addEventListener("focusin", start); + document.addEventListener("focusout", stop); + vv.addEventListener("resize", start); + vv.addEventListener("scroll", start); + measure(); +} + +// SPA-only, and the `/` prerender has no window (AGENTS.md SPA/no-SSR rule). +if (typeof window !== "undefined") { + if (document.body) install(); + else document.addEventListener("DOMContentLoaded", install, { once: true }); +} diff --git a/src/hooks/use-keyboard-viewport.ts b/src/hooks/use-keyboard-viewport.ts deleted file mode 100644 index 9bfa4a23..00000000 --- a/src/hooks/use-keyboard-viewport.ts +++ /dev/null @@ -1,50 +0,0 @@ -import { useEffect, useState } from "react"; - -/** - * The height (px) at the bottom of the layout viewport currently covered by the - * software keyboard, tracked via `window.visualViewport` (ADR 0030). - * - * When the on-screen keyboard opens, the VISUAL viewport shrinks but the LAYOUT - * viewport (what `position: fixed; bottom: 0` is measured against) does not, so a - * bottom-pinned element sits behind the keyboard. The covered gap is - * `innerHeight - (visualViewport.height + visualViewport.offsetTop)`; a caller - * translates its bar up by that amount to ride directly above the keyboard. - * - * Returns 0 whenever the viewport isn't shrunk (hardware keyboard / iPad / no - * `visualViewport` support) — the caller falls back to a real bottom anchor then. - * Listeners are rAF-throttled; iOS fires `resize`/`scroll` in bursts during the - * keyboard animation. - */ -export function useKeyboardViewport(): number { - const [offset, setOffset] = useState(0); - - useEffect(() => { - const vv = window.visualViewport; - if (!vv) return; - - let raf = 0; - const update = () => { - raf = 0; - // offsetTop covers the case where the page has scrolled within the visual - // viewport (iOS): the visible band's bottom edge, in layout coordinates, is - // offsetTop + height. Clamp negatives (transient over-scroll / rounding). - const gap = window.innerHeight - (vv.height + vv.offsetTop); - setOffset(gap > 0 ? gap : 0); - }; - const schedule = () => { - if (raf) return; - raf = requestAnimationFrame(update); - }; - - update(); - vv.addEventListener("resize", schedule); - vv.addEventListener("scroll", schedule); - return () => { - vv.removeEventListener("resize", schedule); - vv.removeEventListener("scroll", schedule); - if (raf) cancelAnimationFrame(raf); - }; - }, []); - - return offset; -} diff --git a/src/routes/__root.tsx b/src/routes/__root.tsx index dc702cef..581bf11f 100644 --- a/src/routes/__root.tsx +++ b/src/routes/__root.tsx @@ -1,6 +1,9 @@ // Sentry init must run before any app code (#227). SPA mode has no client entry // file, so the root route module is the earliest reliable place. Keep first. import "../instrument.client"; +// Installs the VirtualKeyboard API (native on Chromium, polyfilled on Safari) so +// `--kb-inset` in styles.css resolves. Side-effect import, SSR-safe (ADR 0030). +import "../data/keyboard-inset"; import type { ReactNode } from "react"; import { diff --git a/src/styles.css b/src/styles.css index 9536569f..0acc9ef2 100644 --- a/src/styles.css +++ b/src/styles.css @@ -216,6 +216,14 @@ */ :root { --node-deco-budget: 200px; + + /* How far a bottom-pinned surface must lift to clear the software keyboard + (ADR 0030). `data/keyboard-inset.ts` overwrites this inline on from a + MEASURED anchor probe; this declaration is the default that holds when JS + hasn't run, no keyboard is up, or the device has no software keyboard. + Consumers read this one var rather than a React hook, so the keyboard + animation costs zero re-renders. */ + --kb-inset: 0px; } .node-deco { display: flex;