gitcode-cli 0.13.0__tar.gz → 0.14.1__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (22) hide show
  1. {gitcode_cli-0.13.0/gitcode_cli.egg-info → gitcode_cli-0.14.1}/PKG-INFO +36 -24
  2. {gitcode_cli-0.13.0 → gitcode_cli-0.14.1}/README.md +35 -23
  3. {gitcode_cli-0.13.0 → gitcode_cli-0.14.1}/gc_cli/__init__.py +1 -1
  4. {gitcode_cli-0.13.0 → gitcode_cli-0.14.1}/gc_cli/bin/gc-darwin-amd64 +0 -0
  5. {gitcode_cli-0.13.0 → gitcode_cli-0.14.1}/gc_cli/bin/gc-darwin-arm64 +0 -0
  6. {gitcode_cli-0.13.0 → gitcode_cli-0.14.1}/gc_cli/bin/gc-linux-amd64 +0 -0
  7. {gitcode_cli-0.13.0 → gitcode_cli-0.14.1}/gc_cli/bin/gc-linux-arm64 +0 -0
  8. {gitcode_cli-0.13.0 → gitcode_cli-0.14.1}/gc_cli/bin/gc-windows-amd64.exe +0 -0
  9. {gitcode_cli-0.13.0 → gitcode_cli-0.14.1/gitcode_cli.egg-info}/PKG-INFO +36 -24
  10. {gitcode_cli-0.13.0 → gitcode_cli-0.14.1}/pyproject.toml +1 -1
  11. {gitcode_cli-0.13.0 → gitcode_cli-0.14.1}/LICENSE +0 -0
  12. {gitcode_cli-0.13.0 → gitcode_cli-0.14.1}/MANIFEST.in +0 -0
  13. {gitcode_cli-0.13.0 → gitcode_cli-0.14.1}/gc_cli/__main__.py +0 -0
  14. {gitcode_cli-0.13.0 → gitcode_cli-0.14.1}/gc_cli/bin/.gitkeep +0 -0
  15. {gitcode_cli-0.13.0 → gitcode_cli-0.14.1}/gc_cli/wrapper.py +0 -0
  16. {gitcode_cli-0.13.0 → gitcode_cli-0.14.1}/gitcode_cli.egg-info/SOURCES.txt +0 -0
  17. {gitcode_cli-0.13.0 → gitcode_cli-0.14.1}/gitcode_cli.egg-info/dependency_links.txt +0 -0
  18. {gitcode_cli-0.13.0 → gitcode_cli-0.14.1}/gitcode_cli.egg-info/entry_points.txt +0 -0
  19. {gitcode_cli-0.13.0 → gitcode_cli-0.14.1}/gitcode_cli.egg-info/top_level.txt +0 -0
  20. {gitcode_cli-0.13.0 → gitcode_cli-0.14.1}/setup.cfg +0 -0
  21. {gitcode_cli-0.13.0 → gitcode_cli-0.14.1}/tests/test_verify_remote_facts.py +0 -0
  22. {gitcode_cli-0.13.0 → gitcode_cli-0.14.1}/tests/test_wrapper.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: gitcode-cli
3
- Version: 0.13.0
3
+ Version: 0.14.1
4
4
  Summary: GitCode CLI - Command line tool for GitCode
5
5
  Author-email: GitCode CLI Contributors <support@gitcode.com>
6
6
  Maintainer-email: GitCode CLI Contributors <support@gitcode.com>
@@ -27,15 +27,15 @@ Description-Content-Type: text/markdown
27
27
  License-File: LICENSE
28
28
  Dynamic: license-file
29
29
 
30
- # GitCode CLI
30
+ # AtomGit CLI(原 GitCode CLI)
31
31
 
32
32
  [![AI 操作指南](https://img.shields.io/badge/📖_使用_AI_操作_GitCode_指南-点击查看-FF6B6B?style=for-the-badge)](./docs/AI-GUIDE.md)
33
33
 
34
34
  [![Go Version](https://img.shields.io/badge/Go-1.22+-00ADD8?style=flat&logo=go)](https://golang.org)
35
35
  [![License](https://img.shields.io/badge/License-MIT-blue.svg)](LICENSE)
36
- [![Release](https://img.shields.io/badge/Release-latest-blue)](https://gitcode.com/gitcode-cli/cli/releases)
36
+ [![Release](https://img.shields.io/badge/Release-latest-blue)](https://gitcode.com/atomgit-cli/cli/releases)
37
37
 
38
- GitCode CLI 把仓库、Issue、PR、Release 和 Actions 带回终端,让开发者减少页面切换,也让脚本与 AI 获得结构化、可审计、带安全边界的 GitCode 执行入口。
38
+ AtomGit CLI(原 GitCode CLI)把仓库、Issue、PR、Release 和 Actions 带回终端,让开发者减少页面切换,也让脚本与 AI 获得结构化、可审计、带安全边界的 GitCode 执行入口。
39
39
 
40
40
  [快速了解核心价值与应用场景,并在五分钟内开始使用](./docs/INTRODUCTION.md)。
41
41
 
@@ -67,33 +67,39 @@ GitCode CLI 把仓库、Issue、PR、Release 和 Actions 带回终端,让开
67
67
 
68
68
  ## 安装
69
69
 
70
- 推荐只让一个全局安装渠道拥有 `gc` / `gitcode`。已安装 Node.js/npm 的 Windows、Linux、macOS 与 AI 环境优先使用下方 npm bootstrap;没有 Node.js 时再选择 Homebrew、DEB/RPM 或隔离的 Python wheel。CI 建议固定版本并校验 checksum。
70
+ 推荐只让一个全局安装渠道拥有 `gc` / `gitcode`。已安装 Node.js/npm 的 Windows、Linux、macOS、OpenHarmony(arm64)与 AI 环境优先使用下方 npm bootstrap;没有 Node.js 时再选择 Homebrew、DEB/RPM 或隔离的 Python wheel。CI 建议固定版本并校验 checksum。
71
71
 
72
72
  ### 推荐:npm 一行 bootstrap(跨平台)
73
73
 
74
- 已安装 Node.js/npm 时,安装或升级 CLI 的首选入口是:
74
+ 已安装 Node.js/npm 时,安装或升级 CLI 的首选入口(推荐坐标 `atomgit-cli`):
75
75
 
76
76
  ```bash
77
- npx -y @gitcode-cli/cli@latest install
77
+ npx -y atomgit-cli@latest install
78
78
  gitcode version
79
79
  ```
80
80
 
81
+ 等价坐标:`npx -y @gitcode-cli/cli@latest install`(与 `@atomgit-cli/cli` 并行等价,旧坐标长期可用,存量安装无需迁移)。npm 上的裸名 `gitcode-cli` 为第三方无关项目,请勿安装。
82
+
81
83
  短命令适合用户主目录等可信环境,会继承当前目录与用户的 npm 配置。CI、审计、不可信项目目录或自定义 npm registry 环境请使用完整加固命令:
82
84
 
83
85
  ```bash
84
- npx --yes --ignore-scripts --registry=https://registry.npmjs.org --@gitcode-cli:registry=https://registry.npmjs.org @gitcode-cli/cli@latest install
86
+ npx --yes --ignore-scripts --registry=https://registry.npmjs.org atomgit-cli@latest install
85
87
  ```
86
88
 
89
+ (scoped 坐标加固形式:`npx --yes --ignore-scripts --registry=https://registry.npmjs.org --@gitcode-cli:registry=https://registry.npmjs.org @gitcode-cli/cli@latest install`)
90
+
87
91
  CI、审计或版本复现可固定版本:
88
92
 
89
93
  ```bash
90
- npx --yes --ignore-scripts --registry=https://registry.npmjs.org --@gitcode-cli:registry=https://registry.npmjs.org @gitcode-cli/cli@0.13.0 install
94
+ npx --yes --ignore-scripts --registry=https://registry.npmjs.org atomgit-cli@0.14.1 install
91
95
  ```
92
96
 
93
- 不要使用 `npm i @gitcode-cli/cli` 或 `npm install @gitcode-cli/cli` 安装全局 CLI;这两条命令只会把包加入当前项目的 `node_modules`,不会更新 PATH 中已有的 `gitcode`。需要由 npm global prefix 管理入口时,可改用:
97
+ (scoped 坐标锁定形式:`npx --yes --ignore-scripts --registry=https://registry.npmjs.org --@gitcode-cli:registry=https://registry.npmjs.org @gitcode-cli/cli@0.14.1 install`)
98
+
99
+ 不要使用 `npm i atomgit-cli` 或 `npm install atomgit-cli` 安装全局 CLI;这两条命令只会把包加入当前项目的 `node_modules`,不会更新 PATH 中已有的 `gitcode`。需要由 npm global prefix 管理入口时,可改用:
94
100
 
95
101
  ```bash
96
- npm install -g --ignore-scripts --registry=https://registry.npmjs.org --@gitcode-cli:registry=https://registry.npmjs.org @gitcode-cli/cli@latest
102
+ npm install -g --ignore-scripts --registry=https://registry.npmjs.org atomgit-cli@latest
97
103
  gitcode version
98
104
  ```
99
105
 
@@ -117,7 +123,7 @@ gitcode doctor install --json
117
123
 
118
124
  ```bash
119
125
  # 克隆仓库(需要 git clone 才能获取版本信息)
120
- git clone https://gitcode.com/gitcode-cli/cli.git
126
+ git clone https://gitcode.com/atomgit-cli/cli.git
121
127
  cd cli
122
128
 
123
129
  # 方式一:使用 go build(推荐)
@@ -143,10 +149,10 @@ export PATH="$HOME/.local/bin:$PATH"
143
149
 
144
150
  ```bash
145
151
  # 从 Releases 下载 .deb 包
146
- wget https://gitcode.com/gitcode-cli/cli/releases/download/v0.13.0/gc_0.13.0_amd64.deb
152
+ wget https://gitcode.com/atomgit-cli/cli/releases/download/v0.14.1/gc_0.14.1_amd64.deb
147
153
 
148
154
  # 安装
149
- sudo dpkg -i gc_0.13.0_amd64.deb
155
+ sudo dpkg -i gc_0.14.1_amd64.deb
150
156
  ```
151
157
 
152
158
  DEB/RPM packages install both `gc` and `gitcode`; on Linux they are equivalent.
@@ -155,10 +161,10 @@ DEB/RPM packages install both `gc` and `gitcode`; on Linux they are equivalent.
155
161
 
156
162
  ```bash
157
163
  # 从 Releases 下载 .rpm 包
158
- wget https://gitcode.com/gitcode-cli/cli/releases/download/v0.13.0/gc-0.13.0-1.x86_64.rpm
164
+ wget https://gitcode.com/atomgit-cli/cli/releases/download/v0.14.1/gc-0.14.1-1.x86_64.rpm
159
165
 
160
166
  # 安装
161
- sudo rpm -i gc-0.13.0-1.x86_64.rpm
167
+ sudo rpm -i gc-0.14.1-1.x86_64.rpm
162
168
  ```
163
169
 
164
170
  DEB/RPM packages install both `gc` and `gitcode`; on Linux they are equivalent.
@@ -174,7 +180,7 @@ source .venv/bin/activate # Linux/macOS
174
180
  # .\.venv\Scripts\Activate.ps1 # Windows PowerShell
175
181
 
176
182
  # 安装(一行命令)
177
- pip install https://gitcode.com/gitcode-cli/cli/releases/download/v0.13.0/gitcode_cli-0.13.0-py3-none-any.whl
183
+ pip install https://gitcode.com/atomgit-cli/cli/releases/download/v0.14.1/gitcode_cli-0.14.1-py3-none-any.whl
178
184
 
179
185
  # Windows PowerShell 中推荐使用 gitcode,避免 gc 被内置 Get-Content 别名覆盖
180
186
  gitcode version
@@ -204,7 +210,7 @@ source .venv/bin/activate # Linux/macOS
204
210
  # .\.venv\Scripts\Activate.ps1 # Windows PowerShell
205
211
 
206
212
  # 固定版本安装,避免 PyPI 尚未同步时安装旧版本
207
- python -m pip install -i https://pypi.org/simple/ gitcode-cli==0.13.0
213
+ python -m pip install -i https://pypi.org/simple/ gitcode-cli==0.14.1
208
214
 
209
215
  # Windows PowerShell 中推荐使用 gitcode
210
216
  gitcode version
@@ -219,7 +225,7 @@ gitcode version
219
225
  | Linux x64 | `gc_linux_amd64` |
220
226
  | Linux ARM64 | `gc_linux_arm64` |
221
227
 
222
- 下载地址: https://gitcode.com/gitcode-cli/cli/releases
228
+ 下载地址: https://gitcode.com/atomgit-cli/cli/releases
223
229
 
224
230
  下载后赋予可执行权限,并放到 PATH 目录:
225
231
 
@@ -261,7 +267,7 @@ unset GC_TOKEN
261
267
  ### Homebrew (macOS/Linux)
262
268
 
263
269
  ```bash
264
- brew install gitcode-cli/homebrew-tap/gc
270
+ brew install atomgit-cli/homebrew-tap/gc
265
271
  ```
266
272
 
267
273
  更新到最新版本:
@@ -419,6 +425,12 @@ gitcode precommit check
419
425
  # 查看流水线运行记录
420
426
  gitcode actions run list -R owner/repo --status FAILED
421
427
 
428
+ # 启用单个仓库的 Actions(交互确认)
429
+ gitcode actions setting enable -R owner/repo
430
+
431
+ # 启用组织下全部仓库的 Actions(非交互)
432
+ gitcode actions setting enable --org my-org --yes
433
+
422
434
  # 查看流水线运行详情
423
435
  gitcode actions run view <run-id> -R owner/repo
424
436
 
@@ -490,15 +502,15 @@ source ~/.config/fish/config.fish
490
502
  补充说明:
491
503
 
492
504
  - `docs/AI-GUIDE.md` 只服务外部项目通过 AI 使用 `gitcode`(或源码构建的 `gc`)
493
- - gitcode-cli 仓库内部 AI 开发请看 `AGENTS.md`、`CLAUDE.md` 和 `spec/workflows/ai-local-development-workflow.md`
505
+ - atomgit-cli 仓库内部 AI 开发请看 `AGENTS.md`、`CLAUDE.md` 和 `spec/workflows/ai-local-development-workflow.md`
494
506
  - `issues-plan/PROGRESS.md` 只作为阶段说明,不作为单个 issue / PR 的实时事实依据
495
507
 
496
508
  ## 开发
497
509
 
498
510
  ```bash
499
511
  # 克隆仓库
500
- git clone https://gitcode.com/gitcode-cli/cli.git
501
- cd gitcode-cli
512
+ git clone https://gitcode.com/atomgit-cli/cli.git
513
+ cd cli
502
514
 
503
515
  # 安装依赖
504
516
  make deps
@@ -532,4 +544,4 @@ make run
532
544
 
533
545
  - [GitCode](https://gitcode.com) - GitCode 平台
534
546
  - [API 文档](https://docs.gitcode.com/docs/apis/) - GitCode API 参考
535
- - [问题反馈](https://gitcode.com/gitcode-cli/cli/issues) - 提交 Bug 或建议
547
+ - [问题反馈](https://gitcode.com/atomgit-cli/cli/issues) - 提交 Bug 或建议
@@ -1,12 +1,12 @@
1
- # GitCode CLI
1
+ # AtomGit CLI(原 GitCode CLI)
2
2
 
3
3
  [![AI 操作指南](https://img.shields.io/badge/📖_使用_AI_操作_GitCode_指南-点击查看-FF6B6B?style=for-the-badge)](./docs/AI-GUIDE.md)
4
4
 
5
5
  [![Go Version](https://img.shields.io/badge/Go-1.22+-00ADD8?style=flat&logo=go)](https://golang.org)
6
6
  [![License](https://img.shields.io/badge/License-MIT-blue.svg)](LICENSE)
7
- [![Release](https://img.shields.io/badge/Release-latest-blue)](https://gitcode.com/gitcode-cli/cli/releases)
7
+ [![Release](https://img.shields.io/badge/Release-latest-blue)](https://gitcode.com/atomgit-cli/cli/releases)
8
8
 
9
- GitCode CLI 把仓库、Issue、PR、Release 和 Actions 带回终端,让开发者减少页面切换,也让脚本与 AI 获得结构化、可审计、带安全边界的 GitCode 执行入口。
9
+ AtomGit CLI(原 GitCode CLI)把仓库、Issue、PR、Release 和 Actions 带回终端,让开发者减少页面切换,也让脚本与 AI 获得结构化、可审计、带安全边界的 GitCode 执行入口。
10
10
 
11
11
  [快速了解核心价值与应用场景,并在五分钟内开始使用](./docs/INTRODUCTION.md)。
12
12
 
@@ -38,33 +38,39 @@ GitCode CLI 把仓库、Issue、PR、Release 和 Actions 带回终端,让开
38
38
 
39
39
  ## 安装
40
40
 
41
- 推荐只让一个全局安装渠道拥有 `gc` / `gitcode`。已安装 Node.js/npm 的 Windows、Linux、macOS 与 AI 环境优先使用下方 npm bootstrap;没有 Node.js 时再选择 Homebrew、DEB/RPM 或隔离的 Python wheel。CI 建议固定版本并校验 checksum。
41
+ 推荐只让一个全局安装渠道拥有 `gc` / `gitcode`。已安装 Node.js/npm 的 Windows、Linux、macOS、OpenHarmony(arm64)与 AI 环境优先使用下方 npm bootstrap;没有 Node.js 时再选择 Homebrew、DEB/RPM 或隔离的 Python wheel。CI 建议固定版本并校验 checksum。
42
42
 
43
43
  ### 推荐:npm 一行 bootstrap(跨平台)
44
44
 
45
- 已安装 Node.js/npm 时,安装或升级 CLI 的首选入口是:
45
+ 已安装 Node.js/npm 时,安装或升级 CLI 的首选入口(推荐坐标 `atomgit-cli`):
46
46
 
47
47
  ```bash
48
- npx -y @gitcode-cli/cli@latest install
48
+ npx -y atomgit-cli@latest install
49
49
  gitcode version
50
50
  ```
51
51
 
52
+ 等价坐标:`npx -y @gitcode-cli/cli@latest install`(与 `@atomgit-cli/cli` 并行等价,旧坐标长期可用,存量安装无需迁移)。npm 上的裸名 `gitcode-cli` 为第三方无关项目,请勿安装。
53
+
52
54
  短命令适合用户主目录等可信环境,会继承当前目录与用户的 npm 配置。CI、审计、不可信项目目录或自定义 npm registry 环境请使用完整加固命令:
53
55
 
54
56
  ```bash
55
- npx --yes --ignore-scripts --registry=https://registry.npmjs.org --@gitcode-cli:registry=https://registry.npmjs.org @gitcode-cli/cli@latest install
57
+ npx --yes --ignore-scripts --registry=https://registry.npmjs.org atomgit-cli@latest install
56
58
  ```
57
59
 
60
+ (scoped 坐标加固形式:`npx --yes --ignore-scripts --registry=https://registry.npmjs.org --@gitcode-cli:registry=https://registry.npmjs.org @gitcode-cli/cli@latest install`)
61
+
58
62
  CI、审计或版本复现可固定版本:
59
63
 
60
64
  ```bash
61
- npx --yes --ignore-scripts --registry=https://registry.npmjs.org --@gitcode-cli:registry=https://registry.npmjs.org @gitcode-cli/cli@0.13.0 install
65
+ npx --yes --ignore-scripts --registry=https://registry.npmjs.org atomgit-cli@0.14.1 install
62
66
  ```
63
67
 
64
- 不要使用 `npm i @gitcode-cli/cli` 或 `npm install @gitcode-cli/cli` 安装全局 CLI;这两条命令只会把包加入当前项目的 `node_modules`,不会更新 PATH 中已有的 `gitcode`。需要由 npm global prefix 管理入口时,可改用:
68
+ (scoped 坐标锁定形式:`npx --yes --ignore-scripts --registry=https://registry.npmjs.org --@gitcode-cli:registry=https://registry.npmjs.org @gitcode-cli/cli@0.14.1 install`)
69
+
70
+ 不要使用 `npm i atomgit-cli` 或 `npm install atomgit-cli` 安装全局 CLI;这两条命令只会把包加入当前项目的 `node_modules`,不会更新 PATH 中已有的 `gitcode`。需要由 npm global prefix 管理入口时,可改用:
65
71
 
66
72
  ```bash
67
- npm install -g --ignore-scripts --registry=https://registry.npmjs.org --@gitcode-cli:registry=https://registry.npmjs.org @gitcode-cli/cli@latest
73
+ npm install -g --ignore-scripts --registry=https://registry.npmjs.org atomgit-cli@latest
68
74
  gitcode version
69
75
  ```
70
76
 
@@ -88,7 +94,7 @@ gitcode doctor install --json
88
94
 
89
95
  ```bash
90
96
  # 克隆仓库(需要 git clone 才能获取版本信息)
91
- git clone https://gitcode.com/gitcode-cli/cli.git
97
+ git clone https://gitcode.com/atomgit-cli/cli.git
92
98
  cd cli
93
99
 
94
100
  # 方式一:使用 go build(推荐)
@@ -114,10 +120,10 @@ export PATH="$HOME/.local/bin:$PATH"
114
120
 
115
121
  ```bash
116
122
  # 从 Releases 下载 .deb 包
117
- wget https://gitcode.com/gitcode-cli/cli/releases/download/v0.13.0/gc_0.13.0_amd64.deb
123
+ wget https://gitcode.com/atomgit-cli/cli/releases/download/v0.14.1/gc_0.14.1_amd64.deb
118
124
 
119
125
  # 安装
120
- sudo dpkg -i gc_0.13.0_amd64.deb
126
+ sudo dpkg -i gc_0.14.1_amd64.deb
121
127
  ```
122
128
 
123
129
  DEB/RPM packages install both `gc` and `gitcode`; on Linux they are equivalent.
@@ -126,10 +132,10 @@ DEB/RPM packages install both `gc` and `gitcode`; on Linux they are equivalent.
126
132
 
127
133
  ```bash
128
134
  # 从 Releases 下载 .rpm 包
129
- wget https://gitcode.com/gitcode-cli/cli/releases/download/v0.13.0/gc-0.13.0-1.x86_64.rpm
135
+ wget https://gitcode.com/atomgit-cli/cli/releases/download/v0.14.1/gc-0.14.1-1.x86_64.rpm
130
136
 
131
137
  # 安装
132
- sudo rpm -i gc-0.13.0-1.x86_64.rpm
138
+ sudo rpm -i gc-0.14.1-1.x86_64.rpm
133
139
  ```
134
140
 
135
141
  DEB/RPM packages install both `gc` and `gitcode`; on Linux they are equivalent.
@@ -145,7 +151,7 @@ source .venv/bin/activate # Linux/macOS
145
151
  # .\.venv\Scripts\Activate.ps1 # Windows PowerShell
146
152
 
147
153
  # 安装(一行命令)
148
- pip install https://gitcode.com/gitcode-cli/cli/releases/download/v0.13.0/gitcode_cli-0.13.0-py3-none-any.whl
154
+ pip install https://gitcode.com/atomgit-cli/cli/releases/download/v0.14.1/gitcode_cli-0.14.1-py3-none-any.whl
149
155
 
150
156
  # Windows PowerShell 中推荐使用 gitcode,避免 gc 被内置 Get-Content 别名覆盖
151
157
  gitcode version
@@ -175,7 +181,7 @@ source .venv/bin/activate # Linux/macOS
175
181
  # .\.venv\Scripts\Activate.ps1 # Windows PowerShell
176
182
 
177
183
  # 固定版本安装,避免 PyPI 尚未同步时安装旧版本
178
- python -m pip install -i https://pypi.org/simple/ gitcode-cli==0.13.0
184
+ python -m pip install -i https://pypi.org/simple/ gitcode-cli==0.14.1
179
185
 
180
186
  # Windows PowerShell 中推荐使用 gitcode
181
187
  gitcode version
@@ -190,7 +196,7 @@ gitcode version
190
196
  | Linux x64 | `gc_linux_amd64` |
191
197
  | Linux ARM64 | `gc_linux_arm64` |
192
198
 
193
- 下载地址: https://gitcode.com/gitcode-cli/cli/releases
199
+ 下载地址: https://gitcode.com/atomgit-cli/cli/releases
194
200
 
195
201
  下载后赋予可执行权限,并放到 PATH 目录:
196
202
 
@@ -232,7 +238,7 @@ unset GC_TOKEN
232
238
  ### Homebrew (macOS/Linux)
233
239
 
234
240
  ```bash
235
- brew install gitcode-cli/homebrew-tap/gc
241
+ brew install atomgit-cli/homebrew-tap/gc
236
242
  ```
237
243
 
238
244
  更新到最新版本:
@@ -390,6 +396,12 @@ gitcode precommit check
390
396
  # 查看流水线运行记录
391
397
  gitcode actions run list -R owner/repo --status FAILED
392
398
 
399
+ # 启用单个仓库的 Actions(交互确认)
400
+ gitcode actions setting enable -R owner/repo
401
+
402
+ # 启用组织下全部仓库的 Actions(非交互)
403
+ gitcode actions setting enable --org my-org --yes
404
+
393
405
  # 查看流水线运行详情
394
406
  gitcode actions run view <run-id> -R owner/repo
395
407
 
@@ -461,15 +473,15 @@ source ~/.config/fish/config.fish
461
473
  补充说明:
462
474
 
463
475
  - `docs/AI-GUIDE.md` 只服务外部项目通过 AI 使用 `gitcode`(或源码构建的 `gc`)
464
- - gitcode-cli 仓库内部 AI 开发请看 `AGENTS.md`、`CLAUDE.md` 和 `spec/workflows/ai-local-development-workflow.md`
476
+ - atomgit-cli 仓库内部 AI 开发请看 `AGENTS.md`、`CLAUDE.md` 和 `spec/workflows/ai-local-development-workflow.md`
465
477
  - `issues-plan/PROGRESS.md` 只作为阶段说明,不作为单个 issue / PR 的实时事实依据
466
478
 
467
479
  ## 开发
468
480
 
469
481
  ```bash
470
482
  # 克隆仓库
471
- git clone https://gitcode.com/gitcode-cli/cli.git
472
- cd gitcode-cli
483
+ git clone https://gitcode.com/atomgit-cli/cli.git
484
+ cd cli
473
485
 
474
486
  # 安装依赖
475
487
  make deps
@@ -503,4 +515,4 @@ make run
503
515
 
504
516
  - [GitCode](https://gitcode.com) - GitCode 平台
505
517
  - [API 文档](https://docs.gitcode.com/docs/apis/) - GitCode API 参考
506
- - [问题反馈](https://gitcode.com/gitcode-cli/cli/issues) - 提交 Bug 或建议
518
+ - [问题反馈](https://gitcode.com/atomgit-cli/cli/issues) - 提交 Bug 或建议
@@ -4,7 +4,7 @@ GitCode CLI - Command line tool for GitCode.
4
4
  This package provides a Python wrapper for the gc binary.
5
5
  """
6
6
 
7
- __version__ = "0.13.0"
7
+ __version__ = "0.14.1"
8
8
  __author__ = "GitCode CLI Contributors"
9
9
  __all__ = ["__version__", "main"]
10
10
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: gitcode-cli
3
- Version: 0.13.0
3
+ Version: 0.14.1
4
4
  Summary: GitCode CLI - Command line tool for GitCode
5
5
  Author-email: GitCode CLI Contributors <support@gitcode.com>
6
6
  Maintainer-email: GitCode CLI Contributors <support@gitcode.com>
@@ -27,15 +27,15 @@ Description-Content-Type: text/markdown
27
27
  License-File: LICENSE
28
28
  Dynamic: license-file
29
29
 
30
- # GitCode CLI
30
+ # AtomGit CLI(原 GitCode CLI)
31
31
 
32
32
  [![AI 操作指南](https://img.shields.io/badge/📖_使用_AI_操作_GitCode_指南-点击查看-FF6B6B?style=for-the-badge)](./docs/AI-GUIDE.md)
33
33
 
34
34
  [![Go Version](https://img.shields.io/badge/Go-1.22+-00ADD8?style=flat&logo=go)](https://golang.org)
35
35
  [![License](https://img.shields.io/badge/License-MIT-blue.svg)](LICENSE)
36
- [![Release](https://img.shields.io/badge/Release-latest-blue)](https://gitcode.com/gitcode-cli/cli/releases)
36
+ [![Release](https://img.shields.io/badge/Release-latest-blue)](https://gitcode.com/atomgit-cli/cli/releases)
37
37
 
38
- GitCode CLI 把仓库、Issue、PR、Release 和 Actions 带回终端,让开发者减少页面切换,也让脚本与 AI 获得结构化、可审计、带安全边界的 GitCode 执行入口。
38
+ AtomGit CLI(原 GitCode CLI)把仓库、Issue、PR、Release 和 Actions 带回终端,让开发者减少页面切换,也让脚本与 AI 获得结构化、可审计、带安全边界的 GitCode 执行入口。
39
39
 
40
40
  [快速了解核心价值与应用场景,并在五分钟内开始使用](./docs/INTRODUCTION.md)。
41
41
 
@@ -67,33 +67,39 @@ GitCode CLI 把仓库、Issue、PR、Release 和 Actions 带回终端,让开
67
67
 
68
68
  ## 安装
69
69
 
70
- 推荐只让一个全局安装渠道拥有 `gc` / `gitcode`。已安装 Node.js/npm 的 Windows、Linux、macOS 与 AI 环境优先使用下方 npm bootstrap;没有 Node.js 时再选择 Homebrew、DEB/RPM 或隔离的 Python wheel。CI 建议固定版本并校验 checksum。
70
+ 推荐只让一个全局安装渠道拥有 `gc` / `gitcode`。已安装 Node.js/npm 的 Windows、Linux、macOS、OpenHarmony(arm64)与 AI 环境优先使用下方 npm bootstrap;没有 Node.js 时再选择 Homebrew、DEB/RPM 或隔离的 Python wheel。CI 建议固定版本并校验 checksum。
71
71
 
72
72
  ### 推荐:npm 一行 bootstrap(跨平台)
73
73
 
74
- 已安装 Node.js/npm 时,安装或升级 CLI 的首选入口是:
74
+ 已安装 Node.js/npm 时,安装或升级 CLI 的首选入口(推荐坐标 `atomgit-cli`):
75
75
 
76
76
  ```bash
77
- npx -y @gitcode-cli/cli@latest install
77
+ npx -y atomgit-cli@latest install
78
78
  gitcode version
79
79
  ```
80
80
 
81
+ 等价坐标:`npx -y @gitcode-cli/cli@latest install`(与 `@atomgit-cli/cli` 并行等价,旧坐标长期可用,存量安装无需迁移)。npm 上的裸名 `gitcode-cli` 为第三方无关项目,请勿安装。
82
+
81
83
  短命令适合用户主目录等可信环境,会继承当前目录与用户的 npm 配置。CI、审计、不可信项目目录或自定义 npm registry 环境请使用完整加固命令:
82
84
 
83
85
  ```bash
84
- npx --yes --ignore-scripts --registry=https://registry.npmjs.org --@gitcode-cli:registry=https://registry.npmjs.org @gitcode-cli/cli@latest install
86
+ npx --yes --ignore-scripts --registry=https://registry.npmjs.org atomgit-cli@latest install
85
87
  ```
86
88
 
89
+ (scoped 坐标加固形式:`npx --yes --ignore-scripts --registry=https://registry.npmjs.org --@gitcode-cli:registry=https://registry.npmjs.org @gitcode-cli/cli@latest install`)
90
+
87
91
  CI、审计或版本复现可固定版本:
88
92
 
89
93
  ```bash
90
- npx --yes --ignore-scripts --registry=https://registry.npmjs.org --@gitcode-cli:registry=https://registry.npmjs.org @gitcode-cli/cli@0.13.0 install
94
+ npx --yes --ignore-scripts --registry=https://registry.npmjs.org atomgit-cli@0.14.1 install
91
95
  ```
92
96
 
93
- 不要使用 `npm i @gitcode-cli/cli` 或 `npm install @gitcode-cli/cli` 安装全局 CLI;这两条命令只会把包加入当前项目的 `node_modules`,不会更新 PATH 中已有的 `gitcode`。需要由 npm global prefix 管理入口时,可改用:
97
+ (scoped 坐标锁定形式:`npx --yes --ignore-scripts --registry=https://registry.npmjs.org --@gitcode-cli:registry=https://registry.npmjs.org @gitcode-cli/cli@0.14.1 install`)
98
+
99
+ 不要使用 `npm i atomgit-cli` 或 `npm install atomgit-cli` 安装全局 CLI;这两条命令只会把包加入当前项目的 `node_modules`,不会更新 PATH 中已有的 `gitcode`。需要由 npm global prefix 管理入口时,可改用:
94
100
 
95
101
  ```bash
96
- npm install -g --ignore-scripts --registry=https://registry.npmjs.org --@gitcode-cli:registry=https://registry.npmjs.org @gitcode-cli/cli@latest
102
+ npm install -g --ignore-scripts --registry=https://registry.npmjs.org atomgit-cli@latest
97
103
  gitcode version
98
104
  ```
99
105
 
@@ -117,7 +123,7 @@ gitcode doctor install --json
117
123
 
118
124
  ```bash
119
125
  # 克隆仓库(需要 git clone 才能获取版本信息)
120
- git clone https://gitcode.com/gitcode-cli/cli.git
126
+ git clone https://gitcode.com/atomgit-cli/cli.git
121
127
  cd cli
122
128
 
123
129
  # 方式一:使用 go build(推荐)
@@ -143,10 +149,10 @@ export PATH="$HOME/.local/bin:$PATH"
143
149
 
144
150
  ```bash
145
151
  # 从 Releases 下载 .deb 包
146
- wget https://gitcode.com/gitcode-cli/cli/releases/download/v0.13.0/gc_0.13.0_amd64.deb
152
+ wget https://gitcode.com/atomgit-cli/cli/releases/download/v0.14.1/gc_0.14.1_amd64.deb
147
153
 
148
154
  # 安装
149
- sudo dpkg -i gc_0.13.0_amd64.deb
155
+ sudo dpkg -i gc_0.14.1_amd64.deb
150
156
  ```
151
157
 
152
158
  DEB/RPM packages install both `gc` and `gitcode`; on Linux they are equivalent.
@@ -155,10 +161,10 @@ DEB/RPM packages install both `gc` and `gitcode`; on Linux they are equivalent.
155
161
 
156
162
  ```bash
157
163
  # 从 Releases 下载 .rpm 包
158
- wget https://gitcode.com/gitcode-cli/cli/releases/download/v0.13.0/gc-0.13.0-1.x86_64.rpm
164
+ wget https://gitcode.com/atomgit-cli/cli/releases/download/v0.14.1/gc-0.14.1-1.x86_64.rpm
159
165
 
160
166
  # 安装
161
- sudo rpm -i gc-0.13.0-1.x86_64.rpm
167
+ sudo rpm -i gc-0.14.1-1.x86_64.rpm
162
168
  ```
163
169
 
164
170
  DEB/RPM packages install both `gc` and `gitcode`; on Linux they are equivalent.
@@ -174,7 +180,7 @@ source .venv/bin/activate # Linux/macOS
174
180
  # .\.venv\Scripts\Activate.ps1 # Windows PowerShell
175
181
 
176
182
  # 安装(一行命令)
177
- pip install https://gitcode.com/gitcode-cli/cli/releases/download/v0.13.0/gitcode_cli-0.13.0-py3-none-any.whl
183
+ pip install https://gitcode.com/atomgit-cli/cli/releases/download/v0.14.1/gitcode_cli-0.14.1-py3-none-any.whl
178
184
 
179
185
  # Windows PowerShell 中推荐使用 gitcode,避免 gc 被内置 Get-Content 别名覆盖
180
186
  gitcode version
@@ -204,7 +210,7 @@ source .venv/bin/activate # Linux/macOS
204
210
  # .\.venv\Scripts\Activate.ps1 # Windows PowerShell
205
211
 
206
212
  # 固定版本安装,避免 PyPI 尚未同步时安装旧版本
207
- python -m pip install -i https://pypi.org/simple/ gitcode-cli==0.13.0
213
+ python -m pip install -i https://pypi.org/simple/ gitcode-cli==0.14.1
208
214
 
209
215
  # Windows PowerShell 中推荐使用 gitcode
210
216
  gitcode version
@@ -219,7 +225,7 @@ gitcode version
219
225
  | Linux x64 | `gc_linux_amd64` |
220
226
  | Linux ARM64 | `gc_linux_arm64` |
221
227
 
222
- 下载地址: https://gitcode.com/gitcode-cli/cli/releases
228
+ 下载地址: https://gitcode.com/atomgit-cli/cli/releases
223
229
 
224
230
  下载后赋予可执行权限,并放到 PATH 目录:
225
231
 
@@ -261,7 +267,7 @@ unset GC_TOKEN
261
267
  ### Homebrew (macOS/Linux)
262
268
 
263
269
  ```bash
264
- brew install gitcode-cli/homebrew-tap/gc
270
+ brew install atomgit-cli/homebrew-tap/gc
265
271
  ```
266
272
 
267
273
  更新到最新版本:
@@ -419,6 +425,12 @@ gitcode precommit check
419
425
  # 查看流水线运行记录
420
426
  gitcode actions run list -R owner/repo --status FAILED
421
427
 
428
+ # 启用单个仓库的 Actions(交互确认)
429
+ gitcode actions setting enable -R owner/repo
430
+
431
+ # 启用组织下全部仓库的 Actions(非交互)
432
+ gitcode actions setting enable --org my-org --yes
433
+
422
434
  # 查看流水线运行详情
423
435
  gitcode actions run view <run-id> -R owner/repo
424
436
 
@@ -490,15 +502,15 @@ source ~/.config/fish/config.fish
490
502
  补充说明:
491
503
 
492
504
  - `docs/AI-GUIDE.md` 只服务外部项目通过 AI 使用 `gitcode`(或源码构建的 `gc`)
493
- - gitcode-cli 仓库内部 AI 开发请看 `AGENTS.md`、`CLAUDE.md` 和 `spec/workflows/ai-local-development-workflow.md`
505
+ - atomgit-cli 仓库内部 AI 开发请看 `AGENTS.md`、`CLAUDE.md` 和 `spec/workflows/ai-local-development-workflow.md`
494
506
  - `issues-plan/PROGRESS.md` 只作为阶段说明,不作为单个 issue / PR 的实时事实依据
495
507
 
496
508
  ## 开发
497
509
 
498
510
  ```bash
499
511
  # 克隆仓库
500
- git clone https://gitcode.com/gitcode-cli/cli.git
501
- cd gitcode-cli
512
+ git clone https://gitcode.com/atomgit-cli/cli.git
513
+ cd cli
502
514
 
503
515
  # 安装依赖
504
516
  make deps
@@ -532,4 +544,4 @@ make run
532
544
 
533
545
  - [GitCode](https://gitcode.com) - GitCode 平台
534
546
  - [API 文档](https://docs.gitcode.com/docs/apis/) - GitCode API 参考
535
- - [问题反馈](https://gitcode.com/gitcode-cli/cli/issues) - 提交 Bug 或建议
547
+ - [问题反馈](https://gitcode.com/atomgit-cli/cli/issues) - 提交 Bug 或建议
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "gitcode-cli"
7
- version = "0.13.0"
7
+ version = "0.14.1"
8
8
  description = "GitCode CLI - Command line tool for GitCode"
9
9
  readme = "README.md"
10
10
  license = "MIT"
File without changes
File without changes
File without changes