@max-null/dsh-allostasis 0.1.0 → 0.1.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/dist/index.js +4 -1
- package/package.json +7 -7
package/dist/index.js
CHANGED
|
@@ -57,7 +57,10 @@ export function apply(ctx) {
|
|
|
57
57
|
...decision.messages,
|
|
58
58
|
createUserMessage({
|
|
59
59
|
content: [{ type: 'text', text }],
|
|
60
|
-
|
|
60
|
+
// 内核 v4 的 source 准入接受 `plugin:<名>`(session-format-v3-to-v4 的 message-sources.spec.ts
|
|
61
|
+
// 就以 'plugin:acme' 为正例),而 dsh-llm 的 MessageSourceMap 只列官方生产者。第三方按既有实践
|
|
62
|
+
// 走双层断言 —— 已发布的 dsh-genui 同款(fence-feedback.ts:175 `as unknown as UserMessage`)。
|
|
63
|
+
source: { kind: `plugin:${name}`, form: 'snapshot', sections: [{ name, text }] },
|
|
61
64
|
}),
|
|
62
65
|
],
|
|
63
66
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@max-null/dsh-allostasis",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.1",
|
|
4
4
|
"description": "应变(allostasis):会话状态的自我调节。第一期:中文思考的漂移检测与近因锚定",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"publishConfig": {
|
|
@@ -52,9 +52,9 @@
|
|
|
52
52
|
},
|
|
53
53
|
"peerDependencies": {
|
|
54
54
|
"@deepseek-ai/cordis": "^4.0.1",
|
|
55
|
-
"@deepseek-ai/dsh-agent": "^0.1.
|
|
56
|
-
"@deepseek-ai/dsh-llm": "^0.1.
|
|
57
|
-
"@deepseek-ai/dsh-session": "^0.1.
|
|
55
|
+
"@deepseek-ai/dsh-agent": "^0.1.7-rc.2",
|
|
56
|
+
"@deepseek-ai/dsh-llm": "^0.1.7-rc.2",
|
|
57
|
+
"@deepseek-ai/dsh-session": "^0.1.7-rc.2"
|
|
58
58
|
},
|
|
59
59
|
"devDependencies": {
|
|
60
60
|
"@types/node": "^26.2.0",
|
|
@@ -62,8 +62,8 @@
|
|
|
62
62
|
"typescript": "^5.5.0",
|
|
63
63
|
"vitest": "^2.1.0",
|
|
64
64
|
"@deepseek-ai/cordis": "^4.0.1",
|
|
65
|
-
"@deepseek-ai/dsh-agent": "^0.1.
|
|
66
|
-
"@deepseek-ai/dsh-llm": "^0.1.
|
|
67
|
-
"@deepseek-ai/dsh-session": "^0.1.
|
|
65
|
+
"@deepseek-ai/dsh-agent": "^0.1.7-rc.2",
|
|
66
|
+
"@deepseek-ai/dsh-llm": "^0.1.7-rc.2",
|
|
67
|
+
"@deepseek-ai/dsh-session": "^0.1.7-rc.2"
|
|
68
68
|
}
|
|
69
69
|
}
|