@botbotgo/agent-harness 0.0.26 → 0.0.27
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.
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const AGENT_HARNESS_VERSION = "0.0.
|
|
1
|
+
export declare const AGENT_HARNESS_VERSION = "0.0.26";
|
package/dist/package-version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const AGENT_HARNESS_VERSION = "0.0.
|
|
1
|
+
export const AGENT_HARNESS_VERSION = "0.0.26";
|
|
@@ -133,12 +133,26 @@ function createInlineBackendResolver(workspace) {
|
|
|
133
133
|
inheritEnv: config?.inheritEnv !== false,
|
|
134
134
|
});
|
|
135
135
|
}
|
|
136
|
+
case "VfsSandbox": {
|
|
137
|
+
const rootDir = resolveBackendRootDir(config?.rootDir);
|
|
138
|
+
mkdirSync(rootDir, { recursive: true });
|
|
139
|
+
return new LocalShellBackend({
|
|
140
|
+
rootDir,
|
|
141
|
+
virtualMode: config?.virtualMode === false ? false : true,
|
|
142
|
+
timeout: typeof config?.timeout === "number" ? config.timeout : undefined,
|
|
143
|
+
maxOutputBytes: typeof config?.maxOutputBytes === "number" ? config.maxOutputBytes : undefined,
|
|
144
|
+
env: typeof config?.env === "object" && config.env
|
|
145
|
+
? Object.fromEntries(Object.entries(config.env).filter((entry) => typeof entry[1] === "string"))
|
|
146
|
+
: undefined,
|
|
147
|
+
inheritEnv: config?.inheritEnv !== false,
|
|
148
|
+
});
|
|
149
|
+
}
|
|
136
150
|
case "StateBackend":
|
|
137
151
|
return new StateBackend(runtimeLike);
|
|
138
152
|
case "StoreBackend":
|
|
139
153
|
return new StoreBackend(runtimeLike);
|
|
140
154
|
default:
|
|
141
|
-
throw new Error(`Unsupported DeepAgent backend kind "${kind}". Supported inline kinds: LocalShellBackend, StateBackend, StoreBackend, CompositeBackend.`);
|
|
155
|
+
throw new Error(`Unsupported DeepAgent backend kind "${kind}". Supported inline kinds: LocalShellBackend, VfsSandbox, StateBackend, StoreBackend, CompositeBackend.`);
|
|
142
156
|
}
|
|
143
157
|
};
|
|
144
158
|
return (runtimeLike) => {
|
|
@@ -146,6 +160,8 @@ function createInlineBackendResolver(workspace) {
|
|
|
146
160
|
switch (kind) {
|
|
147
161
|
case "LocalShellBackend":
|
|
148
162
|
return createBackend("LocalShellBackend", backendConfig, runtimeLike);
|
|
163
|
+
case "VfsSandbox":
|
|
164
|
+
return createBackend("VfsSandbox", backendConfig, runtimeLike);
|
|
149
165
|
case "StateBackend":
|
|
150
166
|
return new StateBackend(runtimeLike);
|
|
151
167
|
case "StoreBackend":
|
|
@@ -165,7 +181,7 @@ function createInlineBackendResolver(workspace) {
|
|
|
165
181
|
return new CompatibleCompositeBackend(createBackend(defaultBackendKind, stateConfig, runtimeLike), mappedRoutes);
|
|
166
182
|
}
|
|
167
183
|
default:
|
|
168
|
-
throw new Error(`Unsupported DeepAgent backend kind "${kind}". Supported inline kinds: LocalShellBackend, StateBackend, StoreBackend, CompositeBackend.`);
|
|
184
|
+
throw new Error(`Unsupported DeepAgent backend kind "${kind}". Supported inline kinds: LocalShellBackend, VfsSandbox, StateBackend, StoreBackend, CompositeBackend.`);
|
|
169
185
|
}
|
|
170
186
|
};
|
|
171
187
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@botbotgo/agent-harness",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.27",
|
|
4
4
|
"description": "Agent Harness framework package",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"packageManager": "npm@10.9.2",
|
|
@@ -29,7 +29,6 @@
|
|
|
29
29
|
}
|
|
30
30
|
},
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"@modelcontextprotocol/sdk": "^1.12.0",
|
|
33
32
|
"@langchain/anthropic": "^1.1.0",
|
|
34
33
|
"@langchain/community": "^1.1.24",
|
|
35
34
|
"@langchain/core": "^1.1.33",
|
|
@@ -39,7 +38,8 @@
|
|
|
39
38
|
"@langchain/ollama": "^1.2.6",
|
|
40
39
|
"@langchain/openai": "^1.1.0",
|
|
41
40
|
"@libsql/client": "^0.17.0",
|
|
42
|
-
"@llamaindex/ollama": "^0.1.
|
|
41
|
+
"@llamaindex/ollama": "^0.1.23",
|
|
42
|
+
"@modelcontextprotocol/sdk": "^1.12.0",
|
|
43
43
|
"deepagents": "1.8.4",
|
|
44
44
|
"langchain": "1.2.34",
|
|
45
45
|
"llamaindex": "^0.12.1",
|
|
@@ -50,7 +50,7 @@
|
|
|
50
50
|
"scripts": {
|
|
51
51
|
"build": "rm -rf dist tsconfig.tsbuildinfo && tsc -p tsconfig.json && cp -R config dist/",
|
|
52
52
|
"check": "tsc -p tsconfig.json --noEmit",
|
|
53
|
-
"test": "vitest run test/public-api.test.ts test/resource-optional-provider.test.ts test/resource-isolation.test.ts test/stock-research-app-load-harness.test.ts test/release-workflow.test.ts test/release-version.test.ts test/gitignore.test.ts test/package-lock.test.ts test/readme.test.ts test/runtime-adapter-regressions.test.ts test/tool-extension-gaps.test.ts test/checkpoint-maintenance.test.ts",
|
|
53
|
+
"test": "vitest run test/public-api.test.ts test/resource-optional-provider.test.ts test/resource-isolation.test.ts test/stock-research-app-load-harness.test.ts test/stock-research-app-run.test.ts test/release-workflow.test.ts test/release-version.test.ts test/gitignore.test.ts test/package-lock.test.ts test/readme.test.ts test/runtime-adapter-regressions.test.ts test/tool-extension-gaps.test.ts test/checkpoint-maintenance.test.ts test/llamaindex-dependency-compat.test.ts",
|
|
54
54
|
"release:prepare": "npm version patch --no-git-tag-version && node ./scripts/sync-example-version.mjs",
|
|
55
55
|
"release:pack": "npm pack --dry-run",
|
|
56
56
|
"release:publish": "npm publish --access public --registry https://registry.npmjs.org/"
|