Skip to content

v0.2.1

Choose a tag to compare

@luochenw luochenw released this 18 Aug 03:34
· 38 commits to main since this release

中文 | English

维护性发布——没有用户可见的变化。这是一次内部质量/架构清理,不是功能或修复发布。

改了什么

  • 补齐了真正的测试基础设施:给之前零覆盖的纯逻辑加了单测(./scripts/test-macos-native.sh --unit),smoke 测试也从只测读路径扩展到覆盖一条设置写路径。
  • 把单文件 3364 行的 main.swift 巨石拆到 504 行,HarnessController 的方法和 View 都按功能域搬进独立文件(DSH<Feature>.swift / <Feature>View.swift)。现在有 CI/本地双重 gate 强制 main.swift 只能缩小、不能再长回一个大杂烩。
  • CI 从只跑 typecheck 升级为每次推送都跑 typecheck → 单测 → 构建 → smoke 完整四步。

以上改动都不涉及运行时行为——每一步都用同一套 typecheck/单测/构建/smoke 验证过,逐批次进行,每批还额外过了一轮独立的对抗式代码 review。如果你不碰源码,升级前后不会有任何肉眼可见的差异。

完整决策记录见 .agents/notes/implemented/architecture/2026-08-18-quality-remediation-plan.md。

下载(Apple Silicon)

DeepSeek-Harness-0.2.1-arm64.zip —— 需要 macOS 13+ 的 Apple Silicon 机器。Intel Mac 请从源码构建(见下文)。

Gatekeeper 提示。 这个构建是 ad-hoc 签名、未经公证(背后没有 Apple 开发者账号)。macOS 首次启动会拦截:

  1. 解压,把 DeepSeek Harness.app 拖进 /Applications,双击——macOS 会拦下来。
  2. 打开 系统设置 → 隐私与安全性,往下滚,点 仍要打开。
  3. 或者在终端里:xattr -rd com.apple.quarantine "/Applications/DeepSeek Harness.app"

如果你不想信任一个未公证的二进制(这个顾虑很合理!),从源码构建只需要一条命令:

./scripts/build-macos-app.sh

(构建机器需要 Node + npm install -g @deepseek-ai/dsh;构建出来的 app 是自包含的。)

从 0.2.0 升级

直接把新的 .app 覆盖旧的即可——不需要迁移配置,不会重置设置。

验证

  • ./scripts/test-macos-native.sh —— typecheck + 契约测试 + main.swift 行数 gate
  • ./scripts/test-macos-native.sh --unit —— 针对 swiftc 自建库目标的 12 个单测断言
  • ./scripts/build-macos-app.sh —— 完整构建
  • ./scripts/test-macos-native.sh --smoke —— 启动打包后的 Host,验证只读 API 和一条设置写路径的完整往返
  • main.swift 拆分的 10 个批次,每批合并前都额外跑过一轮隔离环境下的多 agent 对抗式代码 review。

English

中文说明在上面 ↑ | English

Maintenance release — no user-visible changes. This is an internal quality/architecture cleanup, not a feature or bugfix release.

What changed

  • Added real test infrastructure: a unit-test harness (./scripts/test-macos-native.sh --unit) for pure logic that previously had zero coverage, and an expanded smoke test that now exercises a settings write path, not just reads.
  • Decomposed the app's single 3,364-line main.swift monolith down to 504 lines, moving HarnessController's methods and views out into focused, feature-scoped files (DSH<Feature>.swift / <Feature>View.swift). A CI/local gate now enforces that main.swift can only shrink, never grow back into a dumping ground.
  • CI now runs typecheck → unit tests → build → smoke on every push, up from typecheck-only.

None of this touches runtime behavior — every step above was verified against the same typecheck/unit/build/smoke suite, batch by batch, plus an independent adversarial code review pass per batch. If you're not touching the source, there's nothing to notice after upgrading.

Full rationale and the batch-by-batch decision log: .agents/notes/implemented/architecture/2026-08-18-quality-remediation-plan.md.

Download (Apple Silicon)

DeepSeek-Harness-0.2.1-arm64.zip — requires macOS 13+ on Apple Silicon. Intel Macs: build from source (see below).

Gatekeeper note. This build is ad-hoc signed and not notarized (no Apple Developer account behind it). macOS will warn on first launch:

  1. Unzip, drag DeepSeek Harness.app to /Applications, double-click — macOS will block it.
  2. Open System Settings → Privacy & Security, scroll down, click Open Anyway.
  3. Or from a terminal: xattr -rd com.apple.quarantine "/Applications/DeepSeek Harness.app"

If you'd rather not trust an un-notarized binary (reasonable!), building from source takes one command:

./scripts/build-macos-app.sh

(needs Node + npm install -g @deepseek-ai/dsh on the build machine; the built app is self-contained.)

Upgrading from 0.2.0

Drop the new .app in over the old one — no config migration needed, no settings reset.

Verification

  • ./scripts/test-macos-native.sh — typecheck + native contract checks + main.swift size gate
  • ./scripts/test-macos-native.sh --unit — 12 unit-test assertions against a swiftc-built library target
  • ./scripts/build-macos-app.sh — full build
  • ./scripts/test-macos-native.sh --smoke — boots the bundled Host and verifies both read-only Host APIs and a settings write round-trip
  • Each of the 10 main.swift-decomposition batches additionally went through an isolated, adversarial multi-agent code review before merging.