@seanyao/roll 2026.507.2 → 2026.508.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 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.507.2"
7
+ VERSION="2026.508.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"
@@ -132,6 +132,7 @@ _ensure_config_entries() {
132
132
  "ai_opencode:~/.config/opencode|AGENTS.md|AGENTS.md"
133
133
  "ai_openclaw:~/.openclaw/workspace|AGENTS.md|AGENTS.md"
134
134
  "ai_pi:~/.pi/agent|AGENTS.md|AGENTS.md"
135
+ "ai_deepseek:~/.deepseek|AGENTS.md|AGENTS.md"
135
136
  )
136
137
 
137
138
  local added=0
@@ -345,6 +346,7 @@ ai_trae: ~/.trae|user_rules.md|project_rules.md
345
346
  ai_opencode: ~/.config/opencode|AGENTS.md|AGENTS.md
346
347
  ai_openclaw: ~/.openclaw/workspace|AGENTS.md|AGENTS.md
347
348
  ai_pi: ~/.pi/agent|AGENTS.md|AGENTS.md
349
+ ai_deepseek: ~/.deepseek|AGENTS.md|AGENTS.md
348
350
 
349
351
  # User preferences
350
352
  default_language: zh
@@ -549,6 +551,26 @@ cmd_setup() {
549
551
  # Thin wrapper: upgrade the npm-installed package, then re-sync via setup.
550
552
  # Equivalent to: npm install -g @seanyao/roll@latest && roll setup
551
553
  # ═══════════════════════════════════════════════════════════════════════════════
554
+ _check_installed_version_or_retry() {
555
+ local expected installed pkg_dir
556
+ expected="$(npm view @seanyao/roll version 2>/dev/null || true)"
557
+ pkg_dir="$(npm root -g 2>/dev/null || true)"
558
+ installed="$(grep "^VERSION=" "${pkg_dir}/@seanyao/roll/bin/roll" 2>/dev/null | sed 's/VERSION="\([^"]*\)"/\1/' || true)"
559
+
560
+ [[ -z "$expected" || -z "$installed" ]] && return 0
561
+
562
+ if [[ "$installed" != "$expected" ]]; then
563
+ warn "Version mismatch: installed ${installed}, expected ${expected} — CDN propagation lag, clearing cache and retrying... 版本不一致(已安装 ${installed},期望 ${expected}),疑似 CDN 未同步,清理缓存后重试..."
564
+ npm cache clean --force &>/dev/null || true
565
+ npm install -g @seanyao/roll@latest &>/dev/null || true
566
+ local after
567
+ after="$(grep "^VERSION=" "${pkg_dir}/@seanyao/roll/bin/roll" 2>/dev/null | sed 's/VERSION="\([^"]*\)"/\1/' || true)"
568
+ if [[ -n "$after" && "$after" != "$expected" ]]; then
569
+ warn "Still on ${after} after retry — registry may not have propagated yet, try again in a minute. 重试后仍为 ${after},注册表可能尚未同步,请稍后再试。"
570
+ fi
571
+ fi
572
+ }
573
+
552
574
  cmd_update() {
553
575
  info "Current version: roll v${VERSION} 当前版本: roll v${VERSION}"
554
576
  info "Upgrading via npm... 正在通过 npm 升级..."
@@ -559,6 +581,8 @@ cmd_update() {
559
581
  exit 1
560
582
  fi
561
583
 
584
+ _check_installed_version_or_retry
585
+
562
586
  echo ""
563
587
  info "Re-syncing to AI tools... 正在重新同步到 AI 工具..."
564
588
  echo ""
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@seanyao/roll",
3
- "version": "2026.507.2",
3
+ "version": "2026.508.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"
@@ -2,7 +2,6 @@
2
2
  hidden: true
3
3
  name: roll-.changelog
4
4
  license: MIT
5
- model: haiku
6
5
  allowed-tools: "Read, Edit, Write, Bash(git:*)"
7
6
  description: After build completion, extracts completed Stories from BACKLOG.md to generate CHANGELOG.md. Auto-triggered after successful deploy, keeping the external changelog in sync with the internal backlog.
8
7
  ---
@@ -2,7 +2,6 @@
2
2
  hidden: true
3
3
  name: roll-.review
4
4
  license: MIT
5
- model: sonnet
6
5
  allowed-tools: "Read, Bash(git:*)"
7
6
  description: Self code review step in the TCR workflow. Runs after each micro-step is completed and before commit, checking code quality, security, and design issues.
8
7
  ---
@@ -1,7 +1,6 @@
1
1
  ---
2
2
  name: roll-design
3
3
  license: MIT
4
- model: sonnet
5
4
  allowed-tools: "Read, Edit, Write, Glob, Grep, Bash(git:*), WebSearch, WebFetch, Skill"
6
5
  description: Unified entry for discussion, design and planning. Explores options when uncertain, designs solutions with DDD modeling, splits into INVEST-compliant user stories, and writes to BACKLOG.md. Use when user wants to discuss approaches, design solutions, plan features, or create stories.
7
6
  ---
@@ -1,7 +1,6 @@
1
1
  ---
2
2
  name: roll-doctor
3
3
  license: MIT
4
- model: haiku
5
4
  allowed-tools: "Read, Bash, Edit"
6
5
  description: "Diagnose Roll toolchain health. Checks skill files, YAML frontmatter, symlinks, conventions sync, template integrity, and config validity."
7
6
  ---
@@ -1,7 +1,6 @@
1
1
  ---
2
2
  name: roll-jot
3
3
  license: MIT
4
- model: haiku
5
4
  allowed-tools: "Read, Edit"
6
5
  description: "Fast backlog capture. Analyzes a short description, classifies it as bug or idea, and appends it to BACKLOG.md with an auto-incremented ID."
7
6
  ---
@@ -1,7 +1,6 @@
1
1
  ---
2
2
  name: roll-notes
3
3
  license: MIT
4
- model: haiku
5
4
  allowed-tools: "Read, Edit, Write, Bash(date:*)"
6
5
  description: "Project diary skill. Records development moments — successes, failures, discoveries — appended chronologically to a daily notes file."
7
6
  ---
@@ -1,7 +1,6 @@
1
1
  ---
2
2
  name: roll-release
3
3
  license: MIT
4
- model: haiku
5
4
  allowed-tools: "Read, Edit, Bash(git:*), Bash(npm:*), Bash(sed:*), Bash(date:*)"
6
5
  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, 发版, 发布新版本."
7
6
  ---
@@ -1,7 +1,6 @@
1
1
  ---
2
2
  name: roll-research
3
3
  license: MIT
4
- model: opus
5
4
  allowed-tools: "WebFetch, WebSearch, Read, Write, Bash(python3:*), Bash(curl:*), Bash(pip:*), Agent"
6
5
  description: |
7
6
  HV (Horizontal-Vertical) Analysis deep research skill for products, companies, concepts, technologies, or people. Dual-axis: vertical traces full lifecycle narrative from origin to present; horizontal compares against competitors at current time; cross-axis produces new insights. Output: professionally formatted PDF report.
@@ -1,7 +1,6 @@
1
1
  ---
2
2
  name: roll-spar
3
3
  license: MIT
4
- model: sonnet
5
4
  allowed-tools: "Read, Edit, Write, Bash, Agent, Skill"
6
5
  description: Adversarial TDD mode with Attacker/Defender agents. Attacker writes tests to break the system, Defender writes minimal code to pass. Use for high-risk logic like auth, payments, data integrity, or complex state machines.
7
6
  ---