dsh-dynamic-context 0.1.1-rc.34 → 0.1.1-rc.35
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/CHANGELOG.md +3 -3
- package/DSH-COMPATIBILITY.json +7 -8
- package/README.md +3 -3
- package/RELEASING.md +2 -2
- package/VALIDATION.md +1 -1
- package/host.mjs +1 -1
- package/package.json +39 -39
- package/test/interaction.test.mjs +1 -1
- package/test/interop.test.mjs +1 -1
- package/test/revision.test.mjs +1 -1
- package/test/supervision.test.mjs +1 -1
- package/testing/harness.mjs +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
# 0.1.1-rc.
|
|
1
|
+
# 0.1.1-rc.35 — DSH compatibility line
|
|
2
2
|
|
|
3
|
-
- Pin this build to its listed DSH releases and pair it with the other plugin on RC slot
|
|
4
|
-
- Use the native Session plugin record API.
|
|
3
|
+
- Pin this build to its listed DSH releases and pair it with the other plugin on RC slot 5.
|
|
4
|
+
- Use the native Session plugin record API. Adapt the Web read endpoint to the native Session lookup of this host generation.
|
|
5
5
|
|
|
6
6
|
# 0.1.0-rc.24 — task-graph prerequisite and graph provenance (2026-11-13)
|
|
7
7
|
|
package/DSH-COMPATIBILITY.json
CHANGED
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"schema": 1,
|
|
3
3
|
"updateRound": 3,
|
|
4
|
-
"slot":
|
|
5
|
-
"branch": "0.2.1-alpha.
|
|
6
|
-
"host": "0.2.1-alpha.
|
|
4
|
+
"slot": 5,
|
|
5
|
+
"branch": "0.2.1-alpha.2",
|
|
6
|
+
"host": "0.2.1-alpha.2",
|
|
7
7
|
"hosts": [
|
|
8
|
-
"0.2.1-alpha.
|
|
9
|
-
"0.2.1-alpha.3"
|
|
8
|
+
"0.2.1-alpha.2"
|
|
10
9
|
],
|
|
11
|
-
"channel": "dsh-0.2.1-alpha.
|
|
12
|
-
"taskgraph": "0.3.1-rc.
|
|
13
|
-
"dynamicContext": "0.1.1-rc.
|
|
10
|
+
"channel": "dsh-0.2.1-alpha.2",
|
|
11
|
+
"taskgraph": "0.3.1-rc.35",
|
|
12
|
+
"dynamicContext": "0.1.1-rc.35"
|
|
14
13
|
}
|
package/README.md
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
# dsh-dynamic-context:动态上下文与受控请求通道
|
|
2
2
|
|
|
3
|
-
本构建版本为 `0.1.1-rc.
|
|
3
|
+
本构建版本为 `0.1.1-rc.35`。适用宿主和配套版本见 [兼容清单](DSH-COMPATIBILITY.json)。
|
|
4
4
|
|
|
5
|
-
分支 `0.2.1-alpha.
|
|
5
|
+
分支 `0.2.1-alpha.2` 对应 npm 标签 `dsh-0.2.1-alpha.2`,适用于 DSH `0.2.1-alpha.2`,Node.js 要求为 `^22.19.0 || >=24.0.0`。请在同一 DSH profile 先安装 `dsh-bettertaskgraphs@0.3.1-rc.35`,再安装 `dsh-dynamic-context@0.1.1-rc.35`。Bundle 初装默认关闭,完成配置并启用后为新对话提供会话模式选择。
|
|
6
6
|
|
|
7
7
|
前置插件:[dsh-bettertaskgraphs](https://github.com/oldcitynight/dsh-bettertaskgraphs)。开源协议为 GPL-3.0-only;复制的 DeepSeek 压缩策略另保留原 MIT 声明。验证范围和独立测试方法见 [VALIDATION.md](VALIDATION.md)。GitHub 源码发布与 npm 包发布是不同步骤,当前候选可从源码构建安装包。
|
|
8
8
|
|
|
@@ -17,7 +17,7 @@ TMPDIR="$PWD/.test-tmp" npm test
|
|
|
17
17
|
npm run pack:bundle
|
|
18
18
|
```
|
|
19
19
|
|
|
20
|
-
源码构建依赖任务图 `0.3.1-rc.
|
|
20
|
+
源码构建依赖任务图 `0.3.1-rc.35`。该版本发布前,先将同一批次的任务图 tarball 加入 npm 缓存,再执行 npm ci。运行配置见 `examples/`。
|
|
21
21
|
|
|
22
22
|
候选包的独立支持范围是 direct。`native-guarded` 仅为开发对照,依赖另行安装的 context-guard wire hook;干净 DSH 没有该补丁时,在认领任务和创建执行 Agent 前拒绝运行。发布包不修改 DSH 适配器来启用该对照通道。
|
|
23
23
|
|
package/RELEASING.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
## 0.1.1-rc.
|
|
1
|
+
## 0.1.1-rc.35 维护线
|
|
2
2
|
|
|
3
|
-
DSH `0.2.1-alpha.
|
|
3
|
+
DSH `0.2.1-alpha.2`。同批配对任务图 `0.3.1-rc.35` 和动态上下文 `0.1.1-rc.35`,npm 通道为 `dsh-0.2.1-alpha.2`。兼容清单随 Bundle 分发。
|
|
4
4
|
|
|
5
5
|
# 发布候选包 rc.24
|
|
6
6
|
|
package/VALIDATION.md
CHANGED
package/host.mjs
CHANGED
|
@@ -19,7 +19,7 @@ import Shell from '@deepseek-ai/dsh-bash-sandbox'
|
|
|
19
19
|
import * as ShellEnv from '@deepseek-ai/dsh-shell-env'
|
|
20
20
|
import Skills from '@deepseek-ai/dsh-skill'
|
|
21
21
|
import * as Observations from '@deepseek-ai/dsh-fs-observation-policy'
|
|
22
|
-
import
|
|
22
|
+
import Persistence from '@deepseek-ai/dsh-session-persistence-jsonl'
|
|
23
23
|
import TaskGraph from 'dsh-bettertaskgraphs'
|
|
24
24
|
import * as DynamicContext from './index.mjs'
|
|
25
25
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dsh-dynamic-context",
|
|
3
|
-
"version": "0.1.1-rc.
|
|
3
|
+
"version": "0.1.1-rc.35",
|
|
4
4
|
"description": "Task-scoped direct model execution, native tools and durable context checkpoints for DeepSeek Harness",
|
|
5
5
|
"license": "GPL-3.0-only",
|
|
6
6
|
"type": "module",
|
|
@@ -64,7 +64,7 @@
|
|
|
64
64
|
],
|
|
65
65
|
"engines": {
|
|
66
66
|
"node": "^22.19.0 || >=24.0.0",
|
|
67
|
-
"dsh": "0.2.1-alpha.
|
|
67
|
+
"dsh": "0.2.1-alpha.2"
|
|
68
68
|
},
|
|
69
69
|
"scripts": {
|
|
70
70
|
"test": "node scripts/test.mjs",
|
|
@@ -79,41 +79,41 @@
|
|
|
79
79
|
"zod": "4.6.7"
|
|
80
80
|
},
|
|
81
81
|
"peerDependencies": {
|
|
82
|
-
"@deepseek-ai/dsh-fs": "0.2.1-alpha.
|
|
83
|
-
"@deepseek-ai/dsh-credentials-local": "0.2.1-alpha.
|
|
84
|
-
"@deepseek-ai/dsh-authorization": "0.2.1-alpha.
|
|
85
|
-
"@deepseek-ai/dsh-deepseek-account-platform": "0.2.1-alpha.
|
|
86
|
-
"dsh-bettertaskgraphs": "0.3.1-rc.
|
|
82
|
+
"@deepseek-ai/dsh-fs": "0.2.1-alpha.2",
|
|
83
|
+
"@deepseek-ai/dsh-credentials-local": "0.2.1-alpha.2",
|
|
84
|
+
"@deepseek-ai/dsh-authorization": "0.2.1-alpha.2",
|
|
85
|
+
"@deepseek-ai/dsh-deepseek-account-platform": "0.2.1-alpha.2",
|
|
86
|
+
"dsh-bettertaskgraphs": "0.3.1-rc.35",
|
|
87
87
|
"@deepseek-ai/cordis": "4.0.5",
|
|
88
|
-
"@deepseek-ai/dsh-agent": "0.2.1-alpha.
|
|
89
|
-
"@deepseek-ai/dsh-agent-instructions": "0.2.1-alpha.
|
|
90
|
-
"@deepseek-ai/dsh-home-paths": "0.2.1-alpha.
|
|
91
|
-
"@deepseek-ai/dsh-llm": "0.2.1-alpha.
|
|
92
|
-
"@deepseek-ai/dsh-sandbox-policy": "0.2.1-alpha.
|
|
93
|
-
"@deepseek-ai/dsh-scope": "0.2.1-alpha.
|
|
94
|
-
"@deepseek-ai/dsh-session": "0.2.1-alpha.
|
|
95
|
-
"@deepseek-ai/dsh-tools": "0.2.1-alpha.
|
|
96
|
-
"@deepseek-ai/dsh-user-approval": "0.2.1-alpha.
|
|
97
|
-
"@deepseek-ai/dsh-tool-fs": "0.2.1-alpha.
|
|
98
|
-
"@deepseek-ai/dsh-tool-fs-search": "0.2.1-alpha.
|
|
99
|
-
"@deepseek-ai/dsh-tool-bash": "0.2.1-alpha.
|
|
100
|
-
"@deepseek-ai/dsh-tool-web": "0.2.1-alpha.
|
|
101
|
-
"@deepseek-ai/dsh-session-projection": "0.2.1-alpha.
|
|
102
|
-
"@deepseek-ai/dsh-system-prompt": "0.2.1-alpha.
|
|
103
|
-
"@deepseek-ai/dsh-agent-loop": "0.2.1-alpha.
|
|
104
|
-
"@deepseek-ai/dsh-token-meter": "0.2.1-alpha.
|
|
105
|
-
"@deepseek-ai/dsh-fs-sandbox": "0.2.1-alpha.
|
|
106
|
-
"@deepseek-ai/dsh-working-directory": "0.2.1-alpha.
|
|
107
|
-
"@deepseek-ai/dsh-subprocess-local": "0.2.1-alpha.
|
|
108
|
-
"@deepseek-ai/dsh-sandbox-local": "0.2.1-alpha.
|
|
109
|
-
"@deepseek-ai/dsh-bash-sandbox": "0.2.1-alpha.
|
|
110
|
-
"@deepseek-ai/dsh-shell-env": "0.2.1-alpha.
|
|
111
|
-
"@deepseek-ai/dsh-skill": "0.2.1-alpha.
|
|
112
|
-
"@deepseek-ai/dsh-fs-observation-policy": "0.2.1-alpha.
|
|
113
|
-
"@deepseek-ai/dsh-session-persistence-jsonl": "0.2.1-alpha.
|
|
114
|
-
"@deepseek-ai/dsh-tool-call-timeout-policy": "0.2.1-alpha.
|
|
115
|
-
"@deepseek-ai/dsh-llm-deepseek": "0.2.1-alpha.
|
|
116
|
-
"@deepseek-ai/dsh-user-questions": "0.2.1-alpha.
|
|
88
|
+
"@deepseek-ai/dsh-agent": "0.2.1-alpha.2",
|
|
89
|
+
"@deepseek-ai/dsh-agent-instructions": "0.2.1-alpha.2",
|
|
90
|
+
"@deepseek-ai/dsh-home-paths": "0.2.1-alpha.2",
|
|
91
|
+
"@deepseek-ai/dsh-llm": "0.2.1-alpha.2",
|
|
92
|
+
"@deepseek-ai/dsh-sandbox-policy": "0.2.1-alpha.2",
|
|
93
|
+
"@deepseek-ai/dsh-scope": "0.2.1-alpha.2",
|
|
94
|
+
"@deepseek-ai/dsh-session": "0.2.1-alpha.2",
|
|
95
|
+
"@deepseek-ai/dsh-tools": "0.2.1-alpha.2",
|
|
96
|
+
"@deepseek-ai/dsh-user-approval": "0.2.1-alpha.2",
|
|
97
|
+
"@deepseek-ai/dsh-tool-fs": "0.2.1-alpha.2",
|
|
98
|
+
"@deepseek-ai/dsh-tool-fs-search": "0.2.1-alpha.2",
|
|
99
|
+
"@deepseek-ai/dsh-tool-bash": "0.2.1-alpha.2",
|
|
100
|
+
"@deepseek-ai/dsh-tool-web": "0.2.1-alpha.2",
|
|
101
|
+
"@deepseek-ai/dsh-session-projection": "0.2.1-alpha.2",
|
|
102
|
+
"@deepseek-ai/dsh-system-prompt": "0.2.1-alpha.2",
|
|
103
|
+
"@deepseek-ai/dsh-agent-loop": "0.2.1-alpha.2",
|
|
104
|
+
"@deepseek-ai/dsh-token-meter": "0.2.1-alpha.2",
|
|
105
|
+
"@deepseek-ai/dsh-fs-sandbox": "0.2.1-alpha.2",
|
|
106
|
+
"@deepseek-ai/dsh-working-directory": "0.2.1-alpha.2",
|
|
107
|
+
"@deepseek-ai/dsh-subprocess-local": "0.2.1-alpha.2",
|
|
108
|
+
"@deepseek-ai/dsh-sandbox-local": "0.2.1-alpha.2",
|
|
109
|
+
"@deepseek-ai/dsh-bash-sandbox": "0.2.1-alpha.2",
|
|
110
|
+
"@deepseek-ai/dsh-shell-env": "0.2.1-alpha.2",
|
|
111
|
+
"@deepseek-ai/dsh-skill": "0.2.1-alpha.2",
|
|
112
|
+
"@deepseek-ai/dsh-fs-observation-policy": "0.2.1-alpha.2",
|
|
113
|
+
"@deepseek-ai/dsh-session-persistence-jsonl": "0.2.1-alpha.2",
|
|
114
|
+
"@deepseek-ai/dsh-tool-call-timeout-policy": "0.2.1-alpha.2",
|
|
115
|
+
"@deepseek-ai/dsh-llm-deepseek": "0.2.1-alpha.2",
|
|
116
|
+
"@deepseek-ai/dsh-user-questions": "0.2.1-alpha.2"
|
|
117
117
|
},
|
|
118
118
|
"dsh": {
|
|
119
119
|
"bundle": {
|
|
@@ -122,12 +122,12 @@
|
|
|
122
122
|
},
|
|
123
123
|
"publishConfig": {
|
|
124
124
|
"access": "public",
|
|
125
|
-
"tag": "dsh-0.2.1-alpha.
|
|
125
|
+
"tag": "dsh-0.2.1-alpha.2",
|
|
126
126
|
"registry": "https://registry.npmjs.org/"
|
|
127
127
|
},
|
|
128
128
|
"devDependencies": {
|
|
129
|
-
"@deepseek-ai/dsh": "0.2.1-alpha.
|
|
130
|
-
"dsh-bettertaskgraphs": "0.3.1-rc.
|
|
129
|
+
"@deepseek-ai/dsh": "0.2.1-alpha.2",
|
|
130
|
+
"dsh-bettertaskgraphs": "0.3.1-rc.35"
|
|
131
131
|
},
|
|
132
132
|
"homepage": "https://github.com/oldcitynight/dsh-dynamic-context#readme",
|
|
133
133
|
"repository": {
|
|
@@ -4,7 +4,7 @@ import fs from 'node:fs'
|
|
|
4
4
|
import os from 'node:os'
|
|
5
5
|
import path from 'node:path'
|
|
6
6
|
import UserQuestions from '@deepseek-ai/dsh-user-questions'
|
|
7
|
-
import
|
|
7
|
+
import Persistence from '@deepseek-ai/dsh-session-persistence-jsonl'
|
|
8
8
|
import TaskGraph from 'dsh-bettertaskgraphs'
|
|
9
9
|
import { createUserMessage } from '@deepseek-ai/dsh-llm'
|
|
10
10
|
import { createRuntimeHarness, runtimeProposal } from '../testing/runtime-harness.mjs'
|
package/test/interop.test.mjs
CHANGED
|
@@ -3,7 +3,7 @@ import assert from 'node:assert/strict'
|
|
|
3
3
|
import fs from 'node:fs'
|
|
4
4
|
import os from 'node:os'
|
|
5
5
|
import path from 'node:path'
|
|
6
|
-
import
|
|
6
|
+
import Persistence from '@deepseek-ai/dsh-session-persistence-jsonl'
|
|
7
7
|
import TaskGraphPlugin from 'dsh-bettertaskgraphs'
|
|
8
8
|
import { createRuntimeHarness, runtimeProposal } from '../testing/runtime-harness.mjs'
|
|
9
9
|
|
package/test/revision.test.mjs
CHANGED
|
@@ -168,7 +168,7 @@ for (const altered of [false, true]) test(`retained context references are resol
|
|
|
168
168
|
test('host workflow revise port binds the real controller without global goal injection and rejects worker elevation', async t => {
|
|
169
169
|
const {createRuntimeHarness}=await import('../testing/runtime-harness.mjs');
|
|
170
170
|
const {default:TaskGraph}=await import('dsh-bettertaskgraphs');
|
|
171
|
-
const Persistence=await import('@deepseek-ai/dsh-session-persistence-jsonl');
|
|
171
|
+
const Persistence=await import('@deepseek-ai/dsh-session-persistence-jsonl').then(module => module.default);
|
|
172
172
|
const root=fs.realpathSync(fs.mkdtempSync(path.join(os.tmpdir(),'revision-controller-'))), projectRoot=path.join(root,'workspace');fs.mkdirSync(projectRoot);
|
|
173
173
|
const h=await createRuntimeHarness({projectRoot,directory:path.join(root,'state'),config:{storageRoot:root,revision:{policy},exposeControlTools:true,direct:{durable:true},interop:{workflowId:'revision-fixture'}},
|
|
174
174
|
setup:async ctx=>{await ctx.plugin(Persistence,{root:path.join(root,'sessions')});await ctx.plugin(TaskGraph,{projectRoot});},
|
|
@@ -629,7 +629,7 @@ test('a fabricated failed tool identifier cannot close the attempt', async t =>
|
|
|
629
629
|
|
|
630
630
|
test('the real workflow port and controller schema expose only the supervised continuation', async t => {
|
|
631
631
|
const { default: TaskGraph } = await import('dsh-bettertaskgraphs')
|
|
632
|
-
const Persistence = await import('@deepseek-ai/dsh-session-persistence-jsonl')
|
|
632
|
+
const Persistence = await import('@deepseek-ai/dsh-session-persistence-jsonl').then(module => module.default)
|
|
633
633
|
const h = await fixture(t, ({ index }) => index === 1 ? result('COMPLETE', 'Prepared report.') : index === 2 ? accept : current, {
|
|
634
634
|
runtime: true, config: { exposeControlTools: true, interop: { workflowId: 'supervision-fixture' } },
|
|
635
635
|
setup: async (ctx, projectRoot, root) => {
|
package/testing/harness.mjs
CHANGED
|
@@ -9,7 +9,7 @@ import AgentRegistry from '@deepseek-ai/dsh-agent'
|
|
|
9
9
|
import AgentLoop from '@deepseek-ai/dsh-agent-loop'
|
|
10
10
|
import TokenMeter from '@deepseek-ai/dsh-token-meter'
|
|
11
11
|
import TaskGraph from 'dsh-bettertaskgraphs'
|
|
12
|
-
import
|
|
12
|
+
import Persistence from '@deepseek-ai/dsh-session-persistence-jsonl'
|
|
13
13
|
import SandboxPolicy from '@deepseek-ai/dsh-sandbox-policy'
|
|
14
14
|
import Filesystem from '@deepseek-ai/dsh-fs-sandbox'
|
|
15
15
|
import WorkingDirectory from '@deepseek-ai/dsh-working-directory'
|