@sienklogic/plan-build-run 2.12.0 → 2.14.0
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/CHANGELOG.md +14 -0
- package/package.json +1 -1
- package/plugins/copilot-pbr/README.md +7 -0
- package/plugins/copilot-pbr/hooks/hooks.json +12 -0
- package/plugins/copilot-pbr/plugin.json +1 -1
- package/plugins/cursor-pbr/.cursor-plugin/plugin.json +1 -1
- package/plugins/cursor-pbr/hooks/hooks.json +10 -0
- package/plugins/pbr/.claude-plugin/plugin.json +1 -1
- package/plugins/pbr/hooks/hooks.json +10 -0
- package/plugins/pbr/scripts/intercept-plan-mode.js +47 -0
- package/plugins/pbr/scripts/progress-tracker.js +17 -0
package/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,20 @@ All notable changes to Plan-Build-Run will be documented in this file.
|
|
|
5
5
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
|
|
6
6
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
7
7
|
|
|
8
|
+
## [2.14.0](https://github.com/SienkLogic/plan-build-run/compare/plan-build-run-v2.13.0...plan-build-run-v2.14.0) (2026-02-22)
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Features
|
|
12
|
+
|
|
13
|
+
* **tools:** add EnterPlanMode interception hook to redirect to PBR commands ([57e2b55](https://github.com/SienkLogic/plan-build-run/commit/57e2b551d326457c44feccdf3c3fdf6c02d9c1b8))
|
|
14
|
+
|
|
15
|
+
## [2.13.0](https://github.com/SienkLogic/plan-build-run/compare/plan-build-run-v2.12.0...plan-build-run-v2.13.0) (2026-02-22)
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
### Features
|
|
19
|
+
|
|
20
|
+
* **tools:** add stale active-skill session-start warning and copilot hook limitation docs ([158a78d](https://github.com/SienkLogic/plan-build-run/commit/158a78d03b482f56ab6f09e89bf9ef67b81fb409))
|
|
21
|
+
|
|
8
22
|
## [2.12.0](https://github.com/SienkLogic/plan-build-run/compare/plan-build-run-v2.11.0...plan-build-run-v2.12.0) (2026-02-21)
|
|
9
23
|
|
|
10
24
|
|
package/package.json
CHANGED
|
@@ -119,6 +119,13 @@ Copilot CLI supports 6 hook events vs Claude Code's full set. The following hook
|
|
|
119
119
|
|
|
120
120
|
**Not available** in Copilot CLI (present in Claude Code/Cursor ports): `SubagentStart`, `SubagentStop`, `TaskCompleted`, `PostToolUseFailure`, `PreCompact`, `Stop`.
|
|
121
121
|
|
|
122
|
+
**Impact of missing hooks:**
|
|
123
|
+
|
|
124
|
+
- No auto-continue between skills (`Stop` hook) — you must manually run the next command
|
|
125
|
+
- No tool failure logging (`PostToolUseFailure`) — silent failures won't be recorded to `.planning/logs/`
|
|
126
|
+
- No context budget preservation on compaction (`PreCompact`) — STATE.md won't be auto-preserved when context is compressed
|
|
127
|
+
- No subagent lifecycle tracking (`SubagentStart`/`SubagentStop`/`TaskCompleted`) — agent spawn/completion events aren't logged
|
|
128
|
+
|
|
122
129
|
## Cross-Plugin Compatibility
|
|
123
130
|
|
|
124
131
|
This plugin works alongside the Claude Code and Cursor versions of Plan-Build-Run. All three plugins share the same `.planning/` directory and file formats, so you can switch between tools without losing state. Hook scripts under `plugins/pbr/scripts/` are shared between all plugins via relative paths.
|
|
@@ -125,6 +125,18 @@
|
|
|
125
125
|
"timeoutSec": 15
|
|
126
126
|
}
|
|
127
127
|
]
|
|
128
|
+
},
|
|
129
|
+
{
|
|
130
|
+
"matcher": "EnterPlanMode",
|
|
131
|
+
"hooks": [
|
|
132
|
+
{
|
|
133
|
+
"type": "command",
|
|
134
|
+
"bash": "node \"$(cd \"$(dirname \"$0\")\" && pwd)/../../pbr/scripts/run-hook.js\" intercept-plan-mode.js",
|
|
135
|
+
"powershell": "node (Join-Path (Split-Path -Parent $PSScriptRoot) 'pbr\\scripts\\run-hook.js') intercept-plan-mode.js",
|
|
136
|
+
"cwd": ".",
|
|
137
|
+
"timeoutSec": 15
|
|
138
|
+
}
|
|
139
|
+
]
|
|
128
140
|
}
|
|
129
141
|
],
|
|
130
142
|
"sessionEnd": [
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pbr",
|
|
3
3
|
"displayName": "Plan-Build-Run",
|
|
4
|
-
"version": "2.
|
|
4
|
+
"version": "2.14.0",
|
|
5
5
|
"description": "Plan-Build-Run — Structured development workflow for GitHub Copilot CLI. Solves context rot through disciplined agent delegation, structured planning, atomic execution, and goal-backward verification.",
|
|
6
6
|
"author": {
|
|
7
7
|
"name": "SienkLogic",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pbr",
|
|
3
3
|
"displayName": "Plan-Build-Run",
|
|
4
|
-
"version": "2.
|
|
4
|
+
"version": "2.14.0",
|
|
5
5
|
"description": "Plan-Build-Run — Structured development workflow for Cursor. Solves context rot through disciplined subagent delegation, structured planning, atomic execution, and goal-backward verification.",
|
|
6
6
|
"author": {
|
|
7
7
|
"name": "SienkLogic",
|
|
@@ -116,6 +116,16 @@
|
|
|
116
116
|
"statusMessage": "Validating skill arguments..."
|
|
117
117
|
}
|
|
118
118
|
]
|
|
119
|
+
},
|
|
120
|
+
{
|
|
121
|
+
"matcher": "EnterPlanMode",
|
|
122
|
+
"hooks": [
|
|
123
|
+
{
|
|
124
|
+
"type": "command",
|
|
125
|
+
"command": "node -e \"var r=process.env.CLAUDE_PLUGIN_ROOT||'',m=r.match(/^\\/([a-zA-Z])\\/(.*)/);if(m)r=m[1]+String.fromCharCode(58)+String.fromCharCode(92)+m[2];require(require('path').resolve(r,'..','pbr','scripts','run-hook.js'))\" intercept-plan-mode.js",
|
|
126
|
+
"statusMessage": "Checking plan mode compatibility..."
|
|
127
|
+
}
|
|
128
|
+
]
|
|
119
129
|
}
|
|
120
130
|
],
|
|
121
131
|
"PreCompact": [
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pbr",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.14.0",
|
|
4
4
|
"description": "Plan-Build-Run — Structured development workflow for Claude Code. Solves context rot through disciplined subagent delegation, structured planning, atomic execution, and goal-backward verification.",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "SienkLogic",
|
|
@@ -116,6 +116,16 @@
|
|
|
116
116
|
"statusMessage": "Validating skill arguments..."
|
|
117
117
|
}
|
|
118
118
|
]
|
|
119
|
+
},
|
|
120
|
+
{
|
|
121
|
+
"matcher": "EnterPlanMode",
|
|
122
|
+
"hooks": [
|
|
123
|
+
{
|
|
124
|
+
"type": "command",
|
|
125
|
+
"command": "node -e \"var r=process.env.CLAUDE_PLUGIN_ROOT||'',m=r.match(/^\\/([a-zA-Z])\\/(.*)/);if(m)r=m[1]+String.fromCharCode(58)+String.fromCharCode(92)+m[2];require(require('path').resolve(r,'scripts','run-hook.js'))\" intercept-plan-mode.js",
|
|
126
|
+
"statusMessage": "Checking plan mode compatibility..."
|
|
127
|
+
}
|
|
128
|
+
]
|
|
119
129
|
}
|
|
120
130
|
],
|
|
121
131
|
"PreCompact": [
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* PreToolUse hook on EnterPlanMode: Warns users in PBR projects that
|
|
5
|
+
* native plan mode won't integrate with PBR's planning system.
|
|
6
|
+
*
|
|
7
|
+
* Suggests /pbr:plan instead. Does NOT block — just advises.
|
|
8
|
+
*
|
|
9
|
+
* Exit codes:
|
|
10
|
+
* 0 = always (advisory only, never blocks)
|
|
11
|
+
*/
|
|
12
|
+
|
|
13
|
+
const fs = require('fs');
|
|
14
|
+
const path = require('path');
|
|
15
|
+
const { logHook } = require('./hook-logger');
|
|
16
|
+
|
|
17
|
+
function main() {
|
|
18
|
+
process.stdin.setEncoding('utf8');
|
|
19
|
+
process.stdin.on('data', () => {});
|
|
20
|
+
process.stdin.on('end', () => {
|
|
21
|
+
try {
|
|
22
|
+
const cwd = process.cwd();
|
|
23
|
+
const planningDir = path.join(cwd, '.planning');
|
|
24
|
+
|
|
25
|
+
// Only relevant for Plan-Build-Run projects
|
|
26
|
+
if (!fs.existsSync(planningDir)) {
|
|
27
|
+
process.exit(0);
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
logHook('intercept-plan-mode', 'PreToolUse', 'warn', {
|
|
31
|
+
reason: 'native plan mode used in PBR project'
|
|
32
|
+
});
|
|
33
|
+
|
|
34
|
+
const output = {
|
|
35
|
+
decision: 'block',
|
|
36
|
+
reason: 'This is a Plan-Build-Run project. Native plan mode stores plans outside .planning/ and won\'t integrate with PBR\'s workflow.\n\nUse instead:\n /pbr:plan <phase> — Create a PBR-formatted plan for a phase\n /pbr:quick — Plan and execute an ad-hoc task\n /pbr:import — Import an external plan document into PBR format\n\nIf you already generated a plan in native plan mode, paste it into /pbr:import to convert it.'
|
|
37
|
+
};
|
|
38
|
+
process.stdout.write(JSON.stringify(output));
|
|
39
|
+
process.exit(2);
|
|
40
|
+
} catch (_e) {
|
|
41
|
+
process.exit(0);
|
|
42
|
+
}
|
|
43
|
+
});
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
if (require.main === module || process.argv[1] === __filename) { main(); }
|
|
47
|
+
module.exports = { main };
|
|
@@ -182,6 +182,23 @@ function buildContext(planningDir, stateFile) {
|
|
|
182
182
|
}
|
|
183
183
|
}
|
|
184
184
|
|
|
185
|
+
// Check for stale .active-skill (multi-session conflict detection)
|
|
186
|
+
const activeSkillFile = path.join(planningDir, '.active-skill');
|
|
187
|
+
if (fs.existsSync(activeSkillFile)) {
|
|
188
|
+
try {
|
|
189
|
+
const stats = fs.statSync(activeSkillFile);
|
|
190
|
+
const ageMs = Date.now() - stats.mtimeMs;
|
|
191
|
+
const ageMinutes = Math.floor(ageMs / 60000);
|
|
192
|
+
if (ageMinutes > 60) {
|
|
193
|
+
const skill = fs.readFileSync(activeSkillFile, 'utf8').trim();
|
|
194
|
+
parts.push(`\nWarning: .active-skill is ${ageMinutes} minutes old (skill: "${skill}"). This may be a stale lock from a crashed session or concurrent session conflict. Run /pbr:health to auto-fix, or delete .planning/.active-skill manually.`);
|
|
195
|
+
logHook('progress-tracker', 'SessionStart', 'stale-active-skill', { ageMinutes, skill });
|
|
196
|
+
}
|
|
197
|
+
} catch (_e) {
|
|
198
|
+
// Ignore errors
|
|
199
|
+
}
|
|
200
|
+
}
|
|
201
|
+
|
|
185
202
|
// Check for stale .auto-next signal (S>M-9)
|
|
186
203
|
const autoNextFile = path.join(planningDir, '.auto-next');
|
|
187
204
|
if (fs.existsSync(autoNextFile)) {
|