baro-ai 0.47.2 → 0.47.3

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.
@@ -7281,7 +7281,7 @@ var init_multipart_parser = __esm({
7281
7281
 
7282
7282
  // ../../node_modules/node-fetch/src/body.js
7283
7283
  import Stream3, { PassThrough } from "stream";
7284
- import { types, deprecate, promisify as promisify2 } from "util";
7284
+ import { types, deprecate, promisify as promisify3 } from "util";
7285
7285
  import { Buffer as Buffer2 } from "buffer";
7286
7286
  async function consumeBody(data) {
7287
7287
  if (data[INTERNALS].disturbed) {
@@ -7336,7 +7336,7 @@ var init_body = __esm({
7336
7336
  init_fetch_error();
7337
7337
  init_base();
7338
7338
  init_is();
7339
- pipeline = promisify2(Stream3.pipeline);
7339
+ pipeline = promisify3(Stream3.pipeline);
7340
7340
  INTERNALS = /* @__PURE__ */ Symbol("Body internals");
7341
7341
  Body = class {
7342
7342
  constructor(body, {
@@ -22136,8 +22136,8 @@ var require_websocket_server = __commonJS({
22136
22136
  import { readFileSync as readFileSync2 } from "fs";
22137
22137
 
22138
22138
  // ../baro-orchestrator/src/planning/architect-claude.ts
22139
- import { execFile } from "child_process";
22140
- import { promisify } from "util";
22139
+ import { execFile as execFile2 } from "child_process";
22140
+ import { promisify as promisify2 } from "util";
22141
22141
 
22142
22142
  // ../baro-orchestrator/src/planning/architect-prompts.ts
22143
22143
  var ARCHITECT_SYSTEM_PROMPT = `You are the architect for this engineering run. ONE focused turn, before anyone writes code.
@@ -22233,11 +22233,31 @@ function buildArchitectUserMessage(goal, projectContext) {
22233
22233
  return parts.join("\n");
22234
22234
  }
22235
22235
 
22236
- // ../baro-orchestrator/src/planning/architect-claude.ts
22236
+ // ../baro-orchestrator/src/planning/planner-claude.ts
22237
+ import { execFile } from "child_process";
22238
+ import { promisify } from "util";
22237
22239
  var execFileAsync = promisify(execFile);
22240
+ function effortTimeoutMs(effort) {
22241
+ switch (effort) {
22242
+ case "max":
22243
+ return 12e5;
22244
+ // 20 min
22245
+ case "xhigh":
22246
+ return 9e5;
22247
+ // 15 min
22248
+ case "high":
22249
+ return 48e4;
22250
+ // 8 min
22251
+ default:
22252
+ return 24e4;
22253
+ }
22254
+ }
22255
+
22256
+ // ../baro-orchestrator/src/planning/architect-claude.ts
22257
+ var execFileAsync2 = promisify2(execFile2);
22238
22258
  async function runArchitectClaude(opts) {
22239
22259
  const userMessage = buildArchitectUserMessage(opts.goal, opts.projectContext);
22240
- const { stdout } = await execFileAsync(
22260
+ const { stdout } = await execFileAsync2(
22241
22261
  opts.claudeBin ?? "claude",
22242
22262
  [
22243
22263
  "--print",
@@ -22255,7 +22275,7 @@ async function runArchitectClaude(opts) {
22255
22275
  ],
22256
22276
  {
22257
22277
  cwd: opts.cwd,
22258
- timeout: opts.timeoutMs ?? 18e4,
22278
+ timeout: opts.timeoutMs ?? effortTimeoutMs(opts.effort),
22259
22279
  maxBuffer: 16 * 1024 * 1024
22260
22280
  }
22261
22281
  );