Files
msd-core/sdk/src/query/query-native-dispatch-adapter.ts
Tom Boucher 9c92c32f6e refactor(query): deepen runtime context/native adapter/output seams (#3076)
* refactor(query): deepen runtime context, native adapter, and cli output seams

* chore(changeset): add fragment for query seam deepening continuation

* refactor(query): converge internal command-resolution imports on canonical seam

* refactor(query): remove dead seam wrappers and converge on canonical modules

* docs(architecture): update context and adr for query seam completion

* fix(query): preserve gsd-tools stderr in cli output and clarify static ws test scope

* test(query): cover whitespace stderr and null exitCode fallback
2026-05-03 16:31:48 -04:00

17 lines
463 B
TypeScript

import type { QueryRegistry } from './registry.js';
import type { QueryResult } from './utils.js';
export interface QueryNativeDispatchAdapter {
dispatch(command: string, args: string[]): Promise<QueryResult>;
}
export function createQueryNativeDispatchAdapter(
registry: QueryRegistry,
projectDir: string,
ws?: string,
): QueryNativeDispatchAdapter {
return {
dispatch: (command, args) => registry.dispatch(command, args, projectDir, ws),
};
}