Tags

Tags give the ability to mark specific points in history as being important
  • v0.23.0

    protected Release: wrok v0.23.0
    wrok v0.23.0 — bare-domain communities on split domains; one AI Assistance bot per owner; Cruise's new API host
    
    Added
    
    - Communities on a bare domain (@me@community.example), on split domains by default:
      - handles on the bare domain, the site on social.community.example behind one CNAME
      - the bare domain redirects /.well-known/webfinger (keeping the query) and /.well-known/nodeinfo to the site, and proves it's the community's with its _wrok-tenant TXT record
      - an apex with CNAME flattening or ALIAS can point here instead
      - set up in docs/operations.md, "Communities on a bare domain"
      (!119, #65)
    - `tenant verify` prints each host's setup (cname, flattened, address, records, txt, redirect) and what's still missing, one line each. The console API returns them as `setup` and `missing` on each host (!119, #65)
    - GET /api/v1/agents?assistant=true lists only the composer's AI Assistance choices: wrok_bot when it's enabled, and at most one bot of your own (!117)
    
    Changed
    
    - AI Assistance (`ai_config.enabled`) is one bot per owning account. Turning it on for a second bot answers 409 assistant_limit (!117)
    - Staff admins get the Person-wide daily posting cap (200) on wrok_bot, not the free quota. A free quota set above that cap applies to them too (!117)
    - Cruise's default API URL is https://cruise.bytesbrains.net/v1. Keys with no custom base URL follow it on their own (!118)
    - Composer drafts may use up to 2,048 output tokens (was 512), so reasoning models no longer run out and return empty drafts (!118)
    - Migration 0061 changes data. Owners with more than one bot that has AI Assistance on get it switched off on all of them, and turn the one they want back on. It also adds a unique index, agents_one_assistant_per_owner.
    - openapi.json: additive only. New `assistant` query parameter on GET /agents, 409 assistant_limit on PATCH /agents/{handle}, and `setup` and `missing` on ConsoleHost.
    - .env.example documents MAX_AGENTS_PER_OWNER.
    - The issue and MR templates gain a Fediverse impact checklist (!116)
  • v0.22.0

    protected Release: wrok v0.22.0
    wrok v0.22.0 — BYOK AI providers, bot drafts and wrok_bot free tier; remote follow state
    
    Added
    
    - Bring-your-own-key AI providers, starting with Cruise:
      - GET /api/v1/ai/providers, PUT and DELETE /api/v1/ai/providers/{provider}, and GET /api/v1/ai/providers/{provider}/models
      - keys are validated against the provider, encrypted at rest (AES-256-GCM) and never returned
      - writes need the brand:admin scope; `?as=` acts for a Brand
      (!113, #78)
    - Bot AI config: `ai_config` on GET /api/v1/agents and PATCH /api/v1/agents/{handle} (!113, #78)
    - Composer drafts: POST /api/v1/agents/{handle}/draft builds a draft from in_reply_to_id, quote_id, draft_text or instruction. Context respects visibility and blocks, and the result is capped at the post length (!113, #78)
    - Built-in wrok_bot free tier:
      - admins configure it at /api/v1/console/ai/default-bot
      - each user gets a daily quota (default 20) that resets at UTC midnight
      - drafts that fail are refunded
      (!113, #78)
    - Follow state for remote accounts:
      - `state` ("pending" | "accepted" | null) on account cards
      - GET /api/v1/follows/relationships for up to 40 targets at once
      - `actorUri` on AccountCard, AccountCardDetail and PersonRef as a stable key
      (!114, #79)
    
    Fixed
    
    - Re-following while a remote follow is pending re-sends the same Follow. An Accept or Reject for an earlier Follow now settles the pending follow, so follows stuck pending clear once the remote server answers (!114, #79)
    - Remote handles are the account's WebFinger handle, so split-domain servers (@alice@example.com served from social.example.com) show correctly. A handle on another domain is used only when that domain points back at the actor (!114, #79)
    - /accounts/{handle}/followers and /following page in SQL instead of rebuilding the whole list per page (!114, #79)
    
    Changed
    
    - Migration 0060: new tables ai_provider_keys, ai_default_bot_config and ai_default_bot_usage, plus ai_provider, ai_model, ai_system_prompt and ai_enabled columns on agents. Additive only.
    - New env AI_ENCRYPTION_KEY. Set a strong random secret to use AI providers and wrok_bot; unset, they answer ai_not_configured. There is no fallback to another key.
    - The handle wrok_bot is now reserved.
    - openapi.json: additive only. New AI, agent-draft, console default-bot and follow-relationships endpoints; new fields actorUri and state; new API tag "AI".
    - The `next` cursor of follower and following lists is an actor id after a remote account. Old handle cursors still work.
    - Follow answers name remote accounts by their stored (lowercase) handle.
  • v0.21.1

    protected Release: wrok v0.21.1
    wrok v0.21.1 — valid wrok placeholder PNGs, thumbnail fallback, and banner presets
    
    Fixed
    
    - Replaced the corrupt 1x1 placeholder avatar PNG with a valid 128x128 wrok monogram PNG served at GET /api/v1/placeholders/avatar.png (keeping GET /api/v1/mastodon/avatar.png as a compatibility alias) (!111, #77)
    - GET /api/v2/instance now falls back to a 600x315 wrok instance thumbnail (GET /api/v1/placeholders/thumbnail.png) instead of the square avatar when ogImageUrl and logoUrl are unset (!111, #77)
    - Data export now links served banner preset PNGs instead of dropping them, and account erasure skips preset keys (!111, #77)
    
    Added
    
    - 8 selectable wrok-palette profile banner presets (GET /api/v1/placeholders/banners, GET /api/v1/placeholders/banners/{id}.png, PUT /api/v1/accounts/{handle}/banner/preset) plus additive defaultAvatarUrl and deterministic defaultBannerUrl on public profiles (!111, #77)
    
    Changed
    
    - No database migrations; openapi.json adds the placeholder and banner-preset endpoints (additive only, backward compatible)
  • v0.21.0

    protected Release: wrok v0.21.0
    wrok v0.21.0 — community data export, wrok-console OAuth sign-in & CORS
    
    Added
    
    - Community data export: admins queue, list and download a community archive from wrok-console (!109, #60)
    - wrok-console signs in as a built-in public OAuth client, with CORS for the console origin (!108, #60)
    
    Fixed
    
    - Community exports stay ready when the success mail fails, overlapping cron runs don't build the same export twice, and an admin asking while one is queued gets that one instead of a 429 (!109)
    
    Changed
    
    - New migration 0059_community_exports; openapi.json gains the console export endpoints (additive only, nothing removed)
  • v0.20.0

    protected Release: wrok v0.20.0
    wrok v0.20.0 — account feeds, community admin API, OpenAPI auth, custom hostnames
    
    Added
    
    - Account feeds: a Brand or Agent shares several public feeds as itself (!106, #75)
    - OpenAPI declares auth, scopes, servers and tag sections (!105, #71)
    - Community admin API for wrok-console (!104, #60)
    - Create and remove Cloudflare for SaaS custom hostnames (!102, #64)
    
    Fixed
    
    - Link remote accounts to profile pages; actor ids redirect browsers (!103, #69)
    - Route Bluesky handle checks on <handle>.<tenant host> (!101, #68)
    - Answer keyless embed CORS preflights, reject bad embed keys (!100, #67)
    - Lock admins while changing a staff role, retry a dropped host's custom hostname removal, read each new account feed URL live on sync
    
    Changed
    
    - New migrations 0057_staff_admin and 0058_account_feeds; openapi.json regenerated (auth/scope/tag annotations plus new console endpoints).
  • v0.19.0

    protected Release: wrok v0.19.0
    wrok v0.19.0 — tenant custom domain verification, operator tenant CLI storage
    
    Includes:
    - Tenant custom domain DNS/TLS verification state in the registry, with an optional 503 gate for unverified hosts (REQUIRE_VERIFIED_TENANT_DOMAINS) (#62, !97)
    - Operator tenant CLI: `tenant list` shows each tenant's storage; per-target docs for adding a tenant (#39, !98)
    
    Migrations: none. API contract (openapi.json): unchanged.
    Known follow-up: #66 (tenant list usage query keeps its connection after the timeout).
  • v0.18.0

    protected Release: wrok v0.18.0
    wrok v0.18.0 — multi-tenant Cloudflare Workers, tenant registry, post menu APIs, Mastodon origin/settings, Matrix phase 0
    
    Includes:
    - Several tenants from one Cloudflare Worker with isolated KV, Queue, R2, and Hyperdrive (#58, !95)
    - Tenant registry with provisioning and hot reload (#59)
    - Mastodon API origin labels on statuses, app settings access, and article refs (!93)
    - Post menu APIs: thread mutes, boost mutes, hidden posts, viewer domain blocks (#57, !92)
    - Remote reply parent fetching for thread context (#20, !91)
    - Matrix phase 0 instance discovery (#48)
    - Branding accent default fix
    
    Migrations: 0055_sweet_kid_colt.sql, 0056_post_menu_controls.sql (additive).
    Deploy: staging verified (including two-tenant federation and R2 isolation), then production backend.
  • v0.17.3

    protected Release: wrok v0.17.3
    wrok v0.17.3 — DM thread message page limit
    
    GET /conversations/{id}/messages no longer returns 400 for limit=50.
    Values are clamped to 1–50 (DM_MESSAGE_PAGE_MAX); web and iOS can open
    threads in one request again (!88, wrok-web#46).
    
    Deploy: staging then production backend only (no migrations).
    Coordinate wrok-web / wrok-ios if those clients depended on the old 400.
  • v0.17.2

    protected Release: wrok v0.17.2
    wrok v0.17.2 — instance contact for directories and Mastodon APIs
    
    Operators can set INSTANCE_CONTACT_HANDLE (and optional INSTANCE_CONTACT_EMAIL;
    defaults to contact@wrok.in on wrok.in) so Mastodon instance endpoints, branding,
    NodeInfo, and verify_credentials expose the public contact and staff admin role
    (#56, !85–!86).
    
    Deploy: set INSTANCE_CONTACT_HANDLE on production; backend only (no migrations).
  • v0.17.1

    protected Release: wrok v0.17.1
    wrok v0.17.1 — inbound federated DMs on Workers
    
    Mastodon DMs were accepted (202) but never stored in production because the
    Cloudflare Queues consumer did not pass directMessages into Fedify. Queue and
    HTTP inbox now share buildFedifyData() (!82).
    
    Deploy: staging then production backend only (no wrok-web change).
  • v0.17.0

    protected Release: wrok v0.17.0
    Release v0.17.0
    
    Added:
    - Multi-tenant hosting from a single Node process: host-based tenant resolution, per-tenant Postgres databases with pool limits, tenant-aware migrations and usage reporting, custom-domain routing, and --tenant operator CLI flag (#36, #37, #38, !73, !74, !75).
    - Per-tenant branding configuration, public /api/v1/instance/branding endpoint, branded emails, og.svg, and Mastodon /api/v1/instance alignment (#45, !77).
    - Mastodon API: POST /api/v1/reports for reporting accounts and statuses (#43, !78).
    - Token access for creating Brands and Agents (brand:admin), listing invitations (read), and answering non-ownership invitations (brand:admin), while keeping owner removal, voting, and ownership transfers browser-only (#44, !79).
    
    Changed:
    - Custom domains: live proxy WebFinger routing check on verify and setPrimary (#24, !76).
    
    Fixed:
    - Inbound federated DMs: inspect outer Create addressing, bto/bcc, and verified custom-domain actor URIs; cache first-time remote DM senders in remote_actors; cap and dedupe addressing fan-out (#46, !80).
    
    Migration:
    - None.
  • v0.15.0

    protected Release: wrok v0.15.0
    Release v0.15.0
    
    Added:
    - Mastodon API: direct messages. POST /api/v1/statuses with visibility=direct sends to the one account mentioned (local or on another server), or replies into a conversation by in_reply_to_id; GET /api/v1/conversations returns Conversation entities and POST /api/v1/conversations/:id/read marks one read. Works for Person and Brand tokens. Group DMs and media in DMs are refused with 422 (#7, !67).
    - Brand feeds: an optional logo_url per brand in feeds-sync, set once as the brand's avatar on the scheduler tick; failures show in `pnpm admin feeds` and are retried after a day (!65).
    
    Changed:
    - Mastodon API: GET /api/v1/conversations returns the account's conversations instead of an empty list, and POST /api/v1/statuses no longer refuses visibility=direct (#7, !67).
    - Brand feeds read feeds served as text/plain (!65).
    
    Migration:
    - 0053_brand_feed_logos.sql adds four nullable columns to brand_feeds. Additive; the previous release runs against the new schema.
  • v0.14.0

    protected
    Release v0.14.0
    
    Added:
    - Mastodon API: serve GET /api/v1/statuses?id[]= (Mastodon 4.3) for batch status lookup (1..20 ids) in requested order, omitting unknown/deleted/blocked/muted statuses and preserving viewer interaction state (#42, !64).
  • v0.13.0

    protected Release: wrok v0.13.0
    Release v0.13.0
    
    Added:
    - Hydrate replyParent on TimelineItem across Home, account posts, Explore, search, bookmarks, likes, and single post lookups, respecting viewer blocks and mutes (#41, !62).
    - Add GET /api/v1/posts/by-uri and GET /api/v1/posts/by-uri/thread for local and cached remote posts, respecting viewer blocks and mutes (#41, !62).
    - Add remote media backfill service and backfill-remote-media admin CLI command for posts received before wrok#27, plus Bridgy Fed video poster support.
    
    Changed:
    - Regenerated openapi.json with TimelineItemBase, replyParent, and /api/v1/posts/by-uri endpoints.
  • v0.12.0

    protected Release: wrok v0.12.0
    Release v0.12.0
    
    Added
    - Images and videos on posts from other servers are kept (!59, closes #27).
    - Explore is served to Mastodon apps as statuses and accounts (!58).
    - Replies from other servers keep who they are addressed to, and Mastodon apps are shown it (!57).
    - GET /api/v1/accounts?id[]= so apps can name who a reply is to (!53).
    - Mastodon apps get the account kind, badge and origin label under `wrok` (!52).
    
    Fixed
    - The inbox follows ActivityPub audience rules (!55).
    - The conversations list works on postgres.js (!54).
  • v0.11.0

    protected Release: wrok v0.11.0
    Release v0.11.0
    
    Added
    - Brand feeds (!48): reserved bare brand handles and automated @<brand>_feed Agent accounts posting RSS/Atom entries.
    - Admin commands: feeds-sync, feeds, feed-pause, feed-resume, feed-claim.
    - Migration 0050: brand_feeds and brand_feed_items tables, post_channel value feed.
    
    Changed
    - Feed posts are labelled none and use per-feed limits (BRAND_FEEDS.perAccount).
    - API: channel on posts, articles and public items may now be feed.
    
    Fixed
    - Mastodon apps' profile and notification endpoints return empty answers instead of 404 (!47).
  • v0.11.1

    protected Release: wrok v0.11.1
    Release v0.11.1
    
    Changed
    - Brand feeds: a Brand can run them (!49). feeds-sync --owner now accepts a Person or a Brand (such as @wrok). Feed profiles publicly show who runs them while posts are credited to the Brand's first Person owner.
  • v0.10.0

    protected Release: wrok v0.10.0
    Release v0.10.0
    
    Custom-domain handles that can't break federation.
    
    Added
    - Alias mode for custom-domain handles (!44, wrok#6): handle only, as
      Mastodon's LOCAL_DOMAIN/WEB_DOMAIN split does. Every ActivityPub id stays
      on this server and preferredUsername stays the server handle; the domain
      hosts one WebFinger file, which the API hands out verbatim with hosting
      notes. The handle is shown (instance WebFinger subject, the actor's
      FEP-2c59 webfinger, profiles) only while that file is confirmed: checked
      on verify, on POST .../custom-domains/{id}/check, daily, and hourly while
      failing. Until then the server handle is used. Followers get an
      Update(Actor) when this changes what they are shown.
    - PATCH /api/v1/accounts/{handle}/custom-domains/{id} switches a domain
      between proxy and alias mode.
    - Local actors declare their primary custom handle as FEP-2c59 webfinger
      (!43, wrok#6).
    - Proxy tokens (!45): a proxy-mode domain's proxy sends its
      X-Wrok-Proxy-Token with X-Forwarded-Host. CustomDomain.proxyToken and
      proxyTokenMissingAt; POST .../custom-domains/{id}/proxy-token replaces it.
    - TRUSTED_PROXY and REQUIRE_PROXY_TOKEN settings (docs/operations.md).
    
    Changed
    - New custom domains default to alias mode. Domains added before this
      release keep proxy mode and behave as before.
    - Posts keep the origin they were published with: posts from proxy mode
      stay at their domain's addresses after a switch to alias.
    - The checked WebFinger file must name the actor in the self links readers
      pick: the first ActivityPub one and the last one.
    
    Security
    - X-Forwarded-Host and X-Forwarded-Proto are believed only from the
      operator's declared proxy or a proxy-mode domain's token; Cloudflare edge
      headers alone no longer count. Proxies set up before tokens keep working
      through Cloudflare for now and are flagged; set REQUIRE_PROXY_TOKEN=1 once
      they are updated.
    
    API: additive since v0.9.0 (new CustomDomain fields, optional mode on
    create, three new operations). Migrations 0048 (mode, existing rows proxy)
    and 0049 (proxy_token, backfilled per row).
  • v0.9.0

    protected Release: wrok v0.9.0
    Release v0.9.0
    
    Link embeds for articles and remote posts, remote mentions, hover cards.
    
    Added
    - Link embeds for articles and remote posts, with images served from here
      (!41, wrok#19): standalone links in articles get a card or player; remote
      posts resolve their first link off the inbox path with per-server rate
      limits; card and poster images are copied to /media (dropped when the
      copy fails, never hot-linked); YouTube plays via youtube-nocookie.
    - Hover cards: look up one account by handle, remote ones from the actor
      cache (!40, wrok#18).
    - Page authors credited on link cards via fediverse:creator, gated by
      published attributionDomains (wrok#17, wrok#16).
    - Remote mentions in posts, including Bluesky handles (wrok#15).
    - The Bluesky bridge refuses too-new accounts and says when they can
      connect (wrok-meta#36).
    
    Changed
    - Bluesky eligibleAt is computed once in the connection view.
    - refreshRemoteActor and AccountCardService.parse split into helpers.
    - An Update that leaves a remote post's first link unchanged no longer
      re-queues it.
    
    Security
    - Card and poster images no longer load from third-party sites: copied to
      this server's /media or dropped. The migration clears cached third-party
      image URLs and expires those rows.
    - Text and image fetches share one hop-checking openPublic() (SSRF guards,
      redirect re-checks, 2 MB image cap).
    
    API: strictly additive since v0.8.0 (new optional fields author,
    eligibleAt, embeds, account_too_new). Migrations 0043 to 0047.
  • v0.8.0

    protected Release: wrok v0.8.0
    Release v0.8.0
    
    Bluesky, through the Bridgy Fed bridge.
    
    Added
    - Follow Bluesky accounts (wrok#13): POST /api/v1/follows and signed-in
      search accept a Bluesky handle (@alice.bsky.social), a DID, a
      bsky.app/profile link or an at:// URI, and follow the bridged account on
      bsky.brid.gy. New 400 not_bridged when the account exists but has not
      turned on the bridge. AccountCard.bluesky gives the native handle and
      bsky.app link. Blocking bsky.brid.gy says "Bluesky is blocked on this
      server."
    - Bluesky handles on this server's domain (wrok#14): one click to appear
      on Bluesky as @<handle>.<domain>. GET/POST/DELETE
      /api/v1/bluesky/connection (connect follows the bridge bot, disconnect
      blocks it), and GET /.well-known/atproto-did on <handle>.<domain>
      redirects to Bridgy Fed. Profile.bluesky once connected. Switched on by
      BLUESKY_CONNECT_ACCOUNTS ("*" or handles); off when unset.
    
    Changed
    - New handles cannot end in _ (the Bluesky handle would end in -).
      Existing handles keep working.
    
    Fixed
    - The handle "saas" is reserved: it is a subdomain of wrok.in.
    
    Migration 0042 adds accounts.bluesky_requested_at and
    bluesky_connected_at (nullable).