altimate-code
altimate-code copied to clipboard
Install offer for the workspace engine: dialog instead of a toast
Goal
When a bound workspace needs the local engine and none is installed, present an actionable, persistent prompt.
Scope
- Dialog at the moment of need on the workspace TUI plugin surface: Install now / Copy command / Not now.
- Install now runs
npm i -g @altimateai/datamate@<floor>only when Node ≥ 20 is detected; otherwise shows the command and says plainly that it needs Node. - Not now is latched per workspace for 7 days (same shape as the link prompt's latch).
- Headless
runprints one line naming the workspace and the command. - The existing toast remains the fallback where the plugin surface isn't present.
Out of scope
Status-line indicator; download-based install once the engine ships as a binary.
Verification
Pre-merge E2E: no engine on PATH → dialog; Install now with Node → engine installs and the attach proceeds; Copy → clipboard; Not now → no re-prompt within 7 days; no Node → command + notice; headless → one line.
Filed by mistake — tracked internally.