Skip to content

Commit b1cfda8

Browse files
chore: Rename package scope from @google to @blocksuser
- Update package.json files to use @blocksuser/gemini-cli and @blocksuser/gemini-cli-core - Update all import statements and references across 200+ files - Remove private flag to enable public npm publishing - Update prepare-package.js to exclude .npmrc files from bundling - Add reapply-renaming.sh script for reapplying changes This enables publishing to npm under the @blocksuser scope instead of the original @google scope. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <[email protected]>
1 parent 536a965 commit b1cfda8

File tree

164 files changed

+349
-315
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

164 files changed

+349
-315
lines changed

.github/workflows/release.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -169,15 +169,15 @@ jobs:
169169
registry-url: 'https://wombat-dressing-room.appspot.com'
170170
scope: '@google'
171171

172-
- name: 'Publish @google/gemini-cli-core'
172+
- name: 'Publish @blocksuser/gemini-cli-core'
173173
env:
174174
IS_DRY_RUN: '${{ steps.vars.outputs.is_dry_run }}'
175175
NODE_AUTH_TOKEN: '${{ secrets.WOMBAT_TOKEN_CORE }}'
176176
NPM_TAG: '${{ steps.version.outputs.NPM_TAG }}'
177177
run: |-
178178
npm publish \
179179
--dry-run="${IS_DRY_RUN}" \
180-
--workspace="@google/gemini-cli-core" \
180+
--workspace="@blocksuser/gemini-cli-core" \
181181
--tag="${NPM_TAG}"
182182
183183
- name: 'Install latest core package'
@@ -186,19 +186,19 @@ jobs:
186186
env:
187187
RELEASE_VERSION: '${{ steps.version.outputs.RELEASE_VERSION }}'
188188
run: |-
189-
npm install "@google/gemini-cli-core@${RELEASE_VERSION}" \
190-
--workspace="@google/gemini-cli" \
189+
npm install "@blocksuser/gemini-cli-core@${RELEASE_VERSION}" \
190+
--workspace="@blocksuser/gemini-cli" \
191191
--save-exact
192192
193-
- name: 'Publish @google/gemini-cli'
193+
- name: 'Publish @blocksuser/gemini-cli'
194194
env:
195195
IS_DRY_RUN: '${{ steps.vars.outputs.is_dry_run }}'
196196
NODE_AUTH_TOKEN: '${{ secrets.WOMBAT_TOKEN_CLI }}'
197197
NPM_TAG: '${{ steps.version.outputs.NPM_TAG }}'
198198
run: |-
199199
npm publish \
200200
--dry-run="${IS_DRY_RUN}" \
201-
--workspace="@google/gemini-cli" \
201+
--workspace="@blocksuser/gemini-cli" \
202202
--tag="${NPM_TAG}"
203203
204204
- name: 'Create GitHub Release and Tag'

README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Gemini CLI
22

33
[![Gemini CLI CI](https://github.com/google-gemini/gemini-cli/actions/workflows/ci.yml/badge.svg)](https://github.com/google-gemini/gemini-cli/actions/workflows/ci.yml)
4-
[![Version](https://img.shields.io/npm/v/@google/gemini-cli)](https://www.npmjs.com/package/@google/gemini-cli)
4+
[![Version](https://img.shields.io/npm/v/@blocksuser/gemini-cli)](https://www.npmjs.com/package/@blocksuser/gemini-cli)
55
[![License](https://img.shields.io/github/license/google-gemini/gemini-cli)](https://github.com/google-gemini/gemini-cli/blob/main/LICENSE)
66

77
![Gemini CLI Screenshot](./docs/assets/gemini-screenshot.png)
@@ -31,7 +31,7 @@ npx https://github.com/google-gemini/gemini-cli
3131
#### Install globally with npm
3232

3333
```bash
34-
npm install -g @google/gemini-cli
34+
npm install -g @blocksuser/gemini-cli
3535
```
3636

3737
#### Install globally with Homebrew (macOS/Linux)
@@ -54,23 +54,23 @@ See [Releases](./docs/releases.md) for more details.
5454
New preview releases will be published each week at UTC 2359 on Tuesdays. These releases will not have been fully vetted and may contain regressions or other outstanding issues. Please help us test and install with `preview` tag.
5555

5656
```bash
57-
npm install -g @google/gemini-cli@preview
57+
npm install -g @blocksuser/gemini-cli@preview
5858
```
5959

6060
### Stable
6161

6262
- New stable releases will be published each week at UTC 2000 on Tuesdays, this will be the full promotion of last week's `preview` release + any bug fixes and validations. Use `latest` tag.
6363

6464
```bash
65-
npm install -g @google/gemini-cli@latest
65+
npm install -g @blocksuser/gemini-cli@latest
6666
```
6767

6868
### Nightly
6969

7070
- New releases will be published each week at UTC 0000 each day, This will be all changes from the main branch as represented at time of release. It should be assumed there are pending validations and issues. Use `nightly` tag.
7171

7272
```bash
73-
npm install -g @google/gemini-cli@nightly
73+
npm install -g @blocksuser/gemini-cli@nightly
7474
```
7575

7676
## 📋 Key Features
@@ -289,7 +289,7 @@ Check our [Official Roadmap](https://github.com/orgs/google-gemini/projects/11/)
289289
## 📖 Resources
290290

291291
- **[Official Roadmap](./ROADMAP.md)** - See what's coming next
292-
- **[NPM Package](https://www.npmjs.com/package/@google/gemini-cli)** - Package registry
292+
- **[NPM Package](https://www.npmjs.com/package/@blocksuser/gemini-cli)** - Package registry
293293
- **[GitHub Issues](https://github.com/google-gemini/gemini-cli/issues)** - Report bugs or request features
294294
- **[Security Advisories](https://github.com/google-gemini/gemini-cli/security/advisories)** - Security updates
295295

docs/Uninstall.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,10 @@ Remove-Item -Path (Join-Path $env:LocalAppData "npm-cache\_npx") -Recurse -Force
3333

3434
## Method 2: Using npm (Global Install)
3535

36-
If you installed the CLI globally (e.g., `npm install -g @google/gemini-cli`), use the `npm uninstall` command with the `-g` flag to remove it.
36+
If you installed the CLI globally (e.g., `npm install -g @blocksuser/gemini-cli`), use the `npm uninstall` command with the `-g` flag to remove it.
3737

3838
```bash
39-
npm uninstall -g @google/gemini-cli
39+
npm uninstall -g @blocksuser/gemini-cli
4040
```
4141

4242
This command completely removes the package from your system.

docs/deployment.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ This is the recommended way for end-users to install Gemini CLI. It involves dow
1515
- **Global install:**
1616

1717
```bash
18-
npm install -g @google/gemini-cli
18+
npm install -g @blocksuser/gemini-cli
1919
```
2020

2121
Then, run the CLI from anywhere:
@@ -28,7 +28,7 @@ This is the recommended way for end-users to install Gemini CLI. It involves dow
2828

2929
```bash
3030
# Execute the latest version from NPM without a global install
31-
npx @google/gemini-cli
31+
npx @blocksuser/gemini-cli
3232
```
3333

3434
---
@@ -91,16 +91,16 @@ The execution methods described above are made possible by the following archite
9191

9292
Gemini CLI project is a monorepo that publishes two core packages to the NPM registry:
9393

94-
- `@google/gemini-cli-core`: The backend, handling logic and tool execution.
95-
- `@google/gemini-cli`: The user-facing frontend.
94+
- `@blocksuser/gemini-cli-core`: The backend, handling logic and tool execution.
95+
- `@blocksuser/gemini-cli`: The user-facing frontend.
9696

9797
These packages are used when performing the standard installation and when running Gemini CLI from the source.
9898

9999
**Build and packaging processes**
100100

101101
There are two distinct build processes used, depending on the distribution channel:
102102

103-
- **NPM publication:** For publishing to the NPM registry, the TypeScript source code in `@google/gemini-cli-core` and `@google/gemini-cli` is transpiled into standard JavaScript using the TypeScript Compiler (`tsc`). The resulting `dist/` directory is what gets published in the NPM package. This is a standard approach for TypeScript libraries.
103+
- **NPM publication:** For publishing to the NPM registry, the TypeScript source code in `@blocksuser/gemini-cli-core` and `@blocksuser/gemini-cli` is transpiled into standard JavaScript using the TypeScript Compiler (`tsc`). The resulting `dist/` directory is what gets published in the NPM package. This is a standard approach for TypeScript libraries.
104104

105105
- **GitHub `npx` execution:** When running the latest version of Gemini CLI directly from GitHub, a different process is triggered by the `prepare` script in `package.json`. This script uses `esbuild` to bundle the entire application and its dependencies into a single, self-contained JavaScript file. This bundle is created on-the-fly on the user's machine and is not checked into the repository.
106106

docs/npm.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
# Package Overview
22

3-
This monorepo contains two main packages: `@google/gemini-cli` and `@google/gemini-cli-core`.
3+
This monorepo contains two main packages: `@blocksuser/gemini-cli` and `@blocksuser/gemini-cli-core`.
44

5-
## `@google/gemini-cli`
5+
## `@blocksuser/gemini-cli`
66

77
This is the main package for the Gemini CLI. It is responsible for the user interface, command parsing, and all other user-facing functionality.
88

9-
When this package is published, it is bundled into a single executable file. This bundle includes all of the package's dependencies, including `@google/gemini-cli-core`. This means that whether a user installs the package with `npm install -g @google/gemini-cli` or runs it directly with `npx @google/gemini-cli`, they are using this single, self-contained executable.
9+
When this package is published, it is bundled into a single executable file. This bundle includes all of the package's dependencies, including `@blocksuser/gemini-cli-core`. This means that whether a user installs the package with `npm install -g @blocksuser/gemini-cli` or runs it directly with `npx @blocksuser/gemini-cli`, they are using this single, self-contained executable.
1010

11-
## `@google/gemini-cli-core`
11+
## `@blocksuser/gemini-cli-core`
1212

1313
This package contains the core logic for interacting with the Gemini API. It is responsible for making API requests, handling authentication, and managing the local cache.
1414

@@ -34,4 +34,4 @@ This tells NPM that any folder inside the `packages` directory is a separate pac
3434

3535
- **Simplified Dependency Management**: Running `npm install` from the root of the project will install all dependencies for all packages in the workspace and link them together. This means you don't need to run `npm install` in each package's directory.
3636
- **Automatic Linking**: Packages within the workspace can depend on each other. When you run `npm install`, NPM will automatically create symlinks between the packages. This means that when you make changes to one package, the changes are immediately available to other packages that depend on it.
37-
- **Simplified Script Execution**: You can run scripts in any package from the root of the project using the `--workspace` flag. For example, to run the `build` script in the `cli` package, you can run `npm run build --workspace @google/gemini-cli`.
37+
- **Simplified Script Execution**: You can run scripts in any package from the root of the project using the `--workspace` flag. For example, to run the `build` script in the `cli` package, you can run `npm run build --workspace @blocksuser/gemini-cli`.

docs/releases.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,23 +9,23 @@ We will follow https://semver.org/ as closely as possible but will call out when
99
New preview releases will be published each week at UTC 2359 on Tuesdays. These releases will not have been fully vetted and may contain regressions or other outstanding issues. Please help us test and install with `preview` tag.
1010

1111
```bash
12-
npm install -g @google/gemini-cli@preview
12+
npm install -g @blocksuser/gemini-cli@preview
1313
```
1414

1515
### Stable
1616

1717
- New stable releases will be published each week at UTC 2000 on Tuesdays, this will be the full promotion of last week's release + any bug fixes and validations. Use `latest` tag.
1818

1919
```bash
20-
npm install -g @google/gemini-cli@latest
20+
npm install -g @blocksuser/gemini-cli@latest
2121
```
2222

2323
### Nightly
2424

2525
- New releases will be published each week at UTC 0000 each day, This will be all changes from the main branch as represted at time of release. It should be assumed there are pending validations and issues. Use `nightly` tag.
2626

2727
```bash
28-
npm install -g @google/gemini-cli@nightly
28+
npm install -g @blocksuser/gemini-cli@nightly
2929
```
3030

3131
# Release Process.
@@ -202,9 +202,9 @@ We also run a Google cloud build called [release-docker.yml](../.gcp/release-doc
202202

203203
After pushing a new release smoke testing should be performed to ensure that the packages are working as expected. This can be done by installing the packages locally and running a set of tests to ensure that they are functioning correctly.
204204

205-
- `npx -y @google/gemini-cli@latest --version` to validate the push worked as expected if you were not doing a rc or dev tag
206-
- `npx -y @google/gemini-cli@<release tag> --version` to validate the tag pushed appropriately
207-
- _This is destructive locally_ `npm uninstall @google/gemini-cli && npm uninstall -g @google/gemini-cli && npm cache clean --force && npm install @google/gemini-cli@<version>`
205+
- `npx -y @blocksuser/gemini-cli@latest --version` to validate the push worked as expected if you were not doing a rc or dev tag
206+
- `npx -y @blocksuser/gemini-cli@<release tag> --version` to validate the tag pushed appropriately
207+
- _This is destructive locally_ `npm uninstall @blocksuser/gemini-cli && npm uninstall -g @blocksuser/gemini-cli && npm cache clean --force && npm install @blocksuser/gemini-cli@<version>`
208208
- Smoke testing a basic run through of exercising a few llm commands and tools is recommended to ensure that the packages are working as expected. We'll codify this more in the future.
209209

210210
## Local Testing and Validation: Changes to the Packaging and Publishing Process

docs/sandbox.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ This document provides a guide to sandboxing in the Gemini CLI, including prereq
77
Before using sandboxing, you need to install and set up the Gemini CLI:
88

99
```bash
10-
npm install -g @google/gemini-cli
10+
npm install -g @blocksuser/gemini-cli
1111
```
1212

1313
To verify the installation

docs/troubleshooting.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ This guide provides solutions to common issues and debugging tips, including top
2727
## Frequently asked questions (FAQs)
2828

2929
- **Q: How do I update Gemini CLI to the latest version?**
30-
- A: If you installed it globally via `npm`, update it using the command `npm install -g @google/gemini-cli@latest`. If you compiled it from source, pull the latest changes from the repository, and then rebuild using the command `npm run build`.
30+
- A: If you installed it globally via `npm`, update it using the command `npm install -g @blocksuser/gemini-cli@latest`. If you compiled it from source, pull the latest changes from the repository, and then rebuild using the command `npm run build`.
3131

3232
- **Q: Where are the Gemini CLI configuration or settings files stored?**
3333
- A: The Gemini CLI configuration is stored in two `settings.json` files:
@@ -50,7 +50,7 @@ This guide provides solutions to common issues and debugging tips, including top
5050
- **Cause:** Gemini CLI is not correctly installed or it is not in your system's `PATH`.
5151
- **Solution:**
5252
The update depends on how you installed Gemini CLI:
53-
- If you installed `gemini` globally, check that your `npm` global binary directory is in your `PATH`. You can update Gemini CLI using the command `npm install -g @google/gemini-cli@latest`.
53+
- If you installed `gemini` globally, check that your `npm` global binary directory is in your `PATH`. You can update Gemini CLI using the command `npm install -g @blocksuser/gemini-cli@latest`.
5454
- If you are running `gemini` from source, ensure you are using the correct command to invoke it (e.g., `node packages/cli/dist/index.js ...`). To update Gemini CLI, pull the latest changes from the repository, and then rebuild using the command `npm run build`.
5555

5656
- **Error: `MODULE_NOT_FOUND` or import errors.**

package.json

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "@google/gemini-cli",
2+
"name": "@blocksuser/gemini-cli",
33
"version": "0.3.3",
44
"engines": {
55
"node": ">=20.0.0"
@@ -8,7 +8,6 @@
88
"workspaces": [
99
"packages/*"
1010
],
11-
"private": "true",
1211
"repository": {
1312
"type": "git",
1413
"url": "git+https://github.com/google-gemini/gemini-cli.git"
@@ -18,7 +17,7 @@
1817
},
1918
"scripts": {
2019
"start": "node scripts/start.js",
21-
"start:a2a-server": "CODER_AGENT_PORT=41242 npm run start --workspace @google/gemini-cli-a2a-server",
20+
"start:a2a-server": "CODER_AGENT_PORT=41242 npm run start --workspace @blocksuser/gemini-cli-a2a-server",
2221
"debug": "cross-env DEBUG=1 node --inspect-brk scripts/start.js",
2322
"auth:npm": "npx google-artifactregistry-auth",
2423
"auth:docker": "gcloud auth configure-docker us-west1-docker.pkg.dev",

packages/a2a-server/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "@google/gemini-cli-a2a-server",
2+
"name": "@blocksuser/gemini-cli-a2a-server",
33
"version": "0.3.3",
44
"private": true,
55
"description": "Gemini CLI A2A Server",
@@ -25,7 +25,7 @@
2525
"dependencies": {
2626
"@a2a-js/sdk": "^0.3.2",
2727
"@google-cloud/storage": "^7.16.0",
28-
"@google/gemini-cli-core": "file:../core",
28+
"@blocksuser/gemini-cli-core": "file:../core",
2929
"express": "^5.1.0",
3030
"fs-extra": "^11.3.0",
3131
"tar": "^7.4.3",

0 commit comments

Comments
 (0)