Deepen query dispatch seam with Command Topology Module (#3078)
* Deepen query dispatch seam with command topology module * Stabilize SDK parity defaults and integration test gating * docs(architecture): record pre-project config policy and e2e gate * refactor(query): stop injecting native adapter in CLI dispatch path * fix(config): align workflow auto-chain typing and docs
This commit is contained in:
@@ -2,7 +2,7 @@ import { createRegistry } from './index.js';
|
||||
import { runQueryDispatch } from './query-dispatch.js';
|
||||
import { resolveGsdToolsPath } from '../gsd-tools.js';
|
||||
import { resolveQueryRuntimeContext } from './query-runtime-context.js';
|
||||
import { createQueryNativeDispatchAdapter } from './query-native-dispatch-adapter.js';
|
||||
import { createCommandTopology } from './command-topology.js';
|
||||
import { buildQueryCliOutputFromDispatch, buildQueryCliOutputFromError, type QueryCliAdapterOutput } from './query-cli-output.js';
|
||||
|
||||
export interface QueryCliAdapterInput {
|
||||
@@ -22,13 +22,14 @@ export async function runQueryCliCommand(input: QueryCliAdapterInput): Promise<Q
|
||||
try {
|
||||
const runtime = resolveQueryRuntimeContext({ projectDir: input.projectDir, ws: input.ws });
|
||||
const registry = createRegistry();
|
||||
const topology = createCommandTopology(registry);
|
||||
const out = await runQueryDispatch({
|
||||
registry,
|
||||
projectDir: runtime.projectDir,
|
||||
ws: runtime.ws,
|
||||
cjsFallbackEnabled: queryFallbackToCjsEnabled(),
|
||||
resolveGsdToolsPath,
|
||||
nativeAdapter: createQueryNativeDispatchAdapter(registry, runtime.projectDir, runtime.ws),
|
||||
topology,
|
||||
}, input.queryArgv ?? []);
|
||||
|
||||
return buildQueryCliOutputFromDispatch(out);
|
||||
|
||||
Reference in New Issue
Block a user