mirror of
https://github.com/atxp-dev/cli.git
synced 2026-09-14 20:46:39 +08:00
2eaa4182a7
- Add config.ts with centralized config handling: - getConnection() checks env var first, falls back to ~/.atxp/config - saveConnection() writes connection string to config file - getShellProfile() detects user's shell profile path - updateShellProfile() adds source line to shell profile - Update call-tool.ts to use getConnection() so CLI works even without ATXP_CONNECTION env var set (reads from config file) - Update login.ts to auto-update shell profile after saving config, eliminating the need for users to manually edit their shell profile This improves the login UX - users no longer need to manually update their ~/.zshrc or ~/.bashrc after running `npx atxp login`. Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>