Commit Graph
261 Commits
Author SHA1 Message Date
Catoandfleet-reconciler 4d7cb8299f chore(deps): raise shared package floors to published versions (#1532)
Opened by bitbaum/fleet .github/workflows/internal-currency.yml.

The fleet's own packages ship features in MINORS, so
version-currency.mjs — which judges by major — reports nothing while
consumers drift. This is the instrument that sees it, and it opens
the fix rather than reporting it.

If this PR is red, that is the useful outcome: it names a repo that
cannot take the new version, which nothing else in the fleet would
have told us.

Co-authored-by: fleet-reconciler <fleet@bitbaum.invalid>
2026-11-01 23:22:40 +01:00
CatoandClaude Opus 5.5 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>
2026-11-01 20:18:45 +01:00
CatoandClaude ddbd95303d ops(register): bring the box's register to main; retire a site main already removed (#1520)
register-drift reported orangecat-2 only in the box's register, and six
rows main had since corrected: the box's loki checkout sat on a
2026-10-07 commit, because only register-site.sh ever fast-forwards it.

- box-register.yml + box-register-follow.sh: the same adoption, on its
  own. Fast-forward only, from the public repository URL; refuses while
  the box holds a row main lacks, a local commit, or a change beyond
  apps.conf. Plan by default; keeps the old register in the home dir.
- retire-site.sh, delete: also removes the row from the box's register.
  Run from the workflow it removed it from the runner's copy only, which
  is how orangecat-2 (retired 2026-10-17) stayed on the box.
- retire-site.sh, offline and delete: stop the wake socket too. A site
  that sleeps when idle kept its socket listening on its port, and any
  local request woke the app again.
- retire-site.sh: --no-github (no repository, workflow or secret step)
  and --keep-data (delete keeps /opt and the checkout); RETIRE_LOOK=1
  prints what is on the box before the plan.
- retire-site.yml: github and keep_data inputs, the look, and a site
  that only the box's register still has is judged by that row.

Tests: test-box-register-follow.sh (new, in test:ops) and
test-retire-site.sh (12 more checks).


Claude-Session: https://claude.ai/code/session_019MDtmuJhiHPASaR5k8raL9

Co-authored-by: Claude <noreply@anthropic.com>
2026-11-01 19:19:15 +01:00
CatoandClaude 9597e1f75d ops(db): a dispatch-only workflow that drops one leftover host database (#1516)
Nothing dropped a host database: retire-site.sh keeps a site's data by
design, so signin, renamed to morulia, left its empty database behind.
drop-db.yml drops exactly one, and refuses unless the register and the
box both say nothing can still mean it:

- droppable-db.sh, against main's register and the box's checkout of it:
  not a system database, no row named after it, no row's db column
  using it;
- drop-db-on-box.sh, on the box: not a template, no env file under /opt
  naming it in DATABASE_URL, no open connection. Then the database, and
  the role of the same name if Postgres lets it go.

An empty confirm is a dry run; confirm must repeat the name to drop.
Names, counts and sizes only in the log. Tested in test:ops
(test-drop-db.sh).


Claude-Session: https://claude.ai/code/session_019MDtmuJhiHPASaR5k8raL9

Co-authored-by: Claude <noreply@anthropic.com>
2026-11-01 19:05:50 +01:00
Catoandfleet-reconciler 3d94188ac2 chore(deps): raise shared package floors to published versions (#1514)
Opened by bitbaum/fleet .github/workflows/internal-currency.yml.

The fleet's own packages ship features in MINORS, so
version-currency.mjs — which judges by major — reports nothing while
consumers drift. This is the instrument that sees it, and it opens
the fix rather than reporting it.

If this PR is red, that is the useful outcome: it names a repo that
cannot take the new version, which nothing else in the fleet would
have told us.

Co-authored-by: fleet-reconciler <fleet@bitbaum.invalid>
2026-11-01 18:34:16 +01:00
CatoandClaude e6fa5320f8 fix(auth): AccountKit 0.18.1, so OrangeCat sign-in starts on the shared runtime (#1511)
0.18.0's compat layer started OIDC sign-ins through /sign-in/oauth2, which
better-auth 1.7 removed; on AUTH_RUNTIME=accountkit every OrangeCat
sign-in answered "unavailable". 0.18.1 uses /sign-in/social and the
/api/auth/callback/orangecat redirect OrangeCat already accepts
(bitbaum/accountkit#55).


Claude-Session: https://claude.ai/code/session_019MDtmud6zcK4rStBGmYSML

Co-authored-by: Claude <noreply@anthropic.com>
2026-11-01 17:57:59 +01:00
CatoandClaude 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>
2026-11-01 17:15:29 +01:00
CatoandClaude 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>
2026-11-01 11:56:28 +01:00
Catoandfleet-reconciler 0661006549 chore(deps): raise shared package floors to published versions (#1507)
Opened by bitbaum/fleet .github/workflows/internal-currency.yml.

The fleet's own packages ship features in MINORS, so
version-currency.mjs — which judges by major — reports nothing while
consumers drift. This is the instrument that sees it, and it opens
the fix rather than reporting it.

If this PR is red, that is the useful outcome: it names a repo that
cannot take the new version, which nothing else in the fleet would
have told us.

Co-authored-by: fleet-reconciler <fleet@bitbaum.invalid>
2026-11-01 11:29:05 +01:00
CatoandClaude 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>
2026-11-01 09:36:49 +01:00
Catoandfleet-reconciler 5a8b938dda chore(deps): raise shared package floors to published versions (#1502)
Opened by bitbaum/fleet .github/workflows/internal-currency.yml.

The fleet's own packages ship features in MINORS, so
version-currency.mjs — which judges by major — reports nothing while
consumers drift. This is the instrument that sees it, and it opens
the fix rather than reporting it.

If this PR is red, that is the useful outcome: it names a repo that
cannot take the new version, which nothing else in the fleet would
have told us.

Co-authored-by: fleet-reconciler <fleet@bitbaum.invalid>
2026-11-01 09:12:01 +01:00
Catoandfleet-reconciler f17a52464d chore(deps): raise shared package floors to published versions (#1501)
Opened by bitbaum/fleet .github/workflows/internal-currency.yml.

The fleet's own packages ship features in MINORS, so
version-currency.mjs — which judges by major — reports nothing while
consumers drift. This is the instrument that sees it, and it opens
the fix rather than reporting it.

If this PR is red, that is the useful outcome: it names a repo that
cannot take the new version, which nothing else in the fleet would
have told us.

Co-authored-by: fleet-reconciler <fleet@bitbaum.invalid>
2026-11-01 08:06:11 +01:00
Catoandfleet-reconciler 02fbfb7873 chore(deps): raise shared package floors to published versions (#1500)
Opened by bitbaum/fleet .github/workflows/internal-currency.yml.

The fleet's own packages ship features in MINORS, so
version-currency.mjs — which judges by major — reports nothing while
consumers drift. This is the instrument that sees it, and it opens
the fix rather than reporting it.

If this PR is red, that is the useful outcome: it names a repo that
cannot take the new version, which nothing else in the fleet would
have told us.

Co-authored-by: fleet-reconciler <fleet@bitbaum.invalid>
2026-11-01 07:25:23 +01:00
Catoandfleet-reconciler 055c96eece chore(deps): raise shared package floors to published versions (#1497)
Opened by bitbaum/fleet .github/workflows/internal-currency.yml.

The fleet's own packages ship features in MINORS, so
version-currency.mjs — which judges by major — reports nothing while
consumers drift. This is the instrument that sees it, and it opens
the fix rather than reporting it.

If this PR is red, that is the useful outcome: it names a repo that
cannot take the new version, which nothing else in the fleet would
have told us.

Co-authored-by: fleet-reconciler <fleet@bitbaum.invalid>
2026-11-01 06:50:42 +01:00
Catoandfleet-reconciler 8149e2a1f2 chore(deps): raise shared package floors to published versions (#1496)
Opened by bitbaum/fleet .github/workflows/internal-currency.yml.

The fleet's own packages ship features in MINORS, so
version-currency.mjs — which judges by major — reports nothing while
consumers drift. This is the instrument that sees it, and it opens
the fix rather than reporting it.

If this PR is red, that is the useful outcome: it names a repo that
cannot take the new version, which nothing else in the fleet would
have told us.

Co-authored-by: fleet-reconciler <fleet@bitbaum.invalid>
2026-11-01 06:20:08 +01:00
Catoandfleet-reconciler 9e0a3175ab chore(deps): raise shared package floors to published versions (#1494)
Opened by bitbaum/fleet .github/workflows/internal-currency.yml.

The fleet's own packages ship features in MINORS, so
version-currency.mjs — which judges by major — reports nothing while
consumers drift. This is the instrument that sees it, and it opens
the fix rather than reporting it.

If this PR is red, that is the useful outcome: it names a repo that
cannot take the new version, which nothing else in the fleet would
have told us.

Co-authored-by: fleet-reconciler <fleet@bitbaum.invalid>
2026-10-31 23:10:00 +01:00
CatoandClaude 49f0771666 ops(register): a daily check that the box's register matches main (#1493)
register-site.sh writes a new row into the box's checkout first and
opens a PR to carry it to main. When that PR stalls, the two registers
disagree without anyone being told, and main hands the port out again:
biaslens and signin both on 4038 (#1404, #1492). register-drift.yml
reads the box's apps.conf over the deploy SSH each day and fails on a
box-only or differing row (names and ports only); a main-only row is
reported as the box checkout lagging.


Claude-Session: https://claude.ai/code/session_019MDtmuJhiHPASaR5k8raL9

Co-authored-by: Claude <noreply@anthropic.com>
2026-10-31 20:46:03 +01:00
CatoandClaude 9ad520a6cd fix(ops): an empty app .env line no longer erases a fleet key (#1488)
Every app template ships `RESEND_API_KEY=`. launch.sh sourced
/opt/fleet/env and then the app's .env, so that blank line overrode the
fleet's mail key with nothing, and password recovery stayed hidden on
diplodoctor, solon and heidi while the fleet held the key.

Now, at runtime (launch.sh.tmpl) and at build (load-build-env.sh):
- an empty app line keeps the fleet value;
- a non-empty app value still wins;
- FLEET_KEYS_OFF="KEY ..." in an app's .env switches named fleet keys
  off, the explicit replacement for "blank means off".

No app documents a blank line as its way to switch a fleet key off: the
empty lines come from the fleet and loki app templates, and aoz-begleitung
and hirnli, whose examples say "leave empty", describe the fleet key as
their production transport.

test-fleet-env-merge.sh runs the rendered template and the build loader
against one fixture, with a negative control for the old order.


Claude-Session: https://claude.ai/code/session_019MDtmuJhiHPASaR5k8raL9

Co-authored-by: Claude <noreply@anthropic.com>
2026-10-31 19:43:49 +01:00
CatoandClaude 847be47b64 ops(hetzner): provision-db workflow — a host database without a laptop (#1487)
provision-db-on-box.sh was only ever run from a laptop, so a registered
app with no box env (signin) failed every deploy until someone did. The
new dispatch-only workflow runs the same script on the runner over the
deploy's SSH key, in its own concurrency group. provisionable-db.sh
gates the input on the register: only a host database under the name
the script derives from the slug. Names only in the log; the script
never overwrites a key, so a re-run is a no-op.


Claude-Session: https://claude.ai/code/session_019MDtmuJhiHPASaR5k8raL9

Co-authored-by: Claude <noreply@anthropic.com>
2026-10-31 19:26:13 +01:00
Catoandfleet-reconciler d1984bb2e1 chore(deps): raise shared package floors to published versions (#1486)
Opened by bitbaum/fleet .github/workflows/internal-currency.yml.

The fleet's own packages ship features in MINORS, so
version-currency.mjs — which judges by major — reports nothing while
consumers drift. This is the instrument that sees it, and it opens
the fix rather than reporting it.

If this PR is red, that is the useful outcome: it names a repo that
cannot take the new version, which nothing else in the fleet would
have told us.

Co-authored-by: fleet-reconciler <fleet@bitbaum.invalid>
2026-10-31 15:36:13 +01:00
CatoandClaude f76ffe4e29 feat(box): register signin (shared sign-in) and its paired client secrets (#1481)
- apps.conf: signin on 4038, signin.orangecat.ch, its own host database
  `signin`, kind infra, status prospect until it serves.
- app-secrets.sh: signin's SIGNIN_URL, BETTER_AUTH_SECRET and
  SIGNIN_PAIRWISE_SECRET, and a `pair:<app>:<VAR>` kind: one value in two
  apps' env files, generated once, copied on the box when one side has it,
  reported (never fixed) when both differ, never printed. Restart is skipped
  when the app has no unit yet.
- test-app-secrets.sh runs the remote half locally; wired into test:ops.


Claude-Session: https://claude.ai/code/session_019MDtmuJhiHPASaR5k8raL9

Co-authored-by: Claude <noreply@anthropic.com>
2026-10-30 22:26:27 +01:00
Catoandfleet-reconciler dde8bd341a chore(deps): raise shared package floors to published versions (#1475)
Opened by bitbaum/fleet .github/workflows/internal-currency.yml.

The fleet's own packages ship features in MINORS, so
version-currency.mjs — which judges by major — reports nothing while
consumers drift. This is the instrument that sees it, and it opens
the fix rather than reporting it.

If this PR is red, that is the useful outcome: it names a repo that
cannot take the new version, which nothing else in the fleet would
have told us.

Co-authored-by: fleet-reconciler <fleet@bitbaum.invalid>
2026-10-30 12:03:57 +01:00
Catoandfleet-reconciler 5ac7aba86c chore(deps): raise shared package floors to published versions (#1466)
Opened by bitbaum/fleet .github/workflows/internal-currency.yml.

The fleet's own packages ship features in MINORS, so
version-currency.mjs — which judges by major — reports nothing while
consumers drift. This is the instrument that sees it, and it opens
the fix rather than reporting it.

If this PR is red, that is the useful outcome: it names a repo that
cannot take the new version, which nothing else in the fleet would
have told us.

Co-authored-by: fleet-reconciler <fleet@bitbaum.invalid>
2026-10-29 10:52:28 +01:00
Catoandfleet-reconciler e1f9009078 chore(deps): raise shared package floors to published versions (#1464)
Opened by bitbaum/fleet .github/workflows/internal-currency.yml.

The fleet's own packages ship features in MINORS, so
version-currency.mjs — which judges by major — reports nothing while
consumers drift. This is the instrument that sees it, and it opens
the fix rather than reporting it.

If this PR is red, that is the useful outcome: it names a repo that
cannot take the new version, which nothing else in the fleet would
have told us.

Co-authored-by: fleet-reconciler <fleet@bitbaum.invalid>
2026-10-29 10:06:43 +01:00
Catoandfleet-reconciler b6094d2681 chore(deps): raise shared package floors to published versions (#1463)
Opened by bitbaum/fleet .github/workflows/internal-currency.yml.

The fleet's own packages ship features in MINORS, so
version-currency.mjs — which judges by major — reports nothing while
consumers drift. This is the instrument that sees it, and it opens
the fix rather than reporting it.

If this PR is red, that is the useful outcome: it names a repo that
cannot take the new version, which nothing else in the fleet would
have told us.

Co-authored-by: fleet-reconciler <fleet@bitbaum.invalid>
2026-10-29 09:30:33 +01:00
Catoandfleet-reconciler 6ed51c09d1 chore(deps): raise shared package floors to published versions (#1462)
Opened by bitbaum/fleet .github/workflows/internal-currency.yml.

The fleet's own packages ship features in MINORS, so
version-currency.mjs — which judges by major — reports nothing while
consumers drift. This is the instrument that sees it, and it opens
the fix rather than reporting it.

If this PR is red, that is the useful outcome: it names a repo that
cannot take the new version, which nothing else in the fleet would
have told us.

Co-authored-by: fleet-reconciler <fleet@bitbaum.invalid>
2026-10-29 08:40:30 +01:00
Catoandfleet-reconciler 0d82ac3bd3 chore(deps): raise shared package floors to published versions (#1461)
Opened by bitbaum/fleet .github/workflows/internal-currency.yml.

The fleet's own packages ship features in MINORS, so
version-currency.mjs — which judges by major — reports nothing while
consumers drift. This is the instrument that sees it, and it opens
the fix rather than reporting it.

If this PR is red, that is the useful outcome: it names a repo that
cannot take the new version, which nothing else in the fleet would
have told us.

Co-authored-by: fleet-reconciler <fleet@bitbaum.invalid>
2026-10-29 07:00:33 +01:00
Catoandfleet-reconciler 837e1a3e50 chore(deps): raise shared package floors to published versions (#1460)
Opened by bitbaum/fleet .github/workflows/internal-currency.yml.

The fleet's own packages ship features in MINORS, so
version-currency.mjs — which judges by major — reports nothing while
consumers drift. This is the instrument that sees it, and it opens
the fix rather than reporting it.

If this PR is red, that is the useful outcome: it names a repo that
cannot take the new version, which nothing else in the fleet would
have told us.

Co-authored-by: fleet-reconciler <fleet@bitbaum.invalid>
2026-10-29 06:20:36 +01:00
Catoandfleet-reconciler 21e46f530d chore(deps): raise shared package floors to published versions (#1458)
Opened by bitbaum/fleet .github/workflows/internal-currency.yml.

The fleet's own packages ship features in MINORS, so
version-currency.mjs — which judges by major — reports nothing while
consumers drift. This is the instrument that sees it, and it opens
the fix rather than reporting it.

If this PR is red, that is the useful outcome: it names a repo that
cannot take the new version, which nothing else in the fleet would
have told us.

Co-authored-by: fleet-reconciler <fleet@bitbaum.invalid>
2026-10-29 01:16:37 +01:00
Catoandfleet-reconciler 37c35b4b05 chore(deps): raise shared package floors to published versions (#1436)
* chore(deps): raise shared package floors to published versions

Opened by bitbaum/fleet .github/workflows/internal-currency.yml.

The fleet's own packages ship features in MINORS, so
version-currency.mjs — which judges by major — reports nothing while
consumers drift. This is the instrument that sees it, and it opens
the fix rather than reporting it.

If this PR is red, that is the useful outcome: it names a repo that
cannot take the new version, which nothing else in the fleet would
have told us.

* fix(widget): keep ChatKit embed under size budget

* test: isolate prompt delivery Git fixtures from hook environment

---------

Co-authored-by: fleet-reconciler <fleet@bitbaum.invalid>
2026-10-28 13:45:19 +01:00
Cato 59e23e431b feat(auth): one password rule from accountkit (non-empty, up to 128); drop local minimums and hint text (#1456) 2026-10-28 11:21:06 +01:00
Cato e61465d09a fix(security): patch Sentry tunnel and diagram sanitizer advisories (#1451) 2026-10-27 23:43:31 +01:00
CatoandClaude Opus 5.5 d206ba62aa chore(deps): chatkit 0.17.0 — callouts and tables that lost their header (#1441)
* chore(deps): chatkit 0.16.0 — callouts and tables that lost their header

GitHub callouts (> [!CAUTION]) now render as a labelled panel instead of
printing the marker, and tables whose header row was lost upstream render
as tables instead of `| :--- |` prose. Additive; no code changes needed.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01YK5nTo2tfxq8V8mKtuRGJH

* chore(deps): chatkit 0.17.0, the version Kivvi runs

The rollout gate only lets a consumer take the exact artifact the canary
has live; Kivvi moved on to 0.17.0, so 0.16.0 is held. 0.17.0 adds
translatable callout titles on top of 0.16.0's callouts and tables.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01YK5nTo2tfxq8V8mKtuRGJH

---------

Co-authored-by: Claude <noreply@anthropic.com>
2026-10-27 00:58:04 +01:00
Cato f26465c56b fix(deploy): fail closed when receipt visibility is unknown (#1439) 2026-10-26 10:32:04 +01:00
dependabot[bot] 823aa7bf7a chore(deps): bump undici from 7.30.0 to 7.30.1 (#1432)
Bumps [undici](https://github.com/nodejs/undici) from 7.30.0 to 7.30.1.
- [Release notes](https://github.com/nodejs/undici/releases)
- [Commits](https://github.com/nodejs/undici/compare/v7.30.0...v7.30.1)

---
updated-dependencies:
- dependency-name: undici
  dependency-version: 7.30.1
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-10-25 19:40:05 +01:00
Cato f2cd986c7c fix(deploy): keep CI runtime environment outside source checkout (#1435) 2026-10-25 19:08:18 +01:00
Cato 9b85906350 feat(deploy): stage public Fleet artifact receipts beside served apps (#1430) 2026-10-25 18:49:40 +01:00
CatoandClaude Opus 5.5 84f47582a5 chore(chatkit): the broken-word audit runs in audit:responsive and the widget test (#1425)
* chore(chatkit): 0.14.2 — the broken-word audit runs in audit:responsive and the widget test

chatkit 0.14.2 exports `@bitbaum/chatkit/audit`: `findBrokenWords(root)` and
`BROKEN_WORDS_SOURCE`, every word drawn across two lines (words beside
- / . @ : _ and over 24 characters exempt). "Di / re / ct / or / y" is five
syllables nobody wrote, and reading the CSS never finds it — only laying the
words out does.

- `pnpm run audit:responsive` now fails a page/viewport on a cut word, listing
  the page, the width and every word (the list names the cause: one word is a
  narrow cell, all of them a `break-all` on an ancestor). Same retry path as
  the overflow measure.
- scripts/test/widget-host-avoid-browser.ts serves the chat chunk
  (public/widget-chat.js, built as build:widget builds it) from the mocked
  origin, opens the panel with data-fc-chat="kit" at 390 and runs the same
  measure on the panel. Mutation-proven: `word-break: break-all` on the panel
  fails it with the greeting, starters and mode labels listed.
- No cut word found: the widget panel at 390, and / /sign-in /change /build
  /fleet /pricing /sign-up /u/cato /docs/feedback-widget and two more public
  pages at 320/390/768/1440 on the live site all pass.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_018WZnBnaLP6RhwFkLxRTKgE

* chore(chatkit): 0.15.0, and a variable read with its fallback has a default

chatkit 0.15.0 is additive over 0.14.2. Its stylesheet reads
var(--ck-n, 1), a per-element variable with the fallback at the point of
use, which widget-chat-css's "every other variable has chatkit's own
default" check counted as unset. It now counts a fallback as a default; the
colour check (every colour from the widget theme) is unchanged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_018WZnBnaLP6RhwFkLxRTKgE

---------

Co-authored-by: Claude <noreply@anthropic.com>
2026-10-23 13:29:01 +02:00
CatoandClaude 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>
2026-10-22 19:56:40 +02:00
CatoandClaude 6144518228 feat(chat): chatkit 0.13 — answers that read like the ChatGPT app's (#1413)
Pin @bitbaum/chatkit at ^0.13.0: headings a size up, option cards with a
[Recommended] pill, citation chips after the sentence, external links
marked, the layered "stack" figure, and the "Thought for 42s ›" row.

Loki's own thread feeds that row from its run data. useLokiStream keeps
every status the turn names and every further model round, in order, as
`live.steps`; the live line under a turn is now chatkit's ThinkingRow
(the clock and what it is doing in the title, the steps under it, the
newest marked), replacing Loki's own dots line and its CSS. When the
persisted turn lands, the hook hands the workspace `thinking`
(duration + steps), carried only by the in-session message — nothing is
stored, a reopened thread keeps its work trail. The terminal's Loki
rail and the prompt Run sheet pass the same steps to chatkit's thread.

The widget chat chunk grew to 33 KB gzipped with the new answer shapes;
its budget moves from 32 to 40 KB.


Claude-Session: https://claude.ai/code/session_018WZnBnaLP6RhwFkLxRTKgE

Co-authored-by: Claude <noreply@anthropic.com>
2026-10-22 18:46:23 +02:00
CatoandClaude 48b0dc04cc feat(mailgate): every app host receives mail at hello@, delivered signed to the app (#1412)
loki-mailgate is the receiving half of the fleet email standard: one
public address per app on its own host (hello@<app host>), no mail server
or mailbox per app.

- Receive-only SMTP on :25 (smtp-server). Routes by apps.conf (Loki's live
  copy, refreshed by every deploy, plus the one installed beside it), so a
  new site gets mail after the next deploy with no step here. Accepts only
  hello@, postmaster@ and abuse@; refuses everything else at SMTP time, so
  it never bounces and cannot relay.
- SPF / DKIM / DMARC checked (mailauth); failures are marked, not dropped.
- Spooled to disk before "250", then POSTed to
  http://127.0.0.1:<port>/api/mail/inbound signed with the fleet key
  MAIL_INBOUND_SECRET (mail-kit 0.2 inbound contract), retried with backoff
  until the app says 2xx. Delivered mail is pruned after 14 days: the app's
  own retention governs its copy.
- Bundled to one file; a systemd unit with CAP_NET_BIND_SERVICE as ubuntu,
  ProtectSystem=strict; install-mailgate.sh creates the secret and its own
  STARTTLS key and opens 25/tcp; the manual Mailgate workflow tests,
  bundles and installs. test:mailgate joins verify.

Checked end to end against the bundle: hello@skif accepted and delivered
with a valid signature; another mailbox and an unknown host refused 550.


Claude-Session: https://claude.ai/code/session_01TTH5cy8bKmEqzdTyAsbbT8

Co-authored-by: Claude <noreply@anthropic.com>
2026-10-22 18:46:06 +02:00
CatoandClaude 55e6d960a6 feat(box): one copy of the fleet's shared keys, read by every app (#1407)
/opt/fleet/env holds the keys every app may use: the AI vendors, web
search and the shared mail account (scripts/hetzner/fleet-keys.conf).
The launch script reads it before the app's own .env, and the deploy
build does the same, so an app with its own key keeps it and every
other app gets the shared one. Rotating a key is one edit, not eleven.

fleet-env.sh seeds the file from the value the apps already share
(placeholders never count, an existing key is never overwritten, no
value is ever printed) and shows each key as a fingerprint; the
Fleet env workflow runs it on the box. api-key-check now probes the
fleet file too.

Why: eight apps held the shared Groq key, orangecat kept a revoked one
for days, and skif never got one, so its AI stayed off.


Claude-Session: https://claude.ai/code/session_01TTH5cy8bKmEqzdTyAsbbT8

Co-authored-by: Claude <noreply@anthropic.com>
2026-10-22 11:05:02 +02:00
CatoandClaude Opus 5.5 058a4a7dd8 Design reset: every page rebuilt to one calm bar (rows, one action, plain words) (#1406)
* docs(design): the reset brief, and a page audit that signs in and screenshots every page

The owner walked the app on a phone on 2026-10-21 and called it unusable.
design-reset-2026-10.md is the bar every page is now held to, written from
the apps he uses daily. scripts/audit-pages.mjs signs in (the public demo by
default), visits every page at phone and desktop width, saves screenshots and
writes down overflow, duplicate h1s, sticky blocks, cut-off text, small tap
targets, console errors and failed requests.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NZqZujmXpupVDC1Hi5Jbsx

* feat(scripts): seed:showcase, a local account that looks like the owner's

The public demo has three tidy projects, so most pages look empty on it and
their real problems never show. scripts/seed-showcase.ts creates
owner@loki.local / showcase-owner ("Cato", operator) with 42 projects under
the owner's own junk folder names and long task-text descriptions, mixed
states (live, site down, not connected, deploy failed, autopilot paused,
production / blueprint), 73 feedback items on one project and 8 on another,
73 runs over 60 days with the real failure texts and three running now,
bell alerts 8, 19 and 28 days old, four identical "Next Best Step" prompts
plus two near-copies, a dozen Loki threads, goals with milestones, habits
with history, people, crew assignments, approvals, package rows, scheduled
jobs, subscriptions, events and memory.

Idempotent through the demo reset's live-foreign-key wipe (now exported),
with timestamps relative to now. Refuses any non-localhost database URL,
the prod tunnel's port, and a database that already has an operator.
audit-pages.mjs documents the pair.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NZqZujmXpupVDC1Hi5Jbsx

* fix(audit): one slow screenshot no longer loses the whole report

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NZqZujmXpupVDC1Hi5Jbsx

* feat(widget): a host can draw the launcher itself (data-fc-place="host")

A rendered region marked data-fc-place="host" IS the launcher: the widget
draws no floating button while it is on screen and counts the owner's state
as shown, so watch mode adds no bar. When the region goes, the launcher comes
back on its own. The page opens the panel with Loki.open() and reads
Loki.status ({ owner, watching, unread }), announced as a loki:status event.
A hidden region still wins. Customer sites are unchanged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NZqZujmXpupVDC1Hi5Jbsx

* feat(design): primitives and a calm top bar for the design reset

The pieces the page rebuilds are made of (docs/development/design-reset-2026-10.md):
ListRow + List + ListSearch, Section/SectionHeading, a quiet EmptyState,
ChoiceMenu ("Sort: Priority" as a sheet on a phone, a popover from md up),
and PageAction — a page's one primary action, a round + in the phone top bar
and a pill in the header from md up (PageLayout action, ModalForm
trigger="page-action").

Chrome: the top bar names every page on a phone with 40px borderless icons;
exactly one h1 per page at every width (the page's own, read but not drawn on
a phone; the bar's name is the h1 only when the page has none). Loki's own
feedback launcher is a top-bar icon (data-fc-place="host"), not a tab over the
content. The Sessions drawer icon leaves the phone bar. The bottom bar is
exactly its token's height and the main column ends above it, so nothing
scrolls under it. ui-kicker and ui-micro-label stop shouting in capitals;
empty panels lose their box; the demo strip is one line on a phone.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NZqZujmXpupVDC1Hi5Jbsx

* feat(memory,robots): rebuild both pages to the design reset

The two worked examples the page rebuilds copy. Memory: the counts as a
sentence, then sections of rows — recently added (each with its own Forget
in a row menu), recent activity, by kind, context from other projects — and
"Forget everything" as the page's last row. No cards, tiles or badges.
Robots: the title is the top bar's, "Add robot" is the round + beside the
avatar, the search is the list's first row, each robot one row, and an empty
book is an icon, a line and one button.

Adds a "Primitives" section to the design brief: each primitive, its file,
and when to use it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NZqZujmXpupVDC1Hi5Jbsx

* fix(alerts): stale notifications fold into Earlier; the bell counts what still needs you

The bell read a red 9+ over nudges 8, 19 and 28 days old. Root cause: event
alerts (studio requests, build requests, escalations) have no condition a
checker can see end, so nothing ever cleared them; insert-once producers
deduped against any open row, so one forgotten alert swallowed every later
occurrence; and the bell counted every open row however old.

- lib/alerts/relevance: an alert is current while younger than its type's
  window (alert-types freshForDays, default 7) or urgent; otherwise Earlier.
  /api/alerts marks each one; the bell counts only current ones, and Today's
  needs-you reads the same rule.
- insertActiveAlertOnce lets a stale open alert go instead of blocking new
  ones; refreshOrInsertActiveAlert can renew the date when things got worse
  (feedback summary renews when more items wait).
- The feedback summary says one plain sentence instead of
  '84 feedback items need you (stalled + check live)'.
- The panel is a ListRow sheet (bottom sheet on a phone): dot, title, one
  grey line, time, x to dismiss; Earlier below with Clear all.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NZqZujmXpupVDC1Hi5Jbsx

* style(labels): sentence case for the app's remaining capital-letter labels

Section labels in settings, Control, Today and the private unlock form
dropped their uppercase + letter-spacing (design reset rule 4). Small
tags (status pills, badges) keep theirs.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NZqZujmXpupVDC1Hi5Jbsx

* feat(ui): DetailSheet, a ListRow control slot, quiet ModalForm triggers

DetailSheet opens one thing from its row (bottom sheet on a phone, dialog
from md up) with its actions as full-width rows. ListRow gains a leading
control that is its own action (a habit's check-off); ModalForm gains a
"secondary" trigger for an empty state's one button and "none" for a
form opened from a row's menu. Styles for the Life pages sit in one
design-reset block in globals.css; rules their old markup used are gone.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NZqZujmXpupVDC1Hi5Jbsx

* feat(goals): rows on /goals, and a page of its own for every goal

/goals is one sentence ("4 goals, 48% done on average") and a list: a
progress ring, the title, one line (due, milestones, sub-goals, project)
and the percentage. Sort and project are menus, not chip rows cut at the
edge; finished and set-aside goals fold away. The old card — inline
title, description button, four menu actions, folded milestones, nested
sub-goal cards — is now /goals/[id]: where it stands, its fields as rows,
milestones and sub-goals as lists, the actions as rows at the end.
Deleting a goal now checks the answer instead of refreshing on failure.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NZqZujmXpupVDC1Hi5Jbsx

* feat(habits): check off from the row, open a habit in a sheet

/habits is one sentence ("3 of 5 done today") and a row per habit: the
circle on the left checks it off for today, the row opens the habit — its
month, how often (one even row of three), the goals it feeds, pause,
rename, ask Loki, delete. The card with a 35-cell heatmap, a frequency
select, five icon buttons and a stat-tile row above it is gone. A goal's
row line drops its milestone count, which pushed the project off a phone.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NZqZujmXpupVDC1Hi5Jbsx

* feat(projects): rebuild the list, project page and Watch to the design reset

/projects is a search row, two menus on one line (Show / Sort) and ListRows:
an initial, projectTitle(), ONE plain-word state line ("Building now",
"Live · updated 2h ago", "Needs you: 3 notes") and the time since the last
run. Nothing sticks. Checks, stage and feedback counts moved to the project
page; earlier `-refresh-<hex>` copies and archived projects fold under
"Archived". The two black buttons became one `+` that asks "Build a site"
or "Add an existing project".

The project page has one title with the way back, one primary action (Ask
Loki, in the top bar on a phone), a section menu on a phone instead of a
pinned select, sections as plain headings without boxes, flags as "Needs
fixing" rows, and agent sentences said plainly (no URLs or HTTP codes).
Watch it work uses PageLayout and names the project with projectTitle().

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NZqZujmXpupVDC1Hi5Jbsx

* wip(work-tools): prompts, activity, feedback rebuilt as rows; tab-inject starts repo-only projects

Work in progress before merging main; gates run after the merge.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NZqZujmXpupVDC1Hi5Jbsx

* feat(events): rows by date, a sheet per event; an event with no deadline can be added again

/events reads an event's date and place, not only its deadline: a meetup
with a day and a city sat under "No deadline" as if it had neither. Rows
go coming up, no date yet, already happened; a row opens the event in a
sheet (edit, ask Loki, archive, delete) and "New event" is the page's
one action, a form in a sheet.

Fix: the add form sent "" for an empty deadline and the API refused it
as "Invalid date", so no event without a deadline could be added. The
form now sends only what was filled in, and the API reads "" as none.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NZqZujmXpupVDC1Hi5Jbsx

* feat(talk): Loki's empty chat, chat list, Sessions and More sheet as rows

- /loki: a greeting, recent chats and Build next as ListRows above the
  composer; no scrolling chip strip, no starter chips when there are
  projects, no "Auto your key" on the model chip; the chat list
  (ThreadRail) as Claude's list, pin and delete in each row's menu.
- Sessions: nothing open is one line and a Resume row per project; a
  missed deep link is one line and its row (and, on a phone, the open
  sessions); the session and more sheets are short rows; the Sessions
  drawer is a list with its search as the first row.
- More sheet: names only, no truncated descriptions.
- Voice: one line and Start, then titled sections of rows.
- Sidebar section labels and app-wide label classes in sentence case.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NZqZujmXpupVDC1Hi5Jbsx

* wip(public): calmer signed-out site — rows, one orange action, sentence case

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NZqZujmXpupVDC1Hi5Jbsx

* feat(design): Home, Today, Suggestions and Approvals as sections of rows

Design reset (docs/development/design-reset-2026-10.md) for the 'what needs
me' group:

- Home: three sections of ListRows — Needs you (failures with their fix on
  the row, escalations, the review inbox), Being built, Done — under the
  composer. Job cards that all read 'Next best step' became rows naming the
  project and the live step; the footer is two rows (builder, New project),
  so nothing pokes under the bottom bar. The status hero no longer repeats
  projects the rows already name. Builder-offline chip is a row.
- Today: a greeting, the day in one sentence (lib/today-brief todaySentence)
  with Plan my day / Log a conversation, then Needs you, weather in one
  line, Calendar, Habits, Commitments, Sticky note and More as sections of
  rows. Six recap cards that restated nav pages are gone.
- Suggestions: momentum as a sentence, Show: All menu instead of a cut-off
  chip row, each suggestion a ListRow (tap = do it, menu = Not now), and
  project names through projectTitle().
- Approvals: pending first, unboxed; Approve/Decline in words; event times
  in the reader's zone instead of a raw UTC ISO string; standing approvals
  as OptionRows at the end; quiet empty state.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NZqZujmXpupVDC1Hi5Jbsx

* feat(money): one sentence, subscription rows, a sheet per subscription

"51.00 CHF and 329.60 USD a month across 9 subscriptions. Next: GitHub on
3 Nov." replaces three stat tiles. Each subscription is a row (how often,
when next, whether a receipt backs it; the amount on the right) that opens
a sheet with everything the row used to carry: mark paid, edit, check at
the vendor, ask Loki, free alternatives, cancel, delete. Cancelled ones
fold away; promised money and the founder's OrangeCat link are rows.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NZqZujmXpupVDC1Hi5Jbsx

* feat(people): contact rows with search and menus, a real page per person

/people is a list like a phone's contacts: initial, name, what they do and
where, how long since you talked. Search is the first row; Show and Sort
are menus instead of a chip row cut at the edge; the filled "Log talk"
button on every row moved into the row's menu. Importing and merging is
one row that opens a sheet. A person's page opens with the person on it
(it fetched the same row again behind a skeleton), in plain sections,
with rename, ask Loki and delete as rows at the end.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NZqZujmXpupVDC1Hi5Jbsx

* feat(crew): asks and crew as rows; an ask with nobody on it can be given to someone

One sentence ("1 ask needs you"), the open asks grouped by where they
stand, each a row that opens a sheet with its brief, link, payment and
the moves open to you; your crew as rows with "Give them work" in the
row's menu. Fix: an ask saved with nobody on it said "pick someone before
handing this over" and offered no way to pick; the sheet now does.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NZqZujmXpupVDC1Hi5Jbsx

* feat(settings): a list of sections on a phone, flat sections inside

Below lg, /settings is a list of its twelve sections, each a row with
what is in it; one opens as its own page with a back row, and the phone's
back gesture returns to the list. The tab strip that ran off the screen
is gone. Inside, the bordered boxes and caps labels are flattened to
sections and rows; Appearance is one even row of three, the digest is a
list of choices, and the Agent tab says what it is for in plain words.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NZqZujmXpupVDC1Hi5Jbsx

* fix(home,bell): failure rows give the reason the full width; Earlier rows carry no dot

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NZqZujmXpupVDC1Hi5Jbsx

* feat(today,home): In focus is one row; Home loads as its own shape

TodayWatch was a bordered card with an orange capitals eyebrow, the day's
counts a second time and two Loki buttons; it is now one row under 'In
focus' with Loki's nudge as a plain line, and says nothing when nothing
stands out. Home's loading state is the composer and three row lines
instead of three empty cards.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NZqZujmXpupVDC1Hi5Jbsx

* feat(projects): plain sections on every project tab, one time per row

- A row's line no longer repeats its trailing time ("Worked on 1d ago … 1d"):
  it says Live / Not live yet / Not started yet, and the time is said once.
- A run waiting on a person (main's new "needs_you" build state) reads
  "Needs you: the agent is waiting" on the list and offers "See what it
  needs" on the project; the list query now reads the run's own record.
- Story: one rename (in the header), the stage drawn without colour, the
  profile score labelled in words, "The story" instead of "Agent context",
  three short fill buttons that fit a phone.
- Feedback: one heading and one "…" menu for list actions; the widget setup
  and auto-ship toggle on the page instead of boxes in boxes; plain labels
  ("Put it on the site", "Turn on only") kept in step with the API hints and
  the public docs.
- Activity: "What changed" as rows, newest first by date, no handoff chips.
- Plan: "Roadmap" is the section's heading; no accent icons.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NZqZujmXpupVDC1Hi5Jbsx

* fix(prompts): one Run that works — repo-only projects start, Loki streams, no raw blanks

- Send to terminal on a project with only a repository (no folder) queued a
  bare inject that failed with "no running agent for 'substrata' on this
  runner"; tab-inject now hands such projects to the inject core, the same
  start-or-queue path /api/inject uses (in the previous commit).
- The Run sheet leads with the prompt's own worker (lib/prompt-run): the
  project's agent for project work, Loki for personal prompts; the other is
  one quiet line. A send ends in one sentence and "Watch it work".
- Run with Loki streams into the sheet through the chat's own thread
  (useSessionAsk + ChatThread): clock, Stop, retry, Continue in Loki.
- {{variables}} are never shown raw: blanks are named in words until filled.
- Pins all of it in scripts/test/prompts-page.ts.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NZqZujmXpupVDC1Hi5Jbsx

* feat(activity): the answer as a sentence, failures and history as rows

/activity drew eight boxes before the first event: a hero card with a bar
chart and four coloured tiles, a red card of failures in the builder's own
words, project chips cut off at the edge, a time picker card, count chips and
a report card. Now: When and Project as two menus, the headline sentence,
"Runs need you" as rows with Run again, and "What happened" as rows under
day headings (Show: menu), each opening its run on Watch. The report is the
page's one action, in a sheet. Failures read in plain words (activity-words).
Fixes the double <h1> (page and view both drew PageLayout).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NZqZujmXpupVDC1Hi5Jbsx

* feat(feedback): decisions and reports as rows; each opens in a sheet

/feedback: "Do all" is the page's one action (confirmed in a sheet that
says what it spends); every decision is one row — the report in the
reporter's words, project and when — with its yes as the row's own button,
still one tap; the row opens the full decision (Loki's read, facts, every
move) in a sheet. Under way / Done / Filed away are rows with their state in
plain words. Keeps main's per-decision taken key (#1367).
/my-feedback: rows (your words, status and project, when), each opening the
shared ReporterFeedbackCard in a sheet; a quiet empty state.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NZqZujmXpupVDC1Hi5Jbsx

* feat(system,packages): plain sections and rows; one design-reset block in globals.css

/system: nineteen bordered cards under three question headings become one
page of plain sections (SystemBlock: sentence-case heading, no box) with
words a person would say — Alarms, Server, Server size, Room for more work,
Health check, Recent errors, Agents keep going, Runs on a schedule — and the
records behind one "More records" row. Agents keep going is one sentence
and the one button that changes it.
/packages: each package one row (latest, who uses it, who is behind), the
read line ending in "Read again", and Publish to npm as two calm numbered
steps instead of a card.
globals.css: the work-tools block (prompts sheet, activity, feedback row
verb, steps, system) after the feedback classes; the dead activity, pulse,
needs-you and feedback-card rules deleted with the code that used them, and
ui-btn-overlay (its last users were the prompt cards). CLAUDE.md follows.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NZqZujmXpupVDC1Hi5Jbsx

* fix(talk): own class for the empty Sessions list, quieter dots, a voice note that fits

ui-term-empty already named another rule, which centred the new list;
a finished session no longer gets a green dot (rule 8); the 'Only what
needs me' line fits under its switch on a phone.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NZqZujmXpupVDC1Hi5Jbsx

* fix(public): reachable /fleet filters on desktop, essay body on the title's edge

The /fleet filters sat in a <details> whose summary was hidden from md up
on the belief that CSS forced it open; a closed <details> hides its
content at any width, so on a desktop the filters were gone with nothing
to press. The toggle now shows at every width and opens itself while a
filter is set. The footer's closed studio-sites list no longer lays out
invisibly, and an essay's body starts on the same left edge as its title.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NZqZujmXpupVDC1Hi5Jbsx

* fix(feedback): projects by name, the age last, the night note in francs

- Every project on /feedback goes through projectTitle(): the inbox route
  attaches each row's projectTitle from the project entity, and the rows, the
  project menu and the sheet title read it.
- A decision row's one line is project · age (or the page, with one project
  in view); the repeated "Build it, one agent run" beside a "Build it" button
  is gone, and no trailing age squeezes the report's words.
- The morning note (nightNoteText, shared with /today) names projects through
  projectTitle, drops the "· 2 of 3 runs" ledger, and states the cost in
  francs (CHF_PER_USD): "… filed away 4 old reports. It cost CHF 1.70."

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NZqZujmXpupVDC1Hi5Jbsx

* chore: drop the dead recent-dispatches query; the build-row fade at every width

getRecentDispatches fed only the Today recap card the redesign removed. The
/loki build row hid its scrollbar at every width but faded its edge only on
a phone; the fade now applies wherever the row scrolls.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NZqZujmXpupVDC1Hi5Jbsx

* fix(projects): a project with no title reads as a word, not its folder name

projectTitle passed an untitled project's folder name straight through, so
Home, Feedback and the bell listed "murphys-bar" and "aoz-housing". An
all-lowercase slug now reads as a word ("Murphys bar"); a name typed with
capitals is kept as typed.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NZqZujmXpupVDC1Hi5Jbsx

* fix(public): headline visible before its animation, names through projectTitle, plain demo note

The hero rose in from opacity 0 with a 'both' fill, so until the
animation ran the headline was simply not there: a slow phone, a
screenshot or a page still loading showed a blank where the promise
should be. The rise is now movement only; content is visible by
default and reduced motion turns the movement off.

Every project name on the public site (the /fleet register, a project's
public page, a person's public profile, the landing hero) now goes
through projectTitle(). The sign-in demo note says what is switched off
in plain words, and /build's eyebrow is sentence case.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NZqZujmXpupVDC1Hi5Jbsx

* chore(terminal): drop terminalSourceHint, which nothing reads now

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NZqZujmXpupVDC1Hi5Jbsx

* fix(life): project titles, channel names and sheet rows after a look at the pages

A goal's project and an ask's project read the project's title when it
has one instead of its folder name; the ask's row drops the project so
the date fits on a phone. A person's ways to reach them and their
conversations say "WhatsApp", not "whatsapp", and the icon now matches
a conversation's channel (it looked the channel up without its prefix and
always fell back). Sheet action rows draw every icon at one size and start
at the left; "I cancelled it" is not red. A goal's progress and date are
body text. The responsive audit names /goals/[id] as needing an id.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NZqZujmXpupVDC1Hi5Jbsx

* fix(work-tools): every project name through projectTitle()

With main's projectTitle() reading an untitled key as words (3bc9a395), the
remaining bare keys in this group go through it too: the decision card's
where-line and the full feedback row's project link, Activity's rows, menus
and retry label (one titleFor helper instead of three fallbacks to the raw
key), scheduled jobs grouped by project on /system, and the repositories and
dependents on /packages.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NZqZujmXpupVDC1Hi5Jbsx

* test(projects): pin the rebuilt rows, flags and activity to the new rule

- getProjectsRunNow reads runs since a day ago with gte(), not raw SQL.
- The health panel can no longer be trapped by a row: it is not on a row.
- "Needs fixing" heads the flags; each row carries a red dot and no tint.
- Activity speaks plainly ("Working on …", "Nothing running", "last change").
- The project page's site link uses the widget's owner-pass helper, so the
  browser fixture bundles it.
- The chooser's two lines fit a phone; the dead ui-* rule baseline drops to 27.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NZqZujmXpupVDC1Hi5Jbsx

* docs(projects): the Views row describes the rebuilt list and page

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NZqZujmXpupVDC1Hi5Jbsx

* fix(home,today): project names in words, reasons that say what happened, one builder line

- Every project name on Home and Today goes through projectTitle().
- 'last run: needs attention' became what the run's record says, in words
  (lib/attention-words): 'Stopped: …', 'Stuck: …', 'The last run only got
  part of the way — next: …'.
- Home says the builder's state once: the row at the top. The foot is
  Settings and New project, and no longer contradicts it.
- Runs with no word from the agent sit under 'Gone quiet' and say what
  they wait on ('No word from the agent for 1d', 'Waiting for a builder to
  pick it up'); times are compact ('1d', '2h 5m').
- Today: Start my day is one row when no main projects are chosen; the
  headline names its parts ('4 urgent, 4 approvals, 42 reports to triage
  and 7 other things.'); an urgent item has one action (Fix with Loki), its
  title opens it; alerts show their first paragraph only. The repo-missing
  alert says "<Project>'s repository can't be found on GitHub", with no URL
  or status code in the words a person reads.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NZqZujmXpupVDC1Hi5Jbsx

* docs: the Life pages and their primitives, as they now are

CLAUDE.md's component map and Views rows for People, Crew, Money, Goals,
Habits, Events and Settings described cards, chip filters and stat tiles
that are gone. The design-reset primitives table gains DetailSheet, the
ListRow control slot and ModalForm's quiet triggers.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NZqZujmXpupVDC1Hi5Jbsx

* chore(design): drop two rules the rebuilt pages no longer use

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NZqZujmXpupVDC1Hi5Jbsx

* fix(audit): a page that reloads or crashes no longer ends the audit

Each route gets its own page, measuring retries while a dev server reloads,
and a crashed page is recorded in the report instead of throwing.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NZqZujmXpupVDC1Hi5Jbsx

* docs(changelog): every page, calm

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NZqZujmXpupVDC1Hi5Jbsx

* fix(design): session names in words, and no "next: Nothing queued"

A session's name in Sessions was its folder ("derhochhinhousepartyrenner-ch-
refresh"); it now reads as every other surface names the project. Home no
longer appends an agent's "Nothing queued" as if it were a next step.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NZqZujmXpupVDC1Hi5Jbsx

* test: pin the rebuilt pages' names and rows

Project names now read as words in the night note and the Sessions drawer,
the ListRow link carries its own props, and the trailing-column check reads
the rule itself rather than a scoped override.

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>
2026-10-22 10:51:18 +02:00
Cato 8ab96666d7 Use shared audio playback and describe Cat's real creative Studio (#1382)
* Play audio in Loki and ground Cat Studio capabilities in the working first version

* Minify shared widget CSS before inlining to retain the download budget
2026-10-22 00:41:03 +02:00
Catoandcatomean 9901e004d8 Use the shared visual answer engine in AI chats (#1364)
* feat: adopt shared visual AI answers

* test: preserve all citations in one sources sheet per answer

* feat: negotiate visual answers with public chat clients

* fix: preserve complete visual widget answers and bounded history

* fix: keep visitors' literal messages in rich chat history

* style: normalize widget history formatting

* fix(widget): keep chatkit out of the panel bundle

The panel (public/widget.js) imported richAnswerText from @bitbaum/chatkit,
pulling a dependency into every customer page load and failing
widget-self-contained. Use a dependency-free copy in widget/rich-history.ts
with a parity test against chatkit.

* style: format widget visual answer test

---------

Co-authored-by: catomean <catomean@users.noreply.github.com>
2026-10-21 15:53:00 +02:00
CatoandClaude Fable 5.1 f883de4c20 feat(loki): chatkit 0.10 (the row under an answer, studio voice) and temporary chat (#1361)
* feat(loki): chatkit 0.10 — the row under an answer is the fleet's, read in the studio voice

Copy · Listen · Share · Try again · Bad answer under every answer are
chatkit's AnswerActions now (0.10.0): Listen reads the answer in the studio
voice (createServerSpeaker, made inside the tap so a phone does not mute it,
the phone's own voice as the fallback) and the row becomes a small player —
Stop and the time so far — while it reads. Loki's own copy of the flattening
(speech-text) and the browser-voice hook are gone; the path re-exports
chatkit's for the voice modules. The composer's placeholder is one row on
the narrowest phone, from the same release.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_018WZnBnaLP6RhwFkLxRTKgE

* chore(deps): chatkit 0.10.0 pinned to main

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_018WZnBnaLP6RhwFkLxRTKgE

* feat(loki): temporary chat — never listed, gone when you leave

"Temporary chat" in the start screen's menu (and a thread's): the next
conversation is created `ephemeral` (conversations.ephemeral, drizzle 0126).
It is never in the rail, the start screen or an export — every list reads
ephemeral = false — and it is deleted the moment the person leaves it: a new
chat, a switch to another thread, a closed tab (the delete goes with
keepalive). The daily sweep (crons/sweep-temporary-chats, 04:40 UTC) takes
any left behind by a dead phone. The header says "Not saved — gone when you
leave" while one is open or armed. lib/loki/temporary-chat.ts holds the
leave rule, pure and tested (scripts/test/loki-temporary-chat.ts).

The workspace's two drawers moved to WorkspaceDrawers to stay under the
line cap.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_018WZnBnaLP6RhwFkLxRTKgE

* chore(drizzle): format the generated 0126 meta

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_018WZnBnaLP6RhwFkLxRTKgE

* fix(crons): the temporary-chat sweep writes its outcome down

cron-outcome-persistence: every cron-authed route records what it did with
logDebug, since the journal holds about a day.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_018WZnBnaLP6RhwFkLxRTKgE

---------

Co-authored-by: Claude <noreply@anthropic.com>
2026-10-21 07:33:11 +02:00
CatoandClaude Fable 5.1 aa2fddaf6d feat(loki): the conversation fills the display, answers as cards and tables (chatkit 0.9) (#1357)
* feat(loki): the conversation fills the display (chatkit ChatScreen)

The open thread runs edge to edge and top to bottom; the phone's thread
header and the composer float over it, and the words fade as they pass
under each — the layout of the ChatGPT and Claude apps (owner,
2026-10-20: "the whole display is used"). The thread's follow-the-bottom
is chatkit's useStickToBottom now, which also stays pinned when the
floating composer grows. A failed turn (TurnError) rides in the dock.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_018WZnBnaLP6RhwFkLxRTKgE

* chore(deps): chatkit 0.8.2 (ChatScreen inset defaults)

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_018WZnBnaLP6RhwFkLxRTKgE

* feat(loki): answers drawn by the fleet's renderer — cards, tables, sources

Loki chat answers go through @bitbaum/chatkit's Markdown (0.9.0): a list
of named things reads as cards, a table is a table, headings keep their
level. The sources an answer cites stay ONE button under it that opens
every record (CitationNote), with the handles taken out of the sentences
as before. Every other LLM-output surface keeps MarkdownText.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_018WZnBnaLP6RhwFkLxRTKgE

---------

Co-authored-by: Claude <noreply@anthropic.com>
2026-10-21 00:54:44 +02:00
dependabot[bot] 34991a876d chore(deps): bump the minor-and-patch group with 10 updates (#1338)
Bumps the minor-and-patch group with 10 updates:

| Package | From | To |
| --- | --- | --- |
| [geist](https://github.com/vercel/geist-font/tree/HEAD/packages/next) | `1.7.2` | `1.8.1` |
| [lucide-react](https://github.com/lucide-icons/lucide/tree/HEAD/packages/lucide-react) | `1.55.0` | `1.58.0` |
| [next](https://github.com/vercel/next.js) | `16.4.0` | `16.4.2` |
| [playwright](https://github.com/microsoft/playwright) | `1.64.0` | `1.64.1` |
| [react](https://github.com/react/react/tree/HEAD/packages/react) | `19.3.0` | `19.3.1` |
| [react-dom](https://github.com/react/react/tree/HEAD/packages/react-dom) | `19.3.0` | `19.3.1` |
| [shadcn](https://github.com/shadcn-ui/ui/tree/HEAD/packages/shadcn) | `4.21.4` | `4.22.0` |
| [zod](https://github.com/colinhacks/zod) | `4.6.5` | `4.6.7` |
| [eslint](https://github.com/eslint/eslint) | `10.12.0` | `10.13.0` |
| [eslint-config-next](https://github.com/vercel/next.js/tree/HEAD/packages/eslint-config-next) | `16.4.0` | `16.4.2` |


Updates `geist` from 1.7.2 to 1.8.1
- [Release notes](https://github.com/vercel/geist-font/releases)
- [Changelog](https://github.com/vercel/geist-font/blob/main/packages/next/CHANGELOG.md)
- [Commits](https://github.com/vercel/geist-font/commits/v1.8.1/packages/next)

Updates `lucide-react` from 1.55.0 to 1.58.0
- [Release notes](https://github.com/lucide-icons/lucide/releases)
- [Commits](https://github.com/lucide-icons/lucide/commits/1.58.0/packages/lucide-react)

Updates `next` from 16.4.0 to 16.4.2
- [Release notes](https://github.com/vercel/next.js/releases)
- [Commits](https://github.com/vercel/next.js/compare/v16.4.0...v16.4.2)

Updates `playwright` from 1.64.0 to 1.64.1
- [Release notes](https://github.com/microsoft/playwright/releases)
- [Commits](https://github.com/microsoft/playwright/compare/v1.64.0...v1.64.1)

Updates `react` from 19.3.0 to 19.3.1
- [Release notes](https://github.com/react/react/releases)
- [Changelog](https://github.com/react/react/blob/main/CHANGELOG.md)
- [Commits](https://github.com/react/react/commits/v19.3.1/packages/react)

Updates `react-dom` from 19.3.0 to 19.3.1
- [Release notes](https://github.com/react/react/releases)
- [Changelog](https://github.com/react/react/blob/main/CHANGELOG.md)
- [Commits](https://github.com/react/react/commits/v19.3.1/packages/react-dom)

Updates `shadcn` from 4.21.4 to 4.22.0
- [Release notes](https://github.com/shadcn-ui/ui/releases)
- [Changelog](https://github.com/shadcn-ui/ui/blob/main/packages/shadcn/CHANGELOG.md)
- [Commits](https://github.com/shadcn-ui/ui/commits/shadcn@4.22.0/packages/shadcn)

Updates `zod` from 4.6.5 to 4.6.7
- [Release notes](https://github.com/colinhacks/zod/releases)
- [Commits](https://github.com/colinhacks/zod/compare/v4.6.5...v4.6.7)

Updates `eslint` from 10.12.0 to 10.13.0
- [Release notes](https://github.com/eslint/eslint/releases)
- [Commits](https://github.com/eslint/eslint/compare/v10.12.0...v10.13.0)

Updates `eslint-config-next` from 16.4.0 to 16.4.2
- [Release notes](https://github.com/vercel/next.js/releases)
- [Commits](https://github.com/vercel/next.js/commits/v16.4.2/packages/eslint-config-next)

---
updated-dependencies:
- dependency-name: geist
  dependency-version: 1.8.1
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: minor-and-patch
- dependency-name: lucide-react
  dependency-version: 1.58.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: minor-and-patch
- dependency-name: next
  dependency-version: 16.4.2
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: minor-and-patch
- dependency-name: playwright
  dependency-version: 1.64.1
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: minor-and-patch
- dependency-name: react
  dependency-version: 19.3.1
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: minor-and-patch
- dependency-name: react-dom
  dependency-version: 19.3.1
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: minor-and-patch
- dependency-name: shadcn
  dependency-version: 4.22.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: minor-and-patch
- dependency-name: zod
  dependency-version: 4.6.7
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: minor-and-patch
- dependency-name: eslint
  dependency-version: 10.13.0
  dependency-type: direct:development
  update-type: version-update:semver-minor
  dependency-group: minor-and-patch
- dependency-name: eslint-config-next
  dependency-version: 16.4.2
  dependency-type: direct:development
  update-type: version-update:semver-patch
  dependency-group: minor-and-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-10-20 02:38:48 +02:00
CatoandClaude 8e8ffa0b82 feat(change): see your own site changed in under a minute, before any account (#1328)
A stranger on /change now taps "Show it on my site" and gets their live
homepage, photographed by Loki's browser, then the same spot with what they
asked for drawn on it, compared with a slider. No account, no repository, no
build: the widget's "Show me" edits (same closed vocabulary, same sanitising)
applied in a headless page on the server, never in their site.

- widget/instant-page.ts bundles the widget's outline + applyPreview for that
  page (public/instant-page.js, built with the widget). It is evaluated, not
  injected, so a site's own CSP cannot block it.
- page-picture: withLivePage shares the picture's queue, private-network
  guard and patience with a caller that photographs more than once.
- POST /api/site-consult/preview streams NDJSON: their site the moment it
  exists (~5 s), then before/after. The address must pass the consultation
  first. It spends the owner's AI on purpose, behind a per-visitor and an
  everyone-per-hour limit and the owner's daily budget.
- The preview prompt drops its "was just changed for" line when nothing was.


Claude-Session: https://claude.ai/code/session_01HyfPCAeTFi2sjpVY44Y1JJ

Co-authored-by: Claude <noreply@anthropic.com>
2026-10-19 16:48:44 +02:00
CatoandClaude Fable 5.1 0193617710 fix(build): the standalone carries Playwright, so the box can take pictures at all (#1286)
* fix(deploy): install Chromium with the app's own Playwright; /api/health says whether pictures work

Every picture on the box answered no-browser. The deploy installed Chromium
with the runner's Playwright, which npm resolves from package.json's ranges
(there is no package-lock.json), while the app is built from pnpm's lockfile:
two versions, two Chromium revisions, and the app never found the one that
was installed. The install now runs the Playwright the standalone ships, as
the app user, and a failure's output stays in the deploy log.

/api/health carries `pictures` (Playwright present, the browser path, ok), so
a server that cannot photograph a page says so on the one line everyone
reads. A missing Playwright is its own reason (no-playwright); the two places
that word a missing browser treat it the same.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Y9KbVEpxKLC9nhKhpWncU1

* fix(build): the standalone carries Playwright, so the box can take pictures at all

/api/health read pictures.playwright=false after #1285: the standalone build
never contained Playwright. Being in serverExternalPackages makes the bundler
leave it alone; it does not make the tracer copy it. outputFileTracingIncludes
now names it (and pnpm's real files under node_modules/.pnpm) for every route,
and playwright moves from devDependencies to dependencies, which is what it
is: a runtime need of the server.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Y9KbVEpxKLC9nhKhpWncU1

* chore(control): regenerate control-states.generated.sh (awaiting_you was added to the source, not the output)

The build's prebuild regenerates this file from the TypeScript states; main's
copy lacked the awaiting_you state, so every local build left the tree dirty.

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>
2026-10-17 21:34:42 +02:00