fix: resolve 3 TypeScript build errors

- Add instructionType and skillName optional props to PromptTemplateNodeData
- Fix effort type assertion in cli-executor-core
This commit is contained in:
catlog22
2026-02-18 17:59:36 +08:00
parent 6e90316285
commit 951ac41ecc
2 changed files with 11 additions and 1 deletions

View File

@@ -147,6 +147,16 @@ export interface PromptTemplateNodeData {
*/
slashArgs?: string;
/**
* Instruction type for native CLI session routing
*/
instructionType?: 'prompt' | 'skill';
/**
* Skill name for skill-type instructions
*/
skillName?: string;
/**
* Error handling behavior
*/

View File

@@ -901,7 +901,7 @@ async function executeCliTool(
}
// Use default effort from config if not explicitly provided, fallback to 'high'
if (!effectiveEffort) {
effectiveEffort = toolConfig.effort || 'high';
effectiveEffort = (toolConfig.effort as typeof effectiveEffort) || 'high';
debugLog('EFFORT', `Using effort level`, { effort: effectiveEffort, source: toolConfig.effort ? 'config' : 'default' });
}
}