@f-o-h/cli 0.1.27 → 0.1.28

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 +18 -9
  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.27`
7
+ Current published baseline: `@f-o-h/cli@0.1.28`
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
@@ -32698,7 +32698,7 @@ var StdioServerTransport = class {
32698
32698
  };
32699
32699
 
32700
32700
  // src/lib/cli-version.ts
32701
- var CLI_VERSION = "0.1.27";
32701
+ var CLI_VERSION = "0.1.28";
32702
32702
 
32703
32703
  // src/commands/mcp-serve.ts
32704
32704
  var DEFAULT_TIMEOUT_MS = 12e4;
@@ -38394,6 +38394,7 @@ function artifactFiles(runDir) {
38394
38394
  return (0, import_fs12.readdirSync)(runDir).map((name) => (0, import_path10.join)(runDir, name)).filter((path2) => {
38395
38395
  const stat = (0, import_fs12.statSync)(path2);
38396
38396
  const name = path2.split(/[\\/]/).pop() || "";
38397
+ if (name.endsWith(".redacted")) return false;
38397
38398
  return stat.isFile() && (TEXT_ARTIFACT_NAMES.has(name) || name.startsWith("command-output-cmd_"));
38398
38399
  }).sort();
38399
38400
  }
@@ -38973,16 +38974,23 @@ function proofArtifactPasses(runDir) {
38973
38974
  function readIfExists(path2) {
38974
38975
  return (0, import_fs14.existsSync)(path2) ? (0, import_fs14.readFileSync)(path2, "utf8") : "";
38975
38976
  }
38976
- function redactSecretLikeFile(path2) {
38977
+ function redactArtifactFile(path2, input = {}) {
38977
38978
  if (!(0, import_fs14.existsSync)(path2)) return;
38978
38979
  const original = (0, import_fs14.readFileSync)(path2, "utf8");
38979
- const redacted = redactExternalAgentSecretText(original);
38980
+ const redacted = redactExternalAgentArtifactText(original, input);
38980
38981
  if (redacted !== original) (0, import_fs14.writeFileSync)(path2, redacted, "utf8");
38981
38982
  }
38982
- function redactSecretLikeOutputArtifacts(run) {
38983
- redactSecretLikeFile(run.outputs.jsonl);
38984
- redactSecretLikeFile(run.outputs.last_message);
38985
- redactSecretLikeFile(run.outputs.stderr);
38983
+ function redactOutputArtifacts(run, input = {}) {
38984
+ redactArtifactFile(run.outputs.jsonl, input);
38985
+ redactArtifactFile(run.outputs.last_message, input);
38986
+ redactArtifactFile(run.outputs.stderr, input);
38987
+ redactArtifactFile((0, import_path12.join)(run.run_dir, "commands.ndjson"), input);
38988
+ if (!(0, import_fs14.existsSync)(run.run_dir)) return;
38989
+ for (const name of (0, import_fs14.readdirSync)(run.run_dir)) {
38990
+ if (name.startsWith("command-output-cmd_") && !name.endsWith(".redacted")) {
38991
+ redactArtifactFile((0, import_path12.join)(run.run_dir, name), input);
38992
+ }
38993
+ }
38986
38994
  }
38987
38995
  function copyCommandCaptureArtifacts(input) {
38988
38996
  const commandLog = (0, import_path12.join)(input.captureDir, "commands.ndjson");
@@ -39167,10 +39175,11 @@ async function executeExternalAgentExecutorPlan(plan, options = {}) {
39167
39175
  timeoutMs: plan.timeout_minutes * 60 * 1e3
39168
39176
  });
39169
39177
  copyCommandCaptureArtifacts({ captureDir: commandCaptureDir, runDir: run.run_dir });
39170
- redactSecretLikeOutputArtifacts(run);
39178
+ const privateRepoRoot = options.privateRepoRoot || plan.private_repo_root;
39179
+ redactOutputArtifacts(run, { privateRepoRoot });
39171
39180
  const artifactSafety = scanExternalAgentArtifacts({
39172
39181
  runDir: run.run_dir,
39173
- privateRepoRoot: options.privateRepoRoot || plan.private_repo_root,
39182
+ privateRepoRoot,
39174
39183
  writeRedacted: true
39175
39184
  });
39176
39185
  (0, import_fs14.writeFileSync)(run.outputs.artifact_safety, `${JSON.stringify(artifactSafety, null, 2)}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@f-o-h/cli",
3
- "version": "0.1.27",
3
+ "version": "0.1.28",
4
4
  "description": "FOH CLI - AI-operator provisioning tool for Front Of House",
5
5
  "license": "UNLICENSED",
6
6
  "bin": {