newmark-agent 0.3.11 → 0.4.0
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/config.example.json +6 -0
- package/dist/cli-commands.d.ts +8 -0
- package/dist/cli-commands.js +216 -16
- package/dist/cli-discovery.d.ts +15 -0
- package/dist/cli-discovery.js +182 -0
- package/dist/cli-help.d.ts +2 -0
- package/dist/cli-help.js +25 -1
- package/dist/context/domain/types.d.ts +37 -0
- package/dist/context/services/context-orchestrator.js +2 -0
- package/dist/conversation-utility-host.bundle.cjs +1503 -214
- package/dist/conversation-utility-host.js +3 -0
- package/dist/core/agent.d.ts +157 -8
- package/dist/core/agent.js +1176 -112
- package/dist/core/agentKernel/agent-loop.js +29 -3
- package/dist/core/agentKernel/types.d.ts +7 -0
- package/dist/core/agentKernelRunner.d.ts +2 -0
- package/dist/core/agentKernelRunner.js +174 -27
- package/dist/core/config.d.ts +7 -2
- package/dist/core/config.js +24 -6
- package/dist/core/conversationKernel.d.ts +5 -0
- package/dist/core/conversationKernel.js +30 -1
- package/dist/core/dshCompatibility.d.ts +198 -0
- package/dist/core/dshCompatibility.js +600 -0
- package/dist/core/electronUtilityAgentClient.d.ts +4 -0
- package/dist/core/electronUtilityAgentClient.js +4 -0
- package/dist/core/electronUtilityRuntimePool.d.ts +19 -0
- package/dist/core/electronUtilityRuntimePool.js +76 -0
- package/dist/core/flow-runner.js +1 -1
- package/dist/core/mcpManager.d.ts +1 -0
- package/dist/core/mcpManager.js +100 -10
- package/dist/core/modelValidationStore.d.ts +4 -1
- package/dist/core/modelValidationStore.js +7 -1
- package/dist/core/subagent.d.ts +6 -0
- package/dist/core/subagent.js +22 -1
- package/dist/core/toolPolicy.d.ts +6 -0
- package/dist/core/toolPolicy.js +49 -1
- package/dist/core/types.d.ts +1 -1
- package/dist/core/utilityAgentProtocol.d.ts +8 -1
- package/dist/core/workspace.d.ts +15 -0
- package/dist/core/workspace.js +62 -1
- package/dist/core/wslAgentClient.d.ts +4 -0
- package/dist/core/wslAgentClient.js +4 -0
- package/dist/core/wslAgentProtocol.d.ts +8 -1
- package/dist/core/wslAgentRuntimePool.d.ts +12 -0
- package/dist/core/wslAgentRuntimePool.js +71 -0
- package/dist/launcher.js +48 -11
- package/dist/llm/provider.d.ts +9 -6
- package/dist/llm/provider.js +89 -36
- package/dist/main.js +326 -52
- package/dist/preload.js +17 -0
- package/dist/providers/chat-completions.adapter.js +42 -20
- package/dist/providers/provider-adapter.d.ts +3 -0
- package/dist/providers/provider-events.d.ts +7 -0
- package/dist/providers/provider-events.js +44 -0
- package/dist/providers/responses.adapter.js +1 -3
- package/dist/toolchain/registry/tool-registry.d.ts +13 -1
- package/dist/toolchain/registry/tool-registry.js +8 -0
- package/dist/toolchain/registry-seeder.js +51 -5
- package/dist/tools/index.js +11 -2
- package/dist/tools/nativeTools.js +5 -1
- package/dist/tui/src/adapters/core-runtime-adapter.js +40 -3
- package/dist/tui/src/app.js +47 -13
- package/dist/tui/src/render.js +23 -7
- package/dist/tui/src/state.js +61 -9
- package/dist/ui/index.html +2775 -284
- package/dist/ui/lucide-sprite.svg +26 -0
- package/dist/wsl-agent-host.bundle.cjs +1503 -214
- package/dist/wsl-agent-host.js +3 -0
- package/package.json +16 -5
|
@@ -0,0 +1,198 @@
|
|
|
1
|
+
export interface DshCompatibilityOptions {
|
|
2
|
+
env?: NodeJS.ProcessEnv;
|
|
3
|
+
homeDir?: string;
|
|
4
|
+
pathValue?: string;
|
|
5
|
+
platform?: NodeJS.Platform;
|
|
6
|
+
}
|
|
7
|
+
export interface DshMcpTemplate {
|
|
8
|
+
name: string;
|
|
9
|
+
enabled: false;
|
|
10
|
+
transport: 'stdio' | 'http';
|
|
11
|
+
command?: string;
|
|
12
|
+
args?: string[];
|
|
13
|
+
cwd?: string;
|
|
14
|
+
url?: string;
|
|
15
|
+
}
|
|
16
|
+
export interface DshMcpCandidate {
|
|
17
|
+
name: string;
|
|
18
|
+
source: string;
|
|
19
|
+
importable: boolean;
|
|
20
|
+
reason?: string;
|
|
21
|
+
envKeys: string[];
|
|
22
|
+
headerKeys: string[];
|
|
23
|
+
template?: DshMcpTemplate;
|
|
24
|
+
}
|
|
25
|
+
export interface DshConfigLayer {
|
|
26
|
+
kind: 'bundle' | 'profile' | 'home';
|
|
27
|
+
name: string;
|
|
28
|
+
path: string;
|
|
29
|
+
order: number;
|
|
30
|
+
}
|
|
31
|
+
export interface DshBundleSnapshot {
|
|
32
|
+
name: string;
|
|
33
|
+
version?: string;
|
|
34
|
+
source: string;
|
|
35
|
+
manifestPath: string;
|
|
36
|
+
patch?: string;
|
|
37
|
+
patchPath?: string;
|
|
38
|
+
patchExists: boolean;
|
|
39
|
+
unknownKeys: string[];
|
|
40
|
+
resolved: boolean;
|
|
41
|
+
}
|
|
42
|
+
export interface DshProfileSnapshot {
|
|
43
|
+
name: string;
|
|
44
|
+
source: string;
|
|
45
|
+
manifestPath: string;
|
|
46
|
+
bundles: string[];
|
|
47
|
+
unsupportedBundleEntries: number;
|
|
48
|
+
configFiles: string[];
|
|
49
|
+
layers: DshConfigLayer[];
|
|
50
|
+
unknownKeys: string[];
|
|
51
|
+
}
|
|
52
|
+
/**
|
|
53
|
+
* DSH dsh-compaction-basic 运行时 seam 到 Newmark 压缩系统的语义映射(纯元数据)。
|
|
54
|
+
* Newmark 落地为运行时等价物,而非复制 DSH 代码;DSH 发现层永不 import/execute 插件主模块。
|
|
55
|
+
*/
|
|
56
|
+
export interface DshCompactionRuntimeSemantics {
|
|
57
|
+
plugin: '@deepseek-ai/dsh-compaction-basic';
|
|
58
|
+
execution: 'native-equivalent';
|
|
59
|
+
seams: {
|
|
60
|
+
apply: {
|
|
61
|
+
dsh: string;
|
|
62
|
+
newmark: string;
|
|
63
|
+
description: string;
|
|
64
|
+
};
|
|
65
|
+
summarize: {
|
|
66
|
+
dsh: string;
|
|
67
|
+
newmark: string;
|
|
68
|
+
description: string;
|
|
69
|
+
};
|
|
70
|
+
compactIfNeeded: {
|
|
71
|
+
dsh: string;
|
|
72
|
+
newmark: string;
|
|
73
|
+
description: string;
|
|
74
|
+
};
|
|
75
|
+
compactNow: {
|
|
76
|
+
dsh: string;
|
|
77
|
+
newmark: string;
|
|
78
|
+
description: string;
|
|
79
|
+
};
|
|
80
|
+
};
|
|
81
|
+
budget: {
|
|
82
|
+
buildBlockTriggerRatio: 0.70;
|
|
83
|
+
longHistoryTriggerRatio: 0.20;
|
|
84
|
+
buildRetainRatio: 0.16;
|
|
85
|
+
longHistoryRetainRatio: 0.05;
|
|
86
|
+
newmarkSource: string;
|
|
87
|
+
};
|
|
88
|
+
cacheReuse: {
|
|
89
|
+
dshStrategy: string;
|
|
90
|
+
newmarkEquivalent: string;
|
|
91
|
+
note: string;
|
|
92
|
+
};
|
|
93
|
+
/** DSH toolResultPruner 的 Newmark 落地(压缩前裁剪大工具结果)。 */
|
|
94
|
+
toolPruning: {
|
|
95
|
+
dsh: string;
|
|
96
|
+
newmark: string;
|
|
97
|
+
thresholdChars: number;
|
|
98
|
+
};
|
|
99
|
+
}
|
|
100
|
+
/**
|
|
101
|
+
* DSH 工具层运行时语义映射(纯元数据,永不执行 DSH 插件代码)。
|
|
102
|
+
* 覆盖 DSH 的 ToolRuntime / defineTool / 工具呈现与并发分级语义,映射到
|
|
103
|
+
* Newmark 原生工具执行层。DSH 是 developer preview,schema 可能不兼容变更,
|
|
104
|
+
* 映射层 fail-soft:未识别字段保留为元数据、降级 opaque,不抛错不改写外部文件。
|
|
105
|
+
*/
|
|
106
|
+
export interface DshToolLayerRuntimeSemantics {
|
|
107
|
+
plugin: '@deepseek-ai/dsh-tools';
|
|
108
|
+
execution: 'native-equivalent';
|
|
109
|
+
seams: {
|
|
110
|
+
register: {
|
|
111
|
+
dsh: string;
|
|
112
|
+
newmark: string;
|
|
113
|
+
description: string;
|
|
114
|
+
};
|
|
115
|
+
concurrency: {
|
|
116
|
+
dsh: string;
|
|
117
|
+
newmark: string;
|
|
118
|
+
description: string;
|
|
119
|
+
};
|
|
120
|
+
presentation: {
|
|
121
|
+
dsh: string;
|
|
122
|
+
newmark: string;
|
|
123
|
+
description: string;
|
|
124
|
+
};
|
|
125
|
+
pluginDiscovery: {
|
|
126
|
+
dsh: string;
|
|
127
|
+
newmark: string;
|
|
128
|
+
description: string;
|
|
129
|
+
};
|
|
130
|
+
};
|
|
131
|
+
breakingChangeCompat: {
|
|
132
|
+
strategy: string;
|
|
133
|
+
mechanisms: string[];
|
|
134
|
+
boundary: string;
|
|
135
|
+
};
|
|
136
|
+
}
|
|
137
|
+
export interface DshCompatibilitySnapshot {
|
|
138
|
+
id: 'deepseek-harness';
|
|
139
|
+
displayName: 'DeepSeek Harness (DSH)';
|
|
140
|
+
developerPreview: true;
|
|
141
|
+
detected: boolean;
|
|
142
|
+
readOnly: true;
|
|
143
|
+
preservesUnknownFields: true;
|
|
144
|
+
dshHome: string;
|
|
145
|
+
home: {
|
|
146
|
+
path: string;
|
|
147
|
+
source: 'DSH_HOME' | 'default';
|
|
148
|
+
exists: boolean;
|
|
149
|
+
};
|
|
150
|
+
cli: {
|
|
151
|
+
command: 'dsh';
|
|
152
|
+
available: boolean;
|
|
153
|
+
path?: string;
|
|
154
|
+
version?: string;
|
|
155
|
+
packageVersion?: string;
|
|
156
|
+
};
|
|
157
|
+
package: {
|
|
158
|
+
name: '@deepseek-ai/dsh';
|
|
159
|
+
version?: string;
|
|
160
|
+
manifestPath?: string;
|
|
161
|
+
};
|
|
162
|
+
update: {
|
|
163
|
+
package: '@deepseek-ai/dsh';
|
|
164
|
+
channel: 'latest';
|
|
165
|
+
locked: false;
|
|
166
|
+
runCommand: 'npx @deepseek-ai/dsh web';
|
|
167
|
+
pluginCommand: 'dsh plugin --profile <name> add <package>';
|
|
168
|
+
repository: string;
|
|
169
|
+
documentation: string;
|
|
170
|
+
npm: string;
|
|
171
|
+
};
|
|
172
|
+
recognizedManifestKeys: ['dsh.bundle.patch', 'dsh.profile.bundles'];
|
|
173
|
+
profiles: DshProfileSnapshot[];
|
|
174
|
+
bundles: DshBundleSnapshot[];
|
|
175
|
+
mcpCandidates: DshMcpCandidate[];
|
|
176
|
+
configFiles: string[];
|
|
177
|
+
homeConfigFiles: string[];
|
|
178
|
+
unknownKeys: string[];
|
|
179
|
+
warnings: string[];
|
|
180
|
+
scannedAt: string;
|
|
181
|
+
compaction: DshCompactionRuntimeSemantics;
|
|
182
|
+
toolLayer: DshToolLayerRuntimeSemantics;
|
|
183
|
+
}
|
|
184
|
+
export declare function discoverDshCompatibility(root: string, options?: DshCompatibilityOptions): DshCompatibilitySnapshot;
|
|
185
|
+
/**
|
|
186
|
+
* DSH dsh-compaction-basic 运行时 seam 到 Newmark 压缩系统的语义映射。
|
|
187
|
+
* 纯只读元数据:描述 DSH 各运行时入口如何映射到 Newmark 的原生等价实现,
|
|
188
|
+
* 既不 import 也不 execute 任何 DSH 插件代码。
|
|
189
|
+
*/
|
|
190
|
+
export declare function dshCompactionRuntimeSemantics(): DshCompactionRuntimeSemantics;
|
|
191
|
+
/**
|
|
192
|
+
* DSH 工具层的运行时语义映射(纯只读元数据)。
|
|
193
|
+
* 描述 DSH 工具层各 seam 如何映射到 Newmark 原生工具执行层,并声明破坏性
|
|
194
|
+
* developer-preview schema 更新的 fail-soft 兼容策略。既不 import 也不 execute
|
|
195
|
+
* 任何 DSH 插件代码。
|
|
196
|
+
*/
|
|
197
|
+
export declare function dshToolLayerRuntimeSemantics(): DshToolLayerRuntimeSemantics;
|
|
198
|
+
//# sourceMappingURL=dshCompatibility.d.ts.map
|