Conversation
🦋 Changeset detectedLatest commit: 2b907a1 The changes in this PR will be included in the next version bump. This PR includes changesets to release 2 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
|
Caution Review failedThe pull request is closed. ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (22)
📝 WalkthroughWalkthroughThis PR refactors the CLI initialization experience across stack-forge and stack packages by renaming the init command to setup, introducing auto-detection of encryption client files, and replacing device-code authentication with a streamlined schema building and package installation workflow. The basic example project updates table definitions from helloTable to usersTable with refined encryption configurations. Changes
Sequence Diagram(s)sequenceDiagram
participant User
participant setupCommand
participant detectClientPath
participant resolveClientPath
participant generateConfig
participant installCommand
User->>setupCommand: Invoke setup with options
activate setupCommand
setupCommand->>detectClientPath: Auto-detect client file
activate detectClientPath
detectClientPath-->>setupCommand: Client path or undefined
deactivate detectClientPath
setupCommand->>resolveClientPath: Confirm or prompt user for path
activate resolveClientPath
resolveClientPath->>User: Prompt for client path
User-->>resolveClientPath: Provide path
resolveClientPath-->>setupCommand: Resolved client path
deactivate resolveClientPath
setupCommand->>generateConfig: Generate config with client path
activate generateConfig
generateConfig-->>setupCommand: stash.config.ts content
deactivate generateConfig
setupCommand->>installCommand: Install with resolved options
activate installCommand
installCommand->>User: Execute package installation
User-->>installCommand: Installation complete
installCommand-->>setupCommand: Installation status
deactivate installCommand
setupCommand-->>User: Setup complete
deactivate setupCommand
Estimated code review effort🎯 4 (Complex) | ⏱️ ~60 minutes Possibly related PRs
Suggested reviewers
Poem
✨ Finishing Touches
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Summary by CodeRabbit
New Features
Improvements
initcommand tosetupfor clearer intentDocumentation