@danielbaars/anthracite 0.0.0-stage → 0.2.1
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.
- package/CREDITS.md +9 -0
- package/LICENSE +661 -0
- package/README.md +45 -2
- package/THIRD_PARTY_NOTICES.md +1241 -0
- package/cli.cjs +70560 -0
- package/package.json +29 -4
package/README.md
CHANGED
|
@@ -1,3 +1,46 @@
|
|
|
1
|
-
#
|
|
1
|
+
# Anthracite
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
A CLI for stacked Git branches and GitHub pull requests. Use **`an`** or **`anthracite`**.
|
|
4
|
+
|
|
5
|
+
Anthracite builds on [Charcoal](https://github.com/danerwilliams/charcoal) and the formerly open-source Graphite CLI. See [credits and provenance](https://github.com/danielbaars/anthracite/blob/v0.2.1/CREDITS.md). It supports local stacks and GitHub PRs through `gh`; it does not implement every current Graphite feature or require a Graphite subscription.
|
|
6
|
+
|
|
7
|
+
## Install
|
|
8
|
+
|
|
9
|
+
Install the npm package with Node.js 24 or newer:
|
|
10
|
+
|
|
11
|
+
```sh
|
|
12
|
+
npm install --global @danielbaars/anthracite
|
|
13
|
+
an --version
|
|
14
|
+
```
|
|
15
|
+
|
|
16
|
+
Git is required; GitHub workflows also require an installed, authenticated [GitHub CLI](https://cli.github.com/). npm installs both `an` and `anthracite`. It does not modify shell configuration. See [completion and migration from the standalone installer](https://github.com/danielbaars/anthracite/blob/v0.2.1/docs/installation.md).
|
|
17
|
+
|
|
18
|
+
Standalone binaries for macOS ARM64, macOS x64 and Linux x64 are also available from [GitHub Releases](https://github.com/danielbaars/anthracite/releases). They do not require Node.js or Bun. From a clone, run `sh scripts/install.sh 0.1.1` to install that standalone release with checksum verification and zsh completion.
|
|
19
|
+
|
|
20
|
+
```sh
|
|
21
|
+
an --version
|
|
22
|
+
an auth
|
|
23
|
+
an init --trunk main
|
|
24
|
+
an create my-change --message "Add my change"
|
|
25
|
+
an modify --commit --message "Extend my change"
|
|
26
|
+
an log short --stack
|
|
27
|
+
an submit --stack --draft
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
Stage changes with Git before `create` or `modify`, or choose the command's staging options deliberately. Use `an <command> --help` for details.
|
|
31
|
+
|
|
32
|
+
Use `an split --by-file 'path/**'` or `an sp -f path` to extract selected committed files into a prerequisite while retaining the original branch. See [file splitting, history and recovery](https://github.com/danielbaars/anthracite/blob/v0.2.1/docs/split.md).
|
|
33
|
+
|
|
34
|
+
Use `an submit --reviewers alice --assignees @me --roles-branch my-change` to add roles only to one selected PR while retaining the usual submission scope. See [reviewers, assignees and submission scope](https://github.com/danielbaars/anthracite/blob/v0.2.1/docs/submit.md).
|
|
35
|
+
|
|
36
|
+
To uninstall an npm installation, run `npm uninstall --global @danielbaars/anthracite`. For a standalone installation, remove the command links and managed completion block using `sh scripts/uninstall.sh` from a clone. Version directories and preferences are retained for rollback. See [installation and upgrades](https://github.com/danielbaars/anthracite/blob/v0.2.1/docs/installation.md), the [command reference](https://github.com/danielbaars/anthracite/blob/v0.2.1/DOCUMENTATION.md), and [compatibility](https://github.com/danielbaars/anthracite/blob/v0.2.1/COMPATIBILITY.md).
|
|
37
|
+
|
|
38
|
+
## MCP
|
|
39
|
+
|
|
40
|
+
Coding agents can use `an mcp` or `anthracite mcp` as a local stdio server. See [MCP configuration, tools and recovery](https://github.com/danielbaars/anthracite/blob/v0.2.1/docs/mcp.md) for a generic client configuration, explicit request arguments, execution limits and interruption behavior.
|
|
41
|
+
|
|
42
|
+
## Development
|
|
43
|
+
|
|
44
|
+
See [CONTRIBUTING.md](https://github.com/danielbaars/anthracite/blob/v0.2.1/CONTRIBUTING.md) for pinned build tools, tests and release preparation. Source code, documentation, commit messages, issues and pull requests in this repository are written in English.
|
|
45
|
+
|
|
46
|
+
Licensed under the GNU Affero General Public License version 3; see [LICENSE](https://github.com/danielbaars/anthracite/blob/v0.2.1/LICENSE) and [CREDITS.md](https://github.com/danielbaars/anthracite/blob/v0.2.1/CREDITS.md).
|