@swmansion/argent 0.34.1-next.20 → 0.34.1-next.21

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/LICENSE CHANGED
@@ -184,6 +184,7 @@ License, Version 2.0 above:
184
184
 
185
185
  bin/simulator-server
186
186
  bin/ax-service
187
+ dylibs/libArgentAudio.dylib
187
188
  dylibs/libArgentInjectionBootstrap.dylib
188
189
  dylibs/libKeyboardPatch.dylib
189
190
  dylibs/libNativeDevtoolsIos.dylib
package/dist/cli-cmds.mjs CHANGED
@@ -9477,6 +9477,11 @@ var FLAG_REGISTRY = [
9477
9477
  name: "forward-secrets",
9478
9478
  description: "Over `argent link` or ARGENT_TOOLS_URL, resolve each `{{secret:NAME}}` a call names on this machine and send the value with the call, so a remote tool-server can type a secret it does not hold. The linked tool-server then receives every secret of this machine that a call names, so link only one you trust with all of them. Values go only over https:// with the certificate checked, or to a loopback address. Off by default."
9479
9479
  },
9480
+ {
9481
+ name: "ios-audio-always-inserted",
9482
+ description: "Insert the iOS audio hook (libArgentAudio.dylib) into every app an armed simulator launches, so audio-input works without restart-app. Dormant until the app opens audio. On by default; `argent disable ios-audio-always-inserted` inserts it only on the first audio tool call, for apps launched after that call.",
9483
+ defaultEnabled: true
9484
+ },
9480
9485
  {
9481
9486
  name: "video-watermark",
9482
9487
  description: "Overlay the argent corner watermark on recorded screen videos. On by default; turn it off with `argent disable video-watermark`.",
@@ -10212,7 +10217,18 @@ function interpolateFileInputPath(template, args) {
10212
10217
  });
10213
10218
  return missing ? null : out;
10214
10219
  }
10215
- var TOOL_FILE_EXTENSIONS = [".png", ".yaml"];
10220
+ var TOOL_FILE_EXTENSIONS = [
10221
+ ".png",
10222
+ ".yaml",
10223
+ ".wav",
10224
+ ".mp3",
10225
+ ".m4a",
10226
+ ".aac",
10227
+ ".caf",
10228
+ ".aif",
10229
+ ".aiff",
10230
+ ".flac"
10231
+ ];
10216
10232
  function hasToolFileExtension(file2) {
10217
10233
  const name = file2.toLowerCase();
10218
10234
  return TOOL_FILE_EXTENSIONS.some((extension) => name.endsWith(extension));
@@ -10745,6 +10761,13 @@ var FAILURE_CODES = {
10745
10761
  SCREEN_RECORDING_SERVER_SHUTTING_DOWN: "SCREEN_RECORDING_SERVER_SHUTTING_DOWN",
10746
10762
  SCREEN_RECORDING_STREAM_UNAVAILABLE: "SCREEN_RECORDING_STREAM_UNAVAILABLE",
10747
10763
  SCREEN_RECORDING_FFMPEG_NOT_FOUND: "SCREEN_RECORDING_FFMPEG_NOT_FOUND",
10764
+ AUDIO_CLIP_CONVERSION_FAILED: "AUDIO_CLIP_CONVERSION_FAILED",
10765
+ AUDIO_HOOK_NOT_ACTIVE: "AUDIO_HOOK_NOT_ACTIVE",
10766
+ AUDIO_ENV_SETUP_FAILED: "AUDIO_ENV_SETUP_FAILED",
10767
+ AUDIO_WRONG_PLATFORM: "AUDIO_WRONG_PLATFORM",
10768
+ AUDIO_HOOK_UNAVAILABLE: "AUDIO_HOOK_UNAVAILABLE",
10769
+ AUDIO_INJECTION_NOT_OURS: "AUDIO_INJECTION_NOT_OURS",
10770
+ AUDIO_SIMULATOR_NOT_BOOTED: "AUDIO_SIMULATOR_NOT_BOOTED",
10748
10771
  FLOW_PROJECT_ROOT_INVALID: "FLOW_PROJECT_ROOT_INVALID",
10749
10772
  FLOW_NAME_INVALID: "FLOW_NAME_INVALID",
10750
10773
  FLOW_NO_ACTIVE_RECORDING: "FLOW_NO_ACTIVE_RECORDING",
@@ -10879,6 +10902,7 @@ var FAILURE_COMMANDS = [
10879
10902
  "ax_service",
10880
10903
  "simulator_server",
10881
10904
  "ffmpeg",
10905
+ "afconvert",
10882
10906
  "cdp",
10883
10907
  "electron",
10884
10908
  "npm",
@@ -36110,7 +36134,7 @@ var _CI_VENDOR_COUNT_FOR_TEST = vendors_default.length;
36110
36134
  var SESSION_ID2 = randomUUID5();
36111
36135
  function readCliVersion() {
36112
36136
  if (true) {
36113
- return "0.34.1-next.20";
36137
+ return "0.34.1-next.21";
36114
36138
  }
36115
36139
  return "0.0.0";
36116
36140
  }
package/dist/client.js CHANGED
@@ -7798,6 +7798,11 @@ var FLAG_REGISTRY = [
7798
7798
  name: "forward-secrets",
7799
7799
  description: "Over `argent link` or ARGENT_TOOLS_URL, resolve each `{{secret:NAME}}` a call names on this machine and send the value with the call, so a remote tool-server can type a secret it does not hold. The linked tool-server then receives every secret of this machine that a call names, so link only one you trust with all of them. Values go only over https:// with the certificate checked, or to a loopback address. Off by default."
7800
7800
  },
7801
+ {
7802
+ name: "ios-audio-always-inserted",
7803
+ description: "Insert the iOS audio hook (libArgentAudio.dylib) into every app an armed simulator launches, so audio-input works without restart-app. Dormant until the app opens audio. On by default; `argent disable ios-audio-always-inserted` inserts it only on the first audio tool call, for apps launched after that call.",
7804
+ defaultEnabled: true
7805
+ },
7801
7806
  {
7802
7807
  name: "video-watermark",
7803
7808
  description: "Overlay the argent corner watermark on recorded screen videos. On by default; turn it off with `argent disable video-watermark`.",
@@ -8788,7 +8793,18 @@ function interpolateFileInputPath(template, args) {
8788
8793
  });
8789
8794
  return missing ? null : out;
8790
8795
  }
8791
- var TOOL_FILE_EXTENSIONS = [".png", ".yaml"];
8796
+ var TOOL_FILE_EXTENSIONS = [
8797
+ ".png",
8798
+ ".yaml",
8799
+ ".wav",
8800
+ ".mp3",
8801
+ ".m4a",
8802
+ ".aac",
8803
+ ".caf",
8804
+ ".aif",
8805
+ ".aiff",
8806
+ ".flac"
8807
+ ];
8792
8808
  function hasToolFileExtension(file) {
8793
8809
  const name = file.toLowerCase();
8794
8810
  return TOOL_FILE_EXTENSIONS.some((extension) => name.endsWith(extension));
@@ -9318,6 +9334,13 @@ var FAILURE_CODES = {
9318
9334
  SCREEN_RECORDING_SERVER_SHUTTING_DOWN: "SCREEN_RECORDING_SERVER_SHUTTING_DOWN",
9319
9335
  SCREEN_RECORDING_STREAM_UNAVAILABLE: "SCREEN_RECORDING_STREAM_UNAVAILABLE",
9320
9336
  SCREEN_RECORDING_FFMPEG_NOT_FOUND: "SCREEN_RECORDING_FFMPEG_NOT_FOUND",
9337
+ AUDIO_CLIP_CONVERSION_FAILED: "AUDIO_CLIP_CONVERSION_FAILED",
9338
+ AUDIO_HOOK_NOT_ACTIVE: "AUDIO_HOOK_NOT_ACTIVE",
9339
+ AUDIO_ENV_SETUP_FAILED: "AUDIO_ENV_SETUP_FAILED",
9340
+ AUDIO_WRONG_PLATFORM: "AUDIO_WRONG_PLATFORM",
9341
+ AUDIO_HOOK_UNAVAILABLE: "AUDIO_HOOK_UNAVAILABLE",
9342
+ AUDIO_INJECTION_NOT_OURS: "AUDIO_INJECTION_NOT_OURS",
9343
+ AUDIO_SIMULATOR_NOT_BOOTED: "AUDIO_SIMULATOR_NOT_BOOTED",
9321
9344
  FLOW_PROJECT_ROOT_INVALID: "FLOW_PROJECT_ROOT_INVALID",
9322
9345
  FLOW_NAME_INVALID: "FLOW_NAME_INVALID",
9323
9346
  FLOW_NO_ACTIVE_RECORDING: "FLOW_NO_ACTIVE_RECORDING",
@@ -15968,6 +15968,13 @@ var FAILURE_CODES = {
15968
15968
  SCREEN_RECORDING_SERVER_SHUTTING_DOWN: "SCREEN_RECORDING_SERVER_SHUTTING_DOWN",
15969
15969
  SCREEN_RECORDING_STREAM_UNAVAILABLE: "SCREEN_RECORDING_STREAM_UNAVAILABLE",
15970
15970
  SCREEN_RECORDING_FFMPEG_NOT_FOUND: "SCREEN_RECORDING_FFMPEG_NOT_FOUND",
15971
+ AUDIO_CLIP_CONVERSION_FAILED: "AUDIO_CLIP_CONVERSION_FAILED",
15972
+ AUDIO_HOOK_NOT_ACTIVE: "AUDIO_HOOK_NOT_ACTIVE",
15973
+ AUDIO_ENV_SETUP_FAILED: "AUDIO_ENV_SETUP_FAILED",
15974
+ AUDIO_WRONG_PLATFORM: "AUDIO_WRONG_PLATFORM",
15975
+ AUDIO_HOOK_UNAVAILABLE: "AUDIO_HOOK_UNAVAILABLE",
15976
+ AUDIO_INJECTION_NOT_OURS: "AUDIO_INJECTION_NOT_OURS",
15977
+ AUDIO_SIMULATOR_NOT_BOOTED: "AUDIO_SIMULATOR_NOT_BOOTED",
15971
15978
  FLOW_PROJECT_ROOT_INVALID: "FLOW_PROJECT_ROOT_INVALID",
15972
15979
  FLOW_NAME_INVALID: "FLOW_NAME_INVALID",
15973
15980
  FLOW_NO_ACTIVE_RECORDING: "FLOW_NO_ACTIVE_RECORDING",
@@ -16102,6 +16109,7 @@ var FAILURE_COMMANDS = [
16102
16109
  "ax_service",
16103
16110
  "simulator_server",
16104
16111
  "ffmpeg",
16112
+ "afconvert",
16105
16113
  "cdp",
16106
16114
  "electron",
16107
16115
  "npm",
@@ -16909,7 +16917,7 @@ var _CI_VENDOR_COUNT_FOR_TEST = vendors_default.length;
16909
16917
  var SESSION_ID = randomUUID4();
16910
16918
  function readCliVersion() {
16911
16919
  if (true) {
16912
- return "0.34.1-next.20";
16920
+ return "0.34.1-next.21";
16913
16921
  }
16914
16922
  return "0.0.0";
16915
16923
  }
@@ -24939,6 +24939,11 @@ var FLAG_REGISTRY = [
24939
24939
  name: "forward-secrets",
24940
24940
  description: "Over `argent link` or ARGENT_TOOLS_URL, resolve each `{{secret:NAME}}` a call names on this machine and send the value with the call, so a remote tool-server can type a secret it does not hold. The linked tool-server then receives every secret of this machine that a call names, so link only one you trust with all of them. Values go only over https:// with the certificate checked, or to a loopback address. Off by default."
24941
24941
  },
24942
+ {
24943
+ name: "ios-audio-always-inserted",
24944
+ description: "Insert the iOS audio hook (libArgentAudio.dylib) into every app an armed simulator launches, so audio-input works without restart-app. Dormant until the app opens audio. On by default; `argent disable ios-audio-always-inserted` inserts it only on the first audio tool call, for apps launched after that call.",
24945
+ defaultEnabled: true
24946
+ },
24942
24947
  {
24943
24948
  name: "video-watermark",
24944
24949
  description: "Overlay the argent corner watermark on recorded screen videos. On by default; turn it off with `argent disable video-watermark`.",
@@ -25498,7 +25503,18 @@ function interpolateFileInputPath(template, args) {
25498
25503
  });
25499
25504
  return missing ? null : out;
25500
25505
  }
25501
- var TOOL_FILE_EXTENSIONS = [".png", ".yaml"];
25506
+ var TOOL_FILE_EXTENSIONS = [
25507
+ ".png",
25508
+ ".yaml",
25509
+ ".wav",
25510
+ ".mp3",
25511
+ ".m4a",
25512
+ ".aac",
25513
+ ".caf",
25514
+ ".aif",
25515
+ ".aiff",
25516
+ ".flac"
25517
+ ];
25502
25518
  function hasToolFileExtension(file) {
25503
25519
  const name = file.toLowerCase();
25504
25520
  return TOOL_FILE_EXTENSIONS.some((extension) => name.endsWith(extension));
@@ -26028,6 +26044,13 @@ var FAILURE_CODES = {
26028
26044
  SCREEN_RECORDING_SERVER_SHUTTING_DOWN: "SCREEN_RECORDING_SERVER_SHUTTING_DOWN",
26029
26045
  SCREEN_RECORDING_STREAM_UNAVAILABLE: "SCREEN_RECORDING_STREAM_UNAVAILABLE",
26030
26046
  SCREEN_RECORDING_FFMPEG_NOT_FOUND: "SCREEN_RECORDING_FFMPEG_NOT_FOUND",
26047
+ AUDIO_CLIP_CONVERSION_FAILED: "AUDIO_CLIP_CONVERSION_FAILED",
26048
+ AUDIO_HOOK_NOT_ACTIVE: "AUDIO_HOOK_NOT_ACTIVE",
26049
+ AUDIO_ENV_SETUP_FAILED: "AUDIO_ENV_SETUP_FAILED",
26050
+ AUDIO_WRONG_PLATFORM: "AUDIO_WRONG_PLATFORM",
26051
+ AUDIO_HOOK_UNAVAILABLE: "AUDIO_HOOK_UNAVAILABLE",
26052
+ AUDIO_INJECTION_NOT_OURS: "AUDIO_INJECTION_NOT_OURS",
26053
+ AUDIO_SIMULATOR_NOT_BOOTED: "AUDIO_SIMULATOR_NOT_BOOTED",
26031
26054
  FLOW_PROJECT_ROOT_INVALID: "FLOW_PROJECT_ROOT_INVALID",
26032
26055
  FLOW_NAME_INVALID: "FLOW_NAME_INVALID",
26033
26056
  FLOW_NO_ACTIVE_RECORDING: "FLOW_NO_ACTIVE_RECORDING",
@@ -26162,6 +26185,7 @@ var FAILURE_COMMANDS = [
26162
26185
  "ax_service",
26163
26186
  "simulator_server",
26164
26187
  "ffmpeg",
26188
+ "afconvert",
26165
26189
  "cdp",
26166
26190
  "electron",
26167
26191
  "npm",
@@ -1,4 +1,20 @@
1
1
  export interface ArgentToolArgs {
2
+ "audio-input": {
3
+ /** Target iOS Simulator UDID from `list-devices`. */
4
+ udid: string;
5
+ /** `file` plays `path`, `tone` a sine wave, `microphone` restores the real microphone. */
6
+ source: "file" | "tone" | "microphone";
7
+ /** Audio file, required for source=file. */
8
+ path?: string;
9
+ /** source=file only. Times the file plays. Default 1. */
10
+ plays?: number;
11
+ /** source=tone only. Default 1000. */
12
+ frequencyHz?: number;
13
+ /** source=tone only. Default 0.4. */
14
+ amplitude?: number;
15
+ /** App under test; the result then reports `appReady`. */
16
+ bundleId?: string;
17
+ };
2
18
  "await-screen-idle": {
3
19
  /** Target device id from `list-devices` (iOS UDID, Android serial, HarmonyOS id, Mac app id, or Chromium id). */
4
20
  udid: string;