@sandagent/runner-cli 0.9.15 → 0.9.16-beta.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.
Files changed (2) hide show
  1. package/dist/bundle.mjs +14 -2
  2. package/package.json +5 -5
package/dist/bundle.mjs CHANGED
@@ -1209,7 +1209,7 @@ function createOpenCodeRunner(options = {}) {
1209
1209
  import { appendFileSync as appendFileSync2, existsSync as existsSync4, unlinkSync as unlinkSync3 } from "node:fs";
1210
1210
  import { join as join5 } from "node:path";
1211
1211
  import { getModel } from "@mariozechner/pi-ai";
1212
- import { AuthStorage, createAgentSession, ModelRegistry, SessionManager } from "@mariozechner/pi-coding-agent";
1212
+ import { AuthStorage, createAgentSession, createCodingTools, ModelRegistry, SessionManager } from "@mariozechner/pi-coding-agent";
1213
1213
 
1214
1214
  // ../../packages/runner-pi/dist/sandagent-resource-loader.js
1215
1215
  import { existsSync as existsSync3 } from "node:fs";
@@ -1467,12 +1467,24 @@ function createPiRunner(options = {}) {
1467
1467
  if (resourceLoader) {
1468
1468
  await resourceLoader.reload();
1469
1469
  }
1470
+ const tools = createCodingTools(cwd, {
1471
+ bash: {
1472
+ spawnHook: (ctx) => ({
1473
+ ...ctx,
1474
+ env: {
1475
+ ...ctx.env,
1476
+ ...options.env ?? {}
1477
+ }
1478
+ })
1479
+ }
1480
+ });
1470
1481
  const { session } = await createAgentSession({
1471
1482
  cwd,
1472
1483
  model,
1473
1484
  sessionManager,
1474
1485
  modelRegistry,
1475
- resourceLoader
1486
+ resourceLoader,
1487
+ tools
1476
1488
  });
1477
1489
  if (options.systemPrompt != null && options.systemPrompt !== "") {
1478
1490
  const existing = session.agent.state.systemPrompt ?? "";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sandagent/runner-cli",
3
- "version": "0.9.15",
3
+ "version": "0.9.16-beta.0",
4
4
  "description": "SandAgent Runner CLI - Like gemini-cli or claude-code, runs in your local terminal with AI SDK UI streaming",
5
5
  "type": "module",
6
6
  "bin": {
@@ -53,12 +53,12 @@
53
53
  "esbuild": "^0.27.2",
54
54
  "typescript": "^5.3.0",
55
55
  "vitest": "^1.6.1",
56
- "@sandagent/runner-core": "0.1.1-beta.0",
57
- "@sandagent/runner-claude": "0.6.2",
58
- "@sandagent/runner-codex": "0.6.2",
59
56
  "@sandagent/runner-gemini": "0.6.2",
57
+ "@sandagent/runner-pi": "0.6.4-beta.0",
58
+ "@sandagent/runner-core": "0.1.1-beta.0",
60
59
  "@sandagent/runner-opencode": "0.6.2",
61
- "@sandagent/runner-pi": "0.6.4-beta.0"
60
+ "@sandagent/runner-codex": "0.6.2",
61
+ "@sandagent/runner-claude": "0.6.2"
62
62
  },
63
63
  "scripts": {
64
64
  "build": "tsc && pnpm bundle",