dsh-as-aistudio 0.4.6 → 0.4.7

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.4.7** —— 打开着的会话不再重新解码整份日志(跟进 `dsh-edit-turn` 0.5.13)。
8
+
9
+ - **组件跟进**:`dsh-edit-turn` **0.5.13**、`dsh-rerun-turn` 0.2.6、`dsh-delete-turn` 0.1.15、`dsh-markdown-bubble` 0.1.5。
10
+
11
+ - 单独计时后:插件的全部计算只有几十毫秒,**读日志 + 解压 1,408 ms** 才是瓶颈。现在宿主已经打开的会话直接用内存快照,不再从磁盘重解一遍 —— 编辑笔的出现从"秒级"降到"几十毫秒级"。
12
+
7
13
  **0.4.6** —— 复制已修好,临时诊断撤掉;`/state` 再快一档。
8
14
 
9
15
  - **组件跟进**:`dsh-edit-turn` **0.5.12**、`dsh-rerun-turn` 0.2.6、`dsh-delete-turn` 0.1.15、`dsh-markdown-bubble` 0.1.5。
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dsh-as-aistudio",
3
- "version": "0.4.6",
3
+ "version": "0.4.7",
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.12'
46
+ const PLUGIN_VERSION = '0.5.13'
47
47
 
48
48
  // --- copy -----------------------------------------------------------------
49
49
 
@@ -9197,7 +9197,7 @@ window.__ModuleLoader__.load({
9197
9197
  const NS = 'dsh-as-aistudio'
9198
9198
 
9199
9199
  /** Keep in sync with package.json and src/components.js. */
9200
- const PLUGIN_VERSION = '0.4.6'
9200
+ const PLUGIN_VERSION = '0.4.7'
9201
9201
 
9202
9202
  /** Presence marker the live verifier reads. */
9203
9203
  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.4.6'
29
+ export const STUDIO_VERSION = '0.4.7'
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-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.12, sha256 6adfd5b9699657d5)
3
+ // Source: ../dsh-edit-turn/lib/index.js (v0.5.13, sha256 85d229824536a84b)
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.12'
88
+ export const PLUGIN_VERSION = '0.5.13'
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
@@ -1491,6 +1491,13 @@ function eventsFromLive(session) {
1491
1491
  // Live-preferred read through the public query service; the live session's own
1492
1492
  // snapshot is the fallback when the service is absent.
1493
1493
  async function readEvents(ctx, sessionId) {
1494
+ // A session the host has open answers from memory. Going through the query
1495
+ // service instead makes the route re-decode the whole log from disk first:
1496
+ // measured 1.4 s for a 15 MB log, while every computation this route does on
1497
+ // top of it adds up to a few tens of milliseconds. That read was the entire
1498
+ // reason the edit entry took seconds to appear.
1499
+ const live = eventsFromLive(findLiveSession(ctx, sessionId))
1500
+ if (live !== undefined && live.length > 0) return live
1494
1501
  const query = ctx.get('sessionQuery')
1495
1502
  if (query && typeof query.readSession === 'function') {
1496
1503
  try {
@@ -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.12, sha256 5e1e8cce1d168f6c)
3
+ // Source: ../dsh-edit-turn/lib/patch.js (v0.5.13, 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,5 +1,5 @@
1
1
  {
2
- "dsh-edit-turn": "0.5.12",
2
+ "dsh-edit-turn": "0.5.13",
3
3
  "dsh-rerun-turn": "0.2.6",
4
4
  "dsh-delete-turn": "0.1.15",
5
5
  "dsh-markdown-bubble": "0.1.5"