@deepseek-ai/dsh-experimental-session-search 0.0.0-stage → 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/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 DeepSeek
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1,37 @@
1
+ # Bilingual-pair consistency record for README.md (docs/i18n/README.md): per heading
2
+ # section, a hash of its English and Chinese blocks outside code blocks and generated regions.
3
+ # After editing either side, bring the other along and re-record with:
4
+ # pnpm run verify-translation-pairing --write packages/experimental/session-search/README.md
5
+ /:
6
+ en: ac0fb71830f58337
7
+ zh: 0ece950cf48261a1
8
+ /deepseek-ai-dsh-experimental-session-search:
9
+ en: f4f9c83d1dd36580
10
+ zh: f34e5a1c0df5e469
11
+ /deepseek-ai-dsh-experimental-session-search/summary:
12
+ en: 3461520fc9a6b225
13
+ zh: aeedca620262e8ae
14
+ /deepseek-ai-dsh-experimental-session-search/table-of-contents:
15
+ en: d152484eb41ac6b4
16
+ zh: 988e839059414d27
17
+ /deepseek-ai-dsh-experimental-session-search/use-this-package:
18
+ en: 29e4de34bed1ed2e
19
+ zh: 539638a62c0a99c3
20
+ /deepseek-ai-dsh-experimental-session-search/understand-the-implementation:
21
+ en: 7c40cb34ffc89ed4
22
+ zh: ce6ff516434ba582
23
+ /deepseek-ai-dsh-experimental-session-search/further-exploration:
24
+ en: 3016959b8c0546d0
25
+ zh: a356ef50b3ce9f77
26
+ /deepseek-ai-dsh-experimental-session-search/model-experience:
27
+ en: 00d8bdccc42b1f10
28
+ zh: 3264a962cff8127e
29
+ /deepseek-ai-dsh-experimental-session-search/model-experience/kv-cache-effect:
30
+ en: 25f20eda0e696067
31
+ zh: 378c4a15a5704ba0
32
+ /deepseek-ai-dsh-experimental-session-search/known-limitations-and-deferred-work:
33
+ en: 5ba4aae8ef1f62d2
34
+ zh: a7599243880f7482
35
+ /deepseek-ai-dsh-experimental-session-search/known-limitations-and-deferred-work/dev-note:
36
+ en: 279d01435256cd2a
37
+ zh: 83780964e5de2f54
package/README.md CHANGED
@@ -1,3 +1,82 @@
1
- # Temporary Holding Version
1
+ ---
2
+ description: "Give Agents tools to search and read earlier sessions from the current workspace."
3
+ kind: "package-bundle"
4
+ ---
2
5
 
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.
6
+ # @deepseek-ai/dsh-experimental-session-search
7
+
8
+ English | [中文](README.zh.md)
9
+
10
+ ## Summary
11
+
12
+ Give every Agent five experimental read-only global tools to search earlier sessions. The content index opens on the first search and is shared by all Agents. The bundle ships switched off in Web and Desktop. Select it in Plugins to enable it.
13
+
14
+ ## Table of Contents
15
+
16
+ - [Use this package](#use-this-package)
17
+ - [Understand the implementation](#understand-the-implementation)
18
+ - [Further Exploration](#further-exploration)
19
+ - [Model Experience](#model-experience)
20
+ - [Known Limitations and Deferred Work](#known-limitations-and-deferred-work)
21
+ - [Dev Note](#dev-note)
22
+
23
+ -----
24
+
25
+ <a id="use-this-package"></a>
26
+ ## Use this package
27
+
28
+ In Web or Desktop, open Plugins and enable **Session search** in Official. Switch it off to remove its profile layer.
29
+
30
+ Enabling or disabling the bundle registers or removes its global tools in the running Host, so every Agent sees the change on its next request, in every preset including minimal.
31
+
32
+ This bundle enables Agent search tools. Sidebar search keeps its existing behavior.
33
+
34
+ -----
35
+
36
+ <a id="understand-the-implementation"></a>
37
+ ## Understand the implementation
38
+
39
+ <details>
40
+ <summary>Implementation details — click to expand</summary>
41
+
42
+ [`cordis.patch.yml`](cordis.patch.yml) inserts the Host group `optional-session-search`, which registers the tools in the global tool layer. Later profile patches can override its rows by id. The [profile composer](../../boot/app-boot/README.md) owns patch ordering and errors.
43
+
44
+ The group owns an isolated `sessionQuery` provider with a lazy `:memory:` index, released when the bundle is switched off. The host's metadata service keeps `openAt: never`.
45
+
46
+ </details>
47
+
48
+ -----
49
+
50
+ <a id="further-exploration"></a>
51
+ ## Further Exploration
52
+
53
+ [Capability implementation](../tool-session-query/README.md)
54
+
55
+ -----
56
+
57
+ <a id="model-experience"></a>
58
+ ## Model Experience
59
+
60
+ Indirectly, through the [capability implementation](../tool-session-query/README.md), which owns model context and results.
61
+
62
+ #### KV Cache effect
63
+
64
+ The layer adds no request content directly; the capability implementation owns cache effects from tools, prompts, and results. Toggling the bundle changes the tool list of live Sessions, which invalidates their cached request prefix once.
65
+
66
+ ## Known Limitations and Deferred Work
67
+
68
+ <a id="known-limitations-and-deferred-work"></a>
69
+
70
+ - The bundle keeps one in-memory index after the first search. The index is rebuilt after restarting the application or switching the bundle off and on. Search remains restricted to authorized workspaces.
71
+
72
+ -----
73
+
74
+ <a id="dev-note"></a>
75
+ ### Dev Note
76
+
77
+ <details>
78
+ <summary>Maintainer context — click to expand</summary>
79
+
80
+ None.
81
+
82
+ </details>
package/README.zh.md ADDED
@@ -0,0 +1,82 @@
1
+ ---
2
+ description: "为智能体提供搜索和读取当前工作区历史会话的工具。"
3
+ kind: "package-bundle"
4
+ ---
5
+
6
+ # @deepseek-ai/dsh-experimental-session-search
7
+
8
+ [English](README.md) | 中文
9
+
10
+ ## 概述
11
+
12
+ 为所有智能体提供五个实验性只读全局工具,用于搜索历史会话。内容索引在首次搜索时打开,由所有智能体共享。Web 和 Desktop 随附此配置包,默认关闭。在插件页选择它即可启用。
13
+
14
+ ## 目录
15
+
16
+ - [使用此包](#use-this-package)
17
+ - [理解实现](#understand-the-implementation)
18
+ - [进一步探索](#further-exploration)
19
+ - [模型体验](#model-experience)
20
+ - [已知限制与暂缓工作](#known-limitations-and-deferred-work)
21
+ - [开发备注](#dev-note)
22
+
23
+ -----
24
+
25
+ <a id="use-this-package"></a>
26
+ ## 使用此包
27
+
28
+ 在 Web 或 Desktop 中打开插件页,在官方分组启用 **会话搜索**。关闭后移除其配置层。
29
+
30
+ 启用或关闭组合包会在运行中的 Host 注册或移除其全局工具,因此所有预设(包括 minimal)中的每个智能体都会在下一次请求时看到变化。
31
+
32
+ 此配置包启用智能体的搜索工具。侧边栏搜索保留现有行为。
33
+
34
+ -----
35
+
36
+ <a id="understand-the-implementation"></a>
37
+ ## 理解实现
38
+
39
+ <details>
40
+ <summary>实现细节 — 点击展开</summary>
41
+
42
+ [`cordis.patch.yml`](cordis.patch.yml) 插入 Host 组 `optional-session-search`,在全局工具层注册这些工具。后续配置补丁可以按 id 覆盖其条目。[配置组合器](../../boot/app-boot/README.zh.md) 负责补丁顺序和错误处理。
43
+
44
+ 该组拥有独立的 `sessionQuery` 提供方和惰性打开的 `:memory:` 索引,关闭组合包时释放。Host 的元数据服务仍使用 `openAt: never`。
45
+
46
+ </details>
47
+
48
+ -----
49
+
50
+ <a id="further-exploration"></a>
51
+ ## 进一步探索
52
+
53
+ [能力实现](../tool-session-query/README.zh.md)
54
+
55
+ -----
56
+
57
+ <a id="model-experience"></a>
58
+ ## 模型体验
59
+
60
+ 间接影响,通过[能力实现](../tool-session-query/README.zh.md) 贡献模型上下文和结果。
61
+
62
+ #### KV Cache 影响
63
+
64
+ 此配置层不直接添加请求内容;能力实现负责工具目录、提示和结果的缓存影响。切换组合包会改变运行中会话的工具列表,使其已缓存的请求前缀失效一次。
65
+
66
+ ## 已知限制与暂缓工作
67
+
68
+ <a id="known-limitations-and-deferred-work"></a>
69
+
70
+ - 组合包在首次搜索后持有一个内存索引。应用重启或重新开关组合包后索引会重建。搜索仍仅限获授权的工作区。
71
+
72
+ -----
73
+
74
+ <a id="dev-note"></a>
75
+ ### 开发备注
76
+
77
+ <details>
78
+ <summary>维护者上下文 — 点击展开</summary>
79
+
80
+ 无。
81
+
82
+ </details>
@@ -0,0 +1,14 @@
1
+ - insert:
2
+ - id: optional-session-search
3
+ name: cordis:group
4
+ group: true
5
+ isolate:
6
+ sessionQuery: true
7
+ config:
8
+ - id: optional-session-query-sqlite
9
+ name: '@deepseek-ai/dsh-session-query-sqlite'
10
+ config:
11
+ path: ':memory:'
12
+ openAt: first-search
13
+ - id: optional-tool-session-query
14
+ name: '@deepseek-ai/dsh-tool-session-query'
package/icon.svg ADDED
@@ -0,0 +1 @@
1
+ <svg width="36" height="36" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" stroke-width="1"><path d="M6.58727 11.8586C9.55061 11.8586 11.9529 9.45637 11.9529 6.49304C11.9529 3.5297 9.55061 1.12744 6.58727 1.12744C3.62394 1.12744 1.22168 3.5297 1.22168 6.49304C1.22168 9.45637 3.62394 11.8586 6.58727 11.8586Z" stroke="#658EFF"></path><path d="M10.2991 10.3933L14.7783 14.8725" stroke="#658EFF"></path></svg>
package/lib/index.js ADDED
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,3 @@
1
+ /** Session search profile layer; runtime entries are declared in cordis.patch.yml. */
2
+ export {};
3
+ //# sourceMappingURL=index.d.ts.map
package/locale/en.json ADDED
@@ -0,0 +1,6 @@
1
+ {
2
+ "meta": {
3
+ "title": "Session search",
4
+ "description": "Give Agents tools to search and read earlier sessions from the current workspace."
5
+ }
6
+ }
package/locale/zh.json ADDED
@@ -0,0 +1,6 @@
1
+ {
2
+ "meta": {
3
+ "title": "会话搜索",
4
+ "description": "为智能体提供搜索和读取当前工作区历史会话的工具。"
5
+ }
6
+ }
package/package.json CHANGED
@@ -1,6 +1,50 @@
1
1
  {
2
2
  "name": "@deepseek-ai/dsh-experimental-session-search",
3
- "version": "0.0.0-stage",
4
- "stub": true,
5
- "description": "Temporary package placeholder for staged publishing"
3
+ "description": "Give Agents tools to search and read earlier sessions from the current workspace.",
4
+ "version": "0.2.1-alpha.2",
5
+ "icon": "./icon.svg",
6
+ "publishConfig": {
7
+ "access": "public"
8
+ },
9
+ "repository": {
10
+ "type": "git",
11
+ "url": "git+https://github.com/deepseek-ai/deepseek-harness.git",
12
+ "directory": "packages/experimental/session-search"
13
+ },
14
+ "type": "module",
15
+ "main": "lib/index.js",
16
+ "types": "lib/types/index.d.ts",
17
+ "exports": {
18
+ ".": {
19
+ "types": "./lib/types/index.d.ts",
20
+ "default": "./lib/index.js"
21
+ },
22
+ "./cordis.patch.yml": "./cordis.patch.yml",
23
+ "./locale/*.json": "./locale/*.json",
24
+ "./src/*": "./src/*",
25
+ "./package.json": "./package.json"
26
+ },
27
+ "files": [
28
+ "icon.svg",
29
+ "locale/*.json",
30
+ "lib/index.js",
31
+ "cordis.patch.yml",
32
+ "lib/types/**/*.d.ts"
33
+ ],
34
+ "license": "MIT",
35
+ "dsh": {
36
+ "bundle": {
37
+ "patch": "./cordis.patch.yml"
38
+ }
39
+ },
40
+ "dependencies": {
41
+ "@deepseek-ai/dsh-session-query-sqlite": "0.2.1-alpha.2",
42
+ "@deepseek-ai/dsh-tool-session-query": "0.2.1-alpha.2"
43
+ },
44
+ "peerDependencies": {
45
+ "@deepseek-ai/cordis": "~4.0.5-alpha.1"
46
+ },
47
+ "devDependencies": {
48
+ "@deepseek-ai/cordis": "~4.0.5-alpha.1"
49
+ }
6
50
  }