circle-ir-ai 4.34.0 → 4.35.2
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/CHANGELOG.md +27 -0
- package/dist/agents/mastra/workflow.d.ts +9 -0
- package/dist/agents/mastra/workflow.d.ts.map +1 -1
- package/dist/agents/mastra/workflow.js +12 -3
- package/dist/agents/mastra/workflow.js.map +1 -1
- package/dist/grid/index.d.ts +9 -0
- package/dist/grid/index.d.ts.map +1 -1
- package/dist/grid/index.js +19 -5
- package/dist/grid/index.js.map +1 -1
- package/dist/selectors/detect.d.ts +2 -0
- package/dist/selectors/detect.d.ts.map +1 -1
- package/dist/selectors/detect.js +1 -1
- package/dist/selectors/detect.js.map +1 -1
- package/dist/spec-gap/analyzer.js +30 -4
- package/dist/spec-gap/analyzer.js.map +1 -1
- package/dist/specifica/environment/diff.d.ts.map +1 -1
- package/dist/specifica/environment/diff.js +10 -2
- package/dist/specifica/environment/diff.js.map +1 -1
- package/dist/specifica/environment/index.d.ts +20 -3
- package/dist/specifica/environment/index.d.ts.map +1 -1
- package/dist/specifica/environment/index.js +40 -10
- package/dist/specifica/environment/index.js.map +1 -1
- package/dist/specifica/environment/merge.d.ts +12 -0
- package/dist/specifica/environment/merge.d.ts.map +1 -1
- package/dist/specifica/environment/merge.js +29 -6
- package/dist/specifica/environment/merge.js.map +1 -1
- package/dist/specifica/environment/read-ci.d.ts.map +1 -1
- package/dist/specifica/environment/read-ci.js +3 -2
- package/dist/specifica/environment/read-ci.js.map +1 -1
- package/dist/specifica/environment/read-compose.d.ts +17 -0
- package/dist/specifica/environment/read-compose.d.ts.map +1 -0
- package/dist/specifica/environment/read-compose.js +96 -0
- package/dist/specifica/environment/read-compose.js.map +1 -0
- package/dist/specifica/environment/read-docker.js +2 -2
- package/dist/specifica/environment/read-docker.js.map +1 -1
- package/dist/specifica/environment/read-dotenv.js +3 -3
- package/dist/specifica/environment/read-dotenv.js.map +1 -1
- package/dist/specifica/environment/read-wrangler.js +2 -2
- package/dist/specifica/environment/read-wrangler.js.map +1 -1
- package/dist/specifica/environment/secrets.d.ts +17 -2
- package/dist/specifica/environment/secrets.d.ts.map +1 -1
- package/dist/specifica/environment/secrets.js +67 -12
- package/dist/specifica/environment/secrets.js.map +1 -1
- package/dist/specifica/environment/write.d.ts +24 -1
- package/dist/specifica/environment/write.d.ts.map +1 -1
- package/dist/specifica/environment/write.js +183 -73
- package/dist/specifica/environment/write.js.map +1 -1
- package/dist/specifica/file-routes.d.ts +89 -0
- package/dist/specifica/file-routes.d.ts.map +1 -0
- package/dist/specifica/file-routes.js +374 -0
- package/dist/specifica/file-routes.js.map +1 -0
- package/dist/specifica/generator.d.ts.map +1 -1
- package/dist/specifica/generator.js +124 -2
- package/dist/specifica/generator.js.map +1 -1
- package/dist/specifica/index.d.ts +4 -1
- package/dist/specifica/index.d.ts.map +1 -1
- package/dist/specifica/index.js +4 -1
- package/dist/specifica/index.js.map +1 -1
- package/dist/specifica/layering.d.ts +140 -0
- package/dist/specifica/layering.d.ts.map +1 -0
- package/dist/specifica/layering.js +365 -0
- package/dist/specifica/layering.js.map +1 -0
- package/dist/specifica/learned-diff.d.ts +15 -1
- package/dist/specifica/learned-diff.d.ts.map +1 -1
- package/dist/specifica/learned-diff.js +63 -21
- package/dist/specifica/learned-diff.js.map +1 -1
- package/dist/specifica/learned-tree.d.ts +4 -0
- package/dist/specifica/learned-tree.d.ts.map +1 -1
- package/dist/specifica/learned-tree.js.map +1 -1
- package/dist/specifica/level-design.d.ts +170 -0
- package/dist/specifica/level-design.d.ts.map +1 -0
- package/dist/specifica/level-design.js +1253 -0
- package/dist/specifica/level-design.js.map +1 -0
- package/dist/specifica/library-surface.d.ts +62 -0
- package/dist/specifica/library-surface.d.ts.map +1 -0
- package/dist/specifica/library-surface.js +348 -0
- package/dist/specifica/library-surface.js.map +1 -0
- package/dist/specifica/modules.d.ts +37 -0
- package/dist/specifica/modules.d.ts.map +1 -0
- package/dist/specifica/modules.js +536 -0
- package/dist/specifica/modules.js.map +1 -0
- package/dist/specifica/spec-tree.d.ts +150 -0
- package/dist/specifica/spec-tree.d.ts.map +1 -0
- package/dist/specifica/spec-tree.js +689 -0
- package/dist/specifica/spec-tree.js.map +1 -0
- package/dist/specifica/tree-types.d.ts +228 -0
- package/dist/specifica/tree-types.d.ts.map +1 -0
- package/dist/specifica/tree-types.js +35 -0
- package/dist/specifica/tree-types.js.map +1 -0
- package/dist/specifica/tree-writer.d.ts +133 -0
- package/dist/specifica/tree-writer.d.ts.map +1 -0
- package/dist/specifica/tree-writer.js +402 -0
- package/dist/specifica/tree-writer.js.map +1 -0
- package/dist/specifica/types.d.ts +40 -0
- package/dist/specifica/types.d.ts.map +1 -1
- package/dist/specifica/use-cases.d.ts +80 -0
- package/dist/specifica/use-cases.d.ts.map +1 -0
- package/dist/specifica/use-cases.js +888 -0
- package/dist/specifica/use-cases.js.map +1 -0
- package/package.json +1 -1
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Modules for the learned spec tree (spec recovery 0.2, SR-E1; design §1.1).
|
|
3
|
+
*
|
|
4
|
+
* A module is a workspace package or a service: a deterministic boundary a
|
|
5
|
+
* manifest declares, never a split the engine invents. Read, in this order:
|
|
6
|
+
*
|
|
7
|
+
* - npm / yarn / bun `package.json` `workspaces`, pnpm `pnpm-workspace.yaml`
|
|
8
|
+
* - Cargo `[workspace] members` (minus `exclude`)
|
|
9
|
+
* - `go.work` `use` directives; without one, every nested `go.mod`
|
|
10
|
+
* - Maven `<modules>` (aggregator poms are walked, not listed)
|
|
11
|
+
* - Gradle `settings.gradle(.kts)` `include`
|
|
12
|
+
* - service markers: a `Dockerfile` or `wrangler.{toml,json,jsonc}` in a
|
|
13
|
+
* sub-directory, a compose service's `build` context; a k8s workload whose
|
|
14
|
+
* image name matches a module only confirms it (`alsoDeclaredBy`)
|
|
15
|
+
*
|
|
16
|
+
* Workspaces declared in a sub-directory are read too (their root is not a
|
|
17
|
+
* module, its members are). A repository with no root manifest and two or
|
|
18
|
+
* more top-level package directories lists those directories.
|
|
19
|
+
*
|
|
20
|
+
* A repository with none of these is one level: `modules` is empty and the
|
|
21
|
+
* root is the only level. Output is sorted by root, so the same checkout
|
|
22
|
+
* always gives the same modules and names.
|
|
23
|
+
*/
|
|
24
|
+
import type { ModuleMap } from './tree-types.js';
|
|
25
|
+
export interface DetectModulesOptions {
|
|
26
|
+
/** Directory depth to walk for markers (default 8). */
|
|
27
|
+
maxDepth?: number;
|
|
28
|
+
}
|
|
29
|
+
/** Last segment, or the whole root joined with `-` where last segments collide. */
|
|
30
|
+
export declare function assignModuleNames(roots: string[]): Map<string, string>;
|
|
31
|
+
/**
|
|
32
|
+
* Detect the modules of the repository at `repoRoot`. Packages come first;
|
|
33
|
+
* a service marker at a package's root, or inside it, marks that package a
|
|
34
|
+
* service instead of adding a module.
|
|
35
|
+
*/
|
|
36
|
+
export declare function detectModules(repoRoot: string, opts?: DetectModulesOptions): ModuleMap;
|
|
37
|
+
//# sourceMappingURL=modules.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"modules.d.ts","sourceRoot":"","sources":["../../src/specifica/modules.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;GAsBG;AAMH,OAAO,KAAK,EAAsB,SAAS,EAAgB,MAAM,iBAAiB,CAAC;AAkBnF,MAAM,WAAW,oBAAoB;IACnC,uDAAuD;IACvD,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAgYD,mFAAmF;AACnF,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,MAAM,EAAE,GAAG,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAetE;AAED;;;;GAIG;AACH,wBAAgB,aAAa,CAAC,QAAQ,EAAE,MAAM,EAAE,IAAI,GAAE,oBAAyB,GAAG,SAAS,CAqE1F"}
|
|
@@ -0,0 +1,536 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Modules for the learned spec tree (spec recovery 0.2, SR-E1; design §1.1).
|
|
3
|
+
*
|
|
4
|
+
* A module is a workspace package or a service: a deterministic boundary a
|
|
5
|
+
* manifest declares, never a split the engine invents. Read, in this order:
|
|
6
|
+
*
|
|
7
|
+
* - npm / yarn / bun `package.json` `workspaces`, pnpm `pnpm-workspace.yaml`
|
|
8
|
+
* - Cargo `[workspace] members` (minus `exclude`)
|
|
9
|
+
* - `go.work` `use` directives; without one, every nested `go.mod`
|
|
10
|
+
* - Maven `<modules>` (aggregator poms are walked, not listed)
|
|
11
|
+
* - Gradle `settings.gradle(.kts)` `include`
|
|
12
|
+
* - service markers: a `Dockerfile` or `wrangler.{toml,json,jsonc}` in a
|
|
13
|
+
* sub-directory, a compose service's `build` context; a k8s workload whose
|
|
14
|
+
* image name matches a module only confirms it (`alsoDeclaredBy`)
|
|
15
|
+
*
|
|
16
|
+
* Workspaces declared in a sub-directory are read too (their root is not a
|
|
17
|
+
* module, its members are). A repository with no root manifest and two or
|
|
18
|
+
* more top-level package directories lists those directories.
|
|
19
|
+
*
|
|
20
|
+
* A repository with none of these is one level: `modules` is empty and the
|
|
21
|
+
* root is the only level. Output is sorted by root, so the same checkout
|
|
22
|
+
* always gives the same modules and names.
|
|
23
|
+
*/
|
|
24
|
+
import * as fs from 'fs';
|
|
25
|
+
import * as path from 'path';
|
|
26
|
+
import { minimatch } from 'minimatch';
|
|
27
|
+
import { parse as parseYaml } from 'yaml';
|
|
28
|
+
const SKIP_DIRS = new Set([
|
|
29
|
+
'node_modules', '.git', 'dist', 'build', 'out', '.cognium', '.specifica', 'coverage', 'vendor',
|
|
30
|
+
'.next', '.turbo', '.wrangler', 'target', '__pycache__', '.venv', 'venv', '.gradle', '.idea',
|
|
31
|
+
'.devcontainer', '.github',
|
|
32
|
+
]);
|
|
33
|
+
/** Directories whose markers are examples or test inputs, not the repository's own modules. */
|
|
34
|
+
const NON_PRODUCT_DIRS = new Set([
|
|
35
|
+
'test', 'tests', '__tests__', 'fixtures', 'fixture', 'testdata', 'examples', 'example', 'samples',
|
|
36
|
+
'sample', 'e2e', 'docs', 'doc',
|
|
37
|
+
]);
|
|
38
|
+
const MAX_DEPTH = 8;
|
|
39
|
+
const MAX_DIRS = 20000;
|
|
40
|
+
const WRANGLER_FILES = ['wrangler.toml', 'wrangler.json', 'wrangler.jsonc'];
|
|
41
|
+
const COMPOSE_FILES = ['docker-compose.yml', 'docker-compose.yaml', 'compose.yml', 'compose.yaml'];
|
|
42
|
+
function walk(root, maxDepth) {
|
|
43
|
+
const dirs = new Set();
|
|
44
|
+
const files = new Map();
|
|
45
|
+
const queue = [['.', 0]];
|
|
46
|
+
while (queue.length && dirs.size < MAX_DIRS) {
|
|
47
|
+
const [rel, depth] = queue.shift();
|
|
48
|
+
dirs.add(rel);
|
|
49
|
+
let entries;
|
|
50
|
+
try {
|
|
51
|
+
entries = fs.readdirSync(path.join(root, rel), { withFileTypes: true });
|
|
52
|
+
}
|
|
53
|
+
catch {
|
|
54
|
+
continue;
|
|
55
|
+
}
|
|
56
|
+
const names = new Set();
|
|
57
|
+
for (const e of entries.sort((a, b) => (a.name < b.name ? -1 : a.name > b.name ? 1 : 0))) {
|
|
58
|
+
if (e.isDirectory()) {
|
|
59
|
+
if (depth >= maxDepth || SKIP_DIRS.has(e.name))
|
|
60
|
+
continue;
|
|
61
|
+
queue.push([rel === '.' ? e.name : `${rel}/${e.name}`, depth + 1]);
|
|
62
|
+
}
|
|
63
|
+
else if (e.isFile()) {
|
|
64
|
+
names.add(e.name);
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
files.set(rel, names);
|
|
68
|
+
}
|
|
69
|
+
return { dirs, files };
|
|
70
|
+
}
|
|
71
|
+
function read(root, rel) {
|
|
72
|
+
try {
|
|
73
|
+
return fs.readFileSync(path.join(root, rel), 'utf-8');
|
|
74
|
+
}
|
|
75
|
+
catch {
|
|
76
|
+
return undefined;
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
function join(dir, file) {
|
|
80
|
+
return dir === '.' ? file : `${dir}/${file}`;
|
|
81
|
+
}
|
|
82
|
+
/** `./a/b/` → `a/b`; `.` stays `.`. */
|
|
83
|
+
function normDir(p) {
|
|
84
|
+
const s = path.posix.normalize(p.replace(/\\/g, '/')).replace(/\/+$/, '');
|
|
85
|
+
return s === '' ? '.' : s;
|
|
86
|
+
}
|
|
87
|
+
function isNonProduct(dir) {
|
|
88
|
+
return dir.split('/').some(seg => NON_PRODUCT_DIRS.has(seg));
|
|
89
|
+
}
|
|
90
|
+
/** Directories under `base` matching workspace globs (with `!` negations) that hold `marker`. */
|
|
91
|
+
function matchGlobs(w, base, patterns, marker) {
|
|
92
|
+
const abs = (p) => normDir(path.posix.join(base, p));
|
|
93
|
+
const include = patterns.filter(p => !p.startsWith('!')).map(abs);
|
|
94
|
+
const exclude = patterns.filter(p => p.startsWith('!')).map(p => abs(p.slice(1)));
|
|
95
|
+
const out = [];
|
|
96
|
+
for (const d of w.dirs) {
|
|
97
|
+
if (d === base || d === '.' || !w.files.get(d)?.has(marker))
|
|
98
|
+
continue;
|
|
99
|
+
if (!include.some(p => minimatch(d, p, { dot: true })))
|
|
100
|
+
continue;
|
|
101
|
+
if (exclude.some(p => minimatch(d, p, { dot: true })))
|
|
102
|
+
continue;
|
|
103
|
+
out.push(d);
|
|
104
|
+
}
|
|
105
|
+
return out;
|
|
106
|
+
}
|
|
107
|
+
// ─── Readers ─────────────────────────────────────────────────────────
|
|
108
|
+
function jsonName(text) {
|
|
109
|
+
if (!text)
|
|
110
|
+
return undefined;
|
|
111
|
+
try {
|
|
112
|
+
const n = JSON.parse(text).name;
|
|
113
|
+
return typeof n === 'string' ? n : undefined;
|
|
114
|
+
}
|
|
115
|
+
catch {
|
|
116
|
+
return undefined;
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
function readNpm(root, w, base, manifests) {
|
|
120
|
+
const patterns = [];
|
|
121
|
+
const pkgText = read(root, join(base, 'package.json'));
|
|
122
|
+
if (pkgText) {
|
|
123
|
+
try {
|
|
124
|
+
const ws = JSON.parse(pkgText).workspaces;
|
|
125
|
+
const list = Array.isArray(ws) ? ws : ws?.packages;
|
|
126
|
+
if (Array.isArray(list)) {
|
|
127
|
+
patterns.push(...list.filter((x) => typeof x === 'string'));
|
|
128
|
+
manifests.push(join(base, 'package.json'));
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
catch {
|
|
132
|
+
/* not JSON: no workspaces */
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
const pnpm = read(root, join(base, 'pnpm-workspace.yaml'));
|
|
136
|
+
if (pnpm) {
|
|
137
|
+
try {
|
|
138
|
+
const pk = parseYaml(pnpm)?.packages;
|
|
139
|
+
if (Array.isArray(pk)) {
|
|
140
|
+
patterns.push(...pk.filter((x) => typeof x === 'string'));
|
|
141
|
+
manifests.push(join(base, 'pnpm-workspace.yaml'));
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
catch {
|
|
145
|
+
/* unreadable yaml */
|
|
146
|
+
}
|
|
147
|
+
}
|
|
148
|
+
if (patterns.length === 0)
|
|
149
|
+
return [];
|
|
150
|
+
return matchGlobs(w, base, patterns, 'package.json').map(d => ({
|
|
151
|
+
root: d,
|
|
152
|
+
kind: 'package',
|
|
153
|
+
manifest: join(d, 'package.json'),
|
|
154
|
+
source: 'npm-workspace',
|
|
155
|
+
declaredName: jsonName(read(root, join(d, 'package.json'))),
|
|
156
|
+
}));
|
|
157
|
+
}
|
|
158
|
+
/** The string items of a TOML array `key = [ ... ]` inside `[section]`, across lines. */
|
|
159
|
+
function tomlArray(text, section, key) {
|
|
160
|
+
const lines = text.split('\n');
|
|
161
|
+
let inSection = false;
|
|
162
|
+
let collecting = false;
|
|
163
|
+
let buf = '';
|
|
164
|
+
for (const raw of lines) {
|
|
165
|
+
const line = raw.replace(/#.*$/, '').trim();
|
|
166
|
+
if (!collecting && /^\[/.test(line)) {
|
|
167
|
+
inSection = line === `[${section}]`;
|
|
168
|
+
continue;
|
|
169
|
+
}
|
|
170
|
+
if (!inSection)
|
|
171
|
+
continue;
|
|
172
|
+
if (!collecting) {
|
|
173
|
+
const m = new RegExp(`^${key}\\s*=\\s*(\\[.*)$`).exec(line);
|
|
174
|
+
if (!m)
|
|
175
|
+
continue;
|
|
176
|
+
collecting = true;
|
|
177
|
+
buf = m[1];
|
|
178
|
+
}
|
|
179
|
+
else {
|
|
180
|
+
buf += ' ' + line;
|
|
181
|
+
}
|
|
182
|
+
if (buf.includes(']')) {
|
|
183
|
+
return [...buf.matchAll(/"([^"]*)"|'([^']*)'/g)].map(x => x[1] ?? x[2]);
|
|
184
|
+
}
|
|
185
|
+
}
|
|
186
|
+
return undefined;
|
|
187
|
+
}
|
|
188
|
+
function tomlPackageName(text) {
|
|
189
|
+
if (!text)
|
|
190
|
+
return undefined;
|
|
191
|
+
const sec = /^\[package\]\s*$([\s\S]*?)(?=^\[|$(?![\s\S]))/m.exec(text);
|
|
192
|
+
return sec ? /^\s*name\s*=\s*["']([^"']+)["']/m.exec(sec[1])?.[1] : undefined;
|
|
193
|
+
}
|
|
194
|
+
function readCargo(root, w, base, manifests) {
|
|
195
|
+
const text = read(root, join(base, 'Cargo.toml'));
|
|
196
|
+
if (!text)
|
|
197
|
+
return [];
|
|
198
|
+
const members = tomlArray(text, 'workspace', 'members');
|
|
199
|
+
if (!members)
|
|
200
|
+
return [];
|
|
201
|
+
manifests.push(join(base, 'Cargo.toml'));
|
|
202
|
+
const exclude = (tomlArray(text, 'workspace', 'exclude') ?? []).map(e => `!${e}`);
|
|
203
|
+
return matchGlobs(w, base, [...members, ...exclude], 'Cargo.toml').map(d => ({
|
|
204
|
+
root: d,
|
|
205
|
+
kind: 'package',
|
|
206
|
+
manifest: join(d, 'Cargo.toml'),
|
|
207
|
+
source: 'cargo-workspace',
|
|
208
|
+
declaredName: tomlPackageName(read(root, join(d, 'Cargo.toml'))),
|
|
209
|
+
}));
|
|
210
|
+
}
|
|
211
|
+
function goModuleName(text) {
|
|
212
|
+
return text ? /^module\s+(\S+)/m.exec(text)?.[1] : undefined;
|
|
213
|
+
}
|
|
214
|
+
function readGo(root, w, manifests) {
|
|
215
|
+
const work = read(root, 'go.work');
|
|
216
|
+
let dirs;
|
|
217
|
+
let source;
|
|
218
|
+
if (work) {
|
|
219
|
+
manifests.push('go.work');
|
|
220
|
+
const uses = [];
|
|
221
|
+
for (const m of work.matchAll(/^\s*use\s+\(([\s\S]*?)\)|^\s*use\s+(\S+)/gm)) {
|
|
222
|
+
if (m[1] !== undefined)
|
|
223
|
+
uses.push(...m[1].split('\n').map(l => l.replace(/\/\/.*$/, '').trim()).filter(Boolean));
|
|
224
|
+
else if (m[2])
|
|
225
|
+
uses.push(m[2]);
|
|
226
|
+
}
|
|
227
|
+
dirs = uses.map(normDir).filter(d => d !== '.' && w.files.get(d)?.has('go.mod'));
|
|
228
|
+
source = 'go-work';
|
|
229
|
+
}
|
|
230
|
+
else {
|
|
231
|
+
const all = [...w.dirs].filter(d => w.files.get(d)?.has('go.mod') && !isNonProduct(d));
|
|
232
|
+
const nested = all.filter(d => d !== '.');
|
|
233
|
+
// One go.mod (at the root or alone) is a single-module repository.
|
|
234
|
+
if (all.length < 2 || nested.length === 0)
|
|
235
|
+
return [];
|
|
236
|
+
dirs = nested;
|
|
237
|
+
source = 'go-module';
|
|
238
|
+
}
|
|
239
|
+
return dirs.map(d => ({
|
|
240
|
+
root: d,
|
|
241
|
+
kind: 'package',
|
|
242
|
+
manifest: join(d, 'go.mod'),
|
|
243
|
+
source,
|
|
244
|
+
declaredName: goModuleName(read(root, join(d, 'go.mod'))),
|
|
245
|
+
}));
|
|
246
|
+
}
|
|
247
|
+
function pomModules(text) {
|
|
248
|
+
const block = /<modules>([\s\S]*?)<\/modules>/.exec(text.replace(/<!--[\s\S]*?-->/g, ''))?.[1];
|
|
249
|
+
return block ? [...block.matchAll(/<module>\s*([^<]+?)\s*<\/module>/g)].map(m => m[1]) : [];
|
|
250
|
+
}
|
|
251
|
+
function pomArtifactId(text) {
|
|
252
|
+
if (!text)
|
|
253
|
+
return undefined;
|
|
254
|
+
const noParent = text.replace(/<!--[\s\S]*?-->/g, '').replace(/<parent>[\s\S]*?<\/parent>/, '');
|
|
255
|
+
return /<artifactId>\s*([^<]+?)\s*<\/artifactId>/.exec(noParent)?.[1];
|
|
256
|
+
}
|
|
257
|
+
function readMaven(root, manifests) {
|
|
258
|
+
const rootPom = read(root, 'pom.xml');
|
|
259
|
+
if (!rootPom || pomModules(rootPom).length === 0)
|
|
260
|
+
return [];
|
|
261
|
+
manifests.push('pom.xml');
|
|
262
|
+
const out = [];
|
|
263
|
+
const seen = new Set();
|
|
264
|
+
const visit = (dir, text, depth) => {
|
|
265
|
+
for (const mod of pomModules(text)) {
|
|
266
|
+
const d = normDir(path.posix.join(dir, mod.replace(/\/pom\.xml$/, '')));
|
|
267
|
+
if (d === '.' || d.startsWith('..') || seen.has(d))
|
|
268
|
+
continue;
|
|
269
|
+
seen.add(d);
|
|
270
|
+
const childPom = join(d, 'pom.xml');
|
|
271
|
+
const child = read(root, childPom);
|
|
272
|
+
if (!child)
|
|
273
|
+
continue;
|
|
274
|
+
if (pomModules(child).length > 0 && depth < MAX_DEPTH) {
|
|
275
|
+
visit(d, child, depth + 1); // an aggregator: walk it, do not list it
|
|
276
|
+
}
|
|
277
|
+
else {
|
|
278
|
+
out.push({ root: d, kind: 'package', manifest: childPom, source: 'maven-module', declaredName: pomArtifactId(child) });
|
|
279
|
+
}
|
|
280
|
+
}
|
|
281
|
+
};
|
|
282
|
+
visit('.', rootPom, 0);
|
|
283
|
+
return out;
|
|
284
|
+
}
|
|
285
|
+
function readGradle(root, w, manifests) {
|
|
286
|
+
const file = ['settings.gradle.kts', 'settings.gradle'].find(f => w.files.get('.')?.has(f));
|
|
287
|
+
if (!file)
|
|
288
|
+
return [];
|
|
289
|
+
const text = (read(root, file) ?? '').replace(/\/\/.*$/gm, '').replace(/\/\*[\s\S]*?\*\//g, '');
|
|
290
|
+
const paths = [];
|
|
291
|
+
for (const m of text.matchAll(/^\s*include\s*\(?([^\n]*)/gm)) {
|
|
292
|
+
for (const s of m[1].matchAll(/["']([^"']+)["']/g))
|
|
293
|
+
paths.push(s[1]);
|
|
294
|
+
}
|
|
295
|
+
if (paths.length === 0)
|
|
296
|
+
return [];
|
|
297
|
+
manifests.push(file);
|
|
298
|
+
// `:a:b` → a/b, unless settings remaps it with `project(':a:b').projectDir = file('x')`.
|
|
299
|
+
const remap = new Map();
|
|
300
|
+
for (const m of text.matchAll(/project\(\s*["']([^"']+)["']\s*\)\.projectDir\s*=\s*(?:file|new File)\(\s*(?:rootDir\s*,\s*)?["']([^"']+)["']/g)) {
|
|
301
|
+
remap.set(m[1].startsWith(':') ? m[1] : `:${m[1]}`, normDir(m[2]));
|
|
302
|
+
}
|
|
303
|
+
const out = [];
|
|
304
|
+
const all = paths.map(p => (p.startsWith(':') ? p : `:${p}`));
|
|
305
|
+
for (const p of all) {
|
|
306
|
+
const d = remap.get(p) ?? normDir(p.slice(1).split(':').join('/'));
|
|
307
|
+
if (d === '.' || !w.dirs.has(d))
|
|
308
|
+
continue;
|
|
309
|
+
// A project that only groups others (`:services` when `:services:api` exists) with no build file is not a module.
|
|
310
|
+
const hasBuild = ['build.gradle', 'build.gradle.kts'].some(b => w.files.get(d)?.has(b));
|
|
311
|
+
if (!hasBuild && all.some(o => o !== p && o.startsWith(`${p}:`)))
|
|
312
|
+
continue;
|
|
313
|
+
const build = ['build.gradle.kts', 'build.gradle'].find(b => w.files.get(d)?.has(b));
|
|
314
|
+
out.push({ root: d, kind: 'package', manifest: build ? join(d, build) : file, source: 'gradle-module', declaredName: p });
|
|
315
|
+
}
|
|
316
|
+
return out;
|
|
317
|
+
}
|
|
318
|
+
/** A directory that declares its own workspace (`package.json` workspaces, pnpm, Cargo `[workspace]`). */
|
|
319
|
+
function isWorkspaceRoot(root, w, d) {
|
|
320
|
+
const names = w.files.get(d);
|
|
321
|
+
if (!names)
|
|
322
|
+
return false;
|
|
323
|
+
if (names.has('pnpm-workspace.yaml'))
|
|
324
|
+
return true;
|
|
325
|
+
if (names.has('package.json')) {
|
|
326
|
+
try {
|
|
327
|
+
if (JSON.parse(read(root, join(d, 'package.json')) ?? '{}').workspaces)
|
|
328
|
+
return true;
|
|
329
|
+
}
|
|
330
|
+
catch {
|
|
331
|
+
/* not JSON */
|
|
332
|
+
}
|
|
333
|
+
}
|
|
334
|
+
return names.has('Cargo.toml') && /^\[workspace\]\s*$/m.test(read(root, join(d, 'Cargo.toml')) ?? '');
|
|
335
|
+
}
|
|
336
|
+
const PACKAGE_MANIFESTS = ['package.json', 'Cargo.toml', 'go.mod', 'pom.xml', 'build.gradle', 'build.gradle.kts', 'pyproject.toml'];
|
|
337
|
+
/**
|
|
338
|
+
* No manifest at the root but two or more top-level directories with their
|
|
339
|
+
* own (a repository of independent packages): each is a module. A top-level
|
|
340
|
+
* directory that is itself a workspace root is expanded, not listed.
|
|
341
|
+
*/
|
|
342
|
+
function readTopLevel(root, w) {
|
|
343
|
+
const rootFiles = w.files.get('.') ?? new Set();
|
|
344
|
+
if ([...PACKAGE_MANIFESTS, 'settings.gradle', 'settings.gradle.kts', 'go.work', 'pnpm-workspace.yaml'].some(f => rootFiles.has(f)))
|
|
345
|
+
return [];
|
|
346
|
+
const tops = [...w.dirs].filter(d => d !== '.' && !d.includes('/') && !isNonProduct(d)).sort();
|
|
347
|
+
const found = [];
|
|
348
|
+
for (const d of tops) {
|
|
349
|
+
const m = PACKAGE_MANIFESTS.find(f => w.files.get(d)?.has(f));
|
|
350
|
+
if (!m)
|
|
351
|
+
continue;
|
|
352
|
+
let declaredName;
|
|
353
|
+
const text = read(root, join(d, m));
|
|
354
|
+
if (m === 'package.json')
|
|
355
|
+
declaredName = jsonName(text);
|
|
356
|
+
else if (m === 'Cargo.toml')
|
|
357
|
+
declaredName = tomlPackageName(text);
|
|
358
|
+
else if (m === 'go.mod')
|
|
359
|
+
declaredName = goModuleName(text);
|
|
360
|
+
else if (m === 'pom.xml')
|
|
361
|
+
declaredName = pomArtifactId(text);
|
|
362
|
+
found.push({ root: d, kind: 'package', manifest: join(d, m), source: 'top-level-package', ...(declaredName ? { declaredName } : {}) });
|
|
363
|
+
}
|
|
364
|
+
if (found.length < 2)
|
|
365
|
+
return [];
|
|
366
|
+
return found.filter(c => !isWorkspaceRoot(root, w, c.root));
|
|
367
|
+
}
|
|
368
|
+
function serviceMarkers(root, w, manifests) {
|
|
369
|
+
const out = [];
|
|
370
|
+
for (const d of [...w.dirs].sort()) {
|
|
371
|
+
if (d === '.' || isNonProduct(d))
|
|
372
|
+
continue;
|
|
373
|
+
const names = w.files.get(d) ?? new Set();
|
|
374
|
+
const docker = [...names].filter(n => n === 'Dockerfile' || n.startsWith('Dockerfile.') || n.endsWith('.Dockerfile')).sort()[0];
|
|
375
|
+
if (docker)
|
|
376
|
+
out.push({ root: d, kind: 'service', manifest: join(d, docker), source: 'dockerfile' });
|
|
377
|
+
const wr = WRANGLER_FILES.find(f => names.has(f));
|
|
378
|
+
if (wr)
|
|
379
|
+
out.push({ root: d, kind: 'service', manifest: join(d, wr), source: 'wrangler' });
|
|
380
|
+
}
|
|
381
|
+
// Compose services with a build context.
|
|
382
|
+
for (const d of [...w.dirs].sort()) {
|
|
383
|
+
if (isNonProduct(d))
|
|
384
|
+
continue;
|
|
385
|
+
for (const cf of COMPOSE_FILES) {
|
|
386
|
+
if (!w.files.get(d)?.has(cf))
|
|
387
|
+
continue;
|
|
388
|
+
const rel = join(d, cf);
|
|
389
|
+
let doc;
|
|
390
|
+
try {
|
|
391
|
+
doc = parseYaml(read(root, rel) ?? '');
|
|
392
|
+
}
|
|
393
|
+
catch {
|
|
394
|
+
continue;
|
|
395
|
+
}
|
|
396
|
+
const services = doc?.services;
|
|
397
|
+
if (!services || typeof services !== 'object')
|
|
398
|
+
continue;
|
|
399
|
+
manifests.push(rel);
|
|
400
|
+
for (const name of Object.keys(services).sort()) {
|
|
401
|
+
const b = services[name]?.build;
|
|
402
|
+
const ctx = typeof b === 'string' ? b : typeof b === 'object' && b ? b.context : undefined;
|
|
403
|
+
if (typeof ctx !== 'string' || /^[a-z]+:\/\//i.test(ctx))
|
|
404
|
+
continue;
|
|
405
|
+
const ctxDir = normDir(path.posix.join(d, ctx));
|
|
406
|
+
if (ctxDir === '.' || ctxDir.startsWith('..') || !w.dirs.has(ctxDir))
|
|
407
|
+
continue;
|
|
408
|
+
out.push({ root: ctxDir, kind: 'service', manifest: rel, source: 'compose-service', declaredName: name });
|
|
409
|
+
}
|
|
410
|
+
}
|
|
411
|
+
}
|
|
412
|
+
return out;
|
|
413
|
+
}
|
|
414
|
+
/** k8s workloads (`kind: Deployment` …) and the image names they run; confirmation only. */
|
|
415
|
+
function k8sImages(root, w) {
|
|
416
|
+
const out = [];
|
|
417
|
+
for (const d of [...w.dirs].sort()) {
|
|
418
|
+
if (isNonProduct(d))
|
|
419
|
+
continue;
|
|
420
|
+
for (const f of [...(w.files.get(d) ?? [])].sort()) {
|
|
421
|
+
if (!/\.ya?ml$/.test(f))
|
|
422
|
+
continue;
|
|
423
|
+
const text = read(root, join(d, f));
|
|
424
|
+
if (!text || !/^kind:\s*(Deployment|StatefulSet|DaemonSet|CronJob|Job)\s*$/m.test(text))
|
|
425
|
+
continue;
|
|
426
|
+
for (const m of text.matchAll(/^\s*-?\s*image:\s*["']?([^\s"'#]+)/gm)) {
|
|
427
|
+
const last = m[1].split('/').pop().split(/[:@]/)[0];
|
|
428
|
+
if (last)
|
|
429
|
+
out.push({ file: join(d, f), image: last });
|
|
430
|
+
}
|
|
431
|
+
}
|
|
432
|
+
}
|
|
433
|
+
return out;
|
|
434
|
+
}
|
|
435
|
+
// ─── Naming and merging ──────────────────────────────────────────────
|
|
436
|
+
function slug(s) {
|
|
437
|
+
return s.replace(/[^A-Za-z0-9._-]+/g, '-').replace(/^-+|-+$/g, '') || 'module';
|
|
438
|
+
}
|
|
439
|
+
/** Last segment, or the whole root joined with `-` where last segments collide. */
|
|
440
|
+
export function assignModuleNames(roots) {
|
|
441
|
+
const last = (r) => slug(r.split('/').pop());
|
|
442
|
+
const counts = new Map();
|
|
443
|
+
for (const r of roots)
|
|
444
|
+
counts.set(last(r), (counts.get(last(r)) ?? 0) + 1);
|
|
445
|
+
const names = new Map();
|
|
446
|
+
const used = new Set();
|
|
447
|
+
for (const r of [...roots].sort()) {
|
|
448
|
+
let n = counts.get(last(r)) > 1 ? slug(r.split('/').join('-')) : last(r);
|
|
449
|
+
let i = 2;
|
|
450
|
+
const base = n;
|
|
451
|
+
while (used.has(n))
|
|
452
|
+
n = `${base}-${i++}`;
|
|
453
|
+
used.add(n);
|
|
454
|
+
names.set(r, n);
|
|
455
|
+
}
|
|
456
|
+
return names;
|
|
457
|
+
}
|
|
458
|
+
/**
|
|
459
|
+
* Detect the modules of the repository at `repoRoot`. Packages come first;
|
|
460
|
+
* a service marker at a package's root, or inside it, marks that package a
|
|
461
|
+
* service instead of adding a module.
|
|
462
|
+
*/
|
|
463
|
+
export function detectModules(repoRoot, opts = {}) {
|
|
464
|
+
const w = walk(repoRoot, opts.maxDepth ?? MAX_DEPTH);
|
|
465
|
+
const manifests = [];
|
|
466
|
+
// The root workspace, then any nested workspace root (a workspace inside a sub-directory).
|
|
467
|
+
const workspaceRoots = ['.', ...[...w.dirs].filter(d => d !== '.' && !isNonProduct(d) && isWorkspaceRoot(repoRoot, w, d)).sort()];
|
|
468
|
+
const packages = [
|
|
469
|
+
...workspaceRoots.flatMap(b => readNpm(repoRoot, w, b, manifests)),
|
|
470
|
+
...workspaceRoots.flatMap(b => readCargo(repoRoot, w, b, manifests)),
|
|
471
|
+
...readTopLevel(repoRoot, w),
|
|
472
|
+
...readGo(repoRoot, w, manifests),
|
|
473
|
+
...readMaven(repoRoot, manifests),
|
|
474
|
+
...readGradle(repoRoot, w, manifests),
|
|
475
|
+
];
|
|
476
|
+
const services = serviceMarkers(repoRoot, w, manifests);
|
|
477
|
+
const byRoot = new Map();
|
|
478
|
+
for (const c of packages) {
|
|
479
|
+
if (workspaceRoots.includes(c.root))
|
|
480
|
+
continue; // a nested workspace root: its members are the modules
|
|
481
|
+
const prev = byRoot.get(c.root);
|
|
482
|
+
if (prev)
|
|
483
|
+
prev.also.add(c.manifest);
|
|
484
|
+
else
|
|
485
|
+
byRoot.set(c.root, { ...c, also: new Set() });
|
|
486
|
+
}
|
|
487
|
+
const owner = (dir) => [...byRoot.keys()].filter(r => dir === r || dir.startsWith(`${r}/`)).sort((a, b) => b.length - a.length)[0];
|
|
488
|
+
for (const s of services) {
|
|
489
|
+
const o = owner(s.root);
|
|
490
|
+
if (o !== undefined) {
|
|
491
|
+
const m = byRoot.get(o);
|
|
492
|
+
if (m.manifest !== s.manifest)
|
|
493
|
+
m.also.add(s.manifest);
|
|
494
|
+
m.kind = 'service';
|
|
495
|
+
}
|
|
496
|
+
else if (workspaceRoots.includes(s.root) || packages.some(c => c.root.startsWith(`${s.root}/`))) {
|
|
497
|
+
// A marker at a nested workspace root, or above packages: the members are
|
|
498
|
+
// the modules; a module here would overlap them.
|
|
499
|
+
continue;
|
|
500
|
+
}
|
|
501
|
+
else {
|
|
502
|
+
byRoot.set(s.root, { ...s, also: new Set() });
|
|
503
|
+
}
|
|
504
|
+
}
|
|
505
|
+
const roots = [...byRoot.keys()].sort();
|
|
506
|
+
const names = assignModuleNames(roots);
|
|
507
|
+
const modules = roots.map(r => {
|
|
508
|
+
const c = byRoot.get(r);
|
|
509
|
+
return {
|
|
510
|
+
name: names.get(r),
|
|
511
|
+
root: r,
|
|
512
|
+
kind: c.kind,
|
|
513
|
+
manifest: c.manifest,
|
|
514
|
+
source: c.source,
|
|
515
|
+
...(c.declaredName ? { declaredName: c.declaredName } : {}),
|
|
516
|
+
...(c.also.size ? { alsoDeclaredBy: [...c.also].sort() } : {}),
|
|
517
|
+
};
|
|
518
|
+
});
|
|
519
|
+
if (modules.length) {
|
|
520
|
+
const byName = new Map();
|
|
521
|
+
for (const m of modules) {
|
|
522
|
+
byName.set(m.name, m);
|
|
523
|
+
if (m.declaredName)
|
|
524
|
+
byName.set(slug(m.declaredName.split('/').pop()), m);
|
|
525
|
+
}
|
|
526
|
+
for (const { file, image } of k8sImages(repoRoot, w)) {
|
|
527
|
+
const m = byName.get(slug(image));
|
|
528
|
+
if (!m)
|
|
529
|
+
continue;
|
|
530
|
+
m.kind = 'service';
|
|
531
|
+
m.alsoDeclaredBy = [...new Set([...(m.alsoDeclaredBy ?? []), file])].sort();
|
|
532
|
+
}
|
|
533
|
+
}
|
|
534
|
+
return { modules, manifests: [...new Set(manifests)].sort() };
|
|
535
|
+
}
|
|
536
|
+
//# sourceMappingURL=modules.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"modules.js","sourceRoot":"","sources":["../../src/specifica/modules.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;GAsBG;AAEH,OAAO,KAAK,EAAE,MAAM,IAAI,CAAC;AACzB,OAAO,KAAK,IAAI,MAAM,MAAM,CAAC;AAC7B,OAAO,EAAE,SAAS,EAAE,MAAM,WAAW,CAAC;AACtC,OAAO,EAAE,KAAK,IAAI,SAAS,EAAE,MAAM,MAAM,CAAC;AAG1C,MAAM,SAAS,GAAG,IAAI,GAAG,CAAC;IACxB,cAAc,EAAE,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,KAAK,EAAE,UAAU,EAAE,YAAY,EAAE,UAAU,EAAE,QAAQ;IAC9F,OAAO,EAAE,QAAQ,EAAE,WAAW,EAAE,QAAQ,EAAE,aAAa,EAAE,OAAO,EAAE,MAAM,EAAE,SAAS,EAAE,OAAO;IAC5F,eAAe,EAAE,SAAS;CAC3B,CAAC,CAAC;AACH,+FAA+F;AAC/F,MAAM,gBAAgB,GAAG,IAAI,GAAG,CAAC;IAC/B,MAAM,EAAE,OAAO,EAAE,WAAW,EAAE,UAAU,EAAE,SAAS,EAAE,UAAU,EAAE,UAAU,EAAE,SAAS,EAAE,SAAS;IACjG,QAA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