@f-o-h/cli 0.1.18 → 0.1.20

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 +19 -2
  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.18`
7
+ Current published baseline: `@f-o-h/cli@0.1.20`
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
@@ -10076,6 +10076,9 @@ function credentialsFromEnv(apiUrlOverride, env = process.env) {
10076
10076
  ...isUsableOrgId(orgId) ? { orgId } : {}
10077
10077
  };
10078
10078
  }
10079
+ function hasEnvCredentials(env = process.env) {
10080
+ return Boolean(normalizeEnv(env[SERVICE_TOKEN_ENV]));
10081
+ }
10079
10082
  function loadCredentials(apiUrlOverride) {
10080
10083
  const envCreds = credentialsFromEnv(apiUrlOverride);
10081
10084
  if (envCreds) return envCreds;
@@ -10859,6 +10862,15 @@ function registerOrg(program3) {
10859
10862
  apiUrlOverride: opts.apiUrl
10860
10863
  });
10861
10864
  const creds = loadCredentials(opts.apiUrl);
10865
+ if (hasEnvCredentials()) {
10866
+ format({
10867
+ status: "ok",
10868
+ default_org_id: opts.org,
10869
+ persisted: false,
10870
+ note: "FOH_SERVICE_TOKEN is active; pass --org or set FOH_ORG_ID to persist default org for this environment."
10871
+ }, { json: opts.json ?? false });
10872
+ return;
10873
+ }
10862
10874
  saveCredentials({ ...creds, orgId: opts.org });
10863
10875
  format({ status: "ok", default_org_id: opts.org, note: "--org flag is now optional" }, { json: opts.json ?? false });
10864
10876
  }));
@@ -32681,7 +32693,7 @@ var StdioServerTransport = class {
32681
32693
  };
32682
32694
 
32683
32695
  // src/lib/cli-version.ts
32684
- var CLI_VERSION = "0.1.18";
32696
+ var CLI_VERSION = "0.1.20";
32685
32697
 
32686
32698
  // src/commands/mcp-serve.ts
32687
32699
  var DEFAULT_TIMEOUT_MS = 12e4;
@@ -38450,7 +38462,7 @@ var EXTERNAL_AGENT_RUN_DIR_ENV = "FOH_EXTERNAL_AGENT_RUN_DIR";
38450
38462
  var EXTERNAL_AGENT_PROMPT_VERSION_ENV = "FOH_EXTERNAL_AGENT_PROMPT_VERSION";
38451
38463
  var SECRET_RE3 = /\b(?:Bearer\s+)?(?:sk|pk|xai|whsec|EAAN|ghp|gho|github_pat|npm_)[A-Za-z0-9_\-.]{12,}\b/gi;
38452
38464
  function redactText(value) {
38453
- return value.replace(SECRET_RE3, "[redacted_secret]");
38465
+ return redactExternalAgentSecretText(value).replace(SECRET_RE3, "[redacted_secret]");
38454
38466
  }
38455
38467
  function redactPath(value) {
38456
38468
  let redacted = redactText(value);
@@ -38971,6 +38983,11 @@ function copyCommandCaptureArtifacts(input) {
38971
38983
  const commandLog = (0, import_path12.join)(input.captureDir, "commands.ndjson");
38972
38984
  if (!(0, import_fs14.existsSync)(commandLog)) return;
38973
38985
  (0, import_fs14.writeFileSync)((0, import_path12.join)(input.runDir, "commands.ndjson"), (0, import_fs14.readFileSync)(commandLog, "utf8"), "utf8");
38986
+ for (const name of (0, import_fs14.readdirSync)(input.captureDir)) {
38987
+ if (name.startsWith("command-output-cmd_")) {
38988
+ (0, import_fs14.copyFileSync)((0, import_path12.join)(input.captureDir, name), (0, import_path12.join)(input.runDir, name));
38989
+ }
38990
+ }
38974
38991
  }
38975
38992
  function relativeArtifactName(path2) {
38976
38993
  return (0, import_path12.basename)(path2);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@f-o-h/cli",
3
- "version": "0.1.18",
3
+ "version": "0.1.20",
4
4
  "description": "FOH CLI - AI-operator provisioning tool for Front Of House",
5
5
  "license": "UNLICENSED",
6
6
  "bin": {