dsh-plugin-om 0.0.65 → 0.0.66
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/types.d.ts +8 -1
- package/dist/types.d.ts.map +1 -1
- package/package.json +47 -46
package/dist/types.d.ts
CHANGED
|
@@ -4,7 +4,8 @@
|
|
|
4
4
|
* MessageNode/MessageIndex/CompleteMessage(完整消息索引)与 compaction 载荷扩展。
|
|
5
5
|
* 各 dsh-* 包通过 declare module 增强 Context/Events,使 ctx.tools 等获得宿主一致类型;
|
|
6
6
|
* 本文件同时向宿主 MessageSourceMap 声明插件自产消息的 producer-owned source
|
|
7
|
-
* ('plugin:dsh-plugin-om',见 constants.ts),使写入的 source
|
|
7
|
+
* ('plugin:dsh-plugin-om',见 constants.ts),使写入的 source 形态原生可类型化,
|
|
8
|
+
* 并向 LlmRequestPurposeMap 声明压缩请求的 purpose。
|
|
8
9
|
*/
|
|
9
10
|
import type { Context, EventOptions, Events } from '@deepseek-ai/cordis';
|
|
10
11
|
import type { Agent } from '@deepseek-ai/dsh-agent';
|
|
@@ -35,6 +36,12 @@ declare module '@deepseek-ai/dsh-llm' {
|
|
|
35
36
|
'skill-invocation': SkillInvocationSource;
|
|
36
37
|
}
|
|
37
38
|
}
|
|
39
|
+
declare module '@deepseek-ai/dsh-llm/types' {
|
|
40
|
+
interface LlmRequestPurposeMap {
|
|
41
|
+
/** 压缩会话请求:辅助调用,适配器作为模型不可见的传输元数据携带。 */
|
|
42
|
+
compaction: true;
|
|
43
|
+
}
|
|
44
|
+
}
|
|
38
45
|
declare module '@deepseek-ai/dsh-session/types' {
|
|
39
46
|
/**
|
|
40
47
|
* 本插件的 plugin record(ignorable,不进 surface):类型名与载荷见 om-event.ts。
|
package/dist/types.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"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E,IAAI,EAAE,MAAM,GAAG,WAAW,GAAG,UAAU,GAAG,OAAO,CAAC;IAClD,wEAAwE;IACxE,IAAI,EAAE,MAAM,EAAE,CAAC;IACf,2BAA2B;IAC3B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,6BAA6B;IAC7B,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB,CAAC;AAEF;;;;GAIG;AACH,MAAM,MAAM,wBAAwB,GAAG,eAAe,CAAC,oBAAoB,CAAC,GAAG;IAC7E,qCAAqC;IACrC,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,0BAA0B;IAC1B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,0BAA0B;IAC1B,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,mBAAmB;IACnB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,qCAAqC;IACrC,eAAe,CAAC,EAAE,MAAM,CAAC;CAC1B,CAAC;AAEF;;;;GAIG;AACH,MAAM,MAAM,oBAAoB,GAAG,eAAe,CAAC,gBAAgB,CAAC,GAAG;IACrE,iDAAiD;IACjD,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,0BAA0B;IAC1B,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB,CAAC;AAEF;;;GAGG;AACH,MAAM,MAAM,sBAAsB,GAAG,eAAe,CAAC,kBAAkB,CAAC,GAAG;IACzE,oCAAoC;IACpC,KAAK,EAAE,SAAS,GAAG,SAAS,CAAC;CAC9B,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dsh-plugin-om",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.66",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Observational Memory style context compaction and verbatim recall for DSH",
|
|
6
6
|
"main": "./dist/index.mjs",
|
|
@@ -78,50 +78,51 @@
|
|
|
78
78
|
},
|
|
79
79
|
"devDependencies": {
|
|
80
80
|
"@biomejs/biome": "^2.5.8",
|
|
81
|
-
"@deepseek-ai/cordis": "~4.0
|
|
82
|
-
"@deepseek-ai/cordis-plugin-loader": "1.0
|
|
83
|
-
"@deepseek-ai/dsh-agent": "0.2.
|
|
84
|
-
"@deepseek-ai/dsh-agent-loop": "0.2.
|
|
85
|
-
"@deepseek-ai/dsh-api-remotes": "0.2.
|
|
86
|
-
"@deepseek-ai/dsh-api-session-controller": "0.2.
|
|
87
|
-
"@deepseek-ai/dsh-attachment": "0.2.
|
|
88
|
-
"@deepseek-ai/dsh-attachment-local": "0.2.
|
|
89
|
-
"@deepseek-ai/dsh-brand": "0.2.
|
|
90
|
-
"@deepseek-ai/dsh-client-locale": "0.2.
|
|
91
|
-
"@deepseek-ai/dsh-client-store": "0.2.
|
|
92
|
-
"@deepseek-ai/dsh-client-ui-chat": "0.2.
|
|
93
|
-
"@deepseek-ai/dsh-client-ui-commands": "0.2.
|
|
94
|
-
"@deepseek-ai/dsh-client-ui-conversation": "0.2.
|
|
95
|
-
"@deepseek-ai/dsh-client-ui-model-selection": "0.2.
|
|
96
|
-
"@deepseek-ai/dsh-client-ui-plugin-manager": "0.2.
|
|
97
|
-
"@deepseek-ai/dsh-client-ui-primitives": "0.2.
|
|
98
|
-
"@deepseek-ai/dsh-client-ui-renderer": "0.2.
|
|
99
|
-
"@deepseek-ai/dsh-client-ui-settings": "0.2.
|
|
100
|
-
"@deepseek-ai/dsh-client-ui-slots": "0.2.
|
|
101
|
-
"@deepseek-ai/dsh-client-ui-workspace": "0.2.
|
|
102
|
-
"@deepseek-ai/dsh-commands": "0.2.
|
|
103
|
-
"@deepseek-ai/dsh-compaction": "0.2.
|
|
104
|
-
"@deepseek-ai/dsh-compaction-tool-result-pruner": "0.2.
|
|
105
|
-
"@deepseek-ai/dsh-llm": "0.2.
|
|
106
|
-
"@deepseek-ai/dsh-llm-pi-ai": "0.2.
|
|
107
|
-
"@deepseek-ai/dsh-scope": "0.2.
|
|
108
|
-
"@deepseek-ai/dsh-session": "0.2.
|
|
109
|
-
"@deepseek-ai/dsh-session-format-v3-to-v4": "0.2.
|
|
110
|
-
"@deepseek-ai/dsh-session-log-export": "0.2.
|
|
111
|
-
"@deepseek-ai/dsh-session-persistence": "0.2.
|
|
112
|
-
"@deepseek-ai/dsh-session-persistence-jsonl": "0.2.
|
|
113
|
-
"@deepseek-ai/dsh-session-projection": "0.2.
|
|
114
|
-
"@deepseek-ai/dsh-session-query": "0.2.
|
|
115
|
-
"@deepseek-ai/dsh-session-query-sqlite": "0.2.
|
|
116
|
-
"@deepseek-ai/dsh-subagent": "0.2.
|
|
117
|
-
"@deepseek-ai/dsh-system-prompt": "0.2.
|
|
118
|
-
"@deepseek-ai/dsh-token-meter": "0.2.
|
|
119
|
-
"@deepseek-ai/dsh-
|
|
120
|
-
"@deepseek-ai/dsh-
|
|
121
|
-
"@deepseek-ai/dsh-
|
|
122
|
-
"@deepseek-ai/dsh-util-
|
|
123
|
-
"@deepseek-ai/dsh-
|
|
124
|
-
"@deepseek-ai/dsh-
|
|
81
|
+
"@deepseek-ai/cordis": "~4.1.0",
|
|
82
|
+
"@deepseek-ai/cordis-plugin-loader": "1.1.0",
|
|
83
|
+
"@deepseek-ai/dsh-agent": "0.2.2-rc.1",
|
|
84
|
+
"@deepseek-ai/dsh-agent-loop": "0.2.2-rc.1",
|
|
85
|
+
"@deepseek-ai/dsh-api-remotes": "0.2.2-rc.1",
|
|
86
|
+
"@deepseek-ai/dsh-api-session-controller": "0.2.2-rc.1",
|
|
87
|
+
"@deepseek-ai/dsh-attachment": "0.2.2-rc.1",
|
|
88
|
+
"@deepseek-ai/dsh-attachment-local": "0.2.2-rc.1",
|
|
89
|
+
"@deepseek-ai/dsh-brand": "0.2.2-rc.1",
|
|
90
|
+
"@deepseek-ai/dsh-client-locale": "0.2.2-rc.1",
|
|
91
|
+
"@deepseek-ai/dsh-client-store": "0.2.2-rc.1",
|
|
92
|
+
"@deepseek-ai/dsh-client-ui-chat": "0.2.2-rc.1",
|
|
93
|
+
"@deepseek-ai/dsh-client-ui-commands": "0.2.2-rc.1",
|
|
94
|
+
"@deepseek-ai/dsh-client-ui-conversation": "0.2.2-rc.1",
|
|
95
|
+
"@deepseek-ai/dsh-client-ui-model-selection": "0.2.2-rc.1",
|
|
96
|
+
"@deepseek-ai/dsh-client-ui-plugin-manager": "0.2.2-rc.1",
|
|
97
|
+
"@deepseek-ai/dsh-client-ui-primitives": "0.2.2-rc.1",
|
|
98
|
+
"@deepseek-ai/dsh-client-ui-renderer": "0.2.2-rc.1",
|
|
99
|
+
"@deepseek-ai/dsh-client-ui-settings": "0.2.2-rc.1",
|
|
100
|
+
"@deepseek-ai/dsh-client-ui-slots": "0.2.2-rc.1",
|
|
101
|
+
"@deepseek-ai/dsh-client-ui-workspace": "0.2.2-rc.1",
|
|
102
|
+
"@deepseek-ai/dsh-commands": "0.2.2-rc.1",
|
|
103
|
+
"@deepseek-ai/dsh-compaction": "0.2.2-rc.1",
|
|
104
|
+
"@deepseek-ai/dsh-compaction-tool-result-pruner": "0.2.2-rc.1",
|
|
105
|
+
"@deepseek-ai/dsh-llm": "0.2.2-rc.1",
|
|
106
|
+
"@deepseek-ai/dsh-llm-pi-ai": "0.2.2-rc.1",
|
|
107
|
+
"@deepseek-ai/dsh-scope": "0.2.2-rc.1",
|
|
108
|
+
"@deepseek-ai/dsh-session": "0.2.2-rc.1",
|
|
109
|
+
"@deepseek-ai/dsh-session-format-v3-to-v4": "0.2.2-rc.1",
|
|
110
|
+
"@deepseek-ai/dsh-session-log-export": "0.2.2-rc.1",
|
|
111
|
+
"@deepseek-ai/dsh-session-persistence": "0.2.2-rc.1",
|
|
112
|
+
"@deepseek-ai/dsh-session-persistence-jsonl": "0.2.2-rc.1",
|
|
113
|
+
"@deepseek-ai/dsh-session-projection": "0.2.2-rc.1",
|
|
114
|
+
"@deepseek-ai/dsh-session-query": "0.2.2-rc.1",
|
|
115
|
+
"@deepseek-ai/dsh-session-query-sqlite": "0.2.2-rc.1",
|
|
116
|
+
"@deepseek-ai/dsh-subagent": "0.2.2-rc.1",
|
|
117
|
+
"@deepseek-ai/dsh-system-prompt": "0.2.2-rc.1",
|
|
118
|
+
"@deepseek-ai/dsh-token-meter": "0.2.2-rc.1",
|
|
119
|
+
"@deepseek-ai/dsh-tool-executor-native": "0.2.2-rc.1",
|
|
120
|
+
"@deepseek-ai/dsh-tools": "0.2.2-rc.1",
|
|
121
|
+
"@deepseek-ai/dsh-user-approval": "0.2.2-rc.1",
|
|
122
|
+
"@deepseek-ai/dsh-util-code-language": "0.2.2-rc.1",
|
|
123
|
+
"@deepseek-ai/dsh-util-workspace-path": "0.2.2-rc.1",
|
|
124
|
+
"@deepseek-ai/dsh-working-directory": "0.2.2-rc.1",
|
|
125
|
+
"@deepseek-ai/dsh-workspace": "0.2.2-rc.1",
|
|
125
126
|
"@shikijs/langs": "^4.4.3",
|
|
126
127
|
"@types/node": "^22.20.0",
|
|
127
128
|
"@types/react": "~18.3.1",
|
|
@@ -157,7 +158,7 @@
|
|
|
157
158
|
"zustand": "~4.4.7"
|
|
158
159
|
},
|
|
159
160
|
"dependencies": {
|
|
160
|
-
"@deepseek-ai/schemastery": "3.
|
|
161
|
+
"@deepseek-ai/schemastery": "3.19.0",
|
|
161
162
|
"@huggingface/transformers": "4.2.0",
|
|
162
163
|
"@xmldom/xmldom": "0.9.11"
|
|
163
164
|
}
|