@f-o-h/cli 0.1.3 → 0.1.4

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 +14 -4
  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.3`
7
+ Current published baseline: `@f-o-h/cli@0.1.4`
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
@@ -10192,10 +10192,20 @@ function buildCliSignupFallbackInstructions(signUpUrl) {
10192
10192
 
10193
10193
  // src/lib/open-url.ts
10194
10194
  var import_child_process = require("child_process");
10195
+ function buildOpenUrlCommand(url2, platform = process.platform) {
10196
+ if (platform === "win32") {
10197
+ return {
10198
+ command: "rundll32.exe",
10199
+ args: ["url.dll,FileProtocolHandler", url2]
10200
+ };
10201
+ }
10202
+ if (platform === "darwin") {
10203
+ return { command: "open", args: [url2] };
10204
+ }
10205
+ return { command: "xdg-open", args: [url2] };
10206
+ }
10195
10207
  function openUrl(url2) {
10196
- const platform = process.platform;
10197
- const command = platform === "win32" ? "cmd" : platform === "darwin" ? "open" : "xdg-open";
10198
- const args = platform === "win32" ? ["/c", "start", "", url2] : [url2];
10208
+ const { command, args } = buildOpenUrlCommand(url2);
10199
10209
  try {
10200
10210
  const child = (0, import_child_process.spawn)(command, args, {
10201
10211
  detached: true,
@@ -32350,7 +32360,7 @@ var StdioServerTransport = class {
32350
32360
  };
32351
32361
 
32352
32362
  // src/lib/cli-version.ts
32353
- var CLI_VERSION = "0.1.3";
32363
+ var CLI_VERSION = "0.1.4";
32354
32364
 
32355
32365
  // src/commands/mcp-serve.ts
32356
32366
  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.3",
3
+ "version": "0.1.4",
4
4
  "description": "FOH CLI - AI-operator provisioning tool for Front Of House",
5
5
  "license": "UNLICENSED",
6
6
  "bin": {