@swmansion/argent 0.34.1-next.2 → 0.34.1-next.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 (37) hide show
  1. package/bin/argent-android-devtools-0.4.0.apk +0 -0
  2. package/bin/darwin/argent-macos-helper +0 -0
  3. package/bin/darwin/ax-service +0 -0
  4. package/bin/darwin/tvos-ax-service +0 -0
  5. package/bin/darwin/tvos-hid-daemon +0 -0
  6. package/bin/network-inspector/network-inspector.jar +0 -0
  7. package/bin/tcp/ax-service +0 -0
  8. package/dist/cli-cmds.mjs +86 -24
  9. package/dist/client.js +34 -9
  10. package/dist/installer-help.js +4 -0
  11. package/dist/installer-help.js.map +1 -1
  12. package/dist/installer.mjs +222 -160
  13. package/dist/ios-device-runner/ArgentRunner/ArgentRunnerUITests/ArgentLaunchPerformanceTests.swift +21 -0
  14. package/dist/ios-device-runner/ArgentRunner/ArgentRunnerUITests/ArgentRunnerSession+Commands.swift +9 -3
  15. package/dist/mcp-server.mjs +43 -14
  16. package/dist/tool-args.generated.d.ts +15 -1
  17. package/dist/tool-server.cjs +4529 -2403
  18. package/dylibs/libArgentInjectionBootstrap.dylib +0 -0
  19. package/dylibs/libKeyboardPatch.dylib +0 -0
  20. package/dylibs/libNativeDevtoolsIos.dylib +0 -0
  21. package/dylibs/macos/libArgentInjectionBootstrap.dylib +0 -0
  22. package/dylibs/macos/libNativeDevtoolsMacos.dylib +0 -0
  23. package/dylibs/tcp/libArgentInjectionBootstrap.dylib +0 -0
  24. package/dylibs/tcp/libKeyboardPatch.dylib +0 -0
  25. package/dylibs/tcp/libNativeDevtoolsIos.dylib +0 -0
  26. package/dylibs/tvos/libArgentInjectionBootstrap.dylib +0 -0
  27. package/dylibs/tvos/libKeyboardPatch.dylib +0 -0
  28. package/dylibs/tvos/libNativeDevtoolsIos.dylib +0 -0
  29. package/package.json +1 -1
  30. package/rules/argent.md +6 -23
  31. package/skills/argent-ios-device-interact/SKILL.md +2 -2
  32. package/skills/argent-macos-app-interact/SKILL.md +15 -5
  33. package/skills/argent-macos-app-interact/references/e2e.md +1 -1
  34. package/skills/argent-native-profiler/SKILL.md +14 -2
  35. package/skills/argent-react-native-app-workflow/SKILL.md +1 -1
  36. package/skills/argent-react-native-optimization/SKILL.md +10 -1
  37. package/skills/argent-react-native-profiler/SKILL.md +4 -3
Binary file
Binary file
Binary file
Binary file
Binary file
package/dist/cli-cmds.mjs CHANGED
@@ -9484,7 +9484,7 @@ var FLAG_REGISTRY = [
9484
9484
  },
9485
9485
  {
9486
9486
  name: "macos-apps",
9487
- description: "Drive native Mac apps (AppKit, SwiftUI, react-native-macos) from inside the app. Adds the macos platform to list-devices and boot-device, and the file-panel and menu-bar tools. On by default; turn it off with `argent disable macos-apps`.",
9487
+ description: "Control native Mac apps, including Mac Catalyst. Adds the macos platform to list-devices and boot-device, and the file-panel and menu-bar tools. On by default; turn it off with `argent disable macos-apps`.",
9488
9488
  defaultEnabled: true
9489
9489
  }
9490
9490
  ];
@@ -9966,14 +9966,6 @@ var CONFIG_SCHEMA = [
9966
9966
  // drained/reset, not just the file rewritten.
9967
9967
  manageCommand: "argent telemetry"
9968
9968
  },
9969
- {
9970
- key: "allowlist.enabled",
9971
- description: "Whether `argent update` re-applies editor auto-approve allowlist rules. Unset (the default) keeps the current behavior: update refreshes the rules for editors that already have argent configured. Set to `false` to keep update from touching editor allowlists. `false` in either scope wins, so a committed project opt-out holds for every teammate.",
9972
- scopes: ["project", "global"],
9973
- parse: asBoolean,
9974
- merge: "prioritize-restrictive",
9975
- example: "false"
9976
- },
9977
9969
  {
9978
9970
  key: "lens.agent",
9979
9971
  description: "Coding-agent id remembered by `argent lens` to skip the picker.",
@@ -10552,6 +10544,10 @@ var FAILURE_CODES = {
10552
10544
  AX_DAEMON_READY_TIMEOUT: "AX_DAEMON_READY_TIMEOUT",
10553
10545
  AX_DAEMON_EXITED_BEFORE_READY: "AX_DAEMON_EXITED_BEFORE_READY",
10554
10546
  AX_DAEMON_PROCESS_ERROR: "AX_DAEMON_PROCESS_ERROR",
10547
+ // The daemon died on a fault signal (SIGSEGV, SIGABRT, ...), before or after
10548
+ // it connected. Kept apart from the two codes above so a crash is not read
10549
+ // as an ordinary exit.
10550
+ AX_DAEMON_CRASHED: "AX_DAEMON_CRASHED",
10555
10551
  AX_FACTORY_OPTIONS_MISSING: "AX_FACTORY_OPTIONS_MISSING",
10556
10552
  AX_WRONG_PLATFORM: "AX_WRONG_PLATFORM",
10557
10553
  AX_DEVICE_ID_INVALID: "AX_DEVICE_ID_INVALID",
@@ -10634,6 +10630,7 @@ var FAILURE_CODES = {
10634
10630
  DEBUGGER_CDP_PROTOCOL_ERROR: "DEBUGGER_CDP_PROTOCOL_ERROR",
10635
10631
  DEBUGGER_CDP_CONNECT_FAILED: "DEBUGGER_CDP_CONNECT_FAILED",
10636
10632
  DEBUGGER_CDP_SOCKET_CLOSED_BEFORE_OPEN: "DEBUGGER_CDP_SOCKET_CLOSED_BEFORE_OPEN",
10633
+ DEBUGGER_CDP_ORIGIN_REJECTED: "DEBUGGER_CDP_ORIGIN_REJECTED",
10637
10634
  DEBUGGER_CDP_NOT_CONNECTED: "DEBUGGER_CDP_NOT_CONNECTED",
10638
10635
  DEBUGGER_CDP_REQUEST_TIMEOUT: "DEBUGGER_CDP_REQUEST_TIMEOUT",
10639
10636
  DEBUGGER_CDP_CONNECTION_CLOSED: "DEBUGGER_CDP_CONNECTION_CLOSED",
@@ -10708,6 +10705,32 @@ var FAILURE_CODES = {
10708
10705
  NATIVE_PROFILER_PERFETTO_PROCESS_ERROR: "NATIVE_PROFILER_PERFETTO_PROCESS_ERROR",
10709
10706
  NATIVE_PROFILER_PERFETTO_READY_TIMEOUT: "NATIVE_PROFILER_PERFETTO_READY_TIMEOUT",
10710
10707
  NATIVE_PROFILER_PERFETTO_READY_EXITED: "NATIVE_PROFILER_PERFETTO_READY_EXITED",
10708
+ /**
10709
+ * native-profiler-launch-analysis. Input problems use TOOL_INPUT_INVALID and
10710
+ * devicectl steps IOS_DEVICECTL_COMMAND_FAILED.
10711
+ * @see [workflow.ts](../../tool-server/src/utils/ios-launch-time/workflow.ts)
10712
+ */
10713
+ // Not macOS, or an Xcode that cannot record the launch on this target.
10714
+ LAUNCH_ANALYSIS_UNSUPPORTED_HOST: "LAUNCH_ANALYSIS_UNSUPPORTED_HOST",
10715
+ // No usable iPhone or simulator was selected, or Argent's runner holds it.
10716
+ LAUNCH_ANALYSIS_DEVICE_UNAVAILABLE: "LAUNCH_ANALYSIS_DEVICE_UNAVAILABLE",
10717
+ // The bundle_id app is not installed on the selected device.
10718
+ LAUNCH_ANALYSIS_APP_NOT_INSTALLED: "LAUNCH_ANALYSIS_APP_NOT_INSTALLED",
10719
+ // The runner's xcodebuild failed on code signing or provisioning.
10720
+ LAUNCH_ANALYSIS_SIGNING_FAILED: "LAUNCH_ANALYSIS_SIGNING_FAILED",
10721
+ // The iPhone's free developer profile has no slot for Argent's runner.
10722
+ LAUNCH_ANALYSIS_FREE_PROFILE_LIMIT: "LAUNCH_ANALYSIS_FREE_PROFILE_LIMIT",
10723
+ // simctl could not wait for boot, find, launch or terminate the app.
10724
+ LAUNCH_ANALYSIS_SIMCTL_FAILED: "LAUNCH_ANALYSIS_SIMCTL_FAILED",
10725
+ LAUNCH_ANALYSIS_RECORD_FAILED: "LAUNCH_ANALYSIS_RECORD_FAILED",
10726
+ // xctrace could not export the TOC, the CPU samples or the first-frame marker.
10727
+ LAUNCH_ANALYSIS_EXPORT_FAILED: "LAUNCH_ANALYSIS_EXPORT_FAILED",
10728
+ // The App Launch trace has no first frame of the app, so it has no launch window.
10729
+ LAUNCH_ANALYSIS_NO_FIRST_FRAME: "LAUNCH_ANALYSIS_NO_FIRST_FRAME",
10730
+ // The XCTest launch run of Argent's runner failed.
10731
+ LAUNCH_ANALYSIS_RUNNER_TEST_FAILED: "LAUNCH_ANALYSIS_RUNNER_TEST_FAILED",
10732
+ // The launch test ran, but Argent read no launch measurements from its result.
10733
+ LAUNCH_ANALYSIS_NO_SAMPLES: "LAUNCH_ANALYSIS_NO_SAMPLES",
10711
10734
  // iOS and Android share one capture path (simulator-server frames into
10712
10735
  // ffmpeg), so these name the failing stage, not the device family.
10713
10736
  SCREEN_RECORDING_FACTORY_OPTIONS_MISSING: "SCREEN_RECORDING_FACTORY_OPTIONS_MISSING",
@@ -10785,6 +10808,8 @@ var FAILURE_CODES = {
10785
10808
  MACOS_APP_BUNDLE_ID_MISMATCH: "MACOS_APP_BUNDLE_ID_MISMATCH",
10786
10809
  MACOS_APP_OPEN_URL_FAILED: "MACOS_APP_OPEN_URL_FAILED",
10787
10810
  MACOS_APP_FILE_ACCESS_FAILED: "MACOS_APP_FILE_ACCESS_FAILED",
10811
+ /** The app's loaded Argent library lacks support for the requested operation. */
10812
+ MACOS_APP_LIBRARY_OUTDATED: "MACOS_APP_LIBRARY_OUTDATED",
10788
10813
  KEYBOARD_KEY_UNSUPPORTED: "KEYBOARD_KEY_UNSUPPORTED",
10789
10814
  KEYBOARD_CHARACTER_UNSUPPORTED: "KEYBOARD_CHARACTER_UNSUPPORTED",
10790
10815
  KEYBOARD_TEXT_AND_KEY_COMBINED: "KEYBOARD_TEXT_AND_KEY_COMBINED",
@@ -10860,7 +10885,9 @@ var FAILURE_COMMANDS = [
10860
10885
  "npx",
10861
10886
  "unknown",
10862
10887
  "devicectl",
10863
- "xcodebuild"
10888
+ "xcodebuild",
10889
+ // `xcrun xcresulttool`, which reads an XCTest result bundle.
10890
+ "xcresulttool"
10864
10891
  ];
10865
10892
  var FAILURE_SIGNAL_NAMES = [
10866
10893
  "SIGABRT",
@@ -35333,7 +35360,8 @@ var DEVICE_KINDS = [
35333
35360
  "emulator",
35334
35361
  "vvd",
35335
35362
  "device",
35336
- "app"
35363
+ "app",
35364
+ "catalyst"
35337
35365
  ];
35338
35366
  var DEBUGGER_NOT_CONNECTED_REASONS = [
35339
35367
  "metro_not_running",
@@ -35471,7 +35499,8 @@ var ALLOWED = {
35471
35499
  install_mode: INSTALL_MODE
35472
35500
  },
35473
35501
  "installation:allowlist_decision": {
35474
- is_enabled: bool
35502
+ is_enabled: bool,
35503
+ decided_by: oneOf(["flag", "default", "prompt"])
35475
35504
  },
35476
35505
  "installation:stale_config_cleanup": {
35477
35506
  removed_count: COUNT,
@@ -36081,7 +36110,7 @@ var _CI_VENDOR_COUNT_FOR_TEST = vendors_default.length;
36081
36110
  var SESSION_ID2 = randomUUID5();
36082
36111
  function readCliVersion() {
36083
36112
  if (true) {
36084
- return "0.34.1-next.1";
36113
+ return "0.34.1-next.20";
36085
36114
  }
36086
36115
  return "0.0.0";
36087
36116
  }
@@ -37021,6 +37050,7 @@ function isValidationIssue(value) {
37021
37050
  }
37022
37051
 
37023
37052
  // ../argent-cli/src/e2e.ts
37053
+ var import_yaml3 = __toESM(require_dist(), 1);
37024
37054
  import * as fsp from "node:fs/promises";
37025
37055
  import { constants as fsConstants2 } from "node:fs";
37026
37056
  import { createHash as createHash5 } from "node:crypto";
@@ -37157,7 +37187,8 @@ warning, and each script step's output), then its outcome. After the last test
37157
37187
  it lists every failed test with its reason and a command that re-runs that test
37158
37188
  alone, then a final summary; --recursive walks subdirectories too
37159
37189
  (__baselines__, node_modules and dot-directories other than .argent are
37160
- skipped). A test that fails its steps keeps the batch running, as does one the
37190
+ skipped). A directory run and list skip a YAML file that is not an e2e test.
37191
+ A test that fails its steps keeps the batch running, as does one the
37161
37192
  server rejects up front \u2014 an invalid file, or a device it cannot resolve. A
37162
37193
  transport failure, a rejection the server does not mark as validation, or a
37163
37194
  reply that is not a report stops the batch and counts the remaining tests
@@ -37197,8 +37228,8 @@ Subcommands:
37197
37228
  subdirectories), or in .argent/e2e and
37198
37229
  .argent/flows (legacy) with notes on stderr.
37199
37230
  --json prints { "e2eTests": [...] } instead, with
37200
- path per entry, plus name, legacy and shadowedBy
37201
- when no dir is given
37231
+ path and an optional warning per entry, plus name,
37232
+ legacy and shadowedBy when no dir is given
37202
37233
 
37203
37234
  Options (run):
37204
37235
  --device <id> Device id to run against (auto-detected when omitted)
@@ -37599,6 +37630,29 @@ async function isRunnableFlowFile(filePath) {
37599
37630
  return false;
37600
37631
  }
37601
37632
  }
37633
+ var E2E_FILE_WARNING_TEXT = {
37634
+ "syntax-error": "has a YAML syntax error",
37635
+ "empty": "is empty"
37636
+ };
37637
+ async function checkE2eTestShape(filePath) {
37638
+ let content;
37639
+ try {
37640
+ content = (await fsp.readFile(filePath, "utf8")).trim();
37641
+ } catch {
37642
+ return "ok";
37643
+ }
37644
+ if (content.length === 0) return "empty";
37645
+ if (!content.includes("steps") && !/^version:/m.test(content)) return "skip";
37646
+ let parsed;
37647
+ try {
37648
+ parsed = (0, import_yaml3.parse)(content, { logLevel: "error" });
37649
+ } catch {
37650
+ return "syntax-error";
37651
+ }
37652
+ if (typeof parsed !== "object" || parsed === null) return "skip";
37653
+ const { version: version2 } = parsed;
37654
+ return Number.isInteger(version2) && Number(version2) > 1 || "steps" in parsed ? "ok" : "skip";
37655
+ }
37602
37656
  async function resolveFlowRef(ref, projectRoot) {
37603
37657
  if (!SAFE_FLOW_NAME.test(ref)) return { suppliedPath: ref, fromName: false };
37604
37658
  const picked = await resolveE2eFile(projectRoot, ref);
@@ -37642,11 +37696,15 @@ async function collectFlowFiles(dir, recursive2) {
37642
37696
  }
37643
37697
  if (!entry.name.endsWith(".yaml")) continue;
37644
37698
  if (!SAFE_FLOW_NAME.test(path17.basename(entry.name, ".yaml"))) continue;
37645
- if (await isRunnableFlowFile(path17.join(current, entry.name))) found.push(entryRel);
37699
+ const filePath = path17.join(current, entry.name);
37700
+ if (!await isRunnableFlowFile(filePath)) continue;
37701
+ const shape = await checkE2eTestShape(filePath);
37702
+ if (shape === "skip") continue;
37703
+ found.push({ path: entryRel, ...shape !== "ok" && { warning: shape } });
37646
37704
  }
37647
37705
  };
37648
37706
  await walk(dir, "");
37649
- return found.sort();
37707
+ return found.sort((a2, b) => a2.path < b.path ? -1 : a2.path > b.path ? 1 : 0);
37650
37708
  }
37651
37709
  var RUN_TOOL_ID = "e2e-execute";
37652
37710
  function buildRunPayload(flowPath, projectRoot, args) {
@@ -37779,7 +37837,7 @@ async function runFlowDirectory(dir, args, projectRoot, options) {
37779
37837
  };
37780
37838
  let flows;
37781
37839
  try {
37782
- flows = await collectFlowFiles(dir, args.recursive);
37840
+ flows = (await collectFlowFiles(dir, args.recursive)).map((file2) => file2.path);
37783
37841
  } catch {
37784
37842
  return reject(`Could not read e2e test directory: ${dir}`);
37785
37843
  }
@@ -37947,9 +38005,9 @@ Pass the fully resolved path to the directory.`
37947
38005
  let anyDir = false;
37948
38006
  const dirs = listDir === void 0 ? E2E_DIRS : [listDir];
37949
38007
  for (const dir of dirs) {
37950
- let rels;
38008
+ let files;
37951
38009
  try {
37952
- rels = await collectFlowFiles(path17.resolve(dir), listDir === void 0 || recursive2);
38010
+ files = await collectFlowFiles(path17.resolve(dir), listDir === void 0 || recursive2);
37953
38011
  } catch (err) {
37954
38012
  const code = err.code;
37955
38013
  if (listDir === void 0 && (code === "ENOENT" || code === "ENOTDIR")) continue;
@@ -37958,10 +38016,11 @@ Pass the fully resolved path to the directory.`
37958
38016
  );
37959
38017
  }
37960
38018
  anyDir = true;
37961
- for (const rel of rels) {
38019
+ for (const { path: rel, warning } of files) {
37962
38020
  const shown = path17.join(dir, rel);
38021
+ const warningField = warning !== void 0 && { warning };
37963
38022
  if (listDir !== void 0) {
37964
- entries.push({ path: optionSafePath(shown) });
38023
+ entries.push({ path: optionSafePath(shown), ...warningField });
37965
38024
  continue;
37966
38025
  }
37967
38026
  const name = path17.dirname(rel) === "." ? path17.basename(rel, ".yaml") : void 0;
@@ -37971,7 +38030,8 @@ Pass the fully resolved path to the directory.`
37971
38030
  path: shown,
37972
38031
  ...name !== void 0 && { name },
37973
38032
  legacy: dir !== E2E_DIR,
37974
- ...shadowedBy !== void 0 && { shadowedBy }
38033
+ ...shadowedBy !== void 0 && { shadowedBy },
38034
+ ...warningField
37975
38035
  });
37976
38036
  }
37977
38037
  }
@@ -37995,6 +38055,8 @@ Pass the fully resolved path to the directory.`
37995
38055
  console.error(
37996
38056
  `warning: ${entry.path} is shadowed by ${entry.shadowedBy} when run by name`
37997
38057
  );
38058
+ if (entry.warning !== void 0)
38059
+ console.error(`warning: ${entry.path} ${E2E_FILE_WARNING_TEXT[entry.warning]}`);
37998
38060
  }
37999
38061
  const legacyCount = entries.filter((entry) => entry.legacy).length;
38000
38062
  if (legacyCount > 0) {
package/dist/client.js CHANGED
@@ -7805,7 +7805,7 @@ var FLAG_REGISTRY = [
7805
7805
  },
7806
7806
  {
7807
7807
  name: "macos-apps",
7808
- description: "Drive native Mac apps (AppKit, SwiftUI, react-native-macos) from inside the app. Adds the macos platform to list-devices and boot-device, and the file-panel and menu-bar tools. On by default; turn it off with `argent disable macos-apps`.",
7808
+ description: "Control native Mac apps, including Mac Catalyst. Adds the macos platform to list-devices and boot-device, and the file-panel and menu-bar tools. On by default; turn it off with `argent disable macos-apps`.",
7809
7809
  defaultEnabled: true
7810
7810
  }
7811
7811
  ];
@@ -8136,14 +8136,6 @@ var CONFIG_SCHEMA = [
8136
8136
  // drained/reset, not just the file rewritten.
8137
8137
  manageCommand: "argent telemetry"
8138
8138
  },
8139
- {
8140
- key: "allowlist.enabled",
8141
- description: "Whether `argent update` re-applies editor auto-approve allowlist rules. Unset (the default) keeps the current behavior: update refreshes the rules for editors that already have argent configured. Set to `false` to keep update from touching editor allowlists. `false` in either scope wins, so a committed project opt-out holds for every teammate.",
8142
- scopes: ["project", "global"],
8143
- parse: asBoolean,
8144
- merge: "prioritize-restrictive",
8145
- example: "false"
8146
- },
8147
8139
  {
8148
8140
  key: "lens.agent",
8149
8141
  description: "Coding-agent id remembered by `argent lens` to skip the picker.",
@@ -9125,6 +9117,10 @@ var FAILURE_CODES = {
9125
9117
  AX_DAEMON_READY_TIMEOUT: "AX_DAEMON_READY_TIMEOUT",
9126
9118
  AX_DAEMON_EXITED_BEFORE_READY: "AX_DAEMON_EXITED_BEFORE_READY",
9127
9119
  AX_DAEMON_PROCESS_ERROR: "AX_DAEMON_PROCESS_ERROR",
9120
+ // The daemon died on a fault signal (SIGSEGV, SIGABRT, ...), before or after
9121
+ // it connected. Kept apart from the two codes above so a crash is not read
9122
+ // as an ordinary exit.
9123
+ AX_DAEMON_CRASHED: "AX_DAEMON_CRASHED",
9128
9124
  AX_FACTORY_OPTIONS_MISSING: "AX_FACTORY_OPTIONS_MISSING",
9129
9125
  AX_WRONG_PLATFORM: "AX_WRONG_PLATFORM",
9130
9126
  AX_DEVICE_ID_INVALID: "AX_DEVICE_ID_INVALID",
@@ -9207,6 +9203,7 @@ var FAILURE_CODES = {
9207
9203
  DEBUGGER_CDP_PROTOCOL_ERROR: "DEBUGGER_CDP_PROTOCOL_ERROR",
9208
9204
  DEBUGGER_CDP_CONNECT_FAILED: "DEBUGGER_CDP_CONNECT_FAILED",
9209
9205
  DEBUGGER_CDP_SOCKET_CLOSED_BEFORE_OPEN: "DEBUGGER_CDP_SOCKET_CLOSED_BEFORE_OPEN",
9206
+ DEBUGGER_CDP_ORIGIN_REJECTED: "DEBUGGER_CDP_ORIGIN_REJECTED",
9210
9207
  DEBUGGER_CDP_NOT_CONNECTED: "DEBUGGER_CDP_NOT_CONNECTED",
9211
9208
  DEBUGGER_CDP_REQUEST_TIMEOUT: "DEBUGGER_CDP_REQUEST_TIMEOUT",
9212
9209
  DEBUGGER_CDP_CONNECTION_CLOSED: "DEBUGGER_CDP_CONNECTION_CLOSED",
@@ -9281,6 +9278,32 @@ var FAILURE_CODES = {
9281
9278
  NATIVE_PROFILER_PERFETTO_PROCESS_ERROR: "NATIVE_PROFILER_PERFETTO_PROCESS_ERROR",
9282
9279
  NATIVE_PROFILER_PERFETTO_READY_TIMEOUT: "NATIVE_PROFILER_PERFETTO_READY_TIMEOUT",
9283
9280
  NATIVE_PROFILER_PERFETTO_READY_EXITED: "NATIVE_PROFILER_PERFETTO_READY_EXITED",
9281
+ /**
9282
+ * native-profiler-launch-analysis. Input problems use TOOL_INPUT_INVALID and
9283
+ * devicectl steps IOS_DEVICECTL_COMMAND_FAILED.
9284
+ * @see [workflow.ts](../../tool-server/src/utils/ios-launch-time/workflow.ts)
9285
+ */
9286
+ // Not macOS, or an Xcode that cannot record the launch on this target.
9287
+ LAUNCH_ANALYSIS_UNSUPPORTED_HOST: "LAUNCH_ANALYSIS_UNSUPPORTED_HOST",
9288
+ // No usable iPhone or simulator was selected, or Argent's runner holds it.
9289
+ LAUNCH_ANALYSIS_DEVICE_UNAVAILABLE: "LAUNCH_ANALYSIS_DEVICE_UNAVAILABLE",
9290
+ // The bundle_id app is not installed on the selected device.
9291
+ LAUNCH_ANALYSIS_APP_NOT_INSTALLED: "LAUNCH_ANALYSIS_APP_NOT_INSTALLED",
9292
+ // The runner's xcodebuild failed on code signing or provisioning.
9293
+ LAUNCH_ANALYSIS_SIGNING_FAILED: "LAUNCH_ANALYSIS_SIGNING_FAILED",
9294
+ // The iPhone's free developer profile has no slot for Argent's runner.
9295
+ LAUNCH_ANALYSIS_FREE_PROFILE_LIMIT: "LAUNCH_ANALYSIS_FREE_PROFILE_LIMIT",
9296
+ // simctl could not wait for boot, find, launch or terminate the app.
9297
+ LAUNCH_ANALYSIS_SIMCTL_FAILED: "LAUNCH_ANALYSIS_SIMCTL_FAILED",
9298
+ LAUNCH_ANALYSIS_RECORD_FAILED: "LAUNCH_ANALYSIS_RECORD_FAILED",
9299
+ // xctrace could not export the TOC, the CPU samples or the first-frame marker.
9300
+ LAUNCH_ANALYSIS_EXPORT_FAILED: "LAUNCH_ANALYSIS_EXPORT_FAILED",
9301
+ // The App Launch trace has no first frame of the app, so it has no launch window.
9302
+ LAUNCH_ANALYSIS_NO_FIRST_FRAME: "LAUNCH_ANALYSIS_NO_FIRST_FRAME",
9303
+ // The XCTest launch run of Argent's runner failed.
9304
+ LAUNCH_ANALYSIS_RUNNER_TEST_FAILED: "LAUNCH_ANALYSIS_RUNNER_TEST_FAILED",
9305
+ // The launch test ran, but Argent read no launch measurements from its result.
9306
+ LAUNCH_ANALYSIS_NO_SAMPLES: "LAUNCH_ANALYSIS_NO_SAMPLES",
9284
9307
  // iOS and Android share one capture path (simulator-server frames into
9285
9308
  // ffmpeg), so these name the failing stage, not the device family.
9286
9309
  SCREEN_RECORDING_FACTORY_OPTIONS_MISSING: "SCREEN_RECORDING_FACTORY_OPTIONS_MISSING",
@@ -9358,6 +9381,8 @@ var FAILURE_CODES = {
9358
9381
  MACOS_APP_BUNDLE_ID_MISMATCH: "MACOS_APP_BUNDLE_ID_MISMATCH",
9359
9382
  MACOS_APP_OPEN_URL_FAILED: "MACOS_APP_OPEN_URL_FAILED",
9360
9383
  MACOS_APP_FILE_ACCESS_FAILED: "MACOS_APP_FILE_ACCESS_FAILED",
9384
+ /** The app's loaded Argent library lacks support for the requested operation. */
9385
+ MACOS_APP_LIBRARY_OUTDATED: "MACOS_APP_LIBRARY_OUTDATED",
9361
9386
  KEYBOARD_KEY_UNSUPPORTED: "KEYBOARD_KEY_UNSUPPORTED",
9362
9387
  KEYBOARD_CHARACTER_UNSUPPORTED: "KEYBOARD_CHARACTER_UNSUPPORTED",
9363
9388
  KEYBOARD_TEXT_AND_KEY_COMBINED: "KEYBOARD_TEXT_AND_KEY_COMBINED",
@@ -95,6 +95,10 @@ export const INSTALLER_COMMAND_META = {
95
95
  options: [
96
96
  NON_INTERACTIVE_OPTION,
97
97
  NO_TELEMETRY_OPTION,
98
+ {
99
+ flag: "--no-allowlist",
100
+ description: "Skip adding Argent tools to editor auto-approve lists.",
101
+ },
98
102
  {
99
103
  flag: "--from <path>",
100
104
  description: "Install from a local tarball or package spec instead of the npm release.",
@@ -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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