refactor: deepen query architecture seams with compatibility shims
This commit is contained in:
@@ -1,19 +1,5 @@
|
||||
import type { QueryDispatchError, QueryDispatchResult } from './query-dispatch-contract.js';
|
||||
|
||||
export function dispatchFailure(error: QueryDispatchError, stderr: string[] = []): QueryDispatchResult {
|
||||
return {
|
||||
ok: false,
|
||||
error,
|
||||
stderr,
|
||||
exit_code: error.code,
|
||||
};
|
||||
}
|
||||
|
||||
export function dispatchSuccess(stdout: string, stderr: string[] = []): QueryDispatchResult {
|
||||
return {
|
||||
ok: true,
|
||||
stdout,
|
||||
stderr,
|
||||
exit_code: 0,
|
||||
};
|
||||
}
|
||||
/**
|
||||
* @deprecated Compatibility seam after Query Dispatch Module deepening.
|
||||
* Remove-after: all imports migrate to `query-dispatch.ts`.
|
||||
*/
|
||||
export { dispatchFailure, dispatchSuccess } from './query-dispatch.js';
|
||||
|
||||
Reference in New Issue
Block a user