You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(project create): never block on a name prompt — auto-generate when the dir name is useless (#46)
`insta project create` (no arg) dropped into an interactive `project name [projects]:`
prompt — so `curl … | sh && insta project create` and any run from ~/projects just
HANGS, with a nonsense default (the cwd basename 'projects'). Railway-grade onboarding
shouldn't stall on input.
Now name resolution never prompts:
- explicit arg wins (slugified)
- else the cwd basename IF it's a real project-dir name (e.g. ~/my-app → 'my-app')
- else an auto-generated friendly name (Vercel/Render style, e.g. 'swift-meadow-482')
for generic dirs (projects, tmp, ~, src, code, …) and the home dir itself
Removed the readline prompt path entirely (stdin no longer touched). Pass a name or
rename later if you want something specific. 77/77 tests green, tsc clean.
Claude-Session: https://claude.ai/code/session_01GMbAe5K1RfwaAcge5inX7P
Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
0 commit comments