@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 +2 -2
- package/README.md +3 -3
- package/README.zh.md +3 -3
- package/package.json +25 -25
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:
|
|
6
|
-
README.zh.md:
|
|
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`
|
|
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/
|
|
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/
|
|
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`
|
|
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/
|
|
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/
|
|
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.
|
|
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-
|
|
31
|
-
"@deepseek-ai/dsh-
|
|
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-
|
|
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/
|
|
42
|
-
"@deepseek-ai/
|
|
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.
|
|
47
|
-
"@deepseek-ai/dsh-
|
|
48
|
-
"@deepseek-ai/dsh-
|
|
49
|
-
"@deepseek-ai/dsh-session": "^0.1.
|
|
50
|
-
"@deepseek-ai/dsh-session-
|
|
51
|
-
"@deepseek-ai/dsh-session
|
|
52
|
-
"@deepseek-ai/dsh-session-
|
|
53
|
-
"@deepseek-ai/dsh-session-
|
|
54
|
-
"@deepseek-ai/dsh-session-
|
|
55
|
-
"@deepseek-ai/dsh-timeout": "^0.1.
|
|
56
|
-
"@deepseek-ai/dsh-
|
|
57
|
-
"@deepseek-ai/dsh-
|
|
58
|
-
"@deepseek-ai/dsh-
|
|
59
|
-
"@deepseek-ai/dsh-
|
|
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
|
}
|