mirror of
https://github.com/bitbaum/loki.git
synced 2026-12-05 02:29:21 +01:00
dependabot/github_actions/actions/setup-node-7
137
Commits
| Author | SHA1 | Message | Date | |
|---|---|---|---|---|
|
|
21e10a42ff |
feat(review): watch Loki use your site — the pointer, the press, an ending (#1544)
The first look at someone else's version of this (a live picture of a bot's browser on a phone, 2026-11-02) showed what not to do: a desktop page shrunk to unreadable text, a dark void above it, and no sense of what the bot meant to do. Loki's browser is now watched the way you'd watch a friend use a page — on the workbench and on Review alike. - The worker records where each press lands (ReviewFrame.target: the element's box in viewport pixels, optional so older frames still play). - RobotBrowser draws Loki's pointer there and lights the pressed thing with a ring that arrives like a tap; the pointer glides between presses, rests dimmed when Loki only looks, and no ring is lit at rest. - One pure rule places the picture (lib/inspection/robot-view viewOf, tested): a tall column is filled to its height with a desktop page cropped at the sides, a phone page stands like a phone, a page too small to read leans in, and it slides so the press sits as near the middle as the edges allow. No void, no squinting. - RobotEnding: a walk that finishes while you watch says so — a check that draws itself, "All done. Loki looked at 3 pages and found 2 things worth fixing.", one button to see them; nothing found is good news. - The workbench follows the project's latest review (5 s while walking, 20 s at rest), so a walk started after the page opened appears too. - Every glide, ring and breath stops under prefers-reduced-motion. Checked in a browser against a staged walk: live on the workbench at 1440, the ending arriving mid-view, and Review on a 390px phone. Claude-Session: https://claude.ai/code/session_019MDtmswy1H6cYyL3hmLRy9 Co-authored-by: Claude <noreply@anthropic.com> |
||
|
|
929e22a423 |
feat(auth): passkeys, the second factor and the sign-in link on Loki's AccountKit runtime (#1539)
Since the switch to AccountKit, Loki offered OrangeCat, email + password and its own recovery. The runtime serves passkeys, the second factor and the sign-in link, but the compat layer answered 404 for all of them, and Loki's screens had no way to use them. - src/lib/auth/shared/open-paths.ts lists the AccountKit endpoints Loki's screens reach directly: passkeys, the second factor and the sign-in link. src/auth.ts routes them past the compat layer. None of them writes a password. Sign-up, reset, password, profile and deletion stay closed, so Loki's users table remains the one credential writer. - The sign-in card, on this runtime, adds "Sign in with a passkey", "Email me a sign-in link instead" (with account mail), and the code step after a password when the account has the second factor. The password goes straight to AccountKit for that; the demo still uses compat. Sign-up offers the link too. The words are AccountKit's labels. - Settings → Account adds passkeys (add, remove) and the second factor (set up with the password, confirm with the first code, backup codes, turn off). - A runtime plugin (sign-in-hook.ts) runs after every new session, whatever the way in. It gives a person AccountKit has but Loki does not (a link to a new address) their users row, then runs bootstrapAfterSignIn. The compat layer no longer runs it a second time. - accountkit-journeys (test:db) adds three cases: the second factor (a password alone gets the code step, the TOTP code makes the session), the hook making the Loki row and workspace, and which paths are open. - The migration doc says what is open and why. Claude-Session: https://claude.ai/code/session_019MDtmuJhiHPASaR5k8raL9 Co-authored-by: Claude <noreply@anthropic.com> |
||
|
|
410f6ffd74 |
feat(auth): the shared sign-in button on AccountKit, and a deploy check that follows the box's OIDC env (#1534)
Loki has run on AccountKit since 2026-11-01. The runtime mounts the shared sign-in (`bitbaum-signin`, SIGNIN_*) from env, and the compat layer can start it, but Loki's sign-in and sign-up pages had no button for it. The deploy check also expected only "email-password" on this runtime, so OrangeCat could vanish from /api/auth/providers without failing a deploy. - getEnabledAuthProviders().signin is AccountKit's signinBroker(env), on the AccountKit runtime only. Sign-in and sign-up show "Continue with Google, Apple, GitHub, X or Facebook" (AccountKit's own label) next to OrangeCat, started through next-auth/react like OrangeCat. - scripts/expected-auth-providers.ts expects, on AccountKit, the password form plus every OIDC client AccountKit mounts (oidcClients): orangecat with ORANGECAT_OAUTH_*, bitbaum-signin with SIGNIN_*. On Auth.js it behaves as before. - deploy-hetzner.sh reads the box's OIDC env for it from /opt/fleet/env and the app .env, a non-empty app line winning as in launch.sh. The issuers and client ids are passed as they are; each secret is passed only as "set". - scripts/test/deploy-expected-providers.ts covers both runtimes and the button. Claude-Session: https://claude.ai/code/session_019MDtmuJhiHPASaR5k8raL9 Co-authored-by: Claude <noreply@anthropic.com> |
||
|
|
f07165a356 |
Loki first: the chat opens, three words in the sidebar, a one-screen workbench, and a voice on your side (#1506)
* feat(workbench): one project side by side, on one screen or two A project's session and Loki as columns of one window, and its site in a window of its own — beside this one or on the other screen. Nothing in it is new UI: the columns are TerminalSurface and LokiWorkspace mounted as they are; the site is the live page with the owner's pass, where pointing and "Fix it now" already live. What the workbench adds is the arrangement. - /projects/[id]/workbench, a Workbench row on the project page, and the pane SSOT in config/workbench.ts (session, loki). - The site is a window, not a pane, on purpose: every fleet site sends frame-ancestors 'none' and Cross-Origin-Opener-Policy same-origin, so it can be neither framed nor reached as an opener. The workbench says only what it knows. docs/architecture/workbench.md. - Windows open the best way the platform offers: Fleet Runner places them from the real display list (new IPC open-workbench-window, v0.8.60, caller tiled left / new window right, or the other display whole, an open window brought forward); a Chromium browser places a popup on the other screen once allowed; any browser gets a half-screen popup. - Any pane in its own window (?pane=): a solo window hides the shell chrome at every width; the windows of one project on one machine keep each other honest over a BroadcastChannel (a popped-out pane leaves its window and returns when that window closes). - Which panes a window shows is device-local (localStorage per project), never a column on the project. Two columns from xl; below that one pane at a time and the strip chooses; below md the phone's rows. - Each column's side rail (the session's Loki rail, the chat's history) is remembered for the workbench apart from its own page and starts closed in a column: TerminalSurface gets `rail`, LokiWorkspace gets `basePath`, `project` and `history`. - Full screen is the browser's own, on the workbench root. - Pure parts tested: scripts/test/workbench-layout.ts, workbench-windows.ts, workbench-placement.ts. Checked by hand at 390, 720, 1000, 1440 and 1920px and as a one-pane window at 900px, no horizontal scroll. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019MDtmswy1H6cYyL3hmLRy9 * refactor(workbench): one placement rule, a window's own layout, honest re-opens A second pass over the workbench after an independent review of the diff. - One placement module for both sides: src/lib/workbench/placement.ts is the pure rule the browser popup and Fleet Runner's real windows share (the desktop copy is gone). Tiling respects the caller's minimum width, so the 800px shell and the new window meet on a 1440px display instead of overlapping; only a display too small for both overlaps. - The layout is the window's: sessionStorage per project, kept across the window's reloads and never shared. Two full workbench windows of one project each keep their own arrangement; localStorage's cross-window storage event clobbered them. useLocalStorageState takes the area. - A popped-out pane announces itself closed on every way out — pagehide and a soft navigation away — and open again from the back-forward cache. - A window already open is brought forward, never navigated again: the site's address carries a pass minted per visit, and a second navigation left it unread in the address bar. Fleet Runner keys windows by the URL without its fragment, restores a minimized one and places it where the person now asks. - The screen-management prompt is raised when "On the other screen" is chosen, not on the open that follows: a click that waits for a prompt goes stale and the browser refuses the window. - Close in a solo window leads somewhere even when window.close() is a no-op (a typed address): it falls through to the whole workbench. - The dock click on macOS asks whether the SHELL window exists, not any window, so a site window open with the shell closed no longer hides it. - Which panes are on screen (columns, or one of them) is a pure, tested rule; window opening lives in one hook (use-workbench-windows) instead of two states; the phone's rows read each pane's surface from the registry; useBodyClass serves both the immersive chat and the solo window. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019MDtmswy1H6cYyL3hmLRy9 * feat(workbench): one box — Session and Watch, not Session and Loki The first cut put Loki's chat in the second column. Beside the session's box that was a second place to type on one screen, and a person had to work out which box did what ("I see two chats, and it just gets confusing"). The session's box already does the one thing the screen is for — it types into the live agent, or starts one — and the session already offers Loki about itself ("What's going on?"). - The second column is Watch: the project's run as a live thread (what you asked, Loki narrating, the agent's screen, and where the change is — pull request, tested and merged, live), mounted from ProjectWatch as it is. It has no box. Loki's chat stays its own page. - The pane registry carries where each pane's own page is (`pageHref`), so the phone's rows and the columns read one list. - A pane body can be a scrolling thread (Watch) or a surface that fills the pane (the session). - LokiWorkspace is back to what it was: the host-path, project and history props it only grew for the workbench are gone with their only caller. - The project row says what the screen is for: "Say what to change and watch it happen, with the site beside". Checked by hand at 390, 720, 1000, 1440 and 1920px and in both solo windows: no horizontal scroll, no console errors. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019MDtmswy1H6cYyL3hmLRy9 * feat(workbench): one screen, one box — the site as Loki sees it, the robot, one line of state "If a user sees tons of options, they can feel a paralysis" (owner, 2026-10-31). The screen showed about twenty controls: the Sessions page's builder picker, tab strip, agent and view switches, Watch's card with its own buttons, pane toggles, a window-placement menu. One thing to do, a few things to see — so: - The site, left, as Loki's own browser sees it (WorkbenchSiteView): the review worker already walks the site in a headless Chromium on the box and keeps one frame per action with the action named. While it walks, this shows the robot using the site, frame by frame — the one thing no window of yours can show; at rest, the last look. A tap opens the real site in its own window, where the person uses it and the widget does the watching. Fleet sites forbid framing and sever window.opener, so a picture of Loki's browser is what can honestly be shown inside Loki. - The robot, right: TerminalSurface in a new quiet shape (`quiet`) — no builder picker (which builder runs a project is a stored decision), no tab strip of other projects, no shell rows; the chat | terminal switch and the agent stay. Its box is the ONE box on the screen. - One line of state over the robot (WorkbenchStateLine): the sentence the Watch track composes, a dot for its tone, "Watch it work" for the whole story. Pure stateLine() in lib/workbench/state-line.ts, tested. The Watch column is gone from the screen. - One "⋯" for the rest: the robot in its own window / on the other screen, the site on the other screen, full screen. The pane toggles and the placement menu are gone; a placement named for one opening wins and becomes the remembered one. - The pane registry is the robot alone; the site is a region. Below xl the robot alone (the site is in its own window anyway). On a phone: the site, the robot, Watch it work, as rows. - TerminalSurface stayed under the function-size ceiling by lifting the builder-picker wrapper and the resume filter out of it. Checked by hand at 390, 720, 1440 and 1920px and in the solo window: no horizontal scroll, no console errors. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019MDtmswy1H6cYyL3hmLRy9 * feat(workbench): a focus screen — the app's chrome leaves while you build Three layers of navigation sat around two columns: the sidebar's twenty destinations, the project strip ("Profile · Chat · Home · Sessions"), then the workbench's own header and the robot's bar with the Sessions page's agent menu — "Frankenstein elements just thrown together" (owner, 2026-11-01). - While the workbench is open, the sidebar, top bar, bottom tabs, footer and project strip are gone (body.fc-workbench-focus, the former solo rule applied to the whole screen from md up). They are for moving between pages, and a person here is not moving. The one back link in the header is the way out. A phone keeps its own bars: the rows need them. - The robot's bar is the chat | terminal switch alone (TerminalSessionBar `agentSwitch`, off in the quiet shape): the session's own chip names the agent and its box changes it. What is on the screen now, left to right: back, Open the site, "⋯"; the site as Loki sees it; the robot with one line of state, the view switch and the one box. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019MDtmswy1H6cYyL3hmLRy9 * feat(workbench): two windows of one desk — one frame, a title bar each The site sat in a card and the robot stood bare beside it, with a line of state floating above and a caption floating below: two different things on one screen. Now both regions, and a solo window, are one frame (WorkbenchFrame): a title bar — a dot for its tone, one sentence, one link — over a body. - The site's bar is its address and what Loki is doing there ("Live", "Loki is using it: …", "Loki's last look: …"), like a browser's own tab; its body the page, top-aligned; before any look, the address alone and "Tap to open" — never a sentence apologising for an empty box. - The robot's bar is the build's state (hooks/use-run-state, the Watch track's sentence) with "Watch it work"; its body the session with the one box. WorkbenchStateLine is folded into it. - The floating Ask Loki button leaves in focus: its panel is the second chat this screen deliberately has not, and it sat on the send arrow. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019MDtmswy1H6cYyL3hmLRy9 * feat(nav): Loki first — the chat is the default screen, three words then folds The owner's philosophy, 2026-11-01, now in AGENTS.md ("Why Loki exists, and for whom"): a good Loki chat, reachable in one step, is the screen that opens; the rest of the app one tap away; a friend on your side, not a staff; never a screen that makes a person feel stupid; measure by effort, not features. - APP_HOME and RUNNER_HOME are /loki: signing in, and Fleet Runner starting with the computer, land on the chat. They landed on Today, a page to read before a person could say anything. - The sidebar is three bare words — Loki, Home, Projects — the same three as the phone's bottom bar (Loki first there too), then folded groups that each say the question they answer: Waiting for you (Approvals, Feedback), Your day (Today, Suggestions, Voice), Across your projects (Sessions, Missions, Activity, Prompts), Under the hood (Packages, System), and Private behind the PIN. Not a drawer called More: the navigation test records why a "More" section rots, and still forbids it; the phone's More is the folded groups as a sheet. - Every sidebar line says what it is for on hover (the item's own description), so nothing has to be guessed. - SidebarSection gains `bare` (no header, never folded) and `foldedByDefault`; the tests that pinned the old Build / Loki / To review / The fleet placement now pin the new homes. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019MDtmswy1H6cYyL3hmLRy9 * feat(voice): Loki speaks as someone on your side The owner's philosophy (AGENTS.md, "Why Loki exists"): a friend on your side, not a staff you direct; never a word that makes a person feel stupid. The public pages still said the opposite. - Hero: "Say what you want. Loki builds it with you." (was "Describe it. Agents build it."). The lede, APP_DESCRIPTION, the social-card tagline and the how-it-works steps follow. Every factual claim is one the product keeps: it builds with AI agents, puts it online, changes it on ask. - /why's principles open with two new ones from the owner's words: "On your side" and "Life is short". Commitments about how Loki is made, not claims about what it does. - The new-project card says "Say what you want. Loki sets it up and starts building." instead of repos and agents; the sidebar's Loki line drops "dispatch" for "Loki answers, or builds it with you". - The hero's two sentences are separate balanced blocks: on a phone each breaks as an even pair, never one word alone. The mission headline on /why ("Direct the creation of …") is left for the owner to decide. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019MDtmswy1H6cYyL3hmLRy9 * feat(voice): the mission reads "with someone on your side" /why's headline was "Direct the creation of everything you can imagine." — the staff-you-manage voice the owner set aside. It now reads "Make everything you can imagine, with someone on your side.", the owner's own call (2026-11-01). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019MDtmswy1H6cYyL3hmLRy9 --------- Co-authored-by: Claude <noreply@anthropic.com> |
||
|
|
5af8b91471 |
docs(auth): the account journeys are proven live (#1530)
Loki's accountkit-switch.yml prove ran on every switched app with throwaway accounts: two sessions, a row change read on the next request, a password write ending every session, sign-out, deletion, and a real browser OrangeCat sign-in where offered. The docs listed these as waiting on an approved test identity; they now say what was proven, what it found, and what no machine can prove (a reset mail in a real inbox). Claude-Session: https://claude.ai/code/session_019MDtmud6zcK4rStBGmYSML Co-authored-by: Claude <noreply@anthropic.com> |
||
|
|
e2915bf6dd |
fix(auth): OrangeCat sign-in on AccountKit works, and keeps its tokens (#1528)
* fix(auth): OrangeCat sign-in on AccountKit works, and keeps its tokens AccountKit 0.19.0 fixes a first OrangeCat sign-in failing with unable_to_create_user (Loki's mirror recorded the link before better-auth stored its own) and hands the provider's tokens to onAccountCreated. ensureLokiUser now keeps OrangeCat's token set in Loki's accounts, where publish, promote and the wallet read it; on AccountKit nothing reached them before, because AccountKit stores no provider token. Migration 0131 drops the trigger that was meant to copy them out of auth_accounts. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019MDtmud6zcK4rStBGmYSML * style: format the generated migration meta Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019MDtmud6zcK4rStBGmYSML --------- Co-authored-by: Claude <noreply@anthropic.com> |
||
|
|
5a1c34981d |
feat(ops): prove the account journeys live on a switched product (#1515)
A prove action for accountkit-switch.yml, with throwaway accounts deleted again: two sessions, a row change read on the next request, a password write ending every session (old refused, new accepted), sign-out and deletion. Where the product offers OrangeCat, a real browser sign-in with a throwaway OrangeCat account through OrangeCat's sign-in and consent and back. This replaces the approved test identity the switch docs waited on. Claude-Session: https://claude.ai/code/session_019MDtmud6zcK4rStBGmYSML Co-authored-by: Claude <noreply@anthropic.com> |
||
|
|
38d0c2679b |
docs(auth): AccountKit answers sign-in since 2026-11-01 (#1513)
The switch ran from loki's accountkit-switch.yml: survey (nobody locked out), import under locks, AUTH_RUNTIME=accountkit, restart, and a live proof with a throwaway account. The docs said "staged, off"; they now say what runs, how to roll back, and what still needs an approved test identity. Claude-Session: https://claude.ai/code/session_019MDtmud6zcK4rStBGmYSML Co-authored-by: Claude <noreply@anthropic.com> |
||
|
|
281540c4bf |
feat(ops): an AccountKit switch per product, with a live proof and rollback (#1510)
Five products stage AccountKit beside Auth.js behind AUTH_RUNTIME. This is the switch, from GitHub over the deploy's SSH, one product per run: - survey: counts only, including people whose only way in is a social provider AccountKit cannot reach yet (they would be locked out); - switch: refuses while that count is above zero; imports under locks with the product's own accountkit-import.sql, ensures a 32-character BETTER_AUTH_SECRET, sets AUTH_RUNTIME=accountkit, restarts, then proves on the public site that AccountKit answers and a throwaway account signs in, reads its session and signs out (deleted after); any failure rolls back; - rollback: AUTH_RUNTIME off, restart on Auth.js, mirrors dropped, shared tables emptied. The log is public: counts and verdicts only. test-accountkit-switch.sh joins test:ops. Claude-Session: https://claude.ai/code/session_019MDtmud6zcK4rStBGmYSML Co-authored-by: Claude <noreply@anthropic.com> |
||
|
|
f82e076fc6 |
refactor(auth): use AccountKit's compat layer instead of a local copy (#1508)
The next-auth/react bridge, its call helper, the session plumbing, the AUTH_RUNTIME switch, the import rehearsal script and the journey-test cookie client were copies of code five products each carried. They now come from AccountKit 0.18.0: - @bitbaum/accountkit/auth/nextauth-compat answers next-auth/react. The product's compat.ts holds only what is its own: the session shape, how each password form signs in, its login codes and hooks. - @bitbaum/accountkit/auth/switch: sharedRuntimeEnabled(). - `pnpm run db:rehearse-import` runs AccountKit's accountkit-rehearse-import on this product's import SQL. - The journeys use @bitbaum/accountkit/auth/compat-testing. Behaviour is unchanged with the switch off. With it on, a signed-out session reads as null, and a resolver or hook failure is a readable refusal rather than a 500. The real-database journeys pass unchanged. Claude-Session: https://claude.ai/code/session_019MDtmud6zcK4rStBGmYSML Co-authored-by: Claude <noreply@anthropic.com> |
||
|
|
0adea245cc |
feat(auth): stage AccountKit beside Auth.js, switch off (#1503)
Loki moves from Auth.js to @bitbaum/accountkit one reversible step at a time, as evig, kivvi, petvity and surf-your-life do. Nothing changes while AUTH_RUNTIME is unset. - Migration 0130: AccountKit's tables under `auth_`, and the mirror functions: users <-> auth_users, and AccountKit's OrangeCat token set into Loki's `accounts`, where publish, promote and the wallet read it. - scripts/db/accountkit-import.sql + a rollback-only rehearsal: ids, Loki's own scrypt hashes (read through AccountKit 0.17.0's legacyPassword), verification, OrangeCat links, a placeholder address for people with none; collisions, drift and a live shared runtime refused. - src/lib/auth/shared/: the runtime, the session re-read from `users` on every request, and a bridge for next-auth/react: email, the invite's user-password and the owner key (stored hash only), OrangeCat sign-in or link, and the studio's server signIn by redirect. GitHub, Google and X are not offered on this runtime (getEnabledAuthProviders knows it). - src/lib/auth/bootstrap.ts: onboarding heal and personal org, now one function both runtimes call. - The proxy reads the shared session and asks the same authorized(). - /api/me/password keeps the caller's shared session. - scripts/test/accountkit-journeys.ts joins `test:db` (16 journeys and the rehearsal on CI's Postgres). docs/architecture/accountkit-migration.md records what blocks the switch, chiefly GitHub/Google sign-in and the GitHub repository token. Claude-Session: https://claude.ai/code/session_019MDtmud6zcK4rStBGmYSML Co-authored-by: Claude <noreply@anthropic.com> |
||
|
|
59cd3e7b10 |
feat(terminal): a plain shell on the builder, operator-only behind the PIN (#1449)
* feat(terminal): a plain shell on the builder, operator-only behind the PIN Sessions -> Plain shell opens a real bash login shell in a PTY the builder owns: no project, no agent, no inject wrapper. It is one more kind of session on the existing transport (open_shell command, peek-stream, the rawkey lane, tab-memory), not a second terminal. Security: operator account only (browser session, never a bearer token); a PIN must be set and the shell's own unlock (10 min idle, 60 max) entered; opens rate-limited and capped at 3 per builder; no queued command except open/close/peek may name a shell tab (queue, validator and injectPty); tenant and sealed builders never offer one; shell environment carries no engine keys. Every open/close/denied/unlock is on an append-only audit trail with no content. Threat model: docs/architecture/plain-shell.md. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_018WZnBnaLP6RhwFkLxRTKgE * test(terminal): keep the repo's gates true for the plain shell Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_018WZnBnaLP6RhwFkLxRTKgE * docs(plain-shell): name where provision-service.py lives Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_018WZnBnaLP6RhwFkLxRTKgE --------- Co-authored-by: Claude <noreply@anthropic.com> |
||
|
|
84f46ac255 |
feat(widget-chat): studio intake as a conversation, and pictures the chat can read (#1446)
The studio's door on bitbaum.orangecat.ch answered every message with one
canned stamp, and the front desk could not take a screenshot. POST
/api/widget/chat now takes:
- mode "intake" (+ purpose studio|partner): Loki asks one or two questions
at a time, names the published engagement a request resembles (from
commission.json's offers), and returns {reply, ready, summary}. The JSON
shape, the rules (no unpublished price, no date, no booking, no past work
or clients) and ready-to-file are decided in code
(src/lib/widget-chat/intake.ts); a broken rule, spent budget or outage
answers with an honest question instead.
- images (<=3 data URLs, jpeg/png/webp, <=600k chars, the ingest's
screenshots shape), read by the vision chain and folded into the prompt as
the visitor's material; unread pictures are said so in code.
commission.json's optional `offers` list is accepted by the contract.
Tests: scripts/test/widget-chat-intake.ts (fake model output, no network).
Claude-Session: https://claude.ai/code/session_018WZnBnaLP6RhwFkLxRTKgE
Co-authored-by: Claude <noreply@anthropic.com>
|
||
|
|
79e36832d8 |
fix(widget): the microphone is a segment of the launcher pill, never a second button (#1423)
On Loki's own pages the launcher is drawn by the top bar and the widget's pill is visibility:hidden, but quick-talk measured it anyway and drew a loose microphone over the tab bar that could not be moved. The microphone now lives inside the pill (one outline, one footprint for the avoid pass, clamp and drag), is grabbed like the pill, and exists only while the pill is drawn by the widget as a button. Claude-Session: https://claude.ai/code/session_01NZqZujmXpupVDC1Hi5Jbsx Co-authored-by: Claude <noreply@anthropic.com> |
||
|
|
105f75ef88 |
feat(chat): the answer feedback loop — thumbs, transcript export, nightly review (#1417)
chatkit 0.14 carries the contract both ways; this is Loki's side of the
fleet chat-review loop (docs/architecture/chat-review.md).
- Thumbs under every Loki answer: chatkit's AnswerActions with onFeedback
replaces the hand-rolled "Bad answer" button and ReportAnswer form. The
thumb goes to POST /api/chat/feedback (new chat_feedback table, migration
0128); a thumb down is still filed as a report in Loki's own inbox through
the same plumbing the old button used (lib/loki/answer-report-file.ts).
The terminal's Loki rail and the prompt Run sheet pass onFeedback to
ChatThread.
- GET /api/chat/review-export: Loki's day of conversations as
ChatTranscript[] behind the shared CHAT_REVIEW_TOKEN (bearer, constant
time, 503 while unset), scope derived from Loki's own prompt
(lokiChatScope). Never a temporary chat; no names or user ids.
- src/config/chat-review.ts (SSOT): the four products, their export URLs
and repos, the night's budgets.
- Cron review-chats at 03:40: fetch each product's export, then start one
agent run on the product's Loki project (found by gitUrl, as its owner)
carrying chatkit's CHAT_REVIEW_INSTRUCTION + reviewPrompt for every
conversation and the door to file findings through (widget token + agent
pass, Origin = the product). The route calls no model: no box timer may
spend the free AI tier (no-free-background-ai), so the judge is the
project's agent, the way AI review reads a live page. Outcome per product
under debug_logs crons/review-chats.
- share-chat-review-token.yml: generate the token on the box into Loki's
env, copy it to heidi, orangecat, substrata when absent, redeploy all four;
the value is never printed.
- .env.example, docs/architecture/chat-review.md, link from the widget doc.
Verified: pnpm run verify green through test:unit (540 files) and the
remaining gates; test:ops fails only on .env ownership in the root sandbox.
Thumbs rendered at 390px in headless Chromium: 44px targets, no sideways
scroll, the app receives {messageId, verdict, reason} on Send.
Claude-Session: https://claude.ai/code/session_018WZnBnaLP6RhwFkLxRTKgE
Co-authored-by: Claude <noreply@anthropic.com>
|
||
|
|
aed99dc3d5 |
feat(missions): Continue Mission using existing authorized project dispatch (#1405)
* feat(missions): derive guarded Continue Mission action from canonical project state * feat(missions): one-click Continue through existing permissioned project dispatch * feat(missions): expose authorized and state-gated next move in mission control * test(missions): guard resume action and reuse the authoritative project dispatch gate * docs(missions): state execution boundaries and known limitations of Continue Mission * chore(ci): temporarily emit canonical mission action formatter diff * style(missions): apply exact formatter output for Continue Mission * style(missions): apply exact formatter output for Continue Mission * chore(ci): restore full normal checks after exact mission formatting fix * fix(missions): escape JSX apostrophe in dispatch consent copy |
||
|
|
d0df538110 |
feat(missions): searchable attention-first mission board (#1400)
* feat(missions): prioritize real project alerts and provide searchable mission filters * feat(missions): searchable priority board with accessible filters and responsive cards * refactor(missions): server-owned data projection and interactive client board * test(missions): enforce the new server-to-board projection boundary * test(missions): verify truthful flags, ordering, search and responsive controls * test(missions): assert priority order for missions without roadmaps * docs(missions): specify attention ordering, visibility and truth boundaries * chore(ci): temporarily print canonical formatter diff for Missions attention board * style(missions): apply canonical Prettier formatting from CI * style(missions): apply canonical Prettier formatting from CI * style(missions): apply canonical Prettier formatting from CI * chore(ci): restore normal full verification after Missions formatting fix * fix(missions): use mobile scrollable filter row instead of wrapping choices * fix(missions): show touch-scroll fade affordance on filter strip * style(missions): format scroll-filter row after fade affordance |
||
|
|
d80c99f56e |
feat: Loki Missions — truthful project-backed mission control (#1397)
* feat(missions): derive project objectives without parallel state or fake verification * feat(missions): add real project-backed Missions overview * feat(missions): add mission objective, roadmap, and execution evidence page * feat(missions): add Missions to Build navigation and command palette * test(missions): pin honest progress derivation and tenant-scoped source reads * docs(missions): specify honest game-like UI over existing project ledger * fix(missions): count stated mission objectives rather than roadmap presence * chore(ci): temporarily capture exact Missions Prettier diff * style(missions): apply exact repository Prettier diff * style(missions): apply exact repository Prettier diff * style(missions): apply exact repository Prettier diff * chore(ci): restore normal formatting check after Missions diagnostic * test(missions): register Missions in navigation and responsive audit * test(missions): register Missions in navigation and responsive audit * test(missions): record dynamic mission viewport sample prerequisite * style(missions): respect responsive-audit formatter layout |
||
|
|
d17fdfad88 |
Sealed builds that actually start: NNP off for the unit, runsc without NoCgroups, slirp4netns, per-user image, crun (#1372)
* sealed-builds test: NoNewPrivileges toggle for diagnosis * sealed test: qualified image name, image visibility diagnostics * sealed test: store diagnostics * sealed: load the agent image into the runner user's own store * sealed test: diagnostic without runsc * sealed: runtime matrix diagnostic * Sealed builds that start: NNP off for the unit, runsc without NoCgroups, crun, per-user image * Sealed builds: slirp4netns for rootless networking * prettier * test: sealed network is slirp4netns --------- Co-authored-by: catomean <catomean@users.noreply.github.com> |
||
|
|
0bf127e967 |
Sealed builds: opencode in the agent image; read/test/on/off workflow per runner unit (#1371)
Co-authored-by: catomean <catomean@users.noreply.github.com> |
||
|
|
7e9a55d800 |
feat(studio): a booked partner holds a seat on one project and is paid through a service in their own name (#1349)
Track 3 of docs/master-plan-2026-10.md, the Loki half (the OrangeCat half is its PR #1366: the `service.write` scope and services that go live at once). - The seat (lib/studio/seat.ts, seat-change.ts): assigning an approved partner to a website brief resolves their Loki account (users.orangecat_actor_id = the identity they connected), makes them an EDITOR on the brief's linked project and switches their private builder on, so they build under their own tenant on their own engine. The seat follows the assignment and the project link (assign_partner, link_project, revoke_access) and goes when either does. Never an org membership. studio_requests.builder_user_id. - The fee (lib/studio/fee.ts, fee-listing.ts, integrations/orangecat-fee- service.ts): with a delivery a partner may state a fee once; after the delivery is saved Loki lists it as a service in the partner's OWN name on OrangeCat with the partner's own token, live at once and off their profile, and the brief shows the link to pay it. The sign-in asks for service.write. studio_requests.fee_amount/currency/service_id/url (migration 0125). - Paid is OrangeCat's word: /api/orangecat/events marks the brief paid from the settled-payment signal for a service (markStudioFeePaid, idempotent on the payment), records the event, and tells the studio, the customer and the partner. fee_paid_at is written nowhere else. - The staff screen says where the seat stands and what the fee is; the portal view carries `fee` for the partner's and the customer's screens. - Records: changelog {#builder-seat} {#builder-fee}; roadmap "Builders on other people's sites" seat and fee ticked; private-builders.md "Booked builders"; builders-and-booking.md status. scripts/test/builder-booking.ts. Claude-Session: https://claude.ai/code/session_01NZqZujmXpupVDC1Hi5Jbsx Co-authored-by: Claude <noreply@anthropic.com> |
||
|
|
01d0c4fc65 |
feat(cloud): sealed builds — rootless podman and gVisor as readings, switched on per tenant by the operator (#1348)
Track 4.2 of docs/master-plan-2026-10.md, built; switched on by a reading. - SandboxExecutor gains a podman mode (buildPodmanRunArgs): rootless as the tenant (--userns=keep-id), the tenant's home bound at the same path so sign-ins, trust and transcripts stay where the runner looks, the project's real path as workdir, network on, capabilities dropped, --cgroups=disabled so the deploy's drain still counts the processes, and gVisor's runsc as the OCI runtime when the box has it. - scripts/hetzner/agent-image/Containerfile: the image (shell, git, gh, node, Claude Code, Codex). install-sealed-builds.sh, run by every deploy: rootless podman, runsc best-effort, the image built into a shared read-only store, and a reading in /etc/loki/sealed-builds. - Nothing switches on by itself: new-tenant.sh writes the unit drop-in (LOKI_EXECUTOR=sandbox, LOKI_SANDBOX_RUNTIME=podman, runsc when read) only when the reading says ready AND /etc/loki/sealed-builds.on exists. The roadmap milestone stays unticked until a tenant builds in a container. - Tests: sandbox-executor pins the sealed shape; private-builders pins the two-reading switch and that no tenant ever joins the docker group. Claude-Session: https://claude.ai/code/session_01NZqZujmXpupVDC1Hi5Jbsx Co-authored-by: Claude <noreply@anthropic.com> |
||
|
|
83316f063a |
feat(feedback): whoever asks pays — a seat's request is a suggestion, the allowance is retired, routing tells the truth (#1344)
Track 0 of docs/master-plan-2026-10.md: stop the leak and the routing lies,
app only, nothing on the box changes.
Stop the leak
- A request on a shared project from a Builder, a client or a viewer is
filed as a suggestion in the owner's tenant (source `client` or the new
`member`), announced like a visitor's note, and waits for the owner's
tap. Only the owner's own word starts a build on the owner's builder
(ask-in-loki.ts, implement.ts, pass-holder.ts). Until now a Builder's
ask built at once on the owner's subscription and a client's built on
a monthly allowance; both spent one person's engine on another's word.
- The per-site allowance is retired: config/client-allowance.ts, the
members PATCH, the People-panel picker, the dossier count, the invite
copy. The `monthly_changes` columns stay in the schema unread (a DROP
aborts the deploy; dropped by hand later). `on_allowance` is kept and
read as `previewFirst`: a change built for the person who asked still
opens as a draft and goes live on their "Make it live".
- The owner pass is the owner's alone; everyone with a seat carries a
member pass. The 40-builds-a-day cap is keyed by the owner, not the
project: a guard on one engine, never a price.
Routing honesty
- inject-core requests only what was chosen (a lock, a named builder, a
stored preference) and lets the decision apply the floor, so a fresh
account with Fleet Runner connected runs there instead of a 403
(execution-access.ts requestedDispatchChannel).
- Kickoff writes a path under the cloud builder's root only for accounts
the cloud serves; for anyone else the path stays empty so the project
is not locked to a builder they do not have.
- "Hosted runner" is offered, accepted and dispatched only for the one
account it serves (lib/hosted-runner/serves.ts).
Records: CHANGELOG entry {#seat-suggests}, ROADMAP milestone ticked,
CLAUDE.md and feedback-widget.md say what a seat's ask is now. Tests:
client-seat rewritten, execution-access extended, the pinned shapes in
client-seat-browser, seat-on-site-and-tracking, feedback-trust,
project-capabilities and owner-note-builds updated.
Claude-Session: https://claude.ai/code/session_01NZqZujmXpupVDC1Hi5Jbsx
Co-authored-by: Claude <noreply@anthropic.com>
|
||
|
|
8efd523f46 |
docs(architecture): private builders — the plan for one sealed builder per account (#1342)
A read-through of what runs today (2026-10-19) found one builder, one identity: every cloud build runs as the owner, on the owner's Claude sign-in, with the production database password in its environment; a Builder on a shared project spends the owner's subscription; a new account cannot build at all and is told to install Fleet Runner, which fails the same way. The plan: whoever asks for a change pays for it, with their own engine, in their own builder. One Linux user per account on the box we have, a token per tenant, no database password in any runner, an allowlisted environment for every agent, and a request with no engine becomes a suggestion to the owner. Seven reversible PRs, CHF 0 in hosting. The roadmap carries the same milestones. Nothing on the box changes until the owner approves. Claude-Session: https://claude.ai/code/session_01NZqZujmXpupVDC1Hi5Jbsx Co-authored-by: Claude <noreply@anthropic.com> |
||
|
|
9031430125 |
feat(feedback): a client's seat on the site itself; visitors follow notes without an account (#1337)
* feat(feedback): a client's seat on the site itself; visitors follow notes without an account Step 3 — the seat reaches the site: - A member pass (#loki-member=) names the person, not the owner. Their project page's Open link and the widget's sign-in door give it to anyone on the project who does not build it. The widget stays the ordinary panel and sends it with each note; ingest files it through the same path as asking in Loki, so a client's note on the site builds on their allowance and goes live on their word. Membership is read when used. - The owner's own link is no longer what a client is sent: the preview's share card offers Invite them as Client. - An approved /change request seats its requester as the site's client (5 changes a month), and their request page says where to ask. Step 4 — the way back without an account: - The tracking link opens on the note's status (the My feedback card), for six months; an account is optional, below it. - A visitor who leaves an email gets the link by mail (three a day per address), and again in the shipped mail. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01NZqZujmXpupVDC1Hi5Jbsx * chore(widget): keep the conversation within its length limit Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01NZqZujmXpupVDC1Hi5Jbsx * chore(widget): hand the passes on through one helper Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01NZqZujmXpupVDC1Hi5Jbsx * test(feedback): the shared reporter card and the six-month link Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01NZqZujmXpupVDC1Hi5Jbsx --------- Co-authored-by: Claude <noreply@anthropic.com> |
||
|
|
50d632f21a |
feat(projects): a client's seat — builds on a monthly allowance, live on their word (#1336)
* feat(projects): a client's seat — builds on a monthly allowance, live on their word The client is the person a site is for. Their asks used to wait for the owner; the only other seat was Builder, which builds without limit and ships without anyone looking. Now: - The owner picks a client's changes a month on the People panel (Ask me / 5 / 20 / 50), on the invite and per client later. - Within it, the client's ask builds at once on the owner's builder. The agent opens a DRAFT pull request; it merges only after the client taps Make it live (their project page and My feedback), which lifts the draft and merges once green. Auto-ship OFF still means the owner merges. - Past it, or with Ask me, the owner decides, and the night never builds it unasked. A build that did not start is not counted. - The client is told what happened in plain words, with changes left. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01NZqZujmXpupVDC1Hi5Jbsx * fix(projects): a client's change stays a draft until their yes; the inbox names it as theirs Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01NZqZujmXpupVDC1Hi5Jbsx * chore(db): format the migration snapshot Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01NZqZujmXpupVDC1Hi5Jbsx * fix(db): drizzle comparisons for the allowance count Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01NZqZujmXpupVDC1Hi5Jbsx --------- Co-authored-by: Claude <noreply@anthropic.com> |
||
|
|
c485486984 |
fix(feedback): a stranger's words reach a builder only by a person's tap (#1335)
* fix(feedback): a stranger's words reach a builder only by a person's tap - Who filed a note is the server's call: Loki's reviewer and synthesizer carry a signed pass; a note without one is a visitor's, whatever it claims. - An overnight allowance builds only notes someone vouched for; a plan with a stranger's note waits for a tap. - Opening a tracking link never starts a build. - Telegram carries the operator's own projects only. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01NZqZujmXpupVDC1Hi5Jbsx * docs(telegram): whose news reaches the operator's chat Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01NZqZujmXpupVDC1Hi5Jbsx --------- Co-authored-by: Claude <noreply@anthropic.com> |
||
|
|
9e953a8c1f |
fix(sites): a site retired offline stays offline; one name per site (#1330)
center-com.orangecat.ch (the older Center SOM build) was taken offline with retire-site.yml and its repository archived; the preview at centersom.orangecat.ch is Center SOM. Its apps.conf row is now archived, and an archived row is skipped by a full sync (lib.sh app_names), the push-deploy installer and the watchdog — otherwise the next sync-sites run would have put it back online, and the watchdog would have paged it as down. The previews doc gains the rule the owner asked for: address, project and repository are one word. Claude-Session: https://claude.ai/code/session_01HyfPCAeTFi2sjpVY44Y1JJ Co-authored-by: Claude <noreply@anthropic.com> |
||
|
|
39474428d7 |
docs: clear docs-truth drift and retired names (#1322)
- Fix stale paths/links in docs (model-vendors billingUrl, agent adapter placeholder, bridge host setup, entitlements not yet created, tokens module). - hetzner-migration: current hosts (evig, aoz) and a pointer to scripts/hetzner/apps.conf as the live app list. - Archive two point-in-time records (fleet-runner-pty-ownership, terminal-parity) into docs/archive with a README; fix inbound refs. - Thoughts essays: repo aoz-housing is now aoz-begleitung. Claude-Session: https://claude.ai/code/session_01PJkbo18cRNXtgPWZN2S9cD Co-authored-by: Claude <noreply@anthropic.com> |
||
|
|
1e148dd225 |
docs: correct drift in Loki agent docs, infra notes and stale links (#1317)
- CLAUDE.md: loki/ components are Thread, LokiComposer (Composer.tsx) and ThreadRail (Transcript/ConversationList no longer exist); test:home runs eleven suites, not eight; /duet redirects straight to /control; the machine dogfood is scripts/machine-dogfood.mjs, not a package script. - AGENTS.md: home/ is a library embedded by the box runner, Fleet Runner and hosted runner, not a process on the user's machine. - SECURITY.md: execution runs on the cloud builder or Fleet Runner; the audit workflow runs pnpm audit. - hetzner-migration / feedback-widget: evig and AOZ are served at evig.orangecat.ch and aoz.orangecat.ch; the old hosts only redirect. - HANDOFF / oc-rail scope: bitbaum is unregistered (fleet registers/org.json), no "bitbaum AG", never "solo founder". - deploy.yml comment: the auto-merge sweep lives in bitbaum/fleet. - debt-reduction-roadmap: unlink deleted scripts. Claude-Session: https://claude.ai/code/session_01PJkbo18cRNXtgPWZN2S9cD Co-authored-by: Claude <noreply@anthropic.com> |
||
|
|
48dbead196 |
feat(previews): built to a design standard, looked at before done; chat screenshots reach the builder as images (#1309)
Center SOM's preview passed every rule in the build brief and its owner still called it cramped and not beautiful: the text ran to the screen's edge and the headline was a five-line search-engine title. The brief said what a preview must get RIGHT and nothing about what makes it GOOD, and nothing ever looked at the result. - The brief now carries a design standard (page gutter and a readable measure, type sizes and line height, short headlines, one spacing scale, one primary button, real photos cropped to consistent shapes) and a last step: screenshot every page at 390 and 1440 px with the box's headless Chromium, judge it as the owner would, fix and look again. - A screenshot sent in the Loki chat about a project now reaches its builder as the image itself (staged like the session box's: the runner writes the file, the prompt names its path). Before, the builder got only a vision model's paraphrase, and "the text is cramped" did not survive it. The description still serves the chat itself (choosing the project, the reply). injectPrompt and the queue carry `attachments`; a prompt with images is always queued for a runner (a live PTY would get unresolved placeholders), and the hosted builder, which has no runner to write files, is told plainly that the screenshot could not be delivered. Claude-Session: https://claude.ai/code/session_01Y9KbVEpxKLC9nhKhpWncU1 Co-authored-by: Claude <noreply@anthropic.com> |
||
|
|
adfbdcfe07 |
fix(session): the builder updates, the sheet changes things, one box, a preview is the site (#1305)
The owner used Loki from a phone (2026-10-18) and could not tell whether
anything worked. Four separate faults, each passing every check:
The cloud builder ran code days behind the app. Its restart waits for
every agent to be idle, and autopilot refilled the queue the instant one
finished: ten consecutive deploys (23:38 → 09:12) found "2 agent(s)
working — deferring restart". Hence "Model: not known yet" of an answer
the screen was showing. Now, while the cloud runner's heartbeat version is
behind the deploy's, the commands route hands it no work-starting
commands (dispatch, launch_agent, auto_continue, browser_task) — a
person's own words into a session still go through — so the idle moment
comes, the restart lands, the queue resumes on the new code. Server-side
on purpose: a runner-side rule would have waited for the very restart it
was meant to allow. Control's builder line says "a newer version waits
for its agents to finish" meanwhile.
An agent renamed a preview site, committed, and reported "the work lives
only on this machine — tell Loki where this preview's remote should
live". The box contract says push or fail loudly; a preview folder is
served from disk and has no remote by design, so the change had been live
since the save and the owner read a failure and a chore. Every dispatch
to a preview folder now carries "Where this goes" (lib/previews/
delivery-note), and the contract has the same section.
The session sheet's Change and Set typed /model and /effort into the
terminal and closed; Claude Code drew its picker behind the conversation
and nothing on screen moved. Each row now lists its choices; a tap sends
the command with the choice named (/model sonnet, /effort high), the
sheet stays open and says what is changing, and settles when the log
names it. The sheet is built like the Settings sheet.
The session box had a 26px library button beside 44px round ones, a 36px
chip and a 34px Keys pill, the microphone second from the left in one
view and beside Send in the other, and "claude" on the tab beside
"Message Claude…". One row, one size, one order in both views; the
agent's name everywhere (terminal-strip-tabs badgeNames).
Widget: the owner's change list reads what needs them first (the line
counted nine, the list showed none); "9 needs you" → "9 need you"; a
failed call is named ("my call to Loki to save your note failed… Your
words are still here — press it again") instead of "one of my calls to
Loki failed — nothing for you to do".
Tests: runner-update-hold, preview-delivery-note, owner-changes-order,
session-sheet-browser (new); builder-presence, widget-changes,
widget-self-report, inject-context-boundaries extended.
Claude-Session: https://claude.ai/code/session_01NZqZujmXpupVDC1Hi5Jbsx
Co-authored-by: Claude <noreply@anthropic.com>
|
||
|
|
2ff657ecf8 |
feat(projects): a Builder asks for a change from Loki, not only from the site (#1304)
Walking the loop as a new Builder on a shared project (live, 2026-10-18):
the project's orange "Ask Loki" opened the chat in the member's own
account, which has no builder for the project, and it answered "edit the
site's HTML/CSS ... requires the Loki desktop app". Today said "Add a
project" and Control said "Connect a builder ... install the desktop app".
- The project page has the box to ask in (#ask, THE composer, voice on).
POST /api/projects/[id]/ask files the same row the widget would: built
at once on the owner's builder for a Builder (owner told), waiting for
the owner for anyone else. The reply says which, with a link to follow.
- The header sends members to that box ("Ask for a change"), and a tab
can own in-page anchors so #ask opens Overview from any section.
- Today and Control show the projects shared with you instead of the
first-run "Add a project" and the desktop-app pitch.
- The chat's facts name each shared project and where it is changed.
Claude-Session: https://claude.ai/code/session_01TNLstupcdvsPfTjy8yjR67
Co-authored-by: Claude <noreply@anthropic.com>
|
||
|
|
44def109a9 |
feat(widget): a spoken walk read as a list, whole sentences, talk from the launcher, per-page builds (#1302)
* feat(widget): one Talk bar, status header, read-back, per-page builds - One Talk to Loki bar above a one-line message box; the box shows its tools only once used. The second Talk button in the thread is gone. - The owner's header is the status (Watching / 2 to look at), Pause, close: no second logo, no page line. Opening on a phone no longer raises the keyboard. - A spoken note is read back as a list per part of the page, with Read it back (speech) and Edit. - Build all starts saved notes as one build per page (dispatchFeedbackBatch, shared with the project batch route). - Regex literals use \u escapes; a test fails on non-ASCII in the bundle. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01E1qoQ9syUYXCRNbyrpqPGa * feat(widget): a walk read as a list, whole sentences, talk from the launcher - Loki's read of a spoken note is a list: one change or question per line, with where it applies, editable, ✕ to drop. The part on screen is background; a line names a part only when it was pointed at. - Save files each change as its own note, with only the moments it came from, on the page it was said on. Questions stay on the card for Ask. - Whisper's segments are joined into whole sentences before they are placed under a heading, so a sentence is never cut across two parts. - The owner can start talking from a microphone beside the launcher without opening the panel (widget/quick-talk.ts). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01E1qoQ9syUYXCRNbyrpqPGa --------- Co-authored-by: Claude <noreply@anthropic.com> |
||
|
|
09e04ab4ed |
feat(widget): Loki reads a spoken note before it is saved (#1299)
The owner walked Petvity for 43 seconds on 2026-10-18 — the home page, Features, the dashboard, Settings — saying the design was inconsistent and asking Loki to look at it all and say what it thought, then asked whether Loki had heard them at all. It had, and it had watched: every page and part was noted. But the card was every word verbatim under each part of the page, including "No, no, I'm just making a coffee", said twice to someone in the room; it led with Save and Fix it now for what was a question; it sat under three "Loki noticed" cards, one of them repeating the same finding; and replaying the walk showed every sentence filed one page early. Loki reads it first (widget/walk-read.ts, POST /api/widget/understand, guarded like /api/widget/advise): - The card says what it heard: "Loki heard you · 0:43 across 4 pages". - The box leads with the ask, editable; what was not meant for Loki is named as "Left out"; the words as spoken stay under "Word for word" with "Use my exact words instead". Whatever is saved, the words as spoken still travel with it in each moment's `said`. - A question leads with Ask Loki, answered about every page of the walk (the walk is sent as the review session); a change leads with Save (owner, then Fix it now) or Save feedback (visitor). - Nothing waits on the read: while it comes and when it fails, the card is the words as spoken with the buttons as before; words edited before it arrives are never replaced. - The card is brought into view from its top when it appears and when the read redraws it, without throwing the phone keyboard up again. Walk alignment: a page change is noted the moment the address changes (a site's own links change it without an event; polled every 250 ms while recording, popstate too). It used to wait for scrolling to settle, so the first words on each new page landed under the page before. A site-wide finding (the page's language) is said on the first page of a visit, not on every page (onceSiteWide in watch-trail.ts). Tests: widget-walk-read (rules, prompt, wiring), widget-walk-read-browser (the owner's walk replayed at 390 and 320: question, change, and words edited before the read), widget-browse-voice-browser updated for the new header and the read-fails path. Claude-Session: https://claude.ai/code/session_01TNLstupcdvsPfTjy8yjR67 Co-authored-by: Claude <noreply@anthropic.com> |
||
|
|
fd5164981b |
feat(previews): private tiles get real pictures; a preview can move to its right name (#1298)
Private tiles on bitbaum.orangecat.ch/private/ now render through the same tile as the public work grid (bitbaum PR #136). This adds the picture they show: GET /api/fleet/private/shot/<slug>, owner only, a 1280x800 picture of the project's site (a preview through Loki's own route with the owner's cookie, its widget left out), kept for twelve hours. A site behind its own access-code page is not photographed, so its tile is text, not a code page. takePagePicture takes a viewport; wider than a phone is a desktop browser. The owner check is one helper (studioOwnerCheck) shared by the list and its pictures. A preview can now move: POST /api/previews/<slug>/move { to, name } attaches the new address, renames the folder, moves the project row and its name in one transaction (the folder moves back if that fails), points the widget at the new address and detaches the old one. Center SOM was born center-com-3 from a domain spelled in look-alike Latin letters; this is how it becomes tsentr-som. previews.yml gains `move` and `ask` (send the builder a change). A website preview's one line names the site by host ("center-com.ru"), not by its URL. Claude-Session: https://claude.ai/code/session_01Y9KbVEpxKLC9nhKhpWncU1 Co-authored-by: Claude <noreply@anthropic.com> |
||
|
|
d079f972ab |
feat(widget): one widget everywhere, the state in every shape, record now and build later (#1295)
The owner (2026-10-18): the widget looked different on different pages
and sites, it should always be clear when Loki is watching, and they want
to record comments while it watches and implement them afterwards.
One widget, everywhere
- Loki's own site draws the same panel every customer site gets, not the
chatkit view (data-fc-chat="kit" stays an opt-in).
- No Loki page hides the launcher any more: the project workspace, the
agent conversation, inspection, the project loading state and an open
/loki conversation were "hidden" — no launcher, or the watch top bar
instead. They show the edge tab. feedback-widget-reach fails on any
page that hides it, in either the literal or the expression form;
only an open dialog and the sign-in wall may.
The state in every shape
- The owner's edge tab carries the same live dot and ring as the corner
pill, at full weight.
- The owner's pill sits in a bottom corner or becomes the tab; it no
longer climbs to the middle or top of the screen (Heidi at 390px).
Record now, build later
- After a voice note the owner's card leads with Save (then Fix it now,
Ask). Saved notes lead the status line ("Watching · 3 notes saved"),
and "Build all 3 saved notes" starts each as its own build, oldest
first: POST /api/widget/owner/build, rule in lib/feedback/saved-notes.ts.
- The owner check for the widget's owner routes is one helper,
lib/widget/owner-request.ts, used by owner/changes and owner/build.
Claude-Session: https://claude.ai/code/session_01E1qoQ9syUYXCRNbyrpqPGa
Co-authored-by: Claude <noreply@anthropic.com>
|
||
|
|
925ab930be |
feat(ai-budget): newcomer reserve in the free pool + fix(billing): payments stay off until switched on (#1294)
* feat(ai-budget): keep a fifth of each day's free pool for people on their first week Pacing keeps the day from being spent before lunch, but not by evening: there is no clawback, so whoever signs up at 21:00 can meet a pool the vendors have already refused — a first answer that never comes, which is the moment a person decides Loki is broken. lib/ai-budget/newcomer-reserve.ts: returning accounts together stop at 80% of the day's capacity; an account under seven days old may draw on the rest, still under its own fair share. getDayUsage now also returns the day's total (same query as the active count). The gate reads the account's age only once the total reaches the held part, and fails open if it cannot; a paid plan with allowance left is not held back. The refusal says what the held part is for, when the day starts over, and the ways past it; the budget screen reads the same rule, so it never shows "12 left" to someone the gate will refuse. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01CG9dupSVqoXCCqKfBCfd9B * fix(billing): payments stay off until switched on, whatever pay URLs are set Live after #1293: every paid plan's button on /pricing read "Pay in Bitcoin" and went to an OrangeCat product page that answers 404. The three ORANGECAT_PAY_URL_* were set on the box before the passes existed; while the tiers had no price that was invisible, and setting the prices turned the dead links on — skipping the reservation flow they were meant to fall back to, and showing "Buy" in Settings → Billing too. orangeCatPayUrl now also requires LOKI_PAYMENTS_OPEN=1. Opening payments is a decision (the company registered, the passes live), so it is a switch, not an inference from a URL. Until then every paid plan's button reserves, as designed. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01CG9dupSVqoXCCqKfBCfd9B --------- Co-authored-by: Claude <noreply@anthropic.com> |
||
|
|
95ec4a8375 |
feat(plans): CHF 15 / 40 / 90 with a monthly AI allowance, reservable until payments open (#1293)
* feat(plans): CHF 15 / 40 / 90 with a monthly AI allowance, reservable until payments open The founder set the prices on 2026-10-17. Payments stay off until Loki's company is registered, so everything up to the moment of paying works and nothing is charged: - config/plans.ts: Personal 15, Pro 40, Team 90 a month; each states its monthly allowance. The billing note says payments are not open and that a plan can be reserved with nothing charged. - lib/plan.ts: PLAN_LIMITS.aiAnswersMonthly (1,000 / 3,000 / 8,000 at 8,000 tokens an answer — about $0.002 each on a paid open model, a fraction of the price). - lib/ai-budget/plan-allowance.ts + gate: past the daily free share, a paid plan's month still admits the turn. Read only after the share refused, so a free turn never pays for it; a failed read leaves the refusal standing; a lapsed or past-due plan has none. - /pricing: four priced cards. A paid plan's button opens /pricing/<plan>, which reserves it (plan_reservations, one row per person, grants nothing) — and reads "Pay in Bitcoin" the day its OrangeCat pass exists. - The out-of-answers refusal and the budget screen offer the plans beside the person's own key; Settings shows a plan's allowance left this month. - Settings → Billing links each plan's reserve page; System → Revenue shows who is waiting on which plan, and counts only plans a settled pass pays for (a hand grant is "granted", not revenue). - docs/architecture/models-and-money.md follows the decision. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01CG9dupSVqoXCCqKfBCfd9B * test(ai-budget-gate): answer the plan read without a database The gate now asks a paid plan's allowance after the share refuses. The existing gate tests did not inject it, so where CI has a real Postgres the default read opened a pool that kept the process alive and the runner timed the file out. Every call now passes `planAllowance`, as the file already does for the ledger and the capacity. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01CG9dupSVqoXCCqKfBCfd9B --------- Co-authored-by: Claude <noreply@anthropic.com> |
||
|
|
5e7f1c1924 |
feat(projects): a Builder changes the site without the owner, and the invite says so (#1280)
The owner's words, 2026-10-17: Manu is a doctor; joining should take no explaining, and when he is a Builder his feedback should go to Loki, not to George. The machinery existed — a pass on the site's feedback button makes a note build at once — but Loki handed the pass only to the owner, recorded nobody as the reporter, told the owner nothing, and the invite page named a role without explaining it. - The invite page is the manual: what the project is (its description and site), how you change it in three lines, what happens to what you ask for, one button. The owner opening their own link reads the same page with "This is what the person you send it to will read". - After joining, the project leads with the same three lines (MemberGuide) and an "Open <site>" button. For a Builder that link carries the pass. - Who gets a pass is one rule, mayHoldPass (owner and every Builder); the project page issues it by that rule. A viewer's or a client's note, like a stranger's, waits for the owner. - Ingest records the pass holder as the reporter, so the owner's inbox reads "Manu Rigner asked for this on your site" with "Manu Rigner · Builder", and Manu's own list knows his notes. The owner is told by push and Telegram when a Builder's note starts (notifyBuilderAsked) — told, not asked. - The site's sign-in door reads "I own or build this site", and ROLE_LABELS says in plain words what each role means for what you ask for. Walked at 320, 390 and 1440 on a local stack with a stand-in Petvity site carrying the widget: George makes a Builder link; Manu reads it signed out, joins, lands on the guide, opens the site from Loki, asks for a change in the widget — the row is his, source owner, and the build is attempted at once; George's inbox names him. Eve joins as a Viewer, her note from the site is a visitor's and waits for George. No overflow, no page errors. Claude-Session: https://claude.ai/code/session_01TNLstupcdvsPfTjy8yjR67 Co-authored-by: Claude <noreply@anthropic.com> |
||
|
|
8749efd100 |
feat(widget): say the state on screen, one button to open, a calmer panel (#1279)
The owner on their phone (2026-10-17): it should be clear on screen when Loki is watching and when it is recording, opening it should be easy, and the panel was too crowded and intimidating to use. Watching - The owner's launcher is ONE button that says its state in a word at every width: "● Watching" with a live dot and a ring, or "Paused". A tap opens Loki. Its second half, "Point", was the labelled, bigger part on a phone, so the obvious tap pointed instead of opening; pointing is "Point to area" in the composer. Recording - A red edge round the whole screen while Loki listens (it takes no taps; grey while it writes it down), a red-bordered dock that says "Recording 0:12", and a one-line hint instead of four. The panel - One status line instead of two rows: "Watching · 2 to look at · 4 live › Pause"; opening it shows what Loki noted and where each change is. - One microphone: the header's "Voice note" and the composer's "Record" did nearly the same thing. "Talk" in the composer is talk-while- scrolling, which also covers plain dictation; in chatkit it takes the tool row in place of chatkit's own mic. - "Fix it" and "Ask" instead of "Request a fix" and "Chat with Loki". - "Continue in Loki" appears once something has been said. - The visitor's phone launcher is 44px, the minimum tap target. Docs (widget/README.md, docs/architecture/feedback-widget.md, docs/development/contextual-voice-feedback.md) and the browser tests follow the new controls; new pure helpers watchHeadline and changesHeadline are unit-tested. Claude-Session: https://claude.ai/code/session_01E1qoQ9syUYXCRNbyrpqPGa Co-authored-by: Claude <noreply@anthropic.com> |
||
|
|
38a5b5654d |
feat(previews): before and after, photographed — the tour of what Loki changed on a live site (#1271)
* feat(previews): before and after, photographed — the tour of what Loki changed on a live site A preview made from a live site (/change "Improve this site") used to end in improvements.html, a page the build agent styled freehand that Loki could neither check nor illustrate, and the owner still compared two sites from memory. Now the build leaves improvements.json (one entry per change naming the live page and the new file, plus the engineer's account under the pull-request walkthrough's keys), and Loki shows it: - `/p/<slug>/_loki/before-after`, behind the preview's own code: each change as the live page and the new page photographed on a phone, side by side, with the build's words, what was not brought over, the questions for the owner, and the account. Pictures are taken by lib/feedback/page-picture on first ask and kept in the folder's `.loki/pictures/`; "before" pictures are taken the moment the preview starts, while they still are the before; an "after" is Loki opening its own preview with the access cookie (`x-loki-picture: 1` keeps the widget out of the shot), keyed by content. - Watch it work links the tour and shows the Walkthrough from the folder. - The brief says a preview is a first impression, not a migration: the homepage and the pages a visitor uses, at the live site's own paths. The consultation's tour now reads the pages a buyer reads: navigation before footer, the biggest section (a shop's catalogue) first, one page per section before the second, accounts and small print left out. center-com.ru's tour had been the login page, the privacy policy and the bank details. From the review of this flow: the consultation cache is keyed by the normalized address (every "Build" click had re-read the whole site inside the request); a create saves the access code and attaches a host only after every check has passed; name and folder agree (a leftover folder no longer serves <name> at <name>-2); the gate no longer names the client; the chat's read_website reuses the crawl; one in-flight helper; the shared escaper; the preview route memoizes its project lookup for a page load; stale comments. Dogfood without a browser: the Previews workflow gets `website` (the exact /change path, as the operator, on the deployed app) and `check` (open a preview as its owner and report the site, the tour and its pictures — the cookie is minted on the box and never printed). Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Y9KbVEpxKLC9nhKhpWncU1 * fix(watch): the preview walkthrough reads from a lib the shared-access test can bind Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Y9KbVEpxKLC9nhKhpWncU1 --------- Co-authored-by: Claude <noreply@anthropic.com> |
||
|
|
95383b92db |
Improve a live site as a private preview; consultation reads the whole site and talks (#1234)
* feat(change): improve a live site as a private preview, with a site tour and a consultation that talks
"Improve this site" created a GitHub repository per click and a kickoff that
told the agent to "treat the repository as possibly empty" — for a site that
already exists. Two clicks made two repos (center-com, center-com-2), and the
owner had nothing to show their client but a run log.
- /change builds a PREVIEW (lib/previews/from-website): folder + local git,
<name>.orangecat.ch behind the access code, widget on it. No repository until
the client says yes; servers without previews fall back to the repo path.
Repeat submits resume the same preview. An access code is created when the
operator has none.
- The brief starts from the live site and asks for improvements.html, a tour
of what changed (live page vs new page), so the client SEES the improvement.
"Watch it work" shows the link, code, tour and a copy-ready client message.
- The consultation reads the homepage AND the pages it links to
(site-consult/crawl, bounded, same SSRF-guarded fetch), with site-wide checks:
broken links, duplicate titles, thin pages.
- It is a conversation now: what Loki read, its advice on what to fix first,
what already works, then two one-tap questions whose answers become brief
lines from config.
- Loki chat's read_website reads up to five linked pages and returns the
consultation as advice.
Fixes from the owner's screenshots:
- Owner launcher on phones drops the "Loki · watching" label and fades while
scrolling — it was covering "It worked" and card buttons.
- Tapped labels no longer glue count badges on ("Feedback to triage11").
- The widget no longer files Loki's own app polls (/api/feedback/summary) or
navigation-cut requests as its failures ("never answered after 0.3s").
- Live-check evidence speaks as Loki, not "The provided page text…".
- Watch: "Waiting to start · started just now / Queued" → "Next in line ·
asked just now / Waiting for a builder to pick it up."
- Session box: an agent's "request access to the widget storage and dump
submissions" suggestion is replaced by the Attach-feedback action.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016zCRuBPv8KpyTPkh6JsSYt
* fix(feedback): keep evidence wording pure so the inbox client bundle builds
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016zCRuBPv8KpyTPkh6JsSYt
* test(widget): read the owner launcher's words, not its pixels
On phones the owner label is now hidden so it stops covering the page; the
accessible name still says Loki is watching.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016zCRuBPv8KpyTPkh6JsSYt
---------
Co-authored-by: Claude <noreply@anthropic.com>
|
||
|
|
73df3dbece |
feat(widget): speak while scrolling, ask or send after, editors sign in (#1230)
What the owner hit on evig.orangecat.ch, fixed as one flow: - A long voice note looked cut off. It was not lost: the receipt quoted 300 characters and was the only copy shown. The receipt now quotes the start (at a word) and folds the whole note under "Show all you sent". - Speaking while scrolling: one dock (Listening · Mark · Done · ✕). Loki notes the part of the page in view at the start, when scrolling settles and on Mark; Whisper's sentence timings put each sentence under the part that was in view. No video, no screenshots, and the dock says so. The clock warns in the last 15 seconds before the 1:50 cap. - After speaking: "What you said", editable, never sent by itself. Ask Loki, or send it (visitor), or Build it / Save note (owner). - The aim button is "Point", labelled, everywhere. This page / Whole site / Point / Loki each say what they mean, and the placeholder follows. - Sign in: the header button explains what happens; "Create one free" keeps the way back to the site; sign-in follows the API redirect for real. The project's editors now get the owner's panel (one rule, lib/feedback/pass-holder.ts, for every widget route). Claude-Session: https://claude.ai/code/session_018LMe5Uv6mfWJibAiCaNbbk Co-authored-by: Claude <noreply@anthropic.com> |
||
|
|
25ae3de0e5 |
Make the Loki site widget one clear conversation (#1229)
* Improve widget conversation and mobile feedback flow * Update widget layout assertion for simplified header |
||
|
|
9d5d0c4694 |
feat(widget): Loki's own look, in Loki's light or dark mode, with one scroll (#1227)
* feat(widget): Loki's own look, in Loki's light or dark mode, with one scroll The site widget took its colours from the fleet's shared tokens, whose accent is OrangeCat's warm orange, and was dark only: on a client's light site the owner saw an orange-ringed black panel and asked why Loki's widget looked like OrangeCat. - Themes are generated from Loki's own globals.css, light and dark. The accent is the ink; the warm colour is only the focus ring and a picked element's outline on the host page. - Every widget stylesheet reads var(--lk-*), defined for both modes on the shadow host; widget/theme-mode.ts picks one. The owner gets the mode they chose in Loki (user_preferences.theme, saved by ThemeSync via PUT /api/me/theme, returned with their changes and remembered per site); everyone else gets their device's setting, followed live. - The panel is one column with one scroll area (the thread) between a fixed header and composer. The whole card used to scroll too, which hid the composer below a laptop's fold and nested scrolls on phones. - The desktop card no longer greys out the site it invites you to use; the phone sheet opens at two thirds of the screen with a lighter scrim. - About is a segmented control that fits a 320px phone on one line. - The walkthrough card follows the same mode; its ring uses the highlight so it reads on light and dark sites. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_018LMe5Uv6mfWJibAiCaNbbk * fix(widget): the launcher is findable — Loki's mark at full strength On the owner's phone, signed out of the owner pass, AOZ showed a grey pencil at 38% opacity and 85% size, and the owner said the widget was gone. Without the launcher there is no way to the sign-in that brings owner mode back. The resting launcher is now Loki's spiral at full strength with a hairline and a soft lift off the page, on phones and desktop; it still fades while the page scrolls. Also: the user_theme migration is renumbered 0107 after main's 0106. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_018LMe5Uv6mfWJibAiCaNbbk * fix(widget): keep the shared chat's thread bounded however chatkit nests it CI's widget-kit-browser (needs @bitbaum/chatkit, so it only runs there) failed one check: the chat thread no longer had a max-height once the panel became a flex column. The flex layout bounds it only when the wrap is a direct child, so the cap is back as a backstop, and the test now pins the outcome — the thread scrolls and ends inside a card that fits the screen — instead of the mechanism. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_018LMe5Uv6mfWJibAiCaNbbk --------- Co-authored-by: Claude <noreply@anthropic.com> |
||
|
|
1cdd92a8ad |
fix(widget): Loki on the site answers what was asked (#1222)
On a client's site the owner said a description field had no microphone and asked, twice, whether the site used the fleet's packages. Loki gave the same advice about one textarea twice, in German to an English question, and its Review called the minutes spent talking to it "the page never responded for 194 s" with an invented endpoint. - The advisor now sees how the site is built: the packages its code uses, the kickoff's plan, and the owner's build conventions (src/config/build-conventions.ts, also carried by every dispatch). - Naming a package is no longer treated as "explaining how to edit"; a point about every form is answered as a rule across the site; no repeated answers; replies follow the language of the latest message. - What the owner says to Loki is a `talk` step in Watch's trail, so a Review reads that time as conversation; Review may not name an endpoint the evidence does not show. - Loki's unasked page read skips test data and replaces the previous read instead of stacking one per page. - First build convention: fields where people describe something get a microphone from @bitbaum/chatkit; short fields never do. Claude-Session: https://claude.ai/code/session_018LMe5Uv6mfWJibAiCaNbbk Co-authored-by: Claude <noreply@anthropic.com> |
||
|
|
f617c3ca48 |
Speak while browsing and explicitly turn review notes into fixes (#1218)
* Capture contextual voice notes while browsing a site * Preserve unfinished page reads across reloads |
||
|
|
0022a2a5a1 |
fix(previews): plain words for visitors, and the code can be set from the job (#1198)
A visitor opening francesco.orangecat.ch saw "This preview is not available right now / Previews are switched off on this server": the word "preview" is ours, and the page spoke as if the site were broken. It now says what is true in the visitor's terms: the site is private for now / not open yet / not here. The previews job takes an optional `code` input (masked in the logs) and passes it to the live API, which saves it before it checks whether the address is taken, so it also sets the code for a preview that already exists. Delete the run afterwards: a public repo shows a run's inputs. Claude-Session: https://claude.ai/code/session_01XpakL9C3TESU4H45fXMFfc Co-authored-by: Claude <noreply@anthropic.com> |
||
|
|
4c78b0dc3b |
fix(previews): a preview address must answer, and is kept answering (#1195)
francesco.orangecat.ch showed ERR_SSL_PROTOCOL_ERROR: wildcard DNS sends every
label to the box, but a label with no Caddy vhost has no certificate. Found on
a phone four times.
- createPreview waits until the address answers over HTTPS and says plainly
when it does not, instead of reporting success on hope
- previews.yml + ensure-preview.sh: `create` makes a preview as the operator on
the box and fails unless its address answers; `heal` (every six hours)
re-attaches and re-checks every preview folder so a lost vhost is restored
before anyone opens the link. No access code goes through a public repo's
Actions
- A preview with no code yet answers 503 ("switched off"): the address and
certificate work, the code is set in the app
- set_preview_code chat tool ("set the preview code to cat"); create_website
still insists on a code
- Tests: ensure scripts parse, fail loudly, run on a clock, carry no code
Claude-Session: https://claude.ai/code/session_01XpakL9C3TESU4H45fXMFfc
Co-authored-by: Claude <noreply@anthropic.com>
|