dsh-as-aistudio 0.5.2 → 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 CHANGED
@@ -4,6 +4,12 @@
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
+
7
13
  **0.5.2** —— 跟进三个动作组件:设置卡片同时挂到包自己的页面。
8
14
 
9
15
  - dsh-edit-turn 0.5.15 / dsh-rerun-turn 0.2.8 / dsh-delete-turn 0.2.1:新增 `plugins.bundle.config`(key 是裸包名),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dsh-as-aistudio",
3
- "version": "0.5.2",
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.15'
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 component row's configure page (`plugins.row.config`), the same slot
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,16 +5477,6 @@ window.__ModuleLoader__.load({
5477
5477
  ),
5478
5478
  )
5479
5479
 
5480
- ctx.slots.inject('plugins.row.config', () =>
5481
- ctx.slots.register(
5482
- {
5483
- name: 'plugins.row.config',
5484
- key: 'dsh-edit-turn#dsh-edit-turn',
5485
- locale: NS,
5486
- },
5487
- EditorStyleOption,
5488
- ),
5489
- )
5490
5480
 
5491
5481
  // 同一张卡也挂在包自己的页面上(`#/panel/plugins/dsh-edit-turn`),
5492
5482
  // 而不是只藏在 `…/dsh-edit-turn/dsh-edit-turn` 那一层。
@@ -5540,7 +5530,7 @@ window.__ModuleLoader__.load({
5540
5530
  const ROUTE_PREFIX = '/dsh-rerun-turn'
5541
5531
 
5542
5532
  /** Keep in sync with package.json and lib/index.js. */
5543
- const PLUGIN_VERSION = '0.2.8'
5533
+ const PLUGIN_VERSION = '0.2.9'
5544
5534
 
5545
5535
  // --- copy -----------------------------------------------------------------
5546
5536
 
@@ -7030,19 +7020,6 @@ window.__ModuleLoader__.load({
7030
7020
  ),
7031
7021
  )
7032
7022
 
7033
- // The plugin's own page in the manager. The key is the manager's
7034
- // `<bundle package>#<row id>` contract (the row this bundle inserts in
7035
- // cordis.patch.yml), exactly as the sibling plugins declare it.
7036
- ctx.slots.inject('plugins.row.config', () =>
7037
- ctx.slots.register(
7038
- {
7039
- name: 'plugins.row.config',
7040
- key: 'dsh-rerun-turn#dsh-rerun-turn',
7041
- locale: NS,
7042
- },
7043
- AskBeforeRerunOption,
7044
- ),
7045
- )
7046
7023
 
7047
7024
  // 同一张卡也挂在包自己的页面上(`#/panel/plugins/dsh-rerun-turn`),
7048
7025
  // 而不是只藏在 `…/dsh-rerun-turn/dsh-rerun-turn` 那一层。
@@ -8508,7 +8485,7 @@ window.__ModuleLoader__.load({
8508
8485
  }
8509
8486
 
8510
8487
  // The plugin page entry (the component row's "configure" arrow, slot
8511
- // `plugins.row.config`, key `<bundle>#<row id>`). It renders the row's
8488
+ // `plugins.bundle.config`, key `<bundle>`). It renders the bundle page's
8512
8489
  // one-liner for the manager's summary slot and the toggle card for the page.
8513
8490
  function AskBeforeDeleteOption({ view, t }) {
8514
8491
  const tr = typeof t === 'function' ? t : (key) => key
@@ -8641,20 +8618,6 @@ window.__ModuleLoader__.load({
8641
8618
  ),
8642
8619
  )
8643
8620
 
8644
- // The plugin's own page in the manager: the row this bundle inserts
8645
- // (`cordis.patch.yml`, id `dsh-delete-turn`) gains a configure arrow that
8646
- // opens this card. The key is `<bundle package>#<row id>`, the contract of
8647
- // ui-plugin-manager's rowConfigKey.
8648
- ctx.slots.inject('plugins.row.config', () =>
8649
- ctx.slots.register(
8650
- {
8651
- name: 'plugins.row.config',
8652
- key: 'dsh-delete-turn#dsh-delete-turn',
8653
- locale: NS,
8654
- },
8655
- AskBeforeDeleteOption,
8656
- ),
8657
- )
8658
8621
 
8659
8622
  // 同一张卡也挂在包自己的页面上(`#/panel/plugins/dsh-delete-turn`),
8660
8623
  // 而不是只藏在 `…/dsh-delete-turn/dsh-delete-turn` 那一层。
@@ -9614,7 +9577,7 @@ window.__ModuleLoader__.load({
9614
9577
  const react = require('react')
9615
9578
  const { jsx, jsxs } = require('react/jsx-runtime')
9616
9579
 
9617
- const PLUGIN_VERSION = '0.5.1'
9580
+ const PLUGIN_VERSION = '0.5.2'
9618
9581
  const ROUTE_PREFIX = '/api/dsh-log-trim'
9619
9582
 
9620
9583
  /** The knobs this card edits, in the order they are drawn. */
@@ -10091,8 +10054,6 @@ window.__ModuleLoader__.load({
10091
10054
  function apply(ctx) {
10092
10055
  const render = (slotProps) =>
10093
10056
  slotProps && slotProps.view === 'summary' ? summaryText() : jsx(CompactCard, { page: true })
10094
- ctx.slots.inject('plugins.row.config', () =>
10095
- ctx.slots.register({ name: 'plugins.row.config', key: 'dsh-log-trim#dsh-log-trim' }, render))
10096
10057
  ctx.slots.inject('plugins.bundle.config', () =>
10097
10058
  ctx.slots.register({ name: 'plugins.bundle.config', key: 'dsh-log-trim' }, render))
10098
10059
  }
@@ -10121,7 +10082,7 @@ window.__ModuleLoader__.load({
10121
10082
  const NS = 'dsh-as-aistudio'
10122
10083
 
10123
10084
  /** Keep in sync with package.json and src/components.js. */
10124
- const PLUGIN_VERSION = '0.5.2'
10085
+ const PLUGIN_VERSION = '0.5.3'
10125
10086
 
10126
10087
  /** Presence marker the live verifier reads. */
10127
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.2'
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.1, sha256 5dfc53e5c47750f5)
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.1, sha256 6da16435446356ca)
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.15, sha256 c743b82073d1ca1a)
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.15'
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.15, sha256 5e1e8cce1d168f6c)
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.1, sha256 3aa1fdcbb120ab06)
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.1, sha256 5ebed01988b5bfcf)
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.1, sha256 bd4d3c438d7c00ba)
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.1'
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.1, sha256 adf9bf5d79aa41b0)
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.1, sha256 028d9c12a395aaab)
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.1, sha256 2c1c819e732c9649)
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.1, sha256 6a0527e8483fb252)
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.8, sha256 9490939d26c589e3)
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.8'
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
@@ -1,7 +1,7 @@
1
1
  {
2
- "dsh-edit-turn": "0.5.15",
3
- "dsh-rerun-turn": "0.2.8",
4
- "dsh-delete-turn": "0.2.1",
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.1"
6
+ "dsh-log-trim": "0.5.2"
7
7
  }