@bluenyang/reins 0.1.3 → 0.1.4-rc.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.
@@ -0,0 +1,29 @@
1
+ { "$schema": "https://json-schema.org/draft/2020-12/schema", "$id": "reins/install@1", "type": "object",
2
+ "required": ["schema", "tier", "version"],
3
+ "properties": {
4
+ "schema": { "const": "reins/install@1" },
5
+ "tier": { "enum": ["harness", "loop", "graph"] },
6
+ "version": { "type": "string" },
7
+ "cli": { "type": "string" },
8
+ "mode": { "enum": ["manual", "auto"] },
9
+ "language": { "type": "string" },
10
+ "release": {
11
+ "type": "object",
12
+ "required": ["workflows"],
13
+ "properties": {
14
+ "workflows": {
15
+ "type": "array",
16
+ "items": {
17
+ "type": "object",
18
+ "required": ["file"],
19
+ "properties": {
20
+ "file": { "type": "string", "minLength": 1 },
21
+ "inputs": { "type": "object", "additionalProperties": { "type": "string" } },
22
+ "stages": { "type": "array", "minItems": 1, "items": { "enum": ["rc", "stable"] } },
23
+ "approval": { "enum": ["npm-staged", "none"] }
24
+ }
25
+ }
26
+ }
27
+ }
28
+ }
29
+ } }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bluenyang/reins",
3
- "version": "0.1.3",
3
+ "version": "0.1.4-rc.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": {
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: reins-release
3
- description: Release a finished version as the deploy role — T5 rc-close check, then branch → PR → green CI → merge, then the rc dispatch and ledger. Stable only on the user's explicit instruction. Use when the version is tested and the user says release, open the PR or cut the rc. Never pushes to the default branch directly.
3
+ description: Release a finished version as the deploy role — T5 rc-close check, then branch → PR → green CI → merge, then the configured release dispatch and ledger. Stable only on the user's explicit instruction. Use when the version is tested and the user says release, open the PR or cut the rc. Never pushes to the default branch directly.
4
4
  ---
5
5
 
6
6
  # reins-release
@@ -8,7 +8,7 @@ description: Release a finished version as the deploy role — T5 rc-close check
8
8
  deploy role, inside the pre-release loop only. Run the CLI as `npx @bluenyang/reins@<v>` where `<v>` is `cli` in `.agents/harness/install.yaml` (no `cli` line: installed before 0.1.3, run `npx @bluenyang/reins@latest update` once) (inside the reins repository: `node cli/dist/reins.js`). Verdicts: CONTINUE (exit 0) go on · HOLD (10) ask the user, one line: reason id + what you need · STOP (20) do what `resume` says, then re-run the same check · ESCALATE (30) next role in the chain (pl → pm → advisor → user).
9
9
 
10
10
  1. **Check first (T5).** `reins check --stage rc-close --release <version>`. Not CONTINUE → no dispatch; follow the verdict. T4 runs in the pre-push hook and holds a direct push to the default branch.
11
- 2. Follow the deploy role's procedures in `.agents/harness/roles/deploy.md`: **Merge procedure** (push the feature branch, `gh pr create`, `gh pr checks --watch`, `gh pr merge --rebase --delete-branch` on green only) and **rc procedure** (rc number from T5, dispatch, identify the run, ledger line, user approves on npm). Do not restate them here; announce each step.
11
+ 2. Follow the deploy role's procedures in `.agents/harness/roles/deploy.md`: **Merge procedure** (push the feature branch, `gh pr create`, `gh pr checks --watch`, `gh pr merge --rebase --delete-branch` on green only) and **rc procedure** (run the `dispatch:` lines T5 prints, watch the run, ledger line; a workflow with `approval: npm-staged` adds the steps deploy.md lists for it). The merge target is the repository's default branch. With no `release:` in `install.yaml`, stop after the merge and report "no release settings". If a dispatch is refused for permissions, hand the printed line to the user. Do not restate the procedures here; announce each step.
12
12
  3. Stable is always the user's explicit call (A2); then set the intent `status: released` as deploy.md says.
13
13
  4. Anything in stop group A → stop and report.
14
14
 
@@ -6,7 +6,7 @@ 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@0.1.3 …`
9
+ the answers only the user can give and report what happened. Run the CLI as `npx @bluenyang/reins@0.1.4-rc.2 …`
10
10
  (the version is pinned to this skill's release; inside the reins repository itself: `node cli/dist/reins.js …`).
11
11
 
12
12
  Defaults from the plugin settings: language `${user_config.language}`, install mode `${user_config.default_mode}`.