Files
atxp-dev__cli/packages
emilioacc 2eaa4182a7 feat: auto-update shell profile on login and read config file directly (#22)
- 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>
2026-01-27 10:52:03 -05:00
..