diff --git a/.claude/commands/add-language-rules.md b/.claude/commands/add-language-rules.md index 4d17abfca..4f34a2c2d 100644 --- a/.claude/commands/add-language-rules.md +++ b/.claude/commands/add-language-rules.md @@ -1,7 +1,7 @@ --- name: add-language-rules description: Workflow command scaffold for add-language-rules in everything-claude-code. -allowed_tools: ["Bash", "Read", "Write", "Grep", "Glob"] +allowed-tools: ["Bash", "Read", "Write", "Grep", "Glob"] --- # /add-language-rules diff --git a/.claude/commands/database-migration.md b/.claude/commands/database-migration.md index 855f94ec8..a8fdb23dd 100644 --- a/.claude/commands/database-migration.md +++ b/.claude/commands/database-migration.md @@ -1,7 +1,7 @@ --- name: database-migration description: Workflow command scaffold for database-migration in everything-claude-code. -allowed_tools: ["Bash", "Read", "Write", "Grep", "Glob"] +allowed-tools: ["Bash", "Read", "Write", "Grep", "Glob"] --- # /database-migration diff --git a/.claude/commands/feature-development.md b/.claude/commands/feature-development.md index 864a88015..785eb0879 100644 --- a/.claude/commands/feature-development.md +++ b/.claude/commands/feature-development.md @@ -1,7 +1,7 @@ --- name: feature-development description: Workflow command scaffold for feature-development in everything-claude-code. -allowed_tools: ["Bash", "Read", "Write", "Grep", "Glob"] +allowed-tools: ["Bash", "Read", "Write", "Grep", "Glob"] --- # /feature-development diff --git a/.kiro/agents/doc-updater.json b/.kiro/agents/doc-updater.json index 3aef9eeb1..e61e0d98c 100644 --- a/.kiro/agents/doc-updater.json +++ b/.kiro/agents/doc-updater.json @@ -1,6 +1,6 @@ { "name": "doc-updater", - "description": "Documentation and codemap specialist. Use PROACTIVELY for updating codemaps and documentation. Runs /update-codemaps and /update-docs, generates docs/CODEMAPS/*, updates READMEs and guides.", + "description": "Documentation and codemap specialist. Use PROACTIVELY for updating codemaps and documentation. Generates docs/CODEMAPS/*, updates READMEs and guides. Backs the /update-codemaps and /update-docs commands.", "mcpServers": {}, "tools": [ "@builtin" diff --git a/.kiro/agents/doc-updater.md b/.kiro/agents/doc-updater.md index 31b19e963..ea9baa6c6 100644 --- a/.kiro/agents/doc-updater.md +++ b/.kiro/agents/doc-updater.md @@ -1,6 +1,6 @@ --- name: doc-updater -description: Documentation and codemap specialist. Use PROACTIVELY for updating codemaps and documentation. Runs /update-codemaps and /update-docs, generates docs/CODEMAPS/*, updates READMEs and guides. +description: Documentation and codemap specialist. Use PROACTIVELY for updating codemaps and documentation. Generates docs/CODEMAPS/*, updates READMEs and guides. Backs the /update-codemaps and /update-docs commands. allowedTools: - read - write diff --git a/agents/doc-updater.md b/agents/doc-updater.md index 4fd5bd46e..5cc7dac99 100644 --- a/agents/doc-updater.md +++ b/agents/doc-updater.md @@ -1,6 +1,6 @@ --- name: doc-updater -description: Documentation and codemap specialist. Use PROACTIVELY for updating codemaps and documentation. Runs /update-codemaps and /update-docs, generates docs/CODEMAPS/*, updates READMEs and guides. +description: Documentation and codemap specialist. Use PROACTIVELY for updating codemaps and documentation. Generates docs/CODEMAPS/*, updates READMEs and guides. Backs the /update-codemaps and /update-docs commands. tools: Read, Write, Edit, Bash, Grep, Glob model: haiku --- diff --git a/commands/marketing-campaign.md b/commands/marketing-campaign.md index b26237b25..832db419d 100644 --- a/commands/marketing-campaign.md +++ b/commands/marketing-campaign.md @@ -1,6 +1,6 @@ --- description: Plan and execute a full marketing campaign. Accepts a product brief and returns positioning, landing page copy, email sequence, social posts, ad variants, video scripts, and a content calendar. Can also review existing copy for conversion quality. -allowed_tools: ["Read", "Grep", "Glob", "WebSearch", "WebFetch", "Write"] +allowed-tools: ["Read", "Grep", "Glob", "WebSearch", "WebFetch", "Write"] --- # /marketing-campaign diff --git a/commands/skill-create.md b/commands/skill-create.md index aeeeec26d..8fc53f086 100644 --- a/commands/skill-create.md +++ b/commands/skill-create.md @@ -1,7 +1,7 @@ --- name: skill-create description: Analyze local git history to extract coding patterns and generate SKILL.md files. Local version of the Skill Creator GitHub App. -allowed_tools: ["Bash", "Read", "Write", "Grep", "Glob"] +allowed-tools: ["Bash", "Read", "Write", "Grep", "Glob"] --- # /skill-create - Local Skill Generation diff --git a/docs/es/commands/skill-create.md b/docs/es/commands/skill-create.md index 11aaed51f..353e7dc30 100644 --- a/docs/es/commands/skill-create.md +++ b/docs/es/commands/skill-create.md @@ -1,7 +1,7 @@ --- name: skill-create description: Analizar el historial local de git para extraer patrones de codificación y generar archivos SKILL.md. Versión local de la Skill Creator GitHub App. -allowed_tools: ["Bash", "Read", "Write", "Grep", "Glob"] +allowed-tools: ["Bash", "Read", "Write", "Grep", "Glob"] --- # /skill-create - Generación Local de Skills diff --git a/docs/ja-JP/commands/skill-create.md b/docs/ja-JP/commands/skill-create.md index 0ec4865d3..6715c67d4 100644 --- a/docs/ja-JP/commands/skill-create.md +++ b/docs/ja-JP/commands/skill-create.md @@ -1,7 +1,7 @@ --- name: skill-create description: ローカルのgit履歴を分析してコーディングパターンを抽出し、SKILL.mdファイルを生成します。Skill Creator GitHub Appのローカル版です。 -allowed_tools: ["Bash", "Read", "Write", "Grep", "Glob"] +allowed-tools: ["Bash", "Read", "Write", "Grep", "Glob"] --- # /skill-create - ローカルスキル生成 diff --git a/docs/tr/commands/skill-create.md b/docs/tr/commands/skill-create.md index c2600de66..ae676de15 100644 --- a/docs/tr/commands/skill-create.md +++ b/docs/tr/commands/skill-create.md @@ -1,7 +1,7 @@ --- name: skill-create description: Kodlama desenlerini çıkarmak ve SKILL.md dosyaları oluşturmak için yerel git geçmişini analiz et. Skill Creator GitHub App'ın yerel versiyonu. -allowed_tools: ["Bash", "Read", "Write", "Grep", "Glob"] +allowed-tools: ["Bash", "Read", "Write", "Grep", "Glob"] --- # /skill-create - Yerel Skill Oluşturma diff --git a/docs/zh-CN/commands/skill-create.md b/docs/zh-CN/commands/skill-create.md index 10867c3fc..8ab5fc7b6 100644 --- a/docs/zh-CN/commands/skill-create.md +++ b/docs/zh-CN/commands/skill-create.md @@ -1,7 +1,7 @@ --- name: skill-create description: 分析本地Git历史以提取编码模式并生成SKILL.md文件。Skill Creator GitHub应用的本地版本。 -allowed_tools: ["Bash", "Read", "Write", "Grep", "Glob"] +allowed-tools: ["Bash", "Read", "Write", "Grep", "Glob"] --- # /skill-create - 本地技能生成 diff --git a/scripts/ci/check-unicode-safety.js b/scripts/ci/check-unicode-safety.js index 96c9ba54e..faa1ea566 100644 --- a/scripts/ci/check-unicode-safety.js +++ b/scripts/ci/check-unicode-safety.js @@ -15,6 +15,10 @@ const ignoredDirs = new Set([ '.dmux', '.next', '.venv', + '.pytest_cache', + '.ruff_cache', + '.turbo', + '.cache', 'coverage', 'venv', ]); diff --git a/src/llm/prompt/builder.py b/src/llm/prompt/builder.py index ffa0ed1c6..57ffd84ef 100644 --- a/src/llm/prompt/builder.py +++ b/src/llm/prompt/builder.py @@ -118,7 +118,7 @@ _PROVIDER_TEMPLATE_MAP: dict[str, dict[str, Any]] = { def get_provider_builder(provider_name: str) -> PromptBuilder: - config_dict = _PROVIDER_TEMPLATE_MAP.get(provider_name.lower(), {}) + config_dict = _PROVIDER_TEMPLATE_MAP.get(provider_name.strip().lower(), {}) config = PromptConfig(**config_dict) return PromptBuilder(config) diff --git a/tests/scripts/check-unicode-safety.test.js b/tests/scripts/check-unicode-safety.test.js index 012d6586a..6831b8683 100644 --- a/tests/scripts/check-unicode-safety.test.js +++ b/tests/scripts/check-unicode-safety.test.js @@ -198,6 +198,24 @@ if ( passed++; else failed++; +if ( + test('skips tool cache directories (.pytest_cache, .ruff_cache, .turbo, .cache)', () => { + const root = makeTempRoot('ecc-unicode-cache-'); + for (const cacheDir of ['.pytest_cache', '.ruff_cache', '.turbo', '.cache']) { + fs.mkdirSync(path.join(root, cacheDir), { recursive: true }); + fs.writeFileSync( + path.join(root, cacheDir, 'cache-data.json'), + `{"cached": "${rocketEmoji}"}\n` + ); + } + + const result = runCheck(root); + assert.strictEqual(result.status, 0, result.stdout + result.stderr); + }) +) + passed++; +else failed++; + console.log(`\nPassed: ${passed}`); console.log(`Failed: ${failed}`); process.exit(failed > 0 ? 1 : 0); diff --git a/tests/test_builder.py b/tests/test_builder.py index 439967e91..f12982ba1 100644 --- a/tests/test_builder.py +++ b/tests/test_builder.py @@ -2,7 +2,7 @@ import pytest from llm.core.types import Message, Role, ToolDefinition from llm.prompt import PromptBuilder, adapt_messages_for_provider -from llm.prompt.builder import PromptConfig +from llm.prompt.builder import PromptConfig, get_provider_builder class TestPromptBuilder: @@ -83,3 +83,14 @@ class TestAdaptMessagesForProvider: messages = [Message(role=Role.USER, content="Hello")] result = adapt_messages_for_provider(messages, "ollama") assert len(result) == 1 + + def test_provider_names_allow_outer_whitespace(self): + messages = [Message(role=Role.USER, content="Hello")] + tools = [ToolDefinition(name="search", description="Search the web", parameters={})] + + result = adapt_messages_for_provider(messages, " ollama ", tools) + + assert get_provider_builder(" ollama ").config.tool_format == "text" + assert len(result) == 2 + assert result[0].role == Role.SYSTEM + assert "Available Tools" in result[0].content