feat: add post-install onboarding (skill install + test query)#302
feat: add post-install onboarding (skill install + test query)#302arein wants to merge 2 commits intonansen-ai:mainfrom
Conversation
pr-reviewer Summary📝 2 findings Review completed. Please address the findings below. Findings by Severity
Review effort: 3/5 (Moderate) SummaryThis PR does two things: (1) adds a post-install onboarding script that offers to install the Nansen AI coding skill and verify the API key after Findings
|
After `npm install -g nansen-cli`, interactively offers to: 1. Install the Nansen AI coding skill via `npx skills add` 2. Run a test query to verify the setup Non-interactive environments get a one-liner tip instead. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
0c57e58 to
879ee7e
Compare
- Use `nansen account` (0 credits) instead of smart-money query for test - Add shell: true on win32 for npx spawn/execFileSync (Windows compat) - Fix double-resolve in prompt() with answered guard - Update skip message to suggest `nansen research smart-money netflow` Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
|
Addressed all feedback:
All 1043 tests pass. |
Summary
postinstallhook that runs afternpm install -g nansen-clinpx skills add nansen-ai/nansen-cli)Details
npm_config_global === "true")execFileSync/spawnwithoutshell: trueto avoid injection surfacesprocess.execPath+ relative CLI entry path so the test query works even before npm finishes bin linkingnpx -yavoids nested "install skills package?" promptTest plan
npm install -g nansen-clion a fresh machine shows the interactive onboardingnskips each step with a manual-install tipnpm ciin CI does not show any prompts or outputecho "" | npm install -g nansen-cli) shows tips only🤖 Generated with Claude Code