@botbotgo/agent-harness 0.0.250 → 0.0.251

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.249";
1
+ export declare const AGENT_HARNESS_VERSION = "0.0.250";
@@ -1 +1 @@
1
- export const AGENT_HARNESS_VERSION = "0.0.249";
1
+ export const AGENT_HARNESS_VERSION = "0.0.250";
@@ -418,10 +418,7 @@ async function runFunctionToolInSubprocess(config, input, context) {
418
418
  return await new Promise((resolve, reject) => {
419
419
  const child = spawn(config.command, config.args, {
420
420
  cwd: config.cwd,
421
- env: {
422
- ...process.env,
423
- ...(config.env ?? {}),
424
- },
421
+ env: createRuntimeEnv(config.env, process.env),
425
422
  stdio: ["pipe", "pipe", "pipe"],
426
423
  });
427
424
  let stdout = "";
@@ -38,6 +38,7 @@ import { consolidateStructuredMemoryScope } from "./harness/system/runtime-memor
38
38
  import { normalizeLangMemMemoryKind, readRuntimeMemoryMaintenanceConfig, readRuntimeMemoryPolicyConfig, resolveMemoryNamespace, scoreMemoryText, } from "./harness/system/runtime-memory-policy.js";
39
39
  import { resolveRuntimeAdapterOptions } from "./support/runtime-adapter-options.js";
40
40
  import { initializeHarnessRuntime, reclaimExpiredClaimedRuns as reclaimHarnessExpiredClaimedRuns, recoverStartupRuns as recoverHarnessStartupRuns, isStaleRunningRun as isHarnessStaleRunningRun, } from "./harness/run/startup-runtime.js";
41
+ import { normalizeProcessExecutablePath } from "./support/runtime-env.js";
41
42
  import { streamHarnessRun } from "./harness/run/stream-run.js";
42
43
  import { defaultRequestedAgentId, prepareRunStart } from "./harness/run/start-run.js";
43
44
  import { buildRequestInspectionRecord, buildSessionInspectionRecord, deleteSessionRecord, deleteThreadRecord, getPublicApproval, listPublicApprovals, } from "./harness/run/thread-records.js";
@@ -180,6 +181,7 @@ export class AgentHarnessRuntime {
180
181
  constructor(workspace, runtimeAdapterOptions = {}) {
181
182
  this.workspace = workspace;
182
183
  this.runtimeAdapterOptions = runtimeAdapterOptions;
184
+ normalizeProcessExecutablePath();
183
185
  this.runtimeEntryBindings = inferRoutingBindings(this.workspace).runtimeEntryBindings;
184
186
  this.defaultRuntimeEntryBinding = this.runtimeEntryBindings[0];
185
187
  this.defaultRunRootValue = this.defaultRuntimeEntryBinding?.harnessRuntime.runRoot ?? `${this.workspace.workspaceRoot}/run-data`;
@@ -1,2 +1,3 @@
1
1
  export declare function augmentExecutablePath(pathValue: string | undefined, env?: Record<string, string | undefined> | NodeJS.ProcessEnv): string;
2
2
  export declare function createRuntimeEnv(env: Record<string, string> | undefined, baseEnv?: Record<string, string | undefined> | NodeJS.ProcessEnv): Record<string, string>;
3
+ export declare function normalizeProcessExecutablePath(env?: NodeJS.ProcessEnv): string;
@@ -55,3 +55,8 @@ export function createRuntimeEnv(env, baseEnv = process.env) {
55
55
  merged.PATH = augmentExecutablePath(combinedPath, { ...base, ...(env ?? {}) });
56
56
  return merged;
57
57
  }
58
+ export function normalizeProcessExecutablePath(env = process.env) {
59
+ const normalized = augmentExecutablePath(env.PATH, env);
60
+ env.PATH = normalized;
61
+ return normalized;
62
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@botbotgo/agent-harness",
3
- "version": "0.0.250",
3
+ "version": "0.0.251",
4
4
  "description": "Workspace runtime for multi-agent applications",
5
5
  "license": "MIT",
6
6
  "type": "module",