Repository navigation
Description
Goal
Give the free app its one allowed Pro-related surface: a "Share / Sync this database…" action that opens the NodeSpace website. ADR-081 §2b (proposed) permits exactly this. ADR-084 §1 (proposed) specifies it. On the website the user starts a trial or a paid plan and downloads the Pro app, which replaces core and keeps the same local databases.
Core renders the action as the default content of a replaceable slot, database.sync-entry (ADR-084 §1.1; ADR-082 §2.2). The Pro app is core's desktop app plus the Pro package. It contributes its own action to that slot (ADR-084 decision 7(a)) or an always-hidden one (7(b)), so a paying user never sees the purchase link.
The action replaces:
- the disabled Labs "Team synchronization" card and its
mailto:link; - the Labs
syncEnabledflag; - the README's "Pro tier" section, which points to Discord.
This is ADR-081 §7 step 7 ("Entry point and clean-up"). It is part of the epic #3298: core ships no Pro code, and the Pro app moves to nodespace-sync.
Context
The directive. Michael, 2026-09-29: "Later core will have a 'share/sync this database' flow that just jumps to our website to initiate it (trial, premium), then they download the pro version (replacing the core)."
What ADR-084 §1 specifies:
- The dialog. Choosing the action opens a short dialog:
- one sentence saying that syncing and sharing need NodeSpace Pro, which is set up on the website and replaces this app while keeping its databases;
- a primary Continue on nodespace.ai button;
- a Cancel button.
- The URL. Continue opens
https://nodespace.ai/pro?entry=sync-databasethrough core's existingopenUrl. The URL is built only from compile-time constants. - Nothing else is sent. Core adds no database id, node id, email, person id, app version or machine identifier. It makes no network request for this flow and does not record that the action was used.
- Failure. If the OS cannot open a browser, core shows "Couldn't open your browser. To set up sync, visit https://nodespace.ai/pro", with the address selectable and a Copy link button. Nothing is retried automatically.
- Precondition. Core does not ship the action until the website serves a dedicated page at the entry URL.
https://nodespace.ai/proalready returns HTTP 200 with the home page, so a reachability check proves nothing; a person has to check the page.
What exists at main @ af8ddb61:
- The Labs card.
labs-settings.sveltehas the<!-- Team synchronization -->card (lines 53-75). It holds adisabledSwitch bound tolabsFlags.syncEnabledand amailto:[email protected]link. - The flag.
labsFlags.syncEnabledlives instores/labs-flags.svelte.ts. Its non-test readers:ui-extensions.svelte.ts(resolveProSyncVariant). Move the Pro variant machine and DATABASE_SETTINGS_NODE_ID out of the generic registry files #3309 / Adopt ADR-082's contribution contract: ids, when() predicates, keyed and isolated outlets #3310 moves it topro-sync-variant.svelte.ts, and Move the Pro sync and collaboration UI out of core #3333 deletes that file.account-settings.svelte,database-settings.svelte,settings-pane.svelteandsettings-sidebar.svelte. Move the Pro account, admission and synced-database settings out of core #3327 removes these (the sidebar reader via Add settings-section and database settings-slot extension points #3312'ssettings-categories.ts).labs-settings.svelte, which Make the Share / Sync website action the sync-entry default; remove the Labs card #3359 removes.
- The README. Its "### Pro tier" section (lines 47-49) names
nodespaced-pro, "the same desktop app" and invited tenants, and sends people to Discord. - The website. nodespace-website has no Pro page. Its Cloudflare Pages deploy has been disconnected since 2026-08-19 (Reconnect nodespace-website Cloudflare Pages Git integration (human step) #3286).
- No in-app database menu. PR Switch dark-mode visibility, disable Team sync toggle, sidebar cleanup #2932 deleted the sidebar database switcher. The native File menu is the only menu left, so Add a File menu item that opens the Share / Sync this database entry #3360 puts the "database menu" entry there.
Why a slot, and why the pin matters.
- nodespace-sync builds the Pro app from core's desktop-app project.
- Once the pin gate is in place (ADR-082 §6: one pinned core revision for the Pro daemon and the Pro app), core merges first. nodespace-sync then adapts in the change that bumps its pin (ADR-083 §7).
- ADR-081 §7 step 7 also requires the slot to exist, and the Pro package's contribution to be ready, before core's action lands. Otherwise the first pin bump shows paying users the purchase action.
- So the slot lands first (Add the replaceable database.sync-entry action slot to the extension API #3358) and the action second (Make the Share / Sync website action the sync-entry default; remove the Labs card #3359).
Scope overview
In scope:
- Add the replaceable database.sync-entry action slot to the extension API #3358: the replaceable slot
database.sync-entry. Its types, registry accessors and a generic host. The host is placed in Settings → Database with an empty default. The slot is exported from the host API, with a version bump and an updated snapshot. Core looks unchanged. - Make the Share / Sync website action the sync-entry default; remove the Labs card #3359: core's default content for the slot. The button, the ADR-084 dialog, the URL constants, and the failure message with Copy link. It also deletes the Labs card and rewrites the README section.
- Add a File menu item that opens the Share / Sync this database entry #3360: a native File menu item. With no extension contribution to the slot, it opens core's dialog. With one, it opens Settings → Database, where the contribution renders.
- Delete the Labs syncEnabled flag and guard the free app's single sync entry point #3361: delete
labsFlags.syncEnabled, and add a guard test that the free app's only sync-related control is the entry action.
Out of scope:
- Building the landing page. That belongs to nodespace-website (the
WEB:gate). - The Pro package's contribution to the slot. That belongs to nodespace-sync (the
SYNC:gate). - "Share this node", which ADR-084 defers. It gets its own slot later, as an additive change.
- The daemon tray's Databases submenu.
- Removing the other Pro surfaces (Move the Pro Tauri layer out of core: pro_* commands, ProClient, proto, update source #3336-C6) and the wording clean-up (Remove Pro, Supabase and nodespace-sync wording from core comments, docs and the skill #3372).
Sub-issues (in order)
| Key | Title | Size | Depends on |
|---|---|---|---|
| #3358 | Add the replaceable database.sync-entry action slot to the extension API | M | #3299, #3315, #3326 |
| #3359 | Make the Share / Sync website action the sync-entry default; remove the Labs card | M | #3358, #3333, NodeSpaceAI/nodespace-docs#94 (ADR-084), #3286, WEB landing page, pin gate, SYNC contribution ready |
| #3360 | Add a File menu item that opens the Share / Sync this database entry | S | #3359, #3306, NodeSpaceAI/nodespace-docs#90 (ADR-082) |
| #3361 | Delete the Labs syncEnabled flag and guard the free app's single sync entry point | S | #3359, #3327, #3333 |
DAG: #3358 → #3359 → {#3360, #3361}. #3360 and #3361 can land in either order.
The dependencies on this parent are its own blockers only. Don't copy them onto the sub-issues; each sub-issue lists its own direct dependencies.
Acceptance criteria (parent)
- Settings → Database shows "Share / Sync this database…" in the Databases header row.
- File → "Share / Sync This Database..." reaches the same action. If the ADR-082 reviewer declines a native entry, Add a File menu item that opens the Share / Sync this database entry #3360 is closed and this criterion no longer applies.
- The action opens a dialog with one sentence, Continue on nodespace.ai and Cancel.
- Continue opens exactly
https://nodespace.ai/pro?entry=sync-database. Core sends no other parameter, no app version and no identifier, makes no network request of its own, and records nothing. - If the browser can't be opened, the dialog shows ADR-084's failure message, with the address selectable and a working Copy link button.
- An extension that registers a contribution to
database.sync-entryreplaces core's action in every place core shows it. - A registered contribution that is hidden, throws or fails to load leaves the place empty, and core's default does not come back.
- Labs contains only AI Chat and Playbooks.
git grep -n "syncEnabled\|[email protected]\|Team synchronization" -- packages/desktop-appreturns nothing. - The README has no
nodespaced-pro, "same desktop app", tenant or Discord-for-access wording. Its sync section points to nodespace.ai, and the Discord community links stay. - A guard test shows that the free app's settings expose no Account section, no tenant or synced-database UI and no Labs sync card. The only sync-related control is the entry action.
- After every sub-issue:
bun run test:changedandbun run --cwd packages/desktop-app quality:fixare clean;- the free app works as before, apart from the intended change;
bun run scripts/check-pro-boundary.tsexits 0, and itsBASELINESequal the printed counts, lowered in the same PR wherever a marker was removed.
Dependencies
- Add the Pro-boundary ratchet check and the CLAUDE.md Pro/sync placement rule #3299: the Pro-boundary ratchet, so every sub-issue can lower its baselines.
- Publish the extension host API: services, ui and testing entries, version policy #3315: the host API barrel
@nodespace/extension-apiand its export snapshot, which the slot extends. - Move the Pro account, admission and synced-database settings out of core #3327:
- Delete the Add synced database dialog and tenant badge from Database settings #3326 rewrites the Databases header row and
database-settings.test.ts, which the slot host needs; - Move the Pro account, admission and synced-database settings out of core #3327 as a whole removes the Account and Database settings readers of
syncEnabled.
- Delete the Add synced database dialog and tenant badge from Database settings #3326 rewrites the Databases header row and
- Move the Pro sync and collaboration UI out of core #3333:
- it moves the Pro UI into the Pro package, which registers through
virtual:nodespace-extensions; - it deletes the last extension-registry reader of
syncEnabled.
- it moves the Pro UI into the Pro package, which registers through
- Route the desktop app through run(extensions, context) with no extensions in core #3306: the desktop app's ADR-082 entry point, which Add a File menu item that opens the Share / Sync this database entry #3360's menu code follows.
- NodeSpaceAI/nodespace-docs#90 (ADR-082) (ADR-082): the slot kind and its rules, plus a rule for native-menu placements (Add a File menu item that opens the Share / Sync this database entry #3360).
- NodeSpaceAI/nodespace-docs#94 (ADR-084) (ADR-084): the URL, the copy, the dialog and the failure behavior.
- External gates:
- Reconnect nodespace-website Cloudflare Pages Git integration (human step) #3286 (an existing core issue): the website deploys again;
WEB:the dedicated landing page is live at the entry URL, and a person has checked it;- the canonical pin gate: the Pro GUI and the Pro daemon build from one pinned core revision;
SYNC:the Pro package's contribution todatabase.sync-entryis written and reviewed against a core revision that includes Add the replaceable database.sync-entry action slot to the extension API #3358 (ADR-081 §7 step 7).
Follow-ups outside core (filed with the sync and website items)
- nodespace-sync: the contribution above, enabled in the same change that bumps the pin past Make the Share / Sync website action the sync-entry default; remove the Labs card #3359.
- nodespace-website: the landing page. It must keep serving the entry URL for as long as any supported core release contains it (ADR-084 §2).
Filing notes
- Don't assign these issues when you file them. The engineer self-assigns at pickup (CLAUDE.md: "Never assign an issue at creation time").
- Locate code by symbol. Split the desktop Tauri crate and add ADR-082's Tauri extension points #3322's library split (ADR-082 §3.1) moves
src-tauri/src/code, and Move the Pro variant machine and DATABASE_SETTINGS_NODE_ID out of the generic registry files #3309 / Adopt ADR-082's contribution contract: ids, when() predicates, keyed and isolated outlets #3310 and Add settings-section and database settings-slot extension points #3312 move registry and settings code, so line numbers quoted ataf8ddb61will drift.
Risks
- A purchase link in the Pro app. If nodespace-sync bumps its pin past Make the Share / Sync website action the sync-entry default; remove the Labs card #3359 without its contribution, Pro users see core's purchase action. The SYNC gate on Make the Share / Sync website action the sync-entry default; remove the Labs card #3359 and the pin rule prevent this.
- Shipping a link to a page that doesn't exist. The
WEB:gate and Make the Share / Sync website action the sync-entry default; remove the Labs card #3359's human pre-check prevent this. The site already answers/prowith its home page, so an HTTP 200 proves nothing. - Rollback. Each sub-issue is a frontend or menu change with no data or schema impact, so reverting its PR is enough. One exception: reverting Add the replaceable database.sync-entry action slot to the extension API #3358 after nodespace-sync contributes to the slot breaks the Pro build's type-check at the next pin bump. A shipped Pro app is not affected.
Plan key: C9 (pro-boundary DAG).
🤖 Generated with Claude Code
Activity
mstomar125 commentedon Oct 1, 2026
Superseded by #3413 (umbrella against the final ADR-081–085)