Skip to content

Sixb 0.2.12

Latest

Choose a tag to compare

@quentinnippert quentinnippert released this 04 Dec 18:58

Sixb 0.2.12

Run a git branch on a copy of production's data, on your computer or in a preview next to production. Every command now ships in one package the project installs, @sixb/sixb; the Agent finds earlier conversations by meaning; and the document editors run on Sixb's own engine.

This release changes the CLI and adds database migrations: read Upgrading before you deploy. It replaces 0.2.11, which reached next only.

Highlights

Branches next to production

A git branch gets a copy of all of production's data, kept inside production's own storage, and runs its code on it. Production's data is never changed by the branch.

I want to… I type
Code on production's data sixb dev --branch
Open the preview, signed in sixb preview
Query the branch from the CLI sixb use feature/churn, then sixb objects list…
Fresh data sixb branches refresh
List, delete sixb branches, sixb branches delete
await sixb.branches.create("feature/invoices")
await sixb.branches.start("feature/invoices")
  • Console › Branches lists them, and every page of a branch's app shows a thin bar with the way back to production.
  • Kept inside the branch. Connectors, syncs, writebacks, emails, webhooks and cron schedules are off, and refuse with branch.refused.
  • Who may. Creating a branch takes can.manage(project.source): grant it only to people trusted with all of production's data.

It needs @sixb/pg (PostgreSQL 16+, with a login that may CREATEROLE) and the new branch worker. Previews also need source and @sixb/sandboxes-vercel or @sixb/sandboxes-smolvm. See Branches next to production.

One @sixb/sixb package per project

Before Now
A project installs @sixb/cli @sixb/sixb
Production roles sixb api, worker, worker-group… sixb serve <role>
Outside a project @sixb/cli with the whole framework @sixb/cli, no dependencies: sign-in and the API commands
bun remove @sixb/cli && bun add @sixb/sixb

The command stays sixb, and scripts in package.json stay as they are.

Search earlier conversations

const { conversations } = await sixb.agent.threads.search({ text: "Q3 supplier report" })

Also sixb threads search <text> and POST /api/agent-threads/search. It searches only the conversations the caller owns or was added to, and needs an embedding model in models.embedding and pgvector or sqlite-vec. The Agent searches when the user refers to work it does not see.

Document editors without TipTap

@sixb/app drops its 16 @tiptap packages. Documents, menus, tables, pasting and collaboration work as before:

Now
Open a large document ~4× faster
Cost of a typed key ~⅓ less
Someone else's edits show ~4× faster

Also in this release

  • Run a schedule now. sixb schedules run <id> runs a cron schedule as its next occurrence would. It takes can.manage(project.source).
  • Database down. An unreachable database answers 503 storage.unavailable with a plain message, instead of a 400 with PostgreSQL's own words.
  • Microsoft. A Graph notification costs one call that reads the message it names, instead of a sync of the mailbox.
  • Shared conversations. Their runs, sub-agents included, reach only the project's memory.
  • Encrypted reasoning. Conversations on GPT and Gemini no longer compact long before their limit.
  • Chat. ⌘K's link field keeps the focus, and the model chip folds to an icon on narrow screens.

Upgrading

Upgrade the packages in the table below together, and skip the 0.2.11 versions on next.

Migrate the database

Run sixb db migrate before starting the new version: PostgreSQL 116-agent-turn-vectors to 120-hosted-branch-namespaces, SQLite 113-agent-turn-vectors to 115-skipped-action-effects.

Required changes

  • Install @sixb/sixb. bun remove @sixb/cli && bun add @sixb/sixb in each project. A deploy stops early without it.
  • Start roles with sixb serve. Update Dockerfiles, systemd units and process managers: sixb serve api, sixb serve worker-group… sixb deploy already does.
  • Renamed commands. sixb token → sixb tokens, sixb service-account → sixb service-accounts, sixb history → sixb threads messages / sixb threads search, sixb init → bun create sixb. The terminal chat and sixb agent are gone: use the desktop app or sixb connect.
  • Environment. The CLI reads SIXB_API_URL and SIXB_API_TOKEN only, no longer SIXB_API_BASE_URL, SIXB_TOKEN or SIXB_API_PUBLIC_ORIGIN.
  • Third-party queues must implement the new turnIndexing lane.

Behavior to check

  • Exit codes. A wrong argument exits 2, an unexpected failure 1. 3 now means only that the API failed or the sign-in ended.
  • Pinned editor packages. @tiptap/* or prosemirror-* pinned for the editor can be removed.
  • Unknown nodes stay in the document, unshown, where the editor used to delete them.

Package versions

Version Packages
0.2.12 @sixb/core, @sixb/client, @sixb/server, @sixb/app, @sixb/ui, @sixb/cli, @sixb/agent, @sixb/orchestrator, @sixb/pg, @sixb/sqlite, @sixb/ducklake, @sixb/blob-local, @sixb/blob-s3, @sixb/blob-azure, @sixb/lake-worker, @sixb/agent-worker, @sixb/render-worker, @sixb/pipeline-worker, @sixb/projection-worker, @sixb/rules-worker, @sixb/sync-worker, @sixb/workflow-worker, @sixb/sandboxes-local, @sixb/sandboxes-vercel, @sixb/sandboxes-smolvm, @sixb/sandboxes-boxd, @sixb/deploy-ssh, create-sixb
0.2.12 (new) @sixb/sixb, @sixb/branch-worker
0.2.11 @sixb/queues-bullmq, @sixb/connector-microsoft

Every other Sixb package keeps its version.

Changes since v0.2.10