dsh-agy-link 0.6.54 → 0.6.56

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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,51 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.6.56 (2026-11-22)
4
+
5
+ ### English
6
+
7
+ - **Fix(visibility): live background-task logs and ACP tracker activity are now surfaced, and a false "previous turn was interrupted" banner is gone (merges PR #155).** Two independent problems:
8
+ - Backgrounded `run_command` task logs (`.system_generated/tasks/*.log`) and completion/cancellation notices (`.system_generated/messages/{,undelivered/}*.json`) were not tailed in real time, and `runAcpAttempt()` created its attempt recorder with the tracker disabled. A new `TaskActivityTracker` (`src/features/subagent/task-activity.ts`) tails them incrementally (UTF-8 multi-byte safe, burst-bounded, EOF baselined on resumed runs, message ids de-duplicated) and is wired into `SubagentTracker` with a final synchronous flush in `stop()`; ACP runs now enable the tracker. `RUNNING` step fallback text and the mirror card carry task-id / log-path / timer hints.
9
+ - In `streamAttempt()`, a prior run that had **already produced a consumable result** but took slightly over 1.5s to tear down was still marked `binding.interrupted = true` and had `[the previous turn was interrupted before it finished …]` prepended to the next prompt — a lie about a turn that actually answered. Only runs **without** a consumable result are marked interrupted now.
10
+ - Note: `hasConsumableResult` (added in 0.6.51) is what distinguishes the two cases; the change is a net reduction in `adapter.ts`.
11
+
12
+ ### 中文
13
+
14
+ - **修复(可见性):实时后台任务日志与 ACP tracker 活动现在会展示,且错误插入的「上一轮被中断」横幅已消除(合并 PR #155)。** 两个独立问题:
15
+ - 转后台的 `run_command` 任务日志(`.system_generated/tasks/*.log`)与完成/取消通知(`.system_generated/messages/{,undelivered/}*.json`)此前不会被实时跟随,且 `runAcpAttempt()` 创建 recorder 时未启用 tracker。新增 `TaskActivityTracker`(`src/features/subagent/task-activity.ts`)增量跟随(UTF-8 多字节安全、突发有界、续跑时以 EOF 为基线、消息 id 去重),接入 `SubagentTracker` 并在 `stop()` 做最终同步 flush;ACP 运行现在会启用 tracker。`RUNNING` 步骤的兜底文案与镜像卡片会带上 task-id / 日志路径 / 定时提示。
16
+ - `streamAttempt()` 里,上一轮**已经产出可消费结果**、只是收尾超过 1.5 秒的情形,仍会被标记 `binding.interrupted = true` 并把「上一轮在完成前被中断…」插到下一条 prompt 前面——对一个实际已经作答的回合说谎。现在只有**没有**可消费结果的 run 才会被标记为中断。
17
+ - 说明:区分这两种情形依靠 0.6.51 引入的 `hasConsumableResult`;该改动使 `adapter.ts` 净减少代码。
18
+
19
+ ## 0.6.55 (2026-11-21)
20
+
21
+ ### English
22
+
23
+ - **Feat(parity): full `agy` high- and medium-value parity suite — in-chat image generation, persistent ACP transport, multi-account ecosystem sync, Generative UI embeds, extended toolview cards, multimodal staging, slash bridges, and CLI security/passthrough flags.**
24
+ - **In-chat image generation & balanced defaults**: Added the `agy_image` DSH tool (`imageTool` config), `/agy image` (`/agy img`) slash command, and `image-generator` subagent image preview card. Updated defaults to balanced `imageEffort: 'medium'` and auto-preference for discovered `gemini-4-hydrogen` (falling back to `gemini-3.8-flash`).
25
+ - **Execution security & CLI passthrough**: Extended `PermissionMode` with `'auto'` (`--mode auto`), added `--sandbox` (`sandbox` config / request option), and wired `--agent`, `--settings`, and `--json-schema` passthrough into CLI arg assembly.
26
+ - **Multimodal input staging & audio playback**: Added PDF, audio, and video attachment staging up to `mediaMaxFileBytes` (20 MiB default) alongside an inline `<audio>` player enhancer (`src/client/images/audio.ts`).
27
+ - **Extended toolview cards**: Added dedicated cards and models for `swarm`, `run_workflow`, `schedule`, `manage_task`, subagent lifecycle (`invoke_subagent`, `define_subagent`, `manage_subagents`, `send_message`), and browser/devtools tools.
28
+ - **Generative UI `<agent-embed>`**: Added streaming `<agent-embed src="...">` tag buffering in `EventMapper`/`text.ts`, a strict-CSP `/plugins/agy-link/embed` route, and a sandboxed `<iframe sandbox="allow-scripts">` auto-resizing/theme-synced renderer (`src/client/embed.ts`).
29
+ - **Persistent `agy acp` session pool**: Added stdio JSON-RPC `AcpProcess` + `AcpSessionPool` (`transport: 'cli' | 'acp'`, lazy idle sweep timer, Windows single-account eviction, and automatic pre-stream CLI `-p` fallback).
30
+ - **Multi-account ecosystem inventory & sync**: Added discovery across `plugins`, `mcp`, `skills`, `rules`, and `agents`, allowlist sync into isolated pool accounts, `/ecosystem` HTTP routes, Settings `EcosystemPanel`, and `/agy plugins|mcp|agents|skills|sync-ecosystem`.
31
+ - **Slash command bridges**: Added `/agy btw`, `/agy fork` (including `list`/`restore`), `/agy grill` / `grill-me`, `/agy learn [--apply]`, and `/agy compact`.
32
+ - **Per-family account scoping & host-backed warmup bar**: Preserved per-family active account pins (`manualPinAtByFamily`, `resolvedActiveAccountIds`) and host-backed `WarmupStatusBar` + warmup resilience improvements.
33
+ - **i18n & Windows test hardening**: Localized all newly introduced DOM surfaces (`embed.ts`, `audio.ts`, `extended-cards.ts`, `image-card.ts`) onto `src/client/i18n-bridge.ts` across `en`/`zh`/`es`/`ptBR`, and fixed Windows path/CRLF handling in `test/issue153-client-locale.test.ts`.
34
+
35
+ ### 中文
36
+
37
+ - **特性(能力对齐):全面补齐 `agy` 高/中优先级能力——对话内生图、持久化 ACP 传输池、多账号生态清点与同步、Generative UI 内嵌页、扩展工具卡片、多模态附件暂存、斜杠命令桥接与安全透传参数。**
38
+ - **对话内生图与均衡默认参数**:新增 `agy_image` DSH 工具(`imageTool` 配置)、`/agy image`(`/agy img`)命令以及 `image-generator` 子代理图片预览卡片;将默认生图思考深度调整为均衡 `imageEffort: 'medium'`,并在发现 `gemini-4-hydrogen` 时自动优先选用(否则回退 `gemini-3.8-flash`)。
39
+ - **安全执行与 CLI 参数透传**:为 `PermissionMode` 新增 `'auto'`(`--mode auto`),新增 `--sandbox` 沙箱开关,并打通 `--agent`、`--settings`、`--json-schema` 参数透传。
40
+ - **多模态输入暂存与音频播放器**:支持 PDF、音频、视频附件暂存(默认单文件上限 `mediaMaxFileBytes` 20 MiB)与聊天内联 `<audio>` 播放器(`src/client/images/audio.ts`)。
41
+ - **扩展工具详情卡片**:为 `swarm`、`run_workflow`、`schedule`、`manage_task`、子代理生命周期(`invoke_subagent` / `define_subagent` / `manage_subagents` / `send_message`)及浏览器/DevTools 工具提供专用卡片渲染。
42
+ - **Generative UI `<agent-embed>`**:在 `EventMapper`/`text.ts` 中实现流式标签缓冲,新增严格 CSP 的 `/plugins/agy-link/embed` 路由与支持自适应高度及主题同步的沙箱 `<iframe sandbox="allow-scripts">` 渲染器(`src/client/embed.ts`)。
43
+ - **持久化 `agy acp` 会话池**:实现 stdio JSON-RPC `AcpProcess` 与 `AcpSessionPool`(`transport: 'cli' | 'acp'`、懒启动空闲清理定时器、Windows 单账号驱逐与流前自动回退 CLI `-p`)。
44
+ - **多账号生态清点与同步**:支持 `plugins`/`mcp`/`skills`/`rules`/`agents` 跨账号清点、白名单同步到隔离池账号、`/ecosystem` HTTP 路由、设置页 `EcosystemPanel` 及 `/agy plugins|mcp|agents|skills|sync-ecosystem`。
45
+ - **斜杠命令桥接**:新增 `/agy btw`、`/agy fork`(含 `list`/`restore`)、`/agy grill` / `grill-me`、`/agy learn [--apply]` 与 `/agy compact`。
46
+ - **按模型家族的活跃账号隔离与宿主级预热条**:保留 `manualPinAtByFamily`、`resolvedActiveAccountIds` 及宿主后端驱动的 `WarmupStatusBar` 与预热韧性增强。
47
+ - **国际化与 Windows 测试加固**:将全部新增客户端 DOM 界面(`embed.ts`、`audio.ts`、`extended-cards.ts`、`image-card.ts`)接入 `src/client/i18n-bridge.ts` 并补齐 `en`/`zh`/`es`/`ptBR` 文案,同时修复 `test/issue153-client-locale.test.ts` 的 Windows 路径与 CRLF 注释处理。
48
+
3
49
  ## 0.6.54 (2026-11-21)
4
50
 
5
51
  ### English