@sublang/playbook 15.1.0 → 17.0.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 +2 -0
- package/docs/cli.md +36 -18
- package/docs/configuration.md +7 -5
- package/docs/embedding.md +28 -7
- package/package.json +4 -4
- package/reference/sdlc/branch.playbook/branch.fsm.d.ts +63 -33
- package/reference/sdlc/branch.playbook/branch.fsm.js +190 -108
- package/reference/sdlc/branch.playbook/branch.fsm.ts +269 -147
- package/reference/sdlc/branch.playbook/branch.gears.md +7 -17
- package/reference/sdlc/branch.playbook/branch.playbook.d.ts +12 -16
- package/reference/sdlc/branch.playbook/branch.playbook.js +112 -101
- package/reference/sdlc/branch.playbook/branch.playbook.ts +128 -171
- package/reference/sdlc/branch.playbook/branch.registry.d.ts +3 -2
- package/reference/sdlc/branch.playbook/branch.registry.ts +6 -2
- package/reference/sdlc/captain.md +19 -10
- package/reference/sdlc/captain.playbook/captain.fsm.d.ts +6 -2
- package/reference/sdlc/captain.playbook/captain.fsm.js +19 -7
- package/reference/sdlc/captain.playbook/captain.fsm.ts +25 -10
- package/reference/sdlc/captain.playbook/captain.gears.md +16 -8
- package/reference/sdlc/captain.playbook/captain.playbook.d.ts +1 -1
- package/reference/sdlc/captain.playbook/captain.playbook.js +3 -2
- package/reference/sdlc/captain.playbook/captain.playbook.ts +4 -3
- package/reference/sdlc/code.playbook/bin/interactive-session.js +14 -1
- package/reference/sdlc/code.playbook/bin/portable-codec.js +3 -0
- package/reference/sdlc/code.playbook/bin/repository-effects.js +1 -0
- package/reference/sdlc/code.playbook/bin/run.js +128 -85
- package/reference/sdlc/code.playbook/bin/session-host.js +40 -8
- package/reference/sdlc/code.playbook/bin/session-store.js +162 -34
- package/reference/sdlc/code.playbook/code.fsm.d.ts +146 -93
- package/reference/sdlc/code.playbook/code.fsm.introspect.d.ts +8 -8
- package/reference/sdlc/code.playbook/code.fsm.introspect.ts +13 -13
- package/reference/sdlc/code.playbook/code.fsm.js +609 -649
- package/reference/sdlc/code.playbook/code.fsm.ts +890 -821
- package/reference/sdlc/code.playbook/code.gears.md +39 -29
- package/reference/sdlc/code.playbook/code.playbook.d.ts +13 -16
- package/reference/sdlc/code.playbook/code.playbook.js +166 -147
- package/reference/sdlc/code.playbook/code.playbook.ts +180 -229
- package/reference/sdlc/code.playbook/code.registry.d.ts +3 -2
- package/reference/sdlc/code.playbook/code.registry.ts +6 -2
- package/reference/sdlc/code.playbook/host-capabilities.d.ts +3 -0
- package/reference/sdlc/code.playbook/playbook-captain.d.ts +74 -2
- package/reference/sdlc/code.playbook/playbook-captain.js +1548 -468
- package/reference/sdlc/code.playbook/playbook-captain.ts +1993 -573
- package/reference/sdlc/code.playbook/session-host.d.ts +4 -1
- package/reference/sdlc/code.playbook/session-store.d.ts +17 -0
- package/reference/sdlc/code.playbook/session-store.js +1 -0
- package/reference/sdlc/decide.md +1 -0
- package/reference/sdlc/decide.playbook/decide.fsm.d.ts +273 -157
- package/reference/sdlc/decide.playbook/decide.fsm.js +765 -732
- package/reference/sdlc/decide.playbook/decide.fsm.ts +1167 -945
- package/reference/sdlc/decide.playbook/decide.gears.md +28 -21
- package/reference/sdlc/decide.playbook/decide.playbook.d.ts +11 -59
- package/reference/sdlc/decide.playbook/decide.playbook.js +155 -3696
- package/reference/sdlc/decide.playbook/decide.playbook.ts +186 -5244
- package/reference/sdlc/decide.playbook/decide.registry.d.ts +8 -4
- package/reference/sdlc/decide.playbook/decide.registry.js +2 -2
- package/reference/sdlc/decide.playbook/decide.registry.ts +13 -6
- package/reference/sdlc/dev.playbook/dev.fsm.d.ts +116 -134
- package/reference/sdlc/dev.playbook/dev.fsm.js +517 -575
- package/reference/sdlc/dev.playbook/dev.fsm.ts +667 -787
- package/reference/sdlc/dev.playbook/dev.gears.md +52 -54
- package/reference/sdlc/dev.playbook/dev.playbook.d.ts +13 -10
- package/reference/sdlc/dev.playbook/dev.playbook.js +128 -120
- package/reference/sdlc/dev.playbook/dev.playbook.ts +143 -193
- package/reference/sdlc/dev.playbook/dev.registry.d.ts +3 -2
- package/reference/sdlc/dev.playbook/dev.registry.ts +6 -2
- package/reference/sdlc/pr.playbook/pr.fsm.d.ts +95 -88
- package/reference/sdlc/pr.playbook/pr.fsm.js +461 -518
- package/reference/sdlc/pr.playbook/pr.fsm.ts +533 -663
- package/reference/sdlc/pr.playbook/pr.gears.md +47 -63
- package/reference/sdlc/pr.playbook/pr.playbook.d.ts +13 -23
- package/reference/sdlc/pr.playbook/pr.playbook.js +118 -112
- package/reference/sdlc/pr.playbook/pr.playbook.ts +136 -190
- package/reference/sdlc/pr.playbook/pr.registry.d.ts +3 -2
- package/reference/sdlc/pr.playbook/pr.registry.ts +4 -2
- package/reference/sdlc/review.md +3 -3
- package/reference/sdlc/review.playbook/review.fsm.d.ts +150 -116
- package/reference/sdlc/review.playbook/review.fsm.js +479 -550
- package/reference/sdlc/review.playbook/review.fsm.ts +717 -662
- package/reference/sdlc/review.playbook/review.gears.md +32 -29
- package/reference/sdlc/review.playbook/review.playbook.d.ts +12 -12
- package/reference/sdlc/review.playbook/review.playbook.js +180 -155
- package/reference/sdlc/review.playbook/review.playbook.ts +190 -230
- package/reference/sdlc/review.playbook/review.registry.d.ts +6 -5
- package/reference/sdlc/review.playbook/review.registry.js +3 -3
- package/reference/sdlc/review.playbook/review.registry.ts +9 -5
- package/slc/gears2fsm.md +77 -8
- package/slc/link.md +127 -60
- package/slc/materialize-link.mjs +51 -13
- package/slc/optimize.md +4 -1
- package/slc/prefix-prompts.mjs +29 -28
- package/slc/prefix.md +27 -24
- package/slc/slc.pin-inputs.json +11 -2
- package/slc/text2gears.md +71 -11
- package/src/runtime.d.ts +46 -2
- package/src/runtime.ts +42 -2
- package/src/xstate-playbook-runtime.d.ts +63 -23
- package/src/xstate-playbook-runtime.js +1637 -475
- package/src/xstate-playbook-runtime.ts +2105 -532
- package/src/xstate-runtime.d.ts +3 -4
- package/src/xstate-runtime.js +52 -0
- package/src/xstate-runtime.ts +59 -4
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { type
|
|
1
|
+
import { type PlaybookHostCapabilities, type PlaybookRuntime } from './decide.playbook.js';
|
|
2
|
+
import type { PlaybookHostConstructionCapabilities } from '../code.playbook/playbook-captain.js';
|
|
2
3
|
export interface PlaybookSummaryPolicy {
|
|
3
4
|
stateCountLabels: Readonly<Record<string, string>>;
|
|
4
5
|
copyPasteGuardNames: readonly string[];
|
|
@@ -14,14 +15,17 @@ export interface DecidePlaybookRegistryEntry {
|
|
|
14
15
|
intent: string;
|
|
15
16
|
artifactSchema: 3;
|
|
16
17
|
runtimeProfile: {
|
|
17
|
-
readonly kind: '
|
|
18
|
-
readonly
|
|
18
|
+
readonly kind: 'shared-factory';
|
|
19
|
+
readonly compat: {
|
|
20
|
+
readonly artifactSchema: 3;
|
|
21
|
+
readonly runtimeAbi: number;
|
|
22
|
+
};
|
|
19
23
|
};
|
|
20
24
|
requiredRoleIds: readonly ['coder', 'reviewer'];
|
|
21
25
|
concurrentRoleSets: readonly [readonly ['coder', 'reviewer']];
|
|
22
26
|
summaryPolicy: PlaybookSummaryPolicy;
|
|
23
27
|
validateOptions(optionSlice: unknown): DecideOptions;
|
|
24
|
-
createRuntime(options: DecideOptions, hostCapabilities:
|
|
28
|
+
createRuntime(options: DecideOptions, hostCapabilities: PlaybookHostConstructionCapabilities & PlaybookHostCapabilities): PlaybookRuntime;
|
|
25
29
|
}
|
|
26
30
|
export declare const decideStateCountLabels: {
|
|
27
31
|
readonly independentProposals: "proposal round";
|
|
@@ -44,8 +44,8 @@ export const decidePlaybookRegistryEntry = {
|
|
|
44
44
|
intent: 'synthesize independent Coder and Reviewer proposals into an approved spec-design commit',
|
|
45
45
|
artifactSchema: 3,
|
|
46
46
|
runtimeProfile: Object.freeze({
|
|
47
|
-
kind: '
|
|
48
|
-
|
|
47
|
+
kind: 'shared-factory',
|
|
48
|
+
compat: createPlaybookRuntime.compat,
|
|
49
49
|
}),
|
|
50
50
|
requiredRoleIds: ['coder', 'reviewer'],
|
|
51
51
|
concurrentRoleSets: [['coder', 'reviewer']],
|
|
@@ -2,9 +2,10 @@
|
|
|
2
2
|
// SPDX-FileCopyrightText: 2026 SubLang International <https://sublang.ai>
|
|
3
3
|
|
|
4
4
|
import createPlaybookRuntime, {
|
|
5
|
-
type
|
|
5
|
+
type PlaybookHostCapabilities,
|
|
6
6
|
type PlaybookRuntime,
|
|
7
7
|
} from './decide.playbook.js';
|
|
8
|
+
import type { PlaybookHostConstructionCapabilities } from '../code.playbook/playbook-captain.js';
|
|
8
9
|
|
|
9
10
|
export interface PlaybookSummaryPolicy {
|
|
10
11
|
stateCountLabels: Readonly<Record<string, string>>;
|
|
@@ -23,16 +24,22 @@ export interface DecidePlaybookRegistryEntry {
|
|
|
23
24
|
intent: string;
|
|
24
25
|
artifactSchema: 3;
|
|
25
26
|
runtimeProfile: {
|
|
26
|
-
readonly kind: '
|
|
27
|
-
readonly
|
|
27
|
+
readonly kind: 'shared-factory';
|
|
28
|
+
readonly compat: {
|
|
29
|
+
readonly artifactSchema: 3;
|
|
30
|
+
readonly runtimeAbi: number;
|
|
31
|
+
};
|
|
28
32
|
};
|
|
29
33
|
requiredRoleIds: readonly ['coder', 'reviewer'];
|
|
30
34
|
concurrentRoleSets: readonly [readonly ['coder', 'reviewer']];
|
|
31
35
|
summaryPolicy: PlaybookSummaryPolicy;
|
|
32
36
|
validateOptions(optionSlice: unknown): DecideOptions;
|
|
37
|
+
// The linked module types live authority as opaque (link-materialization);
|
|
38
|
+
// the Captain entry binds its own construction capabilities here.
|
|
33
39
|
createRuntime(
|
|
34
40
|
options: DecideOptions,
|
|
35
|
-
hostCapabilities:
|
|
41
|
+
hostCapabilities: PlaybookHostConstructionCapabilities &
|
|
42
|
+
PlaybookHostCapabilities,
|
|
36
43
|
): PlaybookRuntime;
|
|
37
44
|
}
|
|
38
45
|
|
|
@@ -98,8 +105,8 @@ export const decidePlaybookRegistryEntry: DecidePlaybookRegistryEntry = {
|
|
|
98
105
|
'synthesize independent Coder and Reviewer proposals into an approved spec-design commit',
|
|
99
106
|
artifactSchema: 3,
|
|
100
107
|
runtimeProfile: Object.freeze({
|
|
101
|
-
kind: '
|
|
102
|
-
|
|
108
|
+
kind: 'shared-factory',
|
|
109
|
+
compat: createPlaybookRuntime.compat,
|
|
103
110
|
}),
|
|
104
111
|
requiredRoleIds: ['coder', 'reviewer'],
|
|
105
112
|
concurrentRoleSets: [['coder', 'reviewer']],
|
|
@@ -1,41 +1,46 @@
|
|
|
1
|
+
import type { PlaybookCallResult } from '@sublang/playbook/runtime';
|
|
1
2
|
export type JsonValue = null | boolean | number | string | readonly JsonValue[] | {
|
|
2
3
|
readonly [key: string]: JsonValue;
|
|
3
4
|
};
|
|
4
|
-
|
|
5
|
-
export
|
|
5
|
+
/** DEV declares no parallel group. */
|
|
6
|
+
export declare const concurrentRoleSets: readonly (readonly string[])[];
|
|
7
|
+
export type DevRole = 'analyst';
|
|
6
8
|
export type DevChildPlaybookId = 'code' | 'decide' | 'branch' | 'pr';
|
|
9
|
+
export type DevCallStateId = 'callCode' | 'callDecide' | 'callCodeAfterDecide' | 'createBranch' | 'openPullRequest';
|
|
10
|
+
export type DevCallSourceItem = 'DEV-2' | 'DEV-3' | 'DEV-4' | 'DEV-5' | 'DEV-6';
|
|
11
|
+
type ResumableStateId = 'planAnalysis';
|
|
7
12
|
/**
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
*
|
|
13
|
+
* The development path a pull-request planning outcome selected. It routes
|
|
14
|
+
* the `branch` success into the `code` call (DEV-2) or the `decide` call
|
|
15
|
+
* (DEV-3); its absence means a plain path that calls neither `branch` nor `pr`.
|
|
11
16
|
*/
|
|
12
17
|
export type DevPullRequestPath = 'code' | 'decide-then-code';
|
|
13
|
-
export
|
|
14
|
-
readonly questionId:
|
|
15
|
-
readonly resumeStateId:
|
|
18
|
+
export interface PendingBossQuestion {
|
|
19
|
+
readonly questionId: ResumableStateId;
|
|
20
|
+
readonly resumeStateId: ResumableStateId;
|
|
16
21
|
readonly sourceItem: 'DEV-1';
|
|
17
22
|
readonly asker: {
|
|
18
23
|
readonly kind: 'role';
|
|
19
|
-
readonly roleId:
|
|
24
|
+
readonly roleId: DevRole;
|
|
20
25
|
};
|
|
21
26
|
readonly question: string;
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
readonly
|
|
26
|
-
|
|
27
|
-
export type PlayerInput = {
|
|
28
|
-
readonly stateId: 'planAnalysis';
|
|
29
|
-
readonly role: 'analyst';
|
|
27
|
+
}
|
|
28
|
+
type PendingBossQuestionParams = Omit<PendingBossQuestion, 'questionId' | 'question'>;
|
|
29
|
+
export interface PlayerInput {
|
|
30
|
+
readonly stateId: ResumableStateId;
|
|
31
|
+
readonly role: DevRole;
|
|
30
32
|
readonly sourceItem: 'DEV-1';
|
|
31
33
|
readonly prompt: string;
|
|
32
34
|
readonly result: Readonly<Record<string, string>>;
|
|
35
|
+
/** Substitutes `<development-request>`. */
|
|
33
36
|
readonly developmentRequest: string;
|
|
37
|
+
/** Substitutes `<discussion-context>`. */
|
|
34
38
|
readonly discussionContext: string;
|
|
39
|
+
/** Substitutes `<run-results>`. */
|
|
35
40
|
readonly runResults: string;
|
|
36
41
|
readonly pendingBossQuestion?: PendingBossQuestion;
|
|
37
42
|
readonly bossReply?: string;
|
|
38
|
-
}
|
|
43
|
+
}
|
|
39
44
|
export type PlayerOutput = {
|
|
40
45
|
readonly guard: 'discussionComplete';
|
|
41
46
|
} | {
|
|
@@ -54,50 +59,25 @@ export type PlayerOutput = {
|
|
|
54
59
|
readonly guard: 'needsBossReply';
|
|
55
60
|
readonly question: string;
|
|
56
61
|
};
|
|
57
|
-
export
|
|
58
|
-
readonly stateId:
|
|
59
|
-
readonly sourceItem:
|
|
62
|
+
export interface PlaybookInput {
|
|
63
|
+
readonly stateId: DevCallStateId;
|
|
64
|
+
readonly sourceItem: DevCallSourceItem;
|
|
60
65
|
readonly playbookId: DevChildPlaybookId;
|
|
61
66
|
readonly text: string;
|
|
62
|
-
}
|
|
63
|
-
/**
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
* the `decide`-owned commit, the exact evaluated repository revision, and
|
|
67
|
-
* the affirmative no-unsettled-findings fact. Additional members belong to
|
|
68
|
-
* DECIDE's own contract and do not disprove success.
|
|
69
|
-
*/
|
|
70
|
-
export type DecideSuccessOutput = {
|
|
71
|
-
readonly decideCommit: string;
|
|
72
|
-
readonly evaluatedRevision: string;
|
|
73
|
-
readonly noUnsettledFindings: true;
|
|
74
|
-
};
|
|
75
|
-
/**
|
|
76
|
-
* The fields DEV consumes from `branch`'s canonical structured terminal
|
|
77
|
-
* output before continuing a pull-request path: the exact branch name, the
|
|
78
|
-
* exact base revision, and the issue summary. Additional members belong to
|
|
79
|
-
* BRANCH's own contract and do not disprove success; a missing member is an
|
|
80
|
-
* insufficient result, never an empty default.
|
|
81
|
-
*/
|
|
82
|
-
export type BranchSuccessOutput = {
|
|
83
|
-
readonly branch: string;
|
|
84
|
-
readonly baseRevision: string;
|
|
85
|
-
readonly issueSummary: string;
|
|
86
|
-
};
|
|
87
|
-
/**
|
|
88
|
-
* The fields DEV consumes from `code`'s canonical structured terminal output
|
|
89
|
-
* before starting the dependent `pr` call: the exact last `code`-owned commit
|
|
90
|
-
* and the exact final evaluated repository revision.
|
|
91
|
-
*/
|
|
92
|
-
export type CodeSuccessOutput = {
|
|
93
|
-
readonly lastCodeCommit: string;
|
|
94
|
-
readonly finalEvaluatedRevision: string;
|
|
95
|
-
};
|
|
96
|
-
export type CompactError = {
|
|
67
|
+
}
|
|
68
|
+
/** The child's JSON-safe machine output itself, delivered on `onDone`. */
|
|
69
|
+
export type PlaybookOutput = JsonValue | undefined;
|
|
70
|
+
export interface CompactError {
|
|
97
71
|
readonly name: string;
|
|
98
72
|
readonly message: string;
|
|
99
|
-
}
|
|
100
|
-
/**
|
|
73
|
+
}
|
|
74
|
+
/** A control-plane error retained for inspection while DEV is parked. */
|
|
75
|
+
export interface ControlError {
|
|
76
|
+
readonly name: string;
|
|
77
|
+
readonly message: string;
|
|
78
|
+
readonly stack?: string;
|
|
79
|
+
}
|
|
80
|
+
/** Sanitized canonical child result that DEV relays as its own outcome. */
|
|
101
81
|
export type CompletedChildResult = {
|
|
102
82
|
readonly playbookId: DevChildPlaybookId;
|
|
103
83
|
readonly status: 'ok';
|
|
@@ -113,65 +93,74 @@ export type DevPlaybookOutput = {
|
|
|
113
93
|
readonly status: 'complete';
|
|
114
94
|
/** The final child of the selected path: `pr` on a pull-request path. */
|
|
115
95
|
readonly childPlaybookId: 'code' | 'pr';
|
|
116
|
-
/** The successful result of
|
|
96
|
+
/** The successful result of that final child call, when it has one. */
|
|
117
97
|
readonly childOutput?: JsonValue;
|
|
118
98
|
} | {
|
|
119
99
|
readonly status: 'child-failed';
|
|
120
100
|
/** The relayed canonical child result that ended the selected path. */
|
|
121
101
|
readonly childResult: CompletedChildResult;
|
|
122
102
|
};
|
|
123
|
-
|
|
124
|
-
readonly
|
|
103
|
+
type DevCompletion = {
|
|
104
|
+
readonly kind: 'discussion-complete';
|
|
105
|
+
} | {
|
|
106
|
+
readonly kind: 'complete';
|
|
107
|
+
readonly childPlaybookId: 'code' | 'pr';
|
|
108
|
+
readonly childOutput?: JsonValue;
|
|
109
|
+
} | {
|
|
110
|
+
readonly kind: 'child-failed';
|
|
111
|
+
readonly childResult: CompletedChildResult;
|
|
125
112
|
};
|
|
126
|
-
export
|
|
113
|
+
export interface DevInput {
|
|
114
|
+
/** Optional seed for `<run-results>`; absent means no relevant run results. */
|
|
115
|
+
readonly runResults?: string;
|
|
116
|
+
}
|
|
117
|
+
export interface DevContext {
|
|
127
118
|
readonly runResults: string;
|
|
128
119
|
readonly developmentRequest?: string;
|
|
129
|
-
|
|
120
|
+
/** Consumed Analyst Q&A for `<discussion-context>`; empty before any reply. */
|
|
121
|
+
readonly discussionContext: string;
|
|
130
122
|
readonly planningResult?: string;
|
|
123
|
+
readonly pullRequestPath?: DevPullRequestPath;
|
|
131
124
|
readonly decideCommit?: string;
|
|
132
125
|
readonly evaluatedRevision?: string;
|
|
133
|
-
/** DR-050: whether the accepted planning outcome selected a pull-request path. */
|
|
134
|
-
readonly deliveryViaPullRequest: boolean;
|
|
135
|
-
readonly pullRequestPath?: DevPullRequestPath;
|
|
136
126
|
readonly branch?: string;
|
|
137
127
|
readonly baseRevision?: string;
|
|
138
128
|
readonly issueSummary?: string;
|
|
139
129
|
readonly lastCodeCommit?: string;
|
|
140
130
|
readonly finalEvaluatedRevision?: string;
|
|
141
|
-
readonly completion?:
|
|
142
|
-
readonly
|
|
143
|
-
readonly childFailure?: CompletedChildResult;
|
|
144
|
-
readonly lastError?: unknown;
|
|
131
|
+
readonly completion?: DevCompletion;
|
|
132
|
+
readonly lastError?: ControlError;
|
|
145
133
|
readonly pendingBossQuestion?: PendingBossQuestion;
|
|
146
134
|
readonly bossReply?: string;
|
|
147
|
-
}
|
|
135
|
+
}
|
|
148
136
|
export type DevEvent = {
|
|
149
137
|
readonly type: 'START_DEV';
|
|
150
138
|
readonly developmentRequest: string;
|
|
151
139
|
} | {
|
|
152
140
|
readonly type: 'BOSS_REPLY';
|
|
153
141
|
readonly answer: string;
|
|
154
|
-
readonly questionId?:
|
|
142
|
+
readonly questionId?: string;
|
|
155
143
|
};
|
|
156
|
-
|
|
157
|
-
|
|
144
|
+
export declare function authoredChildResult(error: unknown, expectedPlaybookId: string): PlaybookCallResult | undefined;
|
|
145
|
+
/** One consumed Analyst question and Boss reply, as relayed discussion. */
|
|
146
|
+
export declare function renderDiscussionExchange(question: string, answer: string): string;
|
|
158
147
|
export declare const devMachine: import("xstate").StateMachine<DevContext, {
|
|
159
148
|
readonly type: "START_DEV";
|
|
160
149
|
readonly developmentRequest: string;
|
|
161
150
|
} | {
|
|
162
151
|
readonly type: "BOSS_REPLY";
|
|
163
152
|
readonly answer: string;
|
|
164
|
-
readonly questionId?:
|
|
153
|
+
readonly questionId?: string;
|
|
165
154
|
}, {
|
|
166
|
-
[x: string]: import("xstate").ActorRefFromLogic<import("xstate").PromiseActorLogic<
|
|
155
|
+
[x: string]: import("xstate").ActorRefFromLogic<import("xstate").PromiseActorLogic<PlayerOutput, PlayerInput, import("xstate").EventObject>> | import("xstate").ActorRefFromLogic<import("xstate").PromiseActorLogic<PlaybookOutput, PlaybookInput, import("xstate").EventObject>> | undefined;
|
|
167
156
|
}, {
|
|
168
|
-
src: "playbook";
|
|
169
|
-
logic: import("xstate").PromiseActorLogic<JsonValue | undefined, PlaybookInput, import("xstate").EventObject>;
|
|
170
|
-
id: string | undefined;
|
|
171
|
-
} | {
|
|
172
157
|
src: "player";
|
|
173
158
|
logic: import("xstate").PromiseActorLogic<PlayerOutput, PlayerInput, import("xstate").EventObject>;
|
|
174
159
|
id: string | undefined;
|
|
160
|
+
} | {
|
|
161
|
+
src: "playbook";
|
|
162
|
+
logic: import("xstate").PromiseActorLogic<PlaybookOutput, PlaybookInput, import("xstate").EventObject>;
|
|
163
|
+
id: string | undefined;
|
|
175
164
|
}, {
|
|
176
165
|
type: "playbook.acceptedOutcome";
|
|
177
166
|
params: {
|
|
@@ -182,36 +171,35 @@ export declare const devMachine: import("xstate").StateMachine<DevContext, {
|
|
|
182
171
|
} | {
|
|
183
172
|
type: "rememberActorError";
|
|
184
173
|
params: import("xstate").NonReducibleUnknown;
|
|
185
|
-
} | {
|
|
186
|
-
type: "rememberPendingQuestion";
|
|
187
|
-
params: import("xstate").NonReducibleUnknown;
|
|
188
174
|
} | {
|
|
189
175
|
type: "rememberBossReply";
|
|
190
176
|
params: import("xstate").NonReducibleUnknown;
|
|
191
|
-
} | {
|
|
192
|
-
type: "rememberEmptyBossReplyError";
|
|
193
|
-
params: import("xstate").NonReducibleUnknown;
|
|
194
177
|
} | {
|
|
195
178
|
type: "rememberMalformedPlayerOutput";
|
|
196
179
|
params: import("xstate").NonReducibleUnknown;
|
|
197
180
|
} | {
|
|
198
|
-
type: "
|
|
181
|
+
type: "clearBossReplyContext";
|
|
199
182
|
params: import("xstate").NonReducibleUnknown;
|
|
200
183
|
} | {
|
|
201
|
-
type: "
|
|
202
|
-
params:
|
|
184
|
+
type: "setPendingBossQuestion";
|
|
185
|
+
params: PendingBossQuestionParams;
|
|
203
186
|
} | {
|
|
204
|
-
type: "
|
|
187
|
+
type: "rememberMalformedBossReply";
|
|
205
188
|
params: import("xstate").NonReducibleUnknown;
|
|
206
189
|
} | {
|
|
207
|
-
type: "
|
|
190
|
+
type: "startDev";
|
|
208
191
|
params: import("xstate").NonReducibleUnknown;
|
|
209
192
|
} | {
|
|
210
|
-
type: "
|
|
193
|
+
type: "completeDiscussion";
|
|
211
194
|
params: import("xstate").NonReducibleUnknown;
|
|
212
195
|
} | {
|
|
213
|
-
type: "
|
|
196
|
+
type: "acceptPlainPlan";
|
|
214
197
|
params: import("xstate").NonReducibleUnknown;
|
|
198
|
+
} | {
|
|
199
|
+
type: "acceptPullRequestPlan";
|
|
200
|
+
params: {
|
|
201
|
+
readonly path: DevPullRequestPath;
|
|
202
|
+
};
|
|
215
203
|
} | {
|
|
216
204
|
type: "rememberBranchResult";
|
|
217
205
|
params: import("xstate").NonReducibleUnknown;
|
|
@@ -223,86 +211,80 @@ export declare const devMachine: import("xstate").StateMachine<DevContext, {
|
|
|
223
211
|
params: import("xstate").NonReducibleUnknown;
|
|
224
212
|
} | {
|
|
225
213
|
type: "completeWithChildSuccess";
|
|
226
|
-
params:
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
params: import("xstate").NonReducibleUnknown;
|
|
230
|
-
} | {
|
|
231
|
-
type: "completeWithInsufficientCodeResult";
|
|
232
|
-
params: import("xstate").NonReducibleUnknown;
|
|
233
|
-
} | {
|
|
234
|
-
type: "completeWithInsufficientDecideResult";
|
|
235
|
-
params: import("xstate").NonReducibleUnknown;
|
|
236
|
-
} | {
|
|
237
|
-
type: "completeWithBranchFailure";
|
|
238
|
-
params: import("xstate").NonReducibleUnknown;
|
|
239
|
-
} | {
|
|
240
|
-
type: "completeWithCodeFailure";
|
|
241
|
-
params: import("xstate").NonReducibleUnknown;
|
|
214
|
+
params: {
|
|
215
|
+
readonly childPlaybookId: "code" | "pr";
|
|
216
|
+
};
|
|
242
217
|
} | {
|
|
243
|
-
type: "
|
|
244
|
-
params:
|
|
218
|
+
type: "completeWithInsufficientResult";
|
|
219
|
+
params: {
|
|
220
|
+
readonly playbookId: DevChildPlaybookId;
|
|
221
|
+
};
|
|
245
222
|
} | {
|
|
246
|
-
type: "
|
|
247
|
-
params:
|
|
223
|
+
type: "completeWithAuthoredChildResult";
|
|
224
|
+
params: {
|
|
225
|
+
readonly playbookId: DevChildPlaybookId;
|
|
226
|
+
};
|
|
248
227
|
}, {
|
|
249
|
-
type: "
|
|
228
|
+
type: "needsBossReplyWithQuestion";
|
|
250
229
|
params: unknown;
|
|
251
230
|
} | {
|
|
252
231
|
type: "emptyBossReply";
|
|
253
232
|
params: unknown;
|
|
254
233
|
} | {
|
|
255
|
-
type: "
|
|
234
|
+
type: "startsDev";
|
|
235
|
+
params: unknown;
|
|
236
|
+
} | {
|
|
237
|
+
type: "discussionCompleteAfterBossReply";
|
|
256
238
|
params: unknown;
|
|
257
239
|
} | {
|
|
258
|
-
type: "
|
|
240
|
+
type: "needsBossReplyWithoutQuestion";
|
|
259
241
|
params: unknown;
|
|
260
242
|
} | {
|
|
261
|
-
type: "
|
|
243
|
+
type: "decideSucceeded";
|
|
262
244
|
params: unknown;
|
|
263
245
|
} | {
|
|
264
|
-
type: "
|
|
246
|
+
type: "codeSucceededOnPullRequestPath";
|
|
265
247
|
params: unknown;
|
|
266
248
|
} | {
|
|
267
|
-
type: "
|
|
249
|
+
type: "codeSucceededOnPlainPath";
|
|
268
250
|
params: unknown;
|
|
269
251
|
} | {
|
|
270
|
-
type: "
|
|
252
|
+
type: "codePlanned";
|
|
271
253
|
params: unknown;
|
|
272
254
|
} | {
|
|
273
|
-
type: "
|
|
255
|
+
type: "decideThenCodePlanned";
|
|
274
256
|
params: unknown;
|
|
275
257
|
} | {
|
|
276
|
-
type: "
|
|
258
|
+
type: "codeViaPullRequestPlanned";
|
|
277
259
|
params: unknown;
|
|
278
260
|
} | {
|
|
279
|
-
type: "
|
|
261
|
+
type: "decideThenCodeViaPullRequestPlanned";
|
|
280
262
|
params: unknown;
|
|
281
263
|
} | {
|
|
282
|
-
type: "
|
|
264
|
+
type: "branchSucceededForCode";
|
|
283
265
|
params: unknown;
|
|
284
266
|
} | {
|
|
285
|
-
type: "
|
|
267
|
+
type: "branchSucceededForDecide";
|
|
286
268
|
params: unknown;
|
|
287
269
|
} | {
|
|
288
|
-
type: "
|
|
270
|
+
type: "authoredBranchResult";
|
|
289
271
|
params: unknown;
|
|
290
272
|
} | {
|
|
291
|
-
type: "
|
|
273
|
+
type: "authoredDecideResult";
|
|
292
274
|
params: unknown;
|
|
293
275
|
} | {
|
|
294
|
-
type: "
|
|
276
|
+
type: "authoredCodeResult";
|
|
295
277
|
params: unknown;
|
|
296
278
|
} | {
|
|
297
|
-
type: "
|
|
279
|
+
type: "authoredPrResult";
|
|
298
280
|
params: unknown;
|
|
299
|
-
}, never, "done" | "failed" | "ready" | "awaitBossReply" | "
|
|
281
|
+
}, never, "done" | "failed" | "ready" | "awaitBossReply" | "callCode" | "callDecide" | "callCodeAfterDecide" | "createBranch" | "openPullRequest" | "planAnalysis" | "discussionComplete" | "reportedChildFailure", string, DevInput, {
|
|
300
282
|
readonly status: "discussion-complete";
|
|
301
283
|
} | {
|
|
302
284
|
readonly status: "complete";
|
|
303
285
|
/** The final child of the selected path: `pr` on a pull-request path. */
|
|
304
286
|
readonly childPlaybookId: "code" | "pr";
|
|
305
|
-
/** The successful result of
|
|
287
|
+
/** The successful result of that final child call, when it has one. */
|
|
306
288
|
readonly childOutput?: JsonValue;
|
|
307
289
|
} | {
|
|
308
290
|
readonly status: "child-failed";
|
|
@@ -317,6 +299,9 @@ export declare const devMachine: import("xstate").StateMachine<DevContext, {
|
|
|
317
299
|
readonly planAnalysis: {
|
|
318
300
|
id: "planAnalysis";
|
|
319
301
|
};
|
|
302
|
+
readonly awaitBossReply: {
|
|
303
|
+
id: "awaitBossReply";
|
|
304
|
+
};
|
|
320
305
|
readonly createBranch: {
|
|
321
306
|
id: "createBranch";
|
|
322
307
|
};
|
|
@@ -332,9 +317,6 @@ export declare const devMachine: import("xstate").StateMachine<DevContext, {
|
|
|
332
317
|
readonly openPullRequest: {
|
|
333
318
|
id: "openPullRequest";
|
|
334
319
|
};
|
|
335
|
-
readonly awaitBossReply: {
|
|
336
|
-
id: "awaitBossReply";
|
|
337
|
-
};
|
|
338
320
|
readonly failed: {
|
|
339
321
|
id: "failed";
|
|
340
322
|
};
|