@sh1robana/dsh-plugin-message-edit 0.3.2 → 0.3.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 +10 -0
- package/NOTICE.md +2 -2
- package/README.md +6 -5
- package/build-info.json +6 -6
- package/client.js +75 -75
- package/client.js.map +1 -1
- package/docs//345/217/221/345/270/203/346/214/207/345/215/227.md +10 -10
- package/index.mjs +3 -3
- package/package.json +145 -141
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,15 @@
|
|
|
1
1
|
# 更新记录
|
|
2
2
|
|
|
3
|
+
## 0.3.3
|
|
4
|
+
|
|
5
|
+
适配 DSH 桌面端 `0.2.1-rc.5`,保留 `0.2.0-rc.2`、`0.2.1-rc.1`、`0.2.1-rc.2` 的兼容声明与既有功能。
|
|
6
|
+
|
|
7
|
+
- `0.3.2` 及更早版本未声明 rc.5,会被宿主兼容检查跳过加载;本版在兼容声明中加入 `0.2.1-rc.5`。未验证的 `0.2.1-rc.3`、`0.2.1-rc.4` 不声明。
|
|
8
|
+
- 对齐目标宿主开发依赖与客户端加载器检查,继续复用宿主运行时;rc.5 的宿主侧接口与 rc.2 一致,保存、分支、附件与版本切换逻辑不变。
|
|
9
|
+
- 贡献署名加入 Claude(Anthropic AI 编程助手,经 Claude Code)。
|
|
10
|
+
|
|
11
|
+
类型检查、构建及 111 项自动检查通过(含目标模块加载器和原生拖放集成检查)。维护者已在 rc.5 桌面端完成验收。
|
|
12
|
+
|
|
3
13
|
## 0.3.2
|
|
4
14
|
|
|
5
15
|
适配 DSH 桌面端 `0.2.1-rc.2`,保留 `0.2.0-rc.2`、`0.2.1-rc.1` 的兼容声明与既有功能。
|
package/NOTICE.md
CHANGED
|
@@ -7,9 +7,9 @@
|
|
|
7
7
|
- 基础提交:`b78a167064ca612f1c400060d2bfc1dc9bc46436`
|
|
8
8
|
- 上游 `package.json` 声明的许可证:`MIT`
|
|
9
9
|
|
|
10
|
-
本项目现以 **dsh-plugin-message-edit** 独立维护,新增 DSH 桌面端 `0.2.0-rc.2`、`0.2.1-rc.1`、`0.2.1-rc.2` 的接口适配、原地保存、完整附件编辑、Windows 构建支持及自动化测试。保留上游原始作者信息;本项目不将原作者代码声明为新维护者原创。
|
|
10
|
+
本项目现以 **dsh-plugin-message-edit** 独立维护,新增 DSH 桌面端 `0.2.0-rc.2`、`0.2.1-rc.1`、`0.2.1-rc.2`、`0.2.1-rc.5` 的接口适配、原地保存、完整附件编辑、Windows 构建支持及自动化测试。保留上游原始作者信息;本项目不将原作者代码声明为新维护者原创。
|
|
11
11
|
|
|
12
|
-
桌面端适配由 [shirobana](https://github.com/sh1robana) 与 Codex(OpenAI AI 编程助手)协作完成,Codex
|
|
12
|
+
桌面端适配由 [shirobana](https://github.com/sh1robana) 与 Codex(OpenAI AI 编程助手)协作完成,Codex 参与兼容代码、测试、安装脚本和文档的编写;DSH `0.2.1-rc.5` 适配由 Claude(Anthropic AI 编程助手,经 Claude Code)参与接口取证、兼容声明、测试与文档。贡献记录见 README。
|
|
13
13
|
|
|
14
14
|
上游仓库在上述提交中未附完整 `LICENSE` 文件,但 `package.json` 明确声明 `MIT`,Git 历史确认原作者为 Moeblack。本分支据此补充标准 MIT 文本,保留 Moeblack 的版权归属,不虚构其版权年份;这份文本由本分支补足,并非声称上游已经提供该文件。完整条款见 `LICENSE`。
|
|
15
15
|
|
package/README.md
CHANGED
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
- **编辑与重试**:编辑助手回复或思考、重生成最后回复、重试历史回合;通过 Timeline 查看记录、切换版本。
|
|
11
11
|
- **完整编辑框**:支持 `@` 文件与会话引用、权限、模型和推理等级选择,以及取消编辑的二次确认。
|
|
12
12
|
|
|
13
|
-
`0.3.
|
|
13
|
+
`0.3.3` 适配 DSH **`0.2.1-rc.5`**,详见 [更新记录](CHANGELOG.md)。兼容声明保留 `0.2.0-rc.2`、`0.2.1-rc.1`、`0.2.1-rc.2`;其中已完成桌面验证的为 `0.2.0-rc.2`、`0.2.1-rc.1`、`0.2.1-rc.5`,`rc.2` 已通过自动检查、本地原生读取及浏览器演示验证,完整桌面回归记录待补齐。未声明的 `0.2.1-rc.3`、`0.2.1-rc.4` 会被宿主拒绝,请升级到 rc.5。首次打开会话时请等待历史消息加载完成。
|
|
14
14
|
|
|
15
15
|
安装新版不会自动修复已损坏的历史文件。遇到历史加载失败时请保留原件,先备份再单独恢复。
|
|
16
16
|
|
|
@@ -22,22 +22,22 @@
|
|
|
22
22
|
|
|
23
23
|
### 安装
|
|
24
24
|
|
|
25
|
-
使用 GitHub Release 的 `0.3.
|
|
25
|
+
使用 GitHub Release 的 `0.3.3` 预构建安装包:
|
|
26
26
|
|
|
27
27
|
```sh
|
|
28
|
-
dsh plugin --profile desktop add -w https://github.com/sh1robana/dsh-plugin-message-edit/releases/download/v0.3.
|
|
28
|
+
dsh plugin --profile desktop add -w https://github.com/sh1robana/dsh-plugin-message-edit/releases/download/v0.3.3/dsh-plugin-message-edit-0.3.3.tgz
|
|
29
29
|
```
|
|
30
30
|
|
|
31
31
|
Windows 桌面端没有全局 `dsh` 命令时,使用安装目录里的 CLI,按实际安装位置修改路径:
|
|
32
32
|
|
|
33
33
|
```powershell
|
|
34
|
-
& 'D:\DeepSeek Harness\resources\runtime\cli\bin\dsh.cmd' plugin --profile desktop add -w https://github.com/sh1robana/dsh-plugin-message-edit/releases/download/v0.3.
|
|
34
|
+
& 'D:\DeepSeek Harness\resources\runtime\cli\bin\dsh.cmd' plugin --profile desktop add -w https://github.com/sh1robana/dsh-plugin-message-edit/releases/download/v0.3.3/dsh-plugin-message-edit-0.3.3.tgz
|
|
35
35
|
```
|
|
36
36
|
|
|
37
37
|
也可通过 npm 安装同一版本:
|
|
38
38
|
|
|
39
39
|
```sh
|
|
40
|
-
dsh plugin --profile desktop add -w @sh1robana/dsh-plugin-message-edit@0.3.
|
|
40
|
+
dsh plugin --profile desktop add -w @sh1robana/dsh-plugin-message-edit@0.3.3
|
|
41
41
|
```
|
|
42
42
|
|
|
43
43
|
**安装后保存工作,彻底退出 DSH,再重新启动。** 如果已安装旧的 `dsh-message-edit` 或其他消息编辑插件,请先停用,避免重复按钮和接口冲突。迁移本项目旧版时,可先执行 `dsh plugin --profile desktop remove -w dsh-message-edit`。
|
|
@@ -57,6 +57,7 @@ dsh plugin --profile desktop add -w @sh1robana/dsh-plugin-message-edit@0.3.2
|
|
|
57
57
|
|
|
58
58
|
- **[shirobana](https://github.com/sh1robana)**:需求设计、桌面验收与项目维护。
|
|
59
59
|
- **Codex(OpenAI AI 编程助手)**:协作完成兼容适配、功能实现、测试和文档。
|
|
60
|
+
- **Claude(Anthropic AI 编程助手,经 Claude Code)**:协作完成 DSH `0.2.1-rc.5` 的接口取证、兼容适配、测试与安装验证。
|
|
60
61
|
|
|
61
62
|
基于 [Moeblack/dsh-message-edit](https://github.com/Moeblack/dsh-message-edit) 继续开发;感谢 [DDDMUC/dsh-edit-turn](https://github.com/DDDMUC/dsh-edit-turn) 的设计参考、DeepSeek Harness 的插件接口与构建预设,以及 [dsh-market](https://github.com/dsh-market/dsh-market)、[awesome-dsh-plugin](https://github.com/awesome-dsh-plugin/awesome-dsh-plugin) 社区的发布文档。
|
|
62
63
|
|
package/build-info.json
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "0.3.
|
|
3
|
-
"buildId": "
|
|
4
|
-
"targetDshVersion": "0.2.1-rc.
|
|
2
|
+
"version": "0.3.3",
|
|
3
|
+
"buildId": "8b68760be79248960bd3",
|
|
4
|
+
"targetDshVersion": "0.2.1-rc.5",
|
|
5
5
|
"files": {
|
|
6
|
-
"index.mjs": "
|
|
7
|
-
"client.js": "
|
|
8
|
-
"client.js.map": "
|
|
6
|
+
"index.mjs": "fa2e8eace8710fcc9e65c51b7f8754fae9e5ca1a8df7d745fa4958f61aa7b8e5",
|
|
7
|
+
"client.js": "a07e591e747d915b9dc2ec065d48f8ce552ba4d0936e367bdb5a30305af99c49",
|
|
8
|
+
"client.js.map": "8f788a0c0edc8d26a8d294c368a97c09930f8d898abf583df89bbdbe4f6aae0c"
|
|
9
9
|
}
|
|
10
10
|
}
|
package/client.js
CHANGED
|
@@ -30,9 +30,9 @@ window.__ModuleLoader__.load({
|
|
|
30
30
|
//#region src/build-info.ts
|
|
31
31
|
/** 由构建脚本生成;前后端共享同一份构建身份。 */
|
|
32
32
|
const MESSAGE_EDIT_BUILD_INFO = Object.freeze({
|
|
33
|
-
"version": "0.3.
|
|
34
|
-
"buildId": "
|
|
35
|
-
"targetDshVersion": "0.2.1-rc.
|
|
33
|
+
"version": "0.3.3",
|
|
34
|
+
"buildId": "8b68760be79248960bd3",
|
|
35
|
+
"targetDshVersion": "0.2.1-rc.5"
|
|
36
36
|
});
|
|
37
37
|
//#endregion
|
|
38
38
|
//#region src/client/attachmentTools.ts
|
|
@@ -557,46 +557,46 @@ window.__ModuleLoader__.load({
|
|
|
557
557
|
document.head.appendChild(tag);
|
|
558
558
|
}
|
|
559
559
|
var InlineMessageEdit_module_css_default = {
|
|
560
|
-
"
|
|
561
|
-
"
|
|
562
|
-
"
|
|
563
|
-
"footer": "jW03kW_footer",
|
|
564
|
-
"attachmentEditor": "jW03kW_attachmentEditor",
|
|
565
|
-
"input": "jW03kW_input",
|
|
566
|
-
"menuValue": "jW03kW_menuValue",
|
|
567
|
-
"attachmentAddCircle": "jW03kW_attachmentAddCircle",
|
|
568
|
-
"composerPlus": "jW03kW_composerPlus",
|
|
569
|
-
"composer": "jW03kW_composer",
|
|
560
|
+
"title": "jW03kW_title",
|
|
561
|
+
"attachmentPreview": "jW03kW_attachmentPreview",
|
|
562
|
+
"overlay": "jW03kW_overlay",
|
|
570
563
|
"attachmentStatus": "jW03kW_attachmentStatus",
|
|
571
|
-
"
|
|
572
|
-
"
|
|
564
|
+
"pickerItem": "jW03kW_pickerItem",
|
|
565
|
+
"fileReference": "jW03kW_fileReference",
|
|
566
|
+
"attachmentAdd": "jW03kW_attachmentAdd",
|
|
573
567
|
"pickerItemActive": "jW03kW_pickerItemActive",
|
|
574
|
-
"
|
|
575
|
-
"
|
|
576
|
-
"
|
|
568
|
+
"attachmentList": "jW03kW_attachmentList",
|
|
569
|
+
"composerPlus": "jW03kW_composerPlus",
|
|
570
|
+
"referenceSuggestions": "jW03kW_referenceSuggestions",
|
|
577
571
|
"menuHeading": "jW03kW_menuHeading",
|
|
578
|
-
"menuItemLabel": "jW03kW_menuItemLabel",
|
|
579
|
-
"attachmentPreviewClose": "jW03kW_attachmentPreviewClose",
|
|
580
572
|
"attachmentCard": "jW03kW_attachmentCard",
|
|
573
|
+
"input": "jW03kW_input",
|
|
581
574
|
"composerControl": "jW03kW_composerControl",
|
|
582
|
-
"
|
|
583
|
-
"
|
|
584
|
-
"
|
|
585
|
-
"
|
|
575
|
+
"menuValue": "jW03kW_menuValue",
|
|
576
|
+
"attachmentInfo": "jW03kW_attachmentInfo",
|
|
577
|
+
"iconButton": "jW03kW_iconButton",
|
|
578
|
+
"attachmentAddCircle": "jW03kW_attachmentAddCircle",
|
|
579
|
+
"attachmentEditor": "jW03kW_attachmentEditor",
|
|
586
580
|
"confirmationOverlay": "jW03kW_confirmationOverlay",
|
|
587
|
-
"fileReference": "jW03kW_fileReference",
|
|
588
581
|
"composerMenu": "jW03kW_composerMenu",
|
|
589
|
-
"
|
|
590
|
-
"iconButton": "jW03kW_iconButton",
|
|
591
|
-
"attachmentInfo": "jW03kW_attachmentInfo",
|
|
582
|
+
"menuItemLabel": "jW03kW_menuItemLabel",
|
|
592
583
|
"modelList": "jW03kW_modelList",
|
|
593
|
-
"
|
|
594
|
-
"
|
|
595
|
-
"modelSearch": "jW03kW_modelSearch",
|
|
584
|
+
"footer": "jW03kW_footer",
|
|
585
|
+
"attachmentLightbox": "jW03kW_attachmentLightbox",
|
|
596
586
|
"confirmPanel": "jW03kW_confirmPanel",
|
|
597
|
-
"
|
|
598
|
-
"
|
|
599
|
-
"
|
|
587
|
+
"attachmentPreviewClose": "jW03kW_attachmentPreviewClose",
|
|
588
|
+
"menuBack": "jW03kW_menuBack",
|
|
589
|
+
"composer": "jW03kW_composer",
|
|
590
|
+
"picker": "jW03kW_picker",
|
|
591
|
+
"attachmentOriginal": "jW03kW_attachmentOriginal",
|
|
592
|
+
"attachmentRemove": "jW03kW_attachmentRemove",
|
|
593
|
+
"richInput": "jW03kW_richInput",
|
|
594
|
+
"modelSearch": "jW03kW_modelSearch",
|
|
595
|
+
"composerModel": "jW03kW_composerModel",
|
|
596
|
+
"composerToolbar": "jW03kW_composerToolbar",
|
|
597
|
+
"attachmentOpen": "jW03kW_attachmentOpen",
|
|
598
|
+
"attachmentNotice": "jW03kW_attachmentNotice",
|
|
599
|
+
"panel": "jW03kW_panel"
|
|
600
600
|
};
|
|
601
601
|
//#endregion
|
|
602
602
|
//#region src/client/confirmCancelEdit.ts
|
|
@@ -2162,10 +2162,10 @@ window.__ModuleLoader__.load({
|
|
|
2162
2162
|
document.head.appendChild(tag);
|
|
2163
2163
|
}
|
|
2164
2164
|
var MessageEditHeader_module_css_default = {
|
|
2165
|
-
"rerollButton": "g0PbfG_rerollButton",
|
|
2166
|
-
"iconButton": "g0PbfG_iconButton",
|
|
2167
2165
|
"counter": "g0PbfG_counter",
|
|
2168
|
-
"
|
|
2166
|
+
"rerollButton": "g0PbfG_rerollButton",
|
|
2167
|
+
"root": "g0PbfG_root",
|
|
2168
|
+
"iconButton": "g0PbfG_iconButton"
|
|
2169
2169
|
};
|
|
2170
2170
|
//#endregion
|
|
2171
2171
|
//#region src/client/MessageEditHeader.tsx
|
|
@@ -2251,57 +2251,57 @@ window.__ModuleLoader__.load({
|
|
|
2251
2251
|
document.head.appendChild(tag);
|
|
2252
2252
|
}
|
|
2253
2253
|
var MessageEditTimelineView_module_css_default = {
|
|
2254
|
-
"select": "Si12YW_select",
|
|
2255
|
-
"editorActions": "Si12YW_editorActions",
|
|
2256
|
-
"empty": "Si12YW_empty",
|
|
2257
|
-
"sectionHeading": "Si12YW_sectionHeading",
|
|
2258
2254
|
"versionList": "Si12YW_versionList",
|
|
2259
|
-
"
|
|
2260
|
-
"notice": "Si12YW_notice",
|
|
2261
|
-
"turnPreview": "Si12YW_turnPreview",
|
|
2262
|
-
"intro": "Si12YW_intro",
|
|
2263
|
-
"secondaryButton": "Si12YW_secondaryButton",
|
|
2264
|
-
"columns": "Si12YW_columns",
|
|
2265
|
-
"effectControls": "Si12YW_effectControls",
|
|
2266
|
-
"messageText": "Si12YW_messageText",
|
|
2267
|
-
"effectDepth": "Si12YW_effectDepth",
|
|
2255
|
+
"versionMain": "Si12YW_versionMain",
|
|
2268
2256
|
"currentBadge": "Si12YW_currentBadge",
|
|
2269
|
-
"
|
|
2270
|
-
"
|
|
2271
|
-
"messageCard": "Si12YW_messageCard",
|
|
2257
|
+
"messageText": "Si12YW_messageText",
|
|
2258
|
+
"turnSection": "Si12YW_turnSection",
|
|
2272
2259
|
"editor": "Si12YW_editor",
|
|
2260
|
+
"root": "Si12YW_root",
|
|
2261
|
+
"messageTime": "Si12YW_messageTime",
|
|
2262
|
+
"editorHint": "Si12YW_editorHint",
|
|
2273
2263
|
"cascadeField": "Si12YW_cascadeField",
|
|
2274
|
-
"
|
|
2275
|
-
"
|
|
2276
|
-
"
|
|
2277
|
-
"
|
|
2278
|
-
"
|
|
2264
|
+
"columns": "Si12YW_columns",
|
|
2265
|
+
"select": "Si12YW_select",
|
|
2266
|
+
"empty": "Si12YW_empty",
|
|
2267
|
+
"notice": "Si12YW_notice",
|
|
2268
|
+
"versionButton": "Si12YW_versionButton",
|
|
2279
2269
|
"pathBadge": "Si12YW_pathBadge",
|
|
2270
|
+
"effectControls": "Si12YW_effectControls",
|
|
2280
2271
|
"versionLine": "Si12YW_versionLine",
|
|
2281
|
-
"subtitle": "Si12YW_subtitle",
|
|
2282
|
-
"textarea": "Si12YW_textarea",
|
|
2283
|
-
"root": "Si12YW_root",
|
|
2284
|
-
"turnSection": "Si12YW_turnSection",
|
|
2285
|
-
"effectButtons": "Si12YW_effectButtons",
|
|
2286
|
-
"versionDot": "Si12YW_versionDot",
|
|
2287
2272
|
"messageHeader": "Si12YW_messageHeader",
|
|
2288
|
-
"
|
|
2289
|
-
"
|
|
2273
|
+
"messageList": "Si12YW_messageList",
|
|
2274
|
+
"effectButtons": "Si12YW_effectButtons",
|
|
2290
2275
|
"count": "Si12YW_count",
|
|
2291
|
-
"
|
|
2292
|
-
"
|
|
2276
|
+
"textarea": "Si12YW_textarea",
|
|
2277
|
+
"turnPreview": "Si12YW_turnPreview",
|
|
2278
|
+
"error": "Si12YW_error",
|
|
2279
|
+
"secondaryButton": "Si12YW_secondaryButton",
|
|
2293
2280
|
"turnsPanel": "Si12YW_turnsPanel",
|
|
2281
|
+
"sectionHeading": "Si12YW_sectionHeading",
|
|
2294
2282
|
"turnList": "Si12YW_turnList",
|
|
2295
|
-
"
|
|
2296
|
-
"
|
|
2297
|
-
"
|
|
2283
|
+
"versionTitle": "Si12YW_versionTitle",
|
|
2284
|
+
"pageHeader": "Si12YW_pageHeader",
|
|
2285
|
+
"intro": "Si12YW_intro",
|
|
2298
2286
|
"status": "Si12YW_status",
|
|
2287
|
+
"textButton": "Si12YW_textButton",
|
|
2288
|
+
"title": "Si12YW_title",
|
|
2289
|
+
"headerActions": "Si12YW_headerActions",
|
|
2290
|
+
"versionUnavailable": "Si12YW_versionUnavailable",
|
|
2291
|
+
"unavailableBadge": "Si12YW_unavailableBadge",
|
|
2299
2292
|
"versionItem": "Si12YW_versionItem",
|
|
2293
|
+
"turnHeader": "Si12YW_turnHeader",
|
|
2294
|
+
"versionDot": "Si12YW_versionDot",
|
|
2295
|
+
"editorActions": "Si12YW_editorActions",
|
|
2296
|
+
"turnTitle": "Si12YW_turnTitle",
|
|
2297
|
+
"effectDepth": "Si12YW_effectDepth",
|
|
2298
|
+
"kindBadge": "Si12YW_kindBadge",
|
|
2299
|
+
"versionMeta": "Si12YW_versionMeta",
|
|
2300
2300
|
"versionDiff": "Si12YW_versionDiff",
|
|
2301
|
-
"
|
|
2302
|
-
"
|
|
2303
|
-
"
|
|
2304
|
-
"
|
|
2301
|
+
"subtitle": "Si12YW_subtitle",
|
|
2302
|
+
"messageCard": "Si12YW_messageCard",
|
|
2303
|
+
"primaryButton": "Si12YW_primaryButton",
|
|
2304
|
+
"versionsPanel": "Si12YW_versionsPanel"
|
|
2305
2305
|
};
|
|
2306
2306
|
//#endregion
|
|
2307
2307
|
//#region src/client/MessageEditTimelineView.tsx
|