Contract changelog
Every change to the extension contract, by protocol and SDK version, starting with the protocol 1 baseline.
Every change to the contract is listed here, newest first, with the protocol and SDK version it shipped in. Entries are grouped as Added, Changed, Deprecated, Removed, Fixed and Security. Anything under Deprecated keeps working for at least 12 months from the entry's date (see Deprecation).
Unreleased
Added
-
core.accountis a reserved id: notices about someone's own account come from it (ACCOUNT_SOURCEinapps/desktop/src-tauri/src/auth.rs,registry::CORE_NAMESPACES). A server refuses to install an extension under that id, like the other ids SpaceMIX uses itself. See Manifest. -
SpaceMIX Hub is optional. With
SPACEMIX_HUB_URL=offa server sends the Hub nothing, and everything that needs it answers503{ error: "SpaceMIX Hub is turned off on this server.", code: "hub_off" }(HUB_OFFandHUB_OFF_CODEinidentity.rs).host.ai.completefails, andhost.ai.available()isfalse, when the default model is a Hub model and the Hub is off. Server surface, not extension surface, apart fromhost.ai. See With or without SpaceMIX Hub and AI. -
Accounts on a server: email and password accounts (
/api/auth/local/*), andauth: { local, hub }in/.well-known/spacemix. Server surface, not extension surface. See Accounts on a server. -
Creating is now permissioned.
server:extensions(Extensions) means create, install, update and remove extensions; the newserver:widgets(Widgets,WIDGETSinapps/desktop/src-tauri/src/auth.rs) means create and change widgets. Someone other than the owner withserver:extensionsmay install a package as a new id or their own earlier build (Registry::install_package_asinregistry.rs,POST /api/extensions/install-package), which applies at once for them, added permissions included, and gives themextension:<id>. They can't overwrite someone else's build or a Marketplace id, or take up data others left behind; the builder record survives an uninstall, so the builder can install it again and others can't take the id. Once the owner approves one, it runs for everyone with access, acting as each viewer. The account hascreateGated(/api/v1/metoo). A later Marketplace listing under the id of any build made on this server, the owner's too (sourcelocalordev, never from the registry), is held withreplacesBuildandaskson itsextension_updatesrow, for the owner alone to approve or skip; approving has to choose keep or erase of the build's data (eraseDataonPOST /api/extensions/approve), grants are reset, it never auto-updates, and an install over it answers403held_for_owner. An uninstalled build stays covered until its data is erased or it is installed again. Dev installs that are builds now go in the update check for this; their hold shows as a row, with no notice. A member's build loses every tool name clash and reserves nothing against MCP connections. See Who may create extensions and widgets. -
Extension review in the registry, experimental: every new version is reviewed before anyone can install it, and the review's screenshots are a listing's only images.
VersionInfo.review(VersionReview, withReviewState,ReviewFinding,FindingSeverityand the review'sScreenshots),Listing.pendingand every version inversionsfor the publisher and the Hub's admins only;Listing.screenshotandListingDetail.screenshotsfor everyone;PUT /v1/registry/extensions/{id}/versions/{version}/screenshots(ScreenshotOrder),GET /v1/registry/screenshots/{id}, andGET /v1/registry/noticeswithPOST /v1/registry/notices/{id}/read(RegistryNotice,RegistryNoticeKind), all inpackages/sdk/src/registry.ts. See Version review. -
@spacemix/uiGallery(thumbnails with captions that open larger) andLightbox(images one at a time over the page, with arrow keys and swipe), withGalleryImage,GalleryPropsandLightboxProps, experimental. See Gallery, Lightbox. -
Widgets can save data: each saved widget has a store, one JSON object kept on the server next to it (the core table
widget_stores, a row per widget under its id, apart from the widget's row inwidgets), shared by everyone who sees the widget, at most 256 KB (MAX_WIDGET_STORE_BYTES). Widget frame version 2 (WIDGET_FRAME_VERSIONis now2) addsoperator.store(the store, set before the widget's scripts run; a copy),spacemix.save(value, { merge }?)(replace, or put top-level keys over it, anullremoving one; resolves with the store after) andspacemix.onStore(fn)(changes from elsewhere); the frame → parent message{ type: "save", id, value, merge }, answered withresult, a new message the parent acts on (hence the bump and a security review); and the parent → frame message{ type: "store", value }andrender'sstorefield. Everything in version 1 is unchanged, and widgets made for it run as before. Anyone who may view a widget (any signed-in member) may write its store, which the server enforces: the table is written only through the records operationwidgetStoreSet(apps/desktop/src-tauri/src/widget_store.rs), which checks the object, its size, that the widget exists and is saved and that the store wasn't written in the last 200 ms (the app retries such a refusal twice, 250 ms apart, so writes from two viewers at once both land), stampsupdatedAtandupdatedBy, and writes nothing else; other writes to it are refused, and deleting a widget deletes its store. A window sends at most two writes a second per widget, folding the saves in between. In the Studio, a never-saved widget's store stays in its window until the widget is saved, and the preview of a saved widget's draft works on a copy of the real store that stays in its window and is dropped when the draft is saved or discarded, never written back. The store isn't in a widget's history, a duplicate or a widget file (whoseframeVersionis now2only for a widget that uses the store or declares settings). Experimental, withhost.widgets:Widget.settings(WidgetSetting[]:key,label,type"text","number","switch","choice"or"textarea",options,default,help), the fields of a settings form whose values are the store's top-level keys, andWidget.defaultStore(WidgetStoreValue), what the store starts as, both also onWidgetVersion,DraftFieldsandWidgetDraft;WidgetStore(value,updatedAt,updatedBy);WidgetUpdate.storefromwatch; andWidgetsApi.save(widgetId, value, { merge }?)(bridgewidgets.save, inWIDGETS_METHODSandWIDGETS_VIEW_METHODS): withwidgetsfor any saved widget, with onlywidgets:viewonly for a widget the extension's frame is watching at the time (else<Name> can change a widget's data only while it shows that widget.; a guard against background writes, not a boundary, since such an extension can watch any widget, so grantingwidgets:viewtrusts it with the widgets' data), and never changing the widget itself; thewidgets:viewconsent now reads "See the team's widgets, show them, and change the data of widgets it shows".WidgetFrame(packages/sdk/src/react.ts) watches the store itself and answerssave; on a host from before the store it renders with{}after waiting 2 seconds. The assistant'swidget_createandwidget_updatetakesettingsanddefaultStore,widget_getreturns the store, settings and defaults each marked as data, never instructions, andwidget_store_setchanges it with the person's approval. The method lists and theDraftFieldsandWidgetDraftunions grew, which the contract guard counts as changed values, as withpurgebelow. See The widget's store. -
Widget web sources, experimental: a
WidgetSourcewithtoolWEB_SOURCE_TOOL("web-get", a marker no extension tool name can take, since those always contain an_) andargs: { url }brings public web data into a widget without giving its frame any network (the frame, its CSP andWIDGET_FRAME_VERSIONare unchanged). When someone views the widget the server fetches the fixed URL anonymously:GET,https:on the default port, no user name or password, whitespace trimmed from both ends and none inside, no control or format characters, at most 2,048 characters, no headers or cookies from the widget, at most 3 redirects with every hop checked again, only public addresses (the host is resolved and the connection pinned to the checked addresses; a private or unresolvable host gets one sentence,<host> can't be reached from web sources.), 10 seconds, 1 MB; a2xxJSON answer is the parsed JSON, a text answer the string, anything else an error naming the host. URLs are stored, approved, matched and fetched in one normalized form (new URL(url).hrefwithout the fragment). The server fetches only URLs that a widget in its widget store declares, answers are shared for 30 seconds per URL, and each person has at most 300 requests a minute (every request counts, first) and at most 60 fetches a minute that miss that cache; a refusal for either limit (429) isn't logged. An international host is called out in the approval as using non-ASCII letters. The person approves, in full, every URL awidget_createorwidget_updatecall adds or changes before anything fetches it, and web results go back to the model marked as untrusted.spacemix.callrefusesweb-get, and the assistant's widget tools allow at most 5 web sources per widget. Every hop and refusal is logged in the egress log undercore.widgets("Widgets"), whose network switch turns them off.widgetWebHosts(sources)lists the hostnames, for a "Web" tag.POST /api/widgets/fetch(IPCwidgets_fetch,apps/desktop/src-tauri/src/widget_net.rs). See Web sources. -
Delete extension: one action, on an extension's page in Extensions (next to Uninstall, broken or not), in My extensions, and in the Studio's Settings for a built project (one never built gets Delete project). Its dialog (
apps/desktop/src/shell/store/DeleteExtensionDialog.tsx), confirmed by typing the name, offers only what applies: Uninstall from this server (on; for someone withserver:extensionsand access to it, only for an extension installed with sourcelocalordevthat was never installed from the registry or the Marketplace, and nevercore.*orai.spacemix.chat), Erase its data on this server (off; the server's owner only, and only together with the uninstall; anyone else getsOnly the server's owner can erase an extension's data.) and Delete my Studio project (on; the person's own Studio projects for that id, also with nothing installed). Erasing takes its collection tables,host.storageand kv rows, the notifications it sent, its events and claims, its entry inshell/autoApproveExtensionsand, last,extension:<id>grants. Without it the data stays, as after an uninstall. The egress log, its network and media switches, files on disk and what chats, projects and widgets say about it always stay. The id stays on the removed list, so a dev build doesn't reinstall itself; installing it from the store or a file brings it back. An erase that fails partway is finished by the owner deleting again with erase ticked, or at the next start. Tauriextensions_delete,POST /api/extensions/delete{ id, eraseData? }(absent meansfalse;Registry::deleteinapps/desktop/src-tauri/src/registry.rs);deleteExtension(id, { uninstall, eraseData, studioProject }),isOwnBuildandstudioProjectsForinapps/desktop/src/lib/extensions.ts; not in/api/v1. Not extension surface; experimental. See Deleting your own build. -
What extensions send out of the server, for its owners: the requests the server makes for an extension (
host.netandhost.git) are rows of the egress log (the core tableegress_log,apps/desktop/src-tauri/src/egress.rs): eachhost.netrequest and redirect hop, each git connection (clone, fetch, a read's download; methodgit), and each attempt the server refused (not-declared,network-off,unpaid), with the extension, host, method, status, bytes out (URL path and query, headers and body;0for git) and in, whether it was a preview (a Studio preview or any client-suppliedpreview), and the time; never the path, query, headers, bodies or the person. Kept 30 days and at most 10,000 rows per extension; per-host daily totals (egress_daily), which the summary reads, are kept the full 30 days whatever the cap drops. Which extension a request is for is named by the app's window, so a person calling the routes directly can name any; the app's own git calls aren't logged, and git'sbytesInis approximate. Refusals made in the window, MCP calls,host.aiprompts, opened links and what leaves the frame (images, media, nested pages, WebRTC) are not logged. Read withserver:settingsthroughGET /api/egress/summary?days=(per hostrequests,refused,previewRequests,bytesOut,bytesIn,lastAt) andGET /api/egress/log?extension=&limit=&before=(IPCegress_call). A per-extension network switch for everyone on the server, the kv keyshell/networkBlockedExtensions, guarded like media access (anyone may turn it off, turning it back on needsserver:settings; a list that can't be read counts as off): while it is off the server refuseshost.netrequests andhost.gitaddandfetchbefore connecting and reads don't download, and the window refusesnet.fetchand MCP calls (the agent's too, on every call), through the existing "not allowed to reach" errors (... : network access is turned off for this extension on this server.); nothing else about the extension changes.host.gitcalls from the bridge now name the extension (extension,previewin the git request).POST /api/extensions/revoke-host({ id, host }, IPCextensions_revoke_host, the same access asgrant-host) takes back a host allowed for anet:*extension; like a person's "no", it is enforced only in the window, since the server letsnet:*reach any host. Client:apps/desktop/src/lib/egress.ts;apps/desktop/src/lib/dataRisks.tslists, from a manifest, how data could leave through it (levelsandbox,declaredoropen, andsendsData). People read the log and turn the switch in Settings → Extensions → Data leaving; the store shows an extension's level and risks (Data and risks in its Technical details, a line under its heading in Extensions and the Marketplace) and confirms before installing one withsendsData. Not new extension surface; experimental. See What the server logs, and the network switch, What owners see before installing and, for git while the network is off, Git. WebRTC from any extension frame, not only widgets, is now listed in Known gaps in protocol 1. -
@spacemix/uigrew into a design system, experimental: layout (Page,Section,Container,Stack,HStack,VStack,Grid,Toolbar,Divider,Spacer,ScrollArea,SplitView,ListDetail,SidebarLayout,useSidebarLayout,SidePanel,Panel,Inset,AspectRatio,Center,VisuallyHidden), actions (IconButton,ButtonGroup,SegmentedControl,Toggle,CopyButton,Link), forms (Field,useField,Label,Textarea,Checkbox,CheckboxGroup,RadioGroup,Radio,Switch,Slider,NumberInput,SearchField,PasswordInput,TagInput,FileDrop,PinInput,ColorSwatchPicker,Fieldset,FormSection,FormActions), pickers (Select,MultiSelect,Combobox,TimePicker,Calendar,DatePicker,DateRangePicker), data display (Badge,Tag,StatusDot,Avatar,AvatarGroup,Card,Stat,DescriptionList,Table,List,ListItem,Tree,Timeline,CodeBlock,InlineCode,Progress,ProgressCircle,Meter,Skeleton,Spinner,Highlight,RelativeTime,FileSize,NumberFormat,BoardandformatRelativeTime,formatFileSize,formatNumber), charts (Sparkline,BarChart,LineChart,DonutChart,Heatmap,Gauge,ChartLegend,ChartTooltip), navigation (Tabs,Breadcrumbs,Pagination,paginationRange,NavList,Stepper,Accordion,Disclosure,BackLink,AnchorNav), feedback (Alert,Callout,Banner,toast,useToast,Toaster,ToastProvider,ErrorState,LoadingState,NoResults,PermissionDenied,OfflineState,InlineMessage,ConfirmInline), overlays (Tooltip,Popover,HoverCard,DropdownMenu,Dialog,Drawer,CommandMenu,CommandDialog) and the floating helpers (useFloating,computePosition,Portal,PortalContainer,useDismiss), withSize,Tone,useControllableStateand every props type, inpackages/ui/src/(layout.tsx,components.tsx,forms.tsx,field.ts,popovers.tsx,floating.ts,host.ts,data.tsx,charts.tsx,navigation.tsx,feedback.tsx,types.ts,controllable.ts).Buttongainedsize,loading,leftIcon,rightIcon,fullWidthand the"danger"variant (ButtonVariant, newly exported: stable, and may gain members);Inputthesizescale (a number is still the native width),invalid,leftIcon,rightIcon,leftAddon,rightAddonandhtmlSize;PageHeadertakes nodes fortitleandsubtitleand abelowslot;EmptyStatetakes nodes, an optionalbody,size,className,refand the other<div>props;KbdandMarkdowntakeclassName(Markdownwraps its output in a<div>only when given one);ConfirmDialogtakes a node astitle. The new props are experimental; what these seven did before stays stable. On an older host the new exports areundefined: checktypeof toast === "function"and the like first. Fourteen of the names are alsolucide-reacticons (Badge,BarChart,Calendar,Container,Gauge,Grid,LineChart,Link,List,Radio,Section,Table,Tag,Timeline); import the icons as*Icon. See UI kit and its component pages. -
Design tokens for status and charts:
--color-success,--color-warning,--color-infoand their-softtints,--color-danger-soft, the series colors--color-c1to--color-c6and--color-scrim(with--op-success,--op-success-soft,--op-warning,--op-warning-soft,--op-info,--op-info-soft,--op-danger-soft,--op-c1to--op-c6and--op-scrim) inpackages/ui/src/tokens.css. Status colors are for text, icons and dots; fill with the-softtint, not the solid. Also--color-sunk,--color-control-border,--color-accent-hoverand--color-accent-text(with--op-sunk,--op-control-border,--op-accent-hoverand--op-accent-text, set for light and dark): a recessed fill belowsurface(segmented-control tracks, chips), the edge of a text field or secondary button (3:1 or better onsurfaceandbg), the accent a step darker for a hovered accent fill (accent-fgon it 4.5:1 or better), and accent text onaccent-soft(4.5:1 or better onaccent-softoverbg,surfaceandelevated, in both themes).--op-shadow(the shadow color as an RGB triplet,70 50 30in light and2 6 12in dark) and--op-shadow-strength(1and1.7, a multiplier for shadow alphas), which--shadow-popis now built from. And--font-display(font-display), the display serif Newsreader then Georgia and the system serif, for page and view titles only (body text, controls and tables stay on--font-sans), with--font-display--font-variation-settings("opsz" 72, Newsreader's display cut), whichfont-displayapplies with it; the frame loads Newsreader. See Design tokens. -
Every extension frame mounts a fallback
Toaster(apps/desktop/frame/main.tsx), sotoast()shows without setup; aToasterorToastProviderthe view mounts itself renders instead while it is mounted. Each frame therefore has an empty live region named "Notifications". See Toasts in an extension frame. -
The widget frame's kit grew, within
WIDGET_FRAME_VERSION1: the helpersoperator.ui.line,gauge,heatmap,meter,avatarandduration; the classesop-card,op-toolbar,op-clock,op-countdown,op-avatar,op-avatars,op-timeline,op-kv,op-chips,op-chip,op-segmented,op-field,op-select,op-textarea,op-checkbox,op-radio,op-switch,op-meter,op-gauge,op-line,op-line-x,op-heatmap,op-spinnerandop-callout; the modifiers.info(onop-dot,op-badge,op-progress,op-callout),.ok,.warnand.dangeronop-progress,op-button.danger,.smand.icon,op-card.flat,op-clock.smand.lg,op-avatar.smand.lg,op-kv.left,op-legend.rowandop-callout.accent,.ok,.warn,.danger; the hooksaria-pressed="true"onop-segmentedandop-chipanddata-themeon the root (:root[data-theme="dark"]matches in dark mode); and the variables--op-success,--op-warning,--op-infoand the-softtints (also of--op-danger),--colsand--level. The new helpers take a color only asvar(--op-…)or a hex color. In code:apps/desktop/src-tauri/src/widget_frame.html, and the widget session's prompt inapps/desktop/src/lib/widgetTools.ts. Seeoperatorin the widget. -
THEME_VARS(bothWidgetFrames,packages/sdk/src/react.tsandapps/desktop/src/shell/widgets/WidgetFrame.tsx) also sends--op-danger-soft,--op-success,--op-success-soft,--op-warning,--op-warning-soft,--op-infoand--op-info-softinto the widget frame; the frame has its own values for a parent that doesn't send them. See Messages. -
Marketplace categories:
ExtensionManifest.categories(up to 3ExtensionCategoryids, no duplicates), withEXTENSION_CATEGORIES(the twelve ids and their labels, in the Marketplace's order), theExtensionCategoryunion andMAX_EXTENSION_CATEGORIES(3) inpackages/sdk/src/index.ts.defineExtensionand install (check_local) refuse a value that isn't a list of strings, a duplicate or more than 3, and let ids they don't know through so the list can grow; publish (check_package) and the Studio's build also refuse an unknown id. A missing or empty list counts asother. Experimental, with the Marketplace:Listing.categories(always sent by SpaceMIX Hub,[]when none; optional for older Hubs), the search parameterscategory(otheralso finds the uncategorized) andprice(freeorpaid), andGET /v1/registry/categories(RegistryCategoriesinpackages/sdk/src/registry.ts: a count per category, zeros included, plusfreeandpaid). See Categories and Registry. -
The paid Marketplace in SpaceMIX Hub, experimental:
Listing.price(ListingPrice, absent when free;forSale: falsewhile the seller can't take payments) on search and listing responses,VersionInfo.paidandUpdateInfo.paid(a version published while the listing had a price, which it still has), and the types of the/v1/market/*routes (PriceModel,PriceInterval,PriceInput,MarketConfig,SellerStatus,DuplicatePurchase,CheckoutRequest,Purchase,EntitlementStatus,ServerEntitlement,ServerEntitlements) inpackages/sdk/src/registry.ts. Money is in minor units, times in Unix seconds. Downloading a paid version answers402payment_requiredwithlistingIdunless the server signs the request with its key and holds an entitlement for that server, or the listing's publisher is on that server (ServerEntitlement.kindpublisher). Versions published while a listing was free stay free (a price set before any server but the publisher's installed the listing makes every version paid; clearing it makes every version free for good, so a later price only covers versions published from then on, or all of them on a listing still unshared), free listings download as before, and paid listings are never inGET /v1/registry/defaults. The registry's own 404s now carrycode: "not_found"orcode: "taken_down". A paid extension a server isn't entitled to (never bought there, or lapsed past the 7-day grace period) is turned off on that server whatever installed it, the licence following the id (apps/desktop/src-tauri/src/market.rs,registry.rs): it gets no frame, navigation, tools, Search or routes, and the server refuses itshost.netrequests,host.events.emitandclaim,host.notifications.send,host.storage.set, collectioncreate,updateanddelete, andhost.fschanges with<Name> is turned off on this server until it's paid for.; reads and data are kept, and it runs again once renewed. Widget sources reading it get that sentence as theirerror,project_getmarks its itemsturnedOff: true, and paid updates a server hasn't bought are held withPendingUpdate.paymentRequired: true. Finding and getting extensions moved from each server's Extensions page (no more Browse) to the Marketplace tab of the SpaceMIX Hub view (apps/desktop/src/shell/market/,src/lib/market.ts), which also has Purchases and Sell; an extension's page in Extensions no longer has Publish (it is in the Studio). See Marketplace, Turned off until it's paid for and Registry. -
ViewApi.setFullscreen(on)andViewApi.fullscreen()(bridgeview.setFullscreen, no permission), experimental: a view asks the app to hide its navigation while it is showing, so it has the whole window's width;falsegives it back. Held per frame: another view brings the navigation back, coming back re-applies it unless the user ended it, a reload drops it. On desktop widths the app keeps a slim bar of its own above the view with the extension's name and a Show navigation button; Escape on the app and the window's left edge lead out too. Once the user ends it, the frame's requests are ignored until they leave the view (or the extension is reloaded from the store or updated), and coming back doesn't bring it back by itself: the frame asks again on a user action. The frame isn't told. Older hosts don't have the method, so guard withtypeof host.view.setFullscreen === "function". Experimental because the shell's ways out may still change. See Full screen. -
MCP connections: remote MCP servers (Streamable HTTP) a whole SpaceMIX server connects to, added in Settings → MCP connections by people with
server:settings, with sign-in by fixed headers or OAuth 2.1 (discovery, dynamic client registration or a manual client, PKCE, refresh). The server makes every request and keeps every secret; clients get header names and whether OAuth is connected, and people withoutserver:settingsonly the address's origin. Their tools are<connection id>_<tool>, offered to the app's chats (Claude Code chats included), the server-side assistant andGET/POST /api/v1/tools(kind: "mcp",connectionId, run on the server, arguments not checked against the schema), never tohost.toolsor widgets, and never under an installed extension's namespace. New people-side permissionsmcp:*andmcp:<id>; the seeded Members group getsmcp:*, once on existing servers. A tool is read-only only when an admin ticked it (readOnlyTools); every other one asks first in the chat unless the connection is switched to run without asking in Settings → Extensions → Approvals (kvshell/autoApproveMcp,server:settingsonly), and needstools:writethrough the API. A hosted server (SPACEMIX_HOSTED, else Railway's variables) refuses private and local addresses unlessSPACEMIX_MCP_ALLOW_PRIVATE=1. In code:apps/desktop/src-tauri/src/mcp.rs,mcp_oauth.rs,tools.rs,auth.rs, andsrc/lib/mcpConnections.ts,src/lib/tools.ts(connectionTools),src/shell/McpSettings.tsx. Not extension surface; experimental. See MCP connections. -
SpaceMIX Hub models and prepaid credit: models SpaceMIX runs itself, offered to every server in Settings → Models next to its own connected models, with a name, a description and a price in euros per 1M input and output tokens, and paid from the server's SpaceMIX Hub credit, one balance per server shared by the team. A Hub model is a connected model that names only
hubModel(apps/desktop/src/lib/models.ts,lib/ai.ts); the server runs it through SpaceMIX Hub with a request signed whole by its key (spacemix_auth::server::hub_request_input, purposeshub-modelsandcredit), for the app's chats and the SpaceMIX API's assistant, and clients never see the upstream. The credit is topped up through Stripe Checkout (€5 to €1000), with optional auto-recharge from the saved card and an optional monthly cap; at zero, or at the cap, Hub models stop with402(credit_exhausted,monthly_cap_reached) and other models keep working. Each request reserves its most possible cost, at most 8 run per server, and the Hub keeps token counts and cost, never prompts or replies. New people-side permissionserver:hubModels(use Hub models, spend the credit, see it read-only); the seeded Members group gets it, once on existing servers. Topping up and the credit's settings takeserver:settings. The server relaysGET /api/hub-models,GET /api/credit,GET /api/credit/ledger,PATCH /api/credit/settings,POST /api/credit/checkoutandPOST /api/credit/portal(hub_callover IPC). Hub admins keep the catalogue and adjust credit. In code:apps/desktop/src-tauri/src/hub_models.rs,ai.rs,assistant.rs,auth.rs;src/lib/hubModels.ts,src/shell/HubModelsSettings.tsx. Not extension surface; experimental, and untested against live Stripe. See SpaceMIX Hub models and credit. -
Hosted-server billing in SpaceMIX Hub: servers the Hub creates on SpaceMIX Server Cloud need a card on the account (Stripe Checkout in setup mode, nothing charged), get a free trial on the account's first server (7 days by default; one per account and per card), and then pay by the hour from the server's SpaceMIX Hub credit wallet, the same one its Hub models use, with auto-recharge from the owner's card. An unpaid server is stopped after a grace period and deleted after a retention period, with in-app notices at each step. On such a server the credit ledger has a new kind
hosting, and changing the credit's settings or opening Manage card from Settings → Models is refused with409managed_in_hub; top-ups there are one-off payments. In code:apps/desktop/src/shell/HubModelsSettings.tsx. Not extension surface; experimental, and untested against live Stripe and a live central. See On a server SpaceMIX Hub hosts. -
Owners delete their own hosted servers: Delete server… in a hosted server's card menu in SpaceMIX Hub → Servers. An account that owes for hosting (a server unpaid or stopped, or a wallet below €0, deleted servers' included) can't create a billed server (
402balance_owed) until it pays; SpaceMIX Hub → Servers lists what's owed with Pay, and a deleted server's debt is paid at the exact amount, €0.50 at least. Hub admins can clear a deleted server's debt. Once a delete starts, the server's wallet makes no auto-recharges and its Hub model requests are refused with403server_deleting. Not extension surface; experimental, and untested against live Stripe and a live central. See On a server SpaceMIX Hub hosts. -
One billing page per SpaceMIX ID account in SpaceMIX Hub, experimental: SpaceMIX Hub → Billing (
#/hub/billing) has the account's one card, which pays for every wallet the account pays for (hosted servers' hours, Hub models, auto-recharge), each wallet's balance, this month's spend, limit and auto-recharge, handing a wallet to another account by email (accept, then confirm), and every transaction with its Stripe receipt and as CSV; Marketplace purchases are listed but stay paid to their developers. Each wallet has a payer: a hosted server's creator, or, for a server you run yourself, its owner once they choose Pay for this server from your Hub account in Settings → Models (the server'sPOST /api/credit/payer, owner only, which asks the Hub with the owner's own SpaceMIX ID;403not_connectedwhen that account never signed in to the server) and accept it in SpaceMIX Hub. While a wallet has a payer,GET /api/creditanswersmanagedInHub: true, Settings → Models shows the credit read-only, and the server's own settings and card portal are refused with409managed_in_hub(Billing for this server is managed in SpaceMIX Hub.). The Hub now prices hosted hours itself, from its own rates. In code:apps/desktop/src-tauri/src/hub_models.rs,server.rs;apps/desktop/src/lib/hubModels.ts,src/shell/HubModelsSettings.tsx. Server and Hub surface, not part of the extension contract. See Paying from a SpaceMIX Hub account. -
host.aion a SpaceMIX Hub model: when the person's default model is a SpaceMIX Hub model,host.ai.completeruns through SpaceMIX Hub and is billed to the server's credit. It needsserver:hubModels; without it,host.ai.available()answersfalseandcompleterejects withYou don't have permission to use SpaceMIX Hub models on this server. Ask someone who manages members.(usableModelinapps/desktop/src/lib/extensionHost.ts). When the credit is used up or the monthly cap is reached, it rejects with the server's sentences fromapps/desktop/src-tauri/src/hub_models.rs. See AI and Errors. -
The SpaceMIX API: a server's public HTTP API under
/api/v1, for scripts and other services, with API keys made in Settings → API (opk_<id>_<secret>, sent asAuthorization: Bearer; only a SHA-256 is kept). A key acts as the account that made it, limited to eight scopes (tools,assistant,eventsandnotifications, each:readand:write). Routes:GET me;GET toolsandPOST tools/<name>(collection tools run on the server, actions and MCP tools are relayed to one of the person's open SpaceMIX clients); the assistant on the server (assistant/chats,assistant/messages,?stream=1as NDJSON), in the same chats as the app;events/emit,events/listandGET events/stream(server-sent events);GET notificationsandnotifications/send. In code:apps/desktop/src-tauri/src/api.rs,api_keys.rs,tools.rs,tool_runs.rs,assistant.rs, andsrc/lib/toolRuns.ts, which runs relayed calls in the client. Not extension surface; experimental. See SpaceMIX API. -
The SpaceMIX API's on/off switch: the API is off on a new server, and while it is off every
/api/v1request,GET meincluded, is answered403The SpaceMIX API is switched off on this server.before its key is looked at. Switching off also ends openevents/streamconnections and stops running assistant turns. Keys survive and can still be made and revoked. The switch is in Settings → API (the kv keyshell/apiEnabled, on only for JSONtrue;enabledinapps/desktop/src-tauri/src/api.rs). See Switching the API on. -
ProjectItem(inpackages/sdk/src/index.ts): one thing inside an extension that a project links to, byextension,route,title,subtitle,iconand, for a collection's record,collectionandrecordId. Projects are a person's folders of chats and such items; a person adds items from Search results, so a collectionrouteor asearchaction makes an extension's things addable. The assistant getsproject_*tools (project_add_itemlinks a collection record or a route it names), and a project chat's prompt lists its linked items with the<namespace>_<collection>_gettool that reads each record. An extension tool with the exact name of one of SpaceMIX's own tools is now left out of chats, with a notice. Experimental; nohost.projectsAPI yet. See Projects, Projects tools and Tool names. -
WIDGET_FRAME_VERSION(1, inpackages/sdk/src/widgets.ts) versions the widget frame that saved widgets run in, and the frame reports it asoperator.version. Within version 1 the globaloperator, its members, theoperator.uihelpers with their parameters and options, theop-*classes and modifiers, the attribute hooks, the--op-*variables and the messages to the frame only grow. See The widget contract. -
The contract guard reads the widget frame into a new
widgetFramesection of the snapshot (andversions.widgetFrame): the frame document, its CSP, the iframe's sandbox and referrer policy,THEME_VARSand the grid constants' values. A removal or change there is refused unlessWIDGET_FRAME_VERSIONmoved; one toWIDGET_TOKEN_REor the grid constants, which are SDK exports too, also needsPROTOCOL_VERSIONor the SDK's breaking line to move; a new message from the frame to the parent counts as a change. A CSP or sandbox change that only tightens is recorded withnpm run docs:update -- --csp-tightened. -
The guard checks that the frame's
spacemix.versionisWIDGET_FRAME_VERSION, that the widget session's prompt names only what the frame has, and that the app's ownWidgetFramehosts the frame like the SDK's. -
The reference now also names the chart classes (
op-bars,op-hbars,op-hbar,op-spark,op-donut,op-legend), the modifiers and the--min,--hand--colorproperties, which the frame already had. -
The widget data cache: what a widget's sources return is kept per viewer, in memory and in the core, and shown without fetching until it is
Widget.refreshSecondsold.WidgetsApi.purge(bridgewidgets.purge, inWIDGETS_METHODSandWIDGETS_VIEW_METHODS) drops it;WidgetUpdate.purgedtells watchers to forget the data shown;WidgetStatus.fetchingis set while the sources run. The method lists grew, which the contract guard counts as a changed value; the snapshot was rewritten for it. See The data cache. -
ExtensionManifest.search(SearchDefinition,SearchInput,SearchResult) andCollectionDefinition.route: the app's Search finds things inside extensions, through a read-only search action or the collections, and opens them at their route.defineExtensionchecks both. See Being found in Search. -
Design token
--op-window-border: the edge of a window floating over the app. See UI. -
WidgetSource.extension(WidgetExtension),WidgetStatus.missingandWidgetFrame'sstatusprop: a widget whose extension was uninstalled says so, and which one. See Widget reference. -
The
recordssubscription channel ({ name }, needs nothing): one{ kind, id, record? }per created, updated or deleted record of the extension's own collection, ornullafter a resync.useCollectionuses it. See Frame protocol. -
ListingPatch.name: a publisher can retitle a listing in the registry without publishing a new version; an empty string goes back to the manifest's name. See Registry.
Changed
-
The default
SPACEMIX_HUB_URLis nowhttps://spacemix.ai(it washttp://127.0.0.1:1430). A server asks it nothing until someone uses a Hub feature;offmeans none. SeeSPACEMIX_HUB_URL. -
A server's background Hub checks run once it uses the Hub. The update check, the install report, the purchase check and looking up a file's id before installing it run only on a server that uses the Hub (
Registry::uses_hubinregistry.rs,usesHubonGET /api/extensions/registry-status). Before that the server doesn't ask on its own: opening Extensions → Updates doesn't check, Check now does; a member's build isn't refused over a listing it never looked up; and a paid extension installed from a file runs unchecked, and can turn off within 10 minutes of first use. A licensed extension still expires with the Hub off, and renewing needs the Hub back on. See Registry, Marketplace and Permissions. -
Members' builds are private until the owner approves them. A member's build runs only for people named on its exact id, its builder among them, until the owner approves it for the team (
POST /api/extensions/team-approval,InstalledRecord.teamApproved).extension:*doesn't reach it, and neither does being the owner. Its changes aren't sent to others, its package can't be read by them, only the owner can name others on it or allow it a new host, a new id can't be one others already hold, and the rule stays on an uninstalled build while its builder is on record. Approving, revoking and a rebuild with a new hash each clear itsnetGrantsandshell/autoApproveExtensions, and revoking and rebuilding clear the approval; the owner is told on each install and rebuild; removing the person's account turns their builds off; at most 10 per person. See How far a member's build reaches. -
The security review of the widget frame's
savemessage, added in frame 2, found that a frame could move what one viewer may read into a store everyone sees. So once any frame in a window has held data from a non-web tool, through a source orspacemix.call, every save from a frame there needs that viewer's OK for the saving widget's code, forspacemix.saveandhost.widgets.savealike, since frames in one window can pass data to each other.savestays inWIDGETS_VIEW_METHODS, as the one method there that writes, and nothing else that writes may join it. Saves are also limited to 120 a minute per person. See The viewer's OK. -
host.netreaches only public addresses, checked on every redirect and pinned to what was checked, for previews and members' builds always and for every extension on a hosted server; only the owner can exempt a host (/api/extensions/net-exemptions). Refusals are logged asprivate-address.host.gitapplies the same rule: no redirects, and over http(s) the checked addresses are pinned on git 2.37 or later; over ssh it is only checked first, andgit://is refused. See Public addresses only. -
A package's
hashcovers its canonical manifest too, with every field length-prefixed, underPACKAGE_FORMAT2, so a Hub signature covers what a package asks for as well as its code. See The hash. -
The
dev.operator.id prefix from before the rename is refused on servers and on the Hub, for everyone. -
The session cookie is
SecurewhenSPACEMIX_PUBLIC_URLis https. AnyOPERATOR_*setting still present is logged at startup, andOPERATOR_HOSTEDstops the start, since ignoring it would turn off what it guards. -
npm run docs:updatenow takes only a major SDK version for a breaking change, as the contract says; 0.x minors no longer count. -
Breaking, approved by the owner: the product is now SpaceMIX, with no aliases for the old names. This breaks the extension and widget contracts at once, so
WIDGET_FRAME_VERSIONis3,@spacemix/sdkis0.3.0and@spacemix/uiis0.2.0. A widget's HTML and an extension's source must use the new names, and a package has to be rebuilt against them:- Packages:
@operator/sdk,@operator/uiand their subpaths are@spacemix/sdkand@spacemix/ui, as host modules too.PACKAGE_FORMATis2, so install, publish and download refuse packages from before the rename, with a message that says to rebuild. - The widget frame's global:
operator,operator.ui,operator.calland the rest arespacemix,spacemix.ui,spacemix.calland so on. Theop-*classes and--op-*variables stay. Widget files are exported with the currentframeVersion, and importing a file with aframeVersionbelow3is refused with a message that it's from before the rename. Saved widgets aren't checked; a one-off migration rewrites them. - Types and constants:
OperatorHostisSpacemixHost,OperatorEventisSpacemixEvent,OPERATOR_AUTHORisSPACEMIX_AUTHOR(value"spacemix"). - Extension ids:
dev.operator.*isai.spacemix.*, the reserved prefix included. The owner of the core's own tables and namespaces,operator, isspacemix. - Frames: the scheme and host
operator-widgetarespacemix-widget, the message sourceoperator-pageisspacemix-page,operator-widget-frameisspacemix-widget-frame. - Server:
/.well-known/operatoris/.well-known/spacemix;OPERATOR_*andVITE_OPERATOR_*areSPACEMIX_*andVITE_SPACEMIX_*; the headersOperator-Server-Key,-Time,-Nonceand-SignatureareSpacemix-Server-*; the MCP serveroperatorthat agents get isspacemix, so its tools aremcp__spacemix__*; the signing contextsoperator-server-*/v1andoperator-extension-packagearespacemix-server-*/v1andspacemix-extension-package, so signatures made before this change don't verify. - Storage: the database file
operator.dbisspacemix.db; the desktop app's data folder and keychain servicedev.operator.appareai.spacemix.app; the Hub's default data folder.operator-hubis.spacemix-hub. A one-off migration copies existing data to the new names and leaves the old files as the backup. Of the keychain it copies only the database key, so the desktop app signs in again. - Saved widgets: a one-off migration rewrites their calls to
spacemix.*where it can be sure, parsing the code, and lists any it leaves. Widget files from before the rename, bykind"operator-widget"or aframeVersionbelow3, can't be imported. - Versions: a one-off exception, recorded in the contract. The SDK stays
0.3.0andPROTOCOL_VERSIONstays1, since nothing was in production. The1.0.0rule holds for later breaks.
- Packages:
-
Accepted by the owner along with the rename, and folded into the snapshot: changes from earlier commits that the contract check had flagged as breaking.
DraftFieldsandWidgetDraftgainedsettingsanddefaultStore;WIDGET_FRAME_VERSIONwent from1to2;WIDGETS_METHODSchanged andWIDGETS_VIEW_METHODSgainedsave; the signatures ofButton,ConfirmDialog,EmptyState,Input,Kbd,MarkdownandPageHeaderchanged; and the widget frame gained thesavemessage to its parent. -
Creating now takes a permission, which changes what some members can do. On a new server
server:extensionsandserver:widgetscome with the Members group. On an existing server everydefaultgroup and the group named Members get them once at start, and they stay off once taken off; nobody gets them directly, so a member outside those groups loses creating until granted, and aserver:membersholder outside them can't manage default members until they hold both. With both on by default, every default member can install from the registry, uninstall for the team, approve ordinary updates, change automatic updates and install the essentials (What every default member can do). Withoutserver:widgets, creating, changing, deleting or duplicating a widget is refused withYou don't have permission to create widgets on this server.(viewing, dashboards,widget_store_set, Refresh and Purge cache stay), andwidget_guide,widget_create,widget_updateandwidget_deletearen't in a chat. Withoutserver:extensions, creating extensions is refused withYou don't have permission to create extensions on this server., there is nonet.fetchwith a preview and nocore.studiogroup, and ids never installed need an exactextension:<id>grant, whichextension:*isn't.studio_switchtakes both. The Studio is closed with neither, and makes only what the person holds.host.widgets.deleteWidgetnow rejects withoutserver:widgetsand when the write fails (a widget already gone counts as deleted), andhost.widgets.openStudioalways resolves, without the permission showing a notice and starting no session. See Without these permissions. -
Two contract wordings changed, by decision: an extension's data is also erased when the owner chooses erase while approving a listing that replaces a build made on this server, never for an id ever installed from SpaceMIX Hub or the Marketplace (What you may rely on); and an update that waits for a new permission means an update from the registry, so a local install applies at once, for its builder alone when it's someone's own build (Updates).
-
GET /v1/registry/updatespins what servers rely on: a version that doesn't parse sorts lowest, so<id>@0gets the newest version back (Updates). -
The
/v1/registryroutes only show approved versions, experimental: with version review on, a newly published version staysin_reviewuntil it passes. Search,GET /v1/registry/categories, a listing'slatest,versionsandreadme,GET /v1/registry/updates,GET /v1/registry/defaults, reviews and install reports skip unapproved versions for everyone but the publisher and the Hub's admins; a listing with nothing approved answers 404not_foundto anyone else, and downloading an unapproved version answers 404not_foundwhoever asks. Every version published before review was migrated toapproved, so existing listings, installs and updates are unchanged. See Version review. -
The assistant's tool text is leaner, without dropping a tool or an argument. The tools derived from a collection (
collectionToolsinapps/desktop/src/lib/tools.ts,collection_toolsinapps/desktop/src-tauri/src/tools.rs) say what comes back:listreads "List <items>, last changed first." plus the collection'sdescriptionand the shape of{ total, items }(no paging; narrow withqueryorwhere),querynames the fields it searches, andcreatesays it returns the record with its id. The collection'sdescriptionis sent once, onlist, or oncreatewhen there is nolist; a collection withoutcreateandupdatelists its fields' descriptions onlist(ongetwithoutlist).list'swherenow offers only the scalar fields (string,number,integer,boolean), bytypeandenum, without their descriptions or defaults; the core never matched anarrayorobjectfield there, so no call that worked before stops working. The text of theproject_*tools (apps/desktop/src/lib/projectTools.ts),tool_result_read,extension_sdk(theui/*topics in one line)widget_create'srefreshSeconds(the guidance moved towidget_guide'scachetopic) andwidget_update(its fields other thannameanddescriptionsay "As in widget_create.") is shorter too. Not contract surface and not breaking: tool names and results are unchanged, and every argument that worked before still works. For extension authors, Clear but lean gives the rules and budgets for tool text, and the checklist has an item for it; see Tools derived from a collection. -
The widget and extension studios are one Studio (
apps/desktop/src/shell/studio/Studio.tsx): it takes the whole window and has a tab per building session, kept per device, server and account (at most 12,apps/desktop/src/lib/studioTabs.ts); closing a tab deletes nothing, and sessions in hidden tabs keep running.host.widgets.openStudioopens its widget session as a tab there; what it opens is unchanged.studio_switchis a new core tool (apps/desktop/src/lib/studioSwitch.ts), offered in Studio chats and always asked, that moves a session to the other kind; its name is now one of the tool names SpaceMIX keeps, so an extension tool namedstudio_switchis left out of every chat. A package brought into the Studio (Import from file, Open in Studio) is refused unless its manifest id matchesdefineExtension's pattern. See The Studio. -
SpaceMIX Hub reserves
core.as well asai.spacemix.by default (since the rename,dev.operator.too). The Hub's admins may publish reserved ids as well as its named publishers, and a new version of a listing under a reserved prefix (POST /v1/registry/extensions/{id}/versions) now also needs a publisher or admin (403 That id is reserved.), so a listing made before its prefix was reserved gets no more versions from anyone else. See Registry. -
The light theme took the Firehut × Satama look, values only, no token renamed or removed (
packages/ui/src/tokens.css): a limestonebg(#fbf8f3), warm sand borders (#e7dfd3,#d2c7b7), harbour-navy text (#1d2b3a, muted#5a6573, subtle#606975), a teal accent (#1f6f78, soft#e1efee), opaque-softtints and darker status colors (success#256b42, warning#7a5200, info#2f5f8a, danger#b3261e, each 4.5:1 or better onsurface,bgand its own-softtint), and a navy scrim. The series colors--op-c2to--op-c6are now ochre#b07a1c, blue#4a7bb0, terracotta#c0582f, moss#4b8a5cand warm grey#8c8579, each 3:1 or better onsurfaceandbgin light; the widget frame's own--op-c2to--op-c6and its light fallbacks for--op-success,--op-warningand--op-infomoved with them (apps/desktop/src-tauri/src/widget_frame.html), values only, as the widget contract allows.ColorSwatchPicker's built-in names forc1toc6follow (Primary, Ochre, Blue, Terracotta, Moss, Gray).--font-sansis Figtree first (Inter Variable stays as the fallback for scripts outside Latin),--radius-smand--radius-mdare 7 and 10 px, and--shadow-popis a warmer, softer drop shadow. The frame bundles Figtree and Newsreader, mapsfont-mediumandfont-semiboldto Figtree's 550 and 650, and tintsshadow-xsandshadow-smwarm brown in light and navy-black in dark. The dark theme took Satama's night-harbour navy, values only:bg#121c27,surface#1a2531,elevated#223040,sunk#15202b, opaque navy borders (#2a3846,#3a4a5a, the window edge#4c5d6e),control-border#76808c, limestone text (#ece7df, muted#a3acb7, subtle#8e98a3), the teal lifted to#6fc1c6withaccent-hover#5fb3b9,accent-soft#1f3a40andaccent-text#9ed8db, status colors danger#f2877d, success#74c69d, warning#e8b85aand info#8ab8e6with opaque-softtints (each 4.5:1 or better onsurface,bgand its tint), and a navy scrim.--op-accent-fgis navy#0e1a22in dark (8.51:1 on the accent), so text on the accent is dark there, not white. The same goes forbg-dangerand the solid status fills, which are light in dark: puttext-accent-fgonbg-accentandbg-danger(or useButton variant="danger") andtext-surfaceon a solid status color, asBadge variant="solid"does, never a hard-coded white. Dark also has its own lifted series colors (--op-c2to--op-c6:#d9a441,#7fa8d6,#e07a55,#79b58a,#a39c90, each 3:1 or better onbg,surfaceandelevated), so the docs' "one set for both themes" no longer holds; that wording was descriptive, not a promise. The widget frame's dark fallbacks for--op-success,--op-warningand--op-info, and its dark--op-c2to--op-c6, moved with them, and its.op-switchknob turns--op-accent-fgwhen on.Switch's thumb isaccent-fgwhen on (navy on the dark teal, white on the light one) and white when off. Kit visuals:SegmentedControl's pill shadow is warm brown; the keyboard focus ring is a 2px solid accent ring (danger on a danger button) with a 2px gap in thesurfacecolor, instead of the accent at 40%, in both themes (an inset solid ring on rows inside lists); text fields,Select,Textarea,TagInput,PinInputandsecondarybuttons have thecontrol-borderedge, and a focused field has a solid 2px accent edge (its border plus a 1px ring; danger when invalid);Buttonlabels are semibold,primaryhas a top highlight and an accent-tinted shadow and turnsaccent-hoveron hover,dangerdarkens on hover;SegmentedControland pillTabssit in asunktrack; accent badges and other accent text onaccent-softuseaccent-text;PageHeader's title,EmptyState's title (sizemd) andMarkdown'sh1andh2use the display font. -
The app took the SpaceMIX brand, values only, no token renamed or removed (
packages/ui/src/tokens.css). Light:bg#f7f7f9,hoverrgb(22 22 31 / 0.05),sunk#f0f0f4, borders#e2e2e8and#cfcfd8,control-border#888896, the window edge#bdbdc8, ink text (#16161f, muted#5e5e6e, subtle#62626f), an indigo accent (#4a43c8, soft#ecebfa,accent-hoverandaccent-text#3d37a8), status colors danger#b02a5b, success#297350, warning#8a5e00and info#36599ewith-softtints#f7e5ec,#e6f2ec,#f7efdcand#e6ecf7, and the scrimrgb(22 22 31 / 0.24). Dark:bg#111118,surface#191921,elevated#20202a,hoverrgb(236 236 242 / 0.06),sunk#15151c, borders#2b2b36and#3a3a48,control-border#6a6a7a, the window edge#4a4a5a, off-white text (#ececf2, muted#a2a2b2, subtle#9393a4), the accent lifted to#a49effwithaccent-fg#111118,accent-soft#24223f,accent-hover#918af5andaccent-text#c3bfff, status colors danger#f2829f, success#6cc79b, warning#e2b65aand info#91aaf0with-softtints#3a1e29,#18302a,#33291aand#1d2640, and the scrimrgb(5 5 10 / 0.6). Each status color stays 4.5:1 or better onsurface,bgand its own-softtint.--op-shadowis22 22 31(ink) in light and0 0 6(near-black) in dark.--font-displayis now the same Figtree stack as--font-sans, and--font-display--font-variation-settingsisnormal(it was"opsz" 72). The frame no longer bundles Newsreader:apps/desktop/src/fonts/fonts.cssdeclares Figtree only, and Inter Variable stays the fallback for scripts outside Latin. This changes the promise in the package format's CSS section: the frame no longer provides Newsreader forfont-display, so a package that names that family directly falls back. The kit's titles (PageHeader's,EmptyState's at sizemd,Markdown'sh1andh2) are at weight 650 and -0.02em tracking (they were 560 and -0.01em). The series colors--op-c2to--op-c6are#b8628f,#3e8e74,#b26a1e,#4f79b8and#8a8a98in light (3:1 or better onsurfaceandbg) and#d98ab2,#6dbfa5,#e0a35e,#8fb0e8and#9aa2b5in dark (3:1 or better onbg,surfaceandelevated). Four series moved to another hue:c1with the accent from teal to indigo,c2from ochre to pink,c3from blue to teal,c5from moss green to blue. The widget frame's own--op-c2to--op-c6and its fallbacks for--op-success,--op-warningand--op-infotook the same values, light and dark (apps/desktop/src-tauri/src/widget_frame.html). There is noWIDGET_FRAME_VERSIONbump: the classes' CSS values, the series colors among them, may be tuned within a version, and the variables keep their names and role. Saved widgets aren't rebuilt, so one that chose a series for its color gets the new hue; for meaning, use the status colors.ColorSwatchPicker's built-in names forc1toc6follow (Primary, Pink, Teal, Amber, Blue, Gray). -
The widget frame's
okandwarntones (op-dot,op-badge) andop-delta.upnow use the status colors--op-successand--op-warninginstead of the series colors--op-c2and--op-c3: a darker green and amber in light mode, readable as text. The class names and what they mean are unchanged; only their CSS values moved, which the widget contract allows.spacemix.ui.donutnow readssizeandthicknessas numbers (a missing or non-numeric one gets the default). -
ConfirmDialogandContextMenuclose on Escape through the kit's dismiss stack (useDismiss), so a menu or popover open above a dialog closes alone, and render into a surroundingPortalContainerwhen there is one.ConfirmDialoglabels itself with an id of its own (useId) instead of the fixedconfirm-title, so two on one page don't collide, and itsdangerbutton isButton variant="danger".ContextMenucloses on a press outside the menu and its submenus through the same stack. Their props are unchanged. See Escape and the dismiss stack. -
The stable
@spacemix/uicomponents changed how they look and what they render, with nothing else changed for existing callers (packages/ui/src/components.tsx,ConfirmDialog.tsx,ContextMenu.tsx):Button's root isposition: relative, and its content is wrapped in a<span class="contents">only whenloading,leftIconorrightIconis passed; a disabledInputlooks disabled (cursor-not-allowed, muted),aria-invalid="true"gives it a danger border and a danger focus ring, and inside aFieldit takes the field'sid,aria-describedby,requiredanddisabled;ConfirmDialog's backdrop uses--op-scrim(darker in dark mode), its title id comes fromuseId()and Escape goes through the dismiss stack (above);ContextMenucloses only the topmost layer on Escape;EmptyStaterenders no<p>for an empty or missingbody. See UI kit. -
requiresApproval(actions) andrequireApproval(collections) are what the assistant in the SpaceMIX app asks about. Besideshost.tools.calland widgets, the SpaceMIX API never asks: an API key withtools:writeruns those tools, the key's scope being that decision. See Actions andActionDefinition. -
ActionContext.viais also set when an API key runs an action, directly or through the assistant on the server:{ extension: "ai.spacemix.api", extensionName: "SpaceMIX API", label: <key name> }. Such a call runs in one of the person's open SpaceMIX windows. Seectx.via. -
SpacemixEvent.source(andEventQuery.source) may be"api": an event a script sent with an API key, with a free snake_casetype, an unchecked payload andpayload.via = { apiKey }. It is inhost.events.listandsubscribe, not incatalog. Notifications sent with a key also havesource: "api", no kind and no view. See API events and Notifications. -
The assistant may take up to 25 model ↔ tool round-trips for one message, up from 8 (
MAX_STEPS, in the app's chat loopapps/desktop/src/lib/chats.tsand the server-side assistantapps/desktop/src-tauri/src/assistant.rs). Past it the turn stops with the noticeStopped after 25 tool steps. Send another message to let it continue.The same cap holds for turns sent throughPOST /api/v1/assistant/chats/<id>/messagesandPOST /api/v1/assistant/messages. Not extension surface. See Limits. -
The assistant gets its tools on demand. A chat's model calls carry SpaceMIX's always-there tools (the
project_*tools,tools_load,tool_result_read; in a Studio chatstudio_switchand the Studio's own groups) and the tool groups the chat has loaded; the system prompt lists the groups it can load, one line each (one per extension, per MCP connection, andcore.widgetsandcore.studio).tools_loadadds groups, which stay with the chat (chats.toolGroups, at most 12, the least recently used let go); calling a tool whose group isn't loaded loads it; a project chat preloads its linked extensions' groups. Tool results are stored whole up to 256 KB (1 MB per turn) instead of being cut at 12,000 characters, and the model gets a structured view of a long one and a digest of an earlier turn's, which keep each table's row count, columns and the key and id fields of every row;tool_result_readreads the rest. The widget guide moved out ofwidget_create's description into the newwidget_guidetool, by topic. Inapps/desktop/src/lib/toolGroups.ts,resultDigest.tsandchats.ts, and for the server-side assistantapps/desktop/src-tauri/src/assistant.rs,tools.rsandtool_results.rs. Every extension and MCP connection tool's name, schema, description and approval are unchanged; of SpaceMIX's own tools onlywidget_create's description changed. Andhost.tools.listandGET /api/v1/toolsstill list every tool. Not extension surface. See How the assistant gets its tools and What the model sees of tool results. -
tools_load,tool_result_readandwidget_guideare new core tools, so they join the tool names SpaceMIX keeps: an extension or MCP connection tool with one of these names is left out of the app's chats with a notice, and the server-side assistant leaves out tools namedtools_loadortool_result_read. An extension whose id ends in.tools(actionload),.tool(actionresult_read) or.tool-result(actionread) would collide. Compatible, unless an extension already has a tool with one of these names. See Tool names. -
Chats keep the tables their tools fetch as materials: each table of 2 or more objects in an extension's or MCP connection's result is kept in the chat (the per-user core tables
chat_materialsandchat_material_data), named after the tool's group and title, listed at the end of the system prompt (at most 15), and read with the new always-there core toolsmaterial_query(filter, sort, group and aggregate, pages of up to 500 rows within 12,000 characters),material_save(a query's answer as a new material) andmaterial_refresh(runs the source tool again, only when it is read-only and doesn't ask). At most 50 per chat, 256 KB each. The chat header's Materials panel shows them as tables to copy or download and takes the person's own CSV or JSON;GET /api/v1/assistant/chats/<id>answers them asmaterials. The three names join the tool names SpaceMIX keeps, in the app and the server-side assistant; an extension whose id ends in.material(actionsquery,save,refresh) would collide. Compatible, unless an extension already has a tool with one of these names. In code:apps/desktop/src/lib/materialData.ts,materials.ts,apps/desktop/src-tauri/src/materials.rs,apps/desktop/src/shell/MaterialsPanel.tsx. See Materials. -
Team Chat's
message_sentevent from a private channel no longer carries the message's text: its payload has only ids and its summary isA message in a private channel. See Team chat. -
The extension id
ai.spacemix.apiis reserved for the SpaceMIX API'sctx.via: a server refuses to install a package with it, from SpaceMIX Hub or from a file (<id> is reserved for SpaceMIX's API.). -
The ids SpaceMIX uses itself,
core.extensions,core.files,core.git,core.studio_folder,core.widgets,core.studioandcore.projects(CORE_NAMESPACESinapps/desktop/src-tauri/src/registry.rs), are refused at every install, from SpaceMIX Hub, a file or a dev build, with<id> is reserved for SpaceMIX itself., asai.spacemix.apiis (above,reserved_id). Othercore.*ids install, but may be reserved later. SpaceMIX Hub reservescore.for publishing (its admins and named publishers excepted). SeeExtensionManifest. -
Changing the connected models (kv
shell/models,shell/defaultModel,shell/studioDefaultModel,shell/provider, Settings → Models) takesserver:settings; others getOnly people who may change server settings can change the connected models.See Permissions. -
Studio chats (widget and extension sessions) may have their own default model: Studio model in Settings → Models (kv
shell/studioDefaultModel, a connected model's id; shown with two or more models). Unset or no longer connected, they use the chat defaultshell/defaultModel; a chat's pinned model wins over both. Ordinary chats,host.aiand the SpaceMIX API's assistant are unchanged. Inapps/desktop/src/lib/models.tsandlib/chats.ts. Not extension surface. See Which model a session uses. -
Switching the SpaceMIX API on or off (kv
shell/apiEnabled, Settings → API) takesserver:settings; others getOnly people who may change server settings can switch the API on or off.See Switching the API on. -
A
host.storage.set(and so auseStoredwrite) that the server refuses is rolled back: the host logs it,setstill resolves, and the key's subscribers get the last value the server confirmed, orundefined(useStoredshowsinitial). Before, the window kept the refused value. See Storage. -
Who on a server may use an extension is now set per person. People hold
extension:*(every extension) orextension:<id>(one), directly or through permission groups, andserver:extensions,server:membersandserver:settingsfor managing extensions, people and the server; the owner has all of them (apps/desktop/src-tauri/src/auth.rs). A seeded Members group withextension:*holds every existing member and is picked for new invites, so nothing changes until someone narrows it. A person without access to an extension gets no navigation entry, frame, tools, Search results, routes, event consumer or change feed for it, and the server refuses its records,host.storageandhost.netwithYou don't have access to <id>., for installed and uninstalled extensions alike, Studio previews included. Installing, updating, approving, skipping and uninstalling takeserver:extensionsplus access to that extension instead of being the owner's; unsigned packages stay the owner's. Update notices go to the people who may use the extension (and, for a waiting update, who holdserver:extensions). Without access to Dashboards,host.widgetsreads no dashboards and dashboard changes reject withDashboards isn't available to you.; a widget source whose extension is installed but unavailable gets{ error: "<Name> isn't available to you." }rather thanstatus.missing. No SDK surface changed; for the people who may use it, an extension sees no difference. Experimental. See Who can use an extension. -
The app's address names the server first:
#/@<server>/<extension id>/<route>, where@<server>is the server's shortcode, the first 16 characters of its id (HANDLE_LENinapps/desktop/src/lib/servers.ts), the same for every member. A copied link opens on that server for everyone, switching to it if another one is active; a link to a server this device isn't connected to asks to connect or to open the view on the active server instead. A link with an 8- to 15-character shortcode (links made before the shortcode grew to 16 had 8), or with a server's id from before it moved to key-based identity, still finds the server but asks Open this link on <name>? before switching. A server's id, and so its shortcode, changes once, when the server moves to key-based identity (its id becomes its key's fingerprint, and the old one is kept aspreviousId), and stays the same after that, also when the server is renamed. Addresses without a shortcode, every older link, still open on the active server and get it added. Extensions never build shortcodes: the host writes them, and routes andhost.vieware unchanged. See View. -
Reviewing an extension in the registry needs a connection the server confirmed: the reviewer must have connected to
server, shown by the server's signed receipt atPOST /v1/me/servers/{id}/connected, not merely have been issued a sign-in token for it. People who connected before count again after their next connect. See Registry. -
host.widgets.addToDashboardrejects a widget that is stillunsaved(never saved in the Studio), as the assistant'sdashboard_add_widgettool already did; save it in the Studio first. See Widget reference. -
host.widgets.openStudio({ widgetId })on someone else's never-saved widget opens the Widgets gallery focused on it, where it is reviewed before it opens in the Studio, instead of opening the Studio directly. See Widget reference. -
host.widgets.refreshandhost.widgets.callreject a widget that is stillunsavedwithThis widget isn't saved yet., andhost.widgets.watchreports that as an error status withpurged: true(also when a saved widget turns unsaved) and starts the widget once it's saved;host.widgets.purgeandhost.widgets.reportErrorresolve and do nothing for it: an unsaved widget runs only in its own Studio. A widget deleted while watched now stops and reports one error status,This widget no longer exists., withpurged: true. See Widget reference. -
A widget made without a
refreshSecondskeeps its data for a day (86400 s) instead of 300 s; the viewers can still refresh it from its corner, and SpaceMIX's own data refreshes on every change anyway.widget_createandwidget_updatetell the assistant how fresh the sampled data is (freshness, the widget'srefreshSecondsand acacheNote), so it shortens the lifetime only for data that moves within the day. Widgets saved with the old 300 s default move to a day once per server. -
The widget frame (its document, CSP, sandbox, messages,
operator,operator.ui, classes and variables), the grid constants and the widget token format moved fromexperimentaltostable.host.widgets, the widget types, the widget hooks and the layout helpers stayexperimental. The widget frame's CSP and sandbox may be tightened for security without a version bump; loosening them never is additive. The list of experimental parts under Stability labels was brought up to date. -
Widget.refreshSecondsis the data cache's lifetime: a widget fetches when it comes on screen with nothing fresh cached, and again when the cached data expires, instead of once a period from when it was shown.WidgetStatus.refreshedAtis when the data was fetched, which can be before the widget came on screen. A run in which a source fails leaves the data already shown up and only changes the status. See watch. -
Collections are stored one record per row, in their own table (
<extension id>.<collection>, e.g.ai.spacemix.tasks.items), andupdatemerges its patch on the server, so two people changing different fields of the same record both land. A collection has no size limit as a whole; the 2 MB request limit from a browser applies per record. Thestoredchannel no longer carries collections. See Collections. -
host.storage.setrejects a value larger than 64 KB as JSON, and nothing is written (before, a value over the browser's ~2 MB request limit silently failed to persist, and the limit wasn't documented).host.storageis for settings and small state; records belong in collections. See Storage. -
Collections
conversations,messagesandprefsare reserved under the extension idai.spacemix.chatfor the core's team chat tables (ai.spacemix.chat.conversations,.messages,.prefs); declaring or using one fails withai.spacemix.chat / <name> is reserved for the team chat.No published extension is affected. See Collections. -
host.fsreaches one folder per server, the files folder (alwaysfilesin the server's data directory).roots()always returns exactly that one root, id"server", kind"dir"; every other method takes that id as before. See Files.
Removed
FilesApi.canPick,FilesApi.pickandFilesApi.removeRoot, and the bridge methodsfs.canPick,fs.pickandfs.removeRoot: nothing is added from the computer any more, so there is nothing to pick or remove. Use the root fromroots(). See Files.
Fixed
- Widgets API gave the widget iframe's sandbox as
allow-scripts; it isallow-scripts allow-forms, asWidgetFramehas always set it.
Security
-
An installed extension's code is for those who may use it: without
extension:<id>, reading its package returns only its manifest, readme, hash, format and build time, and packages can't be searched by anyone but the owner (apps/desktop/src-tauri/src/records.rs). See Who can use an extension. -
host.notifications.sendrefuses a source that is an id reserved for SpaceMIX, or acore.*id that isn't an installed extension's, with"<id>" is reserved for SpaceMIX itself, so nothing can be sent from it., so no member can send a notice in the server's own voice (server_voiceinapps/desktop/src-tauri/src/registry.rs,sendinnotifications.rs). See Notifications. -
Frame documents sandbox themselves over HTTP.
/api/ext-frame,/api/widget-frameand/api/ext-pagealso send a second policy,Content-Security-Policy: sandbox allow-scripts allow-forms(sandboxedinapps/desktop/src-tauri/src/server.rs), because the server now serves the app's page on the same origin. Opened directly, or embedded without the attribute, they don't run as that origin. The widget frame's own CSP is unchanged, this only tightens, and no version moves. The desktop app'sspacemix-widget:scheme doesn't send it. See The document and Content Security Policy. -
The
extensionsandsettingskv namespaces are read-only, and underwidgetsonly the flagsstartedandcacheDailycan be written, so plain kv can't become an install or a widget (READ_ONLYinapps/desktop/src-tauri/src/storage.rs,check_kv_writeinserver.rs). What the registry kept in kv is imported only on a server that never had its tables; rows found there later are moved aside unread. Under acore.*id nothing holds, writes are refused except for the owner (check_core_writeinauth.rs). -
Once at upgrade every installed package is checked against its hash. One that fails doesn't run, the owner is notified, and installing it again or uninstalling it fixes it (
verify_installed_packagesinregistry.rs). See The check at upgrade. -
Every key in the
shellkv namespace is server-wide, and any signed-in member could write the ones not gated one by one, so a key added later was open by default. Writing anyshellkey now takesserver:settings; others get the key's own message (models, API switch, approvals) orOnly people who may change server settings can change this server setting.(check_kv_writeinapps/desktop/src-tauri/src/server.rs). The sidebar's extension order is no longer one of them: it is each person's own, in the per-user kv namespacepersonal(personal/extensionOrder), and someone who hasn't moved anything yet starts from the old server-wideshell/extensionOrder, which is now only read. The one exception isshell/mediaBlockedExtensions: anyone with access may still turn the camera, microphone and screen off for an extension, but the server refuses a write withoutserver:settingsthat removes an id (Only people who may change server settings can turn the camera, microphone and screen back on for an extension.) or isn't a list of at most 1,000 valid extension ids in at most 64 KB (The extensions turned off from the camera, microphone and screen must be a list of at most 1,000 extension ids., for everyone), checked against the stored list under the same lock as the write. Settings and the Studio show the switch disabled once it's off. These lists (and the approvals) now change one id at a time against what the server has: the client's kv write names the value it replaces, the server refuses it with 409This setting changed while you were saving it. Try again.if another is stored, and the client reads again and retries once, so two people's changes at once no longer undo each other. See Permissions and Media. -
Which extensions' gated tools run without asking (kv
shell/autoApproveExtensions, Settings → Extensions → Approvals) is server-wide, so it applies to everyone, and any signed-in member could change it. It now takesserver:settings, likeshell/autoApproveMcp; others getOnly people who may change server settings can change which extensions run without asking.(check_kv_writeinapps/desktop/src-tauri/src/server.rs), and Settings shows the switches read-only to them. See Permissions. -
The installed extensions' records (approved permissions,
net:*grants, packages, held updates) are no longer writable by clients: the records API refuses the core'sinstalled_extensions,extension_packagesandextension_updatestables with<table> changes only through the extension commands., and anet:*grant is added only throughPOST /api/extensions/grant-host, by someone who may use the extension. A client-supplied Studiopreviewstill stands in for the approved permissions onhost.net; see question 22 in Open questions before we freeze. -
A widget could navigate its frame (
location.href = …, orform.submit(), whichallow-formslet through) inside an extension frame that allowsframe-src http: https:, and the page it landed on was still sent the widget's data and could ask forcalls. The widget frame's CSP addsform-action 'none'; base-uri 'none'. BothWidgetFrames render only after the frame's firstload, treat any laterloadas a navigation (stop posting, ignore its messages, take the frame down, report the error) and drop messages whose origin isn't"null". A widget that navigates still gets out whatever it put in the URL. See The document.
Protocol 1 / SDK 0.2.0 (2026-10-20): baseline
The first documented contract. Everything in these docs as of this date is the baseline; later entries are measured against it.
Versions at this baseline:
PROTOCOL_VERSION |
1 |
PACKAGE_FORMAT |
1 |
@operator/sdk (as it was called then) |
0.2.0 |
@operator/ui (as it was called then) |
0.1.0 |
| Registry API | /v1/registry |
| Host modules | React 19, lucide-react 1.x, motion 14 |
What the baseline consists of:
- Manifest:
ExtensionManifestwithid,name,version,description,icon,order,permissions,collections,actions,events,notifications,entry;CollectionDefinition,ActionDefinition,EventDefinition,NotificationKind,JSONSchemawithoptions. See Manifest. - Permissions:
storage,fs,git,chat,widgets,widgets:view,events,tools,ai:invoke,camera,microphone,screen,net:<host>,net:*.<domain>,net:*,data:<ns>:read,data:<ns>:write. See Permissions. - Package format 1:
ExtensionPackage, the hash over id, version, JS and CSS,HOST_MODULES,__opExtension. See Package format. - Host API:
host.storage,host.collection,host.fs,host.git,host.chat,host.net,host.widgets,host.notifications,host.events,host.tools,host.ai,host.mcp,host.shell,host.view,host.env,host.manifest; actions withActionContext; the module'smcpservers. See Host API. - Frame protocol 1: the
HostToFrameandFrameToHostmessages, the bridge methods and subscription channels, the sandbox and CSP. See Frame protocol. - React hooks, UI kit, design tokens and widgets. See React hooks, UI kit, Widget reference.
- Registry API
/v1/registry/*and package signing. See Registry.
Experimental at the baseline: camera, microphone and screen capture (camera, microphone, screen, media.*, MediaWire).
Documented as they are, not yet settled: storage isn't checked; data:<ns>:* grants nothing; order and entry are ignored. See Known gaps and Open questions.