mirror of
https://github.com/morluto/rea.git
synced 2026-11-14 10:43:30 +00:00
* refactor(cli): run one-shot commands through one shared owner scripts/rea.mjs and the test CLI session worker each implemented the one-shot command sequence: argument normalization, output admission, configuration errors, version documents, the Amp scope refusal, and result delivery. The worker copy had drifted: it never rendered formatted version reports or the Amp refusal. Move the sequence into src/cliOneShot.ts. Both callers supply a host for their streams, exit and resource ownership. The launcher keeps closed-pipe status, worker shutdown and process exit; the session worker captures output per command. The cliOutput bundle entry is superseded and removed. The dispatcher test now replaces only the command runtime, so output admission runs production code. A new parity test compares the file session with a fresh process. * test(cli): bundle the one-shot entry in the runtime bundle fixture
37 lines
1.0 KiB
JSON
37 lines
1.0 KiB
JSON
{
|
|
"$schema": "./node_modules/knip/schema.json",
|
|
"entry": [
|
|
"src/main.ts!",
|
|
"src/cli.ts!",
|
|
"src/cliOneShot.ts!",
|
|
"src/cliOutput.ts!",
|
|
"src/cliBuiltinArguments.ts!",
|
|
"src/cli/cliResultOutput.ts!",
|
|
"src/mcpDoctor.ts!",
|
|
"src/composition/javascriptAnalysisWorkerProcess.ts!",
|
|
"src/composition/webBundleAnalysisWorkerProcess.ts!",
|
|
"src/sqlite/SqliteDatabaseWorker.ts!",
|
|
"src/evm/EvmoleInterfaceWorker.ts!",
|
|
"src/browser/history/NodeCaptureProcess.ts!",
|
|
"src/javascript/sourceMaps/SourceMapCodecProcess.ts!",
|
|
"scripts/rea.mjs!",
|
|
"scripts/rea-android-workspace-guardian.mjs!",
|
|
"scripts/electron-active-hook.cjs!",
|
|
"scripts/prepack.mjs!",
|
|
"scripts/prepare.mjs!",
|
|
"scripts/verify-windows-native-artifact.mjs!"
|
|
],
|
|
"project": ["src/**/*.ts!", "!src/**/*.test.ts", "!src/**/*.fixture.ts"],
|
|
"ignoreExportsUsedInFile": true,
|
|
"include": [
|
|
"files",
|
|
"exports",
|
|
"nsExports",
|
|
"types",
|
|
"nsTypes",
|
|
"enumMembers",
|
|
"namespaceMembers",
|
|
"duplicates"
|
|
]
|
|
}
|