feat: add fail-closed Aider development skill

This commit is contained in:
john
2026-07-24 19:48:04 +08:00
parent 1c82b34ad9
commit be9c25f1d0
15 changed files with 320 additions and 7 deletions
+3 -2
View File
@@ -174,7 +174,7 @@ function withAgentRunValidationMetadata(
function prepareAgentRunUserMessage(message: Message, options: AgentRunCreateOptions): Message {
const normalized = normalizeUserMessageForApi(message);
const withValidation = withAgentRunValidationMetadata(normalized, options.validation);
const withRunMetadata = options.forceDeepReasoning
const withRunMetadata = options.forceDeepReasoning || options.executor
? {
...withValidation,
metadata: {
@@ -186,7 +186,8 @@ function prepareAgentRunUserMessage(message: Message, options: AgentRunCreateOpt
? withValidation.metadata.memindRun
: {}
),
forceDeepReasoning: true,
...(options.forceDeepReasoning ? { forceDeepReasoning: true } : {}),
...(options.executor ? { executor: options.executor } : {}),
},
},
}