@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.
@@ -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 config.
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
- # Safe tuning points:
9
- # - Change captain.adapter / captain.model / captain.reasoningEffort to
10
- # pick the judge/Captain agent and its reasoning tier.
11
- # - Change each player's adapter, model, and reasoningEffort to pick
12
- # the Coder and Reviewer agents.
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
- # PBRT-4 host-configuration invariants:
15
- # - captain.from must keep pointing at the CODE tmux-play adapter module.
16
- # - players[].id must remain exactly "coder" and "reviewer"; the runtime routes
17
- # to those baked ids and does not remap them. The adapter derives the
18
- # per-run player identity strings (substituted into <coder-llm> /
19
- # <reviewer-llm> in player prompts) from each entry's model when pinned
20
- # and falls back to its adapter when no model is set, so the Committer's
21
- # commit-message trailers can name the concrete model.
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
- # PBRT-4 invariant: keep id: coder. Tune adapter/model if desired.
35
- - id: coder
36
- adapter: claude
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
- # PBRT-4 invariant: keep id: reviewer. Tune adapter/model if desired.
42
- - id: reviewer
43
- adapter: codex
44
- model: gpt-5.5
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 DR-004 §11.
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 the package
11
- # specifier — e.g.
12
- # from: "@sublang/playbook/code/tmux-play"
13
- # (final form confirmed at publish time per DR-004 §11). Players,
14
- # options, and the rest of the config are unchanged.
15
- from: ./code.tmux-play.js
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 adapter through the package export, not
6
- # a local repo path. The runtime still expects the host app to provide 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/code/tmux-play"
14
+ from: "@sublang/playbook/playbook-captain"
11
15
  adapter: claude
12
16
  model: claude-sonnet-4-6
13
17
  reasoningEffort: high