Repository navigation
Install the NodeSpace skill into AI agents on first launch - #1279
Conversation
- New skill_setup.rs module: invokes `npx @nodespaceai/skill install`, checks nodespace CLI on PATH, persists state to ~/.nodespace/setup.json - Auto-runs idempotently on first launch in the Tauri async setup block; emits `skill:cli-missing` event if CLI is absent - Replaces hardcoded SKILL.md content in configure_skill() with the real @nodespaceai/skill installer; adds install_skill and get_skill_setup_status Tauri commands for manual re-trigger - Settings → Integrations panel with install/reinstall button and CLI warning Co-Authored-By: Claude <[email protected]>
Code Review: PR #1279 — Install NodeSpace Skill on First Launch (Issue #1199)Overall assessment: This is a well-structured, net-positive change that cleanly replaces the old hard-coded Findings[Improvement]
|
| Criterion | Status |
|---|---|
| Skill installed on first launch | PASS — install_skill(false) wired in setup task |
| CLI PATH check with warning | PARTIAL — check runs, warning is logged and event emitted, but event is not consumed |
| Idempotent setup | PASS — setup.json guard + early return |
Completion persisted to ~/.nodespace/setup.json with skill_installed: true |
PASS |
| Success/warning notification shown | PARTIAL — success path: UI only shows result in Settings panel; warning path: event emitted but no listener |
| Manual re-trigger via Settings → Integrations | PASS |
bun run test:all passes |
PASS (133 test files, 3858 tests, all green) |
No mcpServers entry written |
PASS — confirmed by audit of installer.ts and agents.ts; only SKILL.md + shims are written |
Summary
The critical path (install on first launch, idempotency, no MCP) is correct. The two items to address before merge are the stdout parser false positives (garbled UI) and the unhandled skill:cli-missing event (AC gap). The timeout and spawn_blocking consistency issues are lower-priority but worth filing as follow-up. Overall a clean, well-scoped implementation.
malibio
left a comment
There was a problem hiding this comment.
Two issues need addressing before merge: (1) the stdout parser in skill_setup.rs collects file-path sub-lines and auxiliary text as agent names, garbling the UI's 'Installed into:' message; (2) the skill:cli-missing Tauri event is emitted but no frontend listener exists, leaving the CLI-missing warning silent. Both are detailed in the review comment. All tests pass and the core install path is correct.
- Fix skill_setup::run_skill_installer stdout parser: filter on lines that start with '✓' before stripping prefixes, preventing file-path sub-lines and diagnostic text from polluting agents_installed - Make skill_setup::cli_warning pub(crate) and use it from onboarding.rs instead of duplicating the string literal - Add skill:cli-missing Tauri event listener in app-shell.svelte that surfaces the CLI-missing warning via the status bar Skipped: spawn_blocking for check_cli_on_path (near-instant process, not worth the overhead); npx timeout (idempotency guard bounds exposure to one-time first-launch only); pre-existing println! calls (out of scope). Co-Authored-By: Claude <[email protected]>
Review AddressedAddressed 3 of the review findings; 2 deferred as low-priority follow-ups. ✅ Addressed
⏭️ Deferred
All 133 test files (3858 tests) still pass. |
* feat: install NodeSpace skill on first launch (closes #1199) - New skill_setup.rs module: invokes `npx @nodespaceai/skill install`, checks nodespace CLI on PATH, persists state to ~/.nodespace/setup.json - Auto-runs idempotently on first launch in the Tauri async setup block; emits `skill:cli-missing` event if CLI is absent - Replaces hardcoded SKILL.md content in configure_skill() with the real @nodespaceai/skill installer; adds install_skill and get_skill_setup_status Tauri commands for manual re-trigger - Settings → Integrations panel with install/reinstall button and CLI warning Co-Authored-By: Claude <[email protected]> * Address review: fix stdout parser and wire CLI-missing warning - Fix skill_setup::run_skill_installer stdout parser: filter on lines that start with '✓' before stripping prefixes, preventing file-path sub-lines and diagnostic text from polluting agents_installed - Make skill_setup::cli_warning pub(crate) and use it from onboarding.rs instead of duplicating the string literal - Add skill:cli-missing Tauri event listener in app-shell.svelte that surfaces the CLI-missing warning via the status bar Skipped: spawn_blocking for check_cli_on_path (near-instant process, not worth the overhead); npx timeout (idempotency guard bounds exposure to one-time first-launch only); pre-existing println! calls (out of scope). Co-Authored-By: Claude <[email protected]> --------- Co-authored-by: Michael Libio <[email protected]> Co-authored-by: Claude <[email protected]>
Closes #1199