@f-o-h/cli 0.1.47 → 0.1.48

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.
Files changed (3) hide show
  1. package/README.md +1 -1
  2. package/dist/foh.js +29 -12
  3. package/package.json +1 -1
package/README.md CHANGED
@@ -4,7 +4,7 @@ AI-operator provisioning CLI for Front Of House.
4
4
 
5
5
  Public mirror: https://github.com/iiko38/front-of-house-cli
6
6
 
7
- Current published baseline: `@f-o-h/cli@0.1.47`
7
+ Current published baseline: `@f-o-h/cli@0.1.48`
8
8
 
9
9
  This mirror is a generated release artifact. The private product monorepo is not
10
10
  published here, and no open-source license is granted unless stated separately.
package/dist/foh.js CHANGED
@@ -32801,7 +32801,7 @@ var StdioServerTransport = class {
32801
32801
  };
32802
32802
 
32803
32803
  // src/lib/cli-version.ts
32804
- var CLI_VERSION = "0.1.47";
32804
+ var CLI_VERSION = "0.1.48";
32805
32805
 
32806
32806
  // src/commands/mcp-serve.ts
32807
32807
  var DEFAULT_TIMEOUT_MS = 12e4;
@@ -39879,9 +39879,33 @@ async function executeExternalAgentExecutorPlan(plan, options = {}) {
39879
39879
  const startedAt = (/* @__PURE__ */ new Date()).toISOString();
39880
39880
  const results = [];
39881
39881
  const runnerCommand = options.runnerCommand || resolveCodexExecutionCommand();
39882
- const authPreflight = await runExternalAgentEvalAuthPreflight(options.env);
39882
+ const authPreflight = options.env ? await runExternalAgentEvalAuthPreflight(options.env) : null;
39883
39883
  if (authPreflight && !authPreflight.ok) {
39884
39884
  const endedAt2 = (/* @__PURE__ */ new Date()).toISOString();
39885
+ const blockedResults = plan.runs.map((run) => {
39886
+ (0, import_fs15.mkdirSync)(run.run_dir, { recursive: true });
39887
+ const runArtifact = buildExecutedRunArtifact({
39888
+ run,
39889
+ startedAt,
39890
+ endedAt: endedAt2,
39891
+ status: "hold",
39892
+ reasonCode: authPreflight.reason_code,
39893
+ exitCode: null,
39894
+ timedOut: false,
39895
+ durationMs: 0
39896
+ });
39897
+ (0, import_fs15.writeFileSync)(run.outputs.run, `${JSON.stringify(runArtifact, null, 2)}
39898
+ `, "utf8");
39899
+ return {
39900
+ run_id: run.run_id,
39901
+ status: "hold",
39902
+ failure_reason_code: authPreflight.reason_code,
39903
+ exit_code: null,
39904
+ timed_out: false,
39905
+ duration_ms: 0,
39906
+ artifacts: run.outputs
39907
+ };
39908
+ });
39885
39909
  return {
39886
39910
  schema_version: "external_agent_execution_batch_result.v1",
39887
39911
  ok: false,
@@ -39892,15 +39916,7 @@ async function executeExternalAgentExecutorPlan(plan, options = {}) {
39892
39916
  ended_at: endedAt2,
39893
39917
  runner: plan.runner,
39894
39918
  run_count: plan.runs.length,
39895
- results: plan.runs.map((run) => ({
39896
- run_id: run.run_id,
39897
- status: "hold",
39898
- failure_reason_code: authPreflight.reason_code,
39899
- exit_code: null,
39900
- timed_out: false,
39901
- duration_ms: 0,
39902
- artifacts: run.outputs
39903
- }))
39919
+ results: blockedResults
39904
39920
  };
39905
39921
  }
39906
39922
  for (const run of plan.runs) {
@@ -40311,7 +40327,8 @@ Exit the shell to finalize run.json.
40311
40327
  return;
40312
40328
  }
40313
40329
  const result = await executeExternalAgentExecutorPlan(plan, {
40314
- privateRepoRoot: plan.private_repo_root
40330
+ privateRepoRoot: plan.private_repo_root,
40331
+ env: process.env
40315
40332
  });
40316
40333
  const resultPath = (0, import_path14.join)(plan.batch_dir, "execution-result.json");
40317
40334
  (0, import_fs16.writeFileSync)(resultPath, `${JSON.stringify(result, null, 2)}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@f-o-h/cli",
3
- "version": "0.1.47",
3
+ "version": "0.1.48",
4
4
  "description": "FOH CLI - AI-operator provisioning tool for Front Of House",
5
5
  "license": "UNLICENSED",
6
6
  "bin": {