Skip to content

Conversation

@robtaylor
Copy link
Contributor

  • Refactor: Reorganize codebase into focused modules
  • Documentation clean up
  • Fix input.json format documentation to match implementation
  • Disable AutoAPI generation due to CI import issues
  • Make pin allocation error actionable
  • Fix heartbeat pin collision with clock pin
  • Update Openframe package terminology
  • Fix documentation issues from review
  • Improve custom simulation model documentation
  • Add warning about custom model API stability
  • packaging: Fix base model_post_init to not wipe self._ordered_pins ...
  • Add doctest infrastructure and fix failing test
  • Convert strategic examples to testable doctests
  • Document doctest strategy with comprehensive comments
  • Rename chipflow_lib to chipflow with backward compatibility
  • Minimize backward compatibility API surface
  • Fix E402 lint errors in backward compatibility stubs
  • Add JTAGSignature to backward compatibility exports
  • Add automatic authentication with GitHub token and device flow support
  • Add comprehensive unit tests for authentication module

@github-actions
Copy link

github-actions bot commented Nov 11, 2025

PR Preview Action v1.6.2
Preview removed because the pull request was closed.
2025-11-11 23:05 UTC

@github-actions
Copy link

github-actions bot commented Nov 11, 2025

Tests Skipped Failures Errors Time
65 4 💤 0 ❌ 0 🔥 20.865s ⏱️

robtaylor and others added 4 commits November 11, 2025 22:42
This simplifies authentication for ChipFlow users by automatically trying
multiple authentication methods in priority order.

Authentication flow:
1. CHIPFLOW_API_KEY environment variable (if set)
2. Saved credentials from previous login (if exists)
3. GitHub CLI token authentication (if gh is available)
4. OAuth 2.0 Device Flow (as fallback)

New features:
- Add chipflow/auth.py module with get_api_key() helper
- Add chipflow auth login/logout CLI commands
- Update silicon_step.py to use automatic authentication
- Save credentials to ~/.config/chipflow/credentials for reuse
- Support for GitHub token endpoint (POST /auth/github-token)
- Support for device flow endpoints

Benefits:
- Users just run "chipflow auth login" once
- Instant authentication for users with gh CLI
- Automatic fallback to device flow if needed
- No manual API key copying required
- Credentials persist across sessions

Documentation:
- Update getting-started.rst with new auth flow
- Update chipflow-commands.rst with auth command docs
- Add examples for both login methods

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <[email protected]>
Tests cover all authentication flows:
- Helper functions (is_gh_authenticated, get_gh_token, save/load)
- GitHub token authentication with success and error cases
- Device flow authentication with pending/success/timeout
- Main get_api_key function with priority fallback logic
- Force login functionality

All 21 tests pass successfully.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <[email protected]>
@robtaylor robtaylor force-pushed the feature/github-token-auth branch from a1f68ab to a6e1bcd Compare November 11, 2025 22:42
@robtaylor robtaylor force-pushed the feature/github-token-auth branch from a6e1bcd to 0fa3c1b Compare November 11, 2025 22:47
Copy link
Contributor Author

@robtaylor robtaylor left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good

@robtaylor robtaylor marked this pull request as ready for review November 11, 2025 23:03
@robtaylor robtaylor merged commit 6ce21cb into main Nov 11, 2025
6 checks passed
@robtaylor robtaylor deleted the feature/github-token-auth branch November 11, 2025 23:03
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.

2 participants