Skip to content

Add clawflow CLI bin for migrate command, bump to 1.0.1#33

Open
pallaoro wants to merge 1 commit intomainfrom
fix/migrate-bin
Open

Add clawflow CLI bin for migrate command, bump to 1.0.1#33
pallaoro wants to merge 1 commit intomainfrom
fix/migrate-bin

Conversation

@pallaoro
Copy link
Copy Markdown
Member

@pallaoro pallaoro commented May 4, 2026

Summary

  • Adds "bin": { "clawflow": "./dist/migrate.js" } so npx @clawnify/clawflow migrate <dir> works
  • Compiles src/migrate.ts via tsc (shebang preserved, chmod +x in build step)
  • Strips a leading migrate subcommand arg so both clawflow migrate <dir> and node migrate.js <dir> work

Test plan

  • npm run build — clean, shebang present, +x set
  • node dist/migrate.js migrate /tmp/test-flows --dry — correct output
  • npm test — 117/117 passing

Exposes `clawflow migrate <dir> [--dry]` via npx @clawnify/clawflow so
agents can run the 0.x→1.0 migration without a local install. tsc
preserves the shebang and chmod +x makes the bin executable on install.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant