Skip to content

Commit 6ab8347

Browse files
committed
fix: 修复 package 构建类型错误
1 parent 7139ccb commit 6ab8347

2 files changed

Lines changed: 11 additions & 4 deletions

File tree

src/utils/effort.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -246,6 +246,8 @@ export function convertEffortLevelToChinese(level: EffortLevel): string {
246246
return '中'
247247
case 'high':
248248
return '高'
249+
case 'xhigh':
250+
return '超高'
249251
case 'max':
250252
return '最高'
251253
}

src/utils/suggestions/__tests__/commandSuggestions.test.ts

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,12 @@ function makeCommand(name: string, opts?: Partial<Command>): Command {
2121
name,
2222
description: opts?.description ?? `${name} command`,
2323
type: 'local',
24-
handler: () => {},
24+
supportsNonInteractive: false,
25+
load: async () => ({
26+
call: async () => ({ type: 'skip' }),
27+
}),
2528
...opts,
26-
} as Command
29+
} as unknown as Command
2730
}
2831

2932
function makePromptCommand(
@@ -34,10 +37,12 @@ function makePromptCommand(
3437
name,
3538
description: opts?.description ?? `${name} skill`,
3639
type: 'prompt',
37-
handler: () => {},
40+
progressMessage: '',
41+
contentLength: 0,
3842
source: 'userSettings',
43+
getPromptForCommand: async () => [],
3944
...opts,
40-
} as Command
45+
} as unknown as Command
4146
}
4247

4348
// ─── isCommandInput ───────────────────────────────────────────────────

0 commit comments

Comments
 (0)