@swmansion/argent 0.35.1-next.44 → 0.35.1-next.46

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.
@@ -308,7 +308,7 @@ export interface ArgentToolArgs {
308
308
  path: string;
309
309
  /** Timeout in ms (default 30000, min 100). */
310
310
  timeout?: number;
311
- /** Env overrides (supports `{{secret:NAME}}` and `{{output:PATH}}`). */
311
+ /** Environment values for this script. Override same-name vars. Supports `{{secret:NAME}}`, `{{var:NAME}}`, and `{{output:PATH}}`. */
312
312
  env?: {
313
313
  [key: string]: string;
314
314
  };
@@ -358,8 +358,8 @@ export interface ArgentToolArgs {
358
358
  updateBaselines?: boolean;
359
359
  /** Set true to confirm a fragment's `executionPrerequisite` is met; otherwise returns the prerequisite text without running. Not a dry run: a test with no prerequisite runs in full (read `executionPrerequisite` in the YAML to inspect without running). */
360
360
  prerequisiteAcknowledged?: boolean;
361
- /** Script env overrides (also for `run:` fragments). Supports `{{secret:NAME}}`. */
362
- env?: {
361
+ /** Overrides for the test's `vars:` defaults, including `run:` fragments. Values can contain `{{secret:NAME}}` placeholders. */
362
+ vars?: {
363
363
  [key: string]: string;
364
364
  };
365
365
  /** @deprecated Renamed to `e2e_test_path`. */
@@ -387,13 +387,13 @@ export interface ArgentToolArgs {
387
387
  /** @deprecated Renamed to `e2e_test_file`. */
388
388
  flow_file?: string;
389
389
  };
390
- "e2e-set-env": {
390
+ "e2e-set-vars": {
391
391
  /** Test name passed to e2e-start-recording. */
392
392
  name: string;
393
393
  /** Absolute project root passed to e2e-start-recording. */
394
394
  project_root: string;
395
- /** Variable names to update. A null value removes that name. Omitted names keep their values. Use {{secret:NAME}} for credentials. */
396
- env: {
395
+ /** Set values by name. Use null to remove a name and `{{secret:NAME}}` for credentials. */
396
+ vars: {
397
397
  [key: string]: string | null;
398
398
  };
399
399
  };
@@ -409,8 +409,8 @@ export interface ArgentToolArgs {
409
409
  platform?: "ios" | "android" | "chromium" | "vega" | "macos" | Array<"ios" | "android" | "chromium" | "vega" | "macos">;
410
410
  runtimeKind?: "mobile" | "tv";
411
411
  };
412
- /** Top-level script env defaults. Supports `{{secret:NAME}}`. */
413
- env?: {
412
+ /** Test inputs to save under `vars:` and read with `{{var:NAME}}`. Use `{{secret:NAME}}` for credentials. */
413
+ vars?: {
414
414
  [key: string]: string;
415
415
  };
416
416
  };
@@ -580,7 +580,7 @@ export interface ArgentToolArgs {
580
580
  keyboard: {
581
581
  /** Target device id from `list-devices`. */
582
582
  udid: string;
583
- /** Text to type. Cannot be combined with `key` (use two steps in `run-sequence` to type then press enter). Supports `{{secret:<NAME>}}` placeholders resolved server-side from `ARGENT_SECRET_<NAME>` / `.argent/secrets.env` (auto-screenshot is skipped; combine with submit in one `run-sequence` to keep the skip; never ask the user for plaintext). */
583
+ /** Text to type. Cannot be combined with `key`. Use `{{secret:NAME}}` for credentials. Ask the user to configure missing secrets without sharing their values. Secret placeholders suppress the automatic screenshot for the call. Use one `run-sequence` to type a secret and press Enter with the same protection. */
584
584
  text?: string;
585
585
  /** Named key. Cannot be combined with `text` or `clear` (use two steps in `run-sequence`). Values: enter, escape, backspace, tab, space, arrow-up, arrow-down, arrow-left, arrow-right, f1-f12. Not supported on Apple TV / Android TV (use `tv-remote`). Physical iOS: enter/backspace only. HarmonyOS: enter, backspace, space, arrow-left/right. Mac app: also delete (forward delete), home, end, page-up/down, and modifier shortcuts (e.g. command+a). */
586
586
  key?: string;
@@ -803,7 +803,7 @@ export interface ArgentToolArgs {
803
803
  paste: {
804
804
  /** Device id from `list-devices` (iOS simulator UDID, Android emulator serial, or Mac app id). */
805
805
  udid: string;
806
- /** Text to paste. Supports `{{secret:<NAME>}}` placeholders resolved server-side (never ask the user for plaintext). */
806
+ /** Text to paste. Use `{{secret:NAME}}` for credentials. Ask the user to configure missing secrets without sharing their values. */
807
807
  text: string;
808
808
  };
809
809
  "profiler-combined-report": {