@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
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MonorepoBootstrapController.js","sourceRoot":"","sources":["../../../src/modules/bootstrap/MonorepoBootstrapController.ts"],"names":[],"mappings":"AAgBA,OAAO,EACL,aAAa,EACb,eAAe,EACf,uBAAuB,EACvB,aAAa,EACb,sBAAsB,EACtB,mBAAmB,EACnB,aAAa,EACb,uBAAuB,EACvB,oBAAoB,EACpB,gBAAgB,EAChB,eAAe,GAChB,MAAM,qBAAqB,CAAA;AAC5B,OAAO,EAAE,yBAAyB,EAAE,MAAM,gCAAgC,CAAA;AAC1E,OAAO,EAAE,cAAc,EAAmB,MAAM,qBAAqB,CAAA;AAiCrE;;;;;;;GAOG;AACH,SAAS,eAAe,CAAC,GAAW;IAClC,MAAM,KAAK,GAAG,kCAAkC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAA;IAC1D,MAAM,MAAM,GAAG,KAAK,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,GAAG,CAAA;IACpD,OAAO,MAAM,CAAC,aAAa,CAAC,MAAM,CAAC,IAAI,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,IAAI,CAAA;AACnE,CAAC;AASD,MAAM,OAAO,2BAA2B;IACT,IAAI;IAAjC,YAA6B,IAA2B;oBAA3B,IAAI;IAA0B,CAAC;IAE5D;;;;;;;;;;;;;;;;;;;;;;;;;;;OA2BG;IACH,KAAK,CAAC,aAAa,CACjB,YAA8B,EAC9B,WAAmB,EACnB,MAA+B;QAE/B,MAAM,SAAS,GAAG,yBAAyB,CAAC,MAAM,CAAC,SAAS,CAAC,CAAA;QAC7D,IAAI,CAAC,SAAS,EAAE,CAAC;YACf,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AAC,KAAK,CAAC,GAAG,EAAE;SACnC,CAAA;IACH,CAAC;CACF"}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import type { AdoptionSurvey } from '@cat-factory/contracts';
|
|
2
|
+
import type { Logger, RepoFiles } from '@cat-factory/kernel';
|
|
3
|
+
/** One side's reader: a bound `RepoFiles` plus the git ref to read it at. */
|
|
4
|
+
export interface SurveySide {
|
|
5
|
+
files: RepoFiles;
|
|
6
|
+
/** Branch/sha to read at; undefined ⇒ the repo's default branch. */
|
|
7
|
+
gitRef?: string | undefined;
|
|
8
|
+
}
|
|
9
|
+
export interface MonorepoSurveyRequest {
|
|
10
|
+
/** The monorepo the service is landing in. */
|
|
11
|
+
monorepo: SurveySide;
|
|
12
|
+
/** The reference template, when the run has one (a from-scratch run has none). */
|
|
13
|
+
template?: SurveySide | undefined;
|
|
14
|
+
/** The new service's subdirectory (e.g. `services/billing`). */
|
|
15
|
+
directory: string;
|
|
16
|
+
logger?: Logger | undefined;
|
|
17
|
+
}
|
|
18
|
+
export interface MonorepoSurveyResult {
|
|
19
|
+
survey: AdoptionSurvey;
|
|
20
|
+
/** The read contents, keyed by the SAME prefixed path the survey and a decision's evidence use. */
|
|
21
|
+
files: Record<string, string>;
|
|
22
|
+
}
|
|
23
|
+
/** The parent directory a new service's siblings live in, or `''` for a root-level service. */
|
|
24
|
+
export declare function parentDirectoryOf(directory: string): string;
|
|
25
|
+
/**
|
|
26
|
+
* Survey both sides of a monorepo bootstrap: the house conventions the new service is landing
|
|
27
|
+
* among, and what the reference template ships for the same areas.
|
|
28
|
+
*
|
|
29
|
+
* Three reads make up the monorepo half, and the third is the one that matters most: the root
|
|
30
|
+
* config says what the repository declares, the CI workflows say what it enforces, and the
|
|
31
|
+
* nearest EXISTING SIBLING service says what a service in this repository actually looks like,
|
|
32
|
+
* which is the thing a new service has to match and the thing no root file states. When nothing
|
|
33
|
+
* beside the target qualifies as a sibling service, that is reported (`siblingService: null`)
|
|
34
|
+
* rather than filled with the first directory found, which is a claim the survey cannot support.
|
|
35
|
+
*
|
|
36
|
+
* Each side also contributes its own SHAPE (`noteLayout`), because the shape is the only evidence
|
|
37
|
+
* either side offers about source layout and module structure. Both are read off listings the
|
|
38
|
+
* survey already needed, so neither costs a request.
|
|
39
|
+
*/
|
|
40
|
+
export declare function surveyMonorepo(request: MonorepoSurveyRequest): Promise<MonorepoSurveyResult>;
|
|
41
|
+
//# sourceMappingURL=monorepoSurvey.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"monorepoSurvey.d.ts","sourceRoot":"","sources":["../../../src/modules/bootstrap/monorepoSurvey.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAA;AAC5D,OAAO,KAAK,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAA;AAuF5D,6EAA6E;AAC7E,MAAM,WAAW,UAAU;IACzB,KAAK,EAAE,SAAS,CAAA;IAChB,oEAAoE;IACpE,MAAM,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;CAC5B;AAED,MAAM,WAAW,qBAAqB;IACpC,8CAA8C;IAC9C,QAAQ,EAAE,UAAU,CAAA;IACpB,kFAAkF;IAClF,QAAQ,CAAC,EAAE,UAAU,GAAG,SAAS,CAAA;IACjC,gEAAgE;IAChE,SAAS,EAAE,MAAM,CAAA;IACjB,MAAM,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;CAC5B;AAED,MAAM,WAAW,oBAAoB;IACnC,MAAM,EAAE,cAAc,CAAA;IACtB,mGAAmG;IACnG,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;CAC9B;AAED,+FAA+F;AAC/F,wBAAgB,iBAAiB,CAAC,SAAS,EAAE,MAAM,GAAG,MAAM,CAG3D;AA2JD;;;;;;;;;;;;;;GAcG;AACH,wBAAsB,cAAc,CAClC,OAAO,EAAE,qBAAqB,GAC7B,OAAO,CAAC,oBAAoB,CAAC,CAqD/B"}
|
|
@@ -0,0 +1,289 @@
|
|
|
1
|
+
import { getErrorMessage } from '@cat-factory/kernel';
|
|
2
|
+
// ---------------------------------------------------------------------------
|
|
3
|
+
// The DETERMINISTIC half of a monorepo bootstrap's survey: what the two sides actually
|
|
4
|
+
// contain, read through the checkout-free `RepoFiles` port.
|
|
5
|
+
//
|
|
6
|
+
// The platform computes this and the model only JUDGES it. That split is the whole reason the
|
|
7
|
+
// suggestion is worth reviewing: a recommendation is checkable against a named file a human can
|
|
8
|
+
// open, and a claim about a convention that cites nothing the survey read is dropped upstream
|
|
9
|
+
// (`parseAdoptionDecisions`) rather than shown as if the platform had verified it.
|
|
10
|
+
//
|
|
11
|
+
// Two rules shape the reads. Everything probed is a BOUNDED, declared list (no crawl, no
|
|
12
|
+
// recursive walk), so the cost of a survey does not scale with the size of the monorepo it is
|
|
13
|
+
// landing in. And every read that FAILS is recorded as unreadable rather than skipped, because a
|
|
14
|
+
// plan built without the monorepo's CI is materially weaker than one built with it, and only the
|
|
15
|
+
// survey can say which of the two a reviewer is looking at.
|
|
16
|
+
// ---------------------------------------------------------------------------
|
|
17
|
+
/**
|
|
18
|
+
* The root-level files that carry a repository's conventions, in priority order.
|
|
19
|
+
*
|
|
20
|
+
* Cross-ecosystem on purpose: the flow is not JS-specific, and a Go or JVM monorepo whose
|
|
21
|
+
* conventions this list cannot see would produce a survey that silently found "nothing", the
|
|
22
|
+
* failure mode this whole module exists to avoid. Probed by INTERSECTION with a directory
|
|
23
|
+
* listing, so naming a file no repository has costs nothing.
|
|
24
|
+
*/
|
|
25
|
+
const CONVENTION_FILES = [
|
|
26
|
+
'package.json',
|
|
27
|
+
'pnpm-workspace.yaml',
|
|
28
|
+
'turbo.json',
|
|
29
|
+
'nx.json',
|
|
30
|
+
'lerna.json',
|
|
31
|
+
'tsconfig.json',
|
|
32
|
+
'tsconfig.base.json',
|
|
33
|
+
'eslint.config.js',
|
|
34
|
+
'eslint.config.mjs',
|
|
35
|
+
'.eslintrc.json',
|
|
36
|
+
'.oxlintrc.json',
|
|
37
|
+
'biome.json',
|
|
38
|
+
'.prettierrc',
|
|
39
|
+
'vitest.config.ts',
|
|
40
|
+
'jest.config.js',
|
|
41
|
+
'go.work',
|
|
42
|
+
'go.mod',
|
|
43
|
+
'Cargo.toml',
|
|
44
|
+
'pom.xml',
|
|
45
|
+
'build.gradle',
|
|
46
|
+
'build.gradle.kts',
|
|
47
|
+
'settings.gradle',
|
|
48
|
+
'pyproject.toml',
|
|
49
|
+
'requirements.txt',
|
|
50
|
+
'Gemfile',
|
|
51
|
+
'Makefile',
|
|
52
|
+
'Justfile',
|
|
53
|
+
'Dockerfile',
|
|
54
|
+
'docker-compose.yml',
|
|
55
|
+
'compose.yaml',
|
|
56
|
+
'AGENTS.md',
|
|
57
|
+
'CLAUDE.md',
|
|
58
|
+
'CONTRIBUTING.md',
|
|
59
|
+
'README.md',
|
|
60
|
+
];
|
|
61
|
+
/** Directory listings probed on the monorepo root for its CI wiring. */
|
|
62
|
+
const CI_DIRECTORIES = ['.github/workflows', '.gitlab-ci.yml', '.circleci'];
|
|
63
|
+
/**
|
|
64
|
+
* How many candidate siblings are examined before one is chosen as the worked example.
|
|
65
|
+
*
|
|
66
|
+
* Bounded like every other read here, and >1 because the FIRST entry of a services directory is
|
|
67
|
+
* not a service in any repository that also keeps tooling there: an alphabetical pick lands on
|
|
68
|
+
* `.github`, `.changeset` or a `docs/` folder and then reports CI config to the reviewer as what
|
|
69
|
+
* a service in this monorepo looks like. Dot-entries are excluded outright (below) and the rest
|
|
70
|
+
* are probed in order until one holds a convention file of its own.
|
|
71
|
+
*/
|
|
72
|
+
const MAX_SIBLING_CANDIDATES = 4;
|
|
73
|
+
/** Per-file content cap. A convention is legible from its opening; a lockfile-sized read is not. */
|
|
74
|
+
const MAX_FILE_CHARS = 6_000;
|
|
75
|
+
/** How many root files one side contributes, most-conventional first. */
|
|
76
|
+
const MAX_ROOT_FILES = 14;
|
|
77
|
+
/** How many files the worked-example sibling service contributes. */
|
|
78
|
+
const MAX_SIBLING_FILES = 10;
|
|
79
|
+
/** How many CI workflow files are read (they repeat heavily past the first couple). */
|
|
80
|
+
const MAX_CI_FILES = 2;
|
|
81
|
+
/** The parent directory a new service's siblings live in, or `''` for a root-level service. */
|
|
82
|
+
export function parentDirectoryOf(directory) {
|
|
83
|
+
const segments = directory.split('/').filter(Boolean);
|
|
84
|
+
return segments.slice(0, -1).join('/');
|
|
85
|
+
}
|
|
86
|
+
/** Clip one file's content to the per-file cap, stating the clip rather than hiding it. */
|
|
87
|
+
function clip(content) {
|
|
88
|
+
if (content.length <= MAX_FILE_CHARS)
|
|
89
|
+
return content;
|
|
90
|
+
return `${content.slice(0, MAX_FILE_CHARS)}\n…[truncated: ${content.length - MAX_FILE_CHARS} more characters not shown]`;
|
|
91
|
+
}
|
|
92
|
+
/**
|
|
93
|
+
* One side's reader, accumulating what it read and what it could not.
|
|
94
|
+
*
|
|
95
|
+
* `unreadable` is the load-bearing half. A `getFile` that THROWS is a provider failure (a
|
|
96
|
+
* revoked token, a rate limit, an outage), and it is not the same fact as the file being absent
|
|
97
|
+
* (which `getFile` reports as `null`). Collapsing the two would let a survey blinded by an
|
|
98
|
+
* expired installation token present itself as a monorepo with no conventions.
|
|
99
|
+
*/
|
|
100
|
+
class SideReader {
|
|
101
|
+
side;
|
|
102
|
+
prefix;
|
|
103
|
+
logger;
|
|
104
|
+
read = [];
|
|
105
|
+
unreadable = [];
|
|
106
|
+
contents = {};
|
|
107
|
+
constructor(side, prefix, logger) {
|
|
108
|
+
this.side = side;
|
|
109
|
+
this.prefix = prefix;
|
|
110
|
+
this.logger = logger;
|
|
111
|
+
}
|
|
112
|
+
/** Entry names of a directory, or null when it could not be listed (recorded as unreadable). */
|
|
113
|
+
async list(path) {
|
|
114
|
+
try {
|
|
115
|
+
return await this.side.files.listDirectory(path, this.side.gitRef);
|
|
116
|
+
}
|
|
117
|
+
catch (error) {
|
|
118
|
+
this.unreadable.push(`${path || '.'}/`);
|
|
119
|
+
this.logger?.warn('monorepo survey: directory listing failed', {
|
|
120
|
+
side: this.prefix,
|
|
121
|
+
path,
|
|
122
|
+
err: getErrorMessage(error),
|
|
123
|
+
});
|
|
124
|
+
return null;
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
/** Read one file into the survey; absent is silent, unreadable is recorded. */
|
|
128
|
+
async take(path) {
|
|
129
|
+
try {
|
|
130
|
+
const file = await this.side.files.getFile(path, this.side.gitRef);
|
|
131
|
+
if (!file)
|
|
132
|
+
return;
|
|
133
|
+
this.read.push(path);
|
|
134
|
+
this.contents[`${this.prefix}:${path}`] = clip(file.content);
|
|
135
|
+
}
|
|
136
|
+
catch (error) {
|
|
137
|
+
this.unreadable.push(path);
|
|
138
|
+
this.logger?.warn('monorepo survey: file read failed', {
|
|
139
|
+
side: this.prefix,
|
|
140
|
+
path,
|
|
141
|
+
err: getErrorMessage(error),
|
|
142
|
+
});
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
/**
|
|
146
|
+
* Record a directory's SHAPE as a citable survey entry.
|
|
147
|
+
*
|
|
148
|
+
* The listing is already in hand (nothing is re-read), and it is the only evidence the survey
|
|
149
|
+
* has for `source-layout` and module structure: no root manifest states where a service puts
|
|
150
|
+
* its code, its tests or its entry point, and the sibling's own config files do not either. A
|
|
151
|
+
* recommendation about layout that cites nothing is dropped upstream as invention, so without
|
|
152
|
+
* this the model can only ever answer `template` for one of the twelve areas it is asked
|
|
153
|
+
* about. Recorded under the directory path with a trailing slash, so the key a decision cites
|
|
154
|
+
* is visibly a listing rather than a file.
|
|
155
|
+
*/
|
|
156
|
+
noteLayout(dir, entries) {
|
|
157
|
+
if (entries.length === 0)
|
|
158
|
+
return;
|
|
159
|
+
// `./` for the root, matching how `list` names an unreadable root, so no key is a bare slash.
|
|
160
|
+
const path = dir ? `${dir}/` : './';
|
|
161
|
+
this.read.push(path);
|
|
162
|
+
this.contents[`${this.prefix}:${path}`] = entries
|
|
163
|
+
.map((entry) => `${entry.name}${entry.type === 'dir' ? '/' : ''}`)
|
|
164
|
+
.sort()
|
|
165
|
+
.join('\n');
|
|
166
|
+
}
|
|
167
|
+
/**
|
|
168
|
+
* Read the convention files a listed directory actually holds, in the declared priority order
|
|
169
|
+
* and capped. Reads run concurrently: the set is bounded and declared, so this is one fixed
|
|
170
|
+
* fan-out rather than a loop that grows with the repository.
|
|
171
|
+
*/
|
|
172
|
+
async takeConventionFiles(dir, entries, limit) {
|
|
173
|
+
const present = new Set(entries.filter((entry) => entry.type === 'file').map((entry) => entry.name));
|
|
174
|
+
const wanted = CONVENTION_FILES.filter((name) => present.has(name)).slice(0, limit);
|
|
175
|
+
await Promise.all(wanted.map((name) => this.take(dir ? `${dir}/${name}` : name)));
|
|
176
|
+
}
|
|
177
|
+
}
|
|
178
|
+
/**
|
|
179
|
+
* Entries of `parent` that could plausibly be a sibling SERVICE, in probe order.
|
|
180
|
+
*
|
|
181
|
+
* Excludes the target itself, every dot-entry, and the CI directories the survey has already
|
|
182
|
+
* read: `.github` sorts below every letter, so an alphabetical pick over a raw listing returns
|
|
183
|
+
* it for any root-level target, and the reviewer is then told a workflows folder is "the best
|
|
184
|
+
* available statement of what a service in this monorepo looks like".
|
|
185
|
+
*/
|
|
186
|
+
function siblingCandidates(entries, directory) {
|
|
187
|
+
const excluded = new Set(CI_DIRECTORIES);
|
|
188
|
+
return entries
|
|
189
|
+
.filter((entry) => entry.type === 'dir' &&
|
|
190
|
+
entry.path !== directory &&
|
|
191
|
+
!entry.name.startsWith('.') &&
|
|
192
|
+
!excluded.has(entry.path))
|
|
193
|
+
.map((entry) => entry.path)
|
|
194
|
+
.sort()
|
|
195
|
+
.slice(0, MAX_SIBLING_CANDIDATES);
|
|
196
|
+
}
|
|
197
|
+
/**
|
|
198
|
+
* Choose one existing sibling as the monorepo's worked example, read it, and return its path.
|
|
199
|
+
*
|
|
200
|
+
* A candidate has to actually look like a service: a directory holding no convention file of its
|
|
201
|
+
* own says nothing about how a service here is built, and presenting it as the example is worse
|
|
202
|
+
* than presenting none, because "no sibling" is a fact the plan REPORTS while a bad sibling is
|
|
203
|
+
* one it asserts. Returns null when nothing qualifies, which the survey carries through as
|
|
204
|
+
* `siblingService: null` and the prompt states outright.
|
|
205
|
+
*/
|
|
206
|
+
async function pickSiblingService(mono, entries, directory) {
|
|
207
|
+
if (!entries)
|
|
208
|
+
return null;
|
|
209
|
+
for (const candidate of siblingCandidates(entries, directory)) {
|
|
210
|
+
const own = await mono.list(candidate);
|
|
211
|
+
if (!own)
|
|
212
|
+
continue;
|
|
213
|
+
const names = new Set(own.filter((entry) => entry.type === 'file').map((entry) => entry.name));
|
|
214
|
+
if (!CONVENTION_FILES.some((name) => names.has(name)))
|
|
215
|
+
continue;
|
|
216
|
+
// The SHAPE first (it is the only evidence for layout), then the files themselves.
|
|
217
|
+
mono.noteLayout(candidate, own);
|
|
218
|
+
await mono.takeConventionFiles(candidate, own, MAX_SIBLING_FILES);
|
|
219
|
+
return candidate;
|
|
220
|
+
}
|
|
221
|
+
return null;
|
|
222
|
+
}
|
|
223
|
+
/**
|
|
224
|
+
* Survey both sides of a monorepo bootstrap: the house conventions the new service is landing
|
|
225
|
+
* among, and what the reference template ships for the same areas.
|
|
226
|
+
*
|
|
227
|
+
* Three reads make up the monorepo half, and the third is the one that matters most: the root
|
|
228
|
+
* config says what the repository declares, the CI workflows say what it enforces, and the
|
|
229
|
+
* nearest EXISTING SIBLING service says what a service in this repository actually looks like,
|
|
230
|
+
* which is the thing a new service has to match and the thing no root file states. When nothing
|
|
231
|
+
* beside the target qualifies as a sibling service, that is reported (`siblingService: null`)
|
|
232
|
+
* rather than filled with the first directory found, which is a claim the survey cannot support.
|
|
233
|
+
*
|
|
234
|
+
* Each side also contributes its own SHAPE (`noteLayout`), because the shape is the only evidence
|
|
235
|
+
* either side offers about source layout and module structure. Both are read off listings the
|
|
236
|
+
* survey already needed, so neither costs a request.
|
|
237
|
+
*/
|
|
238
|
+
export async function surveyMonorepo(request) {
|
|
239
|
+
const { directory, logger } = request;
|
|
240
|
+
const mono = new SideReader(request.monorepo, 'monorepo', logger);
|
|
241
|
+
const template = request.template
|
|
242
|
+
? new SideReader(request.template, 'template', logger)
|
|
243
|
+
: undefined;
|
|
244
|
+
// ---- the monorepo's root conventions -------------------------------------
|
|
245
|
+
const rootEntries = await mono.list('');
|
|
246
|
+
if (rootEntries)
|
|
247
|
+
await mono.takeConventionFiles('', rootEntries, MAX_ROOT_FILES);
|
|
248
|
+
// ---- what it enforces in CI ---------------------------------------------
|
|
249
|
+
for (const ciPath of CI_DIRECTORIES) {
|
|
250
|
+
if (ciPath.endsWith('.yml')) {
|
|
251
|
+
await mono.take(ciPath);
|
|
252
|
+
continue;
|
|
253
|
+
}
|
|
254
|
+
const entries = await mono.list(ciPath);
|
|
255
|
+
if (!entries)
|
|
256
|
+
continue;
|
|
257
|
+
const workflows = entries
|
|
258
|
+
.filter((entry) => entry.type === 'file')
|
|
259
|
+
.slice(0, MAX_CI_FILES)
|
|
260
|
+
.map((entry) => entry.path);
|
|
261
|
+
await Promise.all(workflows.map((path) => mono.take(path)));
|
|
262
|
+
}
|
|
263
|
+
// ---- the nearest existing sibling service (the worked example) -----------
|
|
264
|
+
const parent = parentDirectoryOf(directory);
|
|
265
|
+
// Re-uses the root listing for a root-level target rather than asking for it twice.
|
|
266
|
+
const siblingEntries = parent === '' ? rootEntries : await mono.list(parent);
|
|
267
|
+
const sibling = await pickSiblingService(mono, siblingEntries, directory);
|
|
268
|
+
// ---- the reference template ---------------------------------------------
|
|
269
|
+
// Its SHAPE is recorded beside its files for the same reason the sibling's is: a layout
|
|
270
|
+
// recommendation needs evidence on both sides, or the one side that has any wins by default.
|
|
271
|
+
if (template) {
|
|
272
|
+
const entries = await template.list('');
|
|
273
|
+
if (entries) {
|
|
274
|
+
template.noteLayout('', entries);
|
|
275
|
+
await template.takeConventionFiles('', entries, MAX_ROOT_FILES);
|
|
276
|
+
}
|
|
277
|
+
}
|
|
278
|
+
const survey = {
|
|
279
|
+
monorepoPaths: mono.read,
|
|
280
|
+
templatePaths: template?.read ?? [],
|
|
281
|
+
unreadablePaths: [
|
|
282
|
+
...mono.unreadable.map((path) => `monorepo:${path}`),
|
|
283
|
+
...(template?.unreadable ?? []).map((path) => `template:${path}`),
|
|
284
|
+
],
|
|
285
|
+
siblingService: sibling,
|
|
286
|
+
};
|
|
287
|
+
return { survey, files: { ...mono.contents, ...template?.contents } };
|
|
288
|
+
}
|
|
289
|
+
//# sourceMappingURL=monorepoSurvey.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"monorepoSurvey.js","sourceRoot":"","sources":["../../../src/modules/bootstrap/monorepoSurvey.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAA;AAErD,8EAA8E;AAC9E,uFAAuF;AACvF,4DAA4D;AAC5D,EAAE;AACF,8FAA8F;AAC9F,gGAAgG;AAChG,8FAA8F;AAC9F,mFAAmF;AACnF,EAAE;AACF,yFAAyF;AACzF,8FAA8F;AAC9F,iGAAiG;AACjG,iGAAiG;AACjG,4DAA4D;AAC5D,8EAA8E;AAE9E;;;;;;;GAOG;AACH,MAAM,gBAAgB,GAAG;IACvB,cAAc;IACd,qBAAqB;IACrB,YAAY;IACZ,SAAS;IACT,YAAY;IACZ,eAAe;IACf,oBAAoB;IACpB,kBAAkB;IAClB,mBAAmB;IACnB,gBAAgB;IAChB,gBAAgB;IAChB,YAAY;IACZ,aAAa;IACb,kBAAkB;IAClB,gBAAgB;IAChB,SAAS;IACT,QAAQ;IACR,YAAY;IACZ,SAAS;IACT,cAAc;IACd,kBAAkB;IAClB,iBAAiB;IACjB,gBAAgB;IAChB,kBAAkB;IAClB,SAAS;IACT,UAAU;IACV,UAAU;IACV,YAAY;IACZ,oBAAoB;IACpB,cAAc;IACd,WAAW;IACX,WAAW;IACX,iBAAiB;IACjB,WAAW;CACH,CAAA;AAEV,wE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AAM,GAAG,OAAO,CAAC,YAAY,CAAC,CAOtE;IAED,6FAA6F;YAC/E,cAAc;IAW5B,OAAO,CAAC,QAAQ;IAUhB,OAAO,CAAC,KAAK;IAcb,OAAO,CAAC,GAAG;CAGZ"}
|
|
@@ -43,6 +43,10 @@ export class PreviewService {
|
|
|
43
43
|
// serves it or reports it failed, so there is never a note to carry.
|
|
44
44
|
statusNote: null,
|
|
45
45
|
deletedAt: null,
|
|
46
|
+
// Nor a provider to poll at all: a preview is never refreshed through `refreshStatus`, so
|
|
47
|
+
// the poll marker stays at its never-polled value for the row's whole life.
|
|
48
|
+
lastPolledAt: null,
|
|
49
|
+
pollCount: 0,
|
|
46
50
|
provisionType: PREVIEW_PROVISION_TYPE,
|
|
47
51
|
engine: PREVIEW_PROVISION_TYPE,
|
|
48
52
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PreviewService.js","sourceRoot":"","sources":["../../../src/modules/preview/PreviewService.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,eAAe,EAAE,sBAAsB,EAAE,MAAM,qBAAqB,CAAA;AAwC7E,MAAM,OAAO,cAAc;IACI,IAAI;IAAjC,YAA6B,IAAgC;oBAAhC,IAAI;IAA+B,CAAC;IAEjE;;;;;OAKG;IACH,KAAK,CAAC,KAAK,CAAC,WAAmB,EAAE,OAAe;QAC9C,MAAM,IAAI,GAAG,MAAM,IAAI,CAAC,IAAI,CAAC,eAAe,CAAC,EAAE,WAAW,EAAE,OAAO,EAAE,CAAC,CAAA;QAEtE,2FAA2F;QAC3F,+DAA+D;QAC/D,MAAM,KAAK,GAAG,MAAM,IAAI,CAAC,cAAc,CAAC,WAAW,EAAE,OAAO,CAAC,CAAA;QAC7D,IAAI,KAAK;YACP,MAAM,IAAI,CAAC,IAAI,CAAC,6BAA6B,CAAC,UAAU,CAAC,WAAW,EAAE,KAAK,CAAC,EAAE,EAAE,IAAI,CAAC,GAAG,EAAE,CAAC,CAAA;QAE7F,MAAM,GA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,KAAK,CAAC,GAAG,CAAC,OAAO,IAAI,EAAE,EAAE,OAAO,EAAE,EAAE,GAAG,EAAE,GAAG,CAAC,GAAG,IAAI,SAAS,EAAE,CAAC,CAAA;QAC9E,CAAC;QACD,IAAI,GAAG,CAAC,MAAM,KAAK,QAAQ,EAAE,CAAC;YAC5B,OAAO,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,OAAO,IAAI,EAAE,EAAE,QAAQ,EAAE,EAAE,KAAK,EAAE,GAAG,CAAC,SAAS,IAAI,SAAS,EAAE,CAAC,CAAA;QACvF,CAAC;QACD,OAAO,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,OAAO,IAAI,EAAE,EAAE,UAAU,CAAC,CAAA;IAClD,CAAC;IAEO,KAAK,CACX,OAAe,EACf,MAA8B,EAC9B,KAAK,GAAqC,EAAE;QAE5C,OAAO;YACL,OAAO;YACP,MAAM;YACN,GAAG,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,GAAG,EAAE,KAAK,CAAC,GAAG,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;YACxC,GAAG,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,KAAK,CAAC,KAAK,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;YAC9C,SAAS,EAAE,IAAI,CAAC,GAAG,EAAE;SACtB,CAAA;IACH,CAAC;IAEO,GAAG;QACT,OAAO,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,GAAG,EAAE,CAAA;IAC9B,CAAC;CACF"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cat-factory/orchestration",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.296.0",
|
|
4
4
|
"description": "Delivery-workflow engine for the Agent Architecture Board (execution, bootstrap, pipelines, board, boardScan, requirements, and composition root).",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -24,19 +24,19 @@
|
|
|
24
24
|
"access": "public"
|
|
25
25
|
},
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"@cat-factory/agents": "0.
|
|
28
|
-
"@cat-factory/caching": "0.20.
|
|
29
|
-
"@cat-factory/contracts": "0.
|
|
30
|
-
"@cat-factory/integrations": "0.
|
|
31
|
-
"@cat-factory/kernel": "0.
|
|
32
|
-
"@cat-factory/prompt-fragments": "1.1.
|
|
33
|
-
"@cat-factory/sandbox": "0.12.
|
|
34
|
-
"@cat-factory/spend": "0.17.
|
|
35
|
-
"@cat-factory/workspaces": "0.28.
|
|
27
|
+
"@cat-factory/agents": "0.151.0",
|
|
28
|
+
"@cat-factory/caching": "0.20.61",
|
|
29
|
+
"@cat-factory/contracts": "0.340.0",
|
|
30
|
+
"@cat-factory/integrations": "0.170.1",
|
|
31
|
+
"@cat-factory/kernel": "0.329.0",
|
|
32
|
+
"@cat-factory/prompt-fragments": "1.1.23",
|
|
33
|
+
"@cat-factory/sandbox": "0.12.35",
|
|
34
|
+
"@cat-factory/spend": "0.17.5",
|
|
35
|
+
"@cat-factory/workspaces": "0.28.49",
|
|
36
36
|
"ai": "^7.0.85"
|
|
37
37
|
},
|
|
38
38
|
"devDependencies": {
|
|
39
|
-
"@cat-factory/sandbox-fixtures": "0.8.
|
|
39
|
+
"@cat-factory/sandbox-fixtures": "0.8.21",
|
|
40
40
|
"typescript": "7.0.2",
|
|
41
41
|
"vitest": "^4.1.11"
|
|
42
42
|
},
|