@seanyao/roll 2026.507.1 → 2026.507.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.
Files changed (2) hide show
  1. package/bin/roll +11 -2
  2. 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.507.1"
7
+ VERSION="2026.507.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"
@@ -49,13 +49,15 @@ canonical_dir() {
49
49
  }
50
50
 
51
51
  # Return a human-readable name for an AI tool dir.
52
- # Handles nested paths like ~/.openclaw/workspace → "openclaw".
52
+ # Handles nested paths like ~/.openclaw/workspace → "openclaw", ~/.pi/agent → "pi".
53
53
  ai_tool_name() {
54
54
  local dir="$1"
55
55
  local bn
56
56
  bn="$(basename "$dir" | sed 's/^\.//')"
57
57
  if [[ "$bn" == "workspace" ]]; then
58
58
  bn="$(basename "$(dirname "$dir")" | sed 's/^\.//')"
59
+ elif [[ "$bn" == "agent" || "$bn" == "workspace" ]]; then
60
+ bn="$(basename "$(dirname "$dir")" | sed 's/^\.//')"
59
61
  fi
60
62
  echo "$bn"
61
63
  }
@@ -83,6 +85,11 @@ _is_ai_installed() {
83
85
  [[ -x "$HOME/.opencode/bin/opencode" ]]
84
86
  return
85
87
  ;;
88
+ agent)
89
+ if [[ "$(basename "$(dirname "$ai_dir")")" == ".pi" ]]; then
90
+ command -v pi &>/dev/null && return
91
+ fi
92
+ ;;
86
93
  esac
87
94
  return 1
88
95
  }
@@ -124,6 +131,7 @@ _ensure_config_entries() {
124
131
  "ai_trae:~/.trae|user_rules.md|project_rules.md"
125
132
  "ai_opencode:~/.config/opencode|AGENTS.md|AGENTS.md"
126
133
  "ai_openclaw:~/.openclaw/workspace|AGENTS.md|AGENTS.md"
134
+ "ai_pi:~/.pi/agent|AGENTS.md|AGENTS.md"
127
135
  )
128
136
 
129
137
  local added=0
@@ -336,6 +344,7 @@ ai_cursor: ~/.cursor|.cursor-rules|.cursor-rules
336
344
  ai_trae: ~/.trae|user_rules.md|project_rules.md
337
345
  ai_opencode: ~/.config/opencode|AGENTS.md|AGENTS.md
338
346
  ai_openclaw: ~/.openclaw/workspace|AGENTS.md|AGENTS.md
347
+ ai_pi: ~/.pi/agent|AGENTS.md|AGENTS.md
339
348
 
340
349
  # User preferences
341
350
  default_language: zh
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@seanyao/roll",
3
- "version": "2026.507.1",
3
+ "version": "2026.507.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"