@f-o-h/cli 0.1.28 → 0.1.29

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 +16 -1
  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.28`
7
+ Current published baseline: `@f-o-h/cli@0.1.29`
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
@@ -32698,7 +32698,7 @@ var StdioServerTransport = class {
32698
32698
  };
32699
32699
 
32700
32700
  // src/lib/cli-version.ts
32701
- var CLI_VERSION = "0.1.28";
32701
+ var CLI_VERSION = "0.1.29";
32702
32702
 
32703
32703
  // src/commands/mcp-serve.ts
32704
32704
  var DEFAULT_TIMEOUT_MS = 12e4;
@@ -39008,6 +39008,21 @@ function relativeArtifactName(path2) {
39008
39008
  function classifyRun(input) {
39009
39009
  if (input.timedOut) return { status: "hold", reasonCode: "codex_runner_timeout" };
39010
39010
  if (!input.artifactSafetyOk) return { status: "fail", reasonCode: "external_agent_artifact_safety_blocked" };
39011
+ const completedCommands = readCommandRecords(input.run.run_dir).filter((record2) => record2.phase === "completed");
39012
+ const commandReasonCodes = completedCommands.map((record2) => String(record2.reason_code || "")).filter(Boolean);
39013
+ const hasCommandReason = (pattern) => commandReasonCodes.some((reason) => pattern.test(reason));
39014
+ if (hasCommandReason(/contact_phone_missing/i)) {
39015
+ return { status: "hold", reasonCode: "voice_contact_phone_missing" };
39016
+ }
39017
+ if (hasCommandReason(/proof_held/i)) {
39018
+ return { status: "hold", reasonCode: "external_agent_proof_held" };
39019
+ }
39020
+ if (hasCommandReason(/sim(?:ulation)?[_-]?cert(?:ify|ification)?.*failed|simulation_certification_failed/i)) {
39021
+ return { status: "hold", reasonCode: "simulation_certification_failed" };
39022
+ }
39023
+ if (hasCommandReason(/agent_limit_reached/i)) {
39024
+ return { status: "hold", reasonCode: "eval_org_agent_limit_reached" };
39025
+ }
39011
39026
  const lastMessage = readIfExists(input.run.outputs.last_message);
39012
39027
  const stderr = readIfExists(input.run.outputs.stderr);
39013
39028
  const combined = `${lastMessage}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@f-o-h/cli",
3
- "version": "0.1.28",
3
+ "version": "0.1.29",
4
4
  "description": "FOH CLI - AI-operator provisioning tool for Front Of House",
5
5
  "license": "UNLICENSED",
6
6
  "bin": {