@takboo/dsh-session-bin 0.2.0 → 0.2.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.md +8 -7
- package/dist/host/native-retirement-sdk.d.ts +42 -39
- package/dist/index.js +1475 -1400
- package/dist/index.js.map +4 -4
- package/docs/client-interface.md +2 -0
- package/docs/host-lifecycle.md +4 -2
- package/package.json +48 -47
package/docs/client-interface.md
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
# 客户端与 Remote 接口
|
|
2
2
|
|
|
3
|
+
当前 `0.2.1` 使用精确 DSH `0.2.1-rc.1`;实际兼容性与升级证据见[新版验证](verification/dsh-0.2.1-rc1.md)。
|
|
4
|
+
|
|
3
5
|
本文说明客户端交互、严格 Remote 合约和插件生命周期。实际验证结果见[客户端验证](verification/client-interface.md),实现状态见 [README](../README.md)。
|
|
4
6
|
|
|
5
7
|
`0.1.0` 的 bundle、客户端 Module Loader、样式归属及 Typert contribution 使用 npm 身份 `@takboo/dsh-session-bin`。面板、存储域和 pending 缓存保持原有稳定身份;scoped 包安装前先卸载未加 scope 的开发包。
|
package/docs/host-lifecycle.md
CHANGED
|
@@ -43,9 +43,11 @@
|
|
|
43
43
|
|
|
44
44
|
## 真实冷 JSONL 单项删除 Adapter
|
|
45
45
|
|
|
46
|
-
`NativeRetirementOwner` 自行拥有被明确 adoption 的会话记录删除生命周期。当前默认生产资格限已实际验收的 DSH `0.2.
|
|
46
|
+
`NativeRetirementOwner` 自行拥有被明确 adoption 的会话记录删除生命周期。当前默认生产资格限已实际验收的 DSH `0.2.1-rc.1`、Node `24.18.1` / libuv `1.52.1`、Windows x64、macOS ARM64/Intel、Linux ARM64/x64、单 Host,以及独立验证通过的 JSONL raw/zstd、已知 Workspace/JSON domain、已启用 SQLite 查询与投影 cache 组合;确认没有相应 optional provider 的最小组合也可使用。未验收的平台/架构(包括 Windows ARM64)不因 Adapter 存在或 Host 配置 true 自动获得生产资格。正在初始化的 provider 会先等待,unknown/disabled/path 或实例漂移不伪称不存在。SDK 所有参与包版本与源码 SHA-256 固定于 `native-retirement-sdk`;变更组合需独立验收。支持的是会话日志和声明的会话元数据/派生索引,共享附件、外部工具副本和独立 fork 保留,不做全局 GC 或安全擦除。
|
|
47
47
|
|
|
48
|
-
|
|
48
|
+
当前运行时准入与持久化协议身份分离:`native-retirement-sdk` 核对实际 `0.2.1-rc.1` 宿主及参与包;schema 1 的资源 fingerprint、`hostVersion: 0.2.0-rc.2`、queryProvider 字符串保留为历史协议标识,维持既有 binding、grant、冻结清单和回执。它们不表示当前宿主版本,也不接受未知 SDK。升级需完整关闭旧宿主后重开;协议兼容依据、跨版本运行证据与边界见 [ADR 0011](decisions/0011-runtime-and-durable-retirement-identity.md) 和[新版兼容性验证](verification/dsh-0.2.1-rc1.md)。
|
|
49
|
+
|
|
50
|
+
显式删除准备先在目标准入围栏内释放 API Session 自己激活的空闲 Agent:仅使用在匹配 `resumeObserved/claim/createAgent` 调用内取得的原始 `AgentHandle.dispose`,复核原生归档、活动提供方、真实 idle phase(不包含 maintenance)和空 inbox;不通过裸 Agent 或未识别的生命周期强行卸载。等待日志句柄关闭、目标已跟踪 history follower 结束和 cache 写入排空后,重新发布持久化冷摘要,取消删除仍保留标题、归档和日志。没有明确 disposal capability 的安装前/其他所有者生命周期继续拒绝。该释放只发生于显式准备及执行复核,不在启动、列举或归档观察时自动发生。
|
|
49
51
|
|
|
50
52
|
准入只接受原生归档的冷目标,拒绝 live Session/Agent、turn/job/subagent/schedule、尚未释放的 SessionHandle、query lease、history follower、cache dirty 和迁移准备。不能识别目标的安装前 follower 保守拒绝;不隐式停止其他会话。实例 guard 保留 Cordis caller shadow context,覆盖原生 Workspace 队列执行与写入前复核、SessionStore 准入、JSONL create/open/低层读写、cache 实际 put、完整 query/SQLite queue。全局 header/historical-corpus 读帧在执行前排空,新普通扫描等待 scope 释放,防止跨 SID 历史读取与删除相互等待;其他 SID 的既有 current writer 不被本次删除停止。
|
|
51
53
|
|
package/package.json
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@takboo/dsh-session-bin",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.1",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Manage native archives with search, filters, unarchive, and explicit permanent deletion.",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"packageManager": "pnpm@11.23.0",
|
|
8
8
|
"engines": {
|
|
9
9
|
"node": "24.18.1",
|
|
10
|
-
"dsh": "0.2.
|
|
10
|
+
"dsh": "0.2.1-rc.1"
|
|
11
11
|
},
|
|
12
12
|
"main": "./dist/index.js",
|
|
13
13
|
"types": "./dist/index.d.ts",
|
|
@@ -53,64 +53,64 @@
|
|
|
53
53
|
"build": "tsc --emitDeclarationOnly && tsc --project tsconfig.client.json --emitDeclarationOnly && node scripts/build.mjs",
|
|
54
54
|
"test": "node --test --test-concurrency=1 tests/*.test.mjs",
|
|
55
55
|
"verify:package": "node scripts/verify-package.mjs",
|
|
56
|
+
"verify:market": "node scripts/verify-market.mjs",
|
|
56
57
|
"verify:gui:browser": "playwright-core install --with-deps chromium",
|
|
57
58
|
"verify:gui": "node scripts/verify-gui-locales.mjs",
|
|
58
59
|
"verify:gui:locale": "node scripts/verify-gui.mjs",
|
|
59
60
|
"verify:linux": "node scripts/verify-linux.mjs",
|
|
60
61
|
"verify:platform": "node scripts/verify-platform.mjs",
|
|
61
|
-
"verify": "pnpm run check && pnpm run build && pnpm run test && pnpm run verify:package"
|
|
62
|
+
"verify": "pnpm run verify:market && pnpm run check && pnpm run build && pnpm run test && pnpm run verify:package"
|
|
62
63
|
},
|
|
63
64
|
"peerDependencies": {
|
|
64
|
-
"@deepseek-ai/cordis": "4.0.
|
|
65
|
-
"@deepseek-ai/dsh": "0.2.
|
|
66
|
-
"@deepseek-ai/dsh-api-gateway": "0.2.
|
|
67
|
-
"@deepseek-ai/dsh-session": "0.2.
|
|
68
|
-
"@deepseek-ai/dsh-session-persistence": "0.2.
|
|
69
|
-
"@deepseek-ai/dsh-session-persistence-jsonl": "0.2.
|
|
70
|
-
"@deepseek-ai/dsh-storage-domain": "0.2.
|
|
71
|
-
"@deepseek-ai/dsh-typert-registry": "0.2.
|
|
72
|
-
"@deepseek-ai/dsh-workspace": "0.2.
|
|
65
|
+
"@deepseek-ai/cordis": "4.0.5",
|
|
66
|
+
"@deepseek-ai/dsh": "0.2.1-rc.1",
|
|
67
|
+
"@deepseek-ai/dsh-api-gateway": "0.2.1-rc.1",
|
|
68
|
+
"@deepseek-ai/dsh-session": "0.2.1-rc.1",
|
|
69
|
+
"@deepseek-ai/dsh-session-persistence": "0.2.1-rc.1",
|
|
70
|
+
"@deepseek-ai/dsh-session-persistence-jsonl": "0.2.1-rc.1",
|
|
71
|
+
"@deepseek-ai/dsh-storage-domain": "0.2.1-rc.1",
|
|
72
|
+
"@deepseek-ai/dsh-typert-registry": "0.2.1-rc.1",
|
|
73
|
+
"@deepseek-ai/dsh-workspace": "0.2.1-rc.1"
|
|
73
74
|
},
|
|
74
75
|
"dependencies": {
|
|
75
|
-
"@deepseek-ai/dsh-home-paths": "0.2.
|
|
76
|
-
"@deepseek-ai/dsh-session-format-catalog": "0.2.
|
|
77
|
-
"@deepseek-ai/dsh-typert-protocol": "0.2.
|
|
76
|
+
"@deepseek-ai/dsh-home-paths": "0.2.1-rc.1",
|
|
77
|
+
"@deepseek-ai/dsh-session-format-catalog": "0.2.1-rc.1",
|
|
78
|
+
"@deepseek-ai/dsh-typert-protocol": "0.2.1-rc.1",
|
|
78
79
|
"@deepseek-ai/node-addon-system": "0.1.2",
|
|
79
|
-
"@deepseek-ai/schemastery": "3.18.
|
|
80
|
+
"@deepseek-ai/schemastery": "3.18.5",
|
|
80
81
|
"koffi": "3.1.1",
|
|
81
82
|
"zod": "4.4.3"
|
|
82
83
|
},
|
|
83
84
|
"devDependencies": {
|
|
84
|
-
"@deepseek-ai/cordis": "4.0.
|
|
85
|
-
"@deepseek-ai/cordis-plugin-loader": "1.0.
|
|
86
|
-
"@deepseek-ai/dsh": "0.2.
|
|
87
|
-
"@deepseek-ai/dsh-api-gateway": "0.2.
|
|
88
|
-
"@deepseek-ai/dsh-api-remotes": "0.2.
|
|
89
|
-
"@deepseek-ai/dsh-api-session-controller": "0.2.
|
|
90
|
-
"@deepseek-ai/dsh-api-workspace-controller": "0.2.
|
|
91
|
-
"@deepseek-ai/dsh-client-connection": "0.2.
|
|
92
|
-
"@deepseek-ai/dsh-client-locale": "0.2.
|
|
93
|
-
"@deepseek-ai/dsh-client-modules": "0.2.
|
|
94
|
-
"@deepseek-ai/dsh-client-store": "0.2.
|
|
95
|
-
"@deepseek-ai/dsh-client-ui-layout": "0.2.
|
|
96
|
-
"@deepseek-ai/dsh-client-ui-primitives": "0.2.
|
|
97
|
-
"@deepseek-ai/dsh-client-ui-renderer": "0.2.
|
|
98
|
-
"@deepseek-ai/dsh-client-ui-session": "0.2.
|
|
99
|
-
"@deepseek-ai/dsh-client-ui-sidebar": "0.2.
|
|
100
|
-
"@deepseek-ai/dsh-client-ui-slots": "0.2.
|
|
101
|
-
"@deepseek-ai/dsh-client-ui-workspace": "0.2.
|
|
102
|
-
"@deepseek-ai/dsh-
|
|
103
|
-
"@deepseek-ai/dsh-session": "0.2.
|
|
104
|
-
"@deepseek-ai/dsh-session-persistence": "0.2.
|
|
105
|
-
"@deepseek-ai/dsh-
|
|
106
|
-
"@deepseek-ai/dsh-storage": "0.2.
|
|
107
|
-
"@deepseek-ai/dsh-storage-
|
|
108
|
-
"@deepseek-ai/dsh-
|
|
109
|
-
"@deepseek-ai/dsh-typert-
|
|
110
|
-
"@deepseek-ai/dsh-
|
|
111
|
-
"@deepseek-ai/dsh-util-
|
|
112
|
-
"@deepseek-ai/dsh-
|
|
113
|
-
"@deepseek-ai/dsh-workspace": "0.2.0-rc.2",
|
|
85
|
+
"@deepseek-ai/cordis": "4.0.5",
|
|
86
|
+
"@deepseek-ai/cordis-plugin-loader": "1.0.6",
|
|
87
|
+
"@deepseek-ai/dsh": "0.2.1-rc.1",
|
|
88
|
+
"@deepseek-ai/dsh-api-gateway": "0.2.1-rc.1",
|
|
89
|
+
"@deepseek-ai/dsh-api-remotes": "0.2.1-rc.1",
|
|
90
|
+
"@deepseek-ai/dsh-api-session-controller": "0.2.1-rc.1",
|
|
91
|
+
"@deepseek-ai/dsh-api-workspace-controller": "0.2.1-rc.1",
|
|
92
|
+
"@deepseek-ai/dsh-client-connection": "0.2.1-rc.1",
|
|
93
|
+
"@deepseek-ai/dsh-client-locale": "0.2.1-rc.1",
|
|
94
|
+
"@deepseek-ai/dsh-client-modules": "0.2.1-rc.1",
|
|
95
|
+
"@deepseek-ai/dsh-client-store": "0.2.1-rc.1",
|
|
96
|
+
"@deepseek-ai/dsh-client-ui-layout": "0.2.1-rc.1",
|
|
97
|
+
"@deepseek-ai/dsh-client-ui-primitives": "0.2.1-rc.1",
|
|
98
|
+
"@deepseek-ai/dsh-client-ui-renderer": "0.2.1-rc.1",
|
|
99
|
+
"@deepseek-ai/dsh-client-ui-session": "0.2.1-rc.1",
|
|
100
|
+
"@deepseek-ai/dsh-client-ui-sidebar": "0.2.1-rc.1",
|
|
101
|
+
"@deepseek-ai/dsh-client-ui-slots": "0.2.1-rc.1",
|
|
102
|
+
"@deepseek-ai/dsh-client-ui-workspace": "0.2.1-rc.1",
|
|
103
|
+
"@deepseek-ai/dsh-session": "0.2.1-rc.1",
|
|
104
|
+
"@deepseek-ai/dsh-session-persistence": "0.2.1-rc.1",
|
|
105
|
+
"@deepseek-ai/dsh-session-persistence-jsonl": "0.2.1-rc.1",
|
|
106
|
+
"@deepseek-ai/dsh-storage": "0.2.1-rc.1",
|
|
107
|
+
"@deepseek-ai/dsh-storage-domain": "0.2.1-rc.1",
|
|
108
|
+
"@deepseek-ai/dsh-storage-json": "0.2.1-rc.1",
|
|
109
|
+
"@deepseek-ai/dsh-typert-protocol": "0.2.1-rc.1",
|
|
110
|
+
"@deepseek-ai/dsh-typert-registry": "0.2.1-rc.1",
|
|
111
|
+
"@deepseek-ai/dsh-util-code-language": "0.2.1-rc.1",
|
|
112
|
+
"@deepseek-ai/dsh-util-workspace-path": "0.2.1-rc.1",
|
|
113
|
+
"@deepseek-ai/dsh-workspace": "0.2.1-rc.1",
|
|
114
114
|
"@shikijs/langs": "4.5.0",
|
|
115
115
|
"@types/node": "24.7.0",
|
|
116
116
|
"@types/react": "18.3.1",
|
|
@@ -140,7 +140,8 @@
|
|
|
140
140
|
"simple-icons": "16.31.0",
|
|
141
141
|
"typescript": "5.9.3",
|
|
142
142
|
"yaml": "2.8.1",
|
|
143
|
-
"zustand": "4.4.7"
|
|
143
|
+
"zustand": "4.4.7",
|
|
144
|
+
"@deepseek-ai/dsh-api-remote-access": "0.2.1-rc.1"
|
|
144
145
|
},
|
|
145
146
|
"author": "takboo",
|
|
146
147
|
"repository": {
|