refactor(query): deepen command/dispatch seams and resolve coderabbit findings
* 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
This commit is contained in:
11
sdk/src/query/query-fallback-policy.ts
Normal file
11
sdk/src/query/query-fallback-policy.ts
Normal file
@@ -0,0 +1,11 @@
|
||||
export interface FallbackPolicyState {
|
||||
cjsFallbackEnabled: boolean;
|
||||
}
|
||||
|
||||
export function describeFallbackDisabledPolicy(): string {
|
||||
return 'CJS fallback is disabled (GSD_QUERY_FALLBACK=registered).';
|
||||
}
|
||||
|
||||
export function canUseCjsFallback(policy: FallbackPolicyState): boolean {
|
||||
return policy.cjsFallbackEnabled;
|
||||
}
|
||||
Reference in New Issue
Block a user