dsh-agy-link 0.4.28 → 0.4.32

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,71 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.4.32 (2026-09-17)
4
+
5
+ ### English
6
+
7
+ - **Fix: agy Active Workspace falls back to C-drive scratch (issue #26).**
8
+ - agy ignores process `cwd` for workspace activation; the resolved DSH/session workspace root is now always passed via `--add-dir` (in addition to media staging dirs).
9
+ - **Fix: `/agy <subcommand>` treated as plain chat (issue #27).**
10
+ - Registered `input.hint` on the `/agy` command so DSH's composer intercepts `/agy workspace`, `/agy status`, etc. instead of silently falling back to a prompt.
11
+ - **Feature (via PR #25): stream full model thoughts** from agy SQLite (protobuf field 20.3) as native reasoning blocks.
12
+
13
+ ### 中文 (Chinese)
14
+
15
+ - **修复:agy 无 Active Workspace、落到 C 盘 scratch(#26)** — 工作区根目录现在会通过 `--add-dir` 传入。
16
+ - **修复:`/agy` 子命令被当普通对话(#27)** — 补上 `input.hint` 声明。
17
+ - **特性(PR #25):** 从 agy SQLite 提取并流式展示完整思维链。
18
+
19
+ ## 0.4.31 (2026-09-17)
20
+
21
+ ### English
22
+
23
+ - **UI & UX: Align thinking process and tool invocation view with native DeepSeek Harness (DSH) styling.**
24
+ - **Native SVG Icons & Hover Transition (`src/client/toolview.ts` & `src/client/reasoning.ts`)**: Integrated native DSH icons (`IconChevronDownOutline14`, `IconApiOutline14`, `IconCodeOutline16`, `IconEditOutline16`, `IconBrowseOutline16`, `IconSearchOutline16`, `IconCopyOutline16`, `IconCheckOutline14`). Hovering over a row smoothly transitions the leading icon into a downward chevron (`chevronHover`, opacity 0 -> 1), reproducing official DSH micro-interactions.
25
+ - **Tool Row & Card Restyling (`src/client/toolview.ts`)**: Replaced custom boxed badges with native 24px borderless inline rows featuring official running sweep animation (`data-state="run"`). Expanded card includes an interactive header with Cwd, command/path, and a one-click copy button with temporary checkmark feedback.
26
+ - **Scrollable Long Content (`src/client/toolview.ts`)**: Added scrollable bounds (`max-height: 260px` / `280px` with thin scrollbars) for terminal stdout, file edits/diffs, and file viewing, preventing long output from overwhelming the chat stream.
27
+ - **Reasoning Process Presentation (`src/client/reasoning.ts`)**: Adheres to official DSH default collapsed state. Implemented scrollable container (`max-height: 360px`) with slim scrollbars for expanded reasoning thoughts and styled turn metadata into clean tags (`.agy-thought-banner`).
28
+
29
+ ### 中文 (Chinese)
30
+
31
+ - **界面与交互:深度对齐官方 DeepSeek Harness (DSH) 默认思维链与工具调用展示样式。**
32
+ - **原生 SVG 图标与鼠标悬停动效(`src/client/toolview.ts` 与 `src/client/reasoning.ts`)**:集成官方原生工具图标(`IconChevronDownOutline14`、`IconApiOutline14`、`IconCodeOutline16`、`IconEditOutline16`、`IconBrowseOutline16`、`IconSearchOutline16`、`IconCopyOutline16`、`IconCheckOutline14`)。鼠标悬浮整行时,小图标平滑过渡显示为下拉箭头图标(`chevronHover`,opacity 0 → 1),高度还原官方原生微动效。
33
+ - **工具行与卡片设计还原(`src/client/toolview.ts`)**:移除冗余徽章药丸,还原原生 24px 无边框轻量内联行与运行态扫光动画(`data-state="run"`);展开卡片包含 Cwd、命令/路径头部与交互式「复制」按钮(带「已复制」反馈与自动复原)。
34
+ - **超长内容滚动浏览(`src/client/toolview.ts`)**:针对终端输出、文件查看与 Diff 代码块增加最大高度限制(`max-height: 260px` / `280px`)与微型细滚动条,避免超长内容撑乱对话流。
35
+ - **思维链正文呈现(`src/client/reasoning.ts`)**:遵循官方默认折叠规范;为展开后的思考过程增加独立滚动浏览区域(`max-height: 360px`)与细滚动条,并将轮次思考元数据美化为轻量圆角标签(`.agy-thought-banner`)。
36
+
37
+ ## 0.4.30 (2026-09-15)
38
+
39
+ ### English
40
+
41
+ - **Feature: Extract and stream model thoughts/reasoning from agy database.**
42
+ - **Protobuf Field 20.3 Extraction (`src/host/agy-db.ts`)**: Decodes full model Chain-of-Thought (thoughts) from agy SQLite conversation databases (`steps` table, step_type `14`/`15` agent_response) via a deterministic varint protobuf scanner with sub-millisecond execution and zero external dependencies.
43
+ - **Live Streaming Reasoning Card (`src/host/mapper.ts` & `src/host/adapter.ts`)**: Injects resolved thoughts into native DSH reasoning blocks (`reasoning: true`), presenting the structured template `[agy thinking turn · {N} thinking tokens]\n\n{thoughtBody}` for model thinking turns. Supports both eager leading reasoning blocks and deferred trailing blocks without breaking tool spans or text fragments.
44
+ - **Client-Side Auto-Expansion (`src/client/reasoning.ts`)**: Auto-expands reasoning blocks when thoughts prose is present, while strictly respecting manual user collapse actions via DOM attribute tracking.
45
+ - **Run Traceability (`src/host/recording.ts`)**: Persists extracted thought text in `AgyRunRecording` for full lifecycle traceability and replay.
46
+
47
+ ### 中文 (Chinese)
48
+
49
+ - **特性:从 agy 数据库提取并流式展示完整思维链(Reasoning/Thinking)。**
50
+ - **Protobuf Field 20.3 确定性解码(`src/host/agy-db.ts`)**:针对 agy 会话 SQLite 库(`steps` 表,step_type `14`/`15` agent_response),通过原生 Varint Protobuf 扫描器高性能提取模型完整思考正文(Field 20 -> Sub-field 3),亚毫秒级解析且无额外依赖。
51
+ - **原生 Reasoning 卡片流式呈现(`src/host/mapper.ts` 与 `src/host/adapter.ts`)**:将提取到的思考内容流式推送至 DSH 原生推理卡片(`reasoning: true`),格式化呈现 `[agy thinking turn · *** thinking tokens]\n\n{思维链正文}`;支持前置流式输出与延迟解析补发,与工具步骤及正文片段无缝衔接。
52
+ - **客户端智能展开(`src/client/reasoning.ts`)**:检测到思维链正文时自动展开 Reasoning 卡片,并通过 DOM 属性标记保证用户手动折叠行为不被覆盖。
53
+ - **会话持久化与回放(`src/host/recording.ts`)**:在 `AgyRunRecording` 中记录思维链内容,保障全生命周期可追溯与回放。
54
+
55
+ ## 0.4.29 (2026-09-15)
56
+
57
+ ### English
58
+
59
+ - **Hotfix: client blank page / `cannot get property "locale" without inject` (issue #24).**
60
+ - 0.4.28 removed `locale` from the client `export inject` list while still reading `ctx.locale`. Cordis treats every inject entry as a hard dependency and throws on undeclared service access, so the web client failed to load.
61
+ - Restored `inject = ['slots', 'locale']`, use `ctx.locale` directly, and mark `@deepseek-ai/dsh-client-locale` as a required peer (shipped with `dsh-web-app`).
62
+
63
+ ### 中文 (Chinese)
64
+
65
+ - **热修:0.4.28 客户端白屏 / `cannot get property "locale" without inject`(#24)。**
66
+ - 0.4.28 把 `locale` 从 client `inject` 里拿掉却仍访问 `ctx.locale`;Cordis 对未声明服务的属性访问会直接抛错。
67
+ - 恢复 `inject = ['slots', 'locale']`,直接使用 `ctx.locale`,并将 `@deepseek-ai/dsh-client-locale` 标回必选 peer。
68
+
3
69
  ## 0.4.28 (2026-09-15)
4
70
 
5
71
  ### English