Migrate 9 files' entire core surface to the leaf modules directly (behaviour-identical — leaves are the objects core re-exports by reference): config, docs, gap-checker, graphify-command-router (namespace core.output -> io.output), init (17 core symbols -> 8 leaves), profile-output, uat, verification, workstream. All 9 now import zero core symbols and are removed from the allowlist (18 -> 9). Stale core.* docstrings corrected. core.cts re-exports untouched (still serve the remaining 9 files); teardown is T-final. No behaviour change. Closes #1283 Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
@@ -26,11 +26,9 @@
|
||||
// eslint-disable-next-line @typescript-eslint/no-require-imports
|
||||
import graphify = require('./graphify.cjs');
|
||||
// eslint-disable-next-line @typescript-eslint/no-require-imports
|
||||
import core = require('./core.cjs');
|
||||
// eslint-disable-next-line @typescript-eslint/no-require-imports
|
||||
import io = require('./io.cjs');
|
||||
|
||||
const { ERROR_REASON } = io;
|
||||
const { output, ERROR_REASON } = io;
|
||||
|
||||
// ─── Types ────────────────────────────────────────────────────────────────────
|
||||
|
||||
@@ -73,16 +71,16 @@ function routeGraphifyCommand({ args, cwd, raw, error, _graphify }: RouteGraphif
|
||||
}
|
||||
budget = parseInt(rawBudget, 10);
|
||||
}
|
||||
core.output(g.graphifyQuery(cwd, term, { budget }), raw);
|
||||
output(g.graphifyQuery(cwd, term, { budget }), raw);
|
||||
} else if (subcommand === 'status') {
|
||||
core.output(g.graphifyStatus(cwd), raw);
|
||||
output(g.graphifyStatus(cwd), raw);
|
||||
} else if (subcommand === 'diff') {
|
||||
core.output(g.graphifyDiff(cwd), raw);
|
||||
output(g.graphifyDiff(cwd), raw);
|
||||
} else if (subcommand === 'build') {
|
||||
if (args[2] === 'snapshot') {
|
||||
core.output(g.writeSnapshot(cwd), raw);
|
||||
output(g.writeSnapshot(cwd), raw);
|
||||
} else {
|
||||
core.output(g.graphifyBuild(cwd), raw);
|
||||
output(g.graphifyBuild(cwd), raw);
|
||||
}
|
||||
} else {
|
||||
error(
|
||||
|
||||
Reference in New Issue
Block a user