feat: 添加服务层增强与零散改进

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
unraid
2026-04-22 22:38:10 +08:00
parent 2247026bd5
commit c7e1c50b86
23 changed files with 861 additions and 100 deletions

View File

@@ -34,8 +34,8 @@ import typescriptClaudeApiToolUse from './claude-api/typescript/claude-api/tool-
// - claude-api/SKILL.md (Current Models pricing table)
// - claude-api/shared/models.md (full model catalog with legacy versions and alias mappings)
export const SKILL_MODEL_VARS = {
OPUS_ID: 'claude-opus-4-6',
OPUS_NAME: 'Claude Opus 4.6',
OPUS_ID: 'claude-opus-4-7',
OPUS_NAME: 'Claude Opus 4.7',
SONNET_ID: 'claude-sonnet-4-6',
SONNET_NAME: 'Claude Sonnet 4.6',
HAIKU_ID: 'claude-haiku-4-5',

View File

@@ -243,7 +243,7 @@ export function registerLoremIpsumSkill(): void {
argumentHint: '[token_count]',
userInvocable: true,
async getPromptForCommand(args) {
const parsed = parseInt(args)
const parsed = parseInt(args, 10)
if (args && (isNaN(parsed) || parsed <= 0)) {
return [