From 9dee80e72d32989fff1152fe6f67bc651a1d3512 Mon Sep 17 00:00:00 2001 From: Greg Shikhman Date: Wed, 17 Sep 2025 22:12:42 +0000 Subject: [PATCH 1/2] Add a version specifier to the npx command for GCP AR auth. --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 2f12d6e3ec6..70cccecb6e1 100644 --- a/package.json +++ b/package.json @@ -20,7 +20,7 @@ "start": "node scripts/start.js", "start:a2a-server": "CODER_AGENT_PORT=41242 npm run start --workspace @google/gemini-cli-a2a-server", "debug": "cross-env DEBUG=1 node --inspect-brk scripts/start.js", - "auth:npm": "npx google-artifactregistry-auth", + "auth:npm": "npx google-artifactregistry-auth@3.4.0", "auth:docker": "gcloud auth configure-docker us-west1-docker.pkg.dev", "auth": "npm run auth:npm && npm run auth:docker", "generate": "node scripts/generate-git-commit-info.js", From 4a278907a30ef6714cc47b03580c6223869272b7 Mon Sep 17 00:00:00 2001 From: Greg Shikhman Date: Thu, 18 Sep 2025 14:29:27 +0000 Subject: [PATCH 2/2] Update based on review feedback --- npm-shrinkwrap.json | 15 +++++++++++++++ package.json | 3 ++- 2 files changed, 17 insertions(+), 1 deletion(-) diff --git a/npm-shrinkwrap.json b/npm-shrinkwrap.json index 49d2fe33043..5a973dfe27d 100644 --- a/npm-shrinkwrap.json +++ b/npm-shrinkwrap.json @@ -34,6 +34,7 @@ "eslint-plugin-react-hooks": "^5.2.0", "glob": "^10.4.5", "globals": "^16.0.0", + "google-artifactregistry-auth": "^3.4.0", "json": "^11.0.0", "memfs": "^4.17.2", "mnemonist": "^0.40.3", @@ -8980,6 +8981,20 @@ "url": "https://github.com/sponsors/sindresorhus" } }, + "node_modules/google-artifactregistry-auth": { + "version": "3.4.0", + "resolved": "https://registry.npmjs.org/google-artifactregistry-auth/-/google-artifactregistry-auth-3.4.0.tgz", + "integrity": "sha512-Z2EmP7gbKtTmK5k846tfF7dQqeU2vREIcfCI79FKRTAdkbUZ/BFGJwwTvC2ss0vYSySvK7h6I1JsqBFqIXABBg==", + "dev": true, + "license": "Apache-2.0", + "dependencies": { + "google-auth-library": "^9.14.0", + "yargs": "^17.1.1" + }, + "bin": { + "artifactregistry-auth": "src/main.js" + } + }, "node_modules/google-auth-library": { "version": "9.15.1", "resolved": "https://registry.npmjs.org/google-auth-library/-/google-auth-library-9.15.1.tgz", diff --git a/package.json b/package.json index 70cccecb6e1..d888bf9d22e 100644 --- a/package.json +++ b/package.json @@ -20,7 +20,7 @@ "start": "node scripts/start.js", "start:a2a-server": "CODER_AGENT_PORT=41242 npm run start --workspace @google/gemini-cli-a2a-server", "debug": "cross-env DEBUG=1 node --inspect-brk scripts/start.js", - "auth:npm": "npx google-artifactregistry-auth@3.4.0", + "auth:npm": "npx google-artifactregistry-auth", "auth:docker": "gcloud auth configure-docker us-west1-docker.pkg.dev", "auth": "npm run auth:npm && npm run auth:docker", "generate": "node scripts/generate-git-commit-info.js", @@ -80,6 +80,7 @@ "eslint-plugin-react-hooks": "^5.2.0", "glob": "^10.4.5", "globals": "^16.0.0", + "google-artifactregistry-auth": "^3.4.0", "json": "^11.0.0", "memfs": "^4.17.2", "mnemonist": "^0.40.3",