dsh-as-aistudio 0.5.24 → 0.6.0
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 +7 -1
- package/README.md +3 -3
- package/cordis.patch.yml +10 -0
- package/package.json +8 -3
- package/src/client.js +2682 -91
- package/src/components.js +34 -3
- package/src/vendor/host/dsh-bare-preset..persona.mjs +46 -0
- package/src/vendor/host/dsh-bare-preset.js +231 -0
- package/src/vendor/host/dsh-bubble-pro.js +34 -0
- package/src/vendor/host/dsh-delete-turn.js +97 -1
- package/src/vendor/host/dsh-delete-turn.logic.js +1 -1
- package/src/vendor/host/dsh-edit-turn.js +2 -2
- package/src/vendor/host/dsh-edit-turn.patch.js +1 -1
- package/src/vendor/host/dsh-fork-anywhere.js +37 -0
- package/src/vendor/host/dsh-markdown-bubble.js +108 -17
- package/src/vendor/host/dsh-rerun-turn.js +2 -2
- package/src/vendor/versions.json +7 -5
package/CHANGELOG.md
CHANGED
|
@@ -4,7 +4,13 @@
|
|
|
4
4
|
|
|
5
5
|
## 中文
|
|
6
6
|
|
|
7
|
-
**0.
|
|
7
|
+
**0.6.0** —— 第 7 个组件:裸模式预设。
|
|
8
|
+
|
|
9
|
+
- 纳入 `dsh-bare-preset`(纯宿主组件,无浏览器半部):vendor 工具支持 `hostOnly`,只抄宿主半部并带版本戳。
|
|
10
|
+
- vendor 时把组件的 `persona.mjs` 一并带入并改写 URL,预设不再指向不存在的文件。
|
|
11
|
+
- 组件版本:edit 0.6.0 / rerun 0.3.0 / delete 0.2.7 / markdown 0.2.0 / trim 0.7.9 / fork 0.1.2 / bare 0.2.0。
|
|
12
|
+
|
|
13
|
+
**0.5.24** —— 跟进 dsh-delete-turn 0.2.5(官方复制出现时,删除入口也出现);新增 `link:local` 本地软链脚本。
|
|
8
14
|
|
|
9
15
|
**0.5.23** —— 跟进 dsh-edit-turn 0.5.24(深色皮肤下编辑器黑底黑字)。
|
|
10
16
|
|
package/README.md
CHANGED
|
@@ -7,9 +7,9 @@
|
|
|
7
7
|
<a href="LICENSE"><img alt="license" src="https://img.shields.io/npm/l/dsh-as-aistudio"></a>
|
|
8
8
|
</p>
|
|
9
9
|
|
|
10
|
-
> ⭐
|
|
10
|
+
> ⭐ **如果这个项目对你有帮助,欢迎点个 Star 支持一下。**
|
|
11
11
|
>
|
|
12
|
-
> ⭐ **If
|
|
12
|
+
> ⭐ **If you find this project useful, a star is appreciated.**
|
|
13
13
|
|
|
14
14
|
**把 DeepSeek Harness 用成 Google AI Studio —— 一轮对话就是一个可以反复打磨的 prompt playground,而且插件列表里只占一行。** 改一句提示词并重跑、原位重跑某条回复、把不该留下的那一轮从模型上下文里删掉、让发出的提示词按 Markdown 渲染。
|
|
15
15
|
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
|
|
24
24
|
AI Studio 的好用之处不在模型,在于一轮对话中的每一步都能回头改。DSH 官方只提供整段压缩(/compact),没有轮次级的编辑、重跑与删除。
|
|
25
25
|
|
|
26
|
-
|
|
26
|
+
六个组件(五个动作 + 一个维护)补上了这一层,而这个包负责让它们装得下、合得来、看得见:
|
|
27
27
|
|
|
28
28
|
- **装得下** —— 自包含安装,一次装完;
|
|
29
29
|
- **合得来** —— 五个组件各自独立、任意子集共存,互操作契约由本包固化并测试;
|
package/cordis.patch.yml
CHANGED
|
@@ -64,3 +64,13 @@
|
|
|
64
64
|
name: 'dsh-as-aistudio/trim'
|
|
65
65
|
config:
|
|
66
66
|
plugin: 'dsh-log-trim'
|
|
67
|
+
- insert:
|
|
68
|
+
- id: dsh-as-aistudio-fork
|
|
69
|
+
name: 'dsh-as-aistudio/fork'
|
|
70
|
+
config:
|
|
71
|
+
plugin: 'dsh-fork-anywhere'
|
|
72
|
+
- insert:
|
|
73
|
+
- id: dsh-as-aistudio-bare
|
|
74
|
+
name: 'dsh-as-aistudio/bare'
|
|
75
|
+
config:
|
|
76
|
+
plugin: 'dsh-bare-preset'
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dsh-as-aistudio",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.6.0",
|
|
4
4
|
"description": "Google-AI-Studio-style turn controls for DeepSeek Harness, in one install: edit a prompt and re-run it, re-run a reply in place, delete a turn from the model context, render sent prompts as Markdown, and trim idle session logs on boot. Self-contained: the plugin list shows this one row, and the five components (four actions + one maintenance) are vendored inside it - installing the studio installs nothing else.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "src/index.js",
|
|
@@ -12,7 +12,9 @@
|
|
|
12
12
|
"./delete": "./src/shell.js",
|
|
13
13
|
"./markdown": "./src/shell.js",
|
|
14
14
|
"./package.json": "./package.json",
|
|
15
|
-
"./trim": "./src/shell.js"
|
|
15
|
+
"./trim": "./src/shell.js",
|
|
16
|
+
"./fork": "./src/shell.js",
|
|
17
|
+
"./bare": "./src/shell.js"
|
|
16
18
|
},
|
|
17
19
|
"files": [
|
|
18
20
|
"src/index.js",
|
|
@@ -54,7 +56,8 @@
|
|
|
54
56
|
"bump": "node tools/bump.mjs",
|
|
55
57
|
"verify:vendor": "node tools/vendor.mjs --check",
|
|
56
58
|
"verify:build": "node tools/build.mjs --check",
|
|
57
|
-
"verify:manifest": "node tools/verify-manifest.mjs"
|
|
59
|
+
"verify:manifest": "node tools/verify-manifest.mjs",
|
|
60
|
+
"link:local": "node tools/link-local.mjs"
|
|
58
61
|
},
|
|
59
62
|
"dependencies": {},
|
|
60
63
|
"dsh": {
|
|
@@ -82,8 +85,10 @@
|
|
|
82
85
|
}
|
|
83
86
|
},
|
|
84
87
|
"devDependencies": {
|
|
88
|
+
"dsh-bare-preset": "^0.1.1",
|
|
85
89
|
"dsh-delete-turn": "^0.1.14",
|
|
86
90
|
"dsh-edit-turn": "^0.5.3",
|
|
91
|
+
"dsh-fork-anywhere": "^0.1.0",
|
|
87
92
|
"dsh-log-trim": "^0.5.0",
|
|
88
93
|
"dsh-markdown-bubble": "^0.1.5",
|
|
89
94
|
"dsh-rerun-turn": "^0.2.4"
|