@swmansion/argent 0.35.1-next.61 → 0.35.1-next.63

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.
package/dist/cli-cmds.mjs CHANGED
@@ -38696,7 +38696,7 @@ function isCi(env = process.env) {
38696
38696
  var SESSION_ID2 = randomUUID5();
38697
38697
  function readCliVersion() {
38698
38698
  if (true) {
38699
- return "0.35.1-next.61";
38699
+ return "0.35.1-next.63";
38700
38700
  }
38701
38701
  return "0.0.0";
38702
38702
  }
@@ -43287,6 +43287,11 @@ import * as path24 from "node:path";
43287
43287
 
43288
43288
  // ../argent-cli/src/secrets.ts
43289
43289
  var import_picocolors = __toESM(require_picocolors(), 1);
43290
+
43291
+ // ../argent-cli/src/argent-home-help.ts
43292
+ var ARGENT_HOME_LEGEND = "<argent-home> is ~/.argent, or ARGENT_HOME_DIR when set.";
43293
+
43294
+ // ../argent-cli/src/secrets.ts
43290
43295
  var LIST_OPTIONS2 = {
43291
43296
  "json": { kind: "boolean" },
43292
43297
  "secrets-file": { kind: "value" }
@@ -43310,7 +43315,8 @@ For local calls, lookup uses the working directory and environment of the
43310
43315
  1. ${SECRET_ENV_PREFIX}<NAME> in the environment
43311
43316
  2. <project>/.argent/secrets.env every key (gitignore this file)
43312
43317
  3. <project>/.env.local, then <project>/.env keys starting with ${SECRET_ENV_PREFIX}
43313
- 4. ~/.argent/secrets.env every key, any project
43318
+ 4. <argent-home>/secrets.env every key, any project
43319
+ ${ARGENT_HOME_LEGEND}
43314
43320
 
43315
43321
  Run this command from the project to check secret setup. File changes apply to
43316
43322
  the next call. Restart the MCP server to pick up environment changes.
@@ -43323,8 +43329,8 @@ A linked tool-server uses its own sources by default. With
43323
43329
  \`argent enable forward-secrets\`, client values take precedence.
43324
43330
 
43325
43331
  Examples:
43326
- echo 'APP_PASSWORD=\u2026' >> ~/.argent/secrets.env # available in every project
43327
- argent secrets # check it is picked up`);
43332
+ echo 'APP_PASSWORD=\u2026' >> "\${ARGENT_HOME_DIR:-$HOME/.argent}/secrets.env" # available in every project
43333
+ argent secrets # check it is picked up`);
43328
43334
  }
43329
43335
  async function cmdList(argv, subcommandPending = false) {
43330
43336
  if (argv.includes("--help") || argv.includes("-h")) return printUsage();
@@ -43426,7 +43432,9 @@ import * as path23 from "node:path";
43426
43432
  function degenerateProjectScopeWarning(scope, file2) {
43427
43433
  if (scope !== "project") return null;
43428
43434
  if (isHomeDir(path23.dirname(path23.dirname(file2)))) {
43429
- return `WARNING: no project found between ${process.cwd()} and your home directory \u2014 "project" scope resolved to the home directory, so this writes the GLOBAL ${path23.basename(file2, ".json")} file (${file2}).`;
43435
+ const name = path23.basename(file2, ".json");
43436
+ const writes = canonicalPath(path23.dirname(file2)) === canonicalPath(argentHomeDir()) ? `the GLOBAL ${name} file (${file2})` : `${file2}, the global ${name} file of the default Argent home (the global one of ARGENT_HOME_DIR is ${path23.join(argentHomeDir(), path23.basename(file2))})`;
43437
+ return `WARNING: no project found between ${process.cwd()} and your home directory \u2014 "project" scope resolved to the home directory, so this writes ${writes}.`;
43430
43438
  }
43431
43439
  if (findProjectRoot(process.cwd()) === null) {
43432
43440
  return `WARNING: no project markers (.argent, .git, package.json) found above ${process.cwd()} \u2014 treating it as the project root and creating ${file2}.`;
@@ -43475,8 +43483,9 @@ ${summary}
43475
43483
  ${formatAvailableFlags(registry2)}
43476
43484
 
43477
43485
  Storage:
43478
- ~/.argent/flags.json (global, default)
43486
+ <argent-home>/flags.json (global, default)
43479
43487
  <project-root>/.argent/flags.json (project, with --scope project)
43488
+ ${ARGENT_HOME_LEGEND}
43480
43489
 
43481
43490
  Options:
43482
43491
  --scope <global|project> Where to write (default: global)
@@ -43891,8 +43900,9 @@ function printUsage2() {
43891
43900
 
43892
43901
  Manage argent configuration. Values are stored at two scopes and merged per the
43893
43902
  configuration's policy:
43894
- ~/.argent/config.json (global, default)
43903
+ <argent-home>/config.json (global, default)
43895
43904
  <project-root>/.argent/config.json (project, with --scope project)
43905
+ ${ARGENT_HOME_LEGEND}
43896
43906
 
43897
43907
  Commands:
43898
43908
  list Show all configurations and their values
@@ -44641,7 +44651,7 @@ import { styleText as styleText2, stripVTControlCharacters } from "node:util";
44641
44651
  import process$1 from "node:process";
44642
44652
  var import_sisteransi2 = __toESM(require_src(), 1);
44643
44653
  import { existsSync as existsSync8, lstatSync as lstatSync3, readdirSync as readdirSync3 } from "node:fs";
44644
- import { dirname as dirname17, join as join24 } from "node:path";
44654
+ import { dirname as dirname17, join as join25 } from "node:path";
44645
44655
  function isUnicodeSupported() {
44646
44656
  if (process$1.platform !== "win32") {
44647
44657
  return process$1.env.TERM !== "linux";
@@ -45177,7 +45187,7 @@ function printLinkHelp() {
45177
45187
  console.log(`Usage: argent link [<target>] [flags]
45178
45188
 
45179
45189
  Route argent client requests (argent tools / run / mcp) to a remote tool-server
45180
- instead of auto-spawning a local one. The target is persisted to ~/.argent/link.json
45190
+ instead of auto-spawning a local one. The target is persisted to <argent-home>/link.json
45181
45191
  and survives shell restarts.
45182
45192
 
45183
45193
  <target> may be:
@@ -45194,8 +45204,9 @@ For a tunnel, point at its public URL and pass the server's token:
45194
45204
 
45195
45205
  Resolution order for the tool-server URL:
45196
45206
  1. ARGENT_TOOLS_URL environment variable (highest precedence)
45197
- 2. ~/.argent/link.json (this command)
45207
+ 2. <argent-home>/link.json (this command)
45198
45208
  3. Auto-spawn a local tool-server (default)
45209
+ ${ARGENT_HOME_LEGEND}
45199
45210
 
45200
45211
  Flags:
45201
45212
  --host <h> Remote host or IP to connect to. Prompts interactively if
@@ -45239,8 +45250,9 @@ Notes:
45239
45250
  function printUnlinkHelp() {
45240
45251
  console.log(`Usage: argent unlink [flags]
45241
45252
 
45242
- Remove the persisted remote tool-server link (~/.argent/link.json) and return
45253
+ Remove the persisted remote tool-server link (<argent-home>/link.json) and return
45243
45254
  to default local auto-spawn behaviour.
45255
+ ${ARGENT_HOME_LEGEND}
45244
45256
 
45245
45257
  Flags:
45246
45258
  --yes, -y Skip the confirmation prompt.
@@ -45592,9 +45604,10 @@ function printUsage3() {
45592
45604
  argent telemetry enable [--scope global|project] Enable telemetry
45593
45605
  argent telemetry disable [--scope global|project] Disable telemetry
45594
45606
 
45595
- The default scope is global (~/.argent/config.json). \`--scope project\` writes
45607
+ The default scope is global (<argent-home>/config.json). \`--scope project\` writes
45596
45608
  <project-root>/.argent/config.json instead \u2014 commit it and telemetry stays off
45597
45609
  for everyone who clones the repository. \`false\` in either scope wins.
45610
+ ${ARGENT_HOME_LEGEND}
45598
45611
  `);
45599
45612
  }
45600
45613
  function scopeLabel2(scope) {
@@ -46623,7 +46636,7 @@ this build does not know pass through to the file untouched, so publishing
46623
46636
  through an older install than the one reading loses nothing.
46624
46637
 
46625
46638
  To spawn these commands without relying on PATH \u2014 which an editor extension
46626
- host frequently cannot \u2014 read ~/.argent/cli.json, written by \`argent init\`
46639
+ host frequently cannot \u2014 read ${path30.join(argentHomeDir(), "cli.json")}, written by \`argent init\`
46627
46640
  and \`argent update\` and healed best-effort on every \`argent mcp\` start:
46628
46641
 
46629
46642
  { "node": "/abs/path/to/node", "cli": "/abs/path/to/dist/cli.js",
package/dist/cli.js CHANGED
@@ -95,7 +95,7 @@ async function main() {
95
95
  case "mcp": {
96
96
  const mcp = await loadMcp();
97
97
  /**
98
- * Best-effort heal of `~/.argent/cli.json`, off the startup path. A
98
+ * Best-effort heal of `<argent-home>/cli.json`, off the startup path. A
99
99
  * committed local install (`npm install` only) never runs
100
100
  * `init`/`update` and device providers need the record to find a CLI. The
101
101
  * CLI path comes from `bundlePath` so it stays on the version-stable
@@ -1,3 +1,4 @@
1
+ export declare function argentHomeDir(): string;
1
2
  export declare function installFatalHandlers(opts: {
2
3
  isMcpServer: boolean;
3
4
  }): void;
@@ -14,7 +14,7 @@
14
14
  // the production trace pointed at.
15
15
  //
16
16
  // With stdio unusable we cannot report to the parent, so we leave a
17
- // breadcrumb at `~/.argent/mcp-fatal.log`, next to the other persistent
17
+ // breadcrumb at `<argent-home>/mcp-fatal.log`, next to the other persistent
18
18
  // argent logs.
19
19
  import * as fs from "node:fs";
20
20
  import * as os from "node:os";
@@ -22,7 +22,7 @@ import * as path from "node:path";
22
22
  let installed = false;
23
23
  // A copy of `@argent/configuration-core`'s `argentHomeDir`: the dispatcher's
24
24
  // runtime files import only node builtins.
25
- function argentHomeDir() {
25
+ export function argentHomeDir() {
26
26
  const override = process.env.ARGENT_HOME_DIR?.trim();
27
27
  return override ? path.resolve(override) : path.join(os.homedir(), ".argent");
28
28
  }
@@ -1 +1 @@
1
- {"version":3,"file":"fatal-handlers.js","sourceRoot":"","sources":["../src/fatal-handlers.ts"],"names":[],"mappings":"AAAA,+DAA+D;AAC/D,EAAE;AACF,uEAAuE;AACvE,6EAA6E;AAC7E,6EAA6E;AAC7E,yEAAyE;AACzE,gEAAgE;AAChE,iEAAiE;AACjE,EAAE;AACF,4EAA4E;AAC5E,6EAA6E;AAC7E,2EAA2E;AAC3E,2EAA2E;AAC3E,mCAAmC;AACnC,EAAE;AACF,oEAAoE;AACpE,wEAAwE;AACxE,eAAe;AAEf,OAAO,KAAK,EAAE,MAAM,SAAS,CAAC;AAC9B,OAAO,KAAK,EAAE,MAAM,SAAS,CAAC;AAC9B,OAAO,KAAK,IAAI,MAAM,WAAW,CAAC;AAElC,IAAI,SAAS,GAAG,KAAK,CAAC;AAEtB,6EAA6E;AAC7E,2CAA2C;AAC3C,SAAS,aAAa;IACpB,MAAM,QAAQ,GAAG,OAAO,CAAC,GAAG,CAAC,eAAe,EAAE,IAAI,EAAE,CAAC;IACrD,OAAO,QAAQ,CAAC,CAAC,CAAC,IAAI,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC,OAAO,EAAE,EAAE,SAAS,CAAC,CAAC;AAChF,CAAC;AAED,MAAM,cAAc,GAAG,IAAI,CAAC,IAAI,CAAC,aAAa,EAAE,EAAE,eAAe,CAAC,CAAC;AAEnE,SAA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AC,CAAC,CAAC;AACL,CAAC"}
@@ -176,10 +176,11 @@ export const INSTALLER_COMMAND_META = {
176
176
  "hung; Ctrl-C to quit.",
177
177
  "",
178
178
  "It takes no options and owns stdout, so diagnostics go to stderr. Calls are",
179
- "logged to ~/.argent/mcp-calls.log (override with ARGENT_MCP_LOG), readable",
179
+ "logged to <argent-home>/mcp-calls.log (override with ARGENT_MCP_LOG), readable",
180
180
  "only by you; at 10 MiB the log moves to mcp-calls.log.1. Tools are",
181
181
  "served by the argent tool-server, spawned on demand unless ARGENT_TOOLS_URL",
182
- "or `argent link` points at one already running.",
182
+ "or `argent link` points at one already running. <argent-home> is ~/.argent,",
183
+ "or ARGENT_HOME_DIR when set.",
183
184
  "",
184
185
  "To drive the same tools from a terminal, use `argent tools` and",
185
186
  "`argent run <tool>`.",
@@ -1 +1 @@
1
- {"version":3,"file":"installer-help.js","sourceRoot":"","sources":["../src/installer-help.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH;;;;;;;GAOG;AACH,MAAM,CAAC,MAAM,kBAAkB,GAAG;IAChC,MAAM;IACN,SAAS;IACT,QAAQ;IACR,WAAW;IACX,QAAQ;IACR,KAAK;CACG,CAAC;AAIX,MAAM,UAAU,kBAAkB,CAAC,OAA2B;IAC5D,OAAO,kBAAkB,CAAC,QAAQ,CAAC,OAA2B,CAAC,CAAC;AAClE,CAAC;AAED;;;;;;GAMG;AACH,SAAS,UAAU,CAAC,GAAW;IAC7B,MAAM,KAAK,GAAG,GAAG,CAAC,WAAW,EAAE,CAAC,OAAO,CAAC,OAAO,EAAE,IAAI,CAAC,CAAC;IACvD,OAAO,KAAK,KAAK,QAAQ,IAAI,KAAK,KAAK,IAAI,IAAI,KAAK,KAAK,OAAO,IAAI,KAAK,CAAC,UAAU,CAAC,SAAS,CAAC,CAAC;AAClG,CAAC;AAED;;;;;;GAMG;AACH,MAAM,CAAC,MAAM,kBAAkB,GAAgD;IAC7E,IAAI,EAAE,CAAC,QAAQ,CAAC;IA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
- return "0.35.1-next.61";
17122
+ return "0.35.1-next.63";
17123
17123
  }
17124
17124
  return "0.0.0";
17125
17125
  }
@@ -25998,7 +25998,7 @@ async function uninstall(args) {
25998
25998
  const removed = !leftover || removable.installDir !== null && !fs26.existsSync(removable.installDir);
25999
25999
  if (removed) hasUninstalledPackage = true;
26000
26000
  if (removed && removeCliRecordFor(removable.installDir)) {
26001
- log.info(import_picocolors13.default.dim("Removed ~/.argent/cli.json (provider CLI discovery record)."));
26001
+ log.info(import_picocolors13.default.dim(`Removed ${cliRecordPath()} (provider CLI discovery record).`));
26002
26002
  }
26003
26003
  if (leftover) {
26004
26004
  throw new Error(
@@ -38255,7 +38255,7 @@ async function startMcpServer(options) {
38255
38255
  const autoDescribeOn = autoDescribeEnabled();
38256
38256
  const whatsNewOn = whatsNewEnabled();
38257
38257
  const installedVersion = getInstalledVersion();
38258
- const highlightsVersion = true ? "0.35.1-next.61" : installedVersion;
38258
+ const highlightsVersion = true ? "0.35.1-next.63" : installedVersion;
38259
38259
  const captureTimeoutMs = options.captureTimeoutMs ?? CAPTURE_TIMEOUT_MS;
38260
38260
  const trees = createTreeMemory();
38261
38261
  const screenshots = createScreenshotMemory();
@@ -869,10 +869,10 @@ function secretPlacementAdvice(name, options = {}) {
869
869
  return `To make it available, ask the user to add \`${name}=\u2026\` to ${globalFile} (or to \`.argent/${SECRETS_FILE_NAME}\` in the project), add \`${SECRET_ENV_PREFIX}${name}=\u2026\` to the project's .env / .env.local, or export ${SECRET_ENV_PREFIX}${name} in the tool-server's environment \u2014 never ask the user for the secret value itself. If this tool-server is reached through \`argent link\` or ARGENT_TOOLS_URL, the user can instead define it on the client's machine and run \`argent enable forward-secrets\` there; \`argent secrets\` there lists the sources the client reads, which this list leaves out.`;
870
870
  }
871
871
  function callerSecretPlacementAdvice(name) {
872
- return `To make it available, ask the user to add \`${name}=\u2026\` to \`.argent/${SECRETS_FILE_NAME}\` in the project the call came from, or to ~/.argent/${SECRETS_FILE_NAME}, or \`${SECRET_ENV_PREFIX}${name}=\u2026\` to the project's .env / .env.local; a file applies to the next call. An environment variable ${SECRET_ENV_PREFIX}${name} must be set where the call starts: in the shell that runs \`argent\`, or in the environment of the editor or agent that starts the argent MCP server, which then needs a restart. \`argent secrets\`, run in the project, lists what a call there can resolve. Never ask the user for the secret value itself.`;
872
+ return `To make it available, ask the user to add \`${name}=\u2026\` to \`.argent/${SECRETS_FILE_NAME}\` in the project the call came from, or to ${SECRETS_FILE_NAME} in the Argent home (\`~/.argent\` unless ARGENT_HOME_DIR moves it), or \`${SECRET_ENV_PREFIX}${name}=\u2026\` to the project's .env / .env.local; a file applies to the next call. An environment variable ${SECRET_ENV_PREFIX}${name} must be set where the call starts: in the shell that runs \`argent\`, or in the environment of the editor or agent that starts the argent MCP server, which then needs a restart. \`argent secrets\`, run in the project, lists what a call there can resolve. Never ask the user for the secret value itself.`;
873
873
  }
874
874
  function clientSecretPlacementAdvice(name) {
875
- return `To make it available, ask the user to add \`${name}=\u2026\` to ~/.argent/${SECRETS_FILE_NAME} on the client's machine (or to \`.argent/${SECRETS_FILE_NAME}\` in the project the client runs in), or to export ${SECRET_ENV_PREFIX}${name} before the client starts; \`argent secrets\` there lists the sources the client reads. Without \`forward-secrets\` on, the client sends only the file \`argent e2e run --secrets-file\` names, so add \`${SECRET_ENV_PREFIX}${name}=\u2026\` there. Never ask the user for the secret value itself.`;
875
+ return `To make it available, ask the user to add \`${name}=\u2026\` to ${SECRETS_FILE_NAME} in the Argent home on the client's machine (\`~/.argent\` unless ARGENT_HOME_DIR moves it), to \`.argent/${SECRETS_FILE_NAME}\` in the project the client runs in, or to export ${SECRET_ENV_PREFIX}${name} before the client starts; \`argent secrets\` there lists the sources the client reads. Without \`forward-secrets\` on, the client sends only the file \`argent e2e run --secrets-file\` names, so add \`${SECRET_ENV_PREFIX}${name}=\u2026\` there. Never ask the user for the secret value itself.`;
876
876
  }
877
877
  var fs4, path4, import_dotenv, SECRET_ENV_PREFIX, SECRETS_FILE_NAME, SHARED_ENV_FILES, SECRET_NAME_RE, SUMMARY_KINDS, SECRET_PLACEHOLDER_RE, REDUNDANT_PREFIX_RE;
878
878
  var init_secrets = __esm({
@@ -43269,7 +43269,7 @@ var require_view = __commonJS({
43269
43269
  var dirname29 = path77.dirname;
43270
43270
  var basename25 = path77.basename;
43271
43271
  var extname7 = path77.extname;
43272
- var join80 = path77.join;
43272
+ var join81 = path77.join;
43273
43273
  var resolve24 = path77.resolve;
43274
43274
  module2.exports = View;
43275
43275
  function View(name, options) {
@@ -43331,12 +43331,12 @@ var require_view = __commonJS({
43331
43331
  };
43332
43332
  View.prototype.resolve = function resolve25(dir, file2) {
43333
43333
  var ext = this.ext;
43334
- var path78 = join80(dir, file2);
43334
+ var path78 = join81(dir, file2);
43335
43335
  var stat11 = tryStat(path78);
43336
43336
  if (stat11 && stat11.isFile()) {
43337
43337
  return path78;
43338
43338
  }
43339
- path78 = join80(dir, basename25(file2, ext), "index" + ext);
43339
+ path78 = join81(dir, basename25(file2, ext), "index" + ext);
43340
43340
  stat11 = tryStat(path78);
43341
43341
  if (stat11 && stat11.isFile()) {
43342
43342
  return path78;
@@ -47276,7 +47276,7 @@ var require_send = __commonJS({
47276
47276
  var Stream2 = require("stream");
47277
47277
  var util = require("util");
47278
47278
  var extname7 = path77.extname;
47279
- var join80 = path77.join;
47279
+ var join81 = path77.join;
47280
47280
  var normalize = path77.normalize;
47281
47281
  var resolve24 = path77.resolve;
47282
47282
  var sep12 = path77.sep;
@@ -47448,7 +47448,7 @@ var require_send = __commonJS({
47448
47448
  return res;
47449
47449
  }
47450
47450
  parts2 = path78.split(sep12);
47451
- path78 = normalize(join80(root, path78));
47451
+ path78 = normalize(join81(root, path78));
47452
47452
  } else {
47453
47453
  if (UP_PATH_REGEXP.test(path78)) {
47454
47454
  debug('malicious path "%s"', path78);
@@ -47581,7 +47581,7 @@ var require_send = __commonJS({
47581
47581
  if (err) return self2.onStatError(err);
47582
47582
  return self2.error(404);
47583
47583
  }
47584
- var p = join80(path78, self2._index[i]);
47584
+ var p = join81(path78, self2._index[i]);
47585
47585
  debug('stat "%s"', p);
47586
47586
  fs93.stat(p, function(err2, stat11) {
47587
47587
  if (err2) return next(err2);
@@ -73041,7 +73041,7 @@ function isCi(env = process.env) {
73041
73041
  var SESSION_ID = (0, import_node_crypto3.randomUUID)();
73042
73042
  function readCliVersion() {
73043
73043
  if (true) {
73044
- return "0.35.1-next.61";
73044
+ return "0.35.1-next.63";
73045
73045
  }
73046
73046
  return "0.0.0";
73047
73047
  }
@@ -73904,7 +73904,7 @@ var import_express3 = __toESM(require_express2());
73904
73904
  var import_bytes2 = __toESM(require_bytes());
73905
73905
  var import_node_fs13 = require("node:fs");
73906
73906
  var import_promises13 = require("node:fs/promises");
73907
- var import_node_os9 = require("node:os");
73907
+ var import_node_os10 = require("node:os");
73908
73908
  var import_node_path15 = require("node:path");
73909
73909
  init_src();
73910
73910
  var import_node_crypto14 = require("node:crypto");
@@ -75699,7 +75699,7 @@ function unknownCallerSecret(rawName, name, client2) {
75699
75699
  ${describeSecretSources(sources)}
75700
75700
  ` : "";
75701
75701
  return new InvalidToolInputError(
75702
- `Unknown secret "${rawName}" \u2014 the argent client that sent this call (the \`argent\` command, or the MCP server of the agent's session) found no ${name} in its environment, its project or ~/.argent/secrets.env. The tool-server does not read its own. Available secrets: ${names.length ? names.join(", ") : "(none)"}.
75702
+ `Unknown secret "${rawName}" \u2014 the argent client that sent this call (the \`argent\` command, or the MCP server of the agent's session) found no ${name} in its environment, its project or the secrets.env of its Argent home. The tool-server does not read its own. Available secrets: ${names.length ? names.join(", ") : "(none)"}.
75703
75703
  ` + listed + callerSecretPlacementAdvice(name),
75704
75704
  {
75705
75705
  error_code: FAILURE_CODES.SECRET_PLACEHOLDER_UNKNOWN,
@@ -125290,7 +125290,7 @@ function describeReapedSession(entry, what) {
125290
125290
  if (entry.connectionLost) {
125291
125291
  return `The ${what} for device ${entry.deviceId} lost its connection ${secondsAgo}s ago \u2014 the app crashed or quit, or its debugger endpoint went away.${salvage}`;
125292
125292
  }
125293
- return `The ${what} for device ${entry.deviceId} was torn down ${secondsAgo}s ago \u2014 by a stop-all-simulator-servers, which reaps every service a device owns, or by another teardown that reaches the same services (a stop-simulator-server on Chromium or a Mac app, or a react-profiler-start reclaiming the session with force). One tool-server serves every agent using this argent install, so this may have been another agent rather than your own call. It was not a session that never started.${salvage}`;
125293
+ return `The ${what} for device ${entry.deviceId} was torn down ${secondsAgo}s ago \u2014 by a stop-all-simulator-servers, which reaps every service a device owns, or by another teardown that reaches the same services (a stop-simulator-server on Chromium or a Mac app, or a react-profiler-start reclaiming the session with force). One tool-server serves every agent using this Argent install and home, so this may have been another agent rather than your own call. It was not a session that never started.${salvage}`;
125294
125294
  }
125295
125295
 
125296
125296
  // ../tool-server/src/blueprints/chromium-js-runtime-debugger.ts
@@ -125727,6 +125727,7 @@ function directCallFailure(tool, result) {
125727
125727
  // ../tool-server/src/utils/argent-home-id.ts
125728
125728
  var import_node_crypto13 = require("node:crypto");
125729
125729
  var fs44 = __toESM(require("node:fs"));
125730
+ var import_node_os9 = require("node:os");
125730
125731
  var path39 = __toESM(require("node:path"));
125731
125732
  init_src();
125732
125733
  var ARGENT_HOME_HEADER = "x-argent-home";
@@ -125744,10 +125745,16 @@ function peerArgentHomeId(header) {
125744
125745
  return argentHomeId(path39.join(resolveHomeDir(), ".argent"));
125745
125746
  }
125746
125747
  var LOOPBACK_ADDRESSES = /* @__PURE__ */ new Set(["127.0.0.1", "::1", "::ffff:127.0.0.1"]);
125748
+ function isOwnAddress(address) {
125749
+ const ip = address.replace(/^::ffff:(?=\d+\.\d+\.\d+\.\d+$)/, "");
125750
+ return Object.values((0, import_node_os9.networkInterfaces)()).some(
125751
+ (list) => list?.some((a) => (a.family === "IPv4" || a.scopeid === 0) && a.address === ip)
125752
+ );
125753
+ }
125747
125754
  function isLocalConnection(socket) {
125748
125755
  const remote = socket.remoteAddress;
125749
125756
  if (remote === void 0) return false;
125750
- return LOOPBACK_ADDRESSES.has(remote) || remote === socket.localAddress;
125757
+ return LOOPBACK_ADDRESSES.has(remote) || remote === socket.localAddress || isOwnAddress(remote);
125751
125758
  }
125752
125759
 
125753
125760
  // ../tool-server/src/utils/received-secrets.ts
@@ -125770,6 +125777,7 @@ var AUTO_SUPPRESS_MS = 30 * 60 * 1e3;
125770
125777
  var AUTH_TOKEN_ENV = "ARGENT_AUTH_TOKEN";
125771
125778
  var BEARER_PREFIX = "Bearer ";
125772
125779
  var ARTIFACTS_LIST_ENDPOINT_FLAG = "artifacts-list-endpoint";
125780
+ var TOKEN_FILE_HINT = "tool-server-*.json in the Argent home of the server's machine (~/.argent unless ARGENT_HOME_DIR is set)";
125773
125781
  function constantTimeEqual(a, b) {
125774
125782
  if (a.length !== b.length) return false;
125775
125783
  let diff = 0;
@@ -125959,18 +125967,18 @@ function checkTokenExemptAccess(req, policy) {
125959
125967
  const from2 = forwarded ? "through a proxy" : `from ${req.socket.remoteAddress ?? "the network"}`;
125960
125968
  return {
125961
125969
  status: 401,
125962
- error: `This request came ${from2}. Without a token, the tool-server serves /preview and its WebSocket only to clients on its own machine. Send \`Authorization: Bearer <token>\` (the token is in ~/.argent/tool-server.json on the server's machine and is printed by \`argent server start\`), or reach the server through an SSH tunnel to 127.0.0.1.`
125970
+ error: `This request came ${from2}. Without a token, the tool-server serves /preview and its WebSocket only to clients on its own machine. Send \`Authorization: Bearer <token>\`, or reach the server through an SSH tunnel to 127.0.0.1. \`argent server start\` prints the token and saves it to ${TOKEN_FILE_HINT}.`
125963
125971
  };
125964
125972
  }
125965
125973
  function interfaceAddresses() {
125966
125974
  const out = [];
125967
- for (const list of Object.values((0, import_node_os9.networkInterfaces)())) {
125975
+ for (const list of Object.values((0, import_node_os10.networkInterfaces)())) {
125968
125976
  for (const a of list ?? []) out.push(a.address.split("%")[0]);
125969
125977
  }
125970
125978
  return out;
125971
125979
  }
125972
125980
  function machineHostnames() {
125973
- const name = (0, import_node_os9.hostname)().toLowerCase();
125981
+ const name = (0, import_node_os10.hostname)().toLowerCase();
125974
125982
  if (!name) return [];
125975
125983
  const bare = name.endsWith(".local") ? name.slice(0, -".local".length) : name;
125976
125984
  return [bare, `${bare}.local`];
@@ -126058,7 +126066,7 @@ function createHttpApp(registry2, options) {
126058
126066
  const provided = extractBearerToken(req.headers.authorization);
126059
126067
  if (!provided || !constantTimeEqual(provided, expectedToken)) {
126060
126068
  res.status(401).json({
126061
- error: "Missing or invalid Authorization header. Tool-server requires `Authorization: Bearer <token>` where <token> matches the value in ~/.argent/tool-server.json."
126069
+ error: `Missing or invalid Authorization header. Tool-server requires \`Authorization: Bearer <token>\` where <token> matches the value in ${TOKEN_FILE_HINT}.`
126062
126070
  });
126063
126071
  return;
126064
126072
  }
@@ -126127,7 +126135,7 @@ function createHttpApp(registry2, options) {
126127
126135
  return;
126128
126136
  }
126129
126137
  const id = (0, import_node_crypto14.randomUUID)();
126130
- const tarPath = (0, import_node_path15.join)((0, import_node_os9.tmpdir)(), `argent-upload-${id}.tar.gz`);
126138
+ const tarPath = (0, import_node_path15.join)((0, import_node_os10.tmpdir)(), `argent-upload-${id}.tar.gz`);
126131
126139
  const ws = (0, import_node_fs13.createWriteStream)(tarPath);
126132
126140
  let received2 = 0;
126133
126141
  let released = false;
@@ -131381,7 +131389,7 @@ init_src2();
131381
131389
 
131382
131390
  // ../tool-server/src/utils/debugger/scripts/network-interceptor.ts
131383
131391
  var import_node_crypto18 = require("node:crypto");
131384
- var import_node_os10 = require("node:os");
131392
+ var import_node_os11 = require("node:os");
131385
131393
  init_src3();
131386
131394
  var BINARY_BODY_TYPES = /^(image\/(?!svg)|audio\/|video\/|font\/|application\/(octet-stream|pdf|zip|gzip|wasm|x-protobuf)$)/;
131387
131395
  var NETWORK_INTERCEPTOR_SCRIPT = `(function() {
@@ -132462,7 +132470,7 @@ var NETWORK_CAPTURE_MARK_SCRIPT = `(function() {
132462
132470
  })()`;
132463
132471
  var HOLDER = JSON.stringify((0, import_node_crypto18.randomUUID)());
132464
132472
  function holderRecord(capturing2) {
132465
- return JSON.stringify({ capturing: capturing2, pid: process.pid, host: (0, import_node_os10.hostname)() });
132473
+ return JSON.stringify({ capturing: capturing2, pid: process.pid, host: (0, import_node_os11.hostname)() });
132466
132474
  }
132467
132475
  function makeNetworkCaptureControlScript(paused) {
132468
132476
  return `(function() {
@@ -132509,7 +132517,7 @@ function exitedHolders(answer) {
132509
132517
  }
132510
132518
  return Object.keys(holders).filter((key2) => {
132511
132519
  const { pid, host } = holders[key2];
132512
- return host === (0, import_node_os10.hostname)() && typeof pid === "number" && !isProcessAlive(pid);
132520
+ return host === (0, import_node_os11.hostname)() && typeof pid === "number" && !isProcessAlive(pid);
132513
132521
  });
132514
132522
  }
132515
132523
  function makeNetworkLogReadScript(start2, limit, metroPort2) {
@@ -133725,7 +133733,7 @@ var import_node_child_process37 = require("node:child_process");
133725
133733
  var import_node_fs19 = require("node:fs");
133726
133734
  var import_promises15 = require("node:fs/promises");
133727
133735
  var import_node_net4 = require("node:net");
133728
- var import_node_os12 = require("node:os");
133736
+ var import_node_os13 = require("node:os");
133729
133737
  var import_node_path20 = require("node:path");
133730
133738
  var import_node_util27 = require("node:util");
133731
133739
  init_zod();
@@ -133962,7 +133970,7 @@ async function readParentPids() {
133962
133970
 
133963
133971
  // ../tool-server/src/utils/linux-preflight.ts
133964
133972
  var fs48 = __toESM(require("node:fs"));
133965
- var import_node_os11 = require("node:os");
133973
+ var import_node_os12 = require("node:os");
133966
133974
  var import_node_path18 = require("node:path");
133967
133975
  var import_ini2 = __toESM(require_ini());
133968
133976
  function linuxBootDiagnostics(avdName) {
@@ -133991,7 +133999,7 @@ function checkKvm() {
133991
133999
  var MIN_RAM_MB = 4096;
133992
134000
  var MIN_HEAP_MB = 512;
133993
134001
  function checkAvdSizing(avdName) {
133994
- const configPath = (0, import_node_path18.join)((0, import_node_os11.homedir)(), ".android", "avd", `${avdName}.avd`, "config.ini");
134002
+ const configPath = (0, import_node_path18.join)((0, import_node_os12.homedir)(), ".android", "avd", `${avdName}.avd`, "config.ini");
133995
134003
  let content;
133996
134004
  try {
133997
134005
  content = fs48.readFileSync(configPath, "utf8");
@@ -134874,7 +134882,7 @@ async function openSimulatorWindow(udid) {
134874
134882
  simulatorApp,
134875
134883
  () => execFileAsync26("open", ["-a", simulatorApp], { timeout })
134876
134884
  );
134877
- return launched ? void 0 : `${simulatorApp} exits right after launch on this host, so Argent no longer opens it and the device runs without a window. Delete ~/.argent/simulator-app-launch.json to try opening it again.`;
134885
+ return launched ? void 0 : `${simulatorApp} exits right after launch on this host, so Argent no longer opens it and the device runs without a window. Delete ${verdictFilePath()} to try opening it again.`;
134878
134886
  }
134879
134887
  const deviceHubApp = (0, import_node_path20.join)(developerDir2, "..", "Applications", "DeviceHub.app");
134880
134888
  if ((0, import_node_fs19.existsSync)(deviceHubApp)) {
@@ -134967,7 +134975,7 @@ async function attemptBoot(params) {
134967
134975
  const portArg = params.emulatorArgs.indexOf("-port");
134968
134976
  const instance = portArg >= 0 ? `${params.avdName}-${params.emulatorArgs[portArg + 1]}` : params.avdName;
134969
134977
  const safeName = instance.replace(/[^\w.-]/g, "_");
134970
- const logPath = (0, import_node_path20.join)((0, import_node_os12.tmpdir)(), `argent-emulator-${safeName}.log`);
134978
+ const logPath = (0, import_node_path20.join)((0, import_node_os13.tmpdir)(), `argent-emulator-${safeName}.log`);
134971
134979
  emulatorLogFd = (0, import_node_fs19.openSync)(logPath, "w");
134972
134980
  stdio = ["ignore", emulatorLogFd, emulatorLogFd];
134973
134981
  }
@@ -135715,11 +135723,11 @@ async function startHarmonyEmulator(instanceName) {
135715
135723
  });
135716
135724
  }
135717
135725
  try {
135718
- for (const entry of (0, import_node_fs19.readdirSync)((0, import_node_os12.tmpdir)())) {
135726
+ for (const entry of (0, import_node_fs19.readdirSync)((0, import_node_os13.tmpdir)())) {
135719
135727
  if (!entry.startsWith("argent-harmony-") || !entry.endsWith(".log")) continue;
135720
135728
  try {
135721
- if (Date.now() - (0, import_node_fs19.statSync)((0, import_node_path20.join)((0, import_node_os12.tmpdir)(), entry)).mtimeMs > HARMONY_LOG_TTL_MS) {
135722
- (0, import_node_fs19.rmSync)((0, import_node_path20.join)((0, import_node_os12.tmpdir)(), entry), { force: true });
135729
+ if (Date.now() - (0, import_node_fs19.statSync)((0, import_node_path20.join)((0, import_node_os13.tmpdir)(), entry)).mtimeMs > HARMONY_LOG_TTL_MS) {
135730
+ (0, import_node_fs19.rmSync)((0, import_node_path20.join)((0, import_node_os13.tmpdir)(), entry), { force: true });
135723
135731
  }
135724
135732
  } catch {
135725
135733
  }
@@ -135727,7 +135735,7 @@ async function startHarmonyEmulator(instanceName) {
135727
135735
  } catch {
135728
135736
  }
135729
135737
  const safeName = instanceName.replace(/[^\w.-]/g, (c) => `%${c.codePointAt(0).toString(16)}`);
135730
- const logPath = (0, import_node_path20.join)((0, import_node_os12.tmpdir)(), `argent-harmony-${safeName}-${process.hrtime.bigint()}.log`);
135738
+ const logPath = (0, import_node_path20.join)((0, import_node_os13.tmpdir)(), `argent-harmony-${safeName}-${process.hrtime.bigint()}.log`);
135731
135739
  let logFd;
135732
135740
  try {
135733
135741
  logFd = (0, import_node_fs19.openSync)(logPath, "w");
@@ -135834,7 +135842,7 @@ async function waitForHarmonyTarget(before, deadline, checkAlive, expected) {
135834
135842
  }
135835
135843
  }
135836
135844
  async function waitForHarmonyDrivable(connectKey, deadline, checkAlive) {
135837
- const probePath = (0, import_node_path20.join)((0, import_node_os12.tmpdir)(), `argent-harmony-bootprobe-${process.hrtime.bigint()}.json`);
135845
+ const probePath = (0, import_node_path20.join)((0, import_node_os13.tmpdir)(), `argent-harmony-bootprobe-${process.hrtime.bigint()}.json`);
135838
135846
  let inFlight4 = null;
135839
135847
  try {
135840
135848
  for (; ; ) {
@@ -138506,14 +138514,14 @@ function androidDevtoolsRotationPeek(registry2, device) {
138506
138514
 
138507
138515
  // ../tool-server/src/utils/vega-screen.ts
138508
138516
  var import_promises18 = require("node:fs/promises");
138509
- var import_node_os14 = require("node:os");
138517
+ var import_node_os15 = require("node:os");
138510
138518
  var import_node_path29 = require("node:path");
138511
138519
  var import_pngjs3 = __toESM(require_png());
138512
138520
  init_src2();
138513
138521
  init_adb();
138514
138522
 
138515
138523
  // ../tool-server/src/utils/emulator-console.ts
138516
- var import_node_os13 = require("node:os");
138524
+ var import_node_os14 = require("node:os");
138517
138525
  var import_node_path28 = require("node:path");
138518
138526
  init_adb();
138519
138527
  async function runEmuConsole(serial, args) {
@@ -138530,7 +138538,7 @@ function describeConsoleReply(stdout) {
138530
138538
  const lines = replyLines(stdout);
138531
138539
  const reply = lines.join("; ") || "empty reply";
138532
138540
  if (!lines.at(-1)?.startsWith("KO: unknown command")) return reply;
138533
- const tokenFile = (0, import_node_path28.join)((0, import_node_os13.homedir)(), ".emulator_console_auth_token");
138541
+ const tokenFile = (0, import_node_path28.join)((0, import_node_os14.homedir)(), ".emulator_console_auth_token");
138534
138542
  const fileKind = process.platform === "win32" ? "a file" : "a regular file, not a symlink,";
138535
138543
  return `${reply} (adb authenticates to the console with ${tokenFile}, which must be ${fileKind} holding the emulator's token)`;
138536
138544
  }
@@ -138545,7 +138553,7 @@ async function captureVegaScreenshotPng(opts = {}) {
138545
138553
  async function captureViaEmulatorConsole(opts) {
138546
138554
  const port = await discoverVegaConsolePort();
138547
138555
  const serial = `emulator-${port}`;
138548
- const outDir = await (0, import_promises18.mkdtemp)((0, import_node_path29.join)((0, import_node_os14.tmpdir)(), "vega-shot-"));
138556
+ const outDir = await (0, import_promises18.mkdtemp)((0, import_node_path29.join)((0, import_node_os15.tmpdir)(), "vega-shot-"));
138549
138557
  try {
138550
138558
  const { stdout } = await runAdb(["-s", serial, "emu", "screenrecord", "screenshot", outDir], {
138551
138559
  timeoutMs: 2e4
@@ -138567,7 +138575,7 @@ async function captureViaEmulatorConsole(opts) {
138567
138575
  decoded2,
138568
138576
  opts.scale ?? getScreenshotScaleOverride() ?? tvDefaultScale(decoded2.width, decoded2.height)
138569
138577
  );
138570
- const outPath = (0, import_node_path29.join)((0, import_node_os14.tmpdir)(), `vega-screenshot-${process.hrtime.bigint()}.png`);
138578
+ const outPath = (0, import_node_path29.join)((0, import_node_os15.tmpdir)(), `vega-screenshot-${process.hrtime.bigint()}.png`);
138571
138579
  await (0, import_promises18.writeFile)(outPath, import_pngjs3.PNG.sync.write(scaled));
138572
138580
  return outPath;
138573
138581
  } finally {
@@ -138578,7 +138586,7 @@ async function captureViaEmulatorConsole(opts) {
138578
138586
 
138579
138587
  // ../tool-server/src/utils/harmony-screen.ts
138580
138588
  var import_promises19 = require("node:fs/promises");
138581
- var import_node_os15 = require("node:os");
138589
+ var import_node_os16 = require("node:os");
138582
138590
  var import_node_path30 = require("node:path");
138583
138591
  var import_pngjs4 = __toESM(require_png());
138584
138592
  init_src2();
@@ -138600,12 +138608,12 @@ function decodeCapture(raw, connectKey) {
138600
138608
  }
138601
138609
  }
138602
138610
  async function captureHarmonyScreenshotPng(opts) {
138603
- const rawPath = (0, import_node_path30.join)((0, import_node_os15.tmpdir)(), `argent-harmony-raw-${process.hrtime.bigint()}.png`);
138611
+ const rawPath = (0, import_node_path30.join)((0, import_node_os16.tmpdir)(), `argent-harmony-raw-${process.hrtime.bigint()}.png`);
138604
138612
  try {
138605
138613
  await harmonyScreenCap(opts.connectKey, rawPath);
138606
138614
  const decoded2 = decodeCapture(await (0, import_promises19.readFile)(rawPath), opts.connectKey);
138607
138615
  const scaled = scaleDecodedPng(decoded2, opts.scale);
138608
- const outPath = (0, import_node_path30.join)((0, import_node_os15.tmpdir)(), `harmony-screenshot-${process.hrtime.bigint()}.png`);
138616
+ const outPath = (0, import_node_path30.join)((0, import_node_os16.tmpdir)(), `harmony-screenshot-${process.hrtime.bigint()}.png`);
138609
138617
  if (scaled === decoded2) {
138610
138618
  await (0, import_promises19.rename)(rawPath, outPath);
138611
138619
  } else {
@@ -145473,6 +145481,8 @@ Returns \`{ x, y, items, truncated?, hiddenCount? }\`. Fails if disconnected or
145473
145481
 
145474
145482
  // ../tool-server/src/tools/debugger/debugger-log-registry.ts
145475
145483
  init_zod();
145484
+ var import_node_path31 = require("node:path");
145485
+ init_src();
145476
145486
  var DEFAULT_TAIL = 20;
145477
145487
  var CONSOLE_LEVELS = [
145478
145488
  "log",
@@ -145542,7 +145552,8 @@ Returns \`{ status: "connected", file, entries, clusters, note? }\` (\`note\` fl
145542
145552
  ]);
145543
145553
  if (reaped2) response.note = describeReapedSession(reaped2, "JS-runtime debugger session");
145544
145554
  const inFile = api.logWriter.getFileEntryCount();
145545
- const fileNote = !api.logWriter.hasFile() ? `No log file exists at ${stats.file}, so there is nothing to grep: the counts, clusters and { entries } are all that was captured. Usually the disk was full or ~/.argent/tmp was not writable when this session started (if root owns ~/.argent: sudo chown -R "$USER" ~/.argent). Only a new debugger session gets a file: once that is fixed, call stop-all-simulator-servers with devices: ["${canonicalDeviceId(params.device_id)}"], then debugger-connect again.` : inFile === 0 && stats.totalEntries > 0 ? `The log file at ${stats.file} holds none of the ${stats.totalEntries} captured entries: every write to it failed (e.g. a full disk), so there is nothing to grep and the counts, clusters and { entries } are all that was captured. Entries logged once the disk has room are written to it.` : inFile < stats.totalEntries ? `The log file at ${stats.file} holds only ${inFile} of the ${stats.totalEntries} captured entries: the other writes to it failed (e.g. a full disk or a file-size limit), so byLevel and clusters count entries that grepping it will not find. Entries logged once the disk has room are written to it.` : void 0;
145555
+ const home = argentHomeDir();
145556
+ const fileNote = !api.logWriter.hasFile() ? `No log file exists at ${stats.file}, so there is nothing to grep: the counts, clusters and { entries } are all that was captured. Usually the disk was full or ${(0, import_node_path31.join)(home, "tmp")} was not writable when this session started (if root owns ${home}: sudo chown -R "$USER" "${home}"). Only a new debugger session gets a file: once that is fixed, call stop-all-simulator-servers with devices: ["${canonicalDeviceId(params.device_id)}"], then debugger-connect again.` : inFile === 0 && stats.totalEntries > 0 ? `The log file at ${stats.file} holds none of the ${stats.totalEntries} captured entries: every write to it failed (e.g. a full disk), so there is nothing to grep and the counts, clusters and { entries } are all that was captured. Entries logged once the disk has room are written to it.` : inFile < stats.totalEntries ? `The log file at ${stats.file} holds only ${inFile} of the ${stats.totalEntries} captured entries: the other writes to it failed (e.g. a full disk or a file-size limit), so byLevel and clusters count entries that grepping it will not find. Entries logged once the disk has room are written to it.` : void 0;
145546
145557
  if (fileNote) response.note = response.note ? `${response.note} ${fileNote}` : fileNote;
145547
145558
  return response;
145548
145559
  } catch (err) {
@@ -149837,7 +149848,7 @@ Fails if Hermes or Metro CDP is unreachable.`,
149837
149848
  await cdp.send("Profiler.stop").catch(ignore);
149838
149849
  throw new FailureError(
149839
149850
  withTakeover(
149840
- `The React profiler session for ${api.deviceId} was torn down while the profiler was starting, so nothing is recorded. One tool-server serves every agent using this argent install, so another agent may have run stop-all-simulator-servers. Call react-profiler-start again.`
149851
+ `The React profiler session for ${api.deviceId} was torn down while the profiler was starting, so nothing is recorded. One tool-server serves every agent using this Argent install and home, so another agent may have run stop-all-simulator-servers. Call react-profiler-start again.`
149841
149852
  ),
149842
149853
  {
149843
149854
  error_code: FAILURE_CODES.REACT_PROFILER_SESSION_TORN_DOWN,
@@ -150143,7 +150154,7 @@ function lostRunCauseText(cause, takenOverBy) {
150143
150154
  case "cdp_disconnected":
150144
150155
  return "the debugger connection dropped while it was recording: the app crashed or was killed, Metro restarted, or another debugger took the connection";
150145
150156
  case "session_torn_down":
150146
- return "its session was torn down mid-run, typically by stop-all-simulator-servers: the run rides on the device's JS-runtime debugger, which that teardown reaps, and one tool-server serves every agent using this argent install";
150157
+ return "its session was torn down mid-run, typically by stop-all-simulator-servers: the run rides on the device's JS-runtime debugger, which that teardown reaps, and one tool-server serves every agent using this Argent install and home";
150147
150158
  case "taken_over":
150148
150159
  return takenOverBy ? `session ${takenOverBy} took it over, which discarded its data` : "another session took it over, which discarded its data";
150149
150160
  case "stop_failed":
@@ -150703,7 +150714,7 @@ Returns \`{ duration_ms, sample_count, fiber_renders_captured, total_react_commi
150703
150714
  );
150704
150715
  if (!entry || entry.state !== "RUNNING" /* RUNNING */) {
150705
150716
  throw new FailureError(
150706
- lastRun ? `No active profiling session. ${lastRun} Call react-profiler-start to begin a new session.` : "No active profiling session. The session may have been lost to a Metro reload, or torn down by a stop-all-simulator-servers \u2014 this session rides on the device's JS-runtime debugger, which that teardown reaps, and one tool-server serves every agent using this argent install. Call react-profiler-start to begin a new session.",
150717
+ lastRun ? `No active profiling session. ${lastRun} Call react-profiler-start to begin a new session.` : "No active profiling session. The session may have been lost to a Metro reload, or torn down by a stop-all-simulator-servers \u2014 this session rides on the device's JS-runtime debugger, which that teardown reaps, and one tool-server serves every agent using this Argent install and home. Call react-profiler-start to begin a new session.",
150707
150718
  {
150708
150719
  error_code: FAILURE_CODES.REACT_PROFILER_NO_ACTIVE_SESSION,
150709
150720
  failure_stage: "react_profiler_stop_session_lookup",
@@ -155767,7 +155778,7 @@ function commitXctraceRecording(api, started, capture) {
155767
155778
  }
155768
155779
  resetStartState(api);
155769
155780
  throw new FailureError(
155770
- `The native profiling session for ${api.deviceId} was torn down by a stop-all-simulator-servers while this start was waiting for xctrace to become ready, so nothing was recorded \u2014 one tool-server serves every agent using this argent install, so this may have been another agent ending its session. Call native-profiler-start again.`,
155781
+ `The native profiling session for ${api.deviceId} was torn down by a stop-all-simulator-servers while this start was waiting for xctrace to become ready, so nothing was recorded \u2014 one tool-server serves every agent using this Argent install and home, so this may have been another agent ending its session. Call native-profiler-start again.`,
155771
155782
  {
155772
155783
  error_code: FAILURE_CODES.NATIVE_PROFILER_SESSION_TORN_DOWN,
155773
155784
  failure_stage: "native_profiler_xctrace_start",
@@ -157566,7 +157577,7 @@ async function startNativeProfilerAndroid(api, params) {
157566
157577
  await adbShell2(params.device_id, `rm -f ${onDeviceTracePath}`).catch(() => {
157567
157578
  });
157568
157579
  throw new FailureError(
157569
- `The native profiling session for ${api.deviceId} was torn down by a stop-all-simulator-servers while perfetto was starting, so nothing was recorded \u2014 one tool-server serves every agent using this argent install, so this may have been another agent ending its session. Call native-profiler-start again.`,
157580
+ `The native profiling session for ${api.deviceId} was torn down by a stop-all-simulator-servers while perfetto was starting, so nothing was recorded \u2014 one tool-server serves every agent using this Argent install and home, so this may have been another agent ending its session. Call native-profiler-start again.`,
157570
157581
  {
157571
157582
  error_code: FAILURE_CODES.NATIVE_PROFILER_SESSION_TORN_DOWN,
157572
157583
  failure_stage: "android_native_profiler_start",
@@ -162203,7 +162214,7 @@ function makePointerControl(simulator) {
162203
162214
  }
162204
162215
 
162205
162216
  // ../tool-server/src/tools/screen-recording/screen-recording-stop.ts
162206
- var import_node_path31 = require("node:path");
162217
+ var import_node_path32 = require("node:path");
162207
162218
  init_zod();
162208
162219
  init_device_info();
162209
162220
  init_capability();
@@ -162249,7 +162260,7 @@ Check \`warning\` for capture problems, such as an undetected foldable panel.<fl
162249
162260
  kind: "screen-recording",
162250
162261
  mimeType: "video/mp4",
162251
162262
  // Drop the internal `argent-` temp-file prefix from the saved name.
162252
- filename: (0, import_node_path31.basename)(stopped.outputFile).replace(/^argent-/, ""),
162263
+ filename: (0, import_node_path32.basename)(stopped.outputFile).replace(/^argent-/, ""),
162253
162264
  saveDir: RECORDINGS_DIR
162254
162265
  });
162255
162266
  const result = { video, durationMs: stopped.durationMs };
@@ -175217,7 +175228,7 @@ init_zod();
175217
175228
 
175218
175229
  // ../tool-server/src/utils/workspace-reader.ts
175219
175230
  var import_promises22 = require("node:fs/promises");
175220
- var import_node_path32 = require("node:path");
175231
+ var import_node_path33 = require("node:path");
175221
175232
  var import_node_child_process56 = require("node:child_process");
175222
175233
  var import_dotenv2 = __toESM(require_dist());
175223
175234
  async function exists2(path77) {
@@ -175305,7 +175316,7 @@ async function detectLockfile(workspacePath) {
175305
175316
  const checks = await Promise.all(
175306
175317
  LOCKFILES.map(async (name) => ({
175307
175318
  name,
175308
- exists: await exists2((0, import_node_path32.join)(workspacePath, name))
175319
+ exists: await exists2((0, import_node_path33.join)(workspacePath, name))
175309
175320
  }))
175310
175321
  );
175311
175322
  return checks.find((c) => c.exists)?.name ?? null;
@@ -175324,7 +175335,7 @@ var CI_CONFIGS = [
175324
175335
  ];
175325
175336
  async function detectCiConfig(workspacePath) {
175326
175337
  for (const ci of CI_CONFIGS) {
175327
- if (await exists2((0, import_node_path32.join)(workspacePath, ci.path))) return ci.label;
175338
+ if (await exists2((0, import_node_path33.join)(workspacePath, ci.path))) return ci.label;
175328
175339
  }
175329
175340
  return null;
175330
175341
  }
@@ -175345,7 +175356,7 @@ async function detectLintStagedConfig(workspacePath, packageJson) {
175345
175356
  return packageJson["lint-staged"];
175346
175357
  }
175347
175358
  for (const file2 of LINT_STAGED_FILES) {
175348
- const full = (0, import_node_path32.join)(workspacePath, file2);
175359
+ const full = (0, import_node_path33.join)(workspacePath, file2);
175349
175360
  if (await exists2(full)) {
175350
175361
  if (file2.endsWith(".json") || file2 === ".lintstagedrc") {
175351
175362
  return readJsonFile(full);
@@ -175387,7 +175398,7 @@ var CONFIG_FILES = [
175387
175398
  async function detectConfigFiles(workspacePath) {
175388
175399
  const results = await Promise.allSettled(
175389
175400
  CONFIG_FILES.map(async (file2) => {
175390
- if (await exists2((0, import_node_path32.join)(workspacePath, file2))) return file2;
175401
+ if (await exists2((0, import_node_path33.join)(workspacePath, file2))) return file2;
175391
175402
  return null;
175392
175403
  })
175393
175404
  );
@@ -175426,7 +175437,7 @@ async function detectEnvFiles(workspacePath) {
175426
175437
  const envFileNames = entries.filter((e) => e === ".env" || e.startsWith(".env."));
175427
175438
  const results = await Promise.all(
175428
175439
  envFileNames.map(async (name) => {
175429
- const content = await readTextFile((0, import_node_path32.join)(workspacePath, name));
175440
+ const content = await readTextFile((0, import_node_path33.join)(workspacePath, name));
175430
175441
  return {
175431
175442
  name,
175432
175443
  keys: content ? extractEnvKeys(content) : []
@@ -175453,34 +175464,34 @@ async function readWorkspaceSnapshot(workspacePath) {
175453
175464
  ciConfig,
175454
175465
  configFilesFound
175455
175466
  ] = await Promise.all([
175456
- readJsonFile((0, import_node_path32.join)(workspacePath, "package.json")),
175457
- readJsonFile((0, import_node_path32.join)(workspacePath, "app.json")),
175458
- readJsonFile((0, import_node_path32.join)(workspacePath, "eas.json")),
175459
- readJsonFile((0, import_node_path32.join)(workspacePath, "tsconfig.json")),
175460
- readTextFile((0, import_node_path32.join)(workspacePath, "metro.config.js")).then(
175461
- (r) => r ?? readTextFile((0, import_node_path32.join)(workspacePath, "metro.config.ts"))
175467
+ readJsonFile((0, import_node_path33.join)(workspacePath, "package.json")),
175468
+ readJsonFile((0, import_node_path33.join)(workspacePath, "app.json")),
175469
+ readJsonFile((0, import_node_path33.join)(workspacePath, "eas.json")),
175470
+ readJsonFile((0, import_node_path33.join)(workspacePath, "tsconfig.json")),
175471
+ readTextFile((0, import_node_path33.join)(workspacePath, "metro.config.js")).then(
175472
+ (r) => r ?? readTextFile((0, import_node_path33.join)(workspacePath, "metro.config.ts"))
175462
175473
  ),
175463
- readTextFile((0, import_node_path32.join)(workspacePath, "babel.config.js")).then(
175464
- (r) => r ?? readTextFile((0, import_node_path32.join)(workspacePath, "babel.config.cjs"))
175474
+ readTextFile((0, import_node_path33.join)(workspacePath, "babel.config.js")).then(
175475
+ (r) => r ?? readTextFile((0, import_node_path33.join)(workspacePath, "babel.config.cjs"))
175465
175476
  ),
175466
- isDirectory2((0, import_node_path32.join)(workspacePath, "ios")),
175467
- isDirectory2((0, import_node_path32.join)(workspacePath, "android")),
175477
+ isDirectory2((0, import_node_path33.join)(workspacePath, "ios")),
175478
+ isDirectory2((0, import_node_path33.join)(workspacePath, "android")),
175468
175479
  detectLockfile(workspacePath),
175469
175480
  detectEnvFiles(workspacePath),
175470
175481
  detectToolVersions(workspacePath),
175471
- listDir((0, import_node_path32.join)(workspacePath, "scripts")),
175472
- listDir((0, import_node_path32.join)(workspacePath, ".husky")),
175482
+ listDir((0, import_node_path33.join)(workspacePath, "scripts")),
175483
+ listDir((0, import_node_path33.join)(workspacePath, ".husky")),
175473
175484
  detectCiConfig(workspacePath),
175474
175485
  detectConfigFiles(workspacePath)
175475
175486
  ]);
175476
- const iosDir = (0, import_node_path32.join)(workspacePath, "ios");
175477
- const androidDir = (0, import_node_path32.join)(workspacePath, "android");
175487
+ const iosDir = (0, import_node_path33.join)(workspacePath, "ios");
175488
+ const androidDir = (0, import_node_path33.join)(workspacePath, "android");
175478
175489
  const [iosWorkspace, iosHasPodfile, makefileText, lintStagedConfig, androidHasGradle] = await Promise.all([
175479
175490
  hasIosDir ? findIosWorkspace(iosDir) : Promise.resolve(null),
175480
- exists2((0, import_node_path32.join)(workspacePath, "ios", "Podfile")),
175481
- readTextFile((0, import_node_path32.join)(workspacePath, "Makefile")),
175491
+ exists2((0, import_node_path33.join)(workspacePath, "ios", "Podfile")),
175492
+ readTextFile((0, import_node_path33.join)(workspacePath, "Makefile")),
175482
175493
  detectLintStagedConfig(workspacePath, packageJson),
175483
- hasAndroidDir ? exists2((0, import_node_path32.join)(androidDir, "gradlew")) : Promise.resolve(false)
175494
+ hasAndroidDir ? exists2((0, import_node_path33.join)(androidDir, "gradlew")) : Promise.resolve(false)
175484
175495
  ]);
175485
175496
  const metroPort2 = metroConfigRaw ? extractMetroPort(metroConfigRaw) : null;
175486
175497
  const makefileTargets = makefileText ? extractMakefileTargets(makefileText) : null;
@@ -175579,7 +175590,7 @@ var dismissUpdateTool = {
175579
175590
  };
175580
175591
  }
175581
175592
  const pending = pendingVersion ? `v${pendingVersion} stays available and nothing was installed.` : `No update is pending right now; one that appears before then stays silent too.`;
175582
- const scope = persisted ? `on every Argent tool-server on this machine` : `in this tool-server only, and only until it restarts: ~/.argent could not be written, so other tool-servers still show reminders`;
175593
+ const scope = persisted ? `on every Argent tool-server of this Argent home` : `in this tool-server only, and only until it restarts: the Argent home could not be written, so other tool-servers still show reminders`;
175583
175594
  return {
175584
175595
  message: `Update reminders are off until ${local} (${end.toISOString()}) ${scope}. ${pending} Tell the user when reminders resume. Remove any saved reminder about this update from your task list and do not bring it up again unless the user asks.`,
175585
175596
  remindersResumeAt: end.toISOString(),
@@ -175592,7 +175603,7 @@ var dismissUpdateTool = {
175592
175603
  // ../tool-server/src/tools/screenshot-diff/index.ts
175593
175604
  var import_node_crypto25 = __toESM(require("node:crypto"));
175594
175605
  var import_promises23 = __toESM(require("fs/promises"));
175595
- var import_node_os16 = __toESM(require("node:os"));
175606
+ var import_node_os17 = __toESM(require("node:os"));
175596
175607
  var import_path9 = __toESM(require("path"));
175597
175608
  init_zod();
175598
175609
  init_src2();
@@ -175732,7 +175743,7 @@ async function resolveOutputDir(params, options) {
175732
175743
  }
175733
175744
  }
175734
175745
  const dir = import_path9.default.join(
175735
- import_node_os16.default.tmpdir(),
175746
+ import_node_os17.default.tmpdir(),
175736
175747
  "argent-screenshot-diff",
175737
175748
  import_node_crypto25.default.randomBytes(6).toString("hex")
175738
175749
  );
@@ -176951,7 +176962,7 @@ function createLensTools(registry2) {
176951
176962
  // ../tool-server/src/utils/host-deps-report.ts
176952
176963
  var import_node_child_process57 = require("node:child_process");
176953
176964
  var import_node_fs24 = require("node:fs");
176954
- var import_node_path33 = require("node:path");
176965
+ var import_node_path34 = require("node:path");
176955
176966
  var import_node_util44 = require("node:util");
176956
176967
  init_android_binary();
176957
176968
  var execFileAsync47 = (0, import_node_util44.promisify)(import_node_child_process57.execFile);
@@ -176966,7 +176977,7 @@ async function activeDeveloperDir2() {
176966
176977
  async function probeXcode() {
176967
176978
  if (process.platform !== "darwin") return null;
176968
176979
  const developerDir2 = await activeDeveloperDir2();
176969
- const simctl = developerDir2 !== null && (0, import_node_fs24.existsSync)((0, import_node_path33.join)(developerDir2, "usr", "bin", "simctl"));
176980
+ const simctl = developerDir2 !== null && (0, import_node_fs24.existsSync)((0, import_node_path34.join)(developerDir2, "usr", "bin", "simctl"));
176970
176981
  const firstLaunch = simctl && xcodeFirstLaunchPending("simctl") ? xcodeInstallInstruction() : null;
176971
176982
  return { developerDir: developerDir2, simctl, firstLaunch };
176972
176983
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@swmansion/argent",
3
- "version": "0.35.1-next.61",
3
+ "version": "0.35.1-next.63",
4
4
  "mcpName": "io.github.software-mansion/argent",
5
5
  "description": "MCP server for iOS Simulator, Android Emulator, Chromium app and Mac app control",
6
6
  "license": "Apache-2.0",
@@ -98,5 +98,5 @@
98
98
  "vitest": "^5.0.5",
99
99
  "yaml": "^2.9.1"
100
100
  },
101
- "gitHead": "603b232a37cfecdd110d300df4772f25a74c58c5"
101
+ "gitHead": "10b81d89cc1ff9a3f19068cc46ed5c004d0e56e9"
102
102
  }