diff --git a/apps/web/package.json b/apps/web/package.json index 9f06db8..34b3e59 100644 --- a/apps/web/package.json +++ b/apps/web/package.json @@ -26,6 +26,7 @@ "@profullstack/coinpay-onboard": "0.3.1", "@profullstack/footer": "latest", "@profullstack/form-guard": "^0.2.2", + "@profullstack/key-grants": "0.1.0", "@profullstack/pluginstore": "^0.1.2", "@profullstack/profile": "0.1.8", "@profullstack/redeem-credits": "0.2.0", @@ -40,6 +41,7 @@ "react-dom": "latest" }, "devDependencies": { + "@profullstack/sealed-secrets": "0.2.0", "@tailwindcss/postcss": "latest", "@types/node": "latest", "@types/react": "latest", diff --git a/apps/web/src/app/.well-known/logicsrc-grant/[nonce]/route.ts b/apps/web/src/app/.well-known/logicsrc-grant/[nonce]/route.ts new file mode 100644 index 0000000..3260cd0 --- /dev/null +++ b/apps/web/src/app/.well-known/logicsrc-grant/[nonce]/route.ts @@ -0,0 +1,15 @@ +/** + * GET /.well-known/logicsrc-grant/ + * + * The grant manifest logicsrc fetches over TLS: which keys b1dz asks for, the + * person's vault inbox key they are sealed to, and the webhook to deliver to. + * Public by design; an unknown or expired nonce is a 404. + */ +import { keyGrants } from '@/lib/logicsrc-grants'; + +export const dynamic = 'force-dynamic'; + +export async function GET(_req: Request, { params }: { params: Promise<{ nonce: string }> }) { + const { nonce } = await params; + return keyGrants().manifestResponse(nonce); +} diff --git a/apps/web/src/app/api/v1/logicsrc/grant/start/route.ts b/apps/web/src/app/api/v1/logicsrc/grant/start/route.ts new file mode 100644 index 0000000..6c7dfe9 --- /dev/null +++ b/apps/web/src/app/api/v1/logicsrc/grant/start/route.ts @@ -0,0 +1,32 @@ +/** + * GET /api/v1/logicsrc/grant/start?keys=ANTHROPIC_API_KEY,OPENAI_API_KEY&next=/settings + * + * Signed in: records a grant request and sends the person to logicsrc to + * approve it (303). Signed out: to /login. b1dz only asks for API keys, never + * wallet or signing keys (see lib/logicsrc-keys.ts). + */ +import { NextResponse, type NextRequest } from 'next/server'; +import { parseKeyNames, KeyGrantError } from '@profullstack/key-grants'; +import { authenticate } from '@/lib/api-auth'; +import { keyGrants } from '@/lib/logicsrc-grants'; +import { isGrantableKey } from '@/lib/logicsrc-keys'; + +export const dynamic = 'force-dynamic'; + +const back = (code: string) => new Response(null, { status: 303, headers: { location: `/settings?logicsrc=${code}` } }); + +export async function GET(req: NextRequest) { + const kg = keyGrants(); + const url = new URL(req.url); + const auth = await authenticate(req); + if (!auth) return NextResponse.redirect(new URL('/login?next=/settings', kg.origin), 303); + + const keys = url.searchParams.get('keys'); + try { + if (!parseKeyNames(keys ?? '').every(isGrantableKey)) return back('bad_key'); + } catch (e) { + if (e instanceof KeyGrantError) return back(e.code); + throw e; + } + return kg.startResponse({ userId: auth.userId, keys: keys ?? '', next: url.searchParams.get('next') ?? '/settings', errorPath: '/settings' }); +} diff --git a/apps/web/src/app/api/v1/logicsrc/webhook/route.ts b/apps/web/src/app/api/v1/logicsrc/webhook/route.ts new file mode 100644 index 0000000..88b0f22 --- /dev/null +++ b/apps/web/src/app/api/v1/logicsrc/webhook/route.ts @@ -0,0 +1,14 @@ +/** + * POST /api/v1/logicsrc/webhook + * + * grant.delivered / grant.updated / grant.revoked from logicsrc. No session and + * no CSRF: every delivery is Standard Webhooks signed with the secret of the + * request it answers, checked over the raw body. + */ +import { keyGrants } from '@/lib/logicsrc-grants'; + +export const dynamic = 'force-dynamic'; + +export async function POST(req: Request) { + return keyGrants().webhookResponse(req); +} diff --git a/apps/web/src/app/settings/settings-client.tsx b/apps/web/src/app/settings/settings-client.tsx index 70e196e..68f04f6 100644 --- a/apps/web/src/app/settings/settings-client.tsx +++ b/apps/web/src/app/settings/settings-client.tsx @@ -14,6 +14,7 @@ import { AgentsSection } from './sections/agents'; import { ProfileSection } from './sections/profile'; import type { SettingsResponse, VaultKey } from './shared'; import { VaultPanel } from './vault-panel'; +import { logicsrcNotice } from '@/lib/logicsrc-keys'; type Tab = 'profile' | 'plugins' | 'wallets' | 'equities' | 'budget' | 'ai' | 'agents' | 'solana' | 'thresholds' | 'strategies' | 'toggles'; @@ -42,6 +43,12 @@ export function SettingsClient() { // Surface the result of an OAuth redirect (?oauth=success|&plugin=…). useEffect(() => { const q = new URLSearchParams(window.location.search); + const logicsrc = q.get('logicsrc'); + if (logicsrc) { + setOauthNotice(logicsrcNotice(logicsrc)); + window.history.replaceState(null, '', '/settings'); + return; + } const result = q.get('oauth'); if (!result) return; const plugin = q.get('plugin') ?? 'broker'; diff --git a/apps/web/src/app/settings/vault-panel.tsx b/apps/web/src/app/settings/vault-panel.tsx index 40ab66b..3876d01 100644 --- a/apps/web/src/app/settings/vault-panel.tsx +++ b/apps/web/src/app/settings/vault-panel.tsx @@ -24,6 +24,7 @@ import { UNLOCK_DEFAULT_TTL_SECONDS, } from '@b1dz/core/sealed-secrets'; import type { SettingsResponse, VaultKey } from './shared'; +import { DEFAULT_LOGICSRC_KEYS, LOGICSRC_GRANTABLE_KEYS } from '@/lib/logicsrc-keys'; const TTL_OPTIONS: { label: string; seconds: number }[] = [ { label: '1 hour', seconds: 3600 }, @@ -287,6 +288,8 @@ export function VaultPanel({ )} + +
Trading session @@ -312,3 +315,33 @@ export function VaultPanel({ ); } + +/** + * Ask logicsrc for API keys instead of pasting them. The person approves on + * logicsrc, their browser seals each key to this vault, and it lands in the + * vault inbox: the next unlock applies it. Rotations arrive on their own. + */ +function LogicsrcKeys() { + const [picked, setPicked] = useState(DEFAULT_LOGICSRC_KEYS); + const toggle = (k: string) => setPicked((p) => (p.includes(k) ? p.filter((x) => x !== k) : [...p, k])); + const href = `/api/v1/logicsrc/grant/start?keys=${encodeURIComponent(picked.join(','))}&next=${encodeURIComponent('/settings')}`; + return ( +
+ Get keys from logicsrc +

+ Keep your API keys in logicsrc and grant them to b1dz: they arrive sealed to this vault (b1dz cannot read them), apply on your next unlock, and follow your rotations. Wallet and signing keys are never requested. +

+
+ {LOGICSRC_GRANTABLE_KEYS.map((k) => ( + + ))} +
+ {picked.length > 0 + ? Get from logicsrc + : pick at least one key} +
+ ); +} diff --git a/apps/web/src/lib/logicsrc-grants.test.ts b/apps/web/src/lib/logicsrc-grants.test.ts new file mode 100644 index 0000000..4eb42f9 --- /dev/null +++ b/apps/web/src/lib/logicsrc-grants.test.ts @@ -0,0 +1,205 @@ +import { createHmac } from 'node:crypto'; +import { describe, expect, it, vi, beforeEach } from 'vitest'; +import { createSealer } from '@profullstack/sealed-secrets'; +import { createSeal, openInbox, sealToInbox, type InboxEntry, type SealRecord } from '@b1dz/core/sealed-secrets'; + +// ---- a tiny in-memory stand-in for the supabase-js calls the module makes ---- +type Row = Record; +const KEYS: Record = { kg_grant_requests: 'nonce', kg_grants: 'grant_id', user_settings: 'user_id' }; + +function fakeDb() { + const tables: Record> = { kg_grant_requests: new Map(), kg_grants: new Map(), user_settings: new Map() }; + const from = (t: string) => { + const tbl = tables[t]; + const pk = KEYS[t]; + let filters: [string, unknown][] = []; + let orderBy: string | null = null; + let lim = Infinity; + const rows = () => { + let r = [...tbl.values()].filter((row) => filters.every(([c, v]) => row[c] === v)); + if (orderBy) r = r.sort((a, b) => Number(b[orderBy!]) - Number(a[orderBy!])); + return r.slice(0, lim).map((x) => structuredClone(x)); + }; + const q = { + select: () => q, + eq: (c: string, v: unknown) => { filters.push([c, v]); return q; }, + order: (c: string) => { orderBy = c; return q; }, + limit: (n: number) => { lim = n; return q; }, + maybeSingle: async () => ({ data: rows()[0] ?? null, error: null }), + then: (res: (v: unknown) => void) => res({ data: rows(), error: null }), + insert: async (row: Row) => { + if (tbl.has(String(row[pk]))) return { error: { message: 'duplicate' } }; + tbl.set(String(row[pk]), structuredClone(row)); + return { error: null }; + }, + upsert: async (row: Row) => { + tbl.set(String(row[pk]), { ...(tbl.get(String(row[pk])) ?? {}), ...structuredClone(row) }); + return { error: null }; + }, + }; + filters = []; + return q; + }; + return { from, tables }; +} + +let db = fakeDb(); +vi.mock('@/lib/supabase', () => ({ createAdminSupabase: () => ({ from: (t: string) => db.from(t) }) })); +let authed: { userId: string } | null = null; +vi.mock('@/lib/api-auth', () => ({ authenticate: async () => authed })); + +const { b1dzKeyGrants, parseSealedEntry } = await import('./logicsrc-grants'); + +const USER = '6f1d2c3b-4a59-4e6f-8a7b-9c0d1e2f3a4b'; +const ORIGIN = 'https://b1dz.test'; +const npmSealer = createSealer({ app: 'b1dz', scope: 'user_settings' }); + +function sign(secret: string, body: string, id = 'msg_1', ts = Math.floor(Date.now() / 1000)) { + const sig = createHmac('sha256', Buffer.from(secret, 'utf8')).update(`${id}.${ts}.${body}`).digest('base64'); + return { 'webhook-id': id, 'webhook-timestamp': String(ts), 'webhook-signature': `v1,${sig}` }; +} + +async function withVault() { + const made = await createSeal('a long enough passphrase', USER); + db.tables.user_settings.set(USER, { user_id: USER, seal_version: 2, seal: made.seal, secret_inbox: [] }); + return made; +} +const inbox = () => (db.tables.user_settings.get(USER)!.secret_inbox as InboxEntry[]); + +beforeEach(() => { + db = fakeDb(); + authed = null; +}); + +describe('sealing compatibility', () => { + it('@profullstack/sealed-secrets (b1dz, user_settings) and @b1dz/core seal to each other', async () => { + const { dek, seal } = await createSeal('a long enough passphrase', USER); + const fromNpm = await npmSealer.sealToInbox(seal.inbox_public_key, { ANTHROPIC_API_KEY: 'sk-ant-from-npm' }, USER); + expect((await openInbox(dek, seal, [fromNpm], USER)).patch).toEqual({ ANTHROPIC_API_KEY: 'sk-ant-from-npm' }); + + const fromCore = await sealToInbox(seal.inbox_public_key, { OPENAI_API_KEY: 'sk-from-core' }, USER); + expect((await npmSealer.openInbox(dek, seal, [fromCore], USER)).patch).toEqual({ OPENAI_API_KEY: 'sk-from-core' }); + + // A different app or scope does not open. + const other = await createSealer({ app: 'meshhook', scope: 'user_settings' }).sealToInbox(seal.inbox_public_key, { X: 'y' }, USER); + expect((await openInbox(dek, seal, [other], USER)).consumed).toEqual([]); + }, 60_000); +}); + +describe('b1dz key grants', () => { + const kg = () => b1dzKeyGrants({ db, origin: ORIGIN }); + + it('start needs a vault; the manifest names the vault inbox and the webhook', async () => { + await expect(kg().start({ userId: USER, keys: 'ANTHROPIC_API_KEY' })).rejects.toMatchObject({ code: 'needs_vault' }); + const { seal } = await withVault(); + + const to = new URL(await kg().start({ userId: USER, keys: 'ANTHROPIC_API_KEY,OPENAI_API_KEY', next: '/settings' })); + expect(to.origin + to.pathname).toBe('https://app.logicsrc.com/grant'); + expect(to.searchParams.get('origin')).toBe(ORIGIN); + const nonce = to.searchParams.get('nonce')!; + + const res = await kg().manifestResponse(nonce); + expect(res.status).toBe(200); + const m = await res.json(); + expect(m).toMatchObject({ + v: 1, + app_name: 'b1dz', + keys: [{ name: 'ANTHROPIC_API_KEY' }, { name: 'OPENAI_API_KEY' }], + recipient: { format: 'sealed-secrets/inbox-v2', app: 'b1dz', scope: 'user_settings', user_id: USER, inbox_public_key: (seal as SealRecord).inbox_public_key }, + webhook_url: `${ORIGIN}/api/v1/logicsrc/webhook`, + return_url: `${ORIGIN}/settings?logicsrc=granted`, + }); + expect(typeof m.webhook_secret).toBe('string'); + + const missing = await kg().manifestResponse('unknownnonce123456789'); + expect(missing.status).toBe(404); + expect(await missing.json()).toEqual({ error: 'unknown or expired request' }); + }, 60_000); + + it('a signed delivery queues the sealed key in the vault inbox; rotation replaces it; revoke blanks it', async () => { + const { dek, seal } = await withVault(); + const nonce = new URL(await kg().start({ userId: USER, keys: 'ANTHROPIC_API_KEY' })).searchParams.get('nonce')!; + const m = (await kg().manifest(nonce))!; + const deliver = async (type: string, value?: string, extra: Record = {}) => { + const sealed = value === undefined ? undefined + : `sealed:v2:${JSON.stringify(await npmSealer.sealToInbox(m.recipient.inbox_public_key, { ANTHROPIC_API_KEY: value, ...extra }, USER))}`; + const body = JSON.stringify({ type, grant_id: 'g_1', key_name: 'ANTHROPIC_API_KEY', recipient_user_id: USER, sealed }); + return kg().webhook(sign(m.webhook_secret, body, `msg_${type}_${value}`), body); + }; + + // Unsigned or wrongly signed: refused, nothing queued. + const body = JSON.stringify({ type: 'grant.delivered', grant_id: 'g_1', key_name: 'ANTHROPIC_API_KEY', recipient_user_id: USER, sealed: 'sealed:v2:{}' }); + expect((await kg().webhook({}, body)).status).toBe(401); + expect((await kg().webhook(sign('not-the-secret', body), body)).status).toBe(401); + expect(inbox()).toEqual([]); + + // Delivered (with a smuggled extra key, which the entry's allowlist drops on open). + expect(await deliver('grant.delivered', 'sk-ant-one', { EVM_PRIVATE_KEY: '0xattacker' })).toEqual({ status: 200, body: { ok: true, key: 'ANTHROPIC_API_KEY' } }); + expect(inbox()).toHaveLength(1); + expect(inbox()[0]).toMatchObject({ keys: ['ANTHROPIC_API_KEY'], source: 'logicsrc' }); + expect(JSON.stringify(inbox())).not.toContain('sk-ant-one'); + expect((await openInbox(dek, seal, inbox(), USER)).patch).toEqual({ ANTHROPIC_API_KEY: 'sk-ant-one' }); + + // Rotation: the queued older value is replaced, not stacked. + expect((await deliver('grant.updated', 'sk-ant-two')).status).toBe(200); + expect(inbox()).toHaveLength(1); + expect((await openInbox(dek, seal, inbox(), USER)).patch).toEqual({ ANTHROPIC_API_KEY: 'sk-ant-two' }); + expect(db.tables.kg_grants.get('g_1')).toMatchObject({ status: 'active', key_name: 'ANTHROPIC_API_KEY', user_id: USER }); + + // Revoke: the pending value is dropped and a sealed blank queued, so the next unlock clears it. + expect((await deliver('grant.revoked')).status).toBe(200); + expect(inbox()).toHaveLength(1); + expect((await openInbox(dek, seal, inbox(), USER)).patch).toEqual({ ANTHROPIC_API_KEY: '' }); + expect(db.tables.kg_grants.get('g_1')).toMatchObject({ status: 'revoked' }); + }, 60_000); + + it('a delivery for a key the request did not name is refused', async () => { + await withVault(); + const nonce = new URL(await kg().start({ userId: USER, keys: 'ANTHROPIC_API_KEY' })).searchParams.get('nonce')!; + const m = (await kg().manifest(nonce))!; + const sealed = `sealed:v2:${JSON.stringify(await npmSealer.sealToInbox(m.recipient.inbox_public_key, { OPENAI_API_KEY: 'x' }, USER))}`; + const body = JSON.stringify({ type: 'grant.delivered', grant_id: 'g_2', key_name: 'OPENAI_API_KEY', recipient_user_id: USER, sealed }); + expect((await kg().webhook(sign(m.webhook_secret, body), body)).status).toBe(400); + expect(inbox()).toEqual([]); + }, 60_000); + + it('parseSealedEntry accepts only sealed:v2 inbox entries and strips extra fields', async () => { + const { seal } = await createSeal('a long enough passphrase', USER); + const e = await npmSealer.sealToInbox(seal.inbox_public_key, { A: 'b' }, USER); + expect(parseSealedEntry(`sealed:v2:${JSON.stringify({ ...e, keys: ['EVM_PRIVATE_KEY'] })}`)).toEqual(e); + expect(parseSealedEntry('sealed:v2:{"id":1}')).toBeNull(); + expect(parseSealedEntry(JSON.stringify(e))).toBeNull(); + }, 30_000); +}); + +describe('GET /api/v1/logicsrc/grant/start', () => { + const call = async (qs: string) => { + const { GET } = await import('@/app/api/v1/logicsrc/grant/start/route'); + const { NextRequest } = await import('next/server'); + return GET(new NextRequest(`https://b1dz.com/api/v1/logicsrc/grant/start?${qs}`)); + }; + + it('sends a signed-out person to login', async () => { + const res = await call('keys=ANTHROPIC_API_KEY'); + expect(res.status).toBe(303); + expect(new URL(res.headers.get('location')!).pathname).toBe('/login'); + }); + + it('never asks for signing keys', async () => { + authed = { userId: USER }; + for (const k of ['EVM_PRIVATE_KEY', 'SOLANA_PRIVATE_KEY', 'X402_PRIVATE_KEY', 'COINBASE_API_PRIVATE_KEY', 'NOT_A_B1DZ_KEY']) { + const res = await call(`keys=ANTHROPIC_API_KEY,${k}`); + expect(res.headers.get('location')).toBe('/settings?logicsrc=bad_key'); + } + expect(db.tables.kg_grant_requests.size).toBe(0); + }); + + it('signed in with a vault: 303 to logicsrc', async () => { + authed = { userId: USER }; + await withVault(); + const res = await call('keys=ANTHROPIC_API_KEY&next=/settings'); + expect(res.status).toBe(303); + expect(res.headers.get('location')).toMatch(/^https:\/\/app\.logicsrc\.com\/grant\?origin=/); + expect(db.tables.kg_grant_requests.size).toBe(1); + }, 30_000); +}); diff --git a/apps/web/src/lib/logicsrc-grants.ts b/apps/web/src/lib/logicsrc-grants.ts new file mode 100644 index 0000000..e1955fe --- /dev/null +++ b/apps/web/src/lib/logicsrc-grants.ts @@ -0,0 +1,139 @@ +/** + * Keys from logicsrc, through the house package @profullstack/key-grants. + * + * b1dz's part is only the wiring: + * - a person's recipient is their vault's inbox key (user_settings.seal, + * sealer app "b1dz", scope "user_settings", user id = Supabase auth id); + * - a delivered key is a `sealed:v2:` the person's browser + * sealed on logicsrc. It is queued in user_settings.secret_inbox exactly like + * an OAuth token, tagged with the one key it may set, and merged into the + * sealed secret blob the next time the vault is unlocked (web, CLI, daemon); + * - a revoke drops any still-queued logicsrc entry for that key and queues a + * sealed blank for it, so the next unlock clears the key. + * The server can write these entries; it can never read them. + * + * Requests and grants (nonces, per-request webhook secrets, grant ids, never a + * key) live in kg_grant_requests / kg_grants, service role only. + */ +import { createKeyGrants, type KeyGrantStore, type GrantRequestRow, type GrantRow } from '@profullstack/key-grants'; +import { isInboxEntry, sealToInbox, type InboxEntry } from '@b1dz/core/sealed-secrets'; +import { createAdminSupabase } from '@/lib/supabase'; +import { loadSettingsRow, rowInbox, rowSeal } from '@/lib/settings-row'; +import { isGrantableKey } from '@/lib/logicsrc-keys'; + +export const SEALED_PREFIX = 'sealed:v2:'; +export const INBOX_LIMIT = 20; + +// Read through a non-literal key: Next inlines `process.env.NAME` at build time. +const env = (name: string) => process.env[name]; + +/** The subset of a supabase-js client this module uses (lets tests pass a fake). */ +export interface Db { + from(table: string): any; // eslint-disable-line @typescript-eslint/no-explicit-any +} + +const num = (r: T | null): T | null => + r && ({ + ...r, + ...(r.created_at != null ? { created_at: Number(r.created_at) } : {}), + ...(r.expires_at != null ? { expires_at: Number(r.expires_at) } : {}), + ...(r.updated_at != null ? { updated_at: Number(r.updated_at) } : {}), + } as T); + +/** KeyGrantStore over the kg_* tables (see supabase/migrations/*_logicsrc_key_grants.sql). */ +export function supabaseStore(db: Db): KeyGrantStore { + const must = ({ data, error }: { data: T; error: { message: string } | null }): T => { + if (error) throw new Error(`kg store: ${error.message}`); + return data; + }; + return { + async saveRequest(row) { + must(await db.from('kg_grant_requests').insert(row)); + }, + async getRequest(nonce) { + return num(must(await db.from('kg_grant_requests').select('*').eq('nonce', nonce).maybeSingle()) as GrantRequestRow | null); + }, + async requestsForUser(userId, limit) { + if (!/^[0-9a-f-]{36}$/i.test(userId)) return []; + const rows = must(await db.from('kg_grant_requests').select('*').eq('user_id', userId).order('created_at', { ascending: false }).limit(limit)) as GrantRequestRow[] | null; + return (rows ?? []).map((r) => num(r)!); + }, + async getGrant(grantId) { + return num(must(await db.from('kg_grants').select('*').eq('grant_id', grantId).maybeSingle()) as GrantRow | null); + }, + async saveGrant(row) { + must(await db.from('kg_grants').upsert(row, { onConflict: 'grant_id' })); + }, + }; +} + +async function writeInbox(db: Db, userId: string, inbox: InboxEntry[]): Promise { + const { error } = await db.from('user_settings').upsert( + { user_id: userId, secret_inbox: inbox.slice(-INBOX_LIMIT), updated_at: new Date().toISOString() }, + { onConflict: 'user_id' }, + ); + if (error) throw new Error(`inbox write: ${error.message}`); +} + +/** `sealed:v2:` from logicsrc -> an inbox entry, or null when it is not one. */ +export function parseSealedEntry(sealed: string): InboxEntry | null { + if (!sealed.startsWith(SEALED_PREFIX)) return null; + try { + const e = JSON.parse(sealed.slice(SEALED_PREFIX.length)) as unknown; + if (!isInboxEntry(e)) return null; + // Keep only the sealed fields; anything else in the JSON is not ours to store. + return { id: e.id, epk: e.epk, blob: { ciphertext: e.blob.ciphertext, iv: e.blob.iv, tag: e.blob.tag }, created_at: e.created_at }; + } catch { + return null; + } +} + +const isLogicsrcEntryFor = (e: InboxEntry, keyName: string) => + e.source === 'logicsrc' && Array.isArray(e.keys) && e.keys.length === 1 && e.keys[0] === keyName; + +export function b1dzKeyGrants({ + db = createAdminSupabase() as unknown as Db, + origin = env('NEXT_PUBLIC_SITE_URL') || 'https://b1dz.com', + logicsrcUrl = env('LOGICSRC_URL') || undefined, + now, +}: { db?: Db; origin?: string; logicsrcUrl?: string; now?: () => number } = {}) { + return createKeyGrants({ + appName: 'b1dz', + origin, + logicsrcUrl, + now, + store: supabaseStore(db), + describeKey: () => 'Used by your b1dz strategies and AI analyzer; opens only while your b1dz vault is unlocked', + recipientFor: async (userId) => { + const seal = rowSeal(await loadSettingsRow(db, userId)); + return seal ? { app: 'b1dz', scope: 'user_settings', user_id: userId, inbox_public_key: seal.inbox_public_key } : null; + }, + onKey: async ({ userId, keyName, sealed }) => { + if (!isGrantableKey(keyName)) { + console.warn(`[logicsrc] refused ${keyName} for ${userId.slice(0, 8)}…: not a grantable b1dz key`); + return; + } + const entry = parseSealedEntry(sealed); + if (!entry) throw new Error('logicsrc sent a value that is not a b1dz inbox entry'); + const row = await loadSettingsRow(db, userId); + // A rotation replaces the still-queued older value for the same key. + const inbox = rowInbox(row).filter((e) => !isLogicsrcEntryFor(e, keyName)); + await writeInbox(db, userId, [...inbox, { ...entry, keys: [keyName], source: 'logicsrc' }]); + console.log(`[logicsrc] queued ${keyName} for ${userId.slice(0, 8)}…`); + }, + onRevoke: async ({ userId, keyName }) => { + if (!isGrantableKey(keyName)) return; + const row = await loadSettingsRow(db, userId); + const seal = rowSeal(row); + const inbox = rowInbox(row).filter((e) => !isLogicsrcEntryFor(e, keyName)); + if (!seal) return writeInbox(db, userId, inbox); + // A blank value is "not set" everywhere b1dz reads secrets; the next unlock clears it. + const blank = await sealToInbox(seal.inbox_public_key, { [keyName]: '' }, userId); + await writeInbox(db, userId, [...inbox, { ...blank, keys: [keyName], source: 'logicsrc' }]); + console.log(`[logicsrc] revoked ${keyName} for ${userId.slice(0, 8)}…`); + }, + }); +} + +let shared: ReturnType | null = null; +export const keyGrants = () => (shared ??= b1dzKeyGrants()); diff --git a/apps/web/src/lib/logicsrc-keys.ts b/apps/web/src/lib/logicsrc-keys.ts new file mode 100644 index 0000000..764fbc8 --- /dev/null +++ b/apps/web/src/lib/logicsrc-keys.ts @@ -0,0 +1,39 @@ +/** + * Which b1dz secrets can be requested from logicsrc (client-safe: no server imports). + * + * Every SECRET_FIELDS entry except signing material: wallet private keys, + * seeds, mnemonics and exchange signing keys (Coinbase's EC/private key) never + * leave the person's own hands. logicsrc refuses to grant those anyway; b1dz + * refuses to ask. + */ +import { SECRET_FIELDS } from '@b1dz/core/settings-fields'; + +const SIGNING = /PRIVATE|SEED|MNEMONIC|EC_KEY/i; + +export const LOGICSRC_GRANTABLE_KEYS: readonly string[] = SECRET_FIELDS.filter((k) => !SIGNING.test(k)); + +export const DEFAULT_LOGICSRC_KEYS = ['ANTHROPIC_API_KEY']; + +export function isGrantableKey(name: string): boolean { + return LOGICSRC_GRANTABLE_KEYS.includes(name); +} + +/** Copy for ?logicsrc= on return to /settings. */ +export function logicsrcNotice(code: string): { ok: boolean; text: string } { + switch (code) { + case 'granted': + return { ok: true, text: 'Approved on logicsrc. The key arrives sealed to your vault; unlock your vault to apply it.' }; + case 'needs_vault': + return { ok: false, text: 'Set a vault passphrase first: keys from logicsrc are sealed to your vault.' }; + case 'no_keys': + return { ok: false, text: 'Pick at least one key to request from logicsrc.' }; + case 'bad_key': + return { ok: false, text: 'b1dz can only request API keys from logicsrc, never wallet or signing keys.' }; + case 'too_many': + return { ok: false, text: 'Request at most 20 keys at a time from logicsrc.' }; + case 'signed_out': + return { ok: false, text: 'Sign in first, then request keys from logicsrc.' }; + default: + return { ok: false, text: `The logicsrc request did not complete (${code}).` }; + } +} diff --git a/packages/core/package.json b/packages/core/package.json index c7c4c70..e1447d3 100644 --- a/packages/core/package.json +++ b/packages/core/package.json @@ -21,6 +21,10 @@ "./sealed-secrets": { "import": "./src/sealed-secrets.ts", "default": "./src/sealed-secrets.ts" + }, + "./settings-fields": { + "import": "./src/settings-fields.ts", + "default": "./src/settings-fields.ts" } }, "scripts": { diff --git a/packages/core/src/sealed-secrets.test.ts b/packages/core/src/sealed-secrets.test.ts index b81c7bf..041b8fd 100644 --- a/packages/core/src/sealed-secrets.test.ts +++ b/packages/core/src/sealed-secrets.test.ts @@ -87,6 +87,14 @@ describe('sealed-secrets', () => { await expect(openInbox(randomBytes(32), seal, [e1], USER)).rejects.toBeDefined(); }, 30_000); + it('an entry with a keys allowlist only sets those keys', async () => { + const { dek, seal } = await createSeal(PASS, USER); + const e = await sealToInbox(seal.inbox_public_key, { ANTHROPIC_API_KEY: 'sk-a', EVM_PRIVATE_KEY: '0xbad' }, USER); + const { patch, consumed } = await openInbox(dek, seal, [{ ...e, keys: ['ANTHROPIC_API_KEY'], source: 'logicsrc' }], USER); + expect(patch).toEqual({ ANTHROPIC_API_KEY: 'sk-a' }); + expect(consumed).toEqual([e.id]); + }, 30_000); + it('recovery key encoding round-trips', () => { const raw = randomBytes(32); expect(Buffer.from(decodeRecoveryKey(encodeRecoveryKey(raw))).equals(Buffer.from(raw))).toBe(true); diff --git a/packages/core/src/sealed-secrets.ts b/packages/core/src/sealed-secrets.ts index 245a27b..d67d61c 100644 --- a/packages/core/src/sealed-secrets.ts +++ b/packages/core/src/sealed-secrets.ts @@ -70,6 +70,14 @@ export interface InboxEntry { epk: string; blob: CipherBlob; created_at: string; + /** + * The only keys this entry may set. Written by the server next to an entry + * someone else sealed (a logicsrc key grant), so a sealed patch can never + * set a key the request did not name. Absent = any key (OAuth entries). + */ + keys?: string[]; + /** Where the entry came from, e.g. "logicsrc" (informational). */ + source?: string; } const subtle = (): SubtleCrypto => { @@ -429,7 +437,9 @@ export async function openInbox( const key = await inboxKey(shared, epk, userId); wipe(shared); const out = await gcmDecrypt(key, e.blob, aad(userId, 'inbox')); - Object.assign(patch, toSecretMap(JSON.parse(dec.decode(out)))); + const opened = toSecretMap(JSON.parse(dec.decode(out))); + const allow = Array.isArray(e.keys) ? new Set(e.keys) : null; + for (const [k, v] of Object.entries(opened)) if (!allow || allow.has(k)) patch[k] = v; wipe(out); consumed.push(e.id); } catch { diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 239bc61..4933406 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -25,10 +25,10 @@ importers: version: 7.0.2 typescript-eslint: specifier: latest - version: 8.72.1(eslint@10.14.0(jiti@2.7.0))(typescript@7.0.2) + version: 8.72.2(eslint@10.14.0(jiti@2.7.0))(typescript@7.0.2) vitest: specifier: latest - version: 5.0.5(@types/node@26.6.6)(vite@8.0.7(@types/node@26.6.6)(esbuild@0.28.2)(jiti@2.7.0)(tsx@4.23.15)) + version: 5.1.0(@types/node@26.6.6)(vite@8.0.7(@types/node@26.6.6)(esbuild@0.28.2)(jiti@2.7.0)(tsx@4.23.15)) apps/cli: dependencies: @@ -134,7 +134,7 @@ importers: version: 4.11.0 dotenv: specifier: latest - version: 18.0.9 + version: 18.0.10 esbuild: specifier: ^0.28.2 version: 0.28.2 @@ -146,7 +146,7 @@ importers: version: 7.0.2 vitest: specifier: latest - version: 5.0.5(@types/node@26.6.6)(vite@8.0.7(@types/node@26.6.6)(esbuild@0.28.2)(jiti@2.7.0)(tsx@4.23.15)) + version: 5.1.0(@types/node@26.6.6)(vite@8.0.7(@types/node@26.6.6)(esbuild@0.28.2)(jiti@2.7.0)(tsx@4.23.15)) apps/daemon: dependencies: @@ -227,7 +227,7 @@ importers: version: link:../../packages/wallet-service '@supabase/supabase-js': specifier: latest - version: 2.118.0 + version: 2.119.0 tsx: specifier: latest version: 4.23.15 @@ -240,7 +240,7 @@ importers: version: 7.0.2 vitest: specifier: latest - version: 5.0.5(@types/node@26.6.6)(vite@8.0.7(@types/node@26.6.6)(esbuild@0.28.2)(jiti@2.7.0)(tsx@4.23.15)) + version: 5.1.0(@types/node@26.6.6)(vite@8.0.7(@types/node@26.6.6)(esbuild@0.28.2)(jiti@2.7.0)(tsx@4.23.15)) apps/web: dependencies: @@ -282,10 +282,13 @@ importers: version: 0.3.1 '@profullstack/footer': specifier: latest - version: 0.6.15(react@19.3.1) + version: 0.6.19(react@19.3.1) '@profullstack/form-guard': specifier: ^0.2.2 version: 0.2.2 + '@profullstack/key-grants': + specifier: 0.1.0 + version: 0.1.0 '@profullstack/pluginstore': specifier: ^0.1.2 version: 0.1.2 @@ -297,16 +300,16 @@ importers: version: 0.2.0 '@profullstack/stack': specifier: ^0.5.0 - version: 0.5.0(@supabase/ssr@0.12.7(@supabase/supabase-js@2.118.0))(next@16.4.3(@types/node@26.6.6)(react-dom@19.3.1(react@19.3.1))(react@19.3.1))(react@19.3.1) + version: 0.5.0(@supabase/ssr@0.12.7(@supabase/supabase-js@2.119.0))(next@16.4.3(@types/node@26.6.6)(react-dom@19.3.1(react@19.3.1))(react@19.3.1))(react@19.3.1) '@profullstack/x402-gateway': specifier: ^0.13.1 version: 0.13.1 '@supabase/ssr': specifier: latest - version: 0.12.7(@supabase/supabase-js@2.118.0) + version: 0.12.7(@supabase/supabase-js@2.119.0) '@supabase/supabase-js': specifier: latest - version: 2.118.0 + version: 2.119.0 lightweight-charts: specifier: ^5.2.1 version: 5.2.1 @@ -323,9 +326,12 @@ importers: specifier: latest version: 19.3.1(react@19.3.1) devDependencies: + '@profullstack/sealed-secrets': + specifier: 0.2.0 + version: 0.2.0 '@tailwindcss/postcss': specifier: latest - version: 4.3.3 + version: 4.3.5 '@types/node': specifier: latest version: 26.6.6 @@ -337,13 +343,13 @@ importers: version: 19.3.0(@types/react@19.3.0) tailwindcss: specifier: latest - version: 4.3.3 + version: 4.3.5 typescript: specifier: latest version: 7.0.2 vitest: specifier: latest - version: 5.0.5(@types/node@26.6.6)(vite@8.0.7(@types/node@26.6.6)(esbuild@0.28.2)(jiti@2.7.0)(tsx@4.23.15)) + version: 5.1.0(@types/node@26.6.6)(vite@8.0.7(@types/node@26.6.6)(esbuild@0.28.2)(jiti@2.7.0)(tsx@4.23.15)) packages/adapters-cex: dependencies: @@ -365,7 +371,7 @@ importers: version: 7.0.2 vitest: specifier: latest - version: 5.0.5(@types/node@26.6.6)(vite@8.0.7(@types/node@26.6.6)(esbuild@0.28.2)(jiti@2.7.0)(tsx@4.23.15)) + version: 5.1.0(@types/node@26.6.6)(vite@8.0.7(@types/node@26.6.6)(esbuild@0.28.2)(jiti@2.7.0)(tsx@4.23.15)) packages/adapters-evm: dependencies: @@ -384,7 +390,7 @@ importers: version: 7.0.2 vitest: specifier: latest - version: 5.0.5(@types/node@26.6.6)(vite@8.0.7(@types/node@26.6.6)(esbuild@0.28.2)(jiti@2.7.0)(tsx@4.23.15)) + version: 5.1.0(@types/node@26.6.6)(vite@8.0.7(@types/node@26.6.6)(esbuild@0.28.2)(jiti@2.7.0)(tsx@4.23.15)) packages/adapters-pumpfun: dependencies: @@ -406,7 +412,7 @@ importers: version: 7.0.2 vitest: specifier: latest - version: 5.0.5(@types/node@26.6.6)(vite@8.0.7(@types/node@26.6.6)(esbuild@0.28.2)(jiti@2.7.0)(tsx@4.23.15)) + version: 5.1.0(@types/node@26.6.6)(vite@8.0.7(@types/node@26.6.6)(esbuild@0.28.2)(jiti@2.7.0)(tsx@4.23.15)) packages/adapters-solana: dependencies: @@ -425,7 +431,7 @@ importers: version: 7.0.2 vitest: specifier: latest - version: 5.0.5(@types/node@26.6.6)(vite@8.0.7(@types/node@26.6.6)(esbuild@0.28.2)(jiti@2.7.0)(tsx@4.23.15)) + version: 5.1.0(@types/node@26.6.6)(vite@8.0.7(@types/node@26.6.6)(esbuild@0.28.2)(jiti@2.7.0)(tsx@4.23.15)) packages/ai-analyzer: dependencies: @@ -441,7 +447,7 @@ importers: version: 7.0.2 vitest: specifier: latest - version: 5.0.5(@types/node@26.6.6)(vite@8.0.7(@types/node@26.6.6)(esbuild@0.28.2)(jiti@2.7.0)(tsx@4.23.15)) + version: 5.1.0(@types/node@26.6.6)(vite@8.0.7(@types/node@26.6.6)(esbuild@0.28.2)(jiti@2.7.0)(tsx@4.23.15)) packages/core: dependencies: @@ -460,7 +466,7 @@ importers: version: 7.0.2 vitest: specifier: latest - version: 5.0.5(@types/node@26.6.6)(vite@8.0.7(@types/node@26.6.6)(esbuild@0.28.2)(jiti@2.7.0)(tsx@4.23.15)) + version: 5.1.0(@types/node@26.6.6)(vite@8.0.7(@types/node@26.6.6)(esbuild@0.28.2)(jiti@2.7.0)(tsx@4.23.15)) packages/equity-engine: dependencies: @@ -476,7 +482,7 @@ importers: version: 7.0.2 vitest: specifier: latest - version: 5.0.5(@types/node@26.6.6)(vite@8.0.7(@types/node@26.6.6)(esbuild@0.28.2)(jiti@2.7.0)(tsx@4.23.15)) + version: 5.1.0(@types/node@26.6.6)(vite@8.0.7(@types/node@26.6.6)(esbuild@0.28.2)(jiti@2.7.0)(tsx@4.23.15)) packages/event-channel: dependencies: @@ -485,7 +491,7 @@ importers: version: link:../venue-types '@supabase/supabase-js': specifier: latest - version: 2.118.0 + version: 2.119.0 devDependencies: '@types/node': specifier: latest @@ -495,7 +501,7 @@ importers: version: 7.0.2 vitest: specifier: latest - version: 5.0.5(@types/node@26.6.6)(vite@8.0.7(@types/node@26.6.6)(esbuild@0.28.2)(jiti@2.7.0)(tsx@4.23.15)) + version: 5.1.0(@types/node@26.6.6)(vite@8.0.7(@types/node@26.6.6)(esbuild@0.28.2)(jiti@2.7.0)(tsx@4.23.15)) packages/inventory: dependencies: @@ -514,7 +520,7 @@ importers: version: 7.0.2 vitest: specifier: latest - version: 5.0.5(@types/node@26.6.6)(vite@8.0.7(@types/node@26.6.6)(esbuild@0.28.2)(jiti@2.7.0)(tsx@4.23.15)) + version: 5.1.0(@types/node@26.6.6)(vite@8.0.7(@types/node@26.6.6)(esbuild@0.28.2)(jiti@2.7.0)(tsx@4.23.15)) packages/observe-engine: dependencies: @@ -536,7 +542,7 @@ importers: version: 7.0.2 vitest: specifier: latest - version: 5.0.5(@types/node@26.6.6)(vite@8.0.7(@types/node@26.6.6)(esbuild@0.28.2)(jiti@2.7.0)(tsx@4.23.15)) + version: 5.1.0(@types/node@26.6.6)(vite@8.0.7(@types/node@26.6.6)(esbuild@0.28.2)(jiti@2.7.0)(tsx@4.23.15)) packages/profitability: dependencies: @@ -552,7 +558,7 @@ importers: version: 7.0.2 vitest: specifier: latest - version: 5.0.5(@types/node@26.6.6)(vite@8.0.7(@types/node@26.6.6)(esbuild@0.28.2)(jiti@2.7.0)(tsx@4.23.15)) + version: 5.1.0(@types/node@26.6.6)(vite@8.0.7(@types/node@26.6.6)(esbuild@0.28.2)(jiti@2.7.0)(tsx@4.23.15)) packages/projection-engine: devDependencies: @@ -564,7 +570,7 @@ importers: version: 7.0.2 vitest: specifier: latest - version: 5.0.5(@types/node@26.6.6)(vite@8.0.7(@types/node@26.6.6)(esbuild@0.28.2)(jiti@2.7.0)(tsx@4.23.15)) + version: 5.1.0(@types/node@26.6.6)(vite@8.0.7(@types/node@26.6.6)(esbuild@0.28.2)(jiti@2.7.0)(tsx@4.23.15)) packages/sdk: devDependencies: @@ -576,7 +582,7 @@ importers: version: 7.0.2 vitest: specifier: latest - version: 5.0.5(@types/node@26.6.6)(vite@8.0.7(@types/node@26.6.6)(esbuild@0.28.2)(jiti@2.7.0)(tsx@4.23.15)) + version: 5.1.0(@types/node@26.6.6)(vite@8.0.7(@types/node@26.6.6)(esbuild@0.28.2)(jiti@2.7.0)(tsx@4.23.15)) packages/source-alpaca: dependencies: @@ -592,7 +598,7 @@ importers: version: 7.0.2 vitest: specifier: latest - version: 5.0.5(@types/node@26.6.6)(vite@8.0.7(@types/node@26.6.6)(esbuild@0.28.2)(jiti@2.7.0)(tsx@4.23.15)) + version: 5.1.0(@types/node@26.6.6)(vite@8.0.7(@types/node@26.6.6)(esbuild@0.28.2)(jiti@2.7.0)(tsx@4.23.15)) packages/source-crypto-arb: dependencies: @@ -623,7 +629,7 @@ importers: version: 7.0.2 vitest: specifier: latest - version: 5.0.5(@types/node@26.6.6)(vite@8.0.7(@types/node@26.6.6)(esbuild@0.28.2)(jiti@2.7.0)(tsx@4.23.15)) + version: 5.1.0(@types/node@26.6.6)(vite@8.0.7(@types/node@26.6.6)(esbuild@0.28.2)(jiti@2.7.0)(tsx@4.23.15)) packages/source-crypto-trade: dependencies: @@ -642,7 +648,7 @@ importers: version: 7.0.2 vitest: specifier: latest - version: 5.0.5(@types/node@26.6.6)(vite@8.0.7(@types/node@26.6.6)(esbuild@0.28.2)(jiti@2.7.0)(tsx@4.23.15)) + version: 5.1.0(@types/node@26.6.6)(vite@8.0.7(@types/node@26.6.6)(esbuild@0.28.2)(jiti@2.7.0)(tsx@4.23.15)) packages/source-dealdash: dependencies: @@ -657,13 +663,13 @@ importers: version: 4.2.2 puppeteer: specifier: latest - version: 25.16.0 + version: 25.17.0 puppeteer-extra: specifier: latest - version: 3.3.6(puppeteer-core@25.16.0)(puppeteer@25.16.0) + version: 3.3.6(puppeteer-core@25.17.0)(puppeteer@25.17.0) puppeteer-extra-plugin-stealth: specifier: latest - version: 2.11.2(puppeteer-extra@3.3.6(puppeteer-core@25.16.0)(puppeteer@25.16.0)) + version: 2.11.2(puppeteer-extra@3.3.6(puppeteer-core@25.17.0)(puppeteer@25.17.0)) devDependencies: '@types/node': specifier: latest @@ -673,7 +679,7 @@ importers: version: 7.0.2 vitest: specifier: latest - version: 5.0.5(@types/node@26.6.6)(vite@8.0.7(@types/node@26.6.6)(esbuild@0.28.2)(jiti@2.7.0)(tsx@4.23.15)) + version: 5.1.0(@types/node@26.6.6)(vite@8.0.7(@types/node@26.6.6)(esbuild@0.28.2)(jiti@2.7.0)(tsx@4.23.15)) packages/source-ibkr: dependencies: @@ -689,7 +695,7 @@ importers: version: 7.0.2 vitest: specifier: latest - version: 5.0.5(@types/node@26.6.6)(vite@8.0.7(@types/node@26.6.6)(esbuild@0.28.2)(jiti@2.7.0)(tsx@4.23.15)) + version: 5.1.0(@types/node@26.6.6)(vite@8.0.7(@types/node@26.6.6)(esbuild@0.28.2)(jiti@2.7.0)(tsx@4.23.15)) packages/source-nichedb: devDependencies: @@ -701,7 +707,7 @@ importers: version: 7.0.2 vitest: specifier: latest - version: 5.0.5(@types/node@26.6.6)(vite@8.0.7(@types/node@26.6.6)(esbuild@0.28.2)(jiti@2.7.0)(tsx@4.23.15)) + version: 5.1.0(@types/node@26.6.6)(vite@8.0.7(@types/node@26.6.6)(esbuild@0.28.2)(jiti@2.7.0)(tsx@4.23.15)) packages/source-schwab: dependencies: @@ -717,7 +723,7 @@ importers: version: 7.0.2 vitest: specifier: latest - version: 5.0.5(@types/node@26.6.6)(vite@8.0.7(@types/node@26.6.6)(esbuild@0.28.2)(jiti@2.7.0)(tsx@4.23.15)) + version: 5.1.0(@types/node@26.6.6)(vite@8.0.7(@types/node@26.6.6)(esbuild@0.28.2)(jiti@2.7.0)(tsx@4.23.15)) packages/source-strategies: dependencies: @@ -733,7 +739,7 @@ importers: version: 7.0.2 vitest: specifier: latest - version: 5.0.5(@types/node@26.6.6)(vite@8.0.7(@types/node@26.6.6)(esbuild@0.28.2)(jiti@2.7.0)(tsx@4.23.15)) + version: 5.1.0(@types/node@26.6.6)(vite@8.0.7(@types/node@26.6.6)(esbuild@0.28.2)(jiti@2.7.0)(tsx@4.23.15)) packages/source-tradestation: dependencies: @@ -749,7 +755,7 @@ importers: version: 7.0.2 vitest: specifier: latest - version: 5.0.5(@types/node@26.6.6)(vite@8.0.7(@types/node@26.6.6)(esbuild@0.28.2)(jiti@2.7.0)(tsx@4.23.15)) + version: 5.1.0(@types/node@26.6.6)(vite@8.0.7(@types/node@26.6.6)(esbuild@0.28.2)(jiti@2.7.0)(tsx@4.23.15)) packages/source-tradier: dependencies: @@ -765,7 +771,7 @@ importers: version: 7.0.2 vitest: specifier: latest - version: 5.0.5(@types/node@26.6.6)(vite@8.0.7(@types/node@26.6.6)(esbuild@0.28.2)(jiti@2.7.0)(tsx@4.23.15)) + version: 5.1.0(@types/node@26.6.6)(vite@8.0.7(@types/node@26.6.6)(esbuild@0.28.2)(jiti@2.7.0)(tsx@4.23.15)) packages/source-webull: dependencies: @@ -781,7 +787,7 @@ importers: version: 7.0.2 vitest: specifier: latest - version: 5.0.5(@types/node@26.6.6)(vite@8.0.7(@types/node@26.6.6)(esbuild@0.28.2)(jiti@2.7.0)(tsx@4.23.15)) + version: 5.1.0(@types/node@26.6.6)(vite@8.0.7(@types/node@26.6.6)(esbuild@0.28.2)(jiti@2.7.0)(tsx@4.23.15)) packages/storage-b1dz-api: dependencies: @@ -797,7 +803,7 @@ importers: version: 7.0.2 vitest: specifier: latest - version: 5.0.5(@types/node@26.6.6)(vite@8.0.7(@types/node@26.6.6)(esbuild@0.28.2)(jiti@2.7.0)(tsx@4.23.15)) + version: 5.1.0(@types/node@26.6.6)(vite@8.0.7(@types/node@26.6.6)(esbuild@0.28.2)(jiti@2.7.0)(tsx@4.23.15)) packages/storage-json: dependencies: @@ -813,7 +819,7 @@ importers: version: 7.0.2 vitest: specifier: latest - version: 5.0.5(@types/node@26.6.6)(vite@8.0.7(@types/node@26.6.6)(esbuild@0.28.2)(jiti@2.7.0)(tsx@4.23.15)) + version: 5.1.0(@types/node@26.6.6)(vite@8.0.7(@types/node@26.6.6)(esbuild@0.28.2)(jiti@2.7.0)(tsx@4.23.15)) packages/storage-supabase: dependencies: @@ -822,7 +828,7 @@ importers: version: link:../core '@supabase/supabase-js': specifier: latest - version: 2.118.0 + version: 2.119.0 devDependencies: '@types/node': specifier: latest @@ -832,7 +838,7 @@ importers: version: 7.0.2 vitest: specifier: latest - version: 5.0.5(@types/node@26.6.6)(vite@8.0.7(@types/node@26.6.6)(esbuild@0.28.2)(jiti@2.7.0)(tsx@4.23.15)) + version: 5.1.0(@types/node@26.6.6)(vite@8.0.7(@types/node@26.6.6)(esbuild@0.28.2)(jiti@2.7.0)(tsx@4.23.15)) packages/trade-daemon: dependencies: @@ -857,7 +863,7 @@ importers: version: 7.0.2 vitest: specifier: latest - version: 5.0.5(@types/node@26.6.6)(vite@8.0.7(@types/node@26.6.6)(esbuild@0.28.2)(jiti@2.7.0)(tsx@4.23.15)) + version: 5.1.0(@types/node@26.6.6)(vite@8.0.7(@types/node@26.6.6)(esbuild@0.28.2)(jiti@2.7.0)(tsx@4.23.15)) packages/triangular-engine: dependencies: @@ -882,7 +888,7 @@ importers: version: 7.0.2 vitest: specifier: latest - version: 5.0.5(@types/node@26.6.6)(vite@8.0.7(@types/node@26.6.6)(esbuild@0.28.2)(jiti@2.7.0)(tsx@4.23.15)) + version: 5.1.0(@types/node@26.6.6)(vite@8.0.7(@types/node@26.6.6)(esbuild@0.28.2)(jiti@2.7.0)(tsx@4.23.15)) packages/venue-types: devDependencies: @@ -894,7 +900,7 @@ importers: version: 7.0.2 vitest: specifier: latest - version: 5.0.5(@types/node@26.6.6)(vite@8.0.7(@types/node@26.6.6)(esbuild@0.28.2)(jiti@2.7.0)(tsx@4.23.15)) + version: 5.1.0(@types/node@26.6.6)(vite@8.0.7(@types/node@26.6.6)(esbuild@0.28.2)(jiti@2.7.0)(tsx@4.23.15)) packages/wallet-coinpay: dependencies: @@ -910,7 +916,7 @@ importers: version: 7.0.2 vitest: specifier: latest - version: 5.0.5(@types/node@26.6.6)(vite@8.0.7(@types/node@26.6.6)(esbuild@0.28.2)(jiti@2.7.0)(tsx@4.23.15)) + version: 5.1.0(@types/node@26.6.6)(vite@8.0.7(@types/node@26.6.6)(esbuild@0.28.2)(jiti@2.7.0)(tsx@4.23.15)) packages/wallet-direct: dependencies: @@ -929,7 +935,7 @@ importers: version: 7.0.2 vitest: specifier: latest - version: 5.0.5(@types/node@26.6.6)(vite@8.0.7(@types/node@26.6.6)(esbuild@0.28.2)(jiti@2.7.0)(tsx@4.23.15)) + version: 5.1.0(@types/node@26.6.6)(vite@8.0.7(@types/node@26.6.6)(esbuild@0.28.2)(jiti@2.7.0)(tsx@4.23.15)) packages/wallet-provider: devDependencies: @@ -941,7 +947,7 @@ importers: version: 7.0.2 vitest: specifier: latest - version: 5.0.5(@types/node@26.6.6)(vite@8.0.7(@types/node@26.6.6)(esbuild@0.28.2)(jiti@2.7.0)(tsx@4.23.15)) + version: 5.1.0(@types/node@26.6.6)(vite@8.0.7(@types/node@26.6.6)(esbuild@0.28.2)(jiti@2.7.0)(tsx@4.23.15)) packages/wallet-service: dependencies: @@ -963,7 +969,7 @@ importers: version: 7.0.2 vitest: specifier: latest - version: 5.0.5(@types/node@26.6.6)(vite@8.0.7(@types/node@26.6.6)(esbuild@0.28.2)(jiti@2.7.0)(tsx@4.23.15)) + version: 5.1.0(@types/node@26.6.6)(vite@8.0.7(@types/node@26.6.6)(esbuild@0.28.2)(jiti@2.7.0)(tsx@4.23.15)) packages: @@ -1635,8 +1641,8 @@ packages: '@profullstack/emailer@1.0.3': resolution: {integrity: sha512-VyAtCcfnSI6LOwJvWogCr3ZNmEsaZw+iuWrqnosLsdcKsbRyCrCmXigMNZJZEjlgYlR+lK//PwNPG+xtCFvWAw==} - '@profullstack/footer@0.6.15': - resolution: {integrity: sha512-kkkSG8Xw0VnyzYk76ko0aiIgVT/MXmKkKUiJ5u1DZkeLZcDh0d2GjFShwTcCd8AsQr5fBet39wbzSwPeUYwuWg==} + '@profullstack/footer@0.6.19': + resolution: {integrity: sha512-DAS2jHDJFnH1w6lDtYbEnvuV2n4NY2vrRwnUKeQPC+Nwfg1f2Me9ClZ6KlXs6Dv0pgJSg2ATLSX0hV+Mq7co3w==} engines: {node: '>=18'} hasBin: true peerDependencies: @@ -1658,6 +1664,10 @@ packages: engines: {bun: '>=1.1', node: '>=22.6'} hasBin: true + '@profullstack/key-grants@0.1.0': + resolution: {integrity: sha512-Ncv+1anGx7G6kMzby1Pz42FpQ6etLrwESe4VvI2KIBIRM9VVtSbKM2HtDh//ZONYD5Cv+7fmsaAI5tDv5VW7qA==} + engines: {node: '>=20'} + '@profullstack/keys@0.1.0': resolution: {integrity: sha512-Vys47LvS5ivhdZu4SYOxh9Le3DEmWhjP0+CtrU45RhXAbY0ZFG/2Dk9V1bIIUGDp8UWMJqctvUD21JrNjfh04w==} engines: {node: '>=20.11'} @@ -1699,6 +1709,10 @@ packages: react: optional: true + '@profullstack/sealed-secrets@0.2.0': + resolution: {integrity: sha512-6/51NcLmvjC5m8ojt8bteLSusun9R97IExG+bW3K+1PeQ/DNle1AukdWVCTT8bDYtd/1PvLvSLe5l9n1oucCxg==} + engines: {node: '>=20'} + '@profullstack/stack@0.5.0': resolution: {integrity: sha512-LbXovIhyzLEq+a+y3q8KWC+jN1tJjvSoUiFEhpiEBisQn5U+iutIGHDgg16Lul74kQaFZeFlbp7CMPAVJ8KL6g==} engines: {node: '>=18'} @@ -1723,8 +1737,8 @@ packages: resolution: {integrity: sha512-V7liSO0tShZRlp8dancuDuUSF/rqrr5YF3bzLoZy9wn6ixf1RIRPYTepe72s36JOdSVzi3wfuhaZFm9y0RpV4w==} engines: {node: '>=20.11'} - '@puppeteer/browsers@3.2.6': - resolution: {integrity: sha512-MJP29gVoHznmqmwhH1tlZqzfeQ3aylTpSSa6WKZXtkwYUH02i9imBmWGTyZrbnAou5paX78SE4jMAUqnEPf8ug==} + '@puppeteer/browsers@3.2.7': + resolution: {integrity: sha512-B3C/v8OEEaJYcN1IzzgbPmt+GbFANr4Mf/NrqNuGk/dIchrv6quNqxgT+A6qE0Ge0MN95NjKUddcR1JMpYRMWA==} engines: {node: '>=22.12.0'} hasBin: true peerDependencies: @@ -1892,10 +1906,18 @@ packages: resolution: {integrity: sha512-xWfPXyhS2KDSfAneMtI6p/tBnbdiz/5vaRKXEqUfzfC9WCniKr2Ds5o5G7RIGig0bom4z6wUY9zaV07WDVTfnQ==} engines: {node: '>=22.0.0'} + '@supabase/auth-js@2.119.0': + resolution: {integrity: sha512-WI7KqJRxqZjm77PlRO/VfKretL4SG8g8stWfBmpyx9To+fFapZlSbXA8QkduoMvr72rRpIF24ZLrjktBrp+ZFA==} + engines: {node: '>=22.0.0'} + '@supabase/functions-js@2.118.0': resolution: {integrity: sha512-4ofletPa/noKAU6KHeqsd3FztGzRPUEJRey1MKY0o+PIHaVePqRPShIXtl37gcVyIWaFM+zNg6r9zh0uUSFOSA==} engines: {node: '>=22.0.0'} + '@supabase/functions-js@2.119.0': + resolution: {integrity: sha512-0aOdF/Y4lA+62K02nwZClfAthXmFEml0od42q3yy/9t3bBitomAOYEatTFSnxT/5UeeIDNn2DOnXTdAP0sqGNQ==} + engines: {node: '>=22.0.0'} + '@supabase/phoenix@0.4.5': resolution: {integrity: sha512-aAn9H9ovVyeApKy11OWOrrOGq8DV68yWeH4ud2lN9fzn4aO8Zb5GLL9m1pUg9nLqIcT+ZDfAcsZe0E/nqdv2lw==} @@ -1903,10 +1925,18 @@ packages: resolution: {integrity: sha512-JXy+37KPApHsyotaQACovv/Jy9E22rfiWLRuT+2UjoEAcAIelDFIrsF/FY47Dy19mO7lI0Tq+zDCX8oJ2Ozfiw==} engines: {node: '>=22.0.0'} + '@supabase/postgrest-js@2.119.0': + resolution: {integrity: sha512-qBmcjEFO7Ptyf5qvOXYJa1s4bfA4zsMIFf2i+h2zd6RRTDLwquX8z1mnS9djNOJjbiO1OGFh5Y2Lc2k2pA8TMw==} + engines: {node: '>=22.0.0'} + '@supabase/realtime-js@2.118.0': resolution: {integrity: sha512-pzCIEWjqD5/xqEZQerpt+q9rsgYkcrkgCJgf0W2ULqC4fYUeB/p9CFa3t9vn+IVh6dMN9r4ZCE262lZvUC+Bfw==} engines: {node: '>=22.0.0'} + '@supabase/realtime-js@2.119.0': + resolution: {integrity: sha512-fPzxt+SAYweqsZUCSZma2dvN+HT6lVjwWj8BbkVwapW6wNf1odUi+ATYN7svX4Zm9vt0kz0l0VzINAUAA38FEg==} + engines: {node: '>=22.0.0'} + '@supabase/ssr@0.12.7': resolution: {integrity: sha512-wiBtEie1KkRJi9RrZWY3R2imRhX1JY7qMyUCH2z9AUk15gQebNEplM+urbCKamdxaTJLXUU6LlpkJsaxhojCEg==} peerDependencies: @@ -1916,6 +1946,10 @@ packages: resolution: {integrity: sha512-5MNkKt2Moy7Jud/sPX7/28BwdDxZMCVHGJT00b8op3KRa9LKSjOAYU5IcfGWIstaasAqY8GkbA6oI3IRDgB1YQ==} engines: {node: '>=22.0.0'} + '@supabase/storage-js@2.119.0': + resolution: {integrity: sha512-htx1dSCnSJVPlx2BNSgLSUDvLMxuGbYa6pUPl5xoCs4as4cIhBVwuxj78zbggCyPHxLnEXjsV/qvlDsVjpodKw==} + engines: {node: '>=22.0.0'} + '@supabase/supabase-js@2.118.0': resolution: {integrity: sha512-FxI8UXMVC2UG7IkeiI8fuQZqq2oI3JeSuN8MPIC2RLVaoEAxKS0nqE6kii9Ewpq8f9gNPM6git1Y8f0vN/QLFw==} engines: {node: '>=22.0.0'} @@ -1925,70 +1959,78 @@ packages: '@opentelemetry/api': optional: true + '@supabase/supabase-js@2.119.0': + resolution: {integrity: sha512-MKP49G6bJbPhvsZDegZ/IXS/ITApPgplDCF5+F65KZ5kIArS5Y90WFxwvWYALx2bsxdrSuHvkCiXHYr3dU8+sw==} + engines: {node: '>=22.0.0'} + peerDependencies: + '@opentelemetry/api': '>=1.0.0' + peerDependenciesMeta: + '@opentelemetry/api': + optional: true + '@swc/helpers@0.5.23': resolution: {integrity: sha512-5lSsMOTXURePglDfvuAQUqkGek9Hg2kksOYay2m0+XR++b2NWYL/4sWyuvVBIs8oKnJaxkdi9whaL/sqN13afw==} - '@tailwindcss/node@4.3.3': - resolution: {integrity: sha512-/T8IKEsf9VTU6tLjgC7+sv2mOPtQxzE2jMw7u4Tt40Tx+QSZxpzh95/H6cMKoja9XuW7iMdLJYBB0o9G1CaAgg==} + '@tailwindcss/node@4.3.5': + resolution: {integrity: sha512-yT53FzV4ke0cr/BguDxhWMpm5MJu1O2muzk+tKw6lKHjODAsYArBbWwFbJiaksfzFv1tpkO9QHGzmfs1hJT66g==} - '@tailwindcss/oxide-android-arm64@4.3.3': - resolution: {integrity: sha512-Y85A2gmPSkl5Ve5qR86GL4HT509cFqQh1aes9p3sSkyTPwt0Pppf3GkwGe4JPACcRYjgJIEhQgM6dBClnr0NYw==} + '@tailwindcss/oxide-android-arm64@4.3.5': + resolution: {integrity: sha512-Se0z5xMqcSQanJD1IYmO0cGpK3iv0fp3ZsIT7xRJZ1Da5PghvNoc46zz4jIQn+aan3dV9T8AermFNN9QPmsh0Q==} engines: {node: '>= 20'} cpu: [arm64] os: [android] - '@tailwindcss/oxide-darwin-arm64@4.3.3': - resolution: {integrity: sha512-BiaWatpBcERQFDlOjRDpIVXuFK5PJez5SA4JMg6VYZdBYU+qKfV/vqjcIs+IYmtitf1xYQZTwXvU/8y4lfZUGw==} + '@tailwindcss/oxide-darwin-arm64@4.3.5': + resolution: {integrity: sha512-UPrgTDuUbvmqGMZuCnmI3FKee/tYKzKdp00/kuB4oSGB213VYg8QTdF7lVhnPoBXq/mIfJ+ILoBFqNOboWcMwQ==} engines: {node: '>= 20'} cpu: [arm64] os: [darwin] - '@tailwindcss/oxide-darwin-x64@4.3.3': - resolution: {integrity: sha512-fAeUqfV5ndhxRwai8cXGzdLvul9utWOmeTkv69unv4ZXixjn61Z+p9lCWdwOwA3TYboG3BwdVuN/RDjhBRl0mw==} + '@tailwindcss/oxide-darwin-x64@4.3.5': + resolution: {integrity: sha512-E+p7HEtjI0b8D7kbbWxH067cGui6d4c79COGko9fAPVE3rwc1E7ld2HFCbaG86AOGWS5VKQYqZOaf38ya4uxTQ==} engines: {node: '>= 20'} cpu: [x64] os: [darwin] - '@tailwindcss/oxide-freebsd-x64@4.3.3': - resolution: {integrity: sha512-iyf5bV6+wnAlflVeEy7R25dupxTNECZN5QMI0qNT6eT+EgaGdZcKhGkr5SdoaWiLJ3spLqIY9VCeSGrwmtg4kw==} + '@tailwindcss/oxide-freebsd-x64@4.3.5': + resolution: {integrity: sha512-yWEWcWyAG7rWOcTpJTjdhQ3pcaFY2h+0bqTRfgU3G2fz87ZU3AKdvdZKhslD+kyHnjBUWKvNdRYwIYC5dI1tIg==} engines: {node: '>= 20'} cpu: [x64] os: [freebsd] - '@tailwindcss/oxide-linux-arm-gnueabihf@4.3.3': - resolution: {integrity: sha512-aAYUprJAJQWWbRrPvtjdroZ56Md+JM8pMiopS6xGEwDfLhqj+2ver2p4nU4Mb3CRqcMmNBjo8KkUgcxhkzVQGQ==} + '@tailwindcss/oxide-linux-arm-gnueabihf@4.3.5': + resolution: {integrity: sha512-WmeVjtJhZlr+smpqcdR2kQkkn6arHIJnUIBxTO2EJcTLGY1ecVXNo2hbSn8xc0IH2aEtys936iMWKGyj0GaKnA==} engines: {node: '>= 20'} cpu: [arm] os: [linux] - '@tailwindcss/oxide-linux-arm64-gnu@4.3.3': - resolution: {integrity: sha512-nDxldcEENOxZRzC2uu9jrutZdAAQtb+8WWDCSnWL1zvBk1+FN+x6MtDViPB5AJMfttVCUhehGWus3XBPgatM/w==} + '@tailwindcss/oxide-linux-arm64-gnu@4.3.5': + resolution: {integrity: sha512-DTCSyucc6ShMp1QMqV5R94Z7xlgNgUzkGmFF1rL5HH2Qjy4eSmEqy+YLGkqqYvWa4sILtgrBt1JjRKbneQtiFQ==} engines: {node: '>= 20'} cpu: [arm64] os: [linux] - '@tailwindcss/oxide-linux-arm64-musl@4.3.3': - resolution: {integrity: sha512-Md44bD6veX/PC5iyF8cDVnw4HBIANZepRZZ7a8DQOvkfo5WUBwcp6iAuCUz23u+4SUkhJlD3eL7hNdW8ezd/kA==} + '@tailwindcss/oxide-linux-arm64-musl@4.3.5': + resolution: {integrity: sha512-H9lsvO4x9E4nE4Hi8h7NHHw0O/kcVSu+iOyFHNGdYzazGgDjFHZbE6S3hQ8kMcbNXSBlMdNi67LV5EVqtpaJtw==} engines: {node: '>= 20'} cpu: [arm64] os: [linux] - '@tailwindcss/oxide-linux-x64-gnu@4.3.3': - resolution: {integrity: sha512-tx7us1muwOKAKWao2v/GaafFeQboE6aj88vC6ziN2NCGcRm8gWUhwjzg+YdVB1e4boAtdtma4L43onunI6NS4w==} + '@tailwindcss/oxide-linux-x64-gnu@4.3.5': + resolution: {integrity: sha512-4uxQvtBvPuIdl13WfUBj9xMZHH14PtHZ8OZdtLmdyDtG66sCa1t599NZT+jagkUzRtWhuul1qRZQ1nAJscXN5g==} engines: {node: '>= 20'} cpu: [x64] os: [linux] - '@tailwindcss/oxide-linux-x64-musl@4.3.3': - resolution: {integrity: sha512-SJxX60smvHgasZoBy11dX6YRjXJFovwWBoedhbQPOBzgFWBHGB+TVPWB9BxzR7TTxU8FQZAI2AyiNCMzFm8Img==} + '@tailwindcss/oxide-linux-x64-musl@4.3.5': + resolution: {integrity: sha512-0JQAzs7jwbA7O6+z/adU+Jk3AXwsu3npAhtr5escXS7TqEqWcaDV7qHuI+0Vy/KQRuVGnLQREcSJWYauyV3oqg==} engines: {node: '>= 20'} cpu: [x64] os: [linux] - '@tailwindcss/oxide-wasm32-wasi@4.3.3': - resolution: {integrity: sha512-jx1+rPhY/5Ympkktd656HBWEBLxP7dH06losBLjjf5vgCODXvi9KhtftWcMIwTFIDqBr7cRnQkdLnAG+IOlGvQ==} - engines: {node: '>=14.0.0'} - cpu: [wasm32] + '@tailwindcss/oxide-wasm32-wasi@4.3.5': + resolution: {integrity: sha512-OJhFmlEfdzMr+avACdi40RPtnkW0B6hXyxL/8r+tnEHBWZji36CYRjEXrrvgBmaYsD3oEOBqwYFRKsYvzFe7Bw==} + engines: {node: ^20.19.0 || ^22.13.0 || >=23.5.0} bundledDependencies: - '@napi-rs/wasm-runtime' - '@emnapi/core' @@ -1997,24 +2039,24 @@ packages: - '@emnapi/wasi-threads' - tslib - '@tailwindcss/oxide-win32-arm64-msvc@4.3.3': - resolution: {integrity: sha512-3rc292Ca2ceK6Ulcc/bAVnTs/3nDtoPhyEKlgPv+yQJQi/JS/AMJlqzxvlDacL1nekbrcf6bTqp/jV4qgnPxNQ==} + '@tailwindcss/oxide-win32-arm64-msvc@4.3.5': + resolution: {integrity: sha512-9o8jgthi+QE5eandnboiJT64VQfnIArfZzSTdgbhEK5aafdiu2jTW9Honi/mwYHxBZuH1vAC57IFyrh+0iK5Gg==} engines: {node: '>= 20'} cpu: [arm64] os: [win32] - '@tailwindcss/oxide-win32-x64-msvc@4.3.3': - resolution: {integrity: sha512-yJ0pwIVc/nYeGoV02WtsN8KYyLQv7kyI2wDnkezyJlGGjkd4QLwDGAwl47YpPJeuI0M0ObaXGSPjvWDPeTPggw==} + '@tailwindcss/oxide-win32-x64-msvc@4.3.5': + resolution: {integrity: sha512-XiKFfIy1RWe7qK4WqByxNW7Oz1/nkOy8o/BWhHminyV1PmpUd8Eedj5v2A8h2kpqeVlz6xRnwk9Fr/ZXNLcZfg==} engines: {node: '>= 20'} cpu: [x64] os: [win32] - '@tailwindcss/oxide@4.3.3': - resolution: {integrity: sha512-krXjAikiaFSPaK/FkAQT5UTx3VormQaiZ5hBFlJZ9UFQGB/rwg1MZIhHAG9smMQRTdyJxP6Qt5MwMtdyU5FWrA==} + '@tailwindcss/oxide@4.3.5': + resolution: {integrity: sha512-PynqGLZsZvwM9tqD/CUxkOIfyd6K5elZ2MooauzJryP/UqXYgi3yYbtt3N0Xe+MHV/eFKPFQCEfIKAqlAS1CBg==} engines: {node: '>= 20'} - '@tailwindcss/postcss@4.3.3': - resolution: {integrity: sha512-JTSZZGQi1AyKirbLN3azmjVzef92tcX7h+iSqPdaeStyFpGpDlKvvpxeOE8njhbUanbRwr3z8DyzhICWnMtQeg==} + '@tailwindcss/postcss@4.3.5': + resolution: {integrity: sha512-FAV37Tlx9wBiT/hkfgVD0Q6CWsP2oUX3lf28nrfjW8+ksILjnpuFulUqWDfNR4/ZiEHHDRBX8DUTzD1Rys687A==} '@turbo/darwin-64@2.11.10': resolution: {integrity: sha512-By4idRap5+nLnMuRzLB4qkOPRlvNdyY1ne4VJYDyUoUB11H94k7uif9mbe3JT8JSNXs1D68uMcBj6hJ/jMQRvA==} @@ -2087,63 +2129,63 @@ packages: '@types/ws@8.18.2': resolution: {integrity: sha512-67MQl+fpWKVTT1NYdnmo3U4sc/xPo/zQBncVnI74qmQa0z/b+1g6iYqNmGCPbxO+zz2aklb08a0oHfegiVd0/w==} - '@typescript-eslint/eslint-plugin@8.72.1': - resolution: {integrity: sha512-5CokTWXpmbylfFabsbvHC0CAw3XLaGnoa+nFJX5FR592h/LoZsENUE6p/rg5xvkKrFEXz6pYmgI29AgXc2N3BQ==} + '@typescript-eslint/eslint-plugin@8.72.2': + resolution: {integrity: sha512-222PKFXKihmFpi/pS5njoBgdAqsPhj2/GBmFbrNw8Tq8gEG9Sv+kSlKFy4u2q+mJv9ZzJgM2Gkv/bUzRZwZw5g==} engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} peerDependencies: - '@typescript-eslint/parser': ^8.72.1 + '@typescript-eslint/parser': ^8.72.2 eslint: ^8.57.0 || ^9.0.0 || ^10.0.0 typescript: '>=4.8.4 <6.1.0' - '@typescript-eslint/parser@8.72.1': - resolution: {integrity: sha512-ZGwZP4OCfyA0AQTpEAMWz+rtX01DRhQWW5hB0ucKDEIX5U7jdmPSaMx94rQfaPAQzIYz2BimOgKOJtjfpRFQ9g==} + '@typescript-eslint/parser@8.72.2': + resolution: {integrity: sha512-llP+T1YuJOLlxEciP6OyQGtz5SMxyn+9LA2BvZw5RmToGVa1y4beEDVQL6Gje7T5WFYh19WREjDCN9Ev4gm5AA==} engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} peerDependencies: eslint: ^8.57.0 || ^9.0.0 || ^10.0.0 typescript: '>=4.8.4 <6.1.0' - '@typescript-eslint/project-service@8.72.1': - resolution: {integrity: sha512-fAuVMkwdO/huI8nyo/WKnNKf6Gag93S56Rh3Ts5mGcavwSdaN8tRg1gCeIGX8PF+nzp1BjGfO4gHhGzW1J6jTg==} + '@typescript-eslint/project-service@8.72.2': + resolution: {integrity: sha512-6y5dLTZdHhI8Eh3yIQ/bfQhRKwn5e+TpJj64o18Cngc0iW/BCrVvrr6zGYqXPnYH31u6YXAYiFh0+qxX5mybJw==} engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} peerDependencies: typescript: '>=4.8.4 <6.1.0' - '@typescript-eslint/scope-manager@8.72.1': - resolution: {integrity: sha512-lC/t6eMCZZQAAKZEYGL6RDVSuFehpdmMT6h+nJIjIa6oylN/PwDgDVtEIbB7O9xFfZYtZAYLoLlDNWKJhtF+uQ==} + '@typescript-eslint/scope-manager@8.72.2': + resolution: {integrity: sha512-iIoMJ6/8c1/QpFNyFjU0d1YzPco4MsZjQw0k3V+vfzNWAFmUmvhlyMoYEoYYDQZXc+J6Gi1X5XcxlzW2taIIGQ==} engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} - '@typescript-eslint/tsconfig-utils@8.72.1': - resolution: {integrity: sha512-e4D5R5vpeAEPBxT2BAzsFQL3sbwyeeeo5+aczgNSRK1V734jE7pTqaGFU+fXapWEQwnZbpFaTn32+Z8DwS6OTg==} + '@typescript-eslint/tsconfig-utils@8.72.2': + resolution: {integrity: sha512-+h3iCgZXuTNtoLXcnnjP12ZUHLMqoUcIHPfQrFEXTUqvb9dF8QK9b5nv5VtSo5fLkdHuks8ehbTzZj3rImAm9w==} engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} peerDependencies: typescript: '>=4.8.4 <6.1.0' - '@typescript-eslint/type-utils@8.72.1': - resolution: {integrity: sha512-iY2wlmyrXJmx4yxUGP3aYCFF3cA/6ShddOKmLU2dx7LnEykbAM8WThlxZEfd1NddqceF6eJmZUayxx9oKIYNlg==} + '@typescript-eslint/type-utils@8.72.2': + resolution: {integrity: sha512-STfkR38qIdhfkLpgtXnUjAzsNy4xouqiBO0lrVc/Wpk9Kem5/aHXUx1J8dGC16zpdYN1+yc2ILQ28er1kXX7ag==} engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} peerDependencies: eslint: ^8.57.0 || ^9.0.0 || ^10.0.0 typescript: '>=4.8.4 <6.1.0' - '@typescript-eslint/types@8.72.1': - resolution: {integrity: sha512-LmE5IhQet1BWOWEXqBrVtBPsMAOQ6Nzk35d+WLh3mk4EUF33sqlfxjio1MdYeSvKSG5skactKKuixBIKXhL4Rw==} + '@typescript-eslint/types@8.72.2': + resolution: {integrity: sha512-Xfn37OLZx03+PCU7qWx9DTv2FCRh1E6fk2+wONeNY15HXIwtcwuveaSwVpGAUptkNmPQegRxW5JyRel9T7wrog==} engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} - '@typescript-eslint/typescript-estree@8.72.1': - resolution: {integrity: sha512-DAlUoUV93hIvrtIQLwCbmZQYVZwOMhiHJrOVUUIWicFZaIYjTRqlY3I/NZevfkLmSqkNHRu2qYDcq9lrn16oOQ==} + '@typescript-eslint/typescript-estree@8.72.2': + resolution: {integrity: sha512-pQEGqIK/cqEvKivVWaFLYpe7XYejFxfuAOi4mu1oAWFvIo36aRHI9esRFTUxcIy/z8N482RJyH+LpZB0ZIU7Ow==} engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} peerDependencies: typescript: '>=4.8.4 <6.1.0' - '@typescript-eslint/utils@8.72.1': - resolution: {integrity: sha512-5v5liypurJBFHCBNqh/RjsymAD+VWcE0djuGY/BUqp5fC3Qn+luWDEksjuTtWjPn6i5zQlUtkZCRG/CYG0yCkA==} + '@typescript-eslint/utils@8.72.2': + resolution: {integrity: sha512-hv3eRYbpPbbpezuax1EfGrzpa3C4ySgNZkPUkLOWOAjU8HsOKowEDAr8C7nsNl1C+SBSKDpvno6VKHnlhvp9iA==} engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} peerDependencies: eslint: ^8.57.0 || ^9.0.0 || ^10.0.0 typescript: '>=4.8.4 <6.1.0' - '@typescript-eslint/visitor-keys@8.72.1': - resolution: {integrity: sha512-SB8xqipSzZHUePCCLNeYxqnxq83X61/qzNhjQGbTfjxGZIeOEP7tBgWYX05Tcd6CgE02WdTJnh5b8kMZJ/+bnQ==} + '@typescript-eslint/visitor-keys@8.72.2': + resolution: {integrity: sha512-NAGrjn0Pitjqzq/GkgMC4kBYm233PQ8GffyQ9+kTA3AlNQYEzOf25EIM02BAHZv5FRJSpHpJk+OGUxVkOB93GQ==} engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} '@typescript/typescript-aix-ppc64@7.0.2': @@ -2266,8 +2308,8 @@ packages: cpu: [x64] os: [win32] - '@vitest/mocker@5.0.5': - resolution: {integrity: sha512-xLL3lkDegJZw+MGoGaCCsFayDZthGgpAtr3Vziyfc4p7xH89K7KRPcRBBh/kEYm0Aqkt5DtTmkYpBtRV/FrHZg==} + '@vitest/mocker@5.1.0': + resolution: {integrity: sha512-5umB9/jlWcqVS6fsrFmv5Gdnpu6wAUio/lEOwAmvB7v+lFo/IW2B9FhAD0p19GCULTgMzLCdUmuCDCnAzWgppQ==} peerDependencies: msw: ^2.4.9 || ^3.0.0 vite: ^6.0.0 || ^7.0.0 || ^8.0.0 @@ -2277,8 +2319,8 @@ packages: vite: optional: true - '@vitest/spy@5.0.5': - resolution: {integrity: sha512-lwJRExuH417257Q5wv9QYugN9IMJkoxcrKrYxGPQkBzl7wlNpTUxD/5yNX4ESKVUIShKPgkGchYPFMWOOk0wzw==} + '@vitest/spy@5.1.0': + resolution: {integrity: sha512-2DPO5OMHWKrBngC+fCmTQqemNF0gidRhp3lxbBmRhW+M1XJrfgPpqNqWVevXtn2f2ufD5ZaR1B6B641aAlcX5A==} abbrev@1.1.1: resolution: {integrity: sha512-nne9/IiQ/hzIhY6pdDnbBtz7DjPTKrY00P/zvPSm5pOFkl6xuGrGnXn/VtTNNfNtAfZ9/1RtehkszU9qcTii0Q==} @@ -2566,8 +2608,8 @@ packages: resolution: {integrity: sha512-Btj2BOOO83o3WyH59e8MgXsxEQVcarkUOpEYrubB0urwnN10yQ364rsiByU11nZlqWYZm05i/of7io4mzihBtQ==} engines: {node: '>=8'} - devtools-protocol@0.0.1704951: - resolution: {integrity: sha512-GQhQOs9u/Mvm1zMtJIH872JS4AskuZdUSsPNPk4ChahtWAUqgz6atEtIsMt+nO7MqF1Ic4HxII/k8Cu36JivNg==} + devtools-protocol@0.0.1717327: + resolution: {integrity: sha512-3RDLDzyvv8XAYf1L+TL1og0EEk0eOW1Jn0yi88uG6Bj8fUKO1ZKfgNtwbJkqf5SWdPDS4VGEPxwdUWz78V6Xcg==} dot-prop@6.0.1: resolution: {integrity: sha512-tE7ztYzXHIeyvc7N+hR3oi7FIbf/NIjVP9hmAt3yMXzrQ072/fpjGLx2GxNxGxUl5V73MEqYzioOMoVhGMJ5cA==} @@ -2577,8 +2619,8 @@ packages: resolution: {integrity: sha512-Ol/IPXUARn9CSbkrdV4VJo7uCy1I3VuSiWCaFSg+8BdUOzF9n3jefIpcgAydvUZbTdEBZs2vEiTiS9m61ssiDA==} engines: {node: ^12.20.0 || ^14.13.1 || >=16.0.0} - dotenv@18.0.9: - resolution: {integrity: sha512-3fVOW4cB02R066PUSwn8O4TJyz9NckQl7F81blIbaq9jKBm2tSmOKky7ZHIXzGvkVPXCSn6jkpziBPZdGFs8Tw==} + dotenv@18.0.10: + resolution: {integrity: sha512-89FAA1xchzK2mxVWdr5F/0rldwiueXs6zJM86rO66EzekR1iBdiXRthyG+m5GvkJaFH3C2LESzamTkgndmLT2A==} engines: {node: '>=12'} hasBin: true @@ -3047,142 +3089,72 @@ packages: resolution: {integrity: sha512-+bT2uH4E5LGE7h/n3evcS/sQlJXCpIp6ym8OWJ5eV6+67Dsql/LaaT7qJBAt2rzfoa/5QBGBhxDix1dMt2kQKQ==} engines: {node: '>= 0.8.0'} - lightningcss-android-arm64@1.32.0: - resolution: {integrity: sha512-YK7/ClTt4kAK0vo6w3X+Pnm0D2cf2vPHbhOXdoNti1Ga0al1P4TBZhwjATvjNwLEBCnKvjJc2jQgHXH0NEwlAg==} - engines: {node: '>= 12.0.0'} - cpu: [arm64] - os: [android] - lightningcss-android-arm64@1.33.0: resolution: {integrity: sha512-gEpRTalKdosp4Bb8qWtc2iOgE5SeIHlpS1up9bFq2wAyYhl1UdTObYiHe98zEM9SQvSoqQZ1IQD0JNpg3Ml5pg==} engines: {node: '>= 12.0.0'} cpu: [arm64] os: [android] - lightningcss-darwin-arm64@1.32.0: - resolution: {integrity: sha512-RzeG9Ju5bag2Bv1/lwlVJvBE3q6TtXskdZLLCyfg5pt+HLz9BqlICO7LZM7VHNTTn/5PRhHFBSjk5lc4cmscPQ==} - engines: {node: '>= 12.0.0'} - cpu: [arm64] - os: [darwin] - 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.32.0: - resolution: {integrity: sha512-U+QsBp2m/s2wqpUYT/6wnlagdZbtZdndSmut/NJqlCcMLTWp5muCrID+K5UJ6jqD2BFshejCYXniPDbNh73V8w==} - engines: {node: '>= 12.0.0'} - cpu: [x64] - 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.32.0: - resolution: {integrity: sha512-JCTigedEksZk3tHTTthnMdVfGf61Fky8Ji2E4YjUTEQX14xiy/lTzXnu1vwiZe3bYe0q+SpsSH/CTeDXK6WHig==} - engines: {node: '>= 12.0.0'} - cpu: [x64] - os: [freebsd] - 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.32.0: - resolution: {integrity: sha512-x6rnnpRa2GL0zQOkt6rts3YDPzduLpWvwAF6EMhXFVZXD4tPrBkEFqzGowzCsIWsPjqSK+tyNEODUBXeeVHSkw==} - engines: {node: '>= 12.0.0'} - cpu: [arm] - os: [linux] - 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.32.0: - resolution: {integrity: sha512-0nnMyoyOLRJXfbMOilaSRcLH3Jw5z9HDNGfT/gwCPgaDjnx0i8w7vBzFLFR1f6CMLKF8gVbebmkUN3fa/kQJpQ==} - engines: {node: '>= 12.0.0'} - cpu: [arm64] - os: [linux] - lightningcss-linux-arm64-gnu@1.33.0: resolution: {integrity: sha512-j2v/itmy4HlNxlc6voKXYgBqNi0Ng2LShg4z7GufpEgs05P+2suBVyi9I6YHq5uoVFx9ETin3eCEhLVyXGQnKg==} engines: {node: '>= 12.0.0'} cpu: [arm64] os: [linux] - lightningcss-linux-arm64-musl@1.32.0: - resolution: {integrity: sha512-UpQkoenr4UJEzgVIYpI80lDFvRmPVg6oqboNHfoH4CQIfNA+HOrZ7Mo7KZP02dC6LjghPQJeBsvXhJod/wnIBg==} - engines: {node: '>= 12.0.0'} - cpu: [arm64] - os: [linux] - lightningcss-linux-arm64-musl@1.33.0: resolution: {integrity: sha512-yiO5ROMuYQgXbC60yjZU5CYSFZGKXL0HFATXt9mHJn1+zW55oCtMI9NfcVhYLMFDL7gV7oBPon/EmMMGg2OvtQ==} engines: {node: '>= 12.0.0'} cpu: [arm64] os: [linux] - lightningcss-linux-x64-gnu@1.32.0: - resolution: {integrity: sha512-V7Qr52IhZmdKPVr+Vtw8o+WLsQJYCTd8loIfpDaMRWGUZfBOYEJeyJIkqGIDMZPwPx24pUMfwSxxI8phr/MbOA==} - engines: {node: '>= 12.0.0'} - cpu: [x64] - os: [linux] - lightningcss-linux-x64-gnu@1.33.0: resolution: {integrity: sha512-ar+Ju7LmcN0Jo4FpL4hpFybwNG9/3A/Br5KW2n2jyODg3MEZXaDYADdemoNS+BDNfMgKvylJLj4S5tyRActuAg==} engines: {node: '>= 12.0.0'} cpu: [x64] os: [linux] - lightningcss-linux-x64-musl@1.32.0: - resolution: {integrity: sha512-bYcLp+Vb0awsiXg/80uCRezCYHNg1/l3mt0gzHnWV9XP1W5sKa5/TCdGWaR/zBM2PeF/HbsQv/j2URNOiVuxWg==} - engines: {node: '>= 12.0.0'} - cpu: [x64] - os: [linux] - lightningcss-linux-x64-musl@1.33.0: resolution: {integrity: sha512-RYiYbkokw0trfKqqzfF55lginwEPrD3OJDfTuJzFs1MK6iFnDenaz1fqLLtX4ITG3OktJQXOeTaw1awrBAlZPw==} engines: {node: '>= 12.0.0'} cpu: [x64] os: [linux] - lightningcss-win32-arm64-msvc@1.32.0: - resolution: {integrity: sha512-8SbC8BR40pS6baCM8sbtYDSwEVQd4JlFTOlaD3gWGHfThTcABnNDBda6eTZeqbofalIJhFx0qKzgHJmcPTnGdw==} - engines: {node: '>= 12.0.0'} - cpu: [arm64] - os: [win32] - 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.32.0: - resolution: {integrity: sha512-Amq9B/SoZYdDi1kFrojnoqPLxYhQ4Wo5XiL8EVJrVsB8ARoC1PWW6VGtT0WKCemjy8aC+louJnjS7U18x3b06Q==} - engines: {node: '>= 12.0.0'} - cpu: [x64] - 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.32.0: - resolution: {integrity: sha512-NXYBzinNrblfraPGyrbPoD19C1h9lfI/1mzgWYvXUTe414Gz/X1FD2XBZSZM7rRTrMA8JL3OtAaGifrIKhQ5yQ==} - engines: {node: '>= 12.0.0'} - lightningcss@1.33.0: resolution: {integrity: sha512-WkUDrojuJs0xkgGf2udWxa3yGBRxPtxUkB79i6aCZLRgc7PM8fZe9TosfPDcvEpQZbuFASnHYmRLBLUbmLOIIA==} engines: {node: '>= 12.0.0'} @@ -3213,9 +3185,6 @@ packages: resolution: {integrity: sha512-ozCC6gdQ+glXOQsveKD0YsDy8DSQFjDTz4zyzEHNV5+JP5D62LmfDZ6o1cycFx9ouG940M5dE8C8CTewdj2YWQ==} engines: {node: ^12.20.0 || ^14.13.1 || >=16.0.0} - magic-string@0.30.21: - resolution: {integrity: sha512-vd2F4YUyEXKGcLHoq+TEyCjxueSeHnFxyyjNp80yg0XV4vUhnDer/lvvlqM/arB5bXQN5K2/3oinyCRyx8T2CQ==} - magic-string@1.4.4: resolution: {integrity: sha512-jQz9sVhrZuphH4NrAIHSgkDJCluQO7Ioi4KGRLa7aTUjAODQ13hENX0YIytqYE/rIkO485gQG2LeBxJaW53kkQ==} @@ -3460,8 +3429,8 @@ packages: resolution: {integrity: sha512-vYt7UD1U9Wg6138shLtLOvdAu+8DsC/ilFtEVHcH+wydcSpNE20AfSOduf6MkRFahL5FY7X1oU7nKVZFtfq8Fg==} engines: {node: '>=6'} - puppeteer-core@25.16.0: - resolution: {integrity: sha512-VA5Pf54N8shfopNkZZXCdiiwfnnY8ZJYAMqFQRhlH5mGUhfwf53Ar770GPtdpTDLUqvQeYpIBtC9/G2Jij2IJw==} + puppeteer-core@25.17.0: + resolution: {integrity: sha512-YAgBitkd+K9gxRt+wzBAFTTkGjkC8aC2o4OxofsU8JUy2nnK/RflTCJ9bRCvCMNbq9TPhqFk4Phz98otN9FrGg==} engines: {node: '>=22.12.0'} puppeteer-extra-plugin-stealth@2.11.2: @@ -3527,8 +3496,8 @@ packages: puppeteer-core: optional: true - puppeteer@25.16.0: - resolution: {integrity: sha512-LOr3reYnxAYYfQkpopz1fQnL0LdvqhpR5U2Fu+QnwzTX2gpVTHsn91UETo5NNC1md2/oC54Zu1ChBXgZDNSP1A==} + puppeteer@25.17.0: + resolution: {integrity: sha512-J+OQNlI7I6ZjHhF6Q8M+LgiUGldF7meer5EqMJBZMHgnFN3zcehOhpz/x0bYDEEvbEiXzKzmqSRP3QT+5accjQ==} engines: {node: '>=22.12.0'} hasBin: true @@ -3760,8 +3729,8 @@ packages: resolution: {integrity: sha512-RpsAZlpWcDwOPQA22aCH4J0t7L8JmAvsCxfOSEwm7cQs3LshN36QaTkwd70DnBOXDWGssw2eUoc8CaRWT0XunA==} engines: {node: '>=8'} - tailwindcss@4.3.3: - resolution: {integrity: sha512-gOhV3P7ufE62QDGg1zVaTgCR+EtPv92k2nIhVcVKcLmxT1sUBsQGhnZj175j+MqRt4zLF7ic+sCYjfhxMxj7YQ==} + tailwindcss@4.3.5: + resolution: {integrity: sha512-FcQk9BuffmEHJP2G0XmB2SplU1aLTI7j07Kunk+U74Ny+XiWOtzXz9aujFZ/avntw1e2cOv/3PkgzflQ7gX2vQ==} tapable@2.3.3: resolution: {integrity: sha512-uxc/zpqFg6x7C8vOE7lh6Lbda8eEL9zmVm/PLeTPBRhh1xCgdWaQ+J1CUieGpIfm2HdtsUpRv+HshiasBMcc6A==} @@ -3823,8 +3792,8 @@ packages: typed-query-selector@2.12.3: resolution: {integrity: sha512-/dtuMZyutHLlrxWhhC1uib00ELUr2dZ8C9B8YzZYsJmeE3V56OxRblrSM2UaF142pcMtak7ehZ6+poWGeehNIg==} - typescript-eslint@8.72.1: - resolution: {integrity: sha512-3Li9FfPmQp45nxEtFD1ZCrYFI3cYK5kpyNtmm1H7lMagm8u9sy6PTjy3ytwQZs7KNukOyKFHAZ6z6GjYFeaeXw==} + typescript-eslint@8.72.2: + resolution: {integrity: sha512-c/+AKMW1KB81r28Sp0AAdcyXj5dzNmAsZFcsrxKbZTKmcBK2xIwBR31dcSYSDu3bKmzXe8GKrSxO+eDQ401Uzg==} engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} peerDependencies: eslint: ^8.57.0 || ^9.0.0 || ^10.0.0 @@ -3918,20 +3887,20 @@ packages: yaml: optional: true - vitest@5.0.5: - resolution: {integrity: sha512-cPODOMF8YnkiiYtDdHo6n4wWmBrOBBbOIYH2d33M4l3CdNn72h+qMmO6uXffUN6A5AZFXNND/d+krS9mgkXRfg==} + vitest@5.1.0: + resolution: {integrity: sha512-MzmNFnrwa8v8lF1bLxw3UJ4EREwVOVb75VqJZmUDRjJ6EluK/x9th7qTbaeDk41WxE1GxWqmTXcdsfobfH5sOA==} engines: {node: ^22.12.0 || ^24.0.0 || >=26.0.0} hasBin: true peerDependencies: '@edge-runtime/vm': '*' '@opentelemetry/api': ^1.9.0 '@types/node': ^22.0.0 || >=24.0.0 - '@vitest/browser-playwright': 5.0.5 - '@vitest/browser-preview': 5.0.5 + '@vitest/browser-playwright': 5.1.0 + '@vitest/browser-preview': 5.1.0 '@vitest/browser-webdriverio': ^5.0.0-beta.5 || >=5.0.0 - '@vitest/coverage-istanbul': 5.0.5 - '@vitest/coverage-v8': 5.0.5 - '@vitest/ui': 5.0.5 + '@vitest/coverage-istanbul': 5.1.0 + '@vitest/coverage-v8': 5.1.0 + '@vitest/ui': 5.1.0 happy-dom: '*' jsdom: '*' vite: ^6.4.0 || ^7.0.0 || ^8.0.0 @@ -3959,8 +3928,8 @@ packages: jsdom: optional: true - webdriver-bidi-protocol@1.0.1: - resolution: {integrity: sha512-WXWs/aXF2a6Al1Z2/V/7Gp2oPZOAAmHjJOTmv4KCXRJ122IMj3tSSMc6a4q3K4QOmhQbse/Ahr+oTVJOU2dUiw==} + webdriver-bidi-protocol@1.0.2: + resolution: {integrity: sha512-nghazPI+J5RrLZ+qb6vMjC6l1/tnwqr2muVEax4Ufd6eIdcjeqNnhLsAxTG9s+7Zf4umgf0DrEwDC8CoU91nAA==} which@2.0.2: resolution: {integrity: sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==} @@ -4011,6 +3980,18 @@ packages: utf-8-validate: optional: true + ws@8.22.2: + resolution: {integrity: sha512-/rEZ2ejown2N5gxVTHUu9bVVC7ttu0/Tgzf5hbTOixR3Fs7mbbXgn2DbdbcKgJOmpQMtrIUWivtYuVMnp/W/yA==} + 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 + x256@0.0.2: resolution: {integrity: sha512-ZsIH+sheoF8YG9YG+QKEEIdtqpHRA9FYuD7MqhfyB1kayXU43RUNBFSxBEnF8ywSUxdg+8no4+bPr5qLbyxKgA==} engines: {node: '>=0.4.0'} @@ -4576,7 +4557,7 @@ snapshots: '@profullstack/emailer@1.0.3': {} - '@profullstack/footer@0.6.15(react@19.3.1)': + '@profullstack/footer@0.6.19(react@19.3.1)': optionalDependencies: react: 19.3.1 @@ -4586,6 +4567,8 @@ snapshots: '@profullstack/hqtui@0.6.3': {} + '@profullstack/key-grants@0.1.0': {} + '@profullstack/keys@0.1.0': {} '@profullstack/openprofile@0.2.0': {} @@ -4604,13 +4587,15 @@ snapshots: optionalDependencies: react: 19.3.1 - '@profullstack/stack@0.5.0(@supabase/ssr@0.12.7(@supabase/supabase-js@2.118.0))(next@16.4.3(@types/node@26.6.6)(react-dom@19.3.1(react@19.3.1))(react@19.3.1))(react@19.3.1)': + '@profullstack/sealed-secrets@0.2.0': {} + + '@profullstack/stack@0.5.0(@supabase/ssr@0.12.7(@supabase/supabase-js@2.119.0))(next@16.4.3(@types/node@26.6.6)(react-dom@19.3.1(react@19.3.1))(react@19.3.1))(react@19.3.1)': dependencies: '@profullstack/emailer': 1.0.3 '@profullstack/form-guard': 0.1.1 '@profullstack/referrals': 0.1.0(react@19.3.1) optionalDependencies: - '@supabase/ssr': 0.12.7(@supabase/supabase-js@2.118.0) + '@supabase/ssr': 0.12.7(@supabase/supabase-js@2.119.0) next: 16.4.3(@types/node@26.6.6)(react-dom@19.3.1(react@19.3.1))(react@19.3.1) react: 19.3.1 @@ -4623,7 +4608,7 @@ snapshots: dependencies: '@profullstack/keys': 0.1.0 - '@puppeteer/browsers@3.2.6': + '@puppeteer/browsers@3.2.7': dependencies: modern-tar: 0.8.6 yargs: 18.2.0 @@ -4722,24 +4707,41 @@ snapshots: dependencies: tslib: 2.8.1 + '@supabase/auth-js@2.119.0': + dependencies: + tslib: 2.8.1 + '@supabase/functions-js@2.118.0': dependencies: tslib: 2.8.1 + '@supabase/functions-js@2.119.0': + dependencies: + tslib: 2.8.1 + '@supabase/phoenix@0.4.5': {} '@supabase/postgrest-js@2.118.0': dependencies: tslib: 2.8.1 + '@supabase/postgrest-js@2.119.0': + dependencies: + tslib: 2.8.1 + '@supabase/realtime-js@2.118.0': dependencies: '@supabase/phoenix': 0.4.5 tslib: 2.8.1 - '@supabase/ssr@0.12.7(@supabase/supabase-js@2.118.0)': + '@supabase/realtime-js@2.119.0': + dependencies: + '@supabase/phoenix': 0.4.5 + tslib: 2.8.1 + + '@supabase/ssr@0.12.7(@supabase/supabase-js@2.119.0)': dependencies: - '@supabase/supabase-js': 2.118.0 + '@supabase/supabase-js': 2.119.0 cookie: 1.1.1 '@supabase/storage-js@2.118.0': @@ -4747,6 +4749,11 @@ snapshots: iceberg-js: 0.8.1 tslib: 2.8.1 + '@supabase/storage-js@2.119.0': + dependencies: + iceberg-js: 0.8.1 + tslib: 2.8.1 + '@supabase/supabase-js@2.118.0': dependencies: '@supabase/auth-js': 2.118.0 @@ -4755,78 +4762,86 @@ snapshots: '@supabase/realtime-js': 2.118.0 '@supabase/storage-js': 2.118.0 + '@supabase/supabase-js@2.119.0': + dependencies: + '@supabase/auth-js': 2.119.0 + '@supabase/functions-js': 2.119.0 + '@supabase/postgrest-js': 2.119.0 + '@supabase/realtime-js': 2.119.0 + '@supabase/storage-js': 2.119.0 + '@swc/helpers@0.5.23': dependencies: tslib: 2.8.1 - '@tailwindcss/node@4.3.3': + '@tailwindcss/node@4.3.5': dependencies: '@jridgewell/remapping': 2.3.5 enhanced-resolve: 5.26.0 jiti: 2.7.0 - lightningcss: 1.32.0 - magic-string: 0.30.21 + lightningcss: 1.33.0 + magic-string: 1.4.4 source-map-js: 1.2.2 - tailwindcss: 4.3.3 + tailwindcss: 4.3.5 - '@tailwindcss/oxide-android-arm64@4.3.3': + '@tailwindcss/oxide-android-arm64@4.3.5': optional: true - '@tailwindcss/oxide-darwin-arm64@4.3.3': + '@tailwindcss/oxide-darwin-arm64@4.3.5': optional: true - '@tailwindcss/oxide-darwin-x64@4.3.3': + '@tailwindcss/oxide-darwin-x64@4.3.5': optional: true - '@tailwindcss/oxide-freebsd-x64@4.3.3': + '@tailwindcss/oxide-freebsd-x64@4.3.5': optional: true - '@tailwindcss/oxide-linux-arm-gnueabihf@4.3.3': + '@tailwindcss/oxide-linux-arm-gnueabihf@4.3.5': optional: true - '@tailwindcss/oxide-linux-arm64-gnu@4.3.3': + '@tailwindcss/oxide-linux-arm64-gnu@4.3.5': optional: true - '@tailwindcss/oxide-linux-arm64-musl@4.3.3': + '@tailwindcss/oxide-linux-arm64-musl@4.3.5': optional: true - '@tailwindcss/oxide-linux-x64-gnu@4.3.3': + '@tailwindcss/oxide-linux-x64-gnu@4.3.5': optional: true - '@tailwindcss/oxide-linux-x64-musl@4.3.3': + '@tailwindcss/oxide-linux-x64-musl@4.3.5': optional: true - '@tailwindcss/oxide-wasm32-wasi@4.3.3': + '@tailwindcss/oxide-wasm32-wasi@4.3.5': optional: true - '@tailwindcss/oxide-win32-arm64-msvc@4.3.3': + '@tailwindcss/oxide-win32-arm64-msvc@4.3.5': optional: true - '@tailwindcss/oxide-win32-x64-msvc@4.3.3': + '@tailwindcss/oxide-win32-x64-msvc@4.3.5': optional: true - '@tailwindcss/oxide@4.3.3': + '@tailwindcss/oxide@4.3.5': optionalDependencies: - '@tailwindcss/oxide-android-arm64': 4.3.3 - '@tailwindcss/oxide-darwin-arm64': 4.3.3 - '@tailwindcss/oxide-darwin-x64': 4.3.3 - '@tailwindcss/oxide-freebsd-x64': 4.3.3 - '@tailwindcss/oxide-linux-arm-gnueabihf': 4.3.3 - '@tailwindcss/oxide-linux-arm64-gnu': 4.3.3 - '@tailwindcss/oxide-linux-arm64-musl': 4.3.3 - '@tailwindcss/oxide-linux-x64-gnu': 4.3.3 - '@tailwindcss/oxide-linux-x64-musl': 4.3.3 - '@tailwindcss/oxide-wasm32-wasi': 4.3.3 - '@tailwindcss/oxide-win32-arm64-msvc': 4.3.3 - '@tailwindcss/oxide-win32-x64-msvc': 4.3.3 - - '@tailwindcss/postcss@4.3.3': + '@tailwindcss/oxide-android-arm64': 4.3.5 + '@tailwindcss/oxide-darwin-arm64': 4.3.5 + '@tailwindcss/oxide-darwin-x64': 4.3.5 + '@tailwindcss/oxide-freebsd-x64': 4.3.5 + '@tailwindcss/oxide-linux-arm-gnueabihf': 4.3.5 + '@tailwindcss/oxide-linux-arm64-gnu': 4.3.5 + '@tailwindcss/oxide-linux-arm64-musl': 4.3.5 + '@tailwindcss/oxide-linux-x64-gnu': 4.3.5 + '@tailwindcss/oxide-linux-x64-musl': 4.3.5 + '@tailwindcss/oxide-wasm32-wasi': 4.3.5 + '@tailwindcss/oxide-win32-arm64-msvc': 4.3.5 + '@tailwindcss/oxide-win32-x64-msvc': 4.3.5 + + '@tailwindcss/postcss@4.3.5': dependencies: '@alloc/quick-lru': 5.3.0 - '@tailwindcss/node': 4.3.3 - '@tailwindcss/oxide': 4.3.3 + '@tailwindcss/node': 4.3.5 + '@tailwindcss/oxide': 4.3.5 postcss: 8.5.31 - tailwindcss: 4.3.3 + tailwindcss: 4.3.5 '@turbo/darwin-64@2.11.10': optional: true @@ -4888,14 +4903,14 @@ snapshots: dependencies: '@types/node': 26.6.6 - '@typescript-eslint/eslint-plugin@8.72.1(@typescript-eslint/parser@8.72.1(eslint@10.14.0(jiti@2.7.0))(typescript@7.0.2))(eslint@10.14.0(jiti@2.7.0))(typescript@7.0.2)': + '@typescript-eslint/eslint-plugin@8.72.2(@typescript-eslint/parser@8.72.2(eslint@10.14.0(jiti@2.7.0))(typescript@7.0.2))(eslint@10.14.0(jiti@2.7.0))(typescript@7.0.2)': dependencies: '@eslint-community/regexpp': 4.12.2 - '@typescript-eslint/parser': 8.72.1(eslint@10.14.0(jiti@2.7.0))(typescript@7.0.2) - '@typescript-eslint/scope-manager': 8.72.1 - '@typescript-eslint/type-utils': 8.72.1(eslint@10.14.0(jiti@2.7.0))(typescript@7.0.2) - '@typescript-eslint/utils': 8.72.1(eslint@10.14.0(jiti@2.7.0))(typescript@7.0.2) - '@typescript-eslint/visitor-keys': 8.72.1 + '@typescript-eslint/parser': 8.72.2(eslint@10.14.0(jiti@2.7.0))(typescript@7.0.2) + '@typescript-eslint/scope-manager': 8.72.2 + '@typescript-eslint/type-utils': 8.72.2(eslint@10.14.0(jiti@2.7.0))(typescript@7.0.2) + '@typescript-eslint/utils': 8.72.2(eslint@10.14.0(jiti@2.7.0))(typescript@7.0.2) + '@typescript-eslint/visitor-keys': 8.72.2 eslint: 10.14.0(jiti@2.7.0) ignore: 7.0.14 natural-compare: 1.4.0 @@ -4904,41 +4919,41 @@ snapshots: transitivePeerDependencies: - supports-color - '@typescript-eslint/parser@8.72.1(eslint@10.14.0(jiti@2.7.0))(typescript@7.0.2)': + '@typescript-eslint/parser@8.72.2(eslint@10.14.0(jiti@2.7.0))(typescript@7.0.2)': dependencies: - '@typescript-eslint/scope-manager': 8.72.1 - '@typescript-eslint/types': 8.72.1 - '@typescript-eslint/typescript-estree': 8.72.1(typescript@7.0.2) - '@typescript-eslint/visitor-keys': 8.72.1 + '@typescript-eslint/scope-manager': 8.72.2 + '@typescript-eslint/types': 8.72.2 + '@typescript-eslint/typescript-estree': 8.72.2(typescript@7.0.2) + '@typescript-eslint/visitor-keys': 8.72.2 debug: 4.4.3 eslint: 10.14.0(jiti@2.7.0) typescript: 7.0.2 transitivePeerDependencies: - supports-color - '@typescript-eslint/project-service@8.72.1(typescript@7.0.2)': + '@typescript-eslint/project-service@8.72.2(typescript@7.0.2)': dependencies: - '@typescript-eslint/tsconfig-utils': 8.72.1(typescript@7.0.2) - '@typescript-eslint/types': 8.72.1 + '@typescript-eslint/tsconfig-utils': 8.72.2(typescript@7.0.2) + '@typescript-eslint/types': 8.72.2 debug: 4.4.3 typescript: 7.0.2 transitivePeerDependencies: - supports-color - '@typescript-eslint/scope-manager@8.72.1': + '@typescript-eslint/scope-manager@8.72.2': dependencies: - '@typescript-eslint/types': 8.72.1 - '@typescript-eslint/visitor-keys': 8.72.1 + '@typescript-eslint/types': 8.72.2 + '@typescript-eslint/visitor-keys': 8.72.2 - '@typescript-eslint/tsconfig-utils@8.72.1(typescript@7.0.2)': + '@typescript-eslint/tsconfig-utils@8.72.2(typescript@7.0.2)': dependencies: typescript: 7.0.2 - '@typescript-eslint/type-utils@8.72.1(eslint@10.14.0(jiti@2.7.0))(typescript@7.0.2)': + '@typescript-eslint/type-utils@8.72.2(eslint@10.14.0(jiti@2.7.0))(typescript@7.0.2)': dependencies: - '@typescript-eslint/types': 8.72.1 - '@typescript-eslint/typescript-estree': 8.72.1(typescript@7.0.2) - '@typescript-eslint/utils': 8.72.1(eslint@10.14.0(jiti@2.7.0))(typescript@7.0.2) + '@typescript-eslint/types': 8.72.2 + '@typescript-eslint/typescript-estree': 8.72.2(typescript@7.0.2) + '@typescript-eslint/utils': 8.72.2(eslint@10.14.0(jiti@2.7.0))(typescript@7.0.2) debug: 4.4.3 eslint: 10.14.0(jiti@2.7.0) ts-api-utils: 2.5.0(typescript@7.0.2) @@ -4946,14 +4961,14 @@ snapshots: transitivePeerDependencies: - supports-color - '@typescript-eslint/types@8.72.1': {} + '@typescript-eslint/types@8.72.2': {} - '@typescript-eslint/typescript-estree@8.72.1(typescript@7.0.2)': + '@typescript-eslint/typescript-estree@8.72.2(typescript@7.0.2)': dependencies: - '@typescript-eslint/project-service': 8.72.1(typescript@7.0.2) - '@typescript-eslint/tsconfig-utils': 8.72.1(typescript@7.0.2) - '@typescript-eslint/types': 8.72.1 - '@typescript-eslint/visitor-keys': 8.72.1 + '@typescript-eslint/project-service': 8.72.2(typescript@7.0.2) + '@typescript-eslint/tsconfig-utils': 8.72.2(typescript@7.0.2) + '@typescript-eslint/types': 8.72.2 + '@typescript-eslint/visitor-keys': 8.72.2 debug: 4.4.3 minimatch: 10.2.6 semver: 7.8.5 @@ -4963,20 +4978,20 @@ snapshots: transitivePeerDependencies: - supports-color - '@typescript-eslint/utils@8.72.1(eslint@10.14.0(jiti@2.7.0))(typescript@7.0.2)': + '@typescript-eslint/utils@8.72.2(eslint@10.14.0(jiti@2.7.0))(typescript@7.0.2)': dependencies: '@eslint-community/eslint-utils': 4.10.1(eslint@10.14.0(jiti@2.7.0)) - '@typescript-eslint/scope-manager': 8.72.1 - '@typescript-eslint/types': 8.72.1 - '@typescript-eslint/typescript-estree': 8.72.1(typescript@7.0.2) + '@typescript-eslint/scope-manager': 8.72.2 + '@typescript-eslint/types': 8.72.2 + '@typescript-eslint/typescript-estree': 8.72.2(typescript@7.0.2) eslint: 10.14.0(jiti@2.7.0) typescript: 7.0.2 transitivePeerDependencies: - supports-color - '@typescript-eslint/visitor-keys@8.72.1': + '@typescript-eslint/visitor-keys@8.72.2': dependencies: - '@typescript-eslint/types': 8.72.1 + '@typescript-eslint/types': 8.72.2 eslint-visitor-keys: 5.0.1 '@typescript/typescript-aix-ppc64@7.0.2': @@ -5039,16 +5054,16 @@ snapshots: '@typescript/typescript-win32-x64@7.0.2': optional: true - '@vitest/mocker@5.0.5(vite@8.0.7(@types/node@26.6.6)(esbuild@0.28.2)(jiti@2.7.0)(tsx@4.23.15))': + '@vitest/mocker@5.1.0(vite@8.0.7(@types/node@26.6.6)(esbuild@0.28.2)(jiti@2.7.0)(tsx@4.23.15))': dependencies: '@jridgewell/trace-mapping': 0.3.31 - '@vitest/spy': 5.0.5 + '@vitest/spy': 5.1.0 estree-walker: 3.0.3 magic-string: 1.4.4 optionalDependencies: vite: 8.0.7(@types/node@26.6.6)(esbuild@0.28.2)(jiti@2.7.0)(tsx@4.23.15) - '@vitest/spy@5.0.5': {} + '@vitest/spy@5.1.0': {} abbrev@1.1.1: {} @@ -5233,9 +5248,9 @@ snapshots: charm@0.1.2: {} - chromium-bidi@157.0.8090-0(devtools-protocol@0.0.1704951): + chromium-bidi@157.0.8090-0(devtools-protocol@0.0.1717327): dependencies: - devtools-protocol: 0.0.1704951 + devtools-protocol: 0.0.1717327 mitt: 3.0.1 zod: 4.6.7 @@ -5308,7 +5323,7 @@ snapshots: detect-libc@2.1.2: {} - devtools-protocol@0.0.1704951: {} + devtools-protocol@0.0.1717327: {} dot-prop@6.0.1: dependencies: @@ -5318,7 +5333,7 @@ snapshots: dependencies: type-fest: 2.19.0 - dotenv@18.0.9: {} + dotenv@18.0.10: {} drawille-blessed-contrib@1.0.0: {} @@ -5824,88 +5839,39 @@ snapshots: prelude-ls: 1.2.1 type-check: 0.4.0 - lightningcss-android-arm64@1.32.0: - optional: true - lightningcss-android-arm64@1.33.0: optional: true - lightningcss-darwin-arm64@1.32.0: - optional: true - lightningcss-darwin-arm64@1.33.0: optional: true - lightningcss-darwin-x64@1.32.0: - optional: true - lightningcss-darwin-x64@1.33.0: optional: true - lightningcss-freebsd-x64@1.32.0: - optional: true - lightningcss-freebsd-x64@1.33.0: optional: true - lightningcss-linux-arm-gnueabihf@1.32.0: - optional: true - lightningcss-linux-arm-gnueabihf@1.33.0: optional: true - lightningcss-linux-arm64-gnu@1.32.0: - optional: true - lightningcss-linux-arm64-gnu@1.33.0: optional: true - lightningcss-linux-arm64-musl@1.32.0: - optional: true - lightningcss-linux-arm64-musl@1.33.0: optional: true - lightningcss-linux-x64-gnu@1.32.0: - optional: true - lightningcss-linux-x64-gnu@1.33.0: optional: true - lightningcss-linux-x64-musl@1.32.0: - optional: true - lightningcss-linux-x64-musl@1.33.0: optional: true - lightningcss-win32-arm64-msvc@1.32.0: - optional: true - lightningcss-win32-arm64-msvc@1.33.0: optional: true - lightningcss-win32-x64-msvc@1.32.0: - optional: true - lightningcss-win32-x64-msvc@1.33.0: optional: true - lightningcss@1.32.0: - dependencies: - detect-libc: 2.1.2 - 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 - lightningcss@1.33.0: dependencies: detect-libc: 2.1.2 @@ -5942,10 +5908,6 @@ snapshots: lowercase-keys@3.0.0: {} - magic-string@0.30.21: - dependencies: - '@jridgewell/sourcemap-codec': 1.6.0 - magic-string@1.4.4: dependencies: '@jridgewell/sourcemap-codec': 1.6.0 @@ -6181,80 +6143,80 @@ snapshots: punycode@2.3.1: {} - puppeteer-core@25.16.0: + puppeteer-core@25.17.0: dependencies: - '@puppeteer/browsers': 3.2.6 - chromium-bidi: 157.0.8090-0(devtools-protocol@0.0.1704951) - devtools-protocol: 0.0.1704951 + '@puppeteer/browsers': 3.2.7 + chromium-bidi: 157.0.8090-0(devtools-protocol@0.0.1717327) + devtools-protocol: 0.0.1717327 typed-query-selector: 2.12.3 - webdriver-bidi-protocol: 1.0.1 - ws: 8.22.0 + webdriver-bidi-protocol: 1.0.2 + ws: 8.22.2 transitivePeerDependencies: - bufferutil - proxy-agent - utf-8-validate - yauzl - puppeteer-extra-plugin-stealth@2.11.2(puppeteer-extra@3.3.6(puppeteer-core@25.16.0)(puppeteer@25.16.0)): + puppeteer-extra-plugin-stealth@2.11.2(puppeteer-extra@3.3.6(puppeteer-core@25.17.0)(puppeteer@25.17.0)): dependencies: debug: 4.4.3 - puppeteer-extra-plugin: 3.2.3(puppeteer-extra@3.3.6(puppeteer-core@25.16.0)(puppeteer@25.16.0)) - puppeteer-extra-plugin-user-preferences: 2.4.1(puppeteer-extra@3.3.6(puppeteer-core@25.16.0)(puppeteer@25.16.0)) + puppeteer-extra-plugin: 3.2.3(puppeteer-extra@3.3.6(puppeteer-core@25.17.0)(puppeteer@25.17.0)) + puppeteer-extra-plugin-user-preferences: 2.4.1(puppeteer-extra@3.3.6(puppeteer-core@25.17.0)(puppeteer@25.17.0)) optionalDependencies: - puppeteer-extra: 3.3.6(puppeteer-core@25.16.0)(puppeteer@25.16.0) + puppeteer-extra: 3.3.6(puppeteer-core@25.17.0)(puppeteer@25.17.0) transitivePeerDependencies: - supports-color - puppeteer-extra-plugin-user-data-dir@2.4.1(puppeteer-extra@3.3.6(puppeteer-core@25.16.0)(puppeteer@25.16.0)): + puppeteer-extra-plugin-user-data-dir@2.4.1(puppeteer-extra@3.3.6(puppeteer-core@25.17.0)(puppeteer@25.17.0)): dependencies: debug: 4.4.3 fs-extra: 10.1.0 - puppeteer-extra-plugin: 3.2.3(puppeteer-extra@3.3.6(puppeteer-core@25.16.0)(puppeteer@25.16.0)) + puppeteer-extra-plugin: 3.2.3(puppeteer-extra@3.3.6(puppeteer-core@25.17.0)(puppeteer@25.17.0)) rimraf: 3.0.2 optionalDependencies: - puppeteer-extra: 3.3.6(puppeteer-core@25.16.0)(puppeteer@25.16.0) + puppeteer-extra: 3.3.6(puppeteer-core@25.17.0)(puppeteer@25.17.0) transitivePeerDependencies: - supports-color - puppeteer-extra-plugin-user-preferences@2.4.1(puppeteer-extra@3.3.6(puppeteer-core@25.16.0)(puppeteer@25.16.0)): + puppeteer-extra-plugin-user-preferences@2.4.1(puppeteer-extra@3.3.6(puppeteer-core@25.17.0)(puppeteer@25.17.0)): dependencies: debug: 4.4.3 deepmerge: 4.3.1 - puppeteer-extra-plugin: 3.2.3(puppeteer-extra@3.3.6(puppeteer-core@25.16.0)(puppeteer@25.16.0)) - puppeteer-extra-plugin-user-data-dir: 2.4.1(puppeteer-extra@3.3.6(puppeteer-core@25.16.0)(puppeteer@25.16.0)) + puppeteer-extra-plugin: 3.2.3(puppeteer-extra@3.3.6(puppeteer-core@25.17.0)(puppeteer@25.17.0)) + puppeteer-extra-plugin-user-data-dir: 2.4.1(puppeteer-extra@3.3.6(puppeteer-core@25.17.0)(puppeteer@25.17.0)) optionalDependencies: - puppeteer-extra: 3.3.6(puppeteer-core@25.16.0)(puppeteer@25.16.0) + puppeteer-extra: 3.3.6(puppeteer-core@25.17.0)(puppeteer@25.17.0) transitivePeerDependencies: - supports-color - puppeteer-extra-plugin@3.2.3(puppeteer-extra@3.3.6(puppeteer-core@25.16.0)(puppeteer@25.16.0)): + puppeteer-extra-plugin@3.2.3(puppeteer-extra@3.3.6(puppeteer-core@25.17.0)(puppeteer@25.17.0)): dependencies: '@types/debug': 4.1.13 debug: 4.4.3 merge-deep: 3.0.3 optionalDependencies: - puppeteer-extra: 3.3.6(puppeteer-core@25.16.0)(puppeteer@25.16.0) + puppeteer-extra: 3.3.6(puppeteer-core@25.17.0)(puppeteer@25.17.0) transitivePeerDependencies: - supports-color - puppeteer-extra@3.3.6(puppeteer-core@25.16.0)(puppeteer@25.16.0): + puppeteer-extra@3.3.6(puppeteer-core@25.17.0)(puppeteer@25.17.0): dependencies: '@types/debug': 4.1.13 debug: 4.4.3 deepmerge: 4.3.1 optionalDependencies: - puppeteer: 25.16.0 - puppeteer-core: 25.16.0 + puppeteer: 25.17.0 + puppeteer-core: 25.17.0 transitivePeerDependencies: - supports-color - puppeteer@25.16.0: + puppeteer@25.17.0: dependencies: - '@puppeteer/browsers': 3.2.6 - chromium-bidi: 157.0.8090-0(devtools-protocol@0.0.1704951) - devtools-protocol: 0.0.1704951 + '@puppeteer/browsers': 3.2.7 + chromium-bidi: 157.0.8090-0(devtools-protocol@0.0.1717327) + devtools-protocol: 0.0.1717327 lilconfig: 3.1.4 - puppeteer-core: 25.16.0 + puppeteer-core: 25.17.0 typed-query-selector: 2.12.3 transitivePeerDependencies: - bufferutil @@ -6550,7 +6512,7 @@ snapshots: has-flag: 4.0.0 supports-color: 7.2.0 - tailwindcss@4.3.3: {} + tailwindcss@4.3.5: {} tapable@2.3.3: {} @@ -6604,12 +6566,12 @@ snapshots: typed-query-selector@2.12.3: {} - typescript-eslint@8.72.1(eslint@10.14.0(jiti@2.7.0))(typescript@7.0.2): + typescript-eslint@8.72.2(eslint@10.14.0(jiti@2.7.0))(typescript@7.0.2): dependencies: - '@typescript-eslint/eslint-plugin': 8.72.1(@typescript-eslint/parser@8.72.1(eslint@10.14.0(jiti@2.7.0))(typescript@7.0.2))(eslint@10.14.0(jiti@2.7.0))(typescript@7.0.2) - '@typescript-eslint/parser': 8.72.1(eslint@10.14.0(jiti@2.7.0))(typescript@7.0.2) - '@typescript-eslint/typescript-estree': 8.72.1(typescript@7.0.2) - '@typescript-eslint/utils': 8.72.1(eslint@10.14.0(jiti@2.7.0))(typescript@7.0.2) + '@typescript-eslint/eslint-plugin': 8.72.2(@typescript-eslint/parser@8.72.2(eslint@10.14.0(jiti@2.7.0))(typescript@7.0.2))(eslint@10.14.0(jiti@2.7.0))(typescript@7.0.2) + '@typescript-eslint/parser': 8.72.2(eslint@10.14.0(jiti@2.7.0))(typescript@7.0.2) + '@typescript-eslint/typescript-estree': 8.72.2(typescript@7.0.2) + '@typescript-eslint/utils': 8.72.2(eslint@10.14.0(jiti@2.7.0))(typescript@7.0.2) eslint: 10.14.0(jiti@2.7.0) typescript: 7.0.2 transitivePeerDependencies: @@ -6691,10 +6653,10 @@ snapshots: jiti: 2.7.0 tsx: 4.23.15 - vitest@5.0.5(@types/node@26.6.6)(vite@8.0.7(@types/node@26.6.6)(esbuild@0.28.2)(jiti@2.7.0)(tsx@4.23.15)): + vitest@5.1.0(@types/node@26.6.6)(vite@8.0.7(@types/node@26.6.6)(esbuild@0.28.2)(jiti@2.7.0)(tsx@4.23.15)): dependencies: '@types/chai': 5.2.3 - '@vitest/mocker': 5.0.5(vite@8.0.7(@types/node@26.6.6)(esbuild@0.28.2)(jiti@2.7.0)(tsx@4.23.15)) + '@vitest/mocker': 5.1.0(vite@8.0.7(@types/node@26.6.6)(esbuild@0.28.2)(jiti@2.7.0)(tsx@4.23.15)) chai: 6.3.0 es-module-lexer: 2.3.2 expect-type: 1.4.0 @@ -6712,7 +6674,7 @@ snapshots: transitivePeerDependencies: - msw - webdriver-bidi-protocol@1.0.1: {} + webdriver-bidi-protocol@1.0.2: {} which@2.0.2: dependencies: @@ -6736,6 +6698,8 @@ snapshots: ws@8.22.0: {} + ws@8.22.2: {} + x256@0.0.2: {} xml2js@0.4.23: diff --git a/supabase/migrations/20261111190000_logicsrc_key_grants.sql b/supabase/migrations/20261111190000_logicsrc_key_grants.sql new file mode 100644 index 0000000..d4cc92d --- /dev/null +++ b/supabase/migrations/20261111190000_logicsrc_key_grants.sql @@ -0,0 +1,42 @@ +-- Keys from logicsrc (@profullstack/key-grants). +-- Created: 2026-11-11 +-- +-- kg_grant_requests one row per "Get from logicsrc" click: the nonce logicsrc +-- fetches the manifest by, the key names asked for and a +-- per-request webhook secret (signs every delivery). +-- kg_grants logicsrc grant id -> request + key name, active/revoked. +-- +-- Never a key: delivered values are sealed to the person's vault inbox and queued +-- in user_settings.secret_inbox. Columns match @profullstack/key-grants sqlStore +-- (times are epoch milliseconds). Service role only: RLS on, no policies; every +-- read and write goes through apps/web/src/lib/logicsrc-grants.ts. + +create table if not exists public.kg_grant_requests ( + nonce text primary key, + user_id uuid not null references auth.users(id) on delete cascade, + scope text, + keys text not null, + webhook_secret text not null, + next_path text not null, + created_at bigint not null, + expires_at bigint not null +); +create index if not exists kg_grant_requests_user on public.kg_grant_requests (user_id, created_at desc); + +create table if not exists public.kg_grants ( + grant_id text primary key, + nonce text not null, + user_id uuid not null references auth.users(id) on delete cascade, + scope text, + key_name text not null, + status text not null check (status in ('active', 'revoked')), + updated_at bigint not null +); +create index if not exists kg_grants_user on public.kg_grants (user_id); + +alter table public.kg_grant_requests enable row level security; +alter table public.kg_grants enable row level security; +revoke all on public.kg_grant_requests from anon, authenticated; +revoke all on public.kg_grants from anon, authenticated; +grant all on public.kg_grant_requests to service_role; +grant all on public.kg_grants to service_role;