Skip to content

Conversation

@julwrites
Copy link
Owner

No description provided.

google-labs-jules bot and others added 8 commits November 23, 2025 01:41
- Replaced legacy scraping-based passage retrieval with API call to `query.verses`.
- Added new `search` command using `query.words`.
- Added new `ask` command using `query.prompt`.
- Defined API models in `pkg/app/api_models.go`.
- Created API client in `pkg/app/api_client.go`.
- Deprecated legacy passage retrieval functions in `pkg/app/passage.go`.
- Updated `pkg/app/command.go` and `pkg/app/const.go` to support new commands.
- Initialized `AGENTS.md` with architecture and development guidelines.
Integrate Bible AI API and add Search/Ask commands
Add unit tests for api_client, api_models, ask, search, and passage
- Add `cloud.google.com/go/secretmanager` dependency.
- Create `pkg/utils/secrets.go` to fetch secrets from Google Cloud Secret Manager.
- Update `pkg/app/api_client.go` to check `GOOGLE_CLOUD_PROJECT` and fetch credentials from Secret Manager if environment variables are missing.
- Implement caching in `getAPIConfig` to avoid repeated Secret Manager calls.
- Add `resetAPIConfigCache` helper for testing.
- Update `pkg/app/test_utils_test.go` to reset config cache when setting mock env vars.
- Add `TestGetAPIConfig_SecretManagerFallback` to verify fallback logic.
Add Secret Manager support for API credentials
@julwrites julwrites merged commit a20b0b4 into master Nov 23, 2025
2 checks passed
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