@bluenyang/reins 0.1.1 → 0.1.2
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 +9 -1
- package/cli/dist/scripts/sync-version.js +16 -0
- package/docs/README.ko.md +9 -1
- package/package.json +2 -1
- package/skills/reins-setup/SKILL.md +7 -2
package/README.md
CHANGED
|
@@ -80,7 +80,15 @@ reviewed by roles. Verification output is pasted as produced; a bare "passed" is
|
|
|
80
80
|
|
|
81
81
|
## Quick start
|
|
82
82
|
|
|
83
|
-
|
|
83
|
+
In Claude Code, install the plugin and let it set the repository up:
|
|
84
|
+
|
|
85
|
+
```
|
|
86
|
+
/plugin marketplace add bluenyang/reins
|
|
87
|
+
/plugin install reins@bluenyang
|
|
88
|
+
/reins:reins-setup
|
|
89
|
+
```
|
|
90
|
+
|
|
91
|
+
For Codex, Antigravity, Cursor or a plain terminal, use the CLI. It requires Node 20 or later. Run it from the root of the repository you want to set up; the repository
|
|
84
92
|
needs at least one commit (`check` fails on an empty history in 0.1.0):
|
|
85
93
|
|
|
86
94
|
```sh
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
// Sync plugin.json `version` and the pinned CLI version in the reins-setup skill to package.json.
|
|
2
|
+
// Run by the `version` lifecycle script (npm/pnpm version), after package.json is bumped.
|
|
3
|
+
import { readFileSync, writeFileSync } from 'node:fs';
|
|
4
|
+
import { resolve } from 'node:path';
|
|
5
|
+
import { pathToFileURL } from 'node:url';
|
|
6
|
+
// compiled to cli/dist/scripts/: the repository root is three levels up (or the first argument)
|
|
7
|
+
const root = pathToFileURL(`${resolve(process.argv[2] ?? new URL('../../../', import.meta.url).pathname)}/`);
|
|
8
|
+
const read = (p) => readFileSync(new URL(p, root), 'utf8');
|
|
9
|
+
const write = (p, s) => writeFileSync(new URL(p, root), s);
|
|
10
|
+
const version = JSON.parse(read('package.json')).version;
|
|
11
|
+
const plugin = JSON.parse(read('.claude-plugin/plugin.json'));
|
|
12
|
+
plugin.version = version;
|
|
13
|
+
write('.claude-plugin/plugin.json', `${JSON.stringify(plugin, null, 2)}\n`);
|
|
14
|
+
const skillPath = 'skills/reins-setup/SKILL.md';
|
|
15
|
+
write(skillPath, read(skillPath).replace(/@bluenyang\/reins@[0-9][\w.+-]*/g, `@bluenyang/reins@${version}`));
|
|
16
|
+
console.log(`synced to ${version}`);
|
package/docs/README.ko.md
CHANGED
|
@@ -80,7 +80,15 @@ qa-run, deploy, docs, advisor. 역할 파일마다 해서는 안 되는 일이
|
|
|
80
80
|
|
|
81
81
|
## 시작하기
|
|
82
82
|
|
|
83
|
-
|
|
83
|
+
Claude Code에서는 플러그인을 설치하면 저장소 설정까지 맡길 수 있습니다.
|
|
84
|
+
|
|
85
|
+
```
|
|
86
|
+
/plugin marketplace add bluenyang/reins
|
|
87
|
+
/plugin install reins@bluenyang
|
|
88
|
+
/reins:reins-setup
|
|
89
|
+
```
|
|
90
|
+
|
|
91
|
+
Codex, Antigravity, Cursor나 터미널에서는 CLI를 씁니다. Node 20 이상이 필요합니다. 설치하려는 저장소의 루트에서 실행하며, 저장소에 커밋이 하나 이상 있어야
|
|
84
92
|
합니다(0.1.0의 `check`는 커밋이 없는 저장소에서 실패합니다).
|
|
85
93
|
|
|
86
94
|
```sh
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bluenyang/reins",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.2",
|
|
4
4
|
"description": "Installs, migrates and updates an agent harness (harness → loop → graph) that keeps coding agents inside their permitted roles.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -30,6 +30,7 @@
|
|
|
30
30
|
"fmt:check": "oxfmt --check cli/src cli/test test",
|
|
31
31
|
"test": "vitest run",
|
|
32
32
|
"check": "pnpm lint && pnpm fmt:check && pnpm typecheck && pnpm test",
|
|
33
|
+
"version": "pnpm -s build && node cli/dist/scripts/sync-version.js && git add .claude-plugin/plugin.json skills/reins-setup/SKILL.md",
|
|
33
34
|
"prepare": "husky"
|
|
34
35
|
},
|
|
35
36
|
"dependencies": {
|
|
@@ -6,8 +6,13 @@ description: Install reins in this repository, or move an existing harness onto
|
|
|
6
6
|
# reins-setup
|
|
7
7
|
|
|
8
8
|
You act as the **pm** role (`.agents/harness/roles/pm.md` once installed). The CLI does the work; you collect
|
|
9
|
-
the answers only the user can give and report what happened. Run the CLI as `npx @bluenyang/reins …`
|
|
10
|
-
(inside the reins repository itself: `node cli/dist/reins.js …`).
|
|
9
|
+
the answers only the user can give and report what happened. Run the CLI as `npx @bluenyang/reins@0.1.2 …`
|
|
10
|
+
(the version is pinned to this skill's release; inside the reins repository itself: `node cli/dist/reins.js …`).
|
|
11
|
+
|
|
12
|
+
Defaults from the plugin settings: language `${user_config.language}`, install mode `${user_config.default_mode}`.
|
|
13
|
+
If either still starts with `${` (unsubstituted — this copy lives in a project, not the plugin), use the built-in
|
|
14
|
+
default of step 2 instead. Use these only as the defaults you propose; change `--mode` to `auto` only after the
|
|
15
|
+
user confirms it.
|
|
11
16
|
|
|
12
17
|
1. **Look first.** `reins install graph --dry-run --json` → read `generation` and `refused`.
|
|
13
18
|
- `refused` (3rd/4th-generation harness) → `reins migrate <tier> --dry-run` and show the moves.
|