Skip to content

Commit 951ac41

Browse files
author
catlog22
committed
fix: resolve 3 TypeScript build errors
- Add instructionType and skillName optional props to PromptTemplateNodeData - Fix effort type assertion in cli-executor-core
1 parent 6e90316 commit 951ac41

2 files changed

Lines changed: 11 additions & 1 deletion

File tree

ccw/src/core/routes/orchestrator-routes.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,16 @@ export interface PromptTemplateNodeData {
147147
*/
148148
slashArgs?: string;
149149

150+
/**
151+
* Instruction type for native CLI session routing
152+
*/
153+
instructionType?: 'prompt' | 'skill';
154+
155+
/**
156+
* Skill name for skill-type instructions
157+
*/
158+
skillName?: string;
159+
150160
/**
151161
* Error handling behavior
152162
*/

ccw/src/tools/cli-executor-core.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -901,7 +901,7 @@ async function executeCliTool(
901901
}
902902
// Use default effort from config if not explicitly provided, fallback to 'high'
903903
if (!effectiveEffort) {
904-
effectiveEffort = toolConfig.effort || 'high';
904+
effectiveEffort = (toolConfig.effort as typeof effectiveEffort) || 'high';
905905
debugLog('EFFORT', `Using effort level`, { effort: effectiveEffort, source: toolConfig.effort ? 'config' : 'default' });
906906
}
907907
}

0 commit comments

Comments
 (0)