@bluenyang/reins 0.3.1-rc.1 → 0.3.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/README.md +1 -1
- package/cli/dist/commands/update.js +14 -0
- package/docs/README.ko.md +1 -1
- package/package.json +1 -1
- package/skills/reins-setup/SKILL.md +4 -4
package/README.md
CHANGED
|
@@ -15,7 +15,7 @@ knowledge lost in gitignored space, copies that drift apart. The full list is in
|
|
|
15
15
|
|
|
16
16
|
## Status
|
|
17
17
|
|
|
18
|
-
**0.3.1-rc.
|
|
18
|
+
**0.3.1-rc.2 is the release candidate** (intent 021): `npx @bluenyang/reins@0.3.1-rc.2`. **0.3.0 is the latest release** (intents 019, 020): `npx @bluenyang/reins install`. Up to 0.2.0, skills and hooks called `npx @bluenyang/reins` during work; 0.3 removes that, and `reins update` moves a 0.1.x or 0.2.0 install over. What changed in each version is in [CHANGELOG.md](CHANGELOG.md); what comes next is in the [roadmap](docs/ROADMAP.md).
|
|
19
19
|
|
|
20
20
|
## How it works
|
|
21
21
|
|
|
@@ -263,6 +263,18 @@ async function updateNow(o) {
|
|
|
263
263
|
.map((r) => r.path);
|
|
264
264
|
return res;
|
|
265
265
|
}
|
|
266
|
+
/**
|
|
267
|
+
* What the install step said that someone running `update` has to see (design §6): a hooks block that was
|
|
268
|
+
* rewritten and what it held, the hook line to add where reins does not add it, and a generated file left
|
|
269
|
+
* alone for another reason than a hand edit (those have a line of their own). The rest of the install
|
|
270
|
+
* notes (onboarding, the first conversation) is for `install`.
|
|
271
|
+
*/
|
|
272
|
+
export function updateNotes(r) {
|
|
273
|
+
return (r.install?.notes ?? []).filter((n) => n.startsWith('.husky/') ||
|
|
274
|
+
n.startsWith('hook proposal') ||
|
|
275
|
+
n.startsWith('no hook tool found') ||
|
|
276
|
+
(n.startsWith('left alone ') && !n.includes(': edited by hand')));
|
|
277
|
+
}
|
|
266
278
|
/** The report `reins update` prints; with `dry` it is the plan shown before the confirmation. */
|
|
267
279
|
export function formatUpdate(r, dry) {
|
|
268
280
|
const out = [];
|
|
@@ -297,5 +309,7 @@ export function formatUpdate(r, dry) {
|
|
|
297
309
|
out.push(`• block "${n}" is overridden by the project — compare it with the new upstream block`);
|
|
298
310
|
for (const p of r.handEdited)
|
|
299
311
|
out.push(`• ${p} was edited by hand — not overwritten; run with --force to overwrite it`);
|
|
312
|
+
for (const n of updateNotes(r))
|
|
313
|
+
out.push(`• ${n}`);
|
|
300
314
|
return `${out.join('\n')}\n`;
|
|
301
315
|
}
|
package/docs/README.ko.md
CHANGED
|
@@ -8,7 +8,7 @@ BlueNyang과 Team Croffle의 저장소 열두 곳이 같은 하네스 계통을
|
|
|
8
8
|
|
|
9
9
|
## 상태
|
|
10
10
|
|
|
11
|
-
**0.3.1-rc.
|
|
11
|
+
**0.3.1-rc.2가 릴리스 후보입니다**(intent 021): `npx @bluenyang/reins@0.3.1-rc.2`. **0.3.0이 최신 릴리스입니다**(intent 019, 020): `npx @bluenyang/reins install`. 0.2.0까지는 스킬과 훅이 작업 중에 `npx @bluenyang/reins`를 불렀습니다. 0.3은 그것을 없애고, `reins update`가 0.1.x·0.2.0 설치를 옮깁니다. 버전마다 바뀐 것은 [CHANGELOG.md](../CHANGELOG.md)에, 앞으로의 계획은 [로드맵](ROADMAP.ko.md)에 있습니다.
|
|
12
12
|
|
|
13
13
|
## 동작 방식
|
|
14
14
|
|
package/package.json
CHANGED
|
@@ -15,10 +15,10 @@ If either still starts with `${` (unsubstituted — this copy lives in a project
|
|
|
15
15
|
1. **Look.** Is there an `.agents/harness/` (reins installed), an `.ai/` workspace, or an older harness
|
|
16
16
|
(`.claude/commands/`, many skills)? Say which.
|
|
17
17
|
2. **Show the user the command** for their terminal, with the version pinned to this skill's release:
|
|
18
|
-
- nothing installed: `npx @bluenyang/reins@0.3.1
|
|
19
|
-
- an older harness or `.ai/`: `npx @bluenyang/reins@0.3.1
|
|
20
|
-
- reins already installed: `npx @bluenyang/reins@0.3.1
|
|
21
|
-
- to change models, the mode or the audit later: `npx @bluenyang/reins@0.3.1
|
|
18
|
+
- nothing installed: `npx @bluenyang/reins@0.3.1 install --mode <mode>`
|
|
19
|
+
- an older harness or `.ai/`: `npx @bluenyang/reins@0.3.1 migrate --dry-run`, then without `--dry-run`
|
|
20
|
+
- reins already installed: `npx @bluenyang/reins@0.3.1 update`
|
|
21
|
+
- to change models, the mode or the audit later: `npx @bluenyang/reins@0.3.1 config` (the user can run `reins config`)
|
|
22
22
|
Run it yourself only when the user asks you to, and only that command.
|
|
23
23
|
3. **Explain what follows.** reins writes AGENTS.md blocks with an onboarding note; the next conversation starts
|
|
24
24
|
with the `onboard` skill, which reads the project, asks the user, and writes AGENTS.md's project sections.
|