@hachej/boring-agent 0.1.30 → 0.1.31

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.
@@ -3254,6 +3254,7 @@ async function shouldInstallPythonRuntime(options) {
3254
3254
  return true;
3255
3255
  }
3256
3256
  for (const output of options.expectedOutputs) {
3257
+ if (output === options.runtimeLayout.venvPython) continue;
3257
3258
  if (!await options.adapter.workspaceFs.exists(toWorkspaceRel2(options.runtimeLayout, output))) return true;
3258
3259
  }
3259
3260
  return false;
@@ -4379,6 +4380,13 @@ function createDefaultVercelClient(auth, opts = {}) {
4379
4380
  }
4380
4381
  };
4381
4382
  }
4383
+ function buildWorkspaceRootSetupScript(remoteRoot, workspaceRoot) {
4384
+ return [
4385
+ `if [ -L ${workspaceRoot} ]; then rm -f ${workspaceRoot}; fi`,
4386
+ `mkdir -p ${remoteRoot}`,
4387
+ `if [ ${remoteRoot} != ${workspaceRoot} ]; then ln -sfn ${remoteRoot} ${workspaceRoot} 2>/dev/null || true; fi`
4388
+ ].join("; ");
4389
+ }
4382
4390
  async function ensureVercelWorkspaceRoot(sandbox) {
4383
4391
  let rootCreated = false;
4384
4392
  if (sandbox.fs?.mkdir) {
@@ -4397,7 +4405,7 @@ async function ensureVercelWorkspaceRoot(sandbox) {
4397
4405
  }
4398
4406
  const result = await sandbox.runCommand({
4399
4407
  cmd: "sh",
4400
- args: ["-c", `mkdir -p ${VERCEL_SANDBOX_REMOTE_ROOT} && (ln -sfn ${VERCEL_SANDBOX_REMOTE_ROOT} ${VERCEL_SANDBOX_WORKSPACE_ROOT} 2>/dev/null || true)`]
4408
+ args: ["-c", buildWorkspaceRootSetupScript(VERCEL_SANDBOX_REMOTE_ROOT, VERCEL_SANDBOX_WORKSPACE_ROOT)]
4401
4409
  });
4402
4410
  if ((result.exitCode ?? 1) !== 0) {
4403
4411
  throw new Error(`failed to initialize ${VERCEL_SANDBOX_REMOTE_ROOT} (exit ${result.exitCode ?? "unknown"})`);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hachej/boring-agent",
3
- "version": "0.1.30",
3
+ "version": "0.1.31",
4
4
  "type": "module",
5
5
  "license": "MIT",
6
6
  "description": "Pane-embeddable coding agent. Ships direct/local/vercel-sandbox execution modes behind one interface.",
@@ -75,7 +75,7 @@
75
75
  "use-stick-to-bottom": "^1.1.3",
76
76
  "yaml": "^2.8.3",
77
77
  "zod": "^3.25.76",
78
- "@hachej/boring-ui-kit": "0.1.30"
78
+ "@hachej/boring-ui-kit": "0.1.31"
79
79
  },
80
80
  "devDependencies": {
81
81
  "@opentelemetry/api": "^1.9.1",