Files
reverse-engineering-anything/scripts/verify/baselines/incur-import.json
T
morluto ec1cf3a9bd refactor(cli): render command help with REA's own help owner (#11683)
* refactor(cli): render command help with REA's own help owner

Add src/cli/help.ts and move the three incur Help.formatCommand callers
(rea mcp add, rea mcp doctor, rea mcp --http) onto it. Option spelling and
the unwrapped field type move to src/cli/optionFields.ts, which completion
now reads instead of its own copies. A counted incur-import guard records
the names still imported from incur so the list can only shrink.

Refs #11654

* refactor(cli): share option spelling across CLI owners and count every incur import

The argv parser, strict positionals, contract command projection and the
command registry now read the flag spelling, declared field type and count
marker from src/cli/optionFields.ts instead of their own copies. The
incur-import guard also counts namespace, default, star, side-effect and
dynamic imports, so `import * as Incur from "incur"` cannot bring a removed
owner back.

* refactor(cli): format and filter CLI output without incur (#11684)

* refactor(cli): format and filter CLI output without incur

formatCliOutput encodes TOON (@toon-format/toon), JSON, YAML and JSON Lines
itself instead of calling incur's Formatter; YAML still loads on first use.
src/cli/outputFilter.ts owns the --filter-output grammar and returns a
Result: an unclosed slice is a parse failure, so output validation reads
the parser instead of a second bracket scanner, and the parsed paths
travel with the output arguments to the result writer and JSON Lines.
@toon-format/toon moves from devDependencies to dependencies because REA
now imports it at runtime.

Refs #11654

* test(cli): pin output encodings and filter grammar with literal cases

Literal expected outputs for empty values, TOON scalars, objects and rows,
JSON-text re-indentation, nested BigInt values, JSON Lines rows and YAML,
and literal parsed paths and unclosed-slice refusals for --filter-output,
so a change to either owner fails without comparing against itself.
2026-11-16 12:01:04 +08:00

71 lines
3.6 KiB
JSON

{
"src/cli/applicationCommands.ts": 1,
"src/cli/argumentErrors.ts": 1,
"src/cli/browserAdvancedCommands.ts": 1,
"src/cli/browserCommands.ts": 1,
"src/cli/cliShell.ts": 1,
"src/cli/electronCommands.ts": 1,
"src/cli/explicitSensitiveArguments.ts": 2,
"src/cli/processCommands.ts": 1,
"src/cli/strictPositionals.ts": 1,
"src/cli/types.ts": 1,
"src/cli/visitRegisteredCommands.ts": 1,
"src/cli/webRuntimeCommands.ts": 1,
"tests/boundary/captures/captureProvider.test.ts": 1,
"tests/boundary/cli/analyzeFunctionDetail.test.ts": 1,
"tests/boundary/cli/browserScenarioSummaryCli.test.ts": 1,
"tests/boundary/cli/browserScenarioValidation.test.ts": 1,
"tests/boundary/cli/captureCleanup.test.ts": 1,
"tests/boundary/cli/cliContractCommandParity.test.ts": 1,
"tests/boundary/cli/cliContractSchemaParity.test.ts": 1,
"tests/boundary/cli/cliControlFlag.test.ts": 1,
"tests/boundary/cli/cliDecimalArguments.test.ts": 2,
"tests/boundary/cli/cliDomainFieldSchema.test.ts": 1,
"tests/boundary/cli/cliInputSchemaRequired.test.ts": 1,
"tests/boundary/cli/cliJsonCallerPath.test.ts": 1,
"tests/boundary/cli/cliLazyRegistration.test.ts": 1,
"tests/boundary/cli/cliOptionAliases.test.ts": 1,
"tests/boundary/cli/cliResultControls.test.ts": 1,
"tests/boundary/cli/cliTimingArguments.test.ts": 1,
"tests/boundary/cli/cliTokenWindowOutput.test.ts": 1,
"tests/boundary/cli/commandEvidenceDelivery.test.ts": 1,
"tests/boundary/cli/completions.test.ts": 1,
"tests/boundary/cli/contractCommandInputFields.test.ts": 1,
"tests/boundary/cli/contractCommandViewDelivery.test.ts": 1,
"tests/boundary/cli/contractJsonInputChecks.test.ts": 1,
"tests/boundary/cli/defaultAmpRegistration.test.ts": 1,
"tests/boundary/cli/directAnalysisStatus.test.ts": 1,
"tests/boundary/cli/emptyLocalTargetAdmission.test.ts": 1,
"tests/boundary/cli/filteredArrayOutput.test.ts": 1,
"tests/boundary/cli/filteredFailureOutput.test.ts": 1,
"tests/boundary/cli/formattingRecovery.test.ts": 1,
"tests/boundary/cli/javascriptApplicationPathAdmission.test.ts": 1,
"tests/boundary/cli/jebInputDiagnostics.test.ts": 1,
"tests/boundary/cli/jsonLinesOutput.test.ts": 1,
"tests/boundary/cli/jsonOutput.test.ts": 1,
"tests/boundary/cli/markdownArgumentErrors.test.ts": 2,
"tests/boundary/cli/markdownNestedFacts.test.ts": 1,
"tests/boundary/cli/nativeFeatureTraceDelivery.test.ts": 1,
"tests/boundary/cli/nativeLoadImageSummaryCli.test.ts": 1,
"tests/boundary/cli/overnightBatch1CliSchemas.test.ts": 1,
"tests/boundary/cli/procedureReferencesDelivery.test.ts": 1,
"tests/boundary/cli/reverseEngineeringCommands.test.ts": 1,
"tests/boundary/cli/routedCommand.test.ts": 1,
"tests/boundary/cli/scenarioManifestCoverage.test.ts": 1,
"tests/boundary/cli/searchBytesAdmission.test.ts": 1,
"tests/boundary/cli/signalCleanup.test.ts": 1,
"tests/boundary/cli/strictPositionals.test.ts": 1,
"tests/boundary/cli/traceNativeValuesCompletenessCli.test.ts": 1,
"tests/boundary/cli/traceNativeValuesEvidenceCli.test.ts": 1,
"tests/boundary/mcp/syntheticContractSurfaces.test.ts": 1,
"tests/boundary/signals/recordingProvider.test.ts": 1,
"tests/boundary/sqlite/sqliteDatabaseDescriptorCleanup.test.ts": 1,
"tests/process-global/browserScenarioCleanup.test.ts": 1,
"tests/process-global/commandFinalizationCancellation.test.ts": 1,
"tests/process-global/flutterCliCleanup.test.ts": 1,
"tests/process-global/javascriptRuntimeObservationCli.test.ts": 1,
"tests/process-global/oneShotSourceClosure.test.ts": 1,
"tests/support/cli/apktoolCli.ts": 1,
"tests/support/cli/processComparisonCli.ts": 1
}