@hust-open-atom-club/atomgit-cli 0.7.2 → 0.7.3

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 (3) hide show
  1. package/README.en.md +137 -0
  2. package/README.md +33 -43
  3. package/package.json +10 -9
package/README.en.md ADDED
@@ -0,0 +1,137 @@
1
+ # AtomGit CLI (ag)
2
+
3
+ [![License](https://img.shields.io/badge/license-MulanPSL--2.0-blue.svg)](LICENSE)
4
+ [![npm](https://img.shields.io/npm/v/%40hust-open-atom-club%2Fatomgit-cli?logo=npm)](https://www.npmjs.com/package/@hust-open-atom-club/atomgit-cli)
5
+ [![Latest Release](https://img.shields.io/badge/dynamic/json?url=https%3A%2F%2Fapi.atomgit.com%2Fapi%2Fv5%2Frepos%2Fhust-open-atom-club%2Fatomgit-cli%2Freleases%2Flatest&query=%24.tag_name&label=release)](https://atomgit.com/hust-open-atom-club/atomgit-cli/releases)
6
+ [![CI Status](https://img.shields.io/badge/dynamic/json?url=https%3A%2F%2Fapi.atomgit.com%2Fapi%2Fv8%2Frepos%2Fhust-open-atom-club%2Fatomgit-cli%2Factions%2Fruns%3Fworkflow_name%3DCI%26branch%3Dmain%26per_page%3D1&query=%24.workflow_runs%5B0%5D.status&label=CI%20status)](https://atomgit.com/hust-open-atom-club/atomgit-cli/actions)
7
+ [![Homebrew](https://img.shields.io/badge/homebrew-core-FBB040?logo=homebrew&logoColor=white)](https://formulae.brew.sh/formula/atomgit-cli)
8
+ [![Go Reference](https://pkg.go.dev/badge/atomgit.com/hust-open-atom-club/atomgit-cli.svg)](https://pkg.go.dev/atomgit.com/hust-open-atom-club/atomgit-cli)
9
+ [![GoReleaser](https://img.shields.io/badge/powered_by-GoReleaser-69D7E4?logo=goreleaser&logoColor=white)](https://goreleaser.com/)
10
+
11
+ A command-line client for AtomGit, developed with reference to GitHub CLI (`gh`).
12
+
13
+ 中文说明:[README.md](README.md)
14
+
15
+ ## Features
16
+
17
+ | Category | Capabilities |
18
+ | --- | --- |
19
+ | 📦 Repositories | List, view, create, edit, clone, delete, fork, and synchronize repositories; manage repository push rules |
20
+ | 👥 Collaborators | List, view, add, edit, and remove repository collaborators |
21
+ | 🔔 Webhooks | List, view, create, edit, delete, and test repository webhooks |
22
+ | 🌿 Branches | List, view, create, and delete branches; manage branch protection rules |
23
+ | 🔀 Pull Requests | List, view, create, edit, close, reopen, review, merge, and check out PRs; inspect diffs and checks; manage comments and linked Issues |
24
+ | 🐛 Issues | List, view, create, edit, close, and reopen Issues; manage labels and comments |
25
+ | 🔖 Labels | List, create, edit, and delete repository labels |
26
+ | 🎯 Milestones | List, view, create, edit, close, reopen, and delete milestones |
27
+ | 🏷️ Tags | List, create, and delete Git tags; manage protected tag rules |
28
+ | 🚀 Releases | List, view, create, and edit Releases; upload and download assets |
29
+ | ⚙️ Actions | List, validate, and trigger workflows; inspect workflow runs, jobs, logs, and artifacts; download logs and artifacts |
30
+ | 🏢 Organizations | List organizations joined by the current account |
31
+ | 🔍 Search | Search repositories, users, and Issues |
32
+ | 💬 Discussions | List repository Discussions |
33
+ | 🔔 Notifications | List repository notifications and mark them as read |
34
+ | 🔐 Authentication and SSH keys | OAuth login, token refresh, account switching, authentication status, and SSH public-key management |
35
+ | 🌐 API | Call AtomGit API v5 with pagination, JSON request bodies, and GET, POST, PATCH, PUT, and DELETE methods |
36
+
37
+ ## AI Agent Skills
38
+
39
+ [AtomGit Skills](https://atomgit.com/hust-open-atom-club/atomgit-skills) provides Codex Skills powered by `ag` for Issue, Pull Request, CLI release, and GitHub mirroring workflows. See that repository for installation instructions and the complete list.
40
+
41
+ ## Installation
42
+
43
+ ### npm
44
+
45
+ ```bash
46
+ npm install -g @hust-open-atom-club/atomgit-cli
47
+ ```
48
+
49
+ ### Homebrew
50
+
51
+ Install the latest stable release from Homebrew Core (recommended):
52
+
53
+ ```bash
54
+ brew install atomgit-cli
55
+ ```
56
+
57
+ To track a development snapshot from the latest commit on AtomGit `main`, use the project-maintained Homebrew tap instead:
58
+
59
+ ```bash
60
+ brew install hust-open-atom-club/tap/atomgit-cli
61
+ ```
62
+
63
+ Homebrew Core provides stable releases, while the project tap provides development snapshots. Both formulas use the same name and cannot be installed together. See the [complete installation guide](docs/installation.md#homebrew-安装) for differences and switching instructions.
64
+
65
+ ### WinGet
66
+
67
+ ```powershell
68
+ winget install HUSTOpenAtomClub.AtomGitCLI
69
+ ```
70
+
71
+ ### Scoop
72
+
73
+ ```powershell
74
+ scoop bucket add hust-open-atom-club https://github.com/hust-open-atom-club/ScoopBucket
75
+ scoop install atomgit-cli
76
+ ```
77
+
78
+ ### Nix / NixOS
79
+
80
+ `atomgit-cli` is currently available only in `nixos-unstable`. Make sure `nixpkgs` points to unstable; stable channels do not include it yet.
81
+
82
+ ```bash
83
+ nix profile install nixpkgs#atomgit-cli
84
+ ```
85
+
86
+ ### AUR / Arch Linux
87
+
88
+ `atomgit-cli` is available in the Arch User Repository (AUR). Use `yay` or `paru` to choose a stable source package, a stable prebuilt binary, or a development package.
89
+
90
+ ```bash
91
+ # Stable release built from source
92
+ yay -S atomgit-cli
93
+ # Stable prebuilt binary
94
+ yay -S atomgit-cli-bin
95
+ # Development version tracking the latest commit on main
96
+ yay -S atomgit-cli-git
97
+ ```
98
+
99
+ ### Go
100
+
101
+ ```bash
102
+ go install atomgit.com/hust-open-atom-club/atomgit-cli/cmd/ag@latest
103
+ ```
104
+
105
+ See the [complete installation guide](docs/installation.md) for requirements, upgrades, AtomGit Releases, and source installation.
106
+
107
+ ## Configuration
108
+
109
+ Run `ag auth login` for the initial OAuth login. In an environment without a browser, such as a sandbox, container, or CI job, use `echo "$TOKEN" | ag auth login --with-token` to authenticate with an existing access token. See the [configuration guide](docs/configuration.md) for credentials, output safety, and repository inference.
110
+
111
+ ## Usage
112
+
113
+ Run `ag --help` for a command overview or `ag <command> --help` for command-specific options. See the [usage guide](docs/usage.md) for complete examples and explanations.
114
+
115
+ See the [FAQ](docs/faq.md) for common installation, authentication, usage, and troubleshooting questions.
116
+
117
+ ## More Documentation
118
+
119
+ - [Release guide](docs/releasing.md)
120
+ - [Project structure](docs/project-structure.md)
121
+
122
+ ## API
123
+
124
+ General repository features use AtomGit API v5: `https://api.atomgit.com/api/v5`.
125
+
126
+ Actions run checks use the separate AtomGit API v8: `https://api.atomgit.com/api/v8`.
127
+
128
+ ### References
129
+
130
+ - [AtomGit API documentation](https://docs.atomgit.com/docs/apis/)
131
+ - [GitHub CLI](https://cli.github.com/)
132
+
133
+ ## License
134
+
135
+ [Mulan Permissive Software License, Version 2](LICENSE)
136
+
137
+ Copyright (c) 2026 HUST OpenAtom Club, AtomGit, and the AtomGit CLI contributors
package/README.md CHANGED
@@ -2,19 +2,21 @@
2
2
 
3
3
  [![License](https://img.shields.io/badge/license-MulanPSL--2.0-blue.svg)](LICENSE)
4
4
  [![npm](https://img.shields.io/npm/v/%40hust-open-atom-club%2Fatomgit-cli?logo=npm)](https://www.npmjs.com/package/@hust-open-atom-club/atomgit-cli)
5
- [![Latest Release](https://img.shields.io/github/v/release/hust-open-atom-club/atomgit-cli?display_name=tag)](https://atomgit.com/hust-open-atom-club/atomgit-cli/releases)
6
- [![Build](https://img.shields.io/badge/dynamic/json?url=https%3A%2F%2Fapi.atomgit.com%2Fapi%2Fv8%2Frepos%2Fhust-open-atom-club%2Fatomgit-cli%2Factions%2Fruns%3Fworkflow_name%3DCI%26branch%3Dmain%26per_page%3D1&query=%24.workflow_runs%5B0%5D.status&label=build)](https://atomgit.com/hust-open-atom-club/atomgit-cli/actions)
7
- [![Homebrew](https://img.shields.io/badge/homebrew-tap-FBB040?logo=homebrew&logoColor=white)](https://github.com/hust-open-atom-club/homebrew-tap)
5
+ [![Latest Release](https://img.shields.io/badge/dynamic/json?url=https%3A%2F%2Fapi.atomgit.com%2Fapi%2Fv5%2Frepos%2Fhust-open-atom-club%2Fatomgit-cli%2Freleases%2Flatest&query=%24.tag_name&label=release)](https://atomgit.com/hust-open-atom-club/atomgit-cli/releases)
6
+ [![CI Status](https://img.shields.io/badge/dynamic/json?url=https%3A%2F%2Fapi.atomgit.com%2Fapi%2Fv8%2Frepos%2Fhust-open-atom-club%2Fatomgit-cli%2Factions%2Fruns%3Fworkflow_name%3DCI%26branch%3Dmain%26per_page%3D1&query=%24.workflow_runs%5B0%5D.status&label=CI%20status)](https://atomgit.com/hust-open-atom-club/atomgit-cli/actions)
7
+ [![Homebrew](https://img.shields.io/badge/homebrew-core-FBB040?logo=homebrew&logoColor=white)](https://formulae.brew.sh/formula/atomgit-cli)
8
8
  [![Go Reference](https://pkg.go.dev/badge/atomgit.com/hust-open-atom-club/atomgit-cli.svg)](https://pkg.go.dev/atomgit.com/hust-open-atom-club/atomgit-cli)
9
9
  [![GoReleaser](https://img.shields.io/badge/powered_by-GoReleaser-69D7E4?logo=goreleaser&logoColor=white)](https://goreleaser.com/)
10
10
 
11
11
  AtomGit 命令行工具,参考 GitHub CLI (gh) 开发。
12
12
 
13
+ English: [README.en.md](README.en.md)
14
+
13
15
  ## 功能
14
16
 
15
17
  | 类别 | 能力 |
16
18
  | --- | --- |
17
- | 📦 仓库 | 列出、查看、创建、编辑、克隆、删除、复刻和同步仓库 |
19
+ | 📦 仓库 | 列出、查看、创建、编辑、克隆、删除、复刻和同步仓库,管理仓库级推送规则 |
18
20
  | 👥 协作者 | 列出、查看、添加、修改和移除仓库协作者 |
19
21
  | 🔔 Webhook | 列出、查看、创建、编辑、删除和测试仓库 Webhook |
20
22
  | 🌿 分支 | 列出、查看、创建和删除分支,管理分支保护规则 |
@@ -22,9 +24,9 @@ AtomGit 命令行工具,参考 GitHub CLI (gh) 开发。
22
24
  | 🐛 Issue | 列出、查看、创建、编辑、关闭和重开 Issue,管理标签和评论 |
23
25
  | 🔖 标签 | 列出、创建、编辑和删除仓库标签 |
24
26
  | 🎯 里程碑 | 列出、查看、创建、编辑、关闭、重开和删除里程碑 |
25
- | 🏷️ Tag | 列出、创建和删除 Git tag |
27
+ | 🏷️ Tag | 列出、创建和删除 Git tag,管理保护 tag 规则 |
26
28
  | 🚀 Release | 列出、查看、创建和编辑 Release,上传和下载附件 |
27
- | ⚙️ Actions | 列出和查看 workflow 运行、job、日志与 artifact,并下载日志和 artifact |
29
+ | ⚙️ Actions | 列出、校验和触发 workflow;查看 workflow 运行、job、日志与 artifact,并下载日志和 artifact |
28
30
  | 🏢 组织 | 列出当前账号加入的组织 |
29
31
  | 🔍 搜索 | 搜索仓库、用户和 Issue |
30
32
  | 💬 Discussion | 列出仓库 Discussion |
@@ -46,10 +48,20 @@ npm install -g @hust-open-atom-club/atomgit-cli
46
48
 
47
49
  ### Homebrew
48
50
 
51
+ 安装 Homebrew Core 提供的最新稳定版(推荐):
52
+
53
+ ```bash
54
+ brew install atomgit-cli
55
+ ```
56
+
57
+ 如需跟踪 AtomGit `main` 最新 commit 的开发快照,可改用项目维护的 Homebrew Tap:
58
+
49
59
  ```bash
50
60
  brew install hust-open-atom-club/tap/atomgit-cli
51
61
  ```
52
62
 
63
+ Homebrew Core 面向稳定版,项目 Tap 面向开发快照;两者使用同名 Formula,不能同时安装。区别和切换方法请参阅[完整安装指南](docs/installation.md#homebrew-安装)。
64
+
53
65
  ### WinGet
54
66
 
55
67
  ```powershell
@@ -71,6 +83,19 @@ scoop install atomgit-cli
71
83
  nix profile install nixpkgs#atomgit-cli
72
84
  ```
73
85
 
86
+ ### Aur / Archlinux
87
+
88
+ 目前atomgit 已经上传到aur 中,用户可以用yay/paru自行选择从二进制、源码或开发版安装
89
+
90
+ ```bash
91
+ # 从源码安装(稳定版)
92
+ yay -S atomgit-cli
93
+ # 二进制安装(稳定版,免编译)
94
+ yay -S atomgit-cli-bin
95
+ # 开发版安装(跟随 main 分支最新提交)
96
+ yay -S atomgit-cli-git
97
+ ```
98
+
74
99
  ### Go
75
100
 
76
101
  ```bash
@@ -83,39 +108,10 @@ go install atomgit.com/hust-open-atom-club/atomgit-cli/cmd/ag@latest
83
108
 
84
109
  首次使用时运行 `ag auth login` 完成 OAuth 登录;无浏览器环境(沙箱、容器、CI)可改用 `echo "$TOKEN" | ag auth login --with-token` 通过已有访问令牌登录。凭据、输出安全和仓库推断参阅[配置指南](docs/configuration.md)。
85
110
 
86
- ## 常用命令
111
+ ## 使用
87
112
 
88
- ```bash
89
- ag repo view
90
- ag repo read-file owner/repo README.md
91
- ag repo read-dir owner/repo .
92
- ag repo collaborator list
93
- ag repo webhook list
94
- ag branch list owner/repo
95
- ag pr list
96
- ag pr commits owner/repo 42
97
- ag pr files owner/repo 42
98
- ag issue list
99
- ag issue create owner/repo --title "Bug report" --assignee alice
100
- ag issue prs owner/repo 42
101
- ag issue branches owner/repo 42 --add feature/fix
102
- ag label list
103
- ag milestone list
104
- ag tag list
105
- ag release list
106
- ag run list owner/repo
107
- ag discussion list
108
- ag notification list
109
- ag org list
110
- ag search repositories atomgit
111
- ag auth status
112
- ag ssh-key list
113
- ag api /user
114
- ag check-update
115
- ag --help
116
- ```
113
+ 运行 `ag --help` 查看命令概览,或运行 `ag <command> --help` 查看具体命令的参数。完整示例和说明参阅[使用指南](docs/usage.md)。
117
114
 
118
- 完整命令参阅[使用指南](docs/usage.md)。
119
115
  安装、认证、使用和故障排查中的常见问题请参阅[常见问题(FAQ)](docs/faq.md)。
120
116
 
121
117
  ## 更多文档
@@ -139,9 +135,3 @@ Actions 运行检查使用独立的 AtomGit API v8:`https://api.atomgit.com/ap
139
135
  [木兰宽松许可证第2版](LICENSE) (Mulan Permissive Software License, Version 2)
140
136
 
141
137
  Copyright (c) 2026 HUST OpenAtom Club, AtomGit, and the AtomGit CLI contributors
142
-
143
- ## Contributors
144
-
145
- <a href="https://github.com/hust-open-atom-club/atomgit-cli/graphs/contributors">
146
- <img src="https://contrib.rocks/image?repo=hust-open-atom-club/atomgit-cli" alt="AtomGit CLI contributors" />
147
- </a>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hust-open-atom-club/atomgit-cli",
3
- "version": "0.7.2",
3
+ "version": "0.7.3",
4
4
  "description": "AtomGit command-line interface",
5
5
  "license": "MulanPSL-2.0",
6
6
  "repository": {
@@ -24,20 +24,21 @@
24
24
  "bin/ag.js"
25
25
  ],
26
26
  "scripts": {
27
+ "publish:npm": "node scripts/publish-npm-packages.js",
27
28
  "test": "node --test",
28
29
  "version:npm": "node scripts/set-npm-version.js"
29
30
  },
30
31
  "optionalDependencies": {
31
- "@hust-open-atom-club/atomgit-cli-darwin-arm64": "0.7.2",
32
- "@hust-open-atom-club/atomgit-cli-darwin-x64": "0.7.2",
33
- "@hust-open-atom-club/atomgit-cli-linux-arm64": "0.7.2",
34
- "@hust-open-atom-club/atomgit-cli-linux-loong64": "0.7.2",
35
- "@hust-open-atom-club/atomgit-cli-linux-x64": "0.7.2",
36
- "@hust-open-atom-club/atomgit-cli-win32-arm64": "0.7.2",
37
- "@hust-open-atom-club/atomgit-cli-win32-x64": "0.7.2"
32
+ "@hust-open-atom-club/atomgit-cli-darwin-arm64": "0.7.3",
33
+ "@hust-open-atom-club/atomgit-cli-darwin-x64": "0.7.3",
34
+ "@hust-open-atom-club/atomgit-cli-linux-arm64": "0.7.3",
35
+ "@hust-open-atom-club/atomgit-cli-linux-loong64": "0.7.3",
36
+ "@hust-open-atom-club/atomgit-cli-linux-x64": "0.7.3",
37
+ "@hust-open-atom-club/atomgit-cli-win32-arm64": "0.7.3",
38
+ "@hust-open-atom-club/atomgit-cli-win32-x64": "0.7.3"
38
39
  },
39
40
  "devDependencies": {
40
41
  "adm-zip": "^0.6.0",
41
- "tar": "^7.5.20"
42
+ "tar": "^7.5.22"
42
43
  }
43
44
  }