dsh-agy-link 0.6.53 → 0.6.55
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 +48 -0
- package/dist/cli-image.mjs +799 -254
- package/dist/client.js +2183 -441
- package/dist/index.js +4680 -523
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,53 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.6.55 (2026-11-21)
|
|
4
|
+
|
|
5
|
+
### English
|
|
6
|
+
|
|
7
|
+
- **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.**
|
|
8
|
+
- **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`).
|
|
9
|
+
- **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.
|
|
10
|
+
- **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`).
|
|
11
|
+
- **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.
|
|
12
|
+
- **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`).
|
|
13
|
+
- **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).
|
|
14
|
+
- **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`.
|
|
15
|
+
- **Slash command bridges**: Added `/agy btw`, `/agy fork` (including `list`/`restore`), `/agy grill` / `grill-me`, `/agy learn [--apply]`, and `/agy compact`.
|
|
16
|
+
- **Per-family account scoping & host-backed warmup bar**: Preserved per-family active account pins (`manualPinAtByFamily`, `resolvedActiveAccountIds`) and host-backed `WarmupStatusBar` + warmup resilience improvements.
|
|
17
|
+
- **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`.
|
|
18
|
+
|
|
19
|
+
### 中文
|
|
20
|
+
|
|
21
|
+
- **特性(能力对齐):全面补齐 `agy` 高/中优先级能力——对话内生图、持久化 ACP 传输池、多账号生态清点与同步、Generative UI 内嵌页、扩展工具卡片、多模态附件暂存、斜杠命令桥接与安全透传参数。**
|
|
22
|
+
- **对话内生图与均衡默认参数**:新增 `agy_image` DSH 工具(`imageTool` 配置)、`/agy image`(`/agy img`)命令以及 `image-generator` 子代理图片预览卡片;将默认生图思考深度调整为均衡 `imageEffort: 'medium'`,并在发现 `gemini-4-hydrogen` 时自动优先选用(否则回退 `gemini-3.8-flash`)。
|
|
23
|
+
- **安全执行与 CLI 参数透传**:为 `PermissionMode` 新增 `'auto'`(`--mode auto`),新增 `--sandbox` 沙箱开关,并打通 `--agent`、`--settings`、`--json-schema` 参数透传。
|
|
24
|
+
- **多模态输入暂存与音频播放器**:支持 PDF、音频、视频附件暂存(默认单文件上限 `mediaMaxFileBytes` 20 MiB)与聊天内联 `<audio>` 播放器(`src/client/images/audio.ts`)。
|
|
25
|
+
- **扩展工具详情卡片**:为 `swarm`、`run_workflow`、`schedule`、`manage_task`、子代理生命周期(`invoke_subagent` / `define_subagent` / `manage_subagents` / `send_message`)及浏览器/DevTools 工具提供专用卡片渲染。
|
|
26
|
+
- **Generative UI `<agent-embed>`**:在 `EventMapper`/`text.ts` 中实现流式标签缓冲,新增严格 CSP 的 `/plugins/agy-link/embed` 路由与支持自适应高度及主题同步的沙箱 `<iframe sandbox="allow-scripts">` 渲染器(`src/client/embed.ts`)。
|
|
27
|
+
- **持久化 `agy acp` 会话池**:实现 stdio JSON-RPC `AcpProcess` 与 `AcpSessionPool`(`transport: 'cli' | 'acp'`、懒启动空闲清理定时器、Windows 单账号驱逐与流前自动回退 CLI `-p`)。
|
|
28
|
+
- **多账号生态清点与同步**:支持 `plugins`/`mcp`/`skills`/`rules`/`agents` 跨账号清点、白名单同步到隔离池账号、`/ecosystem` HTTP 路由、设置页 `EcosystemPanel` 及 `/agy plugins|mcp|agents|skills|sync-ecosystem`。
|
|
29
|
+
- **斜杠命令桥接**:新增 `/agy btw`、`/agy fork`(含 `list`/`restore`)、`/agy grill` / `grill-me`、`/agy learn [--apply]` 与 `/agy compact`。
|
|
30
|
+
- **按模型家族的活跃账号隔离与宿主级预热条**:保留 `manualPinAtByFamily`、`resolvedActiveAccountIds` 及宿主后端驱动的 `WarmupStatusBar` 与预热韧性增强。
|
|
31
|
+
- **国际化与 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 注释处理。
|
|
32
|
+
|
|
33
|
+
## 0.6.54 (2026-11-21)
|
|
34
|
+
|
|
35
|
+
### English
|
|
36
|
+
|
|
37
|
+
- **Fix(client): the rest of the DOM surfaces now speak the host language (fixes #153, part 2).** Part 1 localized the decision chips; this one covers the image chips and their toasts, the whole image lightbox (tooltips, button labels, loading and keyboard hints), the mermaid view-source toggle and parse warning, the compaction card title, and the question-card insert/recorded labels.
|
|
38
|
+
- **New `src/client/i18n-bridge.ts`**: these modules are plain DOM enhancers, not React components, and several have no `ctx` of their own (the lightbox is opened by the scanner). They now read one translator bound once in `index.ts`, with `translateOr(key, englishFallback)` guaranteeing copy instead of a bare key when no locale service exists. `decisions.ts` was migrated onto it, deleting its private copy of the same fallback logic.
|
|
39
|
+
- **`mermaid` keeps one Chinese literal on purpose**: `代码块` is DSH's own placeholder banner text, matched to DETECT "this banner carries no real language label". Translating it would break the detection.
|
|
40
|
+
- **`compaction` no longer reads `document.documentElement.lang`**: that is DSH's page language, not this plugin's locale, and the two can disagree — the binding is the authority now.
|
|
41
|
+
- **Test(dx): hardened two timing guards in `test/proxy-keychain.test.ts`.** They measured machine load rather than the watchdog: a starved event loop on a busy host made a 5s guard fire before a 400ms timeout could settle, and one escalation test hung to the runner's 60s default. The guards are widened and now reap the child on overrun, while the assertions that bound the actual tick are unchanged.
|
|
42
|
+
|
|
43
|
+
### 中文
|
|
44
|
+
|
|
45
|
+
- **修复(客户端):其余 DOM 界面也改用宿主语言(修复 #153 第二部分)。** 第一部分本地化了决策芯片;本次覆盖图片 chip 与其 toast、整个图片灯箱(tooltip、按钮文字、加载与键盘提示)、mermaid 的「查看源码」切换与解析失败警告、压缩卡片标题,以及问题卡片的填入/已记录文案。
|
|
46
|
+
- **新增 `src/client/i18n-bridge.ts`**:这些模块是纯 DOM 增强器而非 React 组件,其中几个根本没有自己的 `ctx`(灯箱由 scanner 打开)。它们现在统一读取在 `index.ts` 一次性绑定的 translator,`translateOr(key, 英文兜底)` 保证没有 locale 服务时输出文案而不是裸 key。`decisions.ts` 已迁移过来,删掉了它自己那份重复的兜底逻辑。
|
|
47
|
+
- **`mermaid` 刻意保留一处中文**:`代码块` 是 DSH 自己的占位 banner 文本,用来**识别**「该 banner 没有真实语言标签」。翻译它会破坏这段判断。
|
|
48
|
+
- **`compaction` 不再读 `document.documentElement.lang`**:那是 DSH 的页面语言,不是本插件的 locale,两者可能不一致——现在以 locale 绑定为准。
|
|
49
|
+
- **测试(开发体验):加固 `test/proxy-keychain.test.ts` 的两处时序守卫。** 它们实际在测机器负载而非看门狗:繁忙宿主上被饿死的事件循环会让 5 秒守卫早于 400ms 超时结算,另有一条升级用例会一直挂到 runner 的 60 秒默认超时。守卫已放宽,并在超时时主动回收子进程;约束真实 tick 的断言保持不变。
|
|
50
|
+
|
|
3
51
|
## 0.6.53 (2026-11-21)
|
|
4
52
|
|
|
5
53
|
### English
|