@@ -636,10 +636,7 @@ if (cli.tune) {
636636 * - alternative_rejected: records an approach that was considered but not taken
637637 */
638638type TuneCategory =
639- | "decision"
640- | "concern"
641- | "constraint"
642- | "alternative_rejected" ;
639+ "decision" | "concern" | "constraint" | "alternative_rejected" ;
643640
644641const TUNE_CATEGORIES = new Set < string > ( [
645642 "decision" ,
@@ -1181,10 +1178,7 @@ const state = createAgentState(cli, {
11811178// Wire CLI --reasoning-effort <level> to state.reasoningEffort
11821179if ( cli . reasoningEffort ) {
11831180 state . reasoningEffort = cli . reasoningEffort as
1184- | "low"
1185- | "medium"
1186- | "high"
1187- | "xhigh" ;
1181+ "low" | "medium" | "high" | "xhigh" ;
11881182 state . sessionNeedsRebuild = true ;
11891183}
11901184
@@ -5893,8 +5887,7 @@ const generateSkillTool = defineTool("generate_skill", {
58935887 // Optionally save a companion module (delegated to register_module
58945888 // so we get the same validation pipeline + sandbox cache update).
58955889 let moduleResult :
5896- | { name : string ; importAs : string ; sizeBytes ?: number }
5897- | undefined ;
5890+ { name : string ; importAs : string ; sizeBytes ?: number } | undefined ;
58985891 if ( params . companionModule ) {
58995892 const m = params . companionModule ;
59005893 const moduleSaveResult = ( await registerModuleImpl ( {
@@ -6238,8 +6231,7 @@ function buildSessionConfig() {
62386231 // tags instead of using the native Rust parseHtml() which is faster
62396232 // and more correct.
62406233 const args = toolInput . toolArgs as
6241- | Record < string , unknown >
6242- | undefined ;
6234+ Record < string , unknown > | undefined ;
62436235 const code =
62446236 typeof args ?. code === "string"
62456237 ? args . code
@@ -6968,8 +6960,7 @@ async function main(): Promise<void> {
69686960 // parameters is a raw JSON Schema object (Record<string, unknown>),
69696961 // not a ZodSchema — safe to access .type directly.
69706962 const params = executeJavascriptTool . parameters as
6971- | Record < string , unknown >
6972- | undefined ;
6963+ Record < string , unknown > | undefined ;
69736964 debugLog ( `parameters.type = "${ params ?. type } "` ) ;
69746965 }
69756966
0 commit comments