@q253595422/dsh-imagegen-video 1.9.0 → 1.9.3
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 +43 -0
- package/docs/releases/v1.9.3.md +48 -0
- package/lib/client.js +720 -224
- package/lib/client.js.map +1 -1
- package/lib/index.js +272 -45
- package/lib/locale-tables-chunk.js +77 -2
- package/package.json +3 -1
package/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,49 @@ Attribution for third-party code is in [NOTICE](./NOTICE).
|
|
|
5
5
|
|
|
6
6
|
## Releases
|
|
7
7
|
|
|
8
|
+
### 1.9.3 — session images, PPT delivery, and xAI Grok video
|
|
9
|
+
|
|
10
|
+
Upstream 1.9.1 + 1.9.2 landed here, alongside this repository's own fixes.
|
|
11
|
+
|
|
12
|
+
- **A host Agent failure is reported as itself.** Model and execution errors are
|
|
13
|
+
kept (and redacted) instead of surfacing as "no final PPTX was produced";
|
|
14
|
+
a run with no reply points at the default-model connection and tool setup.
|
|
15
|
+
- **The upstream skill's own `final/` deck is collected.** Only a run summary
|
|
16
|
+
marked complete with a passed validation report qualifies, and the deck is
|
|
17
|
+
still checked for PPTX structure and page count — an intermediate page file
|
|
18
|
+
never becomes the result.
|
|
19
|
+
- **PPT configuration opens in place.** The dialog reuses the generation
|
|
20
|
+
settings' own fields rather than reaching for the host settings button by DOM
|
|
21
|
+
lookup, with Escape, focus containment and return-to-trigger.
|
|
22
|
+
- **Uploads become a thumbnail grid** with an add tile: preview, reorder, delete,
|
|
23
|
+
and the order is the slide order.
|
|
24
|
+
- **The result pane shows only the final PPTX**, auto-opened: left column for
|
|
25
|
+
sources and options, right for the deck with page thumbnails, previous/next,
|
|
26
|
+
expand and download. Narrow screens go single-column with the source list
|
|
27
|
+
scrolling on its own. A task diagnostic entry exports the run's identifiers,
|
|
28
|
+
a failed preview can be retried, and the download survives the error.
|
|
29
|
+
- **Conversation tool results show their images again.** The renderer reads DSH's
|
|
30
|
+
persisted result metadata, so text-to-image, image-to-image and task-query
|
|
31
|
+
results all display thumbnails and open the original; older sessions keep
|
|
32
|
+
working through their image content blocks and JSON references, and a repeated
|
|
33
|
+
attachment appears once. Images stay UI data — what the model receives is
|
|
34
|
+
still text.
|
|
35
|
+
- **`format v4 message requires a producer-owned source kind` is fixed.** A PPT
|
|
36
|
+
run's first message carries `plugin:dsh-imagegen` instead of the v4-rejected
|
|
37
|
+
plugin wrapper; cast-heavy canvas skills share the fix.
|
|
38
|
+
- **Grok video speaks xAI's own contract.** A new `xai` family submits to
|
|
39
|
+
`/v1/videos/generations` and reads `request_id`, polls
|
|
40
|
+
`/v1/videos/{request_id}` for `video.url` / `video.duration`, and reports
|
|
41
|
+
`failed` and `expired` as failures. The body sends a numeric `duration`, a
|
|
42
|
+
lowercase `resolution` and `image: { url }`. The `xai-grok` preset ships
|
|
43
|
+
`grok-imagine-video-1.5` and `-lite`.
|
|
44
|
+
- **The narrow centre column stays usable.** Below 760px the conversation row
|
|
45
|
+
sizes to its content, the studio scrolls as a whole, and the config column no
|
|
46
|
+
longer stretches the layout — the generate button and the canvas stay reachable.
|
|
47
|
+
- **Desktop updates run through the launcher's install hook** and verify what it
|
|
48
|
+
actually reports: installed bundle, version, exit code and error code are each
|
|
49
|
+
checked, and an unverifiable result fails rather than claiming success.
|
|
50
|
+
|
|
8
51
|
### 1.9.0 — images to an editable PPTX
|
|
9
52
|
|
|
10
53
|
A standalone conversion workspace, reached from any finished image.
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
# v1.9.3 · 会话图片、PPT 交付与 xAI Grok 视频
|
|
2
|
+
|
|
3
|
+
> 各版本改动见 [CHANGELOG.md](../../CHANGELOG.md)。
|
|
4
|
+
|
|
5
|
+
本版把上游 1.9.1 与 1.9.2 的 PPT 交付改动合进来,并修掉本仓库自己的两处问题:
|
|
6
|
+
会话里的生图结果能显示图片了,「图片转 PPT」在窄栏下不再被挤出屏幕,Grok 视频接上了官方接口。
|
|
7
|
+
|
|
8
|
+
## PPT 转换
|
|
9
|
+
|
|
10
|
+
- **宿主错误不再被「未输出最终 PPTX」掩盖。** 模型或执行失败时保留具体错误并脱敏,
|
|
11
|
+
没有回复时提示检查默认模型连接与工具配置。
|
|
12
|
+
- **接收上游 skill 自己 final 目录里的最终 PPTX。** 只接受完成记录加通过的校验报告,
|
|
13
|
+
继续检查 PPTX 结构与页数;中间页文件不会被当成成功结果。
|
|
14
|
+
- **配置改为页内弹窗**,复用生图配置里的同一组字段,不再依赖宿主设置按钮的 DOM 查找;
|
|
15
|
+
支持 Escape、焦点约束与返回原按钮。
|
|
16
|
+
- **上传后是缩略图网格加「+」卡片**,可点击预览、移动顺序、删除;顺序即幻灯片顺序。
|
|
17
|
+
- **结果区只展示最终 PPTX。** 左右两栏:左边图片与参数,右边自动打开内容预览,
|
|
18
|
+
支持缩略图翻页、上一页/下一页、放大与下载;窄屏改单列,图片列表独立滚动。
|
|
19
|
+
新增任务诊断入口,预览失败可重试且仍可下载文件。复杂版式以 PowerPoint 为准。
|
|
20
|
+
|
|
21
|
+
## 会话与画布
|
|
22
|
+
|
|
23
|
+
- **会话中的生图工具读取 DSH 持久化的结果 metadata**,文生图、图生图与任务查询返回的
|
|
24
|
+
图片都能显示缩略图并打开原图;旧会话里的图片内容块与 JSON 引用仍然兼容,重复附件只显示一次。
|
|
25
|
+
图片只作界面展示,发给模型的内容仍是文本。
|
|
26
|
+
- **修复 PPT 首条消息的 `format v4 message requires a producer-owned source kind`**:
|
|
27
|
+
改用 `plugin:dsh-imagegen`,不再用被 DSH v4 拒绝的旧 plugin 包装;无限画布里的重型 skill 同样生效。
|
|
28
|
+
|
|
29
|
+
## 视频
|
|
30
|
+
|
|
31
|
+
- **Grok 视频接入官方协议。** 新增 `xai` 家族:提交到 `/v1/videos/generations` 读 `request_id`,
|
|
32
|
+
轮询 `/v1/videos/{request_id}` 读 `video.url` 与 `video.duration`,`failed` 与 `expired` 都按失败报告。
|
|
33
|
+
请求体按官方约定发送数字 `duration`、小写 `resolution` 与 `image: { url }`。
|
|
34
|
+
`xai-grok` 预设自带 `grok-imagine-video-1.5` 与 `-lite` 两个视频模型。
|
|
35
|
+
|
|
36
|
+
## 其它
|
|
37
|
+
|
|
38
|
+
- **窄栏布局不再被挤出屏幕。** 中间列很窄时对话区按内容收缩,工作室整体滚动,
|
|
39
|
+
配置栏不再撑破布局;生成按钮与画布都可达。
|
|
40
|
+
- Windows 桌面宿主的在线更新改走宿主安装接口,安装结果逐项核对,不接受「看起来成功」。
|
|
41
|
+
|
|
42
|
+
## 验证
|
|
43
|
+
|
|
44
|
+
类型检查、构建与 93 项离线检查通过,另有反向验证确认每处守卫被改回时对应检查会变红。
|
|
45
|
+
PPT 工作区的真实浏览器检查(`pnpm run ppt:preview && pnpm run test:ppt-browser`)需要 Playwright
|
|
46
|
+
与 Chromium,本机未安装时明确跳过并返回成功;等价的 jsdom 覆盖在 `pnpm test` 的 E1 里。
|
|
47
|
+
|
|
48
|
+
本环境没有用真实付费模型跑通整份多页转换,转换质量仍取决于输入图片、OCR 与模型能力。
|