mirror of
https://github.com/bitbaum/loki.git
synced 2026-12-04 16:07:35 +01:00
* feat(previews): the access code lives in the app, and Loki's chat can create the website "Create website for Murphy's Bar" is now one sentence to Loki, and the code is typed in the app, not set on the server. - user_preferences.preview_code (migration 0102): the operator's own code, remembered once, opens every preview they own. LOKI_PREVIEW_CODE is only the fallback. A preview with neither refuses to be created - Build a preview has an Access code field (prefilled with the saved one) - create_website chat tool: same createPreview, no dialog; answers with the link and the code. Catalog marks tools that act on the operator's command (acts) so the model does not say "needs approval" - Tests: owner code beats server code, works with no server code at all Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01XpakL9C3TESU4H45fXMFfc * fix(agent): let defineTool carry the acts flag create_website marks itself as acting on the operator's command; defineTool's parameter type did not list the field, so tsc rejected it. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01XpakL9C3TESU4H45fXMFfc --------- Co-authored-by: Claude <noreply@anthropic.com>
5 lines
286 B
SQL
5 lines
286 B
SQL
-- Migration: the operator's own access code for prospect previews
|
|
-- (src/lib/previews/access.ts, src/db/queries/preview-code.ts).
|
|
-- Additive: one nullable column. Null = use LOKI_PREVIEW_CODE from the env.
|
|
ALTER TABLE "user_preferences" ADD COLUMN IF NOT EXISTS "preview_code" text;
|