feat: add fail-closed Aider development skill
This commit is contained in:
@@ -51,7 +51,10 @@ import type {
|
||||
} from '../types';
|
||||
import { buildContextPrefix } from '../utils/mindspaceChatContext';
|
||||
import { buildUserAddressPrefix } from '../utils/userAddress';
|
||||
import { buildAutoChatSkillPrefix } from '../../chat-skills.mjs';
|
||||
import {
|
||||
AIDER_DEVELOPMENT_SKILL_NAME,
|
||||
buildAutoChatSkillPrefix,
|
||||
} from '../../chat-skills.mjs';
|
||||
import {
|
||||
reconcileSessionEventRequestContext,
|
||||
resolvePostAgentRunChatState,
|
||||
@@ -1473,8 +1476,11 @@ export function useTKMindChat(
|
||||
|
||||
try {
|
||||
const pageDataDevTaskType = resolvePageDataDevTaskType(trimmed);
|
||||
const requiresAider = options?.selectedChatSkill === AIDER_DEVELOPMENT_SKILL_NAME;
|
||||
const runOptions = resolveAgentRunOptions(trimmed, {
|
||||
taskType: pageDataDevTaskType ?? 'h5_chat_code_task',
|
||||
forceCode: requiresAider,
|
||||
requiredExecutor: requiresAider ? 'aider' : undefined,
|
||||
userId: userRef.current?.id ?? null,
|
||||
requestId,
|
||||
mindspaceContext: options?.mindspaceContext ?? null,
|
||||
|
||||
Reference in New Issue
Block a user