mirror of
https://github.com/morluto/rea
synced 2026-10-27 14:42:18 -04:00
810107a2ad
Route ordinary CLI results through the bounded JSON writer after command registration, including managed member inspection. Remove JavaScript-specific output plumbing while preserving filters, envelopes, cancellation, and failure exits. Measure formatted UTF-16 expansion before Incur token counting and return resource_constraint above the runtime string limit, with recovery guidance. Validate output above the real V8 string limit by SHA-256 and exercise the compiled managed provider. Clean-worktree validation: npm run check; 76 focused tests passed, with 2 optional-provider skips; test discovery passed. Fixes #1371.
16 lines
645 B
TypeScript
16 lines
645 B
TypeScript
import type { DirectAnalysis } from "../composition/directAnalysis.js";
|
|
import type { Logger } from "pino";
|
|
import { registerCoreBinaryCommands } from "./coreBinaryCommands.js";
|
|
import { registerCoreNativeCommands } from "./coreNativeCommands.js";
|
|
import type { CliInstance } from "./types.js";
|
|
|
|
/** Register core binary and native deep-analysis CLI commands. */
|
|
export const registerCoreAnalysisCommands = (
|
|
cli: CliInstance,
|
|
logger: Logger,
|
|
runDirectAnalysis: DirectAnalysis["runDirectAnalysis"],
|
|
): void => {
|
|
registerCoreBinaryCommands(cli, logger, runDirectAnalysis);
|
|
registerCoreNativeCommands(cli, logger, runDirectAnalysis);
|
|
};
|