@nomadop/session-watcher-dsh 0.11.0 → 0.11.1

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/README.en.md CHANGED
@@ -18,7 +18,7 @@ dsh plugin --profile web add @nomadop/session-watcher-dsh
18
18
 
19
19
  `dsh web` boots the `web` profile; add the plugin to the profile you run. It needs DSH 0.2.2-rc.1 or later.
20
20
 
21
- The package's bundle also mounts DSH's own `@deepseek-ai/dsh-tool-session-query`, which provides the `session_event_read` tool. DSH's optional Session search bundle registers the same prompt section, so with it switched on, one of the two fails to activate; the [DSH plugin docs](https://nomadop.github.io/session-watcher/docs/dsh/#install) say how to settle it.
21
+ The package registers its own `sw_event_read` tool, which reads one event of a session in the caller's directory back as the verbatim text of its messages, tool calls and tool results; nothing else needs mounting for it. The raw event record stays with DSH's optional native `session_event_read`.
22
22
 
23
23
  An optional pi-ai adapter entry, `@nomadop/session-watcher-dsh/pi-ai`, marks the end of the last inner-compaction carrier for the provider's prompt cache. It is off unless a profile mounts it in place of the Harness's `llm-pi-ai` plugin. It takes no configuration of its own: it reads the turned-off `llm-pi-ai` row's provider dictionary, as the Loader composes it, once at startup, so the dictionary stays in one place and an edit applies at the next start, and Session Watcher's Settings page reports when it cannot use that row. While it is mounted the Models page can neither submit edits to its routes nor declare a custom provider; the [DSH plugin docs](https://nomadop.github.io/session-watcher/docs/dsh/) give the patch layer to use and how to manage the routes then, and `vendor/dsh-llm-pi-ai/UPSTREAM.md` records what it vendors and how to remove it. A profile that holds the activation as an installed bundle, the official `@nomadop/session-watcher-dsh-carrier-cache` (`carrier-cache/` in the repository) or a local `@local/sw-carrier-cache-web`, can switch it from Session Watcher's Settings, owner only, and where neither is installed, the first switching on installs the official one after a confirmation, with a second switch under it for the OpenAI Responses breakpoint, which is off until chosen and which the endpoint may reject, and the monitor's call overview records what the entry did for each summary request; those docs give both.
24
24
 
package/README.md CHANGED
@@ -18,7 +18,7 @@ dsh plugin --profile web add @nomadop/session-watcher-dsh
18
18
 
19
19
  `dsh web` 启动的是 `web` profile;请把插件加到你实际运行的 profile。需要 DSH 0.2.2-rc.1 或更高版本。
20
20
 
21
- 本包的 bundle 还会挂载 DSH 自带的 `@deepseek-ai/dsh-tool-session-query`,它提供 `session_event_read` 工具。DSH 可选的 Session search bundle 注册了同一个 prompt section,两者同时开启时其中一个会激活失败;处理方法见 [DSH 插件文档](https://nomadop.github.io/session-watcher/docs/dsh/#install)。
21
+ 本包自带 `sw_event_read` 工具,把调用方所在目录下某个会话的一个事件中的消息、工具调用与工具结果按原文读回;无需另外挂载。原始事件记录仍由 DSH 可选的原生 `session_event_read` 读取。
22
22
 
23
23
  可选的 pi-ai 适配器入口 `@nomadop/session-watcher-dsh/pi-ai` 会为 provider 的 prompt cache 标记最后一个 inner compaction carrier 的末尾。只有 profile 用它替换 Harness 的 `llm-pi-ai` 插件时才生效。它没有自己的配置:启动时读取一次已关闭的 `llm-pi-ai` 行经 Loader 组合后的 provider 字典,字典因此只维护在一处,修改在下次启动时生效;无法使用该行时,Session Watcher 的设置页会给出提示。挂载期间,模型页既不能提交对其路由的修改,也不能声明自定义 provider;应使用的 patch 层和届时如何管理路由见 [DSH 插件文档](https://nomadop.github.io/session-watcher/docs/dsh/),`vendor/dsh-llm-pi-ai/UPSTREAM.md` 记录了它 vendor 了什么以及如何移除。若 profile 已把这一激活作为已安装的 bundle 持有,即官方的 `@nomadop/session-watcher-dsh-carrier-cache`(仓库中的 `carrier-cache/`)或本地的 `@local/sw-carrier-cache-web`,就可以在 Session Watcher 设置中切换(仅限 owner)。两者都未安装时,首次开启会在确认后安装官方 bundle。该开关之下另有一个 OpenAI Responses 缓存断点开关,开启前保持关闭,端点也可能拒绝它。SW事件(monitor)的调用概览会记录该入口对每次摘要请求做了什么。这两点同样见上述文档。
24
24