@opengeni/runtime 0.13.3 → 0.13.10

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.
@@ -39,6 +39,7 @@ import {
39
39
  PointerButton,
40
40
  type DesktopInputRequest,
41
41
  } from "@opengeni/agent-proto";
42
+ import { redactSensitiveText } from "@opengeni/contracts";
42
43
 
43
44
  import { sandboxCommandExitCode, sandboxCommandOutput, sandboxCommandStillRunning } from "./index";
44
45
  // `stripExecBanner` is the SAME pure helper recording.ts uses to recover the raw
@@ -328,7 +329,7 @@ export class SandboxComputer implements Computer {
328
329
  // produces empty bytes, and the retry loop eventually throws. The wire-level
329
330
  // backstop in computerCallNormalizingFetch is also in place as a second net.
330
331
  console.warn(
331
- `[SandboxComputer] action command did not finish before the ${ACTION_YIELD_MS}ms yield window — proceeding to screenshot: ${cmd}`,
332
+ `[SandboxComputer] action command did not finish before the ${ACTION_YIELD_MS}ms yield window — proceeding to screenshot: ${redactSensitiveText(cmd)}`,
332
333
  );
333
334
  return output;
334
335
  }
@@ -758,7 +759,9 @@ export class NativeDesktopComputer implements Computer {
758
759
  // Exhausted the budget (or hit a terminal denial): FAIL LOUD. Log the specific
759
760
  // reason so the failure is DIAGNOSABLE (not a silent blank the model misreads),
760
761
  // then rethrow — never return "".
761
- const reason = lastError instanceof Error ? lastError.message : String(lastError);
762
+ const reason = redactSensitiveText(
763
+ lastError instanceof Error ? lastError.message : String(lastError),
764
+ );
762
765
  console.warn(
763
766
  `[NativeDesktopComputer] screenshot failed after ${attempt} attempt(s): ${reason}`,
764
767
  );