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:
@@ -341,7 +341,7 @@ export const stateUpdate: QueryHandler = async (args, projectDir, workstream) =>
|
||||
return content;
|
||||
}, workstream);
|
||||
|
||||
return { data: { updated, field, value: updated ? value : undefined } };
|
||||
return { data: { updated } };
|
||||
};
|
||||
|
||||
/**
|
||||
@@ -1250,9 +1250,15 @@ function parseNamedArgs(
|
||||
const result: Record<string, string | boolean | null> = {};
|
||||
for (const flag of valueFlags) {
|
||||
const idx = args.indexOf(`--${flag}`);
|
||||
result[flag] = idx !== -1 && args[idx + 1] !== undefined && !args[idx + 1].startsWith('--')
|
||||
? args[idx + 1]
|
||||
: null;
|
||||
if (idx === -1) {
|
||||
result[flag] = null;
|
||||
continue;
|
||||
}
|
||||
const value = args[idx + 1];
|
||||
if (value === undefined || value.startsWith('--')) {
|
||||
throw new GSDError(`missing value for --${flag}`, ErrorClassification.Validation);
|
||||
}
|
||||
result[flag] = value;
|
||||
}
|
||||
for (const flag of booleanFlags) {
|
||||
result[flag] = args.includes(`--${flag}`);
|
||||
|
||||
Reference in New Issue
Block a user