mirror of
https://github.com/affaan-m/ECC.git
synced 2026-08-31 20:29:38 +02:00
Merge pull request #2873 from actus7/consolidate/remaining-fixes-v3
fix: consolidate miscellaneous bug fixes (5 PRs)
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
---
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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 - ローカルスキル生成
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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 - 本地技能生成
|
||||
|
||||
@@ -15,6 +15,10 @@ const ignoredDirs = new Set([
|
||||
'.dmux',
|
||||
'.next',
|
||||
'.venv',
|
||||
'.pytest_cache',
|
||||
'.ruff_cache',
|
||||
'.turbo',
|
||||
'.cache',
|
||||
'coverage',
|
||||
'venv',
|
||||
]);
|
||||
|
||||
@@ -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)
|
||||
|
||||
|
||||
@@ -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);
|
||||
|
||||
+12
-1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user