@deepseek-ai/dsh-tool-session-query 0.1.2-rc.1 → 0.1.5-alpha.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.i18n.yaml CHANGED
@@ -2,5 +2,5 @@
2
2
  # side as of the last confirmed-consistent state. Both languages carry equal authority;
3
3
  # after editing either side, bring the other along and re-record with:
4
4
  # pnpm run verify-translation-pairing --write packages/session-query/tool-session-query/README.md
5
- README.md: 729e7c6874939093a1f1c6d273ca40a36187cc72
6
- README.zh.md: db2e3fa9f5d30150ae6fc66e44bac3bf7f1e1754
5
+ README.md: 61aca36ef987c260d50ec3e0aec69c8626171e3c
6
+ README.zh.md: e622f19464a3bbbfa0e315e439f9cf19edb16ddc
package/README.md CHANGED
@@ -9,7 +9,7 @@ English | [中文](README.zh.md)
9
9
 
10
10
  ## Summary
11
11
 
12
- `dsh-tool-session-query` gives the model five read-only tools over session history: `session_search`, `session_event_search`, `session_trace`, `session_event_trace`, and `session_event_read`. The tools are workspace-authorized — a model can only reach sessions whose `cwd` exactly matches its own caller session — and results are cursor-free plain text, so the model can search prior work and follow a useful hit into its lineage or exact event data. The package is opt-in and not mounted by shipped host compositions: mounting it adds one concise guidance section and the five schemas to every request. Configuration and usage come first; the implementation internals live in a collapsible developer section below.
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.
13
13
 
14
14
  ## Table of Contents
15
15
 
@@ -75,7 +75,7 @@ The consumer is built on one separation and three commitments:
75
75
  - **One model-boundary sanitizer.** Every trusted `ctx.sessionQuery` call goes through the service boundary, which preserves cancellation and contains diagnostic and classification failures.
76
76
  - **No second truncation format.** Results stay complete; the generic spill policy owns bounded inline output.
77
77
 
78
- The design history lives in the [model-facing session query tools note](../../../.agents/notes/implemented/feature/2026-07-24-model-facing-session-query-tools.md) and the [session-search-not-shipped-default note](../../../.agents/notes/implemented/feature/2026-08-02-session-search-not-shipped-default.md).
78
+ The design history lives in the [model-facing session query tools note](../../../.agents/notes/archived/feature/2026-07-24-model-facing-session-query-tools.md) and the [session-search-not-shipped-default note](../../../.agents/notes/archived/feature/2026-08-02-session-search-not-shipped-default.md).
79
79
 
80
80
  ### Source map
81
81
 
@@ -105,7 +105,7 @@ Read these pages when the package-level contract is not enough. They move from t
105
105
  - [dsh-session-query](../session-query/README.md) — the service these tools call.
106
106
  - [dsh-session-query-sqlite](../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
- - [Model-facing session query tools](../../../.agents/notes/implemented/feature/2026-07-24-model-facing-session-query-tools.md) — workspace authority, cursor-free results, and spill decisions.
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
 
110
110
  -----
111
111
 
package/README.zh.md CHANGED
@@ -9,7 +9,7 @@ kind: "package-reference"
9
9
 
10
10
  ## 概述
11
11
 
12
- `dsh-tool-session-query` 给模型提供五个会话历史只读工具:`session_search`、`session_event_search`、`session_trace`、`session_event_trace` 与 `session_event_read`。工具经工作区授权——模型只能访问 `cwd` 与其自身调用方会话完全相同的会话——结果是无游标的纯文本,因此模型可以搜索既往工作,并顺着有用命中进入其血缘或精确事件数据。本包是 opt-in,已发布宿主组合默认不挂载:挂载后每次请求都会增加一个精简指引章节与五个 schema。配置与用法在前;实现内部细节放在下方可折叠的开发者章节中。
12
+ 使用 `dsh-tool-session-query` 可让模型搜索既往会话、检查事件匹配、追踪会话或事件关系,并读取精确事件数据。它的五个只读工具返回无游标文本;只有目标会话的 `cwd` 与调用方完全匹配时才允许跨会话访问,没有 `cwd` 的调用方只能检查自己。搜索会排除调用方会话,并在达到部署结果上限时要求模型缩小查询。本包是 opt-in;启用后,每次模型请求都会增加固定指引与五个工具 schema。
13
13
 
14
14
  ## 目录
15
15
 
@@ -75,7 +75,7 @@ kind: "package-reference"
75
75
  - **一个模型边界净化器。** 每个可信 `ctx.sessionQuery` 调用都经过服务边界,它保留取消并包含诊断与分类失败。
76
76
  - **不引入第二种截断格式。** 结果保持完整;通用 spill 策略负责有界内联输出。
77
77
 
78
- 设计历史记录在[面向模型的会话查询工具笔记](../../../.agents/notes/implemented/feature/2026-07-24-model-facing-session-query-tools.zh.md)与 [session-search-not-shipped-default 笔记](../../../.agents/notes/implemented/feature/2026-08-02-session-search-not-shipped-default.zh.md)中。
78
+ 设计历史记录在[面向模型的会话查询工具笔记](../../../.agents/notes/archived/feature/2026-07-24-model-facing-session-query-tools.md)与 [session-search-not-shipped-default 笔记](../../../.agents/notes/archived/feature/2026-08-02-session-search-not-shipped-default.md)中。
79
79
 
80
80
  ### 源码地图
81
81
 
@@ -105,7 +105,7 @@ kind: "package-reference"
105
105
  - [dsh-session-query](../session-query/README.zh.md)——这些工具调用的服务。
106
106
  - [dsh-session-query-sqlite](../session-query-sqlite/README.zh.md)——两个搜索工具背后的全文后端。
107
107
  - [会话查询子系统参考](../../../docs/subsystems/session-query.zh.md)——工具之下的类型级约定。
108
- - [面向模型的会话查询工具](../../../.agents/notes/implemented/feature/2026-07-24-model-facing-session-query-tools.zh.md)——工作区授权、无游标结果与 spill 决策。
108
+ - [面向模型的会话查询工具](../../../.agents/notes/archived/feature/2026-07-24-model-facing-session-query-tools.md)——工作区授权、无游标结果与 spill 决策。
109
109
 
110
110
  -----
111
111
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
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.1.2-rc.1",
4
+ "version": "0.1.5-alpha.1",
5
5
  "publishConfig": {
6
6
  "access": "public"
7
7
  },
@@ -27,35 +27,35 @@
27
27
  ],
28
28
  "license": "MIT",
29
29
  "peerDependencies": {
30
- "@deepseek-ai/dsh-llm": "^0.1.2-rc.1",
31
- "@deepseek-ai/dsh-agent": "^0.1.2-rc.1",
30
+ "@deepseek-ai/dsh-agent": "^0.1.5-alpha.1",
31
+ "@deepseek-ai/dsh-llm": "^0.1.5-alpha.1",
32
+ "@deepseek-ai/dsh-session": "^0.1.5-alpha.1",
33
+ "@deepseek-ai/dsh-session-query": "^0.1.5-alpha.1",
34
+ "@deepseek-ai/dsh-session-projection": "^0.1.5-alpha.1",
35
+ "@deepseek-ai/dsh-system-prompt": "^0.1.5-alpha.1",
36
+ "@deepseek-ai/dsh-timeout": "^0.1.5-alpha.1",
32
37
  "@deepseek-ai/cordis": "^4.0.2",
33
- "@deepseek-ai/dsh-session-projection": "^0.1.2-rc.1",
34
- "@deepseek-ai/dsh-session-query": "^0.1.2-rc.1",
35
- "@deepseek-ai/dsh-system-prompt": "^0.1.2-rc.1",
36
- "@deepseek-ai/dsh-timeout": "^0.1.2-rc.1",
37
- "@deepseek-ai/dsh-tools": "^0.1.2-rc.1",
38
- "@deepseek-ai/dsh-session": "^0.1.2-rc.1"
38
+ "@deepseek-ai/dsh-tools": "^0.1.5-alpha.1"
39
39
  },
40
40
  "dependencies": {
41
- "@deepseek-ai/dsh-brand": "^0.1.2-rc.1",
42
- "@deepseek-ai/schemastery": "^3.18.2"
41
+ "@deepseek-ai/schemastery": "^3.18.2",
42
+ "@deepseek-ai/dsh-brand": "^0.1.5-alpha.1"
43
43
  },
44
44
  "devDependencies": {
45
45
  "@deepseek-ai/cordis": "^4.0.2",
46
- "@deepseek-ai/dsh-agent": "^0.1.2-rc.1",
47
- "@deepseek-ai/dsh-agent-loop": "^0.1.2-rc.1",
48
- "@deepseek-ai/dsh-llm": "^0.1.2-rc.1",
49
- "@deepseek-ai/dsh-session": "^0.1.2-rc.1",
50
- "@deepseek-ai/dsh-session-persistence": "^0.1.2-rc.1",
51
- "@deepseek-ai/dsh-session-persistence-jsonl": "^0.1.2-rc.1",
52
- "@deepseek-ai/dsh-session-projection": "^0.1.2-rc.1",
53
- "@deepseek-ai/dsh-session-query-sqlite": "^0.1.2-rc.1",
54
- "@deepseek-ai/dsh-session-title": "^0.1.2-rc.1",
55
- "@deepseek-ai/dsh-timeout": "^0.1.2-rc.1",
56
- "@deepseek-ai/dsh-system-prompt": "^0.1.2-rc.1",
57
- "@deepseek-ai/dsh-tool-call-timeout-policy": "^0.1.2-rc.1",
58
- "@deepseek-ai/dsh-tools": "^0.1.2-rc.1",
59
- "@deepseek-ai/dsh-session-query": "^0.1.2-rc.1"
46
+ "@deepseek-ai/dsh-agent-loop": "^0.1.5-alpha.1",
47
+ "@deepseek-ai/dsh-session-persistence": "^0.1.5-alpha.1",
48
+ "@deepseek-ai/dsh-agent": "^0.1.5-alpha.1",
49
+ "@deepseek-ai/dsh-session-persistence-jsonl": "^0.1.5-alpha.1",
50
+ "@deepseek-ai/dsh-session-projection": "^0.1.5-alpha.1",
51
+ "@deepseek-ai/dsh-session": "^0.1.5-alpha.1",
52
+ "@deepseek-ai/dsh-session-query-sqlite": "^0.1.5-alpha.1",
53
+ "@deepseek-ai/dsh-session-title": "^0.1.5-alpha.1",
54
+ "@deepseek-ai/dsh-session-query": "^0.1.5-alpha.1",
55
+ "@deepseek-ai/dsh-timeout": "^0.1.5-alpha.1",
56
+ "@deepseek-ai/dsh-tool-call-timeout-policy": "^0.1.5-alpha.1",
57
+ "@deepseek-ai/dsh-tools": "^0.1.5-alpha.1",
58
+ "@deepseek-ai/dsh-system-prompt": "^0.1.5-alpha.1",
59
+ "@deepseek-ai/dsh-llm": "^0.1.5-alpha.1"
60
60
  }
61
61
  }