@cat-factory/orchestration 0.294.0 → 0.296.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/dist/container/dependencies.d.ts +10 -1
- package/dist/container/dependencies.d.ts.map +1 -1
- package/dist/container/engine-dependent-modules.d.ts +3 -0
- package/dist/container/engine-dependent-modules.d.ts.map +1 -1
- package/dist/container/engine-dependent-modules.js +7 -2
- package/dist/container/engine-dependent-modules.js.map +1 -1
- package/dist/container/modules.d.ts +5 -1
- package/dist/container/modules.d.ts.map +1 -1
- package/dist/container/modules.js +35 -2
- package/dist/container/modules.js.map +1 -1
- package/dist/container.d.ts.map +1 -1
- package/dist/container.js +1 -0
- package/dist/container.js.map +1 -1
- package/dist/index.d.ts +3 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +3 -0
- package/dist/index.js.map +1 -1
- package/dist/modules/bootstrap/BootstrapService.d.ts +92 -4
- package/dist/modules/bootstrap/BootstrapService.d.ts.map +1 -1
- package/dist/modules/bootstrap/BootstrapService.js +404 -20
- package/dist/modules/bootstrap/BootstrapService.js.map +1 -1
- package/dist/modules/bootstrap/MonorepoAdoptionAdvisorService.d.ts +35 -0
- package/dist/modules/bootstrap/MonorepoAdoptionAdvisorService.d.ts.map +1 -0
- package/dist/modules/bootstrap/MonorepoAdoptionAdvisorService.js +87 -0
- package/dist/modules/bootstrap/MonorepoAdoptionAdvisorService.js.map +1 -0
- package/dist/modules/bootstrap/MonorepoBootstrapController.d.ts +98 -0
- package/dist/modules/bootstrap/MonorepoBootstrapController.d.ts.map +1 -0
- package/dist/modules/bootstrap/MonorepoBootstrapController.js +278 -0
- package/dist/modules/bootstrap/MonorepoBootstrapController.js.map +1 -0
- package/dist/modules/bootstrap/monorepoSurvey.d.ts +41 -0
- package/dist/modules/bootstrap/monorepoSurvey.d.ts.map +1 -0
- package/dist/modules/bootstrap/monorepoSurvey.js +289 -0
- package/dist/modules/bootstrap/monorepoSurvey.js.map +1 -0
- package/dist/modules/preview/PreviewService.d.ts.map +1 -1
- package/dist/modules/preview/PreviewService.js +4 -0
- package/dist/modules/preview/PreviewService.js.map +1 -1
- package/package.json +11 -11
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,kDAAkD;AAElD,sFAAsF;AACtF,2FAA2F;AAC3F,mCAAmC;AACnC,OAAO,EAML,2BAA2B,EAC3B,sBAAsB,EACtB,qBAAqB,EACrB,yBAAyB,EACzB,gCAAgC,GACjC,MAAM,uCAAuC,CAAA;AAE9C,OAAO,EAAE,YAAY,EAAiC,MAAM,iCAAiC,CAAA;AAM7F,OAAO,KAAK,UAAU,MAAM,gCAAgC,CAAA;AAC5D,OAAO,EAAE,4BAA4B,EAAE,MAAM,0CAA0C,CAAA;AAEvF,OAAO,EACL,eAAe,GAEhB,MAAM,wCAAwC,CAAA;AAE/C,OAAO,EACL,gBAAgB,GAEjB,MAAM,yCAAyC,CAAA;AAKhD,+FAA+F;AAC/F,gGAAgG;AAChG,iGAAiG;AACjG,OAAO,EAAE,YAAY,EAAyB,MAAM,qCAAqC,CAAA;AAGzF,wFAAwF;AACxF,oFAAoF;AACpF,8CAA8C;AAC9C,OAAO,EAOL,iBAAiB,EACjB,YAAY,EACZ,mBAAmB,EACnB,eAAe,EAMf,oBAAoB,EACpB,2BAA2B,EAC3B,mBAAmB,EAOnB,aAAa,EACb,oBAAoB,EACpB,gBAAgB,GACjB,MAAM,qBAAqB,CAAA;AAC5B,OAAO,EACL,cAAc,EACd,aAAa,GAKd,MAAM,8BAA8B,CAAA;AACrC,OAAO,EACL,uBAAuB,EACvB,iBAAiB,EACjB,iBAAiB,GAElB,MAAM,mCAAmC,CAAA;AAC1C,OAAO,EACL,WAAW,EACX,SAAS,EACT,qBAAqB,EACrB,aAAa,EACb,sBAAsB,EACtB,qBAAqB,EACrB,mBAAmB,EACnB,iBAAi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AA8B,EAAE,MAAM,uDAAuD,CAAA;AACtG,OAAO,EACL,2BAA2B,GAE5B,MAAM,oDAAoD,CAAA;AAC3D,OAAO,EAAE,iBAAiB,EAAE,cAAc,EAAE,MAAM,uCAAuC,CAAA;AAEzF,OAAO,EACL,sBAAsB,GAIvB,MAAM,qDAAqD,CAAA;AAE5D,OAAO,EACL,sBAAsB,GAGvB,MAAM,kDAAkD,CAAA;AAEzD,OAAO,EACL,gBAAgB,GAEjB,MAAM,yCAAyC,CAAA;AAChD,OAAO,KAAK,cAAc,MAAM,yCAAyC,CAAA;AAEzE,OAAO,EACL,wBAAwB,GAEzB,MAAM,oDAAoD,CAAA;AAC3D,OAAO,KAAK,iBAAiB,MAAM,8CAA8C,CAAA;AAEjF,OAAO,EAAE,aAAa,EAAkC,MAAM,mCAAmC,CAAA;AACjG,OAAO,KAAK,WAAW,MAAM,kCAAkC,CAAA;AAE/D,OAAO,EACL,oBAAoB,GAErB,MAAM,2CAA2C,CAAA;AAClD,OAAO,KAAK,YAAY,MAAM,oCAAoC,CAAA;AAElE,OAAO,EACL,iBAAiB,GAElB,MAAM,2CAA2C,CAAA;AAClD,OAAO,KAAK,eAAe,MAAM,0CAA0C,CAAA;AAE3E,OAAO,EAyCL,UAAU,GACX,MAAM,gBAAgB,CAAA"}
|
|
@@ -1,13 +1,23 @@
|
|
|
1
|
-
import type { BootstrapFailureKind, BootstrapJob, BootstrapRepoInput, CreateReferenceArchitectureInput, ReferenceArchitecture, UpdateReferenceArchitectureInput } from '@cat-factory/kernel';
|
|
1
|
+
import type { AdoptionReviewInput, BootstrapFailureKind, BootstrapJob, BootstrapRepoInput, CreateReferenceArchitectureInput, ReferenceArchitecture, UpdateReferenceArchitectureInput } from '@cat-factory/kernel';
|
|
2
2
|
import type { Clock, IdGenerator } from '@cat-factory/kernel';
|
|
3
3
|
import type { BlockRepository, ServiceFragmentDefaultsRepository, ServiceRepository, WorkspaceMountRepository, WorkspaceRepository } from '@cat-factory/kernel';
|
|
4
4
|
import type { BootstrapJobRepository, ReferenceArchitectureRepository } from '@cat-factory/kernel';
|
|
5
5
|
import type { RepoBootstrapper } from '@cat-factory/kernel';
|
|
6
6
|
import type { BootstrapRunner } from '@cat-factory/kernel';
|
|
7
7
|
import type { ExecutionEventPublisher } from '@cat-factory/kernel';
|
|
8
|
-
|
|
8
|
+
import type { Logger } from '@cat-factory/kernel';
|
|
9
|
+
import { type MonorepoBootstrapDeps } from './MonorepoBootstrapController.js';
|
|
10
|
+
/**
|
|
11
|
+
* The poll's terminal-ness, returned to the durable driver so it knows when to stop.
|
|
12
|
+
*
|
|
13
|
+
* `awaiting_review` is a STOP that is not an end: the monorepo flow's survey has parked the run
|
|
14
|
+
* on a human decision, so the driver returns (a park can last days, and holding a Workflows
|
|
15
|
+
* instance or a pg-boss job open across it buys nothing) and the review's own resume starts a
|
|
16
|
+
* fresh drive. Kept distinct from `done` because the run has produced no service yet: a caller
|
|
17
|
+
* that collapsed the two would report a bootstrap as finished with nothing committed.
|
|
18
|
+
*/
|
|
9
19
|
export interface BootstrapPollResult {
|
|
10
|
-
state: 'running' | 'done' | 'failed';
|
|
20
|
+
state: 'running' | 'awaiting_review' | 'done' | 'failed';
|
|
11
21
|
/** Present when `state === 'failed'`. */
|
|
12
22
|
error?: string;
|
|
13
23
|
}
|
|
@@ -45,9 +55,22 @@ export interface BootstrapServiceDependencies {
|
|
|
45
55
|
* blueprint-only pipeline; absent in tests / when blueprints aren't configured.
|
|
46
56
|
*/
|
|
47
57
|
onBootstrapSucceeded?: (workspaceId: string, blockId: string) => Promise<void>;
|
|
58
|
+
/**
|
|
59
|
+
* The monorepo flow's collaborators (checkout-free reads, the adoption advisor, the budget
|
|
60
|
+
* probe). Absent ⇒ a request naming a `monorepo` target is refused with a 503, because
|
|
61
|
+
* `resolveTarget` cannot pre-flight the target directory without the reader; a plain new-repo
|
|
62
|
+
* bootstrap is unaffected, which is what keeps the two flows independently wireable.
|
|
63
|
+
*/
|
|
64
|
+
monorepo?: Omit<MonorepoBootstrapDeps, 'clock' | 'logger'>;
|
|
65
|
+
/** Facade logger; the survey's reads and drops are otherwise unowned. */
|
|
66
|
+
logger?: Logger;
|
|
48
67
|
}
|
|
49
68
|
export declare class BootstrapService {
|
|
50
69
|
private readonly deps;
|
|
70
|
+
/** The monorepo flow's decisions; a plain new-repo run never reaches it. */
|
|
71
|
+
private readonly monorepo;
|
|
72
|
+
/** Normalised once, so the best-effort paths stay unit-testable with no logger wired. */
|
|
73
|
+
private readonly log;
|
|
51
74
|
constructor(deps: BootstrapServiceDependencies);
|
|
52
75
|
/** True when a bootstrap run can actually be performed (the bootstrapper is wired). */
|
|
53
76
|
get canBootstrap(): boolean;
|
|
@@ -106,9 +129,74 @@ export declare class BootstrapService {
|
|
|
106
129
|
reason?: string;
|
|
107
130
|
kind?: BootstrapFailureKind;
|
|
108
131
|
}): Promise<BootstrapJob>;
|
|
132
|
+
/**
|
|
133
|
+
* The durable-driver key a run is CURRENTLY driven under, for the stale-run sweeper.
|
|
134
|
+
*
|
|
135
|
+
* The sweeper reads `agent_runs` generically and only ever learns a run's id, but a monorepo
|
|
136
|
+
* run in its apply phase is driven under a different key, so probing and re-driving it by run
|
|
137
|
+
* id would find no instance and finalize a perfectly healthy run as an orphan. Falls back to
|
|
138
|
+
* the run id for a run it cannot read, which is the key every single-drive run uses.
|
|
139
|
+
*/
|
|
140
|
+
driveIdOf(workspaceId: string, jobId: string): Promise<string>;
|
|
141
|
+
/**
|
|
142
|
+
* The SURVEY phase, run on the durable driver's first poll: read the monorepo and the
|
|
143
|
+
* reference template, ask the advisor what the new service should adopt from each, and park
|
|
144
|
+
* the run on the human decision.
|
|
145
|
+
*
|
|
146
|
+
* It never fails the run. A missing model, an unreadable repository or an unusable reply all
|
|
147
|
+
* park with a plan recorded `unavailable` and the cause, because the DECISION is the point of
|
|
148
|
+
* the phase and the suggestion is only an aid: a human bootstrapping into a monorepo on a
|
|
149
|
+
* deployment with no model still gets to make the call, unaided and told so.
|
|
150
|
+
*
|
|
151
|
+
* Guarded by an ATOMIC CLAIM taken BEFORE the model call, not by the plan written after it. A
|
|
152
|
+
* stored plan short-circuits a LATER drive, but two drives racing the FIRST one both read no
|
|
153
|
+
* plan, and the survey's cost is a vendor call plus a `park` that would replace the plan under
|
|
154
|
+
* a reviewer already looking at the other one (whose answers then 422). `claimSurvey` is one
|
|
155
|
+
* conditional UPDATE, so exactly one drive proceeds and the loser leaves the run alone.
|
|
156
|
+
*/
|
|
157
|
+
private runSurvey;
|
|
158
|
+
/** Record the plan, flip the run + its frame to "waiting for you", and announce it. */
|
|
159
|
+
private park;
|
|
160
|
+
/**
|
|
161
|
+
* Settle a parked run's adoption decisions and resume it.
|
|
162
|
+
*
|
|
163
|
+
* The refusals are the interesting half. A run that is not parked is a 409 naming where it
|
|
164
|
+
* actually is (the reviewer is looking at a stale tab, and applying their answers to a run
|
|
165
|
+
* that has moved on would build under a review given for a different proposal), and an
|
|
166
|
+
* incomplete or mismatched set of choices is a 422 from `resolveAdoptionReview`, never a
|
|
167
|
+
* silent fill from the recommendation, which would erase the difference between a human
|
|
168
|
+
* agreeing with the suggestion and never having read it.
|
|
169
|
+
*/
|
|
170
|
+
submitAdoptionReview(workspaceId: string, jobId: string, input: AdoptionReviewInput, reviewedByUserId: string | null): Promise<BootstrapJob>;
|
|
171
|
+
/**
|
|
172
|
+
* The APPLY phase: dispatch the container that writes the service into the monorepo under the
|
|
173
|
+
* settled decisions and opens the pull request.
|
|
174
|
+
*
|
|
175
|
+
* Its own drive id, because this is the run's SECOND durable drive: the survey's already went
|
|
176
|
+
* terminal, and neither facade's driver can be re-keyed on a key that has (a Workflows
|
|
177
|
+
* instance id cannot be recreated; a pg-boss singleton would dedupe against the finished job).
|
|
178
|
+
*/
|
|
179
|
+
private dispatchApply;
|
|
180
|
+
/**
|
|
181
|
+
* Finish a monorepo apply: bind the frame's service to the monorepo AT ITS DIRECTORY and
|
|
182
|
+
* report the pull request.
|
|
183
|
+
*
|
|
184
|
+
* A completed apply with NO pull request is a failure, not a success with a null field: the
|
|
185
|
+
* deliverable of a monorepo bootstrap is the PR (nothing is merged for the reviewer), so a run
|
|
186
|
+
* that reports done without one has left the work somewhere nobody can find it. Failing here
|
|
187
|
+
* says that, where marking the frame ready would claim a service that does not exist.
|
|
188
|
+
*/
|
|
189
|
+
private finishMonorepoApply;
|
|
109
190
|
/** The workspace default fragment ids a new service inherits; empty / never throws. */
|
|
110
191
|
private defaultServiceFragmentIds;
|
|
111
|
-
/**
|
|
192
|
+
/**
|
|
193
|
+
* Create the provisional, in-progress service frame a bootstrap run materialises.
|
|
194
|
+
*
|
|
195
|
+
* A monorepo run's frame carries its `directory` from the start, while the repo binding waits
|
|
196
|
+
* for the run to succeed exactly as the new-repo path's does: the directory is a fact the
|
|
197
|
+
* pre-flight already settled (and what the board card is about), whereas the linkage is a
|
|
198
|
+
* claim that there is code there, which is only true once the pull request exists.
|
|
199
|
+
*/
|
|
112
200
|
private createServiceFrame;
|
|
113
201
|
/** Flip a bootstrap's frame to a terminal status + description; null-safe. */
|
|
114
202
|
private markFrame;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BootstrapService.d.ts","sourceRoot":"","sources":["../../../src/modules/bootstrap/BootstrapService.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"BootstrapService.d.ts","sourceRoot":"","sources":["../../../src/modules/bootstrap/BootstrapService.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,mBAAmB,EAInB,oBAAoB,EACpB,YAAY,EACZ,kBAAkB,EAClB,gCAAgC,EAEhC,qBAAqB,EAErB,gCAAgC,EACjC,MAAM,qBAAqB,CAAA;AAC5B,OAAO,KAAK,EAAE,KAAK,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAA;AAC7D,OAAO,KAAK,EACV,eAAe,EACf,iCAAiC,EACjC,iBAAiB,EACjB,wBAAwB,EACxB,mBAAmB,EACpB,MAAM,qBAAqB,CA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