* refactor(query): deepen command definition seam and fold fallback mapping cleanup * refactor(query): add shared dispatch formatting module seam * fix(query): restore QueryResult type import in dispatch deps * test/query: align raw-output policy and definition normalization contracts * refactor(query): deepen diagnosis, invariant report, and error taxonomy seams * refactor(query): deepen dispatch plan, fallback bridge, policy snapshot, and hints seams * refactor(query): deepen validation, fallback policy, capability, and result builder seams * refactor(query): deepen resolution strategy, output classifier, observability, and policy-capability seams * refactor(query): finalize deep strategy/classifier/observability/capability seams * test/query: address coderabbit inline and out-of-diff dispatch nits * fix(query): address remaining coderabbit input-validation and bridge stderr threads * fix(query): address remaining coderabbit dispatch and strategy/output nits
30 lines
630 B
TypeScript
30 lines
630 B
TypeScript
export interface UnknownCommandDetails {
|
|
normalized: string;
|
|
attempted: string[];
|
|
hints: string[];
|
|
}
|
|
|
|
export interface NativeErrorDetails {
|
|
command: string;
|
|
args: string[];
|
|
timeout_ms?: number;
|
|
}
|
|
|
|
export interface FallbackErrorDetails {
|
|
command: string;
|
|
args: string[];
|
|
backend: 'cjs';
|
|
}
|
|
|
|
export function unknownCommandDetails(input: UnknownCommandDetails): UnknownCommandDetails {
|
|
return input;
|
|
}
|
|
|
|
export function nativeErrorDetails(input: NativeErrorDetails): NativeErrorDetails {
|
|
return input;
|
|
}
|
|
|
|
export function fallbackErrorDetails(input: FallbackErrorDetails): FallbackErrorDetails {
|
|
return input;
|
|
}
|