dsh-as-aistudio 0.5.1 → 0.5.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 +12 -0
- package/package.json +1 -1
- package/src/client.js +24 -24
- package/src/components.js +1 -1
- package/src/vendor/host/dsh-delete-turn.js +1 -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-log-trim.flatten.js +1 -1
- package/src/vendor/host/dsh-log-trim.host-libs.mjs +1 -1
- package/src/vendor/host/dsh-log-trim.js +2 -2
- package/src/vendor/host/dsh-log-trim.lossless.js +1 -1
- package/src/vendor/host/dsh-log-trim.roots.js +1 -1
- package/src/vendor/host/dsh-log-trim.vendor.compact-session.mjs +1 -1
- package/src/vendor/host/dsh-log-trim.verify-session-log.mjs +1 -1
- package/src/vendor/host/dsh-rerun-turn.js +2 -2
- package/src/vendor/versions.json +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,18 @@
|
|
|
4
4
|
|
|
5
5
|
## 中文
|
|
6
6
|
|
|
7
|
+
**0.5.3** —— 跟进四个组件:设置卡只挂在包自己的页面上。
|
|
8
|
+
|
|
9
|
+
- edit 0.5.16 / rerun 0.2.9 / delete 0.2.2 / log-trim 0.5.2:去掉 `plugins.row.config`,只保留 `plugins.bundle.config`。
|
|
10
|
+
于是 `#/panel/plugins/<包名>` 直接看到设置,行上不再有「配置」按钮,也没有两份入口。
|
|
11
|
+
- 契约表随之减少三条 `plugins.row.config` 记录。
|
|
12
|
+
|
|
13
|
+
**0.5.2** —— 跟进三个动作组件:设置卡片同时挂到包自己的页面。
|
|
14
|
+
|
|
15
|
+
- dsh-edit-turn 0.5.15 / dsh-rerun-turn 0.2.8 / dsh-delete-turn 0.2.1:新增 `plugins.bundle.config`(key 是裸包名),
|
|
16
|
+
于是 `#/panel/plugins/<包名>` 直接能看到设置,不再只能从 `…/<包名>/<包名>` 那一层进去。
|
|
17
|
+
- 内嵌浏览器半部随重新 vendor 更新。
|
|
18
|
+
|
|
7
19
|
**0.5.1** —— 组件行标出「动作 / 维护」;跟进内嵌组件。
|
|
8
20
|
|
|
9
21
|
- 面板里每个组件行在名字后多一个徽章:`动作`(edit/rerun/delete/markdown)或 `维护`(log-trim)。
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dsh-as-aistudio",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.3",
|
|
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
|
@@ -43,7 +43,7 @@ window.__ModuleLoader__.load({
|
|
|
43
43
|
const RERUN_PREFIX = '/dsh-rerun-turn'
|
|
44
44
|
|
|
45
45
|
/** Keep in sync with package.json and lib/index.js. */
|
|
46
|
-
const PLUGIN_VERSION = '0.5.
|
|
46
|
+
const PLUGIN_VERSION = '0.5.16'
|
|
47
47
|
|
|
48
48
|
// --- copy -----------------------------------------------------------------
|
|
49
49
|
|
|
@@ -5302,7 +5302,7 @@ window.__ModuleLoader__.load({
|
|
|
5302
5302
|
}
|
|
5303
5303
|
|
|
5304
5304
|
/**
|
|
5305
|
-
* The
|
|
5305
|
+
* The package page's configure slot (`plugins.bundle.config`), the same slot
|
|
5306
5306
|
* dsh-delete-turn uses. The manager's summary asks for a one-liner; the page
|
|
5307
5307
|
* itself renders the three-way picker.
|
|
5308
5308
|
*/
|
|
@@ -5477,11 +5477,14 @@ window.__ModuleLoader__.load({
|
|
|
5477
5477
|
),
|
|
5478
5478
|
)
|
|
5479
5479
|
|
|
5480
|
-
|
|
5480
|
+
|
|
5481
|
+
// 同一张卡也挂在包自己的页面上(`#/panel/plugins/dsh-edit-turn`),
|
|
5482
|
+
// 而不是只藏在 `…/dsh-edit-turn/dsh-edit-turn` 那一层。
|
|
5483
|
+
ctx.slots.inject('plugins.bundle.config', () =>
|
|
5481
5484
|
ctx.slots.register(
|
|
5482
5485
|
{
|
|
5483
|
-
name: 'plugins.
|
|
5484
|
-
key: 'dsh-edit-turn
|
|
5486
|
+
name: 'plugins.bundle.config',
|
|
5487
|
+
key: 'dsh-edit-turn',
|
|
5485
5488
|
locale: NS,
|
|
5486
5489
|
},
|
|
5487
5490
|
EditorStyleOption,
|
|
@@ -5527,7 +5530,7 @@ window.__ModuleLoader__.load({
|
|
|
5527
5530
|
const ROUTE_PREFIX = '/dsh-rerun-turn'
|
|
5528
5531
|
|
|
5529
5532
|
/** Keep in sync with package.json and lib/index.js. */
|
|
5530
|
-
const PLUGIN_VERSION = '0.2.
|
|
5533
|
+
const PLUGIN_VERSION = '0.2.9'
|
|
5531
5534
|
|
|
5532
5535
|
// --- copy -----------------------------------------------------------------
|
|
5533
5536
|
|
|
@@ -7017,14 +7020,14 @@ window.__ModuleLoader__.load({
|
|
|
7017
7020
|
),
|
|
7018
7021
|
)
|
|
7019
7022
|
|
|
7020
|
-
|
|
7021
|
-
//
|
|
7022
|
-
//
|
|
7023
|
-
ctx.slots.inject('plugins.
|
|
7023
|
+
|
|
7024
|
+
// 同一张卡也挂在包自己的页面上(`#/panel/plugins/dsh-rerun-turn`),
|
|
7025
|
+
// 而不是只藏在 `…/dsh-rerun-turn/dsh-rerun-turn` 那一层。
|
|
7026
|
+
ctx.slots.inject('plugins.bundle.config', () =>
|
|
7024
7027
|
ctx.slots.register(
|
|
7025
7028
|
{
|
|
7026
|
-
name: 'plugins.
|
|
7027
|
-
key: 'dsh-rerun-turn
|
|
7029
|
+
name: 'plugins.bundle.config',
|
|
7030
|
+
key: 'dsh-rerun-turn',
|
|
7028
7031
|
locale: NS,
|
|
7029
7032
|
},
|
|
7030
7033
|
AskBeforeRerunOption,
|
|
@@ -8482,7 +8485,7 @@ window.__ModuleLoader__.load({
|
|
|
8482
8485
|
}
|
|
8483
8486
|
|
|
8484
8487
|
// The plugin page entry (the component row's "configure" arrow, slot
|
|
8485
|
-
// `plugins.
|
|
8488
|
+
// `plugins.bundle.config`, key `<bundle>`). It renders the bundle page's
|
|
8486
8489
|
// one-liner for the manager's summary slot and the toggle card for the page.
|
|
8487
8490
|
function AskBeforeDeleteOption({ view, t }) {
|
|
8488
8491
|
const tr = typeof t === 'function' ? t : (key) => key
|
|
@@ -8615,15 +8618,14 @@ window.__ModuleLoader__.load({
|
|
|
8615
8618
|
),
|
|
8616
8619
|
)
|
|
8617
8620
|
|
|
8618
|
-
|
|
8619
|
-
//
|
|
8620
|
-
//
|
|
8621
|
-
|
|
8622
|
-
ctx.slots.inject('plugins.row.config', () =>
|
|
8621
|
+
|
|
8622
|
+
// 同一张卡也挂在包自己的页面上(`#/panel/plugins/dsh-delete-turn`),
|
|
8623
|
+
// 而不是只藏在 `…/dsh-delete-turn/dsh-delete-turn` 那一层。
|
|
8624
|
+
ctx.slots.inject('plugins.bundle.config', () =>
|
|
8623
8625
|
ctx.slots.register(
|
|
8624
8626
|
{
|
|
8625
|
-
name: 'plugins.
|
|
8626
|
-
key: 'dsh-delete-turn
|
|
8627
|
+
name: 'plugins.bundle.config',
|
|
8628
|
+
key: 'dsh-delete-turn',
|
|
8627
8629
|
locale: NS,
|
|
8628
8630
|
},
|
|
8629
8631
|
AskBeforeDeleteOption,
|
|
@@ -9575,7 +9577,7 @@ window.__ModuleLoader__.load({
|
|
|
9575
9577
|
const react = require('react')
|
|
9576
9578
|
const { jsx, jsxs } = require('react/jsx-runtime')
|
|
9577
9579
|
|
|
9578
|
-
const PLUGIN_VERSION = '0.5.
|
|
9580
|
+
const PLUGIN_VERSION = '0.5.2'
|
|
9579
9581
|
const ROUTE_PREFIX = '/api/dsh-log-trim'
|
|
9580
9582
|
|
|
9581
9583
|
/** The knobs this card edits, in the order they are drawn. */
|
|
@@ -10052,8 +10054,6 @@ window.__ModuleLoader__.load({
|
|
|
10052
10054
|
function apply(ctx) {
|
|
10053
10055
|
const render = (slotProps) =>
|
|
10054
10056
|
slotProps && slotProps.view === 'summary' ? summaryText() : jsx(CompactCard, { page: true })
|
|
10055
|
-
ctx.slots.inject('plugins.row.config', () =>
|
|
10056
|
-
ctx.slots.register({ name: 'plugins.row.config', key: 'dsh-log-trim#dsh-log-trim' }, render))
|
|
10057
10057
|
ctx.slots.inject('plugins.bundle.config', () =>
|
|
10058
10058
|
ctx.slots.register({ name: 'plugins.bundle.config', key: 'dsh-log-trim' }, render))
|
|
10059
10059
|
}
|
|
@@ -10082,7 +10082,7 @@ window.__ModuleLoader__.load({
|
|
|
10082
10082
|
const NS = 'dsh-as-aistudio'
|
|
10083
10083
|
|
|
10084
10084
|
/** Keep in sync with package.json and src/components.js. */
|
|
10085
|
-
const PLUGIN_VERSION = '0.5.
|
|
10085
|
+
const PLUGIN_VERSION = '0.5.3'
|
|
10086
10086
|
|
|
10087
10087
|
/** Presence marker the live verifier reads. */
|
|
10088
10088
|
const DEBUG_KEY = '__DSH_AS_AISTUDIO__'
|
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.3'
|
|
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.2, 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.2, 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
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// dsh-edit-turn host half (dsh-edit-turn.js), VENDORED by tools/vendor.mjs - DO NOT EDIT.
|
|
2
2
|
//
|
|
3
|
-
// Source: ../dsh-edit-turn/lib/index.js (v0.5.
|
|
3
|
+
// Source: ../dsh-edit-turn/lib/index.js (v0.5.16, sha256 3b2f76b4ef352e73)
|
|
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
|
|
@@ -85,7 +85,7 @@ export const PLUGIN_ID = 'dsh-edit-turn'
|
|
|
85
85
|
export const name = PLUGIN_ID
|
|
86
86
|
|
|
87
87
|
/** Keep in sync with package.json and lib/client.js. */
|
|
88
|
-
export const PLUGIN_VERSION = '0.5.
|
|
88
|
+
export const PLUGIN_VERSION = '0.5.16'
|
|
89
89
|
|
|
90
90
|
// A ring of the last few requests, answering "did the browser half even ask, and
|
|
91
91
|
// what did it get?" without needing its console. Read-only diagnostics: the
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// dsh-edit-turn host half (dsh-edit-turn.patch.js), VENDORED by tools/vendor.mjs - DO NOT EDIT.
|
|
2
2
|
//
|
|
3
|
-
// Source: ../dsh-edit-turn/lib/patch.js (v0.5.
|
|
3
|
+
// Source: ../dsh-edit-turn/lib/patch.js (v0.5.16, sha256 5e1e8cce1d168f6c)
|
|
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-log-trim host half (dsh-log-trim.flatten.js), VENDORED by tools/vendor.mjs - DO NOT EDIT.
|
|
2
2
|
//
|
|
3
|
-
// Source: ../dsh-log-trim/lib/flatten.js (v0.5.
|
|
3
|
+
// Source: ../dsh-log-trim/lib/flatten.js (v0.5.2, sha256 3aa1fdcbb120ab06)
|
|
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-log-trim host half (dsh-log-trim.host-libs.mjs), VENDORED by tools/vendor.mjs - DO NOT EDIT.
|
|
2
2
|
//
|
|
3
|
-
// Source: ../dsh-log-trim/lib/host-libs.mjs (v0.5.
|
|
3
|
+
// Source: ../dsh-log-trim/lib/host-libs.mjs (v0.5.2, sha256 5ebed01988b5bfcf)
|
|
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-log-trim host half (dsh-log-trim.js), VENDORED by tools/vendor.mjs - DO NOT EDIT.
|
|
2
2
|
//
|
|
3
|
-
// Source: ../dsh-log-trim/lib/index.js (v0.5.
|
|
3
|
+
// Source: ../dsh-log-trim/lib/index.js (v0.5.2, sha256 00bb7354aa5fb45d)
|
|
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
|
|
@@ -42,7 +42,7 @@ import { applyFlatten, applyLossless, applyStreamOnly, planLossless, applyRebuil
|
|
|
42
42
|
|
|
43
43
|
export const name = 'dsh-log-trim'
|
|
44
44
|
export const PLUGIN_ID = name
|
|
45
|
-
export const PLUGIN_VERSION = '0.5.
|
|
45
|
+
export const PLUGIN_VERSION = '0.5.2'
|
|
46
46
|
export const ROUTE_PREFIX = '/api/dsh-log-trim'
|
|
47
47
|
|
|
48
48
|
/**
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// dsh-log-trim host half (dsh-log-trim.lossless.js), VENDORED by tools/vendor.mjs - DO NOT EDIT.
|
|
2
2
|
//
|
|
3
|
-
// Source: ../dsh-log-trim/lib/lossless.js (v0.5.
|
|
3
|
+
// Source: ../dsh-log-trim/lib/lossless.js (v0.5.2, sha256 adf9bf5d79aa41b0)
|
|
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-log-trim host half (dsh-log-trim.roots.js), VENDORED by tools/vendor.mjs - DO NOT EDIT.
|
|
2
2
|
//
|
|
3
|
-
// Source: ../dsh-log-trim/lib/roots.js (v0.5.
|
|
3
|
+
// Source: ../dsh-log-trim/lib/roots.js (v0.5.2, sha256 028d9c12a395aaab)
|
|
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-log-trim host half (dsh-log-trim.vendor.compact-session.mjs), VENDORED by tools/vendor.mjs - DO NOT EDIT.
|
|
2
2
|
//
|
|
3
|
-
// Source: ../dsh-log-trim/lib/vendor.compact-session.mjs (v0.5.
|
|
3
|
+
// Source: ../dsh-log-trim/lib/vendor.compact-session.mjs (v0.5.2, sha256 2c1c819e732c9649)
|
|
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-log-trim host half (dsh-log-trim.verify-session-log.mjs), VENDORED by tools/vendor.mjs - DO NOT EDIT.
|
|
2
2
|
//
|
|
3
|
-
// Source: ../dsh-log-trim/lib/verify-session-log.mjs (v0.5.
|
|
3
|
+
// Source: ../dsh-log-trim/lib/verify-session-log.mjs (v0.5.2, sha256 6a0527e8483fb252)
|
|
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-rerun-turn host half (dsh-rerun-turn.js), VENDORED by tools/vendor.mjs - DO NOT EDIT.
|
|
2
2
|
//
|
|
3
|
-
// Source: ../dsh-rerun-turn/lib/index.js (v0.2.
|
|
3
|
+
// Source: ../dsh-rerun-turn/lib/index.js (v0.2.9, sha256 60fce2958ddc3d13)
|
|
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
|
|
@@ -90,7 +90,7 @@ export const PLUGIN_ID = 'dsh-rerun-turn'
|
|
|
90
90
|
export const name = PLUGIN_ID
|
|
91
91
|
|
|
92
92
|
/** Keep in sync with package.json and lib/client.js. */
|
|
93
|
-
export const PLUGIN_VERSION = '0.2.
|
|
93
|
+
export const PLUGIN_VERSION = '0.2.9'
|
|
94
94
|
|
|
95
95
|
const ROUTE_PREFIX = '/dsh-rerun-turn'
|
|
96
96
|
// A session id is an OPAQUE string to DSH: the host's own schema is
|
package/src/vendor/versions.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
|
-
"dsh-edit-turn": "0.5.
|
|
3
|
-
"dsh-rerun-turn": "0.2.
|
|
4
|
-
"dsh-delete-turn": "0.2.
|
|
2
|
+
"dsh-edit-turn": "0.5.16",
|
|
3
|
+
"dsh-rerun-turn": "0.2.9",
|
|
4
|
+
"dsh-delete-turn": "0.2.2",
|
|
5
5
|
"dsh-markdown-bubble": "0.1.5",
|
|
6
|
-
"dsh-log-trim": "0.5.
|
|
6
|
+
"dsh-log-trim": "0.5.2"
|
|
7
7
|
}
|