@seanyao/roll 2026.506.1 → 2026.506.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/bin/roll +1 -23
- package/conventions/global/AGENTS.md +4 -0
- package/package.json +1 -1
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="2026.506.
|
|
7
|
+
VERSION="2026.506.2"
|
|
8
8
|
ROLL_HOME="${ROLL_HOME:-${HOME}/.roll}"
|
|
9
9
|
ROLL_CONFIG="${ROLL_HOME}/config.yaml"
|
|
10
10
|
ROLL_GLOBAL="${ROLL_HOME}/conventions/global"
|
|
@@ -64,28 +64,6 @@ lower_name() {
|
|
|
64
64
|
echo "$1" | tr '[:upper:]' '[:lower:]'
|
|
65
65
|
}
|
|
66
66
|
|
|
67
|
-
# Detect AI client by walking the process tree (innermost match wins).
|
|
68
|
-
# Returns empty string if no known AI client is found.
|
|
69
|
-
_detect_ai_client() {
|
|
70
|
-
local pid=$$ depth=0 cmd
|
|
71
|
-
while [[ "$pid" -gt 1 ]] && [[ "$depth" -lt 15 ]]; do
|
|
72
|
-
cmd=$(ps -p "$pid" -o comm= 2>/dev/null | tr '[:upper:]' '[:lower:]' || true)
|
|
73
|
-
case "$cmd" in
|
|
74
|
-
*opencode*) echo "opencode"; return ;;
|
|
75
|
-
*claude*) echo "claude code"; return ;;
|
|
76
|
-
*kimi*) echo "kimi cli"; return ;;
|
|
77
|
-
*gemini*) echo "gemini cli"; return ;;
|
|
78
|
-
*codex*) echo "codex"; return ;;
|
|
79
|
-
*cursor*) echo "cursor"; return ;;
|
|
80
|
-
esac
|
|
81
|
-
local ppid
|
|
82
|
-
ppid=$(ps -p "$pid" -o ppid= 2>/dev/null | tr -d ' ' || true)
|
|
83
|
-
[[ "$ppid" == "$pid" ]] && break
|
|
84
|
-
pid=$ppid
|
|
85
|
-
depth=$((depth + 1))
|
|
86
|
-
done
|
|
87
|
-
echo ""
|
|
88
|
-
}
|
|
89
67
|
|
|
90
68
|
# Check if an AI tool is actually installed.
|
|
91
69
|
# Most tools create their own config dir; Trae on macOS uses Library/Application Support
|
|
@@ -30,6 +30,10 @@
|
|
|
30
30
|
- **Testing**: Unit >80%. E2E for flows. No DB mocks.
|
|
31
31
|
|
|
32
32
|
## 4. Workflow
|
|
33
|
+
- **Scope Gate**: Only implement what is explicitly listed in the AC. Nothing more.
|
|
34
|
+
- Requests made in conversation are NOT AC — capture with `roll-jot` first.
|
|
35
|
+
- Any new Story/Fix requires design doc + user confirmation before TCR starts.
|
|
36
|
+
- Do not commit without user approval unless explicitly told to auto-commit.
|
|
33
37
|
- **TCR**: Test -> Green = Commit / Red = Revert. No WIP commits.
|
|
34
38
|
- Before implementing: confirm exact files, test strategy, and commit message
|
|
35
39
|
draft with user. Do not write code until approved.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@seanyao/roll",
|
|
3
|
-
"version": "2026.506.
|
|
3
|
+
"version": "2026.506.2",
|
|
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"
|