@sublang/playbook 0.9.0 → 1.3.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 +190 -151
- package/package.json +50 -6
- package/reference/sdlc/captain.md +102 -0
- package/reference/sdlc/captain.playbook/captain.fsm.d.ts +227 -0
- package/reference/sdlc/captain.playbook/captain.fsm.js +628 -0
- package/reference/sdlc/captain.playbook/captain.fsm.ts +851 -0
- package/reference/sdlc/captain.playbook/captain.gears.md +60 -0
- package/reference/sdlc/captain.playbook/captain.playbook.d.ts +23 -0
- package/reference/sdlc/captain.playbook/captain.playbook.js +1053 -0
- package/reference/sdlc/captain.playbook/captain.playbook.ts +1144 -0
- package/reference/sdlc/code.playbook/bin/playbook.js +158 -12
- package/reference/sdlc/code.playbook/bin/run.js +999 -0
- package/reference/sdlc/code.playbook/code.fsm.d.ts +11 -4
- package/reference/sdlc/code.playbook/code.fsm.introspect.d.ts +2 -2
- package/reference/sdlc/code.playbook/code.fsm.introspect.js +1 -1
- package/reference/sdlc/code.playbook/code.fsm.introspect.ts +6 -6
- package/reference/sdlc/code.playbook/code.fsm.js +334 -102
- package/reference/sdlc/code.playbook/code.fsm.ts +467 -180
- package/reference/sdlc/code.playbook/code.gears.md +11 -10
- package/reference/sdlc/code.playbook/code.playbook.d.ts +16 -19
- package/reference/sdlc/code.playbook/code.playbook.js +199 -488
- package/reference/sdlc/code.playbook/code.playbook.ts +327 -566
- package/reference/sdlc/code.playbook/code.registry.d.ts +0 -3
- package/reference/sdlc/code.playbook/code.registry.js +0 -3
- package/reference/sdlc/code.playbook/code.registry.ts +0 -6
- package/reference/sdlc/code.playbook/playbook-captain.d.ts +9 -4
- package/reference/sdlc/code.playbook/playbook-captain.js +889 -210
- package/reference/sdlc/code.playbook/playbook-captain.ts +1136 -257
- package/reference/sdlc/code.playbook/playbook.config.template.yaml +21 -0
- package/reference/sdlc/discuss.playbook/discuss.fsm.d.ts +396 -0
- package/reference/sdlc/discuss.playbook/discuss.fsm.js +2066 -0
- package/reference/sdlc/discuss.playbook/discuss.fsm.ts +2464 -0
- package/reference/sdlc/discuss.playbook/discuss.gears.md +251 -0
- package/reference/sdlc/discuss.playbook/discuss.playbook.d.ts +113 -0
- package/reference/sdlc/discuss.playbook/discuss.playbook.js +1514 -0
- package/reference/sdlc/discuss.playbook/discuss.playbook.ts +1926 -0
- package/reference/sdlc/discuss.playbook/discuss.registry.d.ts +58 -0
- package/reference/sdlc/discuss.playbook/discuss.registry.js +97 -0
- package/reference/sdlc/discuss.playbook/discuss.registry.ts +153 -0
- package/slc/gears2fsm.md +557 -57
- package/slc/link.md +1165 -89
- package/slc/optimize.md +92 -0
- package/slc/text2gears.md +255 -7
- package/src/runtime.d.ts +146 -3
- package/src/runtime.ts +201 -2
- package/src/xstate-playbook-runtime.d.ts +201 -0
- package/src/xstate-playbook-runtime.js +2058 -0
- package/src/xstate-playbook-runtime.ts +2792 -0
- package/src/xstate-runtime.d.ts +95 -0
- package/src/xstate-runtime.js +1258 -0
- package/src/xstate-runtime.ts +1816 -0
|
@@ -45,9 +45,6 @@ export interface CodePlaybookRegistryEntry {
|
|
|
45
45
|
command: 'code';
|
|
46
46
|
intent: string;
|
|
47
47
|
requiredRoleIds: readonly string[];
|
|
48
|
-
idleStateId: 'ready';
|
|
49
|
-
finalStateId: 'done';
|
|
50
|
-
parkStateIds: readonly string[];
|
|
51
48
|
summaryPolicy: PlaybookSummaryPolicy;
|
|
52
49
|
validateOptions(captainOptions: unknown): CodeOptions;
|
|
53
50
|
createRuntime(options: CreateCodeRuntimeOptions): PlaybookRuntime;
|
|
@@ -112,9 +112,6 @@ export const codePlaybookRegistryEntry = {
|
|
|
112
112
|
command: 'code',
|
|
113
113
|
intent: 'software development / SDLC coding workflow',
|
|
114
114
|
requiredRoleIds: ['coder', 'reviewer'],
|
|
115
|
-
idleStateId: 'ready',
|
|
116
|
-
finalStateId: 'done',
|
|
117
|
-
parkStateIds: ['failed', 'awaitBossReply'],
|
|
118
115
|
summaryPolicy: codeSummaryPolicy,
|
|
119
116
|
validateOptions: validateCodeOptions,
|
|
120
117
|
createRuntime(options) {
|
|
@@ -115,9 +115,6 @@ export interface CodePlaybookRegistryEntry {
|
|
|
115
115
|
command: 'code';
|
|
116
116
|
intent: string;
|
|
117
117
|
requiredRoleIds: readonly string[];
|
|
118
|
-
idleStateId: 'ready';
|
|
119
|
-
finalStateId: 'done';
|
|
120
|
-
parkStateIds: readonly string[];
|
|
121
118
|
summaryPolicy: PlaybookSummaryPolicy;
|
|
122
119
|
validateOptions(captainOptions: unknown): CodeOptions;
|
|
123
120
|
createRuntime(options: CreateCodeRuntimeOptions): PlaybookRuntime;
|
|
@@ -183,9 +180,6 @@ export const codePlaybookRegistryEntry: CodePlaybookRegistryEntry = {
|
|
|
183
180
|
command: 'code',
|
|
184
181
|
intent: 'software development / SDLC coding workflow',
|
|
185
182
|
requiredRoleIds: ['coder', 'reviewer'],
|
|
186
|
-
idleStateId: 'ready',
|
|
187
|
-
finalStateId: 'done',
|
|
188
|
-
parkStateIds: ['failed', 'awaitBossReply'],
|
|
189
183
|
summaryPolicy: codeSummaryPolicy,
|
|
190
184
|
validateOptions: validateCodeOptions,
|
|
191
185
|
createRuntime(options) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { Captain } from '@sublang/cligent/tmux-play';
|
|
2
|
-
import type { PlaybookRuntime } from '
|
|
2
|
+
import type { PlaybookRuntime } from '@sublang/playbook/runtime';
|
|
3
3
|
import type { PlaybookSummaryPolicy, RegistryPlayer } from './code.registry.js';
|
|
4
4
|
export interface CreatePlaybookRuntimeOptions {
|
|
5
5
|
captainOptions: unknown;
|
|
@@ -7,15 +7,20 @@ export interface CreatePlaybookRuntimeOptions {
|
|
|
7
7
|
}
|
|
8
8
|
export interface PlaybookCaptainDeps {
|
|
9
9
|
loadModule?: (specifier: string) => Promise<unknown>;
|
|
10
|
+
createSessionId?: () => string;
|
|
11
|
+
createCaptainRuntime?: (options: {
|
|
12
|
+
readonly enabledPlaybooks: readonly {
|
|
13
|
+
readonly id: string;
|
|
14
|
+
readonly command: string;
|
|
15
|
+
readonly intent: string;
|
|
16
|
+
}[];
|
|
17
|
+
}) => PlaybookRuntime;
|
|
10
18
|
}
|
|
11
19
|
export interface PlaybookCaptainRegistryEntry {
|
|
12
20
|
id: string;
|
|
13
21
|
command: string;
|
|
14
22
|
intent: string;
|
|
15
23
|
requiredRoleIds: readonly string[];
|
|
16
|
-
idleStateId: string;
|
|
17
|
-
finalStateId: string;
|
|
18
|
-
parkStateIds: readonly string[];
|
|
19
24
|
summaryPolicy?: PlaybookSummaryPolicy;
|
|
20
25
|
validateOptions(captainOptions: unknown): unknown;
|
|
21
26
|
createRuntime(options: CreatePlaybookRuntimeOptions): PlaybookRuntime;
|