Commit f553bde
feat: add documentation and automation for GCP project recreation (gemini-cli-extensions#165)
* feat: add documentation and automation for GCP project recreation
- Add docs/GCP-RECREATION.md with step-by-step setup guide
- Add scripts/setup-gcp.sh to automate API enablement and infrastructure deployment
- Refactor AuthManager to support configurable CLIENT_ID and CLOUD_FUNCTION_URL via environment variables
- Update README.md with deployment section
* Apply suggestion from @gemini-code-assist[bot]
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
* Apply suggestion from @gemini-code-assist[bot]
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
* style: fix prettier formatting in docs
* Update scripts/setup-gcp.sh
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
* fix: restructure setup-gcp.sh to eliminate circular dependency
Reorder the script to deploy the Cloud Function first, then prompt
the user to create OAuth credentials using the deployed URL. This
fixes the chicken-and-egg problem identified in code review.
Update GCP-RECREATION.md to match the new linear flow.
* Update scripts/setup-gcp.sh
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
* fix: resolve setup script issues found during end-to-end testing
- Move env var validation from module-load to request-time in cloud
function so initial deploy (without OAuth config) can start
- Fix trailing newline in stored secret (echo -> echo -n) that caused
invalid_client errors during token exchange
- Add run.googleapis.com and artifactregistry.googleapis.com APIs
required by gen2 Cloud Functions
- Make script idempotent: skip initial deploy if function already exists
- Integrate OAuth consent screen setup into script flow with browser
auto-open, scopes list, and test users reminder
- Open Credentials page in browser during OAuth client step
- Upgrade Cloud Function runtime from nodejs20 to nodejs22
- Generate package-lock.json for cloud function
* style: fix prettier formatting in cloud function
* chore: update copyright year to 2026
* Updating lint config to support both 2025 and 2026 years in the license header.
* Updating deps for new eslint-plugin-headers package.
* format fix
---------
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>1 parent ceb5cf4 commit f553bde
11 files changed
Lines changed: 3219 additions & 35 deletions
File tree
- cloud_function
- docs
- scripts
- workspace-server/src
- __tests__/utils
- auth
- utils
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
54 | 54 | | |
55 | 55 | | |
56 | 56 | | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
57 | 62 | | |
58 | 63 | | |
59 | 64 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
15 | 17 | | |
16 | 18 | | |
17 | 19 | | |
18 | 20 | | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | 21 | | |
27 | 22 | | |
28 | 23 | | |
| |||
340 | 335 | | |
341 | 336 | | |
342 | 337 | | |
| 338 | + | |
| 339 | + | |
| 340 | + | |
| 341 | + | |
| 342 | + | |
| 343 | + | |
| 344 | + | |
| 345 | + | |
| 346 | + | |
343 | 347 | | |
344 | 348 | | |
345 | 349 | | |
| |||
0 commit comments