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
package/dist/wsl-agent-host.js
CHANGED
|
@@ -194,6 +194,9 @@ async function handle(request) {
|
|
|
194
194
|
}
|
|
195
195
|
if (request.method === 'checkpoint')
|
|
196
196
|
return kernel.checkpoint(requestTarget(request.params));
|
|
197
|
+
if (request.method === 'context_compress') {
|
|
198
|
+
return kernel.compressContext(requestTarget(request.params), request.params.options);
|
|
199
|
+
}
|
|
197
200
|
if (request.method === 'rate_auto_route') {
|
|
198
201
|
return kernel.rateAutoRoute(requestTarget(request.params), request.params.score, request.params.routeId);
|
|
199
202
|
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "newmark-agent",
|
|
3
3
|
"productName": "Newmark Agent",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.4.0",
|
|
5
5
|
"description": "Newmark Agent — Portable AI coding agent with rich GUI and CLI (TypeScript)",
|
|
6
6
|
"homepage": "https://github.com/positer/Newmark-Agent",
|
|
7
7
|
"repository": {
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
"start:dev": "npm run build && electron .",
|
|
35
35
|
"start:cli": "node dist/launcher.js --cli",
|
|
36
36
|
"test:tui": "npm run build && npm run test:tui:built",
|
|
37
|
-
"test:tui:built": "node ../TUI/test/demo.test.js && node dist/tests/tuiLauncherVerify.js",
|
|
37
|
+
"test:tui:built": "node ../TUI/test/demo.test.js && node dist/tests/tuiLauncherVerify.js && node dist/tests/tuiStopRaceVerify.js",
|
|
38
38
|
"test:ssh-tui-stress": "npm run build && npm run test:ssh-tui-stress:built",
|
|
39
39
|
"test:ssh-tui-stress:built": "node scripts/release-ssh-tui-stress.cjs",
|
|
40
40
|
"test:wsl-tui-stress:built": "node scripts/release-wsl-tui-stress.cjs",
|
|
@@ -52,13 +52,17 @@
|
|
|
52
52
|
"check-cross-platform-env": "node scripts/check-cross-platform-env.cjs",
|
|
53
53
|
"dist:harmonyos": "node scripts/dist-harmonyos.cjs",
|
|
54
54
|
"test:desktop": "npm run build && npm run test:desktop:built",
|
|
55
|
-
|
|
55
|
+
"test:desktop:built": "node dist/tests/verify.js && node dist/tests/computerUseSessionVerify.js && node dist/tests/contextSystemV2Verify.js && node dist/tests/contextSystemV2StressVerify.js && node dist/tests/providerAdapterV2Verify.js && node dist/tests/providerTimeoutRecoveryVerify.js && node dist/tests/agentRuntimeV2Verify.js && node dist/tests/toolchainExposureV2Verify.js && node dist/tests/localOcrFallbackVerify.js && node dist/tests/dev018ModeSubagentStressVerify.js && node dist/tests/conversationBranchStressVerify.js && node dist/tests/conversationArchiveConcurrencyVerify.js && node dist/tests/conversationArchiveRuntimeVerify.js && node dist/tests/memoryPolicyVerify.js && node dist/tests/newmarkSelectVerify.js && node dist/tests/mcpManagerVerify.js && node dist/tests/dshCompatibilityVerify.js && node dist/tests/performanceOptimizationVerify.js && node scripts/compression-pressure-stress.cjs && node dist/tests/compressionFidelityVerify.js && node dist/tests/responseTrajectoryVerify.js && node dist/tests/normalChatRegressionVerify.js && node dist/tests/dev008-subagent.js && node dist/tests/dev009Verify.js && node dist/tests/runtimeIsolationVerify.js && node dist/tests/runtimePoolCapacityVerify.js && node dist/tests/guideWorkRunVerify.js && node scripts/flow-pause-stop-draft-stress.cjs && node dist/tests/guideUiReconcileVerify.js && node dist/tests/queueAttachmentIsolationVerify.js && node dist/tests/workspaceMenuVerify.js && node dist/tests/userImagePersistenceVerify.js && node dist/tests/displayImageVerify.js && node dist/tests/visualPreferencesVerify.js && node dist/tests/browserUseVerify.js && node dist/tests/toolProcessVerify.js && node dist/tests/toolProvisioningVerify.js && node dist/tests/startupPrewarmVerify.js && node dist/tests/pdfPreviewServerVerify.js && node dist/tests/editorLifecycleVerify.js && node dist/tests/terminalTakeoverVerify.js && node dist/tests/workspaceFileRouterVerify.js && node dist/tests/computerUsePerformanceVerify.js && node dist/tests/autoRouterVerify.js && node dist/tests/autoAgentIntegrationVerify.js && node dist/tests/autoRouteRatingVerify.js && node dist/tests/providerIdentityVerify.js && node dist/tests/modelValidationVerify.js && node dist/tests/modelValidationAgentIntegrationVerify.js",
|
|
56
56
|
"test:conversation-branch-stress": "npm run build && node dist/tests/conversationBranchStressVerify.js",
|
|
57
57
|
"test:conversation-archive-concurrency": "npm run build && node dist/tests/conversationArchiveConcurrencyVerify.js",
|
|
58
58
|
"test:memory-policy": "npm run build && node dist/tests/memoryPolicyVerify.js",
|
|
59
|
-
|
|
59
|
+
"test:context-system-v2": "npm run build && node dist/tests/contextSystemV2Verify.js",
|
|
60
|
+
"test:context-budget": "npm run build && node dist/tests/contextBudgetVerify.js",
|
|
61
|
+
"test:context-compression-api": "npm run build && node dist/tests/contextCompressionApiVerify.js",
|
|
62
|
+
"test:compression-pressure": "npm run build && node scripts/compression-pressure-stress.cjs",
|
|
60
63
|
"test:context-system-v2-stress": "npm run build && node dist/tests/contextSystemV2StressVerify.js",
|
|
61
64
|
"test:provider-adapter-v2": "npm run build && node dist/tests/providerAdapterV2Verify.js",
|
|
65
|
+
"test:provider-timeout-recovery": "npm run build && node dist/tests/providerTimeoutRecoveryVerify.js",
|
|
62
66
|
"test:agent-runtime-v2": "npm run build && node dist/tests/agentRuntimeV2Verify.js",
|
|
63
67
|
"test:toolchain-exposure-v2": "npm run build && node dist/tests/toolchainExposureV2Verify.js",
|
|
64
68
|
"test:temp-context-conversation-stress": "npm run build && node scripts/release-temp-context-conversation-stress.cjs",
|
|
@@ -86,10 +90,16 @@
|
|
|
86
90
|
"test:terminal-takeover": "npm run build && node dist/tests/terminalTakeoverVerify.js",
|
|
87
91
|
"test:native-bash": "npm run build && node dist/tests/nativeBashVerify.js",
|
|
88
92
|
"test:automation-bash-stress": "npm run build && node dist/tests/automationBashStressVerify.js",
|
|
89
|
-
"dist:win": "npm run build:clean &&
|
|
93
|
+
"dist:win": "npm run build:clean && node scripts/dist-portable.cjs",
|
|
90
94
|
"release": "npm run test:full-release && npm run build:clean && node scripts/dist-portable.cjs",
|
|
91
95
|
"dist:portable": "npm run test:full-release && npm run build:clean && node scripts/dist-portable.cjs",
|
|
92
96
|
"release:cli-smoke": "node scripts/release-cli-smoke.cjs",
|
|
97
|
+
"release:context-compress-cli-stress": "node scripts/release-context-compress-cli-stress.cjs",
|
|
98
|
+
"release:console-wrapper-boundary-stress": "node scripts/release-console-wrapper-boundary-stress.cjs",
|
|
99
|
+
"release:safe-installed-shape-stress": "node scripts/release-safe-installed-shape-stress.cjs",
|
|
100
|
+
"release:safe-blackbox-gates": "node scripts/release-safe-blackbox-gates.cjs",
|
|
101
|
+
"release:gui-no-model-smoke": "node scripts/release-gui-no-model-smoke.cjs",
|
|
102
|
+
"release:safe-shared-root-restart-stress": "node scripts/release-safe-shared-root-restart-stress.cjs",
|
|
93
103
|
"release:111-cli-smoke": "node scripts/release-111-cli-smoke.cjs",
|
|
94
104
|
"release:111-ui-smoke": "node scripts/release-111-ui-smoke.cjs",
|
|
95
105
|
"release:computer-use-vision-smoke": "node scripts/release-computer-use-vision-smoke.cjs",
|
|
@@ -153,6 +163,7 @@
|
|
|
153
163
|
"release:real-provider-smoke": "node scripts/release-real-provider-smoke.cjs",
|
|
154
164
|
"release:real-apinebula-memory-switch-smoke": "node scripts/release-real-apinebula-memory-switch-smoke.cjs",
|
|
155
165
|
"release:real-provider-stress": "node scripts/release-real-provider-stress.cjs",
|
|
166
|
+
"release:installed-real-model-tui-cli-stress": "node scripts/release-installed-real-model-tui-cli-stress.cjs",
|
|
156
167
|
"release:real-openai-hub-anthropic-smoke": "node scripts/real-openai-hub-anthropic-smoke.cjs",
|
|
157
168
|
"dist:win:installer": "npm run dist:windows-release",
|
|
158
169
|
"dist:linux": "node scripts/dist-linux.cjs",
|