@barnum/barnum 0.0.0-main-94079f39 → 0.0.0-main-7025fec1

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.
Binary file
Binary file
Binary file
Binary file
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@barnum/barnum",
3
- "version": "0.0.0-main-94079f39",
3
+ "version": "0.0.0-main-7025fec1",
4
4
  "type": "module",
5
5
  "description": "Barnum CLI - workflow engine for agents.",
6
6
  "main": "index.ts",
package/run.ts CHANGED
@@ -32,7 +32,7 @@ function spawnBarnum(args: string[], cwd?: string): ChildProcess {
32
32
  }
33
33
 
34
34
  export interface RunOptions {
35
- entrypointValue?: string;
35
+ entrypointValue?: unknown;
36
36
  resumeFrom?: string;
37
37
  logLevel?: string;
38
38
  logFile?: string;
@@ -157,8 +157,8 @@ export class BarnumConfig {
157
157
  const args = opts?.resumeFrom
158
158
  ? ["run", "--resume-from", opts.resumeFrom]
159
159
  : ["run", "--config", JSON.stringify(config)];
160
- if (opts?.entrypointValue)
161
- args.push("--entrypoint-value", opts.entrypointValue);
160
+ if (opts?.entrypointValue != null)
161
+ args.push("--entrypoint-value", JSON.stringify(opts.entrypointValue));
162
162
  if (opts?.logLevel) args.push("--log-level", opts.logLevel);
163
163
  if (opts?.logFile) args.push("--log-file", opts.logFile);
164
164
  if (opts?.stateLog) args.push("--state-log", opts.stateLog);