@sagentlab/navarch-runtime 0.1.182 → 0.1.184

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.
@@ -16,6 +16,7 @@ const playwright_1 = require("playwright");
16
16
  const zod_1 = require("zod");
17
17
  const local_browser_cjs_1 = require("./local-browser.cjs");
18
18
  const playwright_server_cjs_1 = require("./playwright-server.cjs");
19
+ const version_cjs_1 = require("./version.cjs");
19
20
  const node_child_process_1 = require("node:child_process");
20
21
  const node_util_1 = require("node:util");
21
22
  const node_path_1 = __importDefault(require("node:path"));
@@ -103,7 +104,7 @@ async function startBrowserEvidence(options) {
103
104
  browser = await (options.launch?.() ?? launchCaptureBrowser());
104
105
  }
105
106
  catch {
106
- throw new Error("Runtime browser could not start. On the agent host run navarch-runtime browser-install. Check host browser permissions; do not change the task repository or CI to install capture tooling.");
107
+ throw new Error(`Runtime browser could not start. On the agent host run ${version_cjs_1.BROWSER_INSTALL_COMMAND}. Check host browser permissions; do not change the task repository or CI to install capture tooling.`);
107
108
  }
108
109
  for (const viewport of ["desktop", "mobile"]) {
109
110
  assertActive();
@@ -17,6 +17,7 @@ const node_path_1 = __importDefault(require("node:path"));
17
17
  const codex_cjs_1 = require("./adapters/codex.cjs");
18
18
  const browser_evidence_cjs_1 = require("./browser-evidence.cjs");
19
19
  const logger_cjs_1 = require("./logger.cjs");
20
+ const version_cjs_1 = require("./version.cjs");
20
21
  const worktree_guard_cjs_1 = require("./worktree-guard.cjs");
21
22
  const log = (0, logger_cjs_1.createLogger)("browser-probe");
22
23
  exports.BROWSER_CAPABILITY = "browser-use";
@@ -68,7 +69,7 @@ async function probeBrowserCapability(config, deps = {}) {
68
69
  return {
69
70
  status: "failed",
70
71
  reason: truncate(`Headless Chromium could not start on this machine: ${summarizeLaunchFailure(String(error))} ` +
71
- "Run `navarch-runtime browser-install`, then restart the agent."),
72
+ `Run \`${version_cjs_1.BROWSER_INSTALL_COMMAND}\`, then restart the agent.`),
72
73
  checked_at: now().toISOString(),
73
74
  };
74
75
  }
@@ -7,6 +7,7 @@ exports.registerLocalBrowserTools = registerLocalBrowserTools;
7
7
  const node_net_1 = require("node:net");
8
8
  const playwright_1 = require("playwright");
9
9
  const zod_1 = require("zod");
10
+ const version_cjs_1 = require("./version.cjs");
10
11
  /**
11
12
  * Interactive browser for services the agent starts on this machine.
12
13
  *
@@ -102,7 +103,7 @@ function createLocalBrowser(options) {
102
103
  browser ??= await options.launch();
103
104
  }
104
105
  catch {
105
- throw new Error("The local browser could not start. On the agent host run `navarch-runtime browser-install`.");
106
+ throw new Error(`The local browser could not start. On the agent host run \`${version_cjs_1.BROWSER_INSTALL_COMMAND}\`.`);
106
107
  }
107
108
  const created = await browser.newContext({
108
109
  ...(wanted === "mobile" ? playwright_1.devices["iPhone 13"] : { viewport: { width: 1440, height: 900 } }),
package/dist/redact.cjs CHANGED
@@ -14,6 +14,7 @@ const SECRET_PATTERNS = [
14
14
  /gh[pousr]_[A-Za-z0-9]{20,}/g, // GitHub PAT / OAuth / user-to-server / refresh tokens
15
15
  /github_pat_[A-Za-z0-9_]{20,}/g, // GitHub fine-grained PAT
16
16
  /\bpt-[A-Za-z0-9_-]{20,}/g, // Codeup PAT; \b excludes opt-in, {20,} excludes Tailwind pt-4 and locale pt-BR
17
+ /nfr_[A-Za-z0-9_-]{43}/g, // Dedicated Figma relay bearer
17
18
  /nvg_[A-Za-z0-9_-]{20,}(?:\.[A-Za-z0-9_-]{20,})?/g, // Navarch git grant: nvg_<payload>.<sig>
18
19
  /sk-[A-Za-z0-9-]{20,}/g, // OpenAI-compatible secret keys, incl. DeepSeek `sk-…` (hosted Pi provider)
19
20
  /\/\/[^/\s:@]+:[^/\s@]+@/g, // basic-auth userinfo in URLs (e.g. x-access-token:…@github.com clones)
package/dist/version.cjs CHANGED
@@ -1,9 +1,16 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.UPDATER_PROTOCOL_VERSION = exports.RUNTIME_VERSION = void 0;
3
+ exports.BROWSER_INSTALL_COMMAND = exports.UPDATER_PROTOCOL_VERSION = exports.RUNTIME_VERSION = void 0;
4
4
  // package.json is always included in an npm package, even though the runtime's
5
5
  // explicit `files` allowlist only names dist/bin/README.
6
6
  // eslint-disable-next-line @typescript-eslint/no-require-imports
7
7
  const packageJson = require("../package.json");
8
8
  exports.RUNTIME_VERSION = typeof packageJson.version === "string" ? packageJson.version : "0.0.0-unknown";
9
9
  exports.UPDATER_PROTOCOL_VERSION = 1;
10
+ /**
11
+ * Command shown wherever the runtime's Chromium is missing. `navarch-runtime`
12
+ * is only on PATH after a global install, so name the package through npx.
13
+ * The version pin matters: Playwright is pinned per runtime release, and each
14
+ * Playwright version wants its own Chromium build.
15
+ */
16
+ exports.BROWSER_INSTALL_COMMAND = `npx @sagentlab/navarch-runtime@${exports.RUNTIME_VERSION} browser-install`;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sagentlab/navarch-runtime",
3
- "version": "0.1.182",
3
+ "version": "0.1.184",
4
4
  "description": "Navarch machine-side session manager: claims delivery tasks and runs them through local coding agents.",
5
5
  "type": "commonjs",
6
6
  "license": "MIT",