feat: require auto-chain action evidence

This commit is contained in:
Eve
2026-04-23 19:38:36 +08:00
parent 17dd26cde7
commit bff9146280
2 changed files with 28 additions and 6 deletions

View File

@@ -202,7 +202,12 @@ function hasAutoChainDispatchEvidence(input) {
const value = getPathValue(input, fieldPath);
if (hasNonEmptyString(value)) return true;
if (Array.isArray(value)) return value.length > 0;
if (value && typeof value === 'object') return Object.keys(value).length > 0;
if (value && typeof value === 'object') {
if (typeof value.action === 'string' && value.action.trim().length > 0) return true;
if (typeof value.concreteNextAction === 'string' && value.concreteNextAction.trim().length > 0) return true;
if (typeof value.dispatched === 'boolean') return value.dispatched;
return Object.keys(value).length > 0;
}
return false;
});
}