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:
@@ -41,9 +41,11 @@ describe('query-cli-adapter', () => {
|
||||
expect(out.stderrLines.join('\n')).toContain('requires a command');
|
||||
});
|
||||
|
||||
it('forwards ws to registry.dispatch via native adapter', async () => {
|
||||
it('passes ws and topology to dispatch without native adapter', async () => {
|
||||
runQueryDispatchSpy.mockImplementationOnce(async (input: any) => {
|
||||
await input.nativeAdapter.dispatch('state', ['show']);
|
||||
expect(input.ws).toBe('alpha');
|
||||
expect(input.topology).toBeDefined();
|
||||
expect(input.nativeAdapter).toBeUndefined();
|
||||
return { ok: true, exit_code: 0, stdout: '', stderr: [] };
|
||||
});
|
||||
|
||||
@@ -52,7 +54,5 @@ describe('query-cli-adapter', () => {
|
||||
ws: 'alpha',
|
||||
queryArgv: ['state', 'show'],
|
||||
});
|
||||
|
||||
expect(dispatchSpy).toHaveBeenCalledWith('state', ['show'], process.cwd(), 'alpha');
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user