fix: skip no-research nyquist artifact gating (closes #980)

This commit is contained in:
Frank
2026-03-15 09:08:57 -07:00
committed by GitHub
parent 944df19926
commit 63823c2e8a
3 changed files with 44 additions and 3 deletions

View File

@@ -16,6 +16,19 @@ const VALID_CONFIG_KEYS = new Set([
'planning.commit_docs', 'planning.search_gitignored',
]);
const CONFIG_KEY_SUGGESTIONS = {
'workflow.nyquist_validation_enabled': 'workflow.nyquist_validation',
'agents.nyquist_validation_enabled': 'workflow.nyquist_validation',
'nyquist.validation_enabled': 'workflow.nyquist_validation',
};
function validateKnownConfigKeyPath(keyPath) {
const suggested = CONFIG_KEY_SUGGESTIONS[keyPath];
if (suggested) {
error(`Unknown config key: ${keyPath}. Did you mean ${suggested}?`);
}
}
function cmdConfigEnsureSection(cwd, raw) {
const configPath = path.join(cwd, '.planning', 'config.json');
const planningDir = path.join(cwd, '.planning');
@@ -98,6 +111,8 @@ function cmdConfigSet(cwd, keyPath, value, raw) {
error('Usage: config-set <key.path> <value>');
}
validateKnownConfigKeyPath(keyPath);
if (!VALID_CONFIG_KEYS.has(keyPath)) {
error(`Unknown config key: "${keyPath}". Valid keys: ${[...VALID_CONFIG_KEYS].sort().join(', ')}`);
}