SpaceMIX v0.1.0 (latest)

Checklist

for bothsince protocol 1

What to check before you publish an extension.

Go through this before you publish. Each item links to the page that explains it.

Shape

  • One folder with an entry file (index.ts or index.tsx) whose default export { manifest, View, actions } satisfies ExtensionModule, and npm run build:extensions (in apps/desktop) builds it. (Getting started)
  • The manifest goes through defineExtension, with a reverse-DNS id you own, a semver version bumped for this release, a description and a Lucide icon. (Manifest)
  • Every declared action has a handler (otherwise the tool fails with "… declares … but doesn't implement it"). (Actions)

Self-contained

  • No imports from other extension folders, no attempts to reach other extensions' storage, and no data:<ns>:* permissions (they grant nothing today). (Self-contained)
  • No new npm packages, unless the package is the point of the extension. It builds in the Studio too.
  • The view imports nothing but the modules the frame provides, and uses host.net, host.storage and host.shell instead of fetch, localStorage and links.
  • Permissions list only what the code uses. (Permissions)

The assistant

  • Every kind of record the user sees is a collection, or is readable through an action. (Giving the assistant your data)
  • Records are in collections; nothing list-shaped is kept in host.storage, which is for settings and small state up to 64 KB. (Giving the assistant your data)
  • The view reads and writes through useCollection / host, not a private store.
  • Every collection, field and action has a description, and id fields say where the id comes from. (Writing for the model)
  • The tool text is lean: the manifest's first sentence fits in about 100 characters, group-wide conventions are said once, nothing repeats the schema, and the tools average about 150 tokens each (a group near 3,000 tokens in all, more for a large integration that keeps that average). (Clear but lean)
  • Outward-facing or destructive actions set requiresApproval; pure reads set readOnly.
  • Errors say how to fix the call; results are small and true.
  • README.md lists the assistant tools the extension adds.

Routes

  • The view keeps its pages (open record, folder, tab, sub-screen) in useRoute, not useState: clicking through it changes the address, Back and Forward step through it, and a reload reopens the same page. (Getting started)
  • A route naming something that's gone (deleted record, removed folder) lands on a sensible page and fixes the address with replace, but only after the data has loaded.
  • README.md has a "Routes" section listing the routes and what each opens.
  • Search can find the extension's things: each collection has a route with {id}, or the manifest names a read-only search action whose results carry routes. That is also what lets people and the assistant add them to Projects. (Being found in Search)

Notifications and events

  • If the extension sends notifications: every kind is declared in notifications with a title and description, badge: false on kinds that aren't waiting for the person, plain one-line text, a target the view handles with useLinkTarget, and markRead once the person has seen what a badged notification was about. (Notifications and events)
  • Things people would want to react to that collections don't already report are declared in events with descriptions and payload schemas, and emitted with a one-line summary.
  • An extension that receives events claims each one before doing anything that must happen once.
  • The README lists the notification kinds, what targets mean, and the events.

Look

  • Colors come from the design tokens (bg-surface, text-muted, …), nothing hard-coded, and the view works in light and dark. (UI kit)
  • The root is h-full and scrolls inside; nothing has a fixed width, so it works at phone width.

This page as markdown · All pages as one file