mirror of
https://github.com/bitbaum/loki.git
synced 2026-12-04 16:27:37 +01:00
feat/parallel-implement
4
Commits
| Author | SHA1 | Message | Date | |
|---|---|---|---|---|
|
|
95c40a9cd8 |
refactor: rename the product from FleetCrown to Loki (#695)
The product, its assistant, the repo, the host and every unit on the box now share one name. 638 files, ~3,000 mentions: UI copy, config, env keys (FLEETCROWN_* -> LOKI_*), systemd units (fleetcrown-* -> loki-*), docs, articles, the deploy workflow other repos reuse, and nine file names. - Three article slugs carried the old name and had been shared; permanent redirects keep those links alive (next.config.ts). - test-no-retired-name.sh now also forbids the old product name across the whole repo, so the rename cannot creep back through templates and examples. - ASSISTANT_STACK collapses the product and the assistant into one entry, because they are now the same name. Infra was cut over ahead of this merge: /opt/loki, loki-* units, the `loki` database and role, loki.orangecat.ch (old host 308s to it; /api, /widget, /embed keep proxying), GitHub repos bitbaum/loki and bitbaum/loki-releases. The Resend sending domain stays fleetcrown.orangecat.ch until the new domain is verified in DNS. Claude-Session: https://claude.ai/code/session_016YJVAanfj8keVSXyZnTemh Co-authored-by: Claude Fable 5.1 <noreply@anthropic.com> |
||
|
|
64d931004d |
chore(deps-dev): bump @types/node from 20.19.43 to 26.4.1 (#527)
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 20.19.43 to 26.4.1. - [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases) - [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node) --- updated-dependencies: - dependency-name: "@types/node" dependency-version: 26.4.1 dependency-type: direct:development update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> |
||
|
|
273a795b34 |
chore(deps): bump the minor-and-patch group with 11 updates (#525)
Bumps the minor-and-patch group with 11 updates: | Package | From | To | | --- | --- | --- | | [@noble/secp256k1](https://github.com/paulmillr/noble-secp256k1) | `3.1.0` | `3.2.0` | | [@sentry/nextjs](https://github.com/getsentry/sentry-javascript) | `10.72.0` | `10.73.0` | | [lucide-react](https://github.com/lucide-icons/lucide/tree/HEAD/packages/lucide-react) | `1.35.0` | `1.41.0` | | [next](https://github.com/vercel/next.js) | `16.3.3` | `16.3.4` | | [shadcn](https://github.com/shadcn-ui/ui/tree/HEAD/packages/shadcn) | `4.19.0` | `4.21.0` | | [zod](https://github.com/colinhacks/zod) | `4.5.1` | `4.5.4` | | [@types/react-dom](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/react-dom) | `19.2.5` | `19.2.7` | | [eslint](https://github.com/eslint/eslint) | `10.9.1` | `10.10.0` | | [eslint-config-next](https://github.com/vercel/next.js/tree/HEAD/packages/eslint-config-next) | `16.3.3` | `16.3.4` | | [playwright](https://github.com/microsoft/playwright) | `1.62.1` | `1.63.0` | | [tsx](https://github.com/privatenumber/tsx) | `4.23.12` | `4.23.13` | Updates `@noble/secp256k1` from 3.1.0 to 3.2.0 - [Release notes](https://github.com/paulmillr/noble-secp256k1/releases) - [Changelog](https://github.com/paulmillr/noble-secp256k1/blob/main/CHANGELOG.md) - [Commits](https://github.com/paulmillr/noble-secp256k1/compare/3.1.0...3.2.0) Updates `@sentry/nextjs` from 10.72.0 to 10.73.0 - [Release notes](https://github.com/getsentry/sentry-javascript/releases) - [Changelog](https://github.com/getsentry/sentry-javascript/blob/10.73.0/CHANGELOG.md) - [Commits](https://github.com/getsentry/sentry-javascript/compare/10.72.0...10.73.0) Updates `lucide-react` from 1.35.0 to 1.41.0 - [Release notes](https://github.com/lucide-icons/lucide/releases) - [Commits](https://github.com/lucide-icons/lucide/commits/1.41.0/packages/lucide-react) Updates `next` from 16.3.3 to 16.3.4 - [Release notes](https://github.com/vercel/next.js/releases) - [Commits](https://github.com/vercel/next.js/compare/v16.3.3...v16.3.4) Updates `shadcn` from 4.19.0 to 4.21.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.21.0/packages/shadcn) Updates `zod` from 4.5.1 to 4.5.4 - [Release notes](https://github.com/colinhacks/zod/releases) - [Commits](https://github.com/colinhacks/zod/compare/v4.5.1...v4.5.4) Updates `@types/react-dom` from 19.2.5 to 19.2.7 - [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases) - [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/react-dom) Updates `eslint` from 10.9.1 to 10.10.0 - [Release notes](https://github.com/eslint/eslint/releases) - [Commits](https://github.com/eslint/eslint/compare/v10.9.1...v10.10.0) Updates `eslint-config-next` from 16.3.3 to 16.3.4 - [Release notes](https://github.com/vercel/next.js/releases) - [Commits](https://github.com/vercel/next.js/commits/v16.3.4/packages/eslint-config-next) Updates `playwright` from 1.62.1 to 1.63.0 - [Release notes](https://github.com/microsoft/playwright/releases) - [Commits](https://github.com/microsoft/playwright/compare/v1.62.1...v1.63.0) Updates `tsx` from 4.23.12 to 4.23.13 - [Release notes](https://github.com/privatenumber/tsx/releases) - [Changelog](https://github.com/privatenumber/tsx/blob/master/release.config.cjs) - [Commits](https://github.com/privatenumber/tsx/compare/v4.23.12...v4.23.13) --- updated-dependencies: - dependency-name: "@noble/secp256k1" dependency-version: 3.2.0 dependency-type: direct:production update-type: version-update:semver-minor dependency-group: minor-and-patch - dependency-name: "@sentry/nextjs" dependency-version: 10.73.0 dependency-type: direct:production update-type: version-update:semver-minor dependency-group: minor-and-patch - dependency-name: lucide-react dependency-version: 1.41.0 dependency-type: direct:production update-type: version-update:semver-minor dependency-group: minor-and-patch - dependency-name: next dependency-version: 16.3.4 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: minor-and-patch - dependency-name: shadcn dependency-version: 4.21.0 dependency-type: direct:production update-type: version-update:semver-minor dependency-group: minor-and-patch - dependency-name: zod dependency-version: 4.5.4 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: minor-and-patch - dependency-name: "@types/react-dom" dependency-version: 19.2.7 dependency-type: direct:development update-type: version-update:semver-patch dependency-group: minor-and-patch - dependency-name: eslint dependency-version: 10.10.0 dependency-type: direct:development update-type: version-update:semver-minor dependency-group: minor-and-patch - dependency-name: eslint-config-next dependency-version: 16.3.4 dependency-type: direct:development update-type: version-update:semver-patch dependency-group: minor-and-patch - dependency-name: playwright dependency-version: 1.63.0 dependency-type: direct:development update-type: version-update:semver-minor dependency-group: minor-and-patch - dependency-name: tsx dependency-version: 4.23.13 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> |
||
|
|
e3541e2374 |
feat(v0.6): Phase A — event bus foundation (Postgres NOTIFY → SSE bridge)
The end-to-end push pipeline that replaces /api/control polling. This
commit ships the foundation; phases B-E light it up across the web,
desktop, and daemon. Read the architectural narrative in
/thoughts/from-polling-to-listening-fleetcrown-v0-6.
drizzle/0022_notify_triggers.sql
- Generic fc_emit_change() plpgsql function: receives (user_col,
key_col) via TG_ARGV, emits NOTIFY 'fc:state' with a compact
{t, u, k, op, ts} JSON payload. IDs only — no row content — so
the bus stays under Postgres's 8 KB NOTIFY limit even on bursts.
- AFTER INSERT/UPDATE/DELETE triggers on the five UI-relevant
tables: project_states, runtime_snapshots, pending_commands,
orchestration_runs, beacon_settings.
- Adding more tables in the future is two lines: drop + create
trigger pointing at the same fc_emit_change function.
bridge/ (new ~300-line Node service)
- src/server.ts — HTTP server with /sse (SSE endpoint, ?token=ck_*
auth, Last-Event-ID replay) and /healthz. CORS open; the bridge
sits on a different origin than Vercel and the desktop app.
- src/listen.ts — single dedicated pg Client running LISTEN
"fc:state" forever, with exponential-backoff reconnect on
disconnect. Notifications fan out to subscriptions.
- src/subscriptions.ts — in-memory Map<userId, Set<connection>>.
Per-user routing; fanout writes SSE frames; idempotent remove
on disconnect.
- src/auth.ts — validates ck_* tokens against agent_tokens using
the same plaintext lookup the cloud API uses (mirrors src/db/
queries/agent-tokens.ts validateAgentToken).
- src/types.ts — ChangeEvent and Subscription shapes.
- In-memory ring buffer (1000 events) for Last-Event-ID replay so
a brief disconnect doesn't drop state.
- Heartbeat (SSE comment) every 25s to keep proxies happy.
- Graceful SIGINT/SIGTERM shutdown with 5s hard-fail timeout.
- .env.example, .gitignore, README with the Oracle systemd deploy
runbook.
next.config.ts
- Exclude ./bridge/** from output: standalone tracing. Same lesson
as ./desktop/** — bridge has its own node_modules and is
deployed separately. Don't let Vercel bundle it into every
serverless function.
Verified end-to-end locally:
- psql UPDATE on project_states → fc_emit_change fires →
pg_notify reaches the bridge's LISTEN client → fanout to the
subscribed curl SSE connection in ~milliseconds.
- Per-user routing: a token bound to user A only receives events
for user A's rows; tested by minting under two different users.
- Last-Event-ID replay: reconnect with header skips already-
delivered events, then live events arrive immediately.
Next: Phase B (web client subscribes to the bridge instead of polling
/api/control). Phases C-E follow.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
|