Commit Graph
100 Commits
Author SHA1 Message Date
Andrew S Erwin ec78b2cf7f release 0.3.4: bump federated service VERSION, installer image version and mcp package version
release gate / check (push) Failing after 5m49s
release / smoke (push) Successful in 10m28s
release / publish (push) Failing after 9m50s
0.3.4
2026-11-23 14:20:35 -06:00
Andrew S Erwin 53127cc8fa Automations: move from Settings to a sidebar workspace with a task dropdown
The Automations caret in the main sidebar lists the user's tasks (status
dot, persisted expand state, live refresh via AUTOMATIONS_CHANGED) and
deep-links /automations?task=<id>, which scrolls to the card and highlights
it. The management surface (compiler, task list, run history) moves to the
standalone /automations route; the settings tab is removed and legacy
?tab=automations deep links redirect. Assistant proposal creation notifies
the sidebar too. README/RUNNING/help wording follows; browser regression
covers the dropdown, deep link, redirect and mobile overflow.
2026-11-23 14:19:37 -06:00
Andrew S Erwin 6e8525014d release 0.3.3: bump federated service VERSION, installer image version and mcp package version
release gate / check (push) Failing after 5m45s
release / smoke (push) Successful in 10m32s
release / publish (push) Failing after 9m54s
0.3.3
2026-11-23 13:08:00 -06:00
Andrew S Erwin 084a1167da Unified Nextcloud connect: one credential connects files, calendars and contacts
POST /api/nextcloud/connect composes the three per-user DAV roots
server-side, verifies the credential against each protocol in parallel
(netguard-pinned, sharing the siblings' /test budgets) BEFORE storing
anything, and creates one ordinary sibling connection per protocol that
passes. Orchestration, not a fourth connector: every sibling plan gate,
validation (incl. CardDAV https/443), cap and projection applies; partial
success is a 200 with per-connector created|exists|gated|error results;
repeat calls are idempotent by composed URL. GET /api/nextcloud/status
serves the new Settings -> Nextcloud tab (origin hint + allowed flags +
masked connections); the UI fires the existing /sync surfaces right after
connect so collections materialize immediately. Contacts sync untouched;
no schema change.

Tests: unified Nextcloud fake (sibling fakes re-rooted to Nextcloud paths
on one origin) covering happy path, idempotency, wrong-password-stores-
nothing, owner scoping, partial plan gate + restore; browser regression
for the full connect/sync/idempotent/Manage flow.
2026-11-23 13:07:39 -06:00
Andrew S Erwin 6bb68ef323 release 0.3.2: bump federated service VERSION, installer image version and mcp package version
release gate / check (push) Failing after 6m36s
release / smoke (push) Successful in 10m21s
release / publish (push) Failing after 9m51s
0.3.2
2026-11-22 02:47:03 -06:00
Andrew S Erwin 5684757d24 Rename Go module to gitea.federated.computer/Federated_Computer/brain
The module path claimed a nonexistent GitHub repo. Point it (and the
agent User-Agent contact URL, README/RUNNING clone URLs) at the real
Gitea repository. Pure identifier rename: no runtime behavior change.

Verified: build, vet, unit + full DB integration (-race), db-converge,
web lint/SSR/build, browser regressions, e2e against rebuilt stack.
2026-11-22 02:46:40 -06:00
Andrew S Erwin 2dc128a215 release 0.3.1: bump federated service VERSION, installer image version and mcp package version
release gate / check (push) Failing after 6m30s
release / smoke (push) Successful in 10m18s
release / publish (push) Failing after 9m51s
0.3.1
2026-11-21 23:54:41 -06:00
Andrew S Erwin 4ccedd1a03 CHANGELOG: 0.3.1 brand refresh + README catch-up entry 2026-11-21 23:54:41 -06:00
Andrew S Erwin e8f04a4082 Brand icon: replace the LinkOS-era placeholders with the real Superbrain mark
release gate / check (push) Canceled after 2m9s
The favicon was a purple block placeholder and og-image.png still said
"LinkOS — Connect Everything"; every brand surface (sidebar, login,
signup, forgot/reset password, unsubscribe) drew a generic Link2 glyph in
a primary-colored square instead of the logo.

Assets (from the operator's superbrain-icon.svg/png):
- public/favicon.svg: the real mark, with the multi-KB C2PA provenance
  manifest stripped (graphics, gradients and filters verified intact via
  rsvg-convert at tab size).
- public/superbrain-icon.png: the 1024px RGBA asset; also wired as the
  apple-touch icon in the root metadata.
- public/og-image.png: recomposed 1200x630 banner — mark + Superbrain
  wordmark + tagline on the brand's deep-blue gradient.

Surfaces: new components/brand-icon.tsx is the single source for the mark
(one img, transparent rounded corners); sidebar brand, all auth pages,
all three unsubscribe states and the help header now use it. State icons
(Check/BellOff) and unused Link2 imports removed where the mark replaced
them; Link2 stays where it is a nav glyph (All Bookmarks).

Verified: web lint/SSR-lint/build 0 errors; full browser regressions pass
(login, mobile shell overflow checks and sign-out flows included).
2026-11-21 23:52:28 -06:00
Andrew S Erwin d4a2ca0d0d README: documentation line at the top (API reference, running guide, Authelia guide)
release gate / check (push) Failing after 6m38s
2026-11-21 23:24:34 -06:00
Andrew S Erwin 47e0272d6c README: catch up to 0.2.15–0.2.17 (grouped settings, sidebar reorg, page tags, calendar views, DAV connectors, branded email, help center, unsubscribe, profile)
release gate / check (push) Failing after 6m34s
Features section now matches the shipped app:
- Bookmarks group-by + Calendar Day/Week/Month/Year/List views; kanban is
  explicit-placement-only.
- Reorganized sidebar (Pages/Bookmarks groups, entity deep-links, Trash).
- Pages: WYSIWYG editing (Markdown storage), every added URL becomes a
  linked bookmark (reuse, never duplicate), page tags + drag-to-tag,
  hierarchy, revisions, Trash recovery, collection embeds.
- Connected services: WebDAV/CalDAV/CardDAV materialize as collections
  with bounded, tombstone-respecting sync and Core Nextcloud prefills.
- Notifications: Signal channel, share_received trigger, same-org
  targets, delivery history; branded HTML email with plain-text
  alternative and the footer trio (Email preferences deep link, Help
  center, owner-only Unsubscribe with one-click support and its exact
  blast radius).
- New bullets: Profile particulars (Settings → Profile, session name
  refresh, grouped settings + ?tab= deep links), public /help guide,
  developer access (API keys, superbrain-mcp, outbound MCP).
- Stale label fixed: Settings → OIDC is now Settings → Sign-in.

Publishing section reflects the confirmed operational reality: a
separate push-to-main process publishes the image set; the tag-triggered
CI smoke job gates every tag, but its publish job needs the one-time
DOCKERHUB_* secrets (repo-owner setup) and otherwise falls back. Example
versions refreshed 0.2.14 → 0.2.17; NEXTAUTH_URL now documents the email
footer links; SMTP section covers automation email; regression and
client-test lists include the DAV walkthroughs and profile round-trip.
2026-11-21 23:17:43 -06:00
Andrew S Erwin a402e4f2e7 release 0.2.17: bump federated service VERSION, installer image version and mcp package version
release gate / check (push) Failing after 6m32s
release / smoke (push) Successful in 10m43s
release / publish (push) Failing after 9m51s
0.2.17
2026-11-20 17:10:07 -06:00
Andrew S Erwin eca8aeb113 CHANGELOG: 0.2.17 branded email + help center + unsubscribe, profile particulars entry 2026-11-20 17:09:53 -06:00
Andrew S Erwin f6158f58b5 Settings → Profile: editable particulars (name, bio, location, occupation, organization, website)
The Profile tab was a read-only avatar/name/email stub. It is now a real
form, modeled on the profile surfaces of GitHub/Slack/Nextcloud and scoped
to what a knowledge tool uses: display name, bio (280 chars with counter),
location, occupation, organization and website; email stays read-only
(sign-in identity). Copy explains where the name appears (shares) and
that public bookmark links never reveal identity.

Schema: migration 024_user_profile.sql + schema.sql add five nullable
text columns to User (db-converge green, fresh and upgraded paths).
models.User, userFromObject and the auth identity projection carry them,
so GET /api/me serves the stored truth (Go re-reads identity per request).

PATCH /api/me applies partial allowlisted edits: empty string clears to
NULL, rune-based caps (120/280/120/120/120), website <=2048 and http(s)
with a host; the answer is the fresh identity projection. User has no
version column (identity, not a collaborative collection), so this follows
the settings-save shape rather than the 409 contract; view-as writes stay
blocked by the middleware.

Session propagation: the auth.ts jwt callback gains an "update" trigger
that re-syncs name/email/image from Go via the same assertion the data
proxy signs (fail-quiet when Go is unreachable). The component calls
useSession().update({}) after a save — the {} argument is load-bearing:
in next-auth v5 a bare update() only re-fetches the session, it does not
fire the trigger (caught by the new browser regression). The top bar name
refreshes without a re-login.

Verified: full Go integration suite green incl. new TestProfileUpdate
(partial edits, clearing, rune caps, URL validation, auth gate);
db-converge green; web lint/SSR-lint/build 0 errors; full browser
regressions pass incl. the new profile round-trip (save → toast → top-bar
refresh → form values intact → Save re-disables on a clean baseline).
2026-11-20 17:09:32 -06:00
Andrew S Erwin 7a7e77e039 Branded email template + footer pages: help center, token unsubscribe, settings deep links
release gate / check (push) Failing after 6m56s
Transactional mail now goes out as the Superbrain HTML design
(internal/mailer/template.html, embedded verbatim) with a plain-text
alternative: multipart/alternative (plain first per RFC 2046), random
boundary, CRLF normalization and SMTP dot-stuffing. Render() fills the
{{placeholders}} with HTML-escaped values and removes optional sections
(CTA + fallback link, note block, footer links, address) when empty;
anchor drift fails the unit tests and degrades to plain text at send
time, never blocking delivery. Password reset gets the headline,
first-name greeting, "Choose a new password" button (Outlook VML
fallback) and expiry/single-use note; notification and agent emails
render title-as-headline with body paragraphs.

The template's footer links are now real pages:
- /help: public help center (10 topic sections + FAQ accordion), linked
  from the login page.
- /unsubscribe?token=...: public confirmation page; the HMAC-signed user
  id (notify.UnsubscribeToken, domain-separated, stable, no stored row)
  IS the credential. POST /api/notifications/unsubscribe accepts the
  RFC 8058 one-click shape (token in query, form body ignored) and the
  browser JSON shape; it disables the user's enabled email channels and
  pauses enabled agent email tasks addressed to their own email
  (idempotent, re-enableable, per-client rate limited, audit logged).
- Email preferences deep-links to /settings?tab=notifications; Settings
  now honors ?tab=<section> (unknown values fall back to profile).

notify.FooterLinks is the single eligibility point: preferences + help
whenever NEXTAUTH_URL is set; unsubscribe ONLY when the recipient is the
owner's own account email — third-party channel addresses and agent
recipients never receive a link that changes someone else's settings,
and transactional mail (password reset) never carries unsubscribe.
Owner-addressed mail also carries List-Unsubscribe +
List-Unsubscribe-Post headers.

Verified: Go build/vet/unit green; new TestUnsubscribeFlow integration
test pins footer + headers, blast radius (slack channel and third-party
task survive), one-click + JSON paths, idempotence, tampered tokens and
the third-party/transactional exclusions; notifications, phase-2,
password-reset and agent suites green; web lint/SSR-lint/build 0 errors;
full browser regressions pass; live smoke of /help, /unsubscribe states,
the settings deep-link auth gate and bad-token 400 through the proxy.
2026-11-20 10:00:03 -06:00
Andrew S Erwin ef69be6320 API.md: document every endpoint (page tags, Next server routes, public/auth aliases)
release gate / check (push) Failing after 6m39s
Cross-checked all 140 registered Go routes against the reference; the only
undocumented ones were the page-tag endpoints. Add POST /api/pages/{id}/tags
and DELETE /api/pages/{id}/tags/{tagId} plus a Page tags subsection (owner-or-
shared tag rule, metadata with no content-version bump, cascade, sidebar
drag-to-tag), and surface tags:[{tag}] in the page list/detail projections.

Clarify two aliases: GET /share/bookmark/{id} on Go is the rate-limited public
JSON projection (Next.js renders the HTML page at the same path), and Go's
/api/auth/ catch-all implements only session+signout (other subpaths 404 on
Go, served by Next).

Add a Next.js server routes subsection: the /api/[...path] proxy (assertion
signing, CSRF + 1 MiB streaming cap, X-Next-Cursor passthrough, no client
Authorization forwarding), NextAuth /api/auth/*, and POST /api/session/revoke
(honest {revoked,reason} global-revocation reporting).

Docs-only; no version bump.
2026-11-19 14:03:03 -06:00
Andrew S Erwin 7f64cbae0b release 0.2.16: bump federated service VERSION, installer image version and mcp package version
release gate / check (push) Failing after 6m52s
release / smoke (push) Successful in 10m41s
release / publish (push) Failing after 9m51s
0.2.16
2026-11-18 14:23:53 -06:00
Andrew S Erwin 46d9044f53 CHANGELOG: 0.2.16 sidebar reorg, page tags, group-by, calendar views entry 2026-11-18 14:23:53 -06:00
Andrew S Erwin da70346e45 Sidebar reorganization + page tags, kanban explicit-only, bookmark group-by, calendar views
Sidebar (web/components/sidebar.tsx) reorganized to the requested structure:
Quick find at the top; a Pages group (All Pages tree with the existing
rename/reorder/pin/subpage/delete interactions, Pinned Pages, Untagged
Pages); a Bookmarks group (All Bookmarks, Calendar, and expandable carets
for Tags / Kanban / Collections / Contacts listing their entities with
deep-links /tags?tag=, /kanban?column=, /collections?id=, /contacts?open=);
Trash at the bottom. Collapsed desktop rail is a flat icon list; the mobile
drawer shows the full grouped nav.

Page tagging (new): PageTag join (migration 023 + schema.sql, db-converge
proven), POST/DELETE /api/pages/{id}/tags with owner-or-TagShare validation
(same rule as bookmark tags), tags exposed in the page list/detail
projections so the sidebar can compute the untagged subset. Tagging is
metadata (no content-version bump) and cascades on page/tag delete.
Dragging a page from Untagged Pages onto a tag assigns it (custom drag MIME
keeps it distinct from page reorder).

Kanban: only explicitly-placed cards render (no auto-populate of unassigned
bookmarks); the sidebar caret lists the existing columns and ?column=
scrolls/rings the target. e2e updated to assert no-auto-populate then place
the card explicitly.

All Bookmarks: a Group by selector (None/Calendar/Tags/Kanban/Collections/
Contacts) rendering grouped sections via shared row/card renderers; the
default None path is byte-identical to before (205-row table, same keys).
Collections grouping fetches membership once, sequence-guarded.

Calendar: Day/Week/Month/Year/List views (Month default), adaptive
prev/next + Today, date-sorted list; SSR-safe (date-fns only, post-mount
today), internal overflow containers so no page-level horizontal scroll.

Deep-link page wrappers for kanban/collections/contacts pass searchParams
into the clients' initial selection.

Test gate: the -race internal/http suite now exceeds the default 10m go
test timeout (~14m cold-cache), so the tests service and Makefile test
target use -timeout 30m; the suite passes in full.

Verified: regressions 20/20, real-stack e2e all pass, lint/SSR-lint/build
0 errors, db-converge green, full Go integration suite green; browser
checks of the grouped sidebar, drag-to-tag, bookmark group-by and every
calendar view show correct rendering with no horizontal overflow.
2026-11-18 14:23:26 -06:00
Andrew S Erwin e3d765e97b release 0.2.15: bump federated service VERSION, installer image version and mcp package version
release gate / check (push) Failing after 6m55s
release / smoke (push) Successful in 10m30s
release / publish (push) Failing after 9m49s
0.2.15
2026-11-17 11:08:33 -06:00
Andrew S Erwin 78231502f1 CHANGELOG: 0.2.15 grouped settings navigation entry 2026-11-17 11:08:33 -06:00
Andrew S Erwin 212d587f97 Settings: grouped vertical navigation replaces the overflowing flat tab strip
The 12 settings sat in a flat horizontal tab strip inside a narrow max-w-2xl
container, so roughly half (MCP, WebDAV, CalDAV, CardDAV, OIDC) hid behind a
horizontal scrollbar on desktop AND mobile, with no logical grouping.

Replaced with a grouped vertical settings nav:
- Account: Profile, Sign-in
- Connections: WebDAV, CalDAV, CardDAV, Contacts sync, IMAP
- AI & Automation: AI, MCP, Automations, Notifications
- Developer: API Keys

Desktop shows the nav beside the content pane (page widened to max-w-5xl);
below md it becomes a list -> detail flow with an "All settings" back button,
the same master-detail pattern as collections/tags/contacts. Built on Radix
Tabs with orientation="vertical" and controlled value, so role="tab"
locators, deep links and keyboard navigation are preserved; group headers
are non-focusable fragments inside the list.

Clarified two jargon labels: OIDC -> "Sign-in" (content header "Sign-in
(OIDC)") and Nextcloud -> "Contacts sync" (header "Contacts sync
(Nextcloud)"), distinguishing the legacy contact import from the CardDAV
collection connector. All 12 content panels preserved verbatim.

Verified: regressions 20/20 (incl. the three DAV settings walkthroughs and
the mobile settings test, now exercising the grouped nav), real-stack e2e
all pass, lint/SSR-lint/build 0 errors; before/after screenshots at 1280px
and 390px confirm the full grouped nav and the mobile master-detail flow.
2026-11-17 11:08:10 -06:00
Andrew S Erwin ceb4973359 Reset version scheme to 0.x (pre-beta); release 0.2.14
release gate / check (push) Failing after 6m46s
release / smoke (push) Successful in 10m40s
release / publish (push) Failing after 9m59s
Superbrain is not yet beta, so the release line moves from 1.2.x to 0.2.x.
0.2.14 is the same code as 1.2.14 (the Nextcloud DAV connection fix) under
the new number; future releases continue from 0.2.15. Existing 1.2.x tags
and images stay published and untouched; CHANGELOG keeps the 1.2.x entries
as history and notes the reset.

Bumps in lockstep: federated service VERSION, installer
SUPERBRAIN_IMAGE_VERSION, superbrain-mcp package version (pyproject +
__init__). Also fixes the outbound MCP client implementation string, which
still reported a stale hardcoded 1.2.7, to the release version. README
release examples updated to the new scheme.

The house upgrade flow compares version tags by string equality, so the
1.2.14 -> 0.2.14 transition deploys through the standard update.sh path
(no downgrade special-casing needed).
0.2.14
2026-11-16 21:51:02 -06:00
Andrew S Erwin 200013960b release 1.2.14: bump federated service VERSION, installer image version and mcp package version
release gate / check (push) Failing after 6m32s
release / smoke (push) Successful in 10m23s
release / publish (push) Failing after 9m56s
1.2.14
2026-11-16 21:38:51 -06:00
Andrew S Erwin a8cc95cfae CHANGELOG: 1.2.14 Nextcloud DAV connection fix entry 2026-11-16 21:38:51 -06:00
Andrew S Erwin 298cc4efd6 Fix Nextcloud DAV connections on Core: public-IP pin + username-composed prefills
Two bugs made the suggested Nextcloud shares fail on Core:

1. Reachability: nextcloud.$DOMAIN is split-horizon DNS — inside the core
   network it answers the Nextcloud container's private IP, where nothing
   listens on 443 (traefik holds TLS on the public address), and netguard
   refuses private dials anyway. Verified from the core network: the private
   route refuses connections; the public route answers PROPFIND with 401
   (correct credentials-required). The installer's rendered compose now pins
   nextcloud.$DOMAIN to EXTERNALIP via extra_hosts on the APP service — the
   exact house pattern the web service already uses for authelia. DNS inside
   the app container resolves the public address, the dial goes through
   traefik like any external client, and netguard stays fully strict (no
   guard relaxation, no trusted-host change). update.sh re-renders compose
   from the shipped lib, so running cores pick this up on upgrade.

2. Wrong endpoint: Nextcloud's DAV roots are per-user
   (/remote.php/dav/files/<username>/, /calendars/<username>/), but the
   WebDAV and CalDAV suggestion prefills handed over the bare /files/ and
   /calendars/ homes — one level above any valid endpoint. Both now compose
   the viewer's username into the URL (the URL shown is the URL saved),
   matching the CardDAV prefill.

Dry-rendered the updated compose template and validated it with docker
compose config. Regressions updated to assert the composed per-user URLs
are what gets POSTed (20/20 PASS incl. the mobile suite); real-stack e2e
all PASS; lint/SSR-lint/build clean. API.md and the local AGENTS invariant
document the pin and the composition.
2026-11-16 21:38:28 -06:00
Andrew S Erwin 35c0f5f6a3 release 1.2.13: bump federated service VERSION, installer image version and mcp package version
release gate / check (push) Failing after 7m13s
release / smoke (push) Successful in 10m42s
release / publish (push) Failing after 10m0s
1.2.13
2026-11-16 21:06:05 -06:00
Andrew S Erwin 15556239f4 CHANGELOG: 1.2.13 mobile-friendly UI entry 2026-11-16 21:06:05 -06:00
Andrew S Erwin 3fe953c14d Mobile-friendly UI: responsive shell, phone layouts, drawer navigation
The UI was desktop-first: no viewport meta (phones rendered at ~980px CSS
width, killing every breakpoint), an always-inline 240px sidebar squeezing
phone content, fixed p-6/100vh chrome, a 6-column bookmarks table, fixed
w-60/w-72 rails on collections/tags/contacts, a 12-tab settings strip that
overflowed, and w-72 kanban columns. This pass makes every screen usable on
a phone while leaving the desktop layout intact.

- layout.tsx: viewport meta (width=device-width, initial-scale=1).
- app-shell/sidebar: below lg the sidebar is an overlay drawer (closed by
  default, hamburger opens, backdrop/navigation/resize-to-desktop closes);
  at lg+ it is the static expand/collapse rail exactly as before. Separate
  mobileOpen state so closing the drawer never collapses the desktop rail.
  h-screen -> h-dvh; main p-6 -> p-3 sm:p-6.
- lib/use-media-query.ts: hydration-safe useSyncExternalStore media hook
  (server snapshot false) so surfaces swap whole layouts without duplicating
  hidden DOM that would break the suites' strict text locators.
- bookmarks: table swaps to tappable cards below sm (title/host/status/tags/
  updated + open/trash); shared trash handler; detail sheet unchanged.
- collections/tags/contacts: rails become master-detail on phones — full-width
  list first, tap into detail, Back returns; collections no longer auto-jump
  into the first item on mobile; phone padding.
- settings: tab strip scrolls horizontally (triggers shrink-0) instead of
  overflowing the page.
- kanban/collection boards: columns w-[85vw] max-w-72/64 with a peek of the
  next column; dvh heights.
- calendar: compact cells + single-letter weekday headers on phones.
- ui/dialog: max-h-[calc(100dvh-2rem)] + internal scroll + phone width guard
  so tall forms never clip; ui/tabs triggers shrink-0.
- top-bar: alerts panel fits 320px; theme/avatar collapse on the smallest
  widths; hamburger gains an accessible name.
- connector settings (MCP/WebDAV/CalDAV/CardDAV): connection rows wrap and the
  name gets a width floor — the action cluster previously squeezed the name to
  zero width on phones (a real bug the new mobile test caught).

Verification: new mobile regression suite (390x844 context) proves drawer
open/close-on-nav, bookmark cards + sheet, tags master-detail + Back,
scrollable settings tabs reaching WebDAV, kanban column fits, and zero
horizontal overflow on all eight screens; all 19 existing desktop tests still
pass (20/20). Real-stack e2e fully passing. yarn lint / SSR eslint / build:
0 errors.
2026-11-16 21:05:40 -06:00
Andrew S Erwin 9ddbd10933 release 1.2.12: bump federated service VERSION, installer image version and mcp package version
release gate / check (push) Failing after 6m26s
release / smoke (push) Successful in 10m17s
release / publish (push) Failing after 10m2s
1.2.12
2026-11-16 03:48:09 -06:00
Andrew S Erwin bbc63756d9 CHANGELOG: 1.2.12 CardDAV address books entry 2026-11-16 03:48:09 -06:00
Andrew S Erwin 4f919033d1 CardDAV address books: each server book a Collection, each contact a URL bookmark
Settings -> CardDAV connects an external CardDAV endpoint (any RFC 6352
service; on Core the deployment's NEXTCLOUD_URL adds a Nextcloud-contacts
one-click prefill, composed visibly with the username so the URL shown is
the URL saved). Each server address book materializes as its own Collection
and every contact becomes a Bookmark carrying the card's DAV .vcf URL — FN
as title, email/phone in the description as display sugar set once.

internal/carddav mirrors the WebDAV/CalDAV siblings:
- client.go — discovery accepts a single book or a home (resourcetype
  <card:addressbook/>), addressbook-query REPORT bounded at 50 books /
  2000 cards, netguard-pinned, Basic auth in the header only, redirects
  refused, folded-vCard parser;
- sync.go — RunLoop/RunOnce under a dedicated carddav-tick advisory lease;
  full ledger discipline: idempotent re-runs, etag refreshes never touch
  user-edited bookmark fields, vanished cards detach membership but keep
  the bookmark, user-deleted bookmarks are tombstones that never
  resurrect, a re-deleted Collection is re-created and re-linked, a
  truncated listing never reconciles deletions, one unreadable book does
  not abort the rest.

CardDAV dials pin to 443 only and require https — CardDAV ships
Basic-auth credentials, and the Contacts sync's review rulings (M-3/CR-01)
stand; the INTEGRATIONS_ALLOW_PRIVATE escape hatch keeps loopback fakes
working. This surface is deliberately separate from the single-config
Contacts sync (Contact rows powering contact-linking): same transport,
different product model, stated in API.md and the UI copy.

Three tables (CardDavConnection/CardDavAddressbook/CardDavItem) via
migration 022 + schema.sql. Handlers expose /api/carddav/connections CRUD
+ /test + /sync with the house credential (encrypted, masked, write-only),
version (409 on stale) and AllowConnector("carddav") plan gate on creation
AND every sync; cap 10; wired as the sixth background loop.

Settings -> CardDAV tab (web/components/carddav-settings.tsx): masked
write-only password, version on PATCH, per-row address-book list,
verbatim test/sync results, Core suggestion prefill, allowed flag drives
the plan notice.

Verification: full Go integration suite green incl. TestCardDavLifecycle
(materialize/URL+title checks, idempotency, etag refresh, detach-but-
survive, tombstone, version contract, 502+lastError, owner scoping) and
TestCardDavSuggestion; carddav unit tests on httptest fakes;
make db-converge passes; browser regressions all 19 PASS incl. the new
CardDAV walkthrough (and a deterministic Sonner-toast drain before the
sign-out assertion, which the added toasts had made racy); web lint/SSR-
lint/build clean. API.md contract section, AGENTS invariant, env docs and
the Core installer wording updated for the three-way DAV prefill.
2026-11-16 03:47:51 -06:00
Andrew S Erwin 47ade10e4a release 1.2.11: bump federated service VERSION, installer image version and mcp package version
release gate / check (push) Failing after 6m50s
release / smoke (push) Successful in 10m37s
release / publish (push) Failing after 9m56s
1.2.11
2026-11-15 09:34:51 -06:00
Andrew S Erwin 937b825daa CHANGELOG: 1.2.11 CalDAV calendars entry 2026-11-15 09:34:51 -06:00
Andrew S Erwin a8bd0ab876 CalDAV calendars: each server calendar a Collection, each event a URL bookmark
Settings -> CalDAV connects an external CalDAV endpoint (any RFC 4791
service; on Core the deployment's NEXTCLOUD_URL adds a Nextcloud-calendars
one-click prefill alongside the existing files one). Each server calendar
materializes as its own Collection and every in-window event becomes a
Bookmark carrying the event's DAV .ics URL.

internal/caldav mirrors internal/webdav:
- client.go — PROPFIND discovery (accepts a calendar home via
  calendar-home-set or a single calendar), REPORT calendar-query over a
  rolling window (last 30d .. next 180d), netguard-pinned 80/443, Basic
  auth in the header only, redirects refused, bounded (50 calendars /
  500 events);
- ics.go — RFC 5545 unfolding + first-VEVENT parse (UID/SUMMARY/DTSTART);
- sync.go — RunLoop/RunOnce under a dedicated advisory lease, reconciling
  each calendar to a Collection and each event to a bookmark via the
  CalDavEvent ledger. Same tombstone/detach discipline as WebDAV: a
  vanished OR out-of-window event detaches membership but keeps the
  bookmark; a user-deleted event never resurrects; a re-deleted collection
  is recreated and re-linked; a truncated window never reconciles
  deletions; one unreadable calendar does not abort the rest.

Three tables (CalDavConnection/CalDavCalendar/CalDavEvent) via migration 021
+ schema.sql. Handlers expose /api/caldav/connections CRUD + /test + /sync
with the house credential (encrypted, masked, write-only), version (409 on
stale), and AllowConnector("caldav") plan gate on creation AND every sync.
Wired as the fifth background loop in main.go.

Settings -> CalDAV tab (web/components/caldav-settings.tsx): masked
write-only password, version on PATCH, per-row calendar list, verbatim
test/sync results, Core suggestion prefill with the viewer's email
local-part, allowed flag drives the plan notice.

Verification: full Go integration suite green incl. four TestCalDav*
(lifecycle, collection-recreation, plan gate + suggestion) on an httptest
fake CalDAV server; make db-converge passes; browser regressions all 18
PASS incl. the new CalDAV settings walkthrough; web lint/SSR-lint/build
clean. API.md, README, .env.example, Core installer and local AGENTS
documents updated.
2026-11-15 09:34:33 -06:00
Andrew S Erwin 520fff725f release 1.2.10: bump federated service VERSION, installer image version and mcp package version
release gate / check (push) Failing after 6m32s
release / smoke (push) Successful in 10m20s
release / publish (push) Failing after 9m57s
1.2.10
2026-11-13 08:23:23 -06:00
Andrew S Erwin 4d6a970c3e CHANGELOG: 1.2.10 WebDAV file shares entry 2026-11-13 08:23:23 -06:00
Andrew S Erwin 564bdc87b6 WebDAV file shares: connect any RFC 4918 service as a Collection of per-file bookmark URLs
Settings -> WebDAV: a user connects an external WebDAV share (any service;
on Core the deployment's NEXTCLOUD_URL offers Nextcloud as a one-click
prefill - DATA, never a TIER code fork). The share materializes as a
Collection and every file becomes a Bookmark carrying the file's DAV URL,
reconciled by the WebDavItem path ledger (migration 020 + schema.sql,
db-converge proven):

- idempotent syncs; etag changes refresh the ledger only, never user-edited
  title/notes/tags; same-URL bookmarks are reused (URL-identity invariant);
- vanished files detach membership but keep the bookmark (sync never
  destroys user data); a user-deleted bookmark is a tombstone that is never
  resurrected; a user-removed membership stays removed - unless the whole
  collection was deleted, when the next sync re-links every live row;
- bounded walks (200 dirs / 1000 files / depth 12) and a truncated listing
  never reconciles deletions;
- netguard-pinned dials (80/443, no trusted exemption for user hosts),
  Basic auth in a header only, redirects refused outright;
- the webdav connector entitlement gates creation AND every sync; a
  downgrade suppresses instead of deleting;
- engine tick per notify/agent discipline (jitter, advisory lease, budget,
  log-not-fatal); /test proves PROPFIND, /sync reconciles on demand;
  passwords write-only + masked, PATCH carries version (409 on stale), cap
  10 per user.

internal/webdav (client+engine), handlers/webdav.go + routes, main.go 4th
loop, config.NextcloudSuggestion, Settings tab + webdav-settings.tsx,
API.md contract section, env docs, Core installer writes NEXTCLOUD_URL.
Client unit tests on an httptest fake DAV server; four integration tests
cover lifecycle, recreation, plan gate and suggestion; regressions drive
the Settings UI end-to-end (masked rows, prefill, connect/sync/test, no
secret echo). All suites green.
2026-11-13 08:23:09 -06:00
Andrew S Erwin 549c8108ea release 1.2.9: bump federated service VERSION, installer image version and mcp package version
release gate / check (push) Failing after 6m35s
release / smoke (push) Successful in 10m41s
release / publish (push) Failing after 10m0s
1.2.9
2026-11-11 15:05:28 -06:00
Andrew S Erwin 4914661d06 CHANGELOG: 1.2.9 page-URLs-become-bookmarks entry
release gate / check (push) Canceled after 4m20s
2026-11-11 15:01:00 -06:00
Andrew S Erwin 76a090995a Revive both browser suites and cover the URL→bookmark invariant
The regression suite had been dead since 4e421f6 removed the Next
/api/auth/login route: every run died on the first assertion. The auth
preamble now speaks the live protocol — NextAuth CSRF + credentials
callback for login, proxy Origin/Sec-Fetch-Site barriers and a fixture
mirror of Go's 415 content-type rule for the CSRF checks. Fixtures
match the current pageView projection (backlinks/links/embeds), Go's
addBookmarkId/removeBookmarkId link ops and the sidebar's link rows;
editor reads use textContent on the contenteditable.

New coverage: Link-button and bare-URL paste create a page bookmark,
re-pasting the same URL reuses the existing bookmark instead of
duplicating, and the raw Markdown text is never rewritten. e2e's pages
section drives the WYSIWYG editor properly (insertText/slash menu, no
fill() on contenteditable) and verifies paste→bookmark against the real
Go API.
2026-11-11 15:00:56 -06:00
Andrew S Erwin 3f86214cf5 Page URLs become bookmarks: paste, Link button and popover create-or-reuse a page bookmark
Product invariant: every URL a user adds to a page now becomes a bookmark
linked to that page. Bare-URL pastes and the editor Link button announce
the URL through PageEditor's new onAddUrl; the workspace reuses an
existing same-URL bookmark (normalized: scheme implied, hash dropped,
trailing slash trimmed) instead of minting duplicates, and attaches via
addBookmarkId without refetching — so an editor-triggered attach can
never reset the caret mid-typing. Pasted Markdown stays untouched; the
titled-link upgrade keeps its explicit-click rule.

Fix found by the revived suites: loadPage now repaints the uncontrolled
editor on every load, so discard/recovery no longer leaves stale draft
text on screen.
2026-11-11 15:00:48 -06:00
Andrew S Erwin 8203b8b512 CHANGELOG: 1.2.8 notifications phase 2 entry
release gate / check (push) Failing after 7m19s
2026-11-09 17:44:02 -06:00
Andrew S Erwin 66d3464f3b release 1.2.8: bump federated service VERSION, installer image version and mcp package version
release gate / check (push) Canceled after 1m21s
release / smoke (push) Successful in 10m37s
release / publish (push) Failing after 9m56s
1.2.8
2026-11-09 17:42:38 -06:00
Andrew S Erwin 3b11ac83fc Notifications phase 2 (Gitea #10): share triggers, targeted people, Signal, managed-by footer
- share_received trigger: scanner fires when a bookmark, tag or collection
  is shared with the rule owner (same dedupe discipline; sharer name and
  item title in the message)
- config.targetUserIds on rules: same-tenant targets (<=20, validated at
  write time); each targeted Notification row carries recipientId and is
  delivered through the RECIPIENT's own enabled channel of the rule's kind,
  gated by the recipient's tenant plan (no channel => suppressed, visible
  in history); history lists rows you own or were targeted on
- signal channel kind: signal-cli REST bridge (POST {restUrl}/v2/send with
  account query param and recipients array); account encrypted + masked
  like every other credential; netguard-dialed like every webhook
- 'Managed by David's Superbrain.' footer is plan DATA: entitlements
  ManagedFooter (free hosted plan only; managed_footer override key),
  appended at delivery time - paying plans, core and self-hosted never
  carry it
- catalog: signal joins standard/premium/core/selfhosted channel lists
- migration 019 + schema.sql (trigger/kind CHECKs, Notification.recipientId)
- UI: trigger option, same-tenant target picker via /api/users/search,
  signal channel fields, targeted-count badge on rules
- tests: share/target/footer/signal legs against fake webhook, fake SMTP
  and a fake signal-cli bridge; entitlements footer assertions
2026-11-09 17:42:38 -06:00
Andrew S Erwin c2e2f54fbc STRATEGY: core-AI ops caveat — per-egress model rot + missing Superpanel store on erwin
release gate / check (push) Failing after 6m59s
2026-11-09 15:09:01 -06:00
Andrew S Erwin 72ba7d71f0 CHANGELOG: per-version feature record from 1.0.0 to 1.2.7
release gate / check (push) Failing after 6m37s
2026-11-09 14:45:38 -06:00
Andrew S Erwin b6e9faccb8 release 1.2.7: bump federated service VERSION, installer image version and mcp package version
release gate / check (push) Failing after 7m31s
release / smoke (push) Successful in 10m51s
release / publish (push) Failing after 10m5s
1.2.7
2026-11-09 11:26:48 -06:00
Andrew S Erwin 9cfd6efa38 Outbound MCP connections: Notion-style client integrations (Settings -> MCP)
Superbrain dials external MCP servers as a client (official
modelcontextprotocol/go-sdk): Streamable HTTP or SSE, none/bearer/header
auth. Management surface /api/mcp/connections (CRUD + test) with the house
disciplines:

- secrets encrypted at rest (internal/crypto), masked in every response,
  write-only (mask or omission keeps the stored value); authKind none
  clears them
- mutating PATCH carries version (409 on stale); mask-only PATCH is a
  documented no-op returning the current projection
- dials netguard-pinned (public ranges, ports 80/443 outside tests), no
  redirect following, header names restricted to RFC 7230 tokens
- test endpoint: per-user limiter + shared outbound budget; 502 with an
  error class on dial/auth failure, never a silent ok; returns the tool
  list for the UI
- cap of 10 connections per user under the user lock

UI: Settings -> MCP tab (components/mcp-settings.tsx) — list with enable
switch, add/edit dialog (secret never prefilled), Test showing the live
tool list or the server's error verbatim.

Migration 018 + schema.sql; integration test drives a go-sdk fake MCP
server (incl. a Bearer-secured one) end to end. Tool USE by the assistant
is phase 2.
2026-11-09 11:26:48 -06:00
Andrew S Erwin 1ef11f32a8 release 1.2.6: bump federated service VERSION, installer image version and mcp package version
release gate / check (push) Failing after 6m49s
release / smoke (push) Successful in 10m23s
release / publish (push) Failing after 9m49s
1.2.6
2026-11-07 15:14:59 -06:00