@f-o-h/cli 0.1.25 → 0.1.27

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.25`
7
+ Current published baseline: `@f-o-h/cli@0.1.27`
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
@@ -10465,8 +10465,11 @@ async function storeAuthenticatedSession(params) {
10465
10465
  function sleep(ms) {
10466
10466
  return new Promise((resolve12) => setTimeout(resolve12, ms));
10467
10467
  }
10468
+ function hasExplicitTimeoutFlag(argv = process.argv) {
10469
+ return argv.some((arg) => arg === "--timeout-seconds" || arg.startsWith("--timeout-seconds="));
10470
+ }
10468
10471
  async function runDeviceLogin(opts) {
10469
- const jsonMode = Boolean(opts.json);
10472
+ const jsonMode = resolveJsonMode({ json: opts.json });
10470
10473
  let startRes;
10471
10474
  try {
10472
10475
  startRes = await fetch(`${opts.apiUrl}/v1/console/auth/device/start`, {
@@ -10502,7 +10505,8 @@ async function runDeviceLogin(opts) {
10502
10505
  expires_in: start.expires_in,
10503
10506
  poll_interval_seconds: start.interval
10504
10507
  };
10505
- const shouldWait = opts.wait !== false && !(jsonMode && !opts.timeoutSeconds);
10508
+ const hasExplicitTimeout = Boolean(opts.timeoutSeconds) || hasExplicitTimeoutFlag();
10509
+ const shouldWait = opts.wait !== false && !(jsonMode && !hasExplicitTimeout);
10506
10510
  if (!shouldWait) {
10507
10511
  format({
10508
10512
  ...startedPacket,
@@ -32694,7 +32698,7 @@ var StdioServerTransport = class {
32694
32698
  };
32695
32699
 
32696
32700
  // src/lib/cli-version.ts
32697
- var CLI_VERSION = "0.1.25";
32701
+ var CLI_VERSION = "0.1.27";
32698
32702
 
32699
32703
  // src/commands/mcp-serve.ts
32700
32704
  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.25",
3
+ "version": "0.1.27",
4
4
  "description": "FOH CLI - AI-operator provisioning tool for Front Of House",
5
5
  "license": "UNLICENSED",
6
6
  "bin": {