baro-ai 0.28.0 → 0.29.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.
package/dist/cli.mjs CHANGED
@@ -10604,6 +10604,12 @@ function emit(event) {
10604
10604
  async function orchestrate(config) {
10605
10605
  const env = new BaroEnvironment();
10606
10606
  const emitTui = config.emitTuiEvents ?? true;
10607
+ const llm = config.llm ?? "claude";
10608
+ if (llm === "openai") {
10609
+ process.stderr.write(
10610
+ "[orchestrate] llm=openai requested \u2014 no native OpenAI siblings wired yet, falling through to Claude CLI flow. Coming in 0.29+.\n"
10611
+ );
10612
+ }
10607
10613
  if (config.auditLogPath) {
10608
10614
  mkdirSync2(dirname2(config.auditLogPath), { recursive: true });
10609
10615
  new Auditor({ path: config.auditLogPath }).join(env);
@@ -10958,6 +10964,7 @@ function parseArgs(argv) {
10958
10964
  noSentry: false,
10959
10965
  withSurgeon: false,
10960
10966
  surgeonUseLlm: false,
10967
+ llm: "claude",
10961
10968
  help: false
10962
10969
  };
10963
10970
  for (let i = 0; i < argv.length; i++) {
@@ -11018,6 +11025,16 @@ function parseArgs(argv) {
11018
11025
  10
11019
11026
  );
11020
11027
  break;
11028
+ case "--llm": {
11029
+ const v = required(argv, ++i, "--llm");
11030
+ if (v !== "claude" && v !== "openai") {
11031
+ process.stderr.write(`[cli] --llm must be 'claude' or 'openai', got '${v}'
11032
+ `);
11033
+ process.exit(2);
11034
+ }
11035
+ args.llm = v;
11036
+ break;
11037
+ }
11021
11038
  default:
11022
11039
  process.stderr.write(`[cli] unknown flag: ${a}
11023
11040
  `);
@@ -11095,10 +11112,16 @@ async function main() {
11095
11112
  withSurgeon: args.withSurgeon,
11096
11113
  surgeonUseLlm: args.surgeonUseLlm,
11097
11114
  surgeonModel: args.surgeonModel,
11098
- intraLevelDelaySecs: args.intraLevelDelaySecs
11115
+ intraLevelDelaySecs: args.intraLevelDelaySecs,
11116
+ llm: args.llm
11099
11117
  };
11118
+ if (args.llm === "openai" && !process.env.OPENAI_API_KEY) {
11119
+ process.stderr.write(
11120
+ "[cli] WARNING: --llm openai requested but OPENAI_API_KEY is not set.\n[cli] The current build falls through to Claude behaviour;\n[cli] set OPENAI_API_KEY before phase 3+ OpenAI siblings ship.\n"
11121
+ );
11122
+ }
11100
11123
  process.stderr.write(
11101
- `[cli] starting orchestrator: prd=${prdPath} cwd=${cwd} parallel=${args.parallel} timeout=${args.timeout}s
11124
+ `[cli] starting orchestrator: prd=${prdPath} cwd=${cwd} parallel=${args.parallel} timeout=${args.timeout}s llm=${args.llm}
11102
11125
  `
11103
11126
  );
11104
11127
  const startedAt = Date.now();