@seanyao/roll 0.5.0 → 2026.419.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 CHANGED
@@ -10,7 +10,8 @@
10
10
  > Roll out features with AI agents — _Move fast, no sprints._
11
11
 
12
12
  [![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](LICENSE)
13
- [![npm version](https://img.shields.io/npm/v/roll.svg)](https://www.npmjs.com/package/roll)
13
+ [![npm version](https://img.shields.io/npm/v/@seanyao/roll.svg)](https://www.npmjs.com/package/@seanyao/roll)
14
+ [![CI](https://github.com/seanyao/roll/actions/workflows/ci.yml/badge.svg)](https://github.com/seanyao/roll/actions/workflows/ci.yml)
14
15
 
15
16
  ---
16
17
 
@@ -154,6 +155,7 @@ Research → Design → Build → Check → Fix → (loop)
154
155
  | `$roll-sentinel` | CHECK | Scheduled production patrol |
155
156
  | `$roll-debug` | CHECK | Deep page diagnostics + root cause analysis |
156
157
  | `$roll-research` | RESEARCH | HV Analysis framework, outputs PDF report |
158
+ | `$roll-release` | RELEASE | One-command publish: auto version (YYYY.MMDD.N) → tag → npm publish |
157
159
  | `$roll-.review` | Support | Pre-commit self code review |
158
160
  | `$roll-.qa` | Support | Test pyramid and coverage standards reference |
159
161
  | `$roll-.changelog` | Support | Auto-generate CHANGELOG from BACKLOG |
package/bin/roll CHANGED
@@ -4,7 +4,7 @@ set -euo pipefail
4
4
  # Roll — AI Agent Convention Manager
5
5
  # Single source of truth for how all AI coding agents behave.
6
6
 
7
- VERSION="0.5.0"
7
+ VERSION="2026.419.1"
8
8
  ROLL_HOME="${ROLL_HOME:-${HOME}/.roll}"
9
9
  ROLL_CONFIG="${ROLL_HOME}/config.yaml"
10
10
  ROLL_GLOBAL="${ROLL_HOME}/conventions/global"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@seanyao/roll",
3
- "version": "0.5.0",
3
+ "version": "2026.419.1",
4
4
  "description": "Roll — Roll out features with AI agents",
5
5
  "scripts": {
6
6
  "test": "find tests/unit tests/integration -name '*.bats' | sort | xargs ./tests/helpers/bats-core/bin/bats"
@@ -0,0 +1,80 @@
1
+ ---
2
+ name: roll-release
3
+ description: Release skill for roll maintainers. Calculates next version (YYYY.MMDD.N format, auto-increments N from today's git tags), updates VERSION in bin/roll and package.json, commits, tags, and pushes to trigger npm auto-publish via GitHub Actions. Trigger: "release", "publish", "发版", "发布新版本".
4
+ ---
5
+
6
+ # Release (roll-release)
7
+
8
+ One-command publish flow for roll maintainers.
9
+
10
+ ## Version Format
11
+
12
+ `YYYY.MMDD.N` — e.g. `2026.0419.1`
13
+
14
+ - `YYYY.MMDD` = today's date
15
+ - `N` = auto-incremented from existing git tags for today (starts at 1)
16
+
17
+ ## Execution Steps
18
+
19
+ ### Step 1: Calculate Version
20
+
21
+ ```bash
22
+ today=$(date +%Y.%m%d)
23
+ last_n=$(git tag | grep "^v${today}\." | sed "s/^v${today}\.//" | sort -n | tail -1)
24
+ n=$(( ${last_n:-0} + 1 ))
25
+ version="${today}.${n}"
26
+ ```
27
+
28
+ Show the proposed version to the user:
29
+ ```
30
+ Proposed version: v2026.0419.1
31
+ Proceed? [y/N]
32
+ ```
33
+
34
+ Wait for confirmation before continuing.
35
+
36
+ ### Step 2: Update Version Fields
37
+
38
+ **`bin/roll`** — update the VERSION line:
39
+ ```bash
40
+ sed -i '' "s/^VERSION=.*/VERSION=\"${version}\"/" bin/roll
41
+ ```
42
+
43
+ **`package.json`** — update the version field:
44
+ ```bash
45
+ npm version "${version}" --no-git-tag-version
46
+ ```
47
+
48
+ Verify both files show the new version before continuing.
49
+
50
+ ### Step 3: Commit
51
+
52
+ ```bash
53
+ git add bin/roll package.json
54
+ git commit -m "[release] v${version}"
55
+ ```
56
+
57
+ ### Step 4: Tag and Push
58
+
59
+ ```bash
60
+ git tag "v${version}"
61
+ git push && git push --tags
62
+ ```
63
+
64
+ GitHub Actions `publish.yml` picks up the `v*` tag and auto-runs `npm publish`.
65
+
66
+ ### Step 5: Confirm
67
+
68
+ After push, show:
69
+ ```
70
+ ✅ Released v{version}
71
+ 🏷 Tag: v{version} pushed to origin
72
+ 📦 npm publish triggered via GitHub Actions
73
+ 🔗 https://www.npmjs.com/package/@seanyao/roll
74
+ ```
75
+
76
+ ## Abort Conditions
77
+
78
+ - Uncommitted changes in `bin/roll` or `package.json` → warn and abort
79
+ - Tag already exists for today's N → increment N and re-propose
80
+ - `git push` fails → show error, do not leave a dangling local tag (run `git tag -d v{version}`)