@f-o-h/cli 0.1.51 → 0.1.52

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 +15 -4
  2. package/dist/foh.js +25 -2
  3. package/package.json +1 -1
package/README.md CHANGED
@@ -133,14 +133,25 @@ foh eval external-agent run \
133
133
  --prompt-version blank-setup.v1
134
134
  ```
135
135
 
136
- The command writes a versioned prompt, launches an instrumented shell, captures
137
- FOH CLI commands into `commands.ndjson`, and finalizes `run.json` as an
138
- `external_agent_run.v1` artifact when the shell exits.
139
-
136
+ The command writes a versioned prompt, launches an instrumented shell, captures
137
+ FOH CLI commands into `commands.ndjson`, and finalizes `run.json` as an
138
+ `external_agent_run.v1` artifact when the shell exits.
139
+
140
140
  Run artifacts include `eval_state` so repeated benchmark runs make reuse
141
141
  explicit: org, agent, and widget reuse are expected; fresh paid phone-number
142
142
  creation is not expected.
143
143
 
144
+ ## Common Missions
145
+
146
+ | Mission | Command |
147
+ |---|---|
148
+ | Start | `foh start` |
149
+ | Setup | `foh setup --phone-mode observe --json` |
150
+ | Prove | `foh prove --agent <agent_id> --mission widget --json` |
151
+ | Debug | `foh debug --out test-results/foh-cli-diag.latest.json --json` |
152
+ | Improve | `foh bug improve --from-file <artifact.json> --json` |
153
+ | Publish | `foh agent publish --agent <agent_id> --json` |
154
+
144
155
  For a planted knowledge-miss benchmark:
145
156
 
146
157
  ```bash
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.51";
32804
+ var CLI_VERSION = "0.1.52";
32805
32805
 
32806
32806
  // src/commands/mcp-serve.ts
32807
32807
  var DEFAULT_TIMEOUT_MS = 12e4;
@@ -36486,7 +36486,7 @@ function toErrorRecord(error2) {
36486
36486
  return { message: String(error2) };
36487
36487
  }
36488
36488
  function registerDiag(program3) {
36489
- program3.command("diag").description("Collect support diagnostics bundle for current CLI/API context").requiredOption("--out <path>", "Write diagnostics bundle JSON to this file path").option("--org <id>", "Org ID to probe (default: stored org from foh org use)").option("--api-url <url>", "API base URL override").option("--json", "Output as machine-readable JSON").action(async (opts) => {
36489
+ program3.command("diag").alias("debug").description("Collect support diagnostics bundle for current CLI/API context").requiredOption("--out <path>", "Write diagnostics bundle JSON to this file path").option("--org <id>", "Org ID to probe (default: stored org from foh org use)").option("--api-url <url>", "API base URL override").option("--json", "Output as machine-readable JSON").action(async (opts) => {
36490
36490
  try {
36491
36491
  const checks = [];
36492
36492
  const generatedAt = (/* @__PURE__ */ new Date()).toISOString();
@@ -40506,6 +40506,28 @@ function installSoftExitTrap() {
40506
40506
  });
40507
40507
  }
40508
40508
 
40509
+ // src/lib/mission-help.ts
40510
+ var CLI_MISSION_EXAMPLES = [
40511
+ { mission: "Start", command: "foh start", description: "guided setup and next action selector" },
40512
+ { mission: "Setup", command: "foh setup --phone-mode observe --json", description: "create or update agent, widget, voice config, and proof scaffold" },
40513
+ { mission: "Prove", command: "foh prove --agent <agent_id> --mission widget --json", description: "produce a machine-readable proof report" },
40514
+ { mission: "Debug", command: "foh debug --out test-results/foh-cli-diag.latest.json --json", description: "collect auth/org/API diagnostics" },
40515
+ { mission: "Improve", command: "foh bug improve --from-file <artifact.json> --json", description: "convert a failure artifact into a redacted improvement packet" },
40516
+ { mission: "Publish", command: "foh agent publish --agent <agent_id> --json", description: "publish after proof gates pass" }
40517
+ ];
40518
+ function missionHelpText() {
40519
+ return [
40520
+ "",
40521
+ "Common missions:",
40522
+ ...CLI_MISSION_EXAMPLES.map((item) => ` ${item.command.padEnd(66)} ${item.description}`),
40523
+ "",
40524
+ "For AI agents: prefer --json and follow next_commands exactly when a command blocks."
40525
+ ].join("\n");
40526
+ }
40527
+ function addMissionHelp(program3) {
40528
+ program3.addHelpText("afterAll", missionHelpText());
40529
+ }
40530
+
40509
40531
  // src/index.ts
40510
40532
  installSoftExitTrap();
40511
40533
  installExternalAgentCliCompletionRecorder(recordExternalAgentCliInvocation({ argv: process.argv, cliVersion: CLI_VERSION }));
@@ -40563,6 +40585,7 @@ function writeKnownError(message, remediation) {
40563
40585
  `);
40564
40586
  }
40565
40587
  program2.name("foh").description("Front Of House CLI - AI-operator provisioning tool").version(CLI_VERSION).option("--json", "Output as machine-readable JSON").option("--api-url <url>", "Internal API base URL override (operators only)").option("--no-color", "Disable colour output");
40588
+ addMissionHelp(program2);
40566
40589
  registerAuth(program2);
40567
40590
  registerOrg(program2);
40568
40591
  registerTenant(program2);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@f-o-h/cli",
3
- "version": "0.1.51",
3
+ "version": "0.1.52",
4
4
  "description": "FOH CLI - AI-operator provisioning tool for Front Of House",
5
5
  "license": "UNLICENSED",
6
6
  "bin": {