@deepseek-ai/dsh-tool-session-query 0.1.5-rc.2 → 0.1.6-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 +1 -1
- package/README.zh.md +5 -5
- package/package.json +24 -24
package/README.i18n.yaml
CHANGED
|
@@ -3,4 +3,4 @@
|
|
|
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
5
|
README.md: 61aca36ef987c260d50ec3e0aec69c8626171e3c
|
|
6
|
-
README.zh.md:
|
|
6
|
+
README.zh.md: 2e390e37a6eb81c9d8c6bff022e3df67897fe81d
|
package/README.zh.md
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
---
|
|
2
|
-
description: "面向 agent
|
|
2
|
+
description: "面向 agent(智能体)开发者与维护者、经工作区授权且面向模型的会话历史工具,用于选择、配置或排查既往会话搜索、追踪与事件读取。"
|
|
3
3
|
kind: "package-reference"
|
|
4
4
|
---
|
|
5
5
|
|
|
@@ -29,7 +29,7 @@ kind: "package-reference"
|
|
|
29
29
|
|
|
30
30
|
### 何时选择
|
|
31
31
|
|
|
32
|
-
|
|
32
|
+
当部署需要模型驱动的既往工作检索时选择它——例如 coding agent(编程智能体)在开始任务前搜索更早会话中做过的事。只需要程序化检索时避免使用:`ctx.sessionQuery` 本身服务代码调用方,无需面向模型的 schema、提示词与授权层。
|
|
33
33
|
|
|
34
34
|
### 配置
|
|
35
35
|
|
|
@@ -48,7 +48,7 @@ kind: "package-reference"
|
|
|
48
48
|
| `session_event_search` | 一个已授权会话内匹配字面查询的事件;针对当前会话时,在调用它的步骤之前停止 |
|
|
49
49
|
| `session_trace` | 一个会话的已授权祖先链与后代树;未授权边界以不含隐藏 id 的标记出现 |
|
|
50
50
|
| `session_event_trace` | 一个事件的位置替换与被引用源事件关系 |
|
|
51
|
-
| `session_event_read` | 一个完整未删节事件(JSON
|
|
51
|
+
| `session_event_read` | 一个完整未删节事件(JSON),以及可选的相邻事件摘要 |
|
|
52
52
|
|
|
53
53
|
工作区授权是保守的:跨会话访问要求目标与调用方会话的 `cwd` 严格相等,没有 `cwd` 的调用方只能检查自己。请求的父 id 会在搜索前去重并按权限检查;缺失与跨工作区猜测行为完全相同。搜索结果无游标:结果达到上限时请模型缩小查询,绝不暴露提供方游标、偏移、分页大小或模型可控上限。工具边界的时间戳是带时区限定的 ISO 8601,并转换为包含端点的 epoch 毫秒过滤器。
|
|
54
54
|
|
|
@@ -72,7 +72,7 @@ kind: "package-reference"
|
|
|
72
72
|
|
|
73
73
|
- **窄而只读的工具。** 五个带扁平 snake-case schema 的工具,每个都引导一个后续步骤;游标、偏移、分页大小或模型可控上限永远不会到达模型。
|
|
74
74
|
- **授权来自调用方,绝不由模型提供。** 调用方身份来自 `ToolExecution.exec.agent`;工作区是字符串精确 `cwd` 相等,并对照每次结果观察到的 header 重新校验。
|
|
75
|
-
- **一个模型边界净化器。** 每个可信 `ctx.sessionQuery`
|
|
75
|
+
- **一个模型边界净化器。** 每个可信 `ctx.sessionQuery` 调用都经过服务边界,它保留取消,并将诊断与分类失败限制在边界内。
|
|
76
76
|
- **不引入第二种截断格式。** 结果保持完整;通用 spill 策略负责有界内联输出。
|
|
77
77
|
|
|
78
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)中。
|
|
@@ -185,4 +185,4 @@ Use session_search to find relevant work from prior sessions, or session_event_s
|
|
|
185
185
|
|
|
186
186
|
</details>
|
|
187
187
|
|
|
188
|
-
**运行时不变式:**
|
|
188
|
+
**运行时不变式:** 不发布伴生入口。这个只读模型适配器不拥有任何超出注册表范围的事件关系或可变数据关系;这些注册表已经负责校验注册。
|
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.6-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-agent": "^0.1.5-rc.2",
|
|
31
|
-
"@deepseek-ai/dsh-llm": "^0.1.5-rc.2",
|
|
32
30
|
"@deepseek-ai/cordis": "^4.0.2",
|
|
33
|
-
"@deepseek-ai/dsh-
|
|
34
|
-
"@deepseek-ai/dsh-
|
|
35
|
-
"@deepseek-ai/dsh-session
|
|
36
|
-
"@deepseek-ai/dsh-
|
|
37
|
-
"@deepseek-ai/dsh-
|
|
38
|
-
"@deepseek-ai/dsh-
|
|
31
|
+
"@deepseek-ai/dsh-agent": "^0.1.6-alpha.1",
|
|
32
|
+
"@deepseek-ai/dsh-llm": "^0.1.6-alpha.1",
|
|
33
|
+
"@deepseek-ai/dsh-session": "^0.1.6-alpha.1",
|
|
34
|
+
"@deepseek-ai/dsh-session-query": "^0.1.6-alpha.1",
|
|
35
|
+
"@deepseek-ai/dsh-system-prompt": "^0.1.6-alpha.1",
|
|
36
|
+
"@deepseek-ai/dsh-timeout": "^0.1.6-alpha.1",
|
|
37
|
+
"@deepseek-ai/dsh-tools": "^0.1.6-alpha.1",
|
|
38
|
+
"@deepseek-ai/dsh-session-projection": "^0.1.6-alpha.1"
|
|
39
39
|
},
|
|
40
40
|
"dependencies": {
|
|
41
|
-
"@deepseek-ai/dsh-brand": "^0.1.
|
|
41
|
+
"@deepseek-ai/dsh-brand": "^0.1.6-alpha.1",
|
|
42
42
|
"@deepseek-ai/schemastery": "^3.18.2"
|
|
43
43
|
},
|
|
44
44
|
"devDependencies": {
|
|
45
45
|
"@deepseek-ai/cordis": "^4.0.2",
|
|
46
|
-
"@deepseek-ai/dsh-agent": "^0.1.
|
|
47
|
-
"@deepseek-ai/dsh-agent-loop": "^0.1.
|
|
48
|
-
"@deepseek-ai/dsh-llm": "^0.1.
|
|
49
|
-
"@deepseek-ai/dsh-session": "^0.1.
|
|
50
|
-
"@deepseek-ai/dsh-session-persistence": "^0.1.
|
|
51
|
-
"@deepseek-ai/dsh-session-persistence-jsonl": "^0.1.
|
|
52
|
-
"@deepseek-ai/dsh-session-
|
|
53
|
-
"@deepseek-ai/dsh-session-
|
|
54
|
-
"@deepseek-ai/dsh-
|
|
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": "^0.1.6-alpha.1",
|
|
47
|
+
"@deepseek-ai/dsh-agent-loop": "^0.1.6-alpha.1",
|
|
48
|
+
"@deepseek-ai/dsh-llm": "^0.1.6-alpha.1",
|
|
49
|
+
"@deepseek-ai/dsh-session": "^0.1.6-alpha.1",
|
|
50
|
+
"@deepseek-ai/dsh-session-persistence": "^0.1.6-alpha.1",
|
|
51
|
+
"@deepseek-ai/dsh-session-persistence-jsonl": "^0.1.6-alpha.1",
|
|
52
|
+
"@deepseek-ai/dsh-session-projection": "^0.1.6-alpha.1",
|
|
53
|
+
"@deepseek-ai/dsh-session-query": "^0.1.6-alpha.1",
|
|
54
|
+
"@deepseek-ai/dsh-session-query-sqlite": "^0.1.6-alpha.1",
|
|
55
|
+
"@deepseek-ai/dsh-timeout": "^0.1.6-alpha.1",
|
|
56
|
+
"@deepseek-ai/dsh-tool-call-timeout-policy": "^0.1.6-alpha.1",
|
|
57
|
+
"@deepseek-ai/dsh-tools": "^0.1.6-alpha.1",
|
|
58
|
+
"@deepseek-ai/dsh-system-prompt": "^0.1.6-alpha.1",
|
|
59
|
+
"@deepseek-ai/dsh-session-title": "^0.1.6-alpha.1"
|
|
60
60
|
}
|
|
61
61
|
}
|