Repository navigation
Releases
Releases · badhope/spark
Spark 0.15.8 — 全仓复杂度清零
Spark 0.15.8 — 全仓复杂度清零
补丁版本,不改对外行为。全仓历史 D/E/F 从 58(53 D / 5 E / 0 F) 降到 0。
复杂度清零
- 五个 E 级入口全部拆掉:
run_shell、run_workflow、AgentLoop._llm_round、spawn_subtasks_parallel、TUI_render。 - 51 个 D 级函数拆为单一职责 helper,覆盖 CLI、Web handlers、SSE、内存/索引、Provider、relay、wiki、review、selfheal、workbench。
scripts/complexity-baseline.json重建为functions: {},CI 对任何新增 D/E/F 或增长 >3 点直接失败。
拆分边界修复
_llm_round补回begin_provider_round(),回合指标不再 rounds=0。- 并发子代理共用
_create_sub_loop(owner, ...),修复 owner 绑定错误。 - 知识库 embedding 失败立即停止后续批次,不把失败当“0 条新增”。
- 历史消息补回 assistant 普通文本
id/feedback;任务工具补回_finish_tool_execution;SSE pending 字段补类级注解。 - 保持浏览器策略、租约续期/释放响应字段与拆分前逐字一致。
验证
ruff check src通过;mypy src --ignore-missing-imports190 files 0 error。- 复杂度扫描
-n D/-n E均为空;门禁0 known D/E/F functions, no new hotspots。 - 全量 pytest:2006 passed, 13 skipped, 0 failed, 14 warnings, 1121.79s。
- VSIX:
spark-agent-0.15.8.vsix。
文档
- 新增
docs/reviews/2026-11-25-complexity-clearance.md。 CHANGELOG.md、docs/PROJECT_BASELINE.md、docs/REMAINING.md同步到 0 D/E/F / 0.15.8。
Full Changelog: v0.15.7...v0.15.8
Spark 0.15.7 — 复杂度第三轮
0.15.7 — 复杂度第三轮,F 级清零
这一版不再堆功能,只做技术债收口。
主要变化
- 全仓历史 D/E/F 从 70(53 D / 10 E / 7 F) 降到 58(53 D / 5 E / 0 F)。
- 拆分
build_context/review_brief、load_workflow、classify_provider_error、repo_context、设置保存与 MCP secret 恢复、delivery_markdown、KnowledgeBase.search、模型档案保存、聊天流入口;校验顺序、错误文案、回退路径与副作用顺序保持不变。 - F 级清零;剩余 5 个 E 是
run_workflow、AgentLoop._llm_round、spawn_subtasks_parallel、run_shell、TUI._render,都涉及流式、进程或并发核心,留待真实链路回归后再拆。
门禁
- 新增
scripts/check_complexity.py与scripts/complexity-baseline.json,CI 拦截新增 D/E/F 与已有函数增长超过 3 点。 - 新增 MCP secret 恢复回归 4 项,覆盖跨命令/跨 URL 不泄露密钥。
ruff、mypy通过;全量 pytest:2006 passed、13 skipped、0 failed(1380.11s)。
Full Changelog: v0.15.6...v0.15.7
Spark 0.15.6 — 债务清扫与队列加固
Spark 0.15.6
本轮不新增功能,集中清理 0.15.5 之后的债务与真实缺陷。
安全与队列
- 队列 Autopilot
state_path只允许工作区.spark/autopilot下的.json文件名,拒绝绝对路径、../与软链逃逸。 - 同主机跨 scheme/端口不再自动复用已保存 API Key,改为精确 origin 比较。
- 队列重试不再泄漏空会话;失败账本同名归档不再覆盖。
max_cost_usd拒绝NaN/Inf,test_timeout_sec钳制 30–7200。
前端
FileViewer/RightPanel合并为共享CodePreview,修复右侧面板跨行块注释与多行字符串丢色。- 切换语言不再重复消费配对码、不再重启浏览器截图轮询。
- SSE 单个坏帧只跳过该帧,不再断掉整条流。
质量
policy.decideF(45) 按规则族拆分;队列 Autopilot F(45) 与_run_queued_taskD(27) 拆分。- 12 处
zip()补strict=True,不再静默截断。 - 全量 pytest:2001 passed、13 skipped、0 failed(1153.21s)。
- 前端 lint / tsc / build 通过;i18n 1119 keys、1069 calls。
仍需说明
全仓仍有 70 个历史 D/E/F 函数(53 D / 10 E / 7 F),本轮没有为指标硬拆安全关键函数;剩余清单与原因见 docs/reviews/2026-11-24-debt-sweep.md。
Full Changelog: v0.15.5...v0.15.6
v0.15.5
Immutable
release. Only release title and notes can be modified.
Full Changelog: v0.15.4...v0.15.5
v0.15.4
Immutable
release. Only release title and notes can be modified.
Full Changelog: v0.15.3...v0.15.4
v0.15.3
Immutable
release. Only release title and notes can be modified.
What's Changed
- build(deps): bump the minor-and-patch group with 17 updates by @dependabot[bot] in #113
- build(deps): update psycopg[binary] requirement from >=3.2 to >=3.3.9 by @dependabot[bot] in #114
- build(deps): bump agent-client-protocol from 0.12.1 to 1.0.0 by @dependabot[bot] in #115
Full Changelog: v0.15.2...v0.15.3
v0.15.2
Immutable
release. Only release title and notes can be modified.
Full Changelog: v0.15.1...v0.15.2
v0.15.1
Immutable
release. Only release title and notes can be modified.
Full Changelog: v0.15.0...v0.15.1
v0.15.0
Immutable
release. Only release title and notes can be modified.
Full Changelog: v0.14.0...v0.15.0
Spark v0.14.1
Local-first AI coding agent + office workbench.
Highlights: real PostgreSQL/Keycloak contracts, full settings coverage, TUI composer and tool-result fixes, A2A reply fix, enterprise /api/v1 and /office bundled in the executable.