@f-o-h/cli 0.1.38 → 0.1.39

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/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.38`
7
+ Current published baseline: `@f-o-h/cli@0.1.39`
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
@@ -9927,7 +9927,12 @@ function envelopeOk(status) {
9927
9927
  function dedupeCommands(commands = []) {
9928
9928
  return Array.from(new Set(commands.map((command) => String(command || "").trim()).filter(Boolean)));
9929
9929
  }
9930
+ function defaultSafeToRetry(status) {
9931
+ return !(status === "fail" || status === "blocked" || status === "hold");
9932
+ }
9930
9933
  function cliEnvelope(input) {
9934
+ const extra = input.extra ?? {};
9935
+ const artifacts = input.artifacts ?? {};
9931
9936
  return {
9932
9937
  schema_version: input.schemaVersion ?? "foh_cli_envelope.v1",
9933
9938
  ok: envelopeOk(input.status),
@@ -9936,9 +9941,13 @@ function cliEnvelope(input) {
9936
9941
  summary: input.summary,
9937
9942
  ids: input.ids ?? {},
9938
9943
  checks: input.checks ?? [],
9939
- artifacts: input.artifacts ?? {},
9944
+ artifacts,
9945
+ spend_class: input.spendClass ?? extra.spend_class ?? null,
9946
+ safe_to_retry: input.safeToRetry ?? extra.safe_to_retry ?? defaultSafeToRetry(input.status),
9947
+ proof_artifacts: input.proofArtifacts ?? extra.proof_artifacts ?? artifacts.proof_bundle ?? artifacts.proof_report ?? null,
9948
+ operator_note: input.operatorNote ?? extra.operator_note ?? null,
9940
9949
  next_commands: dedupeCommands(input.nextCommands),
9941
- ...input.extra ?? {}
9950
+ ...extra
9942
9951
  };
9943
9952
  }
9944
9953
  function reasonCodeFromStep(step, fallback = "cli_command_failed") {
@@ -32755,7 +32764,7 @@ var StdioServerTransport = class {
32755
32764
  };
32756
32765
 
32757
32766
  // src/lib/cli-version.ts
32758
- var CLI_VERSION = "0.1.38";
32767
+ var CLI_VERSION = "0.1.39";
32759
32768
 
32760
32769
  // src/commands/mcp-serve.ts
32761
32770
  var DEFAULT_TIMEOUT_MS = 12e4;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@f-o-h/cli",
3
- "version": "0.1.38",
3
+ "version": "0.1.39",
4
4
  "description": "FOH CLI - AI-operator provisioning tool for Front Of House",
5
5
  "license": "UNLICENSED",
6
6
  "bin": {
@@ -3,7 +3,7 @@
3
3
  "$id": "https://frontofhouse.okii.uk/schemas/cli-envelope.schema.json",
4
4
  "title": "FOH CLI Envelope",
5
5
  "type": "object",
6
- "required": ["schema_version", "ok", "status", "reason_code", "summary", "ids", "checks", "artifacts", "next_commands"],
6
+ "required": ["schema_version", "ok", "status", "reason_code", "summary", "ids", "checks", "artifacts", "spend_class", "safe_to_retry", "proof_artifacts", "operator_note", "next_commands"],
7
7
  "properties": {
8
8
  "schema_version": { "type": "string" },
9
9
  "ok": { "type": "boolean" },
@@ -13,6 +13,10 @@
13
13
  "ids": { "type": "object" },
14
14
  "checks": { "type": "array" },
15
15
  "artifacts": { "type": "object" },
16
+ "spend_class": { "type": ["string", "null"] },
17
+ "safe_to_retry": { "type": "boolean" },
18
+ "proof_artifacts": { "type": ["object", "string", "null"] },
19
+ "operator_note": { "type": ["string", "null"] },
16
20
  "next_commands": {
17
21
  "type": "array",
18
22
  "items": { "type": "string" }