Commit Graph
2 Commits
Author SHA1 Message Date
CatoandClaude Opus 5.5 6ee4cbb858 feat(widget): Chat mode — a chat the Cat and Loki both live in (#879)
The widget's Chat tab ships. A visitor on an embedding site asks; whichever of
the Cat (earning, getting paid) and Loki (getting things built) the question
belongs to answers as itself — both when both have something useful — from the
public fleet map, and is sent to the project that fits.

- POST /api/widget/chat: fcw_* token + origin allowlist + per-IP/per-token
  limits, charged to the token owner's fair share of the free AI pool. Links are
  attached from the map, never typed by the model. When the budget or every
  vendor refuses it still routes by keyword match (degraded: true).
- src/lib/widget-chat/concierge.ts: pure facts/prompt/links/fallback. Retired
  projects, throwaway names (same pattern as the litter gate, pinned equal) and
  unwritten not-running projects are not offered; stage words say beta/pilot,
  never live/client; facts are budgeted to survive free-tier limits.
- Chat is OPT-IN per embed (data-fc-modes="chat,report"); the default is now
  Report alone, because the same bundle runs on pilot sites. The first listed
  mode opens first. window.Loki.ask(question) lets a host page hand a question
  over (bitbaum's homepage does).

Co-authored-by: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-09-24 13:58:52 -07:00
Cato 13243a6bf6 feat(feedback): Watch progress, honest offline Queued, widget Loki modes seam (#734)
Captain Feedback no longer parks Substrata (and peers) under “moving on its
own” while the cloud builder is offline. Builder offline → Needs you with a
dig-in reason + Telegram path; one auto-retry cold-start before escalate.

Watch on the row shows a short run-ledger step (not a PTY wall), with dig-in
event trail and Terminal (source=cloud) once a session exists.

Widget panel is Loki-on-the-site: Report/Chat/Watch mode strip
(widget/surface-modes.ts). Report ships; Chat/Watch are progressive seams
via data-fc-modes.
2026-09-15 14:43:01 -07:00