@burtson-labs/agent-adapters-node 1.0.4 → 1.0.6
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/README.md +44 -0
- package/package.json +2 -2
package/README.md
ADDED
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
<div align="center">
|
|
2
|
+
<a href="https://burtson.ai">
|
|
3
|
+
<picture>
|
|
4
|
+
<img src="https://cdn.burtson.ai/logos/burtson-labs-logo.png" alt="Burtson Labs" width="200" style="width: 200px !important; max-width: 200px !important; height: auto; display: inline-block;" />
|
|
5
|
+
</picture>
|
|
6
|
+
</a>
|
|
7
|
+
|
|
8
|
+
# @burtson-labs/agent-adapters-node
|
|
9
|
+
|
|
10
|
+
**Node.js host adapter for the Bandit Agent Framework.**
|
|
11
|
+
|
|
12
|
+
Wires [`@burtson-labs/agent-core`](https://www.npmjs.com/package/@burtson-labs/agent-core)'s runtime to a Node process — shell execution, filesystem reads/writes, and an `AgentRuntime` factory configured for server-side hosts.
|
|
13
|
+
</div>
|
|
14
|
+
|
|
15
|
+
---
|
|
16
|
+
|
|
17
|
+
## <img src="https://api.iconify.design/lucide/package.svg?color=%23a60ee5&width=22" align="absmiddle"> Install
|
|
18
|
+
|
|
19
|
+
```bash
|
|
20
|
+
pnpm add @burtson-labs/agent-adapters-node @burtson-labs/agent-core
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
## <img src="https://api.iconify.design/lucide/puzzle.svg?color=%23a60ee5&width=22" align="absmiddle"> What's inside
|
|
24
|
+
|
|
25
|
+
- `runCommand` / `CommandRunOptions` / `CommandRunResult` — promise-wrapped `child_process.exec` with cwd, env, and timeout knobs
|
|
26
|
+
- Node-targeted `AgentRuntime` factory built on top of `createAgentRuntime` from `agent-core`
|
|
27
|
+
- Step executors that read/write files through `fs/promises`
|
|
28
|
+
|
|
29
|
+
## <img src="https://api.iconify.design/lucide/zap.svg?color=%23a60ee5&width=22" align="absmiddle"> Quick example
|
|
30
|
+
|
|
31
|
+
```ts
|
|
32
|
+
import { runCommand } from "@burtson-labs/agent-adapters-node";
|
|
33
|
+
|
|
34
|
+
const result = await runCommand("pnpm test", {
|
|
35
|
+
cwd: "/path/to/repo",
|
|
36
|
+
timeoutMs: 60_000
|
|
37
|
+
});
|
|
38
|
+
|
|
39
|
+
console.log(result.exitCode, result.stdout);
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
## License
|
|
43
|
+
|
|
44
|
+
[Apache License 2.0](LICENSE) — Copyright 2026 Burtson Labs.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@burtson-labs/agent-adapters-node",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.6",
|
|
4
4
|
"description": "Node.js adapter for the Bandit Agent Framework.",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
],
|
|
19
19
|
"license": "Apache-2.0",
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"@burtson-labs/agent-core": "1.6.
|
|
21
|
+
"@burtson-labs/agent-core": "1.6.16"
|
|
22
22
|
},
|
|
23
23
|
"scripts": {
|
|
24
24
|
"prebuild": "pnpm -C ../../.. --filter @burtson-labs/agent-core build",
|