dsh-as-aistudio 0.5.4 → 0.5.6
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
|
@@ -4,6 +4,16 @@
|
|
|
4
4
|
|
|
5
5
|
## 中文
|
|
6
6
|
|
|
7
|
+
**0.5.6** —— 组件设置里补上「会话日志裁剪」的卡片。
|
|
8
|
+
|
|
9
|
+
- `CONFIG_CARDS` 之前只列了 edit / rerun / delete,log-trim 的 `ConfigCard` 虽然已导出却没被渲染,
|
|
10
|
+
于是 studio 页面上没有裁剪设置。现在它作为第四张卡片出现(窗口/清流/折叠/清理已遮蔽、
|
|
11
|
+
阈值、备份、`/ledger` 统计开关都在里面)。
|
|
12
|
+
|
|
13
|
+
**0.5.5** —— 跟进 dsh-delete-turn 0.2.3(多选工具条重排)。
|
|
14
|
+
|
|
15
|
+
- 内嵌 delete 半部更新:多选条从输入框正中挪到上方右侧、体量缩小。
|
|
16
|
+
|
|
7
17
|
**0.5.4** —— 跟进 dsh-log-trim 0.6.0(裁剪统计账本)。
|
|
8
18
|
|
|
9
19
|
- 内嵌的 log-trim 升到 0.6.0:每次改写记一笔窗口/事件/字节账,写在 `~/.dsh/dsh-log-trim/ledger.json`,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dsh-as-aistudio",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.6",
|
|
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, and render sent prompts as Markdown. Self-contained: the plugin list shows this one row, and the four components are vendored inside it - installing the studio installs nothing else.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "src/index.js",
|
package/src/client.js
CHANGED
|
@@ -7273,8 +7273,8 @@ window.__ModuleLoader__.load({
|
|
|
7273
7273
|
'.dshdt-header-select:disabled{color:var(--dsw-alias-label-dimmed,#9aa0aa);cursor:wait}',
|
|
7274
7274
|
'.dshdt-header-select svg{flex:none}',
|
|
7275
7275
|
'.dshdt-header-select-on{color:var(--dsw-alias-button-primary-fill,#4d6bfe);border-color:var(--dsw-alias-button-primary-fill,#4d6bfe);background:var(--dsw-alias-button-primary-ghost-fill,rgba(77,107,254,.08))}',
|
|
7276
|
-
'.dshdt-selectbar{position:fixed;
|
|
7277
|
-
'.dshdt-selectbar-count{
|
|
7276
|
+
'.dshdt-selectbar{position:fixed;right:24px;bottom:150px;z-index:60;display:flex;align-items:center;gap:8px;padding:5px 10px;border-radius:999px;background:var(--dsw-alias-bg-elevated,#fff);color:var(--dsw-alias-label-primary,inherit);border:1px solid var(--dsw-alias-border-secondary,rgba(127,127,127,.2));box-shadow:0 4px 14px rgba(0,0,0,.12);font-size:12px}',
|
|
7277
|
+
'.dshdt-selectbar-count{color:var(--dsw-alias-label-secondary,#5c6270);font-size:12px;white-space:nowrap}',
|
|
7278
7278
|
'.dshdt-dialog-text{margin:0;color:var(--dsw-alias-label-primary,inherit);font-size:14px;line-height:22px}',
|
|
7279
7279
|
'.dshdt-dialog-note{margin:10px 0 0;color:var(--dsw-alias-label-tertiary,#8a8f98);font-size:13px;line-height:20px}',
|
|
7280
7280
|
'.dshdt-dialog-warn{margin:10px 0 0;color:var(--dsw-alias-state-warn-primary,#a15c00);font-size:13px;line-height:20px}',
|
|
@@ -8410,14 +8410,14 @@ window.__ModuleLoader__.load({
|
|
|
8410
8410
|
}),
|
|
8411
8411
|
jsx(primitives.Button, {
|
|
8412
8412
|
variant: 'ghost',
|
|
8413
|
-
size: '
|
|
8413
|
+
size: 'sm',
|
|
8414
8414
|
disabled: view.pending,
|
|
8415
8415
|
onClick: () => controller.setSelecting(false),
|
|
8416
8416
|
children: t('select.cancel'),
|
|
8417
8417
|
}),
|
|
8418
8418
|
jsx(primitives.Button, {
|
|
8419
8419
|
variant: 'primary',
|
|
8420
|
-
size: '
|
|
8420
|
+
size: 'sm',
|
|
8421
8421
|
className: 'dshdt-danger',
|
|
8422
8422
|
disabled: view.pending || count === 0,
|
|
8423
8423
|
onClick: () => controller.requestBatch(),
|
|
@@ -8605,6 +8605,7 @@ window.__ModuleLoader__.load({
|
|
|
8605
8605
|
),
|
|
8606
8606
|
)
|
|
8607
8607
|
|
|
8608
|
+
|
|
8608
8609
|
ctx.slots.inject('conversation.input.overlay', () =>
|
|
8609
8610
|
ctx.slots.register(
|
|
8610
8611
|
{
|
|
@@ -10088,7 +10089,7 @@ window.__ModuleLoader__.load({
|
|
|
10088
10089
|
const NS = 'dsh-as-aistudio'
|
|
10089
10090
|
|
|
10090
10091
|
/** Keep in sync with package.json and src/components.js. */
|
|
10091
|
-
const PLUGIN_VERSION = '0.5.
|
|
10092
|
+
const PLUGIN_VERSION = '0.5.6'
|
|
10092
10093
|
|
|
10093
10094
|
/** Presence marker the live verifier reads. */
|
|
10094
10095
|
const DEBUG_KEY = '__DSH_AS_AISTUDIO__'
|
|
@@ -10114,6 +10115,7 @@ window.__ModuleLoader__.load({
|
|
|
10114
10115
|
{ id: 'dsh-edit-turn', title: { zh: '编辑与重跑', en: 'Edit and re-run' } },
|
|
10115
10116
|
{ id: 'dsh-rerun-turn', title: { zh: '重跑', en: 'Re-run' } },
|
|
10116
10117
|
{ id: 'dsh-delete-turn', title: { zh: '删除', en: 'Delete' } },
|
|
10118
|
+
{ id: 'dsh-log-trim', title: { zh: '会话日志裁剪', en: 'Session log trim' } },
|
|
10117
10119
|
]
|
|
10118
10120
|
|
|
10119
10121
|
const h = react.createElement
|
package/src/components.js
CHANGED
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
export const STUDIO_ID = 'dsh-as-aistudio'
|
|
27
27
|
|
|
28
28
|
/** Keep in sync with package.json and src/client.js. */
|
|
29
|
-
export const STUDIO_VERSION = '0.5.
|
|
29
|
+
export const STUDIO_VERSION = '0.5.6'
|
|
30
30
|
|
|
31
31
|
/**
|
|
32
32
|
* The AI Studio action strip this studio composes, in the order the user meets
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// dsh-delete-turn host half (dsh-delete-turn.js), VENDORED by tools/vendor.mjs - DO NOT EDIT.
|
|
2
2
|
//
|
|
3
|
-
// Source: ../dsh-delete-turn/src/index.js (v0.2.
|
|
3
|
+
// Source: ../dsh-delete-turn/src/index.js (v0.2.3, sha256 5dfc53e5c47750f5)
|
|
4
4
|
// Regenerate with `npm run vendor`; test/sync.test.js fails when this is stale.
|
|
5
5
|
//
|
|
6
6
|
// src/shell.js imports the copy named after the component, which is why the
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// dsh-delete-turn host half (dsh-delete-turn.logic.js), VENDORED by tools/vendor.mjs - DO NOT EDIT.
|
|
2
2
|
//
|
|
3
|
-
// Source: ../dsh-delete-turn/src/logic.js (v0.2.
|
|
3
|
+
// Source: ../dsh-delete-turn/src/logic.js (v0.2.3, sha256 6da16435446356ca)
|
|
4
4
|
// Regenerate with `npm run vendor`; test/sync.test.js fails when this is stale.
|
|
5
5
|
//
|
|
6
6
|
// src/shell.js imports the copy named after the component, which is why the
|