@deepseek-ai/dsh-tool-session-query 0.2.0-rc.2 → 0.2.1-alpha.2

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.i18n.yaml CHANGED
@@ -1,16 +1,16 @@
1
1
  # Bilingual-pair consistency record for README.md (docs/i18n/README.md): per heading
2
2
  # section, a hash of its English and Chinese blocks outside code blocks and generated regions.
3
3
  # After editing either side, bring the other along and re-record with:
4
- # pnpm run verify-translation-pairing --write packages/session-query/tool-session-query/README.md
4
+ # pnpm run verify-translation-pairing --write packages/experimental/tool-session-query/README.md
5
5
  /:
6
6
  en: f6e08c67514237ad
7
7
  zh: cfcb09b6263a9b00
8
8
  /deepseek-ai-dsh-tool-session-query:
9
- en: e54233a0061ef78e
10
- zh: b4569dd1d15f313b
9
+ en: b5808fddb3f84df3
10
+ zh: becb2efb056e9db9
11
11
  /deepseek-ai-dsh-tool-session-query/summary:
12
- en: d66e5b7500572fc2
13
- zh: 961ae6f7b640c3dc
12
+ en: 8f37f26ebcb6c746
13
+ zh: 63f2a7f393822280
14
14
  /deepseek-ai-dsh-tool-session-query/table-of-contents:
15
15
  en: d152484eb41ac6b4
16
16
  zh: 09388d293f9be9cb
@@ -93,5 +93,5 @@
93
93
  en: d2f0d68fe29fb750
94
94
  zh: 323d21ee73a9e3f6
95
95
  /deepseek-ai-dsh-tool-session-query/known-limitations-and-deferred-work/dev-note/future-broader-workspace-semantics:
96
- en: 540af3b250d4486d
97
- zh: 5eae2bc1644b92b5
96
+ en: 10cb8ae346c8183f
97
+ zh: d37674a97b5f99d5
package/README.md CHANGED
@@ -9,7 +9,7 @@ English | [中文](README.zh.md)
9
9
 
10
10
  ## Summary
11
11
 
12
- Use `dsh-tool-session-query` to let a model search earlier sessions, inspect event matches, trace session or event relationships, and read exact event data. Its five read-only tools return cursor-free text and authorize cross-session access only when the target session's `cwd` exactly matches the caller's; callers without a `cwd` can inspect only themselves. Search excludes the caller session and asks the model to narrow its query when the deployment result cap is reached. The package is opt-in, and enabling it adds fixed guidance plus five tool schemas to every model request.
12
+ Use the experimental `dsh-tool-session-query` tools to let a model search earlier sessions, inspect event matches, trace session or event relationships, and read exact event data. Its five read-only tools return cursor-free text and authorize cross-session access only when the target session's `cwd` exactly matches the caller's; callers without a `cwd` can inspect only themselves. Search excludes the caller session and asks the model to narrow its query when the deployment result cap is reached. The package is opt-in, and enabling it adds fixed guidance plus five tool schemas to every model request.
13
13
 
14
14
  ## Table of Contents
15
15
 
@@ -102,8 +102,8 @@ Each executor derives the caller, normalizes the model's arguments into service
102
102
  Read these pages when the package-level contract is not enough. They move from the tool surface to the underlying service, the schema catalog, and the design evidence.
103
103
 
104
104
  - [Generated tool catalog](../../../docs/tool-catalog.md#deepseek-aidsh-tool-session-query) — the five tool schemas as the model sees them.
105
- - [dsh-session-query](../session-query/README.md) — the service these tools call.
106
- - [dsh-session-query-sqlite](../session-query-sqlite/README.md) — the full-text backend behind the two search tools.
105
+ - [dsh-session-query](../../session-query/session-query/README.md) — the service these tools call.
106
+ - [dsh-session-query-sqlite](../../session-query/session-query-sqlite/README.md) — the full-text backend behind the two search tools.
107
107
  - [Session Query subsystem reference](../../../docs/subsystems/session-query.md) — the type-level contract under the tools.
108
108
  - [Model-facing session query tools](../../../.agents/notes/archived/feature/2026-07-24-model-facing-session-query-tools.md) — workspace authority, cursor-free results, and spill decisions.
109
109
 
@@ -184,5 +184,3 @@ This Dev Note is working context for maintainers: open design questions and dire
184
184
  Exact-string `cwd` equality is deliberately conservative; symlink-aware or canonical-path workspace identity would change which sessions share authority and is undecided.
185
185
 
186
186
  </details>
187
-
188
- **Runtime invariant:** No companion is published. This read-only model adapter owns no event or mutable data relationship beyond the registries that already validate registration.
package/README.zh.md CHANGED
@@ -9,7 +9,7 @@ kind: "package-reference"
9
9
 
10
10
  ## 概述
11
11
 
12
- 使用 `dsh-tool-session-query` 可让模型搜索既往会话、检查事件匹配、追踪会话或事件关系,并读取精确事件数据。它的五个只读工具返回无游标文本;只有目标会话的 `cwd` 与调用方完全匹配时才允许跨会话访问,没有 `cwd` 的调用方只能检查自己。搜索会排除调用方会话,并在达到部署结果上限时要求模型缩小查询。本包是 opt-in;启用后,每次模型请求都会增加固定指引与五个工具 schema。
12
+ 使用实验性的 `dsh-tool-session-query` 工具可让模型搜索既往会话、检查事件匹配、追踪会话或事件关系,并读取精确事件数据。它的五个只读工具返回无游标文本;只有目标会话的 `cwd` 与调用方完全匹配时才允许跨会话访问,没有 `cwd` 的调用方只能检查自己。搜索会排除调用方会话,并在达到部署结果上限时要求模型缩小查询。本包是 opt-in;启用后,每次模型请求都会增加固定指引与五个工具 schema。
13
13
 
14
14
  ## 目录
15
15
 
@@ -102,8 +102,8 @@ kind: "package-reference"
102
102
  当包级约定不够用时阅读以下页面。它们从工具表面逐步进入底层服务、schema 目录与设计证据。
103
103
 
104
104
  - [生成的工具目录](../../../docs/tool-catalog.zh.md#deepseek-aidsh-tool-session-query)——模型看到的五个工具 schema。
105
- - [dsh-session-query](../session-query/README.zh.md)——这些工具调用的服务。
106
- - [dsh-session-query-sqlite](../session-query-sqlite/README.zh.md)——两个搜索工具背后的全文后端。
105
+ - [dsh-session-query](../../session-query/session-query/README.zh.md)——这些工具调用的服务。
106
+ - [dsh-session-query-sqlite](../../session-query/session-query-sqlite/README.zh.md)——两个搜索工具背后的全文后端。
107
107
  - [会话查询子系统参考](../../../docs/subsystems/session-query.zh.md)——工具之下的类型级约定。
108
108
  - [面向模型的会话查询工具](../../../.agents/notes/archived/feature/2026-07-24-model-facing-session-query-tools.md)——工作区授权、无游标结果与 spill 决策。
109
109
 
@@ -184,5 +184,3 @@ Use session_search to find relevant work from prior sessions, or session_event_s
184
184
  字符串精确 `cwd` 相等是刻意保守的选择;符号链接感知或规范路径的工作区身份会改变哪些会话共享权限,尚未决定。
185
185
 
186
186
  </details>
187
-
188
- **运行时不变式:** 不发布伴生入口。这个只读模型适配器不拥有任何超出注册表范围的事件关系或可变数据关系;这些注册表已经负责校验注册。
package/package.json CHANGED
@@ -1,14 +1,14 @@
1
1
  {
2
2
  "name": "@deepseek-ai/dsh-tool-session-query",
3
3
  "description": "Workspace-authorized model-facing session history search, trace, and event read tools",
4
- "version": "0.2.0-rc.2",
4
+ "version": "0.2.1-alpha.2",
5
5
  "publishConfig": {
6
6
  "access": "public"
7
7
  },
8
8
  "repository": {
9
9
  "type": "git",
10
10
  "url": "git+https://github.com/deepseek-ai/deepseek-harness.git",
11
- "directory": "packages/session-query/tool-session-query"
11
+ "directory": "packages/experimental/tool-session-query"
12
12
  },
13
13
  "type": "module",
14
14
  "main": "lib/index.js",
@@ -27,35 +27,35 @@
27
27
  ],
28
28
  "license": "MIT",
29
29
  "peerDependencies": {
30
- "@deepseek-ai/cordis": "~4.0.4",
31
- "@deepseek-ai/dsh-agent": "0.2.0-rc.2",
32
- "@deepseek-ai/dsh-llm": "0.2.0-rc.2",
33
- "@deepseek-ai/dsh-session": "0.2.0-rc.2",
34
- "@deepseek-ai/dsh-session-projection": "0.2.0-rc.2",
35
- "@deepseek-ai/dsh-session-query": "0.2.0-rc.2",
36
- "@deepseek-ai/dsh-system-prompt": "0.2.0-rc.2",
37
- "@deepseek-ai/dsh-tools": "0.2.0-rc.2",
38
- "@deepseek-ai/dsh-timeout": "0.2.0-rc.2"
30
+ "@deepseek-ai/cordis": "~4.0.5-alpha.1",
31
+ "@deepseek-ai/dsh-agent": "0.2.1-alpha.2",
32
+ "@deepseek-ai/dsh-llm": "0.2.1-alpha.2",
33
+ "@deepseek-ai/dsh-session": "0.2.1-alpha.2",
34
+ "@deepseek-ai/dsh-session-projection": "0.2.1-alpha.2",
35
+ "@deepseek-ai/dsh-session-query": "0.2.1-alpha.2",
36
+ "@deepseek-ai/dsh-system-prompt": "0.2.1-alpha.2",
37
+ "@deepseek-ai/dsh-timeout": "0.2.1-alpha.2",
38
+ "@deepseek-ai/dsh-tools": "0.2.1-alpha.2"
39
39
  },
40
40
  "dependencies": {
41
- "@deepseek-ai/dsh-brand": "0.2.0-rc.2",
42
- "@deepseek-ai/schemastery": "~3.18.4"
41
+ "@deepseek-ai/dsh-brand": "0.2.1-alpha.2",
42
+ "@deepseek-ai/schemastery": "~3.18.5-alpha.1"
43
43
  },
44
44
  "devDependencies": {
45
- "@deepseek-ai/cordis": "~4.0.4",
46
- "@deepseek-ai/dsh-agent": "0.2.0-rc.2",
47
- "@deepseek-ai/dsh-agent-loop": "0.2.0-rc.2",
48
- "@deepseek-ai/dsh-llm": "0.2.0-rc.2",
49
- "@deepseek-ai/dsh-session": "0.2.0-rc.2",
50
- "@deepseek-ai/dsh-session-persistence": "0.2.0-rc.2",
51
- "@deepseek-ai/dsh-session-persistence-jsonl": "0.2.0-rc.2",
52
- "@deepseek-ai/dsh-session-query": "0.2.0-rc.2",
53
- "@deepseek-ai/dsh-session-query-sqlite": "0.2.0-rc.2",
54
- "@deepseek-ai/dsh-session-title": "0.2.0-rc.2",
55
- "@deepseek-ai/dsh-system-prompt": "0.2.0-rc.2",
56
- "@deepseek-ai/dsh-session-projection": "0.2.0-rc.2",
57
- "@deepseek-ai/dsh-timeout": "0.2.0-rc.2",
58
- "@deepseek-ai/dsh-tool-call-timeout-policy": "0.2.0-rc.2",
59
- "@deepseek-ai/dsh-tools": "0.2.0-rc.2"
45
+ "@deepseek-ai/cordis": "~4.0.5-alpha.1",
46
+ "@deepseek-ai/dsh-agent": "0.2.1-alpha.2",
47
+ "@deepseek-ai/dsh-agent-loop": "0.2.1-alpha.2",
48
+ "@deepseek-ai/dsh-llm": "0.2.1-alpha.2",
49
+ "@deepseek-ai/dsh-session": "0.2.1-alpha.2",
50
+ "@deepseek-ai/dsh-session-persistence": "0.2.1-alpha.2",
51
+ "@deepseek-ai/dsh-session-persistence-jsonl": "0.2.1-alpha.2",
52
+ "@deepseek-ai/dsh-session-projection": "0.2.1-alpha.2",
53
+ "@deepseek-ai/dsh-session-query": "0.2.1-alpha.2",
54
+ "@deepseek-ai/dsh-session-query-sqlite": "0.2.1-alpha.2",
55
+ "@deepseek-ai/dsh-session-title": "0.2.1-alpha.2",
56
+ "@deepseek-ai/dsh-system-prompt": "0.2.1-alpha.2",
57
+ "@deepseek-ai/dsh-timeout": "0.2.1-alpha.2",
58
+ "@deepseek-ai/dsh-tool-call-timeout-policy": "0.2.1-alpha.2",
59
+ "@deepseek-ai/dsh-tools": "0.2.1-alpha.2"
60
60
  }
61
61
  }