ata-coder 2.4.2__tar.gz → 2.4.3__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {ata_coder-2.4.2 → ata_coder-2.4.3}/PKG-INFO +29 -3
- ata_coder-2.4.2/ata_coder.egg-info/PKG-INFO → ata_coder-2.4.3/README.md +802 -799
- {ata_coder-2.4.2 → ata_coder-2.4.3}/agent.py +27 -12
- {ata_coder-2.4.2 → ata_coder-2.4.3}/agent_compact.py +22 -24
- {ata_coder-2.4.2 → ata_coder-2.4.3}/agent_tools.py +17 -21
- {ata_coder-2.4.2 → ata_coder-2.4.3}/anthropic_client.py +13 -17
- ata_coder-2.4.2/README.md → ata_coder-2.4.3/ata_coder.egg-info/PKG-INFO +825 -776
- {ata_coder-2.4.2 → ata_coder-2.4.3}/ata_coder.egg-info/SOURCES.txt +6 -0
- {ata_coder-2.4.2 → ata_coder-2.4.3}/commands/_core.py +65 -0
- {ata_coder-2.4.2 → ata_coder-2.4.3}/config.py +13 -0
- {ata_coder-2.4.2 → ata_coder-2.4.3}/core/__init__.py +4 -1
- {ata_coder-2.4.2 → ata_coder-2.4.3}/core/events.py +6 -0
- ata_coder-2.4.3/core/state.py +40 -0
- {ata_coder-2.4.2 → ata_coder-2.4.3}/llm_client.py +17 -29
- {ata_coder-2.4.2 → ata_coder-2.4.3}/main.py +13 -10
- {ata_coder-2.4.2 → ata_coder-2.4.3}/memory.py +284 -34
- {ata_coder-2.4.2 → ata_coder-2.4.3}/privilege.py +7 -1
- {ata_coder-2.4.2 → ata_coder-2.4.3}/pyproject.toml +1 -1
- {ata_coder-2.4.2 → ata_coder-2.4.3}/repl_ui.py +14 -1
- {ata_coder-2.4.2 → ata_coder-2.4.3}/server.py +118 -24
- {ata_coder-2.4.2 → ata_coder-2.4.3}/server_session.py +21 -2
- {ata_coder-2.4.2 → ata_coder-2.4.3}/setup_wizard.py +137 -136
- ata_coder-2.4.3/skills/math-calculator/handler.py +206 -0
- {ata_coder-2.4.2 → ata_coder-2.4.3}/skills/weather-skill/handler.py +2 -1
- ata_coder-2.4.3/skills/weather-skill/weather_utils.py +50 -0
- {ata_coder-2.4.2 → ata_coder-2.4.3}/skills.py +22 -1
- {ata_coder-2.4.2 → ata_coder-2.4.3}/system_prompt_builder.py +2 -6
- ata_coder-2.4.3/token_counter.py +217 -0
- {ata_coder-2.4.2 → ata_coder-2.4.3}/tools/definitions.py +1 -1
- {ata_coder-2.4.2 → ata_coder-2.4.3}/tools/executor.py +100 -28
- ata_coder-2.4.3/tools/strategy.py +76 -0
- {ata_coder-2.4.2 → ata_coder-2.4.3}/tools/web.py +68 -0
- ata_coder-2.4.2/core/state.py +0 -17
- ata_coder-2.4.2/skills/math-calculator/handler.py +0 -103
- {ata_coder-2.4.2 → ata_coder-2.4.3}/LICENSE +0 -0
- {ata_coder-2.4.2 → ata_coder-2.4.3}/MANIFEST.in +0 -0
- {ata_coder-2.4.2 → ata_coder-2.4.3}/__init__.py +0 -0
- {ata_coder-2.4.2 → ata_coder-2.4.3}/agent_controller.py +0 -0
- {ata_coder-2.4.2 → ata_coder-2.4.3}/agent_extension.py +0 -0
- {ata_coder-2.4.2 → ata_coder-2.4.3}/agent_routing.py +0 -0
- {ata_coder-2.4.2 → ata_coder-2.4.3}/agent_subsystems.py +0 -0
- {ata_coder-2.4.2 → ata_coder-2.4.3}/agent_undo.py +0 -0
- {ata_coder-2.4.2 → ata_coder-2.4.3}/ata_coder.egg-info/dependency_links.txt +0 -0
- {ata_coder-2.4.2 → ata_coder-2.4.3}/ata_coder.egg-info/entry_points.txt +0 -0
- {ata_coder-2.4.2 → ata_coder-2.4.3}/ata_coder.egg-info/requires.txt +0 -0
- {ata_coder-2.4.2 → ata_coder-2.4.3}/ata_coder.egg-info/top_level.txt +0 -0
- {ata_coder-2.4.2 → ata_coder-2.4.3}/change_tracker.py +0 -0
- {ata_coder-2.4.2 → ata_coder-2.4.3}/clawd_integration.py +0 -0
- {ata_coder-2.4.2 → ata_coder-2.4.3}/commands/__init__.py +0 -0
- {ata_coder-2.4.2 → ata_coder-2.4.3}/commands/_safety.py +0 -0
- {ata_coder-2.4.2 → ata_coder-2.4.3}/commands/_settings.py +0 -0
- {ata_coder-2.4.2 → ata_coder-2.4.3}/commands/_workflow.py +0 -0
- {ata_coder-2.4.2 → ata_coder-2.4.3}/core/queue.py +0 -0
- {ata_coder-2.4.2 → ata_coder-2.4.3}/event_queue.py +0 -0
- {ata_coder-2.4.2 → ata_coder-2.4.3}/extension.py +0 -0
- {ata_coder-2.4.2 → ata_coder-2.4.3}/extensions/__init__.py +0 -0
- {ata_coder-2.4.2 → ata_coder-2.4.3}/extensions/hello_skill.py +0 -0
- {ata_coder-2.4.2 → ata_coder-2.4.3}/fool_proof.py +0 -0
- {ata_coder-2.4.2 → ata_coder-2.4.3}/git_workflow.py +0 -0
- {ata_coder-2.4.2 → ata_coder-2.4.3}/gui.py +0 -0
- {ata_coder-2.4.2 → ata_coder-2.4.3}/mcp_client.py +0 -0
- {ata_coder-2.4.2 → ata_coder-2.4.3}/model_registry.py +0 -0
- {ata_coder-2.4.2 → ata_coder-2.4.3}/model_router.py +0 -0
- {ata_coder-2.4.2 → ata_coder-2.4.3}/permissions.py +0 -0
- {ata_coder-2.4.2 → ata_coder-2.4.3}/project.py +0 -0
- {ata_coder-2.4.2 → ata_coder-2.4.3}/prompt_template.py +0 -0
- {ata_coder-2.4.2 → ata_coder-2.4.3}/prompts/auto-mode.md +0 -0
- {ata_coder-2.4.2 → ata_coder-2.4.3}/prompts/coding-rules.md +0 -0
- {ata_coder-2.4.2 → ata_coder-2.4.3}/prompts/execution-guardrails.md +0 -0
- {ata_coder-2.4.2 → ata_coder-2.4.3}/prompts/memory-system.md +0 -0
- {ata_coder-2.4.2 → ata_coder-2.4.3}/prompts/output-style.md +0 -0
- {ata_coder-2.4.2 → ata_coder-2.4.3}/prompts/safety.md +0 -0
- {ata_coder-2.4.2 → ata_coder-2.4.3}/prompts/slash-commands.md +0 -0
- {ata_coder-2.4.2 → ata_coder-2.4.3}/prompts/sub-agents.md +0 -0
- {ata_coder-2.4.2 → ata_coder-2.4.3}/prompts/system-reminders.md +0 -0
- {ata_coder-2.4.2 → ata_coder-2.4.3}/prompts/system.md +0 -0
- {ata_coder-2.4.2 → ata_coder-2.4.3}/prompts/tool-policy.md +0 -0
- {ata_coder-2.4.2 → ata_coder-2.4.3}/repl_theme.py +0 -0
- {ata_coder-2.4.2 → ata_coder-2.4.3}/repl_tracker.py +0 -0
- {ata_coder-2.4.2 → ata_coder-2.4.3}/safety_guard.py +0 -0
- {ata_coder-2.4.2 → ata_coder-2.4.3}/self_correct.py +0 -0
- {ata_coder-2.4.2 → ata_coder-2.4.3}/server_shell.py +0 -0
- {ata_coder-2.4.2 → ata_coder-2.4.3}/session.py +0 -0
- {ata_coder-2.4.2 → ata_coder-2.4.3}/settings.py +0 -0
- {ata_coder-2.4.2 → ata_coder-2.4.3}/setup.cfg +0 -0
- {ata_coder-2.4.2 → ata_coder-2.4.3}/skill_extension.py +0 -0
- {ata_coder-2.4.2 → ata_coder-2.4.3}/skills/architect/SKILL.md +0 -0
- {ata_coder-2.4.2 → ata_coder-2.4.3}/skills/code-reviewer/SKILL.md +0 -0
- {ata_coder-2.4.2 → ata_coder-2.4.3}/skills/codecraft/SKILL.md +0 -0
- {ata_coder-2.4.2 → ata_coder-2.4.3}/skills/debugger/SKILL.md +0 -0
- {ata_coder-2.4.2 → ata_coder-2.4.3}/skills/doc-writer/SKILL.md +0 -0
- {ata_coder-2.4.2 → ata_coder-2.4.3}/skills/general-coder/SKILL.md +0 -0
- {ata_coder-2.4.2 → ata_coder-2.4.3}/skills/math-calculator/README.md +0 -0
- {ata_coder-2.4.2 → ata_coder-2.4.3}/skills/math-calculator/SKILL.md +0 -0
- {ata_coder-2.4.2 → ata_coder-2.4.3}/skills/math-calculator/prompts/system.md +0 -0
- {ata_coder-2.4.2 → ata_coder-2.4.3}/skills/math-calculator/requirements.txt +0 -0
- {ata_coder-2.4.2 → ata_coder-2.4.3}/skills/math-calculator/resources/constants.json +0 -0
- {ata_coder-2.4.2 → ata_coder-2.4.3}/skills/math-calculator/tests/test_handler.py +0 -0
- {ata_coder-2.4.2 → ata_coder-2.4.3}/skills/security-auditor/SKILL.md +0 -0
- {ata_coder-2.4.2 → ata_coder-2.4.3}/skills/test-writer/SKILL.md +0 -0
- {ata_coder-2.4.2 → ata_coder-2.4.3}/skills/weather-skill/README.md +0 -0
- {ata_coder-2.4.2 → ata_coder-2.4.3}/skills/weather-skill/manifest.json +0 -0
- {ata_coder-2.4.2 → ata_coder-2.4.3}/skills/weather-skill/prompts/system_prompt.txt +0 -0
- {ata_coder-2.4.2 → ata_coder-2.4.3}/skills/weather-skill/prompts/user_prompt_template.txt +0 -0
- {ata_coder-2.4.2 → ata_coder-2.4.3}/skills/weather-skill/requirements.txt +0 -0
- {ata_coder-2.4.2 → ata_coder-2.4.3}/skills/weather-skill/resources/city_list.json +0 -0
- {ata_coder-2.4.2 → ata_coder-2.4.3}/skills/weather-skill/resources/error_messages.json +0 -0
- {ata_coder-2.4.2 → ata_coder-2.4.3}/skills/weather-skill/tests/test_handler.py +0 -0
- {ata_coder-2.4.2 → ata_coder-2.4.3}/sub_agent.py +0 -0
- {ata_coder-2.4.2 → ata_coder-2.4.3}/sub_agent_manager.py +0 -0
- {ata_coder-2.4.2 → ata_coder-2.4.3}/task_planner.py +0 -0
- {ata_coder-2.4.2 → ata_coder-2.4.3}/terminal.py +0 -0
- {ata_coder-2.4.2 → ata_coder-2.4.3}/tests/test_agent.py +0 -0
- {ata_coder-2.4.2 → ata_coder-2.4.3}/tests/test_change_tracker.py +0 -0
- {ata_coder-2.4.2 → ata_coder-2.4.3}/tests/test_config.py +0 -0
- {ata_coder-2.4.2 → ata_coder-2.4.3}/tests/test_event_queue.py +0 -0
- {ata_coder-2.4.2 → ata_coder-2.4.3}/tests/test_extension.py +0 -0
- {ata_coder-2.4.2 → ata_coder-2.4.3}/tests/test_fibonacci.py +0 -0
- {ata_coder-2.4.2 → ata_coder-2.4.3}/tests/test_fool_proof.py +0 -0
- {ata_coder-2.4.2 → ata_coder-2.4.3}/tests/test_llm_client.py +0 -0
- {ata_coder-2.4.2 → ata_coder-2.4.3}/tests/test_memory.py +0 -0
- {ata_coder-2.4.2 → ata_coder-2.4.3}/tests/test_model_registry.py +0 -0
- {ata_coder-2.4.2 → ata_coder-2.4.3}/tests/test_permissions.py +0 -0
- {ata_coder-2.4.2 → ata_coder-2.4.3}/tests/test_privilege.py +0 -0
- {ata_coder-2.4.2 → ata_coder-2.4.3}/tests/test_prompt_template.py +0 -0
- {ata_coder-2.4.2 → ata_coder-2.4.3}/tests/test_safety_guard.py +0 -0
- {ata_coder-2.4.2 → ata_coder-2.4.3}/tests/test_server.py +0 -0
- {ata_coder-2.4.2 → ata_coder-2.4.3}/tests/test_skill_handlers.py +0 -0
- {ata_coder-2.4.2 → ata_coder-2.4.3}/tests/test_sub_agent.py +0 -0
- {ata_coder-2.4.2 → ata_coder-2.4.3}/tests/test_tools.py +0 -0
- {ata_coder-2.4.2 → ata_coder-2.4.3}/tools/__init__.py +0 -0
- {ata_coder-2.4.2 → ata_coder-2.4.3}/tools/result.py +0 -0
- {ata_coder-2.4.2 → ata_coder-2.4.3}/tools/subagent.py +0 -0
- {ata_coder-2.4.2 → ata_coder-2.4.3}/types.py +0 -0
- {ata_coder-2.4.2 → ata_coder-2.4.3}/utils.py +0 -0
- {ata_coder-2.4.2 → ata_coder-2.4.3}/web/css/style.css +0 -0
- {ata_coder-2.4.2 → ata_coder-2.4.3}/web/index.html +0 -0
- {ata_coder-2.4.2 → ata_coder-2.4.3}/web/js/app.js +0 -0
- {ata_coder-2.4.2 → ata_coder-2.4.3}/web/package-lock.json +0 -0
- {ata_coder-2.4.2 → ata_coder-2.4.3}/web/package.json +0 -0
- {ata_coder-2.4.2 → ata_coder-2.4.3}/web/tsconfig.json +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: ata-coder
|
|
3
|
-
Version: 2.4.
|
|
3
|
+
Version: 2.4.3
|
|
4
4
|
Summary: ATA Coder — AI-powered coding assistant
|
|
5
5
|
Author: ATA Coder Team
|
|
6
6
|
License-Expression: MIT
|
|
@@ -21,13 +21,15 @@ Requires-Dist: pytest-timeout>=2.0; extra == "dev"
|
|
|
21
21
|
Requires-Dist: tiktoken>=0.5.0; extra == "dev"
|
|
22
22
|
Dynamic: license-file
|
|
23
23
|
|
|
24
|
-
# ATA Coder v2.4.
|
|
24
|
+
# ATA Coder v2.4.3
|
|
25
25
|
|
|
26
26
|
**AI-powered coding assistant — async, AST-aware, single config file.**
|
|
27
27
|
|
|
28
28
|
[English](#english) | [中文](#中文)
|
|
29
29
|
|
|
30
|
-
> **v2.4.
|
|
30
|
+
> **v2.4.3** — 🧠 **Comprehensive Refactoring**: Memory overhaul, unified token counting, safety pipeline, tool call optimization. 60+ issues fixed.
|
|
31
|
+
>
|
|
32
|
+
> > **v2.4.2** — 🐾 **Clawd working state + Window tokens**: Clawd shows 'working' immediately. Status line shows window tokens (~120k) not cumulative (7.8M). Surrogate-safe session saves.
|
|
31
33
|
>
|
|
32
34
|
> > **v2.4.1** — 🗂️ **3-Part Session IDs + /resume**: Session ID: `xxxxxxxx-xxxxxxxx-xxxxxxxx` (workspace·timestamp·task). `/resume` lists sessions for current project folder. Resume by any 8-char hash.
|
|
33
35
|
>
|
|
@@ -295,6 +297,18 @@ curl -X POST http://localhost:8080/chat \
|
|
|
295
297
|
| **Token Budget** | Auto-compact at 200k effective tokens, force-truncate at 95% of 1M max |
|
|
296
298
|
| **Diff Preview** | `difflib.unified_diff` + Rich colored output before file writes |
|
|
297
299
|
|
|
300
|
+
### 🧠 v2.4.3 Comprehensive Refactoring
|
|
301
|
+
|
|
302
|
+
60+ issues fixed across 15 files. Memory overhaul, unified token counting, safety pipeline unification.
|
|
303
|
+
|
|
304
|
+
| # | Area | Detail |
|
|
305
|
+
|---|------|--------|
|
|
306
|
+
| 1 | 🧠 **Memory** | Atomic writes, lazy loading, TF-IDF stopwords, cross-memory dedup, `/remember-suggestion` command |
|
|
307
|
+
| 2 | 🔢 **TokenCounter** | NEW unified service — model-aware encoding, per-message cache, batch counting, CJK fallback |
|
|
308
|
+
| 3 | 🛡️ **Safety** | Removed double permission check, self-correct goes through safety pipeline, explicit tool handlers |
|
|
309
|
+
| 4 | ⚡ **Compaction** | Sequential tools batched into single message, `_force_truncate` uses token weight |
|
|
310
|
+
| 5 | 🐛 **Fixes** | File cache invalidation on write, `rename_symbol` method type, system prompt cache on `/remember` |
|
|
311
|
+
|
|
298
312
|
### 🐾 v2.4.2 Clawd + Window Tokens Fix
|
|
299
313
|
|
|
300
314
|
| # | Fix | Detail |
|
|
@@ -600,6 +614,18 @@ curl -N -X POST http://localhost:8080/chat/stream \
|
|
|
600
614
|
-d '{"message": "解释 async/await"}'
|
|
601
615
|
```
|
|
602
616
|
|
|
617
|
+
### 🧠 v2.4.3 全面重构
|
|
618
|
+
|
|
619
|
+
跨 15 个文件修复 60+ 问题。记忆系统重构、统一 Token 计算、安全管道优化、工具调用优化。
|
|
620
|
+
|
|
621
|
+
| # | 领域 | 说明 |
|
|
622
|
+
|---|------|------|
|
|
623
|
+
| 1 | 🧠 **记忆系统** | 原子写入、延迟加载、TF-IDF 停用词过滤、跨记忆去重、`/remember-suggestion` 命令 |
|
|
624
|
+
| 2 | 🔢 **TokenCounter** | 新建统一服务 — 模型感知编码、消息缓存、批量计数、CJK 回退 |
|
|
625
|
+
| 3 | 🛡️ **安全管道** | 移除双重权限检查、自校正走完整安全管道、显式工具处理器注册 |
|
|
626
|
+
| 4 | ⚡ **压缩优化** | 顺序工具调用合并为单条消息、`_force_truncate` 按 token 权重截断 |
|
|
627
|
+
| 5 | 🐛 **Bug 修复** | 写入后文件缓存立即失效、`rename_symbol` method 类型、`/remember` 刷新提示缓存 |
|
|
628
|
+
|
|
603
629
|
### 🐾 v2.4.2 Clawd + 窗口 Token 修复
|
|
604
630
|
|
|
605
631
|
| # | 修复 | 说明 |
|