auriga-cli 1.30.2 → 1.30.4
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/README.md +16 -12
- package/README.zh-CN.md +16 -12
- package/dist/catalog.json +1 -1
- package/dist/cli.js +1 -1
- package/dist/guide.d.ts +1 -1
- package/dist/guide.js +9 -7
- package/dist/help.js +2 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -6,6 +6,12 @@ A modular Claude Code harness — install only the parts you need.
|
|
|
6
6
|
|
|
7
7
|
This repo itself is a fully configured harness project. You can clone it to see the full setup, or use the CLI to install individual modules into your own project.
|
|
8
8
|
|
|
9
|
+
Auriga's harness design is inspired by several open-source skill and agent-workflow projects:
|
|
10
|
+
|
|
11
|
+
- [obra/superpowers skills](https://github.com/obra/superpowers/tree/main/skills)
|
|
12
|
+
- [addyosmani/agent-skills](https://github.com/addyosmani/agent-skills)
|
|
13
|
+
- [mattpocock/skills](https://github.com/mattpocock/skills/tree/main)
|
|
14
|
+
|
|
9
15
|
## What's Included
|
|
10
16
|
|
|
11
17
|
| Module | Description |
|
|
@@ -17,23 +23,21 @@ This repo itself is a fully configured harness project. You can clone it to see
|
|
|
17
23
|
|
|
18
24
|
## Quick Start
|
|
19
25
|
|
|
20
|
-
###
|
|
21
|
-
|
|
22
|
-
The easiest path is to let your current Agent read the install guide and follow it:
|
|
23
|
-
|
|
24
|
-
> Run `npx -y auriga-cli guide`, read the guide, then install the Auriga harness into this repository by following the steps it prints.
|
|
26
|
+
### Install
|
|
25
27
|
|
|
26
|
-
|
|
28
|
+
There are two recommended ways to install:
|
|
27
29
|
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
Running inside `claude -p`, `claude -p --worktree`, or any non-interactive Agent session? Start here:
|
|
30
|
+
1. Run the installer yourself:
|
|
31
31
|
|
|
32
32
|
```bash
|
|
33
|
-
npx -y auriga-cli
|
|
33
|
+
npx -y auriga-cli
|
|
34
34
|
```
|
|
35
35
|
|
|
36
|
-
|
|
36
|
+
2. In an interactive Agent session, ask the Agent:
|
|
37
|
+
|
|
38
|
+
> Run `npx -y auriga-cli guide`, read the guide, then install the Auriga harness into this repository by following the steps it prints.
|
|
39
|
+
|
|
40
|
+
The guide command is intentionally non-interactive so an Agent can read the prerequisite checks, catalog inspection commands, install commands, reload step, and verification checklist in one place.
|
|
37
41
|
|
|
38
42
|
The leading `-y` belongs to `npx` (it auto-confirms package installation), **not** to `auriga-cli`.
|
|
39
43
|
|
|
@@ -52,7 +56,7 @@ npx -y auriga-cli --help # full catalog + flags
|
|
|
52
56
|
|
|
53
57
|
`--preset` is atomic — it cannot be combined with a `<type>` or any filter flag, but it accepts `--scope`, `--agent`, and `--lang` (preset defaults: `user` / `both` / `zh-CN`, which differ from the per-category defaults).
|
|
54
58
|
|
|
55
|
-
Exit codes: `0` success, `1` fatal (precheck / parse / fetch), `2` partial success — `stderr` lists per-category `[OK]/[FAIL]` and a `Retry:` hint. After install, reload the
|
|
59
|
+
Exit codes: `0` success, `1` fatal (precheck / parse / fetch), `2` partial success — `stderr` lists per-category `[OK]/[FAIL]` and a `Retry:` hint. After install, reload the Agent session so the new `AGENTS.md` / skills / plugins / hook-plugin registrations are picked up.
|
|
56
60
|
|
|
57
61
|
### Web UI (opt-in)
|
|
58
62
|
|
package/README.zh-CN.md
CHANGED
|
@@ -6,6 +6,12 @@
|
|
|
6
6
|
|
|
7
7
|
这个仓库本身就是一个完整配置好的 harness 项目。可以直接 clone 查看完整配置,也可以用 CLI 把各模块安装到你自己的项目中。
|
|
8
8
|
|
|
9
|
+
Auriga 的 harness 设计受以下几个开源 skill 与 Agent 工作流项目启发:
|
|
10
|
+
|
|
11
|
+
- [obra/superpowers skills](https://github.com/obra/superpowers/tree/main/skills)
|
|
12
|
+
- [addyosmani/agent-skills](https://github.com/addyosmani/agent-skills)
|
|
13
|
+
- [mattpocock/skills](https://github.com/mattpocock/skills/tree/main)
|
|
14
|
+
|
|
9
15
|
## 包含什么
|
|
10
16
|
|
|
11
17
|
| 模块 | 说明 |
|
|
@@ -17,23 +23,21 @@
|
|
|
17
23
|
|
|
18
24
|
## 快速开始
|
|
19
25
|
|
|
20
|
-
###
|
|
21
|
-
|
|
22
|
-
最简单的方式是让当前 Agent 先读取安装指南,再按指南执行:
|
|
23
|
-
|
|
24
|
-
> 运行 `npx -y auriga-cli guide`,阅读指南,然后按输出步骤把 Auriga harness 安装到当前仓库。
|
|
26
|
+
### 安装
|
|
25
27
|
|
|
26
|
-
|
|
28
|
+
推荐安装方式有两种:
|
|
27
29
|
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
在 `claude -p`、`claude -p --worktree` 或任何非交互 Agent 会话里想装整套 harness?从这里开始:
|
|
30
|
+
1. 用户自己在命令行运行安装器:
|
|
31
31
|
|
|
32
32
|
```bash
|
|
33
|
-
npx -y auriga-cli
|
|
33
|
+
npx -y auriga-cli
|
|
34
34
|
```
|
|
35
35
|
|
|
36
|
-
|
|
36
|
+
2. 在交互式 Agent 会话里输入提示词:
|
|
37
|
+
|
|
38
|
+
> 运行 `npx -y auriga-cli guide`,阅读指南,然后按输出步骤把 Auriga harness 安装到当前仓库。
|
|
39
|
+
|
|
40
|
+
`guide` 命令是非交互式的,方便 Agent 一次性读取前置检查、catalog 查看命令、安装命令、重启会话步骤和验证清单。
|
|
37
41
|
|
|
38
42
|
开头的 `-y` 是 **npx 自己的 flag**(用来跳过"是否要装这个包"的确认),**不是** auriga-cli 的参数。
|
|
39
43
|
|
|
@@ -52,7 +56,7 @@ npx -y auriga-cli --help # 完整 catalog + flag 说明
|
|
|
52
56
|
|
|
53
57
|
`--preset` 是原子标志 —— 不能与 `<type>` 或任何过滤标志同时使用,但可带 `--scope`、`--agent`、`--lang`(预设默认 `user` / `both` / `zh-CN`,与分类安装的默认不同)。
|
|
54
58
|
|
|
55
|
-
退出码:`0` 成功;`1` 致命错误(前置检查 / 解析 / 拉取失败);`2` 部分成功——`stderr` 会列出逐类 `[OK]/[FAIL]` 和 `Retry:` 提示。装完后请重启
|
|
59
|
+
退出码:`0` 成功;`1` 致命错误(前置检查 / 解析 / 拉取失败);`2` 部分成功——`stderr` 会列出逐类 `[OK]/[FAIL]` 和 `Retry:` 提示。装完后请重启 Agent 会话,让新的 `AGENTS.md` / skills / plugins / hook 插件注册生效。
|
|
56
60
|
|
|
57
61
|
### Web UI(可选)
|
|
58
62
|
|
package/dist/catalog.json
CHANGED
package/dist/cli.js
CHANGED
|
@@ -11,7 +11,7 @@ import { loadCatalog } from "./catalog.js";
|
|
|
11
11
|
import { renderHelp, renderTypeHelp } from "./help.js";
|
|
12
12
|
import { renderGuide } from "./guide.js";
|
|
13
13
|
import { CATEGORY_NAMES } from "./types.js";
|
|
14
|
-
const RELOAD_REMINDER = "\n⚠ Reload your
|
|
14
|
+
const RELOAD_REMINDER = "\n⚠ Reload your Agent session to pick up the new harness (AGENTS.md / skills / plugins are loaded at session startup).\n";
|
|
15
15
|
const CATEGORY_SET = new Set(CATEGORY_NAMES);
|
|
16
16
|
const TYPE_FOR_FILTER = {
|
|
17
17
|
"--skill": "skills",
|
package/dist/guide.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ export interface GuideOpts {
|
|
|
3
3
|
version: string;
|
|
4
4
|
}
|
|
5
5
|
/**
|
|
6
|
-
* Renders the Agent
|
|
6
|
+
* Renders the interactive Agent install guide. Plain-text when
|
|
7
7
|
* `color: false`; adds ANSI escapes for headings / command examples
|
|
8
8
|
* / warnings when `color: true`. Color detection happens at the call
|
|
9
9
|
* site (`process.stdout.isTTY && !process.env.NO_COLOR`); this
|
package/dist/guide.js
CHANGED
|
@@ -7,7 +7,7 @@ function c(color, code, text) {
|
|
|
7
7
|
return color ? `${code}${text}${RESET}` : text;
|
|
8
8
|
}
|
|
9
9
|
/**
|
|
10
|
-
* Renders the Agent
|
|
10
|
+
* Renders the interactive Agent install guide. Plain-text when
|
|
11
11
|
* `color: false`; adds ANSI escapes for headings / command examples
|
|
12
12
|
* / warnings when `color: true`. Color detection happens at the call
|
|
13
13
|
* site (`process.stdout.isTTY && !process.env.NO_COLOR`); this
|
|
@@ -19,9 +19,12 @@ export function renderGuide(opts) {
|
|
|
19
19
|
const warn = (s) => c(opts.color, YELLOW, s);
|
|
20
20
|
return `${h(`# auriga-cli bootstrap SOP (v${opts.version})`)}
|
|
21
21
|
|
|
22
|
-
This guide
|
|
22
|
+
This guide helps an interactive Agent install the auriga harness
|
|
23
23
|
(AGENTS.md + skills + plugins) into the current repository.
|
|
24
24
|
|
|
25
|
+
It is meant to be read by an Agent after the user asks it to install
|
|
26
|
+
Auriga from an interactive session.
|
|
27
|
+
|
|
25
28
|
Run each step in order. If any step fails with exit 1, stop and report.
|
|
26
29
|
If exit 2, see stderr for per-category status and follow the "Retry"
|
|
27
30
|
hint.
|
|
@@ -95,13 +98,12 @@ Exit codes:
|
|
|
95
98
|
2 — partial success. stderr lists per-category status. Retry only the
|
|
96
99
|
failed category (the retry line is printed verbatim on stderr).
|
|
97
100
|
|
|
98
|
-
${h("## Step 4 — Reload session
|
|
101
|
+
${h("## Step 4 — Reload session after install")}
|
|
99
102
|
|
|
100
103
|
${warn("⚠")} AGENTS.md, .agents/skills/, and plugin enablement /
|
|
101
|
-
registrations are loaded at session startup. If you
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
will NOT see the new harness.
|
|
104
|
+
registrations are loaded at session startup. If you installed Auriga
|
|
105
|
+
from an existing Agent session, the current session will NOT see the new
|
|
106
|
+
harness until it is reloaded.
|
|
105
107
|
|
|
106
108
|
Action:
|
|
107
109
|
- Commit any in-flight work first
|
package/dist/help.js
CHANGED
|
@@ -8,7 +8,7 @@ export function renderHelp(catalog, version) {
|
|
|
8
8
|
return `auriga-cli v${version} — install Claude Code harness modules
|
|
9
9
|
|
|
10
10
|
USAGE
|
|
11
|
-
npx auriga-cli guide Agent
|
|
11
|
+
npx auriga-cli guide interactive Agent install guide
|
|
12
12
|
npx auriga-cli install (TTY only) checkbox menu
|
|
13
13
|
npx auriga-cli install --preset [--scope <s>] [--agent <a>] [--lang <code>]
|
|
14
14
|
curated default set: workflow doc
|
|
@@ -24,7 +24,7 @@ USAGE
|
|
|
24
24
|
open the local Web UI (spec §4)
|
|
25
25
|
npx auriga-cli --help
|
|
26
26
|
|
|
27
|
-
For
|
|
27
|
+
For copy-paste or Agent use, prepend npx's own -y flag:
|
|
28
28
|
npx -y auriga-cli guide
|
|
29
29
|
npx -y auriga-cli install --preset
|
|
30
30
|
|