Commit Graph
1 Commits
Author SHA1 Message Date
CatoandClaude Sonnet 5.5 baafb6c8e9 feat(previews): the access code lives in the app, and Loki's chat can create the website (#1194)
* 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>
2026-10-14 10:14:15 -07:00