Skip to content

Move the Pro Tauri layer out of core: pro_* commands, ProClient, proto, update source #3336

Closed as not planned
5 of 5 issues completed
Closed as not planned

Description

@mstomar125

Goal

Remove the whole Pro Tauri layer from core's desktop app (packages/desktop-app/src-tauri, crate nodespace-app): the pro_* commands, the Pro gRPC client, the vendored Pro proto and its build step, and the Pro update source (ADR-081 (proposed)). After #3336 the free app ships none of them.

The nodespace-sync Pro package provides the same behaviour through core's extension points (ADR-082 (proposed)):

  • a Tauri plugin for the commands;
  • a channel-ready task for the tier probe;
  • a channel-rebuilt hook for the client rebind;
  • an update-source override for its version and download page.

#3336 also fixes two things the free app gets wrong today because of this layer: its only "gRPC answers" reload rides a Pro event, and the update banner's Download link is hardcoded.

Why the order matters

Current state (main @ af8ddb6)

Line numbers are orientation only. #3322 may split the Tauri crate (ADR-082 §3.1 moves src-tauri/src/... into a library package), so every sub-issue locates code by symbol.

Path (under packages/desktop-app/ unless noted) Lines What
src-tauri/src/commands/pro_sync.rs 1-1219 27 pro_* commands, DTOs, admission error mapping, DEFAULT_WORKER_URL; 13 unit tests
src-tauri/src/services/pro_client.rs 1-360 ProClient/ProTier, pb (nodespace.pro.v1), tier probe, rebind; 5 unit tests
src-tauri/proto/nodespace_pro.proto 1-437 vendored CloudSyncService (29 RPCs), byte-identical to sync's nodespaced-pro/proto/nodespace_pro.proto
src-tauri/build.rs main() 173-192 protoc plus a tonic_build compile of the Pro proto
src-tauri/Cargo.toml 15-18, 51 tonic-build and protoc-bin-vendored build deps; prost (used only by the generated Pro code)
src-tauri/src/lib.rs run() 488-490, 592-597, 607-635, 710-736 startup Pro probe (manage(pro), emits pro:tier-detected); 27 handler entries
src-tauri/src/commands/nodes.rs probe_and_recover_channel 568-606 ProClient::rebind after a wedged-channel rebuild; a private sentinel GetNode probe
src-tauri/src/update_check.rs 5-10, 34-42, 116-124, 158-194, 262-283 Pro update source (pro.nodespace.ai/pro/latest-version) and 2 tests
src/lib/components/layout/app-shell.svelte 22, 249, 277-284, 599-601 the free app's schema/collection reload on pro:tier-detected
src/lib/services/daemon-status.ts 17-19 module doc names that reload
src/tests/unit/props-driven-components.test.ts 246-270 a tautological test of that reload
src/lib/stores/update-status.svelte.ts 27-28, 101-104 hardcoded RELEASES_URL, whose comment wrongly says Pro releases are published there
scripts/refresh-pro-proto.ts (repo root) 1-59 re-vendors the proto from a sibling sync checkout

Effects on the free app today:

  • Wasted startup work. Every start runs the Pro probe (a WatchSyncStatus RPC, up to two 2 s timeouts) and manages a ProClient it never uses.
  • A hidden reload dependency. pro:tier-detected is the free app's only "gRPC answers" reload signal. daemon-status: healthy only proves a socket connect (daemon_setup.rs check_daemon_socket).
  • A wrong download link. A Pro user who clicks Download on the update banner is sent to the community installer.

What #3336 needs from #3322 (ADR-082 (proposed))

Gates (nodespace-sync items, filed later)

Sub-issues

Key Title Size Direct deps
#3318 Add a neutral daemon:data-plane-ready event and stop reloading on pro:tier-detected M #3299
#3319 Carry the download URL in the update-check payload instead of a hardcoded releases page S #3299
#3323 Delete the Pro arm of core's built-in update source and its worker parsing S NodeSpaceAI/nodespace-docs#88 (ADR-081), #3320, SYNC pin, SYNC update source
#3334 Delete the pro_* commands, ProClient, startup Pro probe and Pro rebind from core M NodeSpaceAI/nodespace-docs#88 (ADR-081), #3307, #3318, #3327, #3333, SYNC pin, SYNC commands
#3335 Delete the vendored nodespace_pro.proto, its build.rs step and its build-only deps S #3334

#3328 (delete scripts/seed-recovered-item.ts) was folded into #3328. Its key is retired so the other keys stay stable.

Order:

  1. Add a neutral daemon:data-plane-ready event and stop reloading on pro:tier-detected #3318 and Carry the download URL in the update-check payload instead of a hardcoded releases page #3319, in parallel, once Add the Pro-boundary ratchet check and the CLAUDE.md Pro/sync placement rule #3299 is on main.
  2. Other parents build on them: Let an app built on core supply its update source through AppExtensions #3320 on Carry the download URL in the update-check payload instead of a hardcoded releases page #3319, and Stop driving Pro sync lifecycle from the app shell, database store and debug channel #3329 on Add a neutral daemon:data-plane-ready event and stop reloading on pro:tier-detected #3318.
  3. Delete the Pro arm of core's built-in update source and its worker parsing #3323 once Let an app built on core supply its update source through AppExtensions #3320 and its gates hold. Delete the pro_* commands, ProClient, startup Pro probe and Pro rebind from core #3334 once Add daemon-ready tasks and a channel-rebuilt hook to AppExtensions #3307, Move the Pro account, admission and synced-database settings out of core #3327, Move the Pro sync and collaboration UI out of core #3333 and its gates hold. The two are independent.
  4. Delete the vendored nodespace_pro.proto, its build.rs step and its build-only deps #3335 after Delete the pro_* commands, ProClient, startup Pro probe and Pro rebind from core #3334.

Blockers listed on this parent belong to the parent only. Never copy them onto the sub-issues. If #3318 inherited #3333, or #3319 inherited #3322, the graph would loop: #3333 → #3329 → #3318 → #3333, and #3322 → #3320 → #3319 → #3322.

Coordination with other parents

Acceptance (parent)

Dependencies

Notes (verified against the code)

  • pro_current_status is used. stores/pro-sync.svelte.ts calls it to restore the signed-in state after a webview reload, and proSync.start() invokes pro_tier on every free-app start (app-shell.svelte:260). Neither can go before Move the Pro sync and collaboration UI out of core #3333.
  • Search nodespace_pro with a word boundary. A fixed-string search also matches the core crate nodespace_proto. The searches above also exclude Add the Pro-boundary ratchet check and the CLAUDE.md Pro/sync placement rule #3299's checker, whose patterns and fixtures contain these names.
  • Build deps. prost has no user in nodespace-app other than the generated Pro code. packages/proto keeps its own tonic-build and protoc-bin-vendored, so the lockfile keeps both packages.
  • Test counts. 18 unit tests leave with the code: 13 in pro_sync.rs and 5 in pro_client.rs. update_check.rs has 2 Pro tests. The proto has 29 RPCs.

Plan key: C4 (pro-boundary DAG).

🤖 Generated with Claude Code

Sub-issues

Sub-issues

5 of 5 Issues completed
Loading 5 sub-issues

Activity

  1. self-assigned this
    on Sep 30, 2026
  2. added
    pro-boundary
    on Sep 30, 2026
  3. mstomar125 commented on Oct 1, 2026

    @mstomar125
    ContributorAuthor

    Superseded by #3412 (umbrella against the final ADR-081–085)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

pro-boundary

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions