mirror of
https://github.com/val1813/kwcode.git
synced 2026-09-03 06:34:30 +08:00
- Add TaskCompiler (kaiwu/core/task_compiler.py): lightweight DAG scheduler with ThreadPoolExecutor + topological sort for serial/parallel multi-task - Add PromptOptimizer (kaiwu/flywheel/prompt_optimizer.py): analyzes trajectories via Opus/Sonnet API, appends learned rules to expert YAML system_prompt - Add Cross-Encoder reranker (kaiwu/search/reranker.py): optional BM25+CE pipeline - Add Reflexion persistence (kaiwu/memory/pattern_md.py): REFLECTION.md structured pattern memory with /plan integration - Remove Python expert system (ExpertBase, BugFixExpert.py, SelfImprovingOptimizer) - Revert registry to YAML-only loading - Remove _get_python_expert/_run_python_expert from orchestrator - Replace run_self_improvement with run_prompt_optimization in ab_tester - 277 tests passing (265 regression + 12 new task_compiler tests) Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
43 lines
933 B
TOML
43 lines
933 B
TOML
[build-system]
|
|
requires = ["setuptools>=68.0", "wheel"]
|
|
build-backend = "setuptools.build_meta"
|
|
|
|
[project]
|
|
name = "kwcode"
|
|
version = "0.8.0"
|
|
description = "KwCode - Local-model coding agent with MoE expert pipeline"
|
|
requires-python = ">=3.10"
|
|
|
|
dependencies = [
|
|
"llama-cpp-python>=0.2.90",
|
|
"typer>=0.12.0",
|
|
"rich>=13.0.0",
|
|
"pydantic>=2.0.0",
|
|
"httpx>=0.27.0",
|
|
"gitpython>=3.1.0",
|
|
"psutil>=5.9.0",
|
|
"beautifulsoup4>=4.12.0",
|
|
"lxml>=5.0.0",
|
|
"trafilatura>=1.12.0",
|
|
"pyyaml>=6.0",
|
|
"tree-sitter>=0.23.0",
|
|
"tree-sitter-python>=0.23.0",
|
|
"networkx>=3.0",
|
|
"rank-bm25>=0.2.2",
|
|
"pytest>=7.0.0",
|
|
"aiosqlite>=0.20.0",
|
|
]
|
|
|
|
[project.optional-dependencies]
|
|
rerank = ["sentence-transformers>=2.7.0"]
|
|
|
|
[project.scripts]
|
|
kwcode = "kaiwu.cli.main:app"
|
|
|
|
[tool.setuptools.packages.find]
|
|
where = ["."]
|
|
include = ["kaiwu*"]
|
|
|
|
[tool.setuptools.package-data]
|
|
"kaiwu.builtin_experts" = ["*.yaml"]
|