@sublang/playbook 0.4.2 → 0.6.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/README.md +42 -19
- package/package.json +18 -6
- package/reference/sdlc/code.playbook/bin/playbook-code.js +277 -104
- package/reference/sdlc/code.playbook/code.fsm.d.ts +1 -0
- package/reference/sdlc/code.playbook/code.fsm.js +67 -29
- package/reference/sdlc/code.playbook/code.fsm.ts +74 -29
- package/reference/sdlc/code.playbook/code.gears.md +66 -30
- package/reference/sdlc/code.playbook/code.playbook.d.ts +19 -3
- package/reference/sdlc/code.playbook/code.playbook.js +292 -34
- package/reference/sdlc/code.playbook/code.playbook.ts +290 -35
- package/reference/sdlc/code.playbook/code.registry.d.ts +43 -0
- package/reference/sdlc/code.playbook/code.registry.js +109 -0
- package/reference/sdlc/code.playbook/code.registry.ts +159 -0
- package/reference/sdlc/code.playbook/code.tmux-play.d.ts +2 -0
- package/reference/sdlc/code.playbook/code.tmux-play.js +7 -93
- package/reference/sdlc/code.playbook/code.tmux-play.ts +20 -118
- package/reference/sdlc/code.playbook/playbook-captain.d.ts +21 -0
- package/reference/sdlc/code.playbook/playbook-captain.js +491 -0
- package/reference/sdlc/code.playbook/playbook-captain.ts +701 -0
- package/reference/sdlc/code.playbook/playbook-code.config.template.yaml +50 -25
- package/reference/sdlc/code.playbook/tmux-play.config.yaml +13 -8
- package/reference/sdlc/code.playbook/tmux-play.production.config.yaml +8 -4
|
@@ -1,29 +1,53 @@
|
|
|
1
1
|
# SPDX-License-Identifier: Apache-2.0
|
|
2
2
|
# SPDX-FileCopyrightText: 2026 SubLang International <https://sublang.ai>
|
|
3
3
|
|
|
4
|
-
# Seed template for the user-level playbook-code
|
|
4
|
+
# Seed template for the user-level playbook-code CODE overlay.
|
|
5
5
|
# First run copies this file to:
|
|
6
6
|
# ${XDG_CONFIG_HOME:-$HOME/.config}/playbook/playbook-code.config.yaml
|
|
7
7
|
#
|
|
8
|
-
#
|
|
9
|
-
# -
|
|
10
|
-
#
|
|
11
|
-
#
|
|
12
|
-
#
|
|
8
|
+
# This is a CODE *overlay*, not a full tmux-play config: playbook-code
|
|
9
|
+
# composes the launched tmux-play config from it at startup (PBCODE-16).
|
|
10
|
+
# The composer injects captain.from (the Playbook Captain shell adapter)
|
|
11
|
+
# and the coder / reviewer player ids, and can inherit theme plus
|
|
12
|
+
# captain-judge defaults from an existing tmux-play config — so you only
|
|
13
|
+
# tune the fields below.
|
|
13
14
|
#
|
|
14
|
-
#
|
|
15
|
-
# - captain.
|
|
16
|
-
#
|
|
17
|
-
#
|
|
18
|
-
#
|
|
19
|
-
#
|
|
20
|
-
#
|
|
21
|
-
#
|
|
15
|
+
# Safe tuning points:
|
|
16
|
+
# - captain.adapter / model / reasoningEffort pick the judge/Captain
|
|
17
|
+
# agent and its reasoning tier.
|
|
18
|
+
# - players.coder and players.reviewer pick the Coder and Reviewer
|
|
19
|
+
# agents; set each role's adapter (required) and optional model /
|
|
20
|
+
# reasoningEffort / permissions. Each role's model when pinned, else
|
|
21
|
+
# its adapter, doubles as the identity string the adapter substitutes
|
|
22
|
+
# into <coder-llm> / <reviewer-llm> in player prompts (PBRT-4), so pin
|
|
23
|
+
# a model if you want the Committer's commit-message trailers to name
|
|
24
|
+
# the concrete model.
|
|
25
|
+
# - Codex roles that run git under mode: auto need .git in
|
|
26
|
+
# permissions.writablePaths so git metadata writes stay profile-scoped
|
|
27
|
+
# instead of requiring bypass permissions.
|
|
28
|
+
# - players.committer optionally aliases the Committer to a role
|
|
29
|
+
# (coder or reviewer); that role's pane runs the commit turn. The
|
|
30
|
+
# seeded value is reviewer; omit it to fall back to the coder.
|
|
31
|
+
# - layout sizes the tmux window (layout.window: columns × rows) and
|
|
32
|
+
# sets the relative column widths (layout.columnWeights) for the
|
|
33
|
+
# Boss/Captain, Coder, and Reviewer columns.
|
|
34
|
+
# - notifications configures tmux-play's host notifications. Supported
|
|
35
|
+
# events are player_finished, turn_finished, and turn_aborted; each
|
|
36
|
+
# event accepts off, bell, or desktop. The seeded defaults match
|
|
37
|
+
# cligent's generated home config, with omitted turn_aborted resolving
|
|
38
|
+
# to off.
|
|
39
|
+
|
|
40
|
+
layout:
|
|
41
|
+
window:
|
|
42
|
+
columns: 174
|
|
43
|
+
rows: 49
|
|
44
|
+
columnWeights: [4, 6, 6]
|
|
45
|
+
|
|
46
|
+
notifications:
|
|
47
|
+
player_finished: bell
|
|
48
|
+
turn_finished: desktop
|
|
22
49
|
|
|
23
50
|
captain:
|
|
24
|
-
# PBRT-4 invariant: keep this adapter module path unchanged.
|
|
25
|
-
from: "@sublang/playbook/code/tmux-play"
|
|
26
|
-
# Tunable: the Captain/Judge adapter, model, and reasoning effort.
|
|
27
51
|
adapter: claude
|
|
28
52
|
model: claude-sonnet-4-6
|
|
29
53
|
reasoningEffort: high
|
|
@@ -31,17 +55,18 @@ captain:
|
|
|
31
55
|
mode: auto
|
|
32
56
|
|
|
33
57
|
players:
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
model: claude-opus-4-7
|
|
58
|
+
coder:
|
|
59
|
+
adapter: codex
|
|
60
|
+
model: gpt-5.5
|
|
38
61
|
reasoningEffort: xhigh
|
|
39
62
|
permissions:
|
|
40
63
|
mode: auto
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
64
|
+
writablePaths:
|
|
65
|
+
- .git
|
|
66
|
+
reviewer:
|
|
67
|
+
adapter: claude
|
|
68
|
+
model: claude-opus-4-8
|
|
45
69
|
reasoningEffort: xhigh
|
|
46
70
|
permissions:
|
|
47
71
|
mode: auto
|
|
72
|
+
committer: reviewer
|
|
@@ -1,18 +1,23 @@
|
|
|
1
1
|
# SPDX-License-Identifier: Apache-2.0
|
|
2
2
|
# SPDX-FileCopyrightText: 2026 SubLang International <https://sublang.ai>
|
|
3
3
|
|
|
4
|
-
# Example tmux-play config for the CODE playbook
|
|
4
|
+
# Example tmux-play config for the CODE playbook through the
|
|
5
|
+
# Playbook Captain shell — DR-008 §6.
|
|
5
6
|
# Run with:
|
|
6
7
|
# tmux-play --config tmux-play.config.yaml
|
|
7
8
|
|
|
9
|
+
notifications:
|
|
10
|
+
player_finished: bell
|
|
11
|
+
turn_finished: desktop
|
|
12
|
+
|
|
8
13
|
captain:
|
|
9
|
-
# Dev form: sibling-path import of the compiled adapter. After
|
|
10
|
-
# @sublang/playbook is published, swap this for
|
|
11
|
-
#
|
|
12
|
-
#
|
|
13
|
-
#
|
|
14
|
-
#
|
|
15
|
-
from: ./
|
|
14
|
+
# Dev form: sibling-path import of the compiled shell adapter. After
|
|
15
|
+
# @sublang/playbook is published, swap this for:
|
|
16
|
+
# from: "@sublang/playbook/playbook-captain"
|
|
17
|
+
# Existing explicit configs that still import ./code.tmux-play.js or
|
|
18
|
+
# @sublang/playbook/code/tmux-play continue through a compatibility
|
|
19
|
+
# shim that delegates to the same shell with CODE registered.
|
|
20
|
+
from: ./playbook-captain.js
|
|
16
21
|
adapter: claude
|
|
17
22
|
model: claude-sonnet-4-6
|
|
18
23
|
reasoningEffort: high
|
|
@@ -2,12 +2,16 @@
|
|
|
2
2
|
# SPDX-FileCopyrightText: 2026 SubLang International <https://sublang.ai>
|
|
3
3
|
|
|
4
4
|
# Production tmux-play config for the published CODE playbook package.
|
|
5
|
-
# This intentionally imports the
|
|
6
|
-
# a local repo path. The runtime still expects the
|
|
7
|
-
# @sublang/cligent peer dependency.
|
|
5
|
+
# This intentionally imports the Playbook Captain shell through the
|
|
6
|
+
# package export, not a local repo path. The runtime still expects the
|
|
7
|
+
# host app to provide the @sublang/cligent peer dependency.
|
|
8
|
+
|
|
9
|
+
notifications:
|
|
10
|
+
player_finished: bell
|
|
11
|
+
turn_finished: desktop
|
|
8
12
|
|
|
9
13
|
captain:
|
|
10
|
-
from: "@sublang/playbook/
|
|
14
|
+
from: "@sublang/playbook/playbook-captain"
|
|
11
15
|
adapter: claude
|
|
12
16
|
model: claude-sonnet-4-6
|
|
13
17
|
reasoningEffort: high
|