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.
- {gitcode_cli-0.13.0/gitcode_cli.egg-info → gitcode_cli-0.14.1}/PKG-INFO +36 -24
- {gitcode_cli-0.13.0 → gitcode_cli-0.14.1}/README.md +35 -23
- {gitcode_cli-0.13.0 → gitcode_cli-0.14.1}/gc_cli/__init__.py +1 -1
- {gitcode_cli-0.13.0 → gitcode_cli-0.14.1}/gc_cli/bin/gc-darwin-amd64 +0 -0
- {gitcode_cli-0.13.0 → gitcode_cli-0.14.1}/gc_cli/bin/gc-darwin-arm64 +0 -0
- {gitcode_cli-0.13.0 → gitcode_cli-0.14.1}/gc_cli/bin/gc-linux-amd64 +0 -0
- {gitcode_cli-0.13.0 → gitcode_cli-0.14.1}/gc_cli/bin/gc-linux-arm64 +0 -0
- {gitcode_cli-0.13.0 → gitcode_cli-0.14.1}/gc_cli/bin/gc-windows-amd64.exe +0 -0
- {gitcode_cli-0.13.0 → gitcode_cli-0.14.1/gitcode_cli.egg-info}/PKG-INFO +36 -24
- {gitcode_cli-0.13.0 → gitcode_cli-0.14.1}/pyproject.toml +1 -1
- {gitcode_cli-0.13.0 → gitcode_cli-0.14.1}/LICENSE +0 -0
- {gitcode_cli-0.13.0 → gitcode_cli-0.14.1}/MANIFEST.in +0 -0
- {gitcode_cli-0.13.0 → gitcode_cli-0.14.1}/gc_cli/__main__.py +0 -0
- {gitcode_cli-0.13.0 → gitcode_cli-0.14.1}/gc_cli/bin/.gitkeep +0 -0
- {gitcode_cli-0.13.0 → gitcode_cli-0.14.1}/gc_cli/wrapper.py +0 -0
- {gitcode_cli-0.13.0 → gitcode_cli-0.14.1}/gitcode_cli.egg-info/SOURCES.txt +0 -0
- {gitcode_cli-0.13.0 → gitcode_cli-0.14.1}/gitcode_cli.egg-info/dependency_links.txt +0 -0
- {gitcode_cli-0.13.0 → gitcode_cli-0.14.1}/gitcode_cli.egg-info/entry_points.txt +0 -0
- {gitcode_cli-0.13.0 → gitcode_cli-0.14.1}/gitcode_cli.egg-info/top_level.txt +0 -0
- {gitcode_cli-0.13.0 → gitcode_cli-0.14.1}/setup.cfg +0 -0
- {gitcode_cli-0.13.0 → gitcode_cli-0.14.1}/tests/test_verify_remote_facts.py +0 -0
- {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.
|
|
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
|
[](./docs/AI-GUIDE.md)
|
|
33
33
|
|
|
34
34
|
[](https://golang.org)
|
|
35
35
|
[](LICENSE)
|
|
36
|
-
[](https://gitcode.com/
|
|
36
|
+
[](https://gitcode.com/atomgit-cli/cli/releases)
|
|
37
37
|
|
|
38
|
-
GitCode CLI
|
|
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
|
|
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
|
|
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
|
|
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
|
|
94
|
+
npx --yes --ignore-scripts --registry=https://registry.npmjs.org atomgit-cli@0.14.1 install
|
|
91
95
|
```
|
|
92
96
|
|
|
93
|
-
|
|
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
|
|
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/
|
|
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/
|
|
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.
|
|
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/
|
|
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.
|
|
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/
|
|
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.
|
|
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/
|
|
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
|
|
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
|
-
-
|
|
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/
|
|
501
|
-
cd
|
|
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/
|
|
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
|
[](./docs/AI-GUIDE.md)
|
|
4
4
|
|
|
5
5
|
[](https://golang.org)
|
|
6
6
|
[](LICENSE)
|
|
7
|
-
[](https://gitcode.com/
|
|
7
|
+
[](https://gitcode.com/atomgit-cli/cli/releases)
|
|
8
8
|
|
|
9
|
-
GitCode CLI
|
|
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
|
|
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
|
|
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
|
|
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
|
|
65
|
+
npx --yes --ignore-scripts --registry=https://registry.npmjs.org atomgit-cli@0.14.1 install
|
|
62
66
|
```
|
|
63
67
|
|
|
64
|
-
|
|
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
|
|
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/
|
|
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/
|
|
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.
|
|
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/
|
|
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.
|
|
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/
|
|
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.
|
|
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/
|
|
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
|
|
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
|
-
-
|
|
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/
|
|
472
|
-
cd
|
|
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/
|
|
518
|
+
- [问题反馈](https://gitcode.com/atomgit-cli/cli/issues) - 提交 Bug 或建议
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: gitcode-cli
|
|
3
|
-
Version: 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
|
[](./docs/AI-GUIDE.md)
|
|
33
33
|
|
|
34
34
|
[](https://golang.org)
|
|
35
35
|
[](LICENSE)
|
|
36
|
-
[](https://gitcode.com/
|
|
36
|
+
[](https://gitcode.com/atomgit-cli/cli/releases)
|
|
37
37
|
|
|
38
|
-
GitCode CLI
|
|
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
|
|
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
|
|
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
|
|
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
|
|
94
|
+
npx --yes --ignore-scripts --registry=https://registry.npmjs.org atomgit-cli@0.14.1 install
|
|
91
95
|
```
|
|
92
96
|
|
|
93
|
-
|
|
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
|
|
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/
|
|
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/
|
|
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.
|
|
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/
|
|
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.
|
|
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/
|
|
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.
|
|
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/
|
|
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
|
|
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
|
-
-
|
|
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/
|
|
501
|
-
cd
|
|
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/
|
|
547
|
+
- [问题反馈](https://gitcode.com/atomgit-cli/cli/issues) - 提交 Bug 或建议
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|