Skip to content

Commit b4a2610

Browse files
authored
chore(desktop): release 1.4.2 (#77)
Promote DeepAgent Core V4.0.4 and Desktop 1.4.2 to the production release branch.
2 parents b780c05 + c1596d8 commit b4a2610

609 files changed

Lines changed: 12415 additions & 8636 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ tmp
1313
dist
1414
ts-dist
1515
.turbo
16-
# Web/edge build artifacts (nitro .output, cloudflare .wrangler) e.g. packages/console, packages/stats
16+
# Web/edge build artifacts (nitro .output, cloudflare .wrangler) - e.g. packages/console, packages/stats
1717
.output
1818
.wrangler
1919
packages/console/app/public/sitemap.xml

CHANGELOG.md

Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,65 @@
11
# Changelog
22

3+
## V4.0.4 - Contract-gap closure (engine-decoupled)
4+
5+
- Fix Plan Gate deadlock: stale-plan latch now warns (never hard-blocks) on tool execution, aligned with codex exec-policy philosophy. A mutating tool on a stale plan receives a reminder but always runs.
6+
- Fix goal-loop scorer false positives: `extractValidationResults` now scopes extraction to declared validation commands only (toolCallId→command mapping), with latest-wins per command. Diagnostic bash calls no longer poison the score.
7+
- Fix cancel/loop test flake: `maxRetries:0` in the test provider config prevents AI SDK exponential-backoff retries against the intentionally-dead test URL; per-test budgets raised from 3 s to 15 s.
8+
- Release Desktop 1.4.2 with DeepAgent Core V4.0.4.
9+
- Publishing truth: fix quick-start command (`deepagent-code run`), comment out unpublished npm install, unify domain to `deepagent.ltd`, replace `lessweb`/`anomalyco` org handles, update SECURITY.md supported-version line and M-CRED status, update CHANGELOG.
10+
11+
## V4.0.3 - Upstream kernel alignment (AppNode foundation)
12+
13+
- AppNode foundation: additive node export layer aligning with upstream opencode V2 session architecture.
14+
- DocumentStore concurrency-safe durable body (F30-1): atomic CAS writes, version conflicts, recovery.
15+
- Plan single source of truth (I33-1): goal path and tool path write one plan document; DocumentStore is the authority.
16+
- safeGit hardening (I33-5): `--no-ext-diff --no-textconv` added to all read-path git calls; hook execution disabled via `core.hooksPath=/dev/null`; clean/smudge/process filters never invoked on read-only paths.
17+
18+
## V4.1 - Steering + plan hot-edit
19+
20+
- Steering foundation (S1.1): absorb mid-turn user input at the next turn boundary without aborting the current turn.
21+
- Goal plan hot-edit (S1.2): update plan steps while a goal loop is running; orphan-doc bug fixed (upsert-by-description → updateWithProvenance by-id).
22+
- Cache regression fix: DeepAgent gateway no longer bakes per-round volatile state (round number, budget, previous results) into the system prefix, preserving prompt cache across intra-turn calls.
23+
- Subagent panel and session fork lineage: forks use `metadata.forkedFrom`; depth cap 3; derived-from banner and folder-tree nesting.
24+
25+
## V4.0 - Event-driven paradigm
26+
27+
- Event-driven Agent OS: durable events, priority routing, backpressure, worker claims, leases, handoffs, retries, dead-letter recovery.
28+
- Consumer-driven goals: `goal.tick.requested` claims and executes one idempotent tick, records facts, schedules next tick when goal remains eligible.
29+
- V4.0-beta closeout: producer-starvation fix, security fails-closed, half-wired consumers wired. Autonomous path live in production.
30+
- V4.0.1 long-task design: soft-landing compression (P0), World State responsibility separation (P1), budget hot-swap without restart (P2), idempotent + per-model output (P3). Four feature flags. Fully verified.
31+
- Plan gate P0+P1: plan-stale signals all degrade to warn; U9 per-step binding retains hard block with grace release.
32+
- CLI ↔ GUI parity: full legacy server surface mounted on new CLI daemon; sessionClient wrapper seam.
33+
- Config data-root unification: global config moved from `~/.config/deepagent-code` to `~/.deepagent/code/config.jsonc` (claude/codex style).
34+
- Zero-config provider: add third-party provider with URL + key; protocol auto-detect; model discovery from `/models`.
35+
36+
## V3.9 - Repo/Wiki + Expert Panel + Goal Loop
37+
38+
- Repo and Wiki integration: session archive, wiki-backed knowledge, cross-session search.
39+
- Expert Panel: chat-button convenes a panel of domain experts; `panel.consult` tool.
40+
- Goal Loop: `goal_driver.ts` drives multi-step autonomous goals; goal-tick event pipeline.
41+
- AST code-graph: tree-sitter based symbol graph for semantic navigation.
42+
- Subagent plan permissions: plan-write capability gating per subagent.
43+
- Adversarial review wave: 20-file fix commit; flag-gating, budget-ceiling, anonymization, leaf-calls, sealed-leak all fixed; Arbiter + security boundary verified.
44+
- Cache hit regression root cause: volatile per-round state in system prefix → fixed by moving it out of the cached prefix.
45+
46+
## V3.8 - V4.0 pre-release foundation
47+
48+
- Session-internal scheduler: all sub-agent execution driven via `SessionPrompt.Service`; no-op stack replaced.
49+
- Context wiring: full context assembly pipeline connected end-to-end.
50+
- Sub-agent strength levels: permission presets per agent mode.
51+
- Mode redesign: codex-aligned auto/loop/design modes; flag kill-switch; permission presets.
52+
- Server mode connection: desktop→Server Edition gateway; wire contract; client code map.
53+
54+
## V3.5 - M-CRED secure secret storage
55+
56+
- Secrets stored in OS-backed secret storage: macOS Keychain (production), Linux Secret Service and Windows Credential Manager stubs with 0600-file fallback.
57+
- MCP credential values no longer persist in plain-text configuration; only variable names or references travel through config.
58+
- Credential migration: existing stored secrets migrated to the new store on first launch.
59+
- PTY and terminal fixes: stale-worktree redirect, terminal split circular-tree bug.
60+
- Archived sessions: restore, unarchive, delete operations.
61+
- Stale worktree redirect: same-repo clones share one project row; `fromDirectory` now returns live clone dir.
62+
363
## V3.4.1 - Public release hardening
464

565
- Switch project license to AGPL-3.0-or-later.

README.md

Lines changed: 15 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
<a href="https://github.com/deepagent-ltd/deepagent-code-enterprise">Enterprise</a>
1515
</p>
1616

17-
<p align="center"><sub>Desktop 1.4.1 · DeepAgent Core V4.1</sub></p>
17+
<p align="center"><sub>Desktop 1.4.2 · DeepAgent Core V4.0.4</sub></p>
1818

1919
---
2020

@@ -91,22 +91,25 @@ For high-risk decisions, convene an **Expert Panel**. Correctness, security, per
9191

9292
Project IM brings people and agents into the same thread. Mention an agent to start a scoped run with project context, stream its progress, inspect its artifacts, and keep the answer attached to the conversation that requested it.
9393

94-
## DeepAgent Core V4.1
94+
## DeepAgent Core V4.0.4
9595

96-
V4.1 brings the complete DeepAgent control plane together:
96+
V4.0.4 closes production contract gaps while keeping the current turn engine stable:
9797

98-
- **Durable Session V2:** prompt admission is persisted before execution; exact retries do not duplicate user intent; same-session wakes coalesce safely.
99-
- **One provider-turn contract:** native and AI SDK providers share the same budget, permission, artifact, audit, learning, and close lifecycle.
100-
- **Single durable truth:** DocumentStore owns documents, plans, learning candidates, governance state, and version conflicts through atomic, recoverable writes.
101-
- **Event-driven Agent OS:** durable events, priority routing, backpressure, worker claims, leases, handoffs, retries, dead-letter recovery, and distributed placement coordinate autonomous work.
102-
- **Consumer-driven goals:** `goal.tick.requested` claims and executes one idempotent tick, records facts, and schedules the next tick only when the durable goal remains eligible.
103-
- **Human oversight:** approval queues, trace correlation, takeover, rollback, Wiki archives, notifications, and organization/workspace isolation remain part of the execution path.
104-
- **Secure integrations:** MCP credentials use environment references or native OS secret storage; catalog risk, runtime permissions, trusted sources, and tool capability checks fail closed.
98+
- **Single durable truth:** DocumentStore uses atomic, recoverable writes for documents, plans, learning candidates, governance state, and version conflicts.
99+
- **Isolated subagents:** write-capable subagents use dedicated worktrees by default and return their changes to the parent workspace through a bounded, conflict-aware path.
100+
- **Reliable event delivery:** the Event Bus has a transport seam, durable consumer offsets, offline catch-up, real priority ordering, and observable queue depth.
101+
- **Governed learning and goals:** knowledge promotion is tied to review evidence and ship-gate snapshots; event-driven goal ticks remain idempotent and respect quiet hours.
102+
- **Secure integrations:** MCP credentials use environment references or native OS secret storage on macOS, Linux, and Windows; capability and source checks fail closed.
103+
- **Publishing truth:** installation, CLI examples, release metadata, public domains, and supported-version documentation match the product that is actually shipped.
105104

106105
## Installation
107106

107+
> **Note:** The `deepagent-code` npm package is not yet publicly published.
108+
> Install via the desktop app or the install script below.
109+
108110
```bash
109-
npm install -g deepagent-code
111+
# Install script (macOS / Linux)
112+
curl -fsSL https://deepagent.ltd/install | bash
110113
```
111114

112115
Then run:
@@ -183,7 +186,7 @@ reference (base URL overrides, headers, per-model config, gateways).
183186
Start the agent and give it a task:
184187

185188
```bash
186-
deepagent-code "add rate limiting to /api/users endpoint"
189+
deepagent-code run "add rate limiting to /api/users endpoint"
187190
```
188191

189192
The agent will:

README.zh.md

Lines changed: 14 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
<a href="https://github.com/deepagent-ltd/deepagent-code-enterprise">Enterprise 版本</a>
1515
</p>
1616

17-
<p align="center"><sub>桌面版 1.4.1 · DeepAgent Core V4.1</sub></p>
17+
<p align="center"><sub>桌面版 1.4.2 · DeepAgent Core V4.0.4</sub></p>
1818

1919
---
2020

@@ -91,22 +91,25 @@ DeepAgent 可以把独立工作拆分给数量有界、相互隔离的 Worker。
9191

9292
项目 IM 把团队成员和智能体放进同一条讨论。@ 某个智能体即可启动有明确作用域的运行,使用项目上下文、流式展示进度、关联执行工件,并把答案留在发起任务的对话里。
9393

94-
## DeepAgent Core V4.1
94+
## DeepAgent Core V4.0.4
9595

96-
V4.1 把完整的 DeepAgent 控制平面汇聚在一起
96+
V4.0.4 在保持当前 turn 引擎稳定的前提下,关闭生产合同缺口
9797

98-
- **持久 Session V2:** prompt 先持久准入、再调度执行;精确重试不会复制用户意图;同一 Session 的唤醒会安全合并。
99-
- **统一供应商轮次合同:** native 与 AI SDK provider 共享预算、权限、工件、审计、学习和关闭生命周期。
10098
- **单一持久真相:** DocumentStore 通过原子、可恢复写入统一管理文档、计划、学习候选、治理状态和版本冲突。
101-
- **事件驱动 Agent OS:** 持久事件、优先级路由、回压、Worker claim、租约、handoff、重试、死信恢复与分布式 placement 协调自主工作。
102-
- **消费者驱动 Goal:** `goal.tick.requested` 每次认领并执行一个幂等 tick,记录事实,并只在持久目标仍满足条件时调度下一 tick。
103-
- **人类监督:** 审批队列、全链路 trace、接管、回滚、Wiki 档案、通知,以及组织和 workspace 隔离始终位于执行路径上。
104-
- **安全集成:** MCP 凭据使用环境变量引用或原生操作系统 secret storage;目录风险、运行时权限、可信来源和工具 capability 逐层失败关闭。
99+
- **隔离子智能体:** 具备写权限的子智能体默认使用独立 worktree,并通过有界、可感知冲突的路径把改动回传到父工作区。
100+
- **可靠事件投递:** Event Bus 提供可替换 transport、持久 consumer offset、离线补投、真实优先级排序和可观测队列深度。
101+
- **受治理的学习与目标:** 知识晋升关联审阅证据与 ship-gate snapshot;事件驱动 goal tick 保持幂等并遵守 quiet hours。
102+
- **安全集成:** MCP 凭据使用环境变量引用或 macOS、Linux、Windows 原生 secret storage;capability 与来源检查逐层失败关闭。
103+
- **发布真实性:** 安装方式、CLI 示例、发布元数据、公开域名和支持版本文档与实际交付产品一致。
105104

106105
## 安装
107106

107+
> **说明:** `deepagent-code` npm 包尚未公开发布。
108+
> 请通过桌面应用或下面的安装脚本安装。
109+
108110
```bash
109-
npm install -g deepagent-code
111+
# 安装脚本(macOS / Linux)
112+
curl -fsSL https://deepagent.ltd/install | bash
110113
```
111114

112115
然后运行:
@@ -178,7 +181,7 @@ deepagent auth list
178181
启动智能体并交给它一个任务:
179182

180183
```bash
181-
deepagent-code "为 /api/users 端点添加限流"
184+
deepagent-code run "为 /api/users 端点添加限流"
182185
```
183186

184187
智能体将会:

SECURITY.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ Do not include live secrets in reports. Use redacted examples or synthetic crede
88

99
## Supported versions
1010

11-
Before the first public stable tag, the supported line is the current `main` branch and the latest published pre-release. Security fixes may be released as patch versions.
11+
The active development line is the `dev` branch. The supported release is the latest published version on the `core-v4.0-beta` branch and the desktop app release derived from it. Security fixes are applied to the active line and backported to the latest release where feasible.
1212

1313
## Source availability
1414

@@ -20,13 +20,13 @@ Preset MCP servers are opt-in. The preset catalog records intended risk tiers, b
2020

2121
Read-only database presets are intended to use restricted server modes and SQL guardrails. Guardrails are defense in depth, not a substitute for least-privilege database users.
2222

23-
## Known limitation: preset MCP credentials in V3.4.1
23+
## MCP credential security (V4.0+)
2424

25-
When enabling preset MCP servers that require credentials, credential values may currently be persisted in local configuration. Until V3.5 M-CRED lands:
25+
As of V4.0, MCP server credentials are stored in OS-backed secret storage where available (macOS Keychain; Linux and Windows fall back to a 0600 file). Credential values are not persisted in plain-text configuration. Only variable names or references travel through config files; values are resolved at runtime.
26+
27+
If you are running a version older than V4.0:
2628

2729
- Do not commit DeepAgent Code configuration files containing secrets.
2830
- Prefer environment-variable indirection where a server supports it.
2931
- Use least-privilege tokens and database users.
3032
- Rotate credentials if they were accidentally committed or shared.
31-
32-
The planned V3.5 M-CRED work stores secrets in OS-backed secret storage where available (macOS Keychain, Windows Credential Manager, Linux Secret Service), passes only variable names or references through configuration, and resolves values at runtime.

bun.lock

Lines changed: 7 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)