@alwaysmeticulous/cli 2.303.1 → 2.305.0

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 (181) hide show
  1. package/dist/command-utils/common-options.d.ts +5 -0
  2. package/dist/command-utils/common-options.d.ts.map +1 -1
  3. package/dist/command-utils/common-options.js +7 -2
  4. package/dist/command-utils/common-options.js.map +1 -1
  5. package/dist/command-utils/json-args.d.ts +14 -0
  6. package/dist/command-utils/json-args.d.ts.map +1 -0
  7. package/dist/command-utils/json-args.js +40 -0
  8. package/dist/command-utils/json-args.js.map +1 -0
  9. package/dist/command-utils/json-args.spec.d.ts +2 -0
  10. package/dist/command-utils/json-args.spec.d.ts.map +1 -0
  11. package/dist/command-utils/json-args.spec.js +37 -0
  12. package/dist/command-utils/json-args.spec.js.map +1 -0
  13. package/dist/command-utils/print-json.d.ts +7 -0
  14. package/dist/command-utils/print-json.d.ts.map +1 -0
  15. package/dist/command-utils/print-json.js +16 -0
  16. package/dist/command-utils/print-json.js.map +1 -0
  17. package/dist/commands/agent/build-git-options.d.ts +25 -20
  18. package/dist/commands/agent/build-git-options.d.ts.map +1 -1
  19. package/dist/commands/agent/build-git-options.js +62 -54
  20. package/dist/commands/agent/build-git-options.js.map +1 -1
  21. package/dist/commands/agent/build-git-options.spec.js +96 -62
  22. package/dist/commands/agent/build-git-options.spec.js.map +1 -1
  23. package/dist/commands/agent/index.d.ts.map +1 -1
  24. package/dist/commands/agent/index.js +11 -4
  25. package/dist/commands/agent/index.js.map +1 -1
  26. package/dist/commands/agent/js-coverage-diff.command.d.ts +1 -1
  27. package/dist/commands/agent/js-coverage-diff.command.d.ts.map +1 -1
  28. package/dist/commands/agent/js-coverage-diff.command.js +31 -38
  29. package/dist/commands/agent/js-coverage-diff.command.js.map +1 -1
  30. package/dist/commands/agent/js-coverage.command.d.ts +7 -4
  31. package/dist/commands/agent/js-coverage.command.d.ts.map +1 -1
  32. package/dist/commands/agent/js-coverage.command.js +104 -66
  33. package/dist/commands/agent/js-coverage.command.js.map +1 -1
  34. package/dist/commands/agent/js-coverage.command.spec.js +48 -2
  35. package/dist/commands/agent/js-coverage.command.spec.js.map +1 -1
  36. package/dist/commands/agent/screenshot-dom-diff.command.d.ts +1 -0
  37. package/dist/commands/agent/screenshot-dom-diff.command.d.ts.map +1 -1
  38. package/dist/commands/agent/screenshot-dom-diff.command.js +26 -18
  39. package/dist/commands/agent/screenshot-dom-diff.command.js.map +1 -1
  40. package/dist/commands/agent/screenshot-image-files.command.d.ts +1 -0
  41. package/dist/commands/agent/screenshot-image-files.command.d.ts.map +1 -1
  42. package/dist/commands/agent/screenshot-image-files.command.js +18 -5
  43. package/dist/commands/agent/screenshot-image-files.command.js.map +1 -1
  44. package/dist/commands/agent/screenshot-image.command.d.ts +1 -0
  45. package/dist/commands/agent/screenshot-image.command.d.ts.map +1 -1
  46. package/dist/commands/agent/screenshot-image.command.js +9 -4
  47. package/dist/commands/agent/screenshot-image.command.js.map +1 -1
  48. package/dist/commands/agent/test-run-diffs.command.d.ts +1 -0
  49. package/dist/commands/agent/test-run-diffs.command.d.ts.map +1 -1
  50. package/dist/commands/agent/test-run-diffs.command.js +40 -24
  51. package/dist/commands/agent/test-run-diffs.command.js.map +1 -1
  52. package/dist/commands/agent/test-run-diffs.utils.d.ts +7 -0
  53. package/dist/commands/agent/test-run-diffs.utils.d.ts.map +1 -1
  54. package/dist/commands/agent/test-run-diffs.utils.js +48 -3
  55. package/dist/commands/agent/test-run-diffs.utils.js.map +1 -1
  56. package/dist/commands/agent/test-run-diffs.utils.spec.js +145 -2
  57. package/dist/commands/agent/test-run-diffs.utils.spec.js.map +1 -1
  58. package/dist/commands/agent/test-run-for-commit.command.d.ts.map +1 -1
  59. package/dist/commands/agent/test-run-for-commit.command.js +12 -14
  60. package/dist/commands/agent/test-run-for-commit.command.js.map +1 -1
  61. package/dist/commands/agent/timeline.command.d.ts +1 -0
  62. package/dist/commands/agent/timeline.command.d.ts.map +1 -1
  63. package/dist/commands/agent/timeline.command.js +21 -7
  64. package/dist/commands/agent/timeline.command.js.map +1 -1
  65. package/dist/commands/agent/timeline.command.spec.d.ts +2 -0
  66. package/dist/commands/agent/timeline.command.spec.d.ts.map +1 -0
  67. package/dist/commands/agent/timeline.command.spec.js +77 -0
  68. package/dist/commands/agent/timeline.command.spec.js.map +1 -0
  69. package/dist/commands/agent/trigger-test-run.command.d.ts +27 -1
  70. package/dist/commands/agent/trigger-test-run.command.d.ts.map +1 -1
  71. package/dist/commands/agent/trigger-test-run.command.js +64 -53
  72. package/dist/commands/agent/trigger-test-run.command.js.map +1 -1
  73. package/dist/commands/agent/trigger-test-run.command.spec.d.ts +2 -0
  74. package/dist/commands/agent/trigger-test-run.command.spec.d.ts.map +1 -0
  75. package/dist/commands/agent/trigger-test-run.command.spec.js +88 -0
  76. package/dist/commands/agent/trigger-test-run.command.spec.js.map +1 -0
  77. package/dist/commands/agent/upload-build.command.d.ts +0 -1
  78. package/dist/commands/agent/upload-build.command.d.ts.map +1 -1
  79. package/dist/commands/agent/upload-build.command.js +12 -17
  80. package/dist/commands/agent/upload-build.command.js.map +1 -1
  81. package/dist/commands/all-commands.d.ts +38 -0
  82. package/dist/commands/all-commands.d.ts.map +1 -0
  83. package/dist/commands/all-commands.js +65 -0
  84. package/dist/commands/all-commands.js.map +1 -0
  85. package/dist/commands/auth/__tests__/list-projects.command.spec.js +22 -12
  86. package/dist/commands/auth/__tests__/list-projects.command.spec.js.map +1 -1
  87. package/dist/commands/auth/__tests__/login.command.spec.js +9 -7
  88. package/dist/commands/auth/__tests__/login.command.spec.js.map +1 -1
  89. package/dist/commands/auth/__tests__/logout.command.spec.js +4 -8
  90. package/dist/commands/auth/__tests__/logout.command.spec.js.map +1 -1
  91. package/dist/commands/auth/__tests__/whoami.command.spec.js +71 -21
  92. package/dist/commands/auth/__tests__/whoami.command.spec.js.map +1 -1
  93. package/dist/commands/auth/list-projects.command.d.ts.map +1 -1
  94. package/dist/commands/auth/list-projects.command.js +17 -14
  95. package/dist/commands/auth/list-projects.command.js.map +1 -1
  96. package/dist/commands/auth/login.command.d.ts.map +1 -1
  97. package/dist/commands/auth/login.command.js +4 -5
  98. package/dist/commands/auth/login.command.js.map +1 -1
  99. package/dist/commands/auth/logout.command.d.ts +1 -5
  100. package/dist/commands/auth/logout.command.d.ts.map +1 -1
  101. package/dist/commands/auth/logout.command.js +4 -9
  102. package/dist/commands/auth/logout.command.js.map +1 -1
  103. package/dist/commands/auth/set-project.command.d.ts.map +1 -1
  104. package/dist/commands/auth/set-project.command.js +7 -5
  105. package/dist/commands/auth/set-project.command.js.map +1 -1
  106. package/dist/commands/auth/unset-project.command.js +5 -5
  107. package/dist/commands/auth/unset-project.command.js.map +1 -1
  108. package/dist/commands/auth/whoami.command.d.ts +5 -1
  109. package/dist/commands/auth/whoami.command.d.ts.map +1 -1
  110. package/dist/commands/auth/whoami.command.js +75 -32
  111. package/dist/commands/auth/whoami.command.js.map +1 -1
  112. package/dist/commands/ci/prepare.command.d.ts.map +1 -1
  113. package/dist/commands/ci/prepare.command.js +3 -2
  114. package/dist/commands/ci/prepare.command.js.map +1 -1
  115. package/dist/commands/ci/run-local.command.d.ts.map +1 -1
  116. package/dist/commands/ci/run-local.command.js +6 -4
  117. package/dist/commands/ci/run-local.command.js.map +1 -1
  118. package/dist/commands/ci/run-with-uploaded-asset-chunks.command.d.ts.map +1 -1
  119. package/dist/commands/ci/run-with-uploaded-asset-chunks.command.js +6 -3
  120. package/dist/commands/ci/run-with-uploaded-asset-chunks.command.js.map +1 -1
  121. package/dist/commands/ci/run.command.d.ts.map +1 -1
  122. package/dist/commands/ci/run.command.js +3 -2
  123. package/dist/commands/ci/run.command.js.map +1 -1
  124. package/dist/commands/ci/start-tunnel.command.d.ts.map +1 -1
  125. package/dist/commands/ci/start-tunnel.command.js +4 -2
  126. package/dist/commands/ci/start-tunnel.command.js.map +1 -1
  127. package/dist/commands/ci/trigger-test-run.core.d.ts.map +1 -1
  128. package/dist/commands/ci/trigger-test-run.core.js +6 -3
  129. package/dist/commands/ci/trigger-test-run.core.js.map +1 -1
  130. package/dist/commands/ci/upload-assets.command.d.ts +1 -0
  131. package/dist/commands/ci/upload-assets.command.d.ts.map +1 -1
  132. package/dist/commands/ci/upload-assets.command.js +3 -2
  133. package/dist/commands/ci/upload-assets.command.js.map +1 -1
  134. package/dist/commands/ci/upload-container.command.d.ts +1 -0
  135. package/dist/commands/ci/upload-container.command.d.ts.map +1 -1
  136. package/dist/commands/ci/upload-container.command.js +3 -2
  137. package/dist/commands/ci/upload-container.command.js.map +1 -1
  138. package/dist/commands/debug/index.d.ts.map +1 -1
  139. package/dist/commands/debug/index.js +43 -36
  140. package/dist/commands/debug/index.js.map +1 -1
  141. package/dist/commands/local/relevant-sessions.command.d.ts.map +1 -1
  142. package/dist/commands/local/relevant-sessions.command.js +6 -3
  143. package/dist/commands/local/relevant-sessions.command.js.map +1 -1
  144. package/dist/commands/project/show.command.d.ts.map +1 -1
  145. package/dist/commands/project/show.command.js +6 -3
  146. package/dist/commands/project/show.command.js.map +1 -1
  147. package/dist/commands/record/__tests__/login.command.spec.d.ts +2 -0
  148. package/dist/commands/record/__tests__/login.command.spec.d.ts.map +1 -0
  149. package/dist/commands/record/__tests__/login.command.spec.js +72 -0
  150. package/dist/commands/record/__tests__/login.command.spec.js.map +1 -0
  151. package/dist/commands/record/__tests__/session.command.spec.d.ts +2 -0
  152. package/dist/commands/record/__tests__/session.command.spec.d.ts.map +1 -0
  153. package/dist/commands/record/__tests__/session.command.spec.js +86 -0
  154. package/dist/commands/record/__tests__/session.command.spec.js.map +1 -0
  155. package/dist/commands/record/login.command.d.ts.map +1 -1
  156. package/dist/commands/record/login.command.js +9 -3
  157. package/dist/commands/record/login.command.js.map +1 -1
  158. package/dist/commands/record/session.command.d.ts.map +1 -1
  159. package/dist/commands/record/session.command.js +9 -3
  160. package/dist/commands/record/session.command.js.map +1 -1
  161. package/dist/commands/replay.command.d.ts.map +1 -1
  162. package/dist/commands/replay.command.js +11 -15
  163. package/dist/commands/replay.command.js.map +1 -1
  164. package/dist/commands/schema.command.d.ts +53 -0
  165. package/dist/commands/schema.command.d.ts.map +1 -1
  166. package/dist/commands/schema.command.js +232 -106
  167. package/dist/commands/schema.command.js.map +1 -1
  168. package/dist/commands/schema.command.spec.d.ts +2 -0
  169. package/dist/commands/schema.command.spec.d.ts.map +1 -0
  170. package/dist/commands/schema.command.spec.js +198 -0
  171. package/dist/commands/schema.command.spec.js.map +1 -0
  172. package/dist/main.d.ts.map +1 -1
  173. package/dist/main.js +60 -48
  174. package/dist/main.js.map +1 -1
  175. package/dist/utils/__tests__/select-project.spec.js +6 -12
  176. package/dist/utils/__tests__/select-project.spec.js.map +1 -1
  177. package/dist/utils/select-project.d.ts +1 -3
  178. package/dist/utils/select-project.d.ts.map +1 -1
  179. package/dist/utils/select-project.js +6 -5
  180. package/dist/utils/select-project.js.map +1 -1
  181. package/package.json +9 -9
@@ -7,6 +7,11 @@ export declare const OPTIONS: {
7
7
  readonly commitSha: {
8
8
  readonly string: true;
9
9
  };
10
+ readonly dryRun: {
11
+ readonly boolean: true;
12
+ readonly default: false;
13
+ readonly description: "Print what the command would do without making any changes";
14
+ };
10
15
  readonly headless: {
11
16
  readonly boolean: true;
12
17
  readonly description: "Start browser in headless mode";
@@ -1 +1 @@
1
- {"version":3,"file":"common-options.d.ts","sourceRoot":"","sources":["../../src/command-utils/common-options.ts"],"names":[],"mappings":"AAiBA,eAAO,MAAM,0BAA0B,yBAAyB,CAAC;AAGjE,eAAO,MAAM,aAAa,eAAe,CAAC;AAE1C,eAAO,MAAM,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAmIV,CAAC;AAEX,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;CAInC,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAgBjC,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAmBjC,CAAC"}
1
+ {"version":3,"file":"common-options.d.ts","sourceRoot":"","sources":["../../src/command-utils/common-options.ts"],"names":[],"mappings":"AAiBA,eAAO,MAAM,0BAA0B,yBAAyB,CAAC;AAGjE,eAAO,MAAM,aAAa,eAAe,CAAC;AAE1C,eAAO,MAAM,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAwIV,CAAC;AAEX,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;CAInC,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAgBjC,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAmBjC,CAAC"}
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
- !function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="4ecb7539-d537-5191-924b-b276cb7eabb3")}catch(e){}}();
2
+ !function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="bbd4b813-4f7b-5335-8b4e-e4eae64bcd67")}catch(e){}}();
3
3
 
4
4
  // We keep all options that are used by multiple commands in one file.
5
5
  // This ensures the defaults and descriptions stay in sync. Where we do want
@@ -24,6 +24,11 @@ exports.OPTIONS = {
24
24
  commitSha: {
25
25
  string: true,
26
26
  },
27
+ dryRun: {
28
+ boolean: true,
29
+ default: false,
30
+ description: "Print what the command would do without making any changes",
31
+ },
27
32
  headless: {
28
33
  // Note: when running in CI we default to headless (see DEFAULT_EXECUTION_OPTIONS), but for local runs via the CLI we use headed mode by default
29
34
  boolean: true,
@@ -188,4 +193,4 @@ exports.COMMON_RECORD_OPTIONS = {
188
193
  },
189
194
  };
190
195
  //# sourceMappingURL=common-options.js.map
191
- //# debugId=4ecb7539-d537-5191-924b-b276cb7eabb3
196
+ //# debugId=bbd4b813-4f7b-5335-8b4e-e4eae64bcd67
@@ -1 +1 @@
1
- {"version":3,"file":"common-options.js","sources":["../../src/command-utils/common-options.ts"],"sourceRoot":"","names":[],"mappings":";;;AAAA,sEAAsE;AACtE,4EAA4E;AAC5E,2DAA2D;AAC3D,EAAE;AACF,eAAe;AACf,wCAAwC;AACxC,oBAAoB;AACpB,MAAM;AACN,EAAE;AACF,uDAAuD;;;AAEvD,qDAIkC;AAErB,QAAA,0BAA0B,GAAG,sBAAsB,CAAC;AAEjE,iCAAiC;AACpB,QAAA,aAAa,GAAG,YAAY,CAAC;AAE7B,QAAA,OAAO,GAAG;IACrB,QAAQ,EAAE;QACR,MAAM,EAAE,IAAI;KACb;IACD,SAAS,EAAE;QACT,MAAM,EAAE,IAAI;KACb;IACD,QAAQ,EAAE;QACR,gJAAgJ;QAChJ,OAAO,EAAE,IAAI;QACb,WAAW,EAAE,gCAAgC;QAC7C,OAAO,EAAE,KAAK;KACf;IACD,QAAQ,EAAE;QACR,OAAO,EAAE,IAAI;QACb,WAAW,EAAE,uBAAuB;QACpC,OAAO,EAAE,k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A2B;CACjE,CAAC;AAEF;;GAEG;AACU,QAAA,qBAAqB,GAAG;IACnC,QAAQ,EAAE,eAAO,CAAC,QAAQ;IAC1B,QAAQ,EAAE,eAAO,CAAC,QAAQ;IAC1B,SAAS,EAAE,eAAO,CAAC,SAAS;IAC5B,KAAK,EAAE,eAAO,CAAC,KAAK;IACpB,MAAM,EAAE,eAAO,CAAC,MAAM;IACtB,gBAAgB,EAAE,eAAO,CAAC,gBAAgB;IAC1C,KAAK,EAAE,eAAO,CAAC,KAAK;IACpB,sBAAsB,EAAE,eAAO,CAAC,sBAAsB;IACtD,MAAM,EAAE;QACN,WAAW,EACT,mIAAmI;QACrI,MAAM,EAAE,IAAI;QACZ,MAAM,EAAE,CAAC,iCAAwB;KACzB;IACV,cAAc,EAAE;QACd,MAAM,EAAE,IAAI;QACZ,WAAW,EAAE,0CAA0C;KAC/C;CACX,CAAC","debugId":"bbd4b813-4f7b-5335-8b4e-e4eae64bcd67"}
@@ -0,0 +1,14 @@
1
+ /**
2
+ * Parse the `--jsonArgs` / `--rawJson` value: a JSON object whose keys are
3
+ * merged onto the parsed argv (the agent/programmatic way to pass options).
4
+ * Throws a `CliUserError` — rather than letting a raw `SyntaxError` escape as an
5
+ * uncaught stack trace — so malformed input surfaces as a clean message.
6
+ *
7
+ * Every key is validated against `knownKeys` (every option/alias the CLI
8
+ * declares). This is what would otherwise be yargs' `.strict()` check — the
9
+ * merge onto argv bypasses it — and, since the merge is a plain
10
+ * `Object.assign`, rejecting unknown keys also closes off prototype-polluting
11
+ * ones (`__proto__`, `constructor`, …), which are never option names.
12
+ */
13
+ export declare const parseJsonArgs: (jsonArgs: string, knownKeys: Set<string>) => Record<string, unknown>;
14
+ //# sourceMappingURL=json-args.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"json-args.d.ts","sourceRoot":"","sources":["../../src/command-utils/json-args.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,aAAa,aACd,MAAM,aACL,GAAG,CAAC,MAAM,CAAC,KACrB,MAAM,CAAC,MAAM,EAAE,OAAO,CAmBxB,CAAC"}
@@ -0,0 +1,40 @@
1
+ "use strict";
2
+ !function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="3c85a656-a6bd-5bdc-bc2b-fffe9208a683")}catch(e){}}();
3
+
4
+ Object.defineProperty(exports, "__esModule", { value: true });
5
+ exports.parseJsonArgs = void 0;
6
+ const cli_user_error_1 = require("../utils/cli-user-error");
7
+ /**
8
+ * Parse the `--jsonArgs` / `--rawJson` value: a JSON object whose keys are
9
+ * merged onto the parsed argv (the agent/programmatic way to pass options).
10
+ * Throws a `CliUserError` — rather than letting a raw `SyntaxError` escape as an
11
+ * uncaught stack trace — so malformed input surfaces as a clean message.
12
+ *
13
+ * Every key is validated against `knownKeys` (every option/alias the CLI
14
+ * declares). This is what would otherwise be yargs' `.strict()` check — the
15
+ * merge onto argv bypasses it — and, since the merge is a plain
16
+ * `Object.assign`, rejecting unknown keys also closes off prototype-polluting
17
+ * ones (`__proto__`, `constructor`, …), which are never option names.
18
+ */
19
+ const parseJsonArgs = (jsonArgs, knownKeys) => {
20
+ let parsed;
21
+ try {
22
+ parsed = JSON.parse(jsonArgs);
23
+ }
24
+ catch (error) {
25
+ const detail = error instanceof Error ? error.message : String(error);
26
+ throw new cli_user_error_1.CliUserError(`--jsonArgs must be a valid JSON string: ${detail}`);
27
+ }
28
+ if (typeof parsed !== "object" || parsed == null || Array.isArray(parsed)) {
29
+ throw new cli_user_error_1.CliUserError('--jsonArgs must be a JSON object, e.g. \'{"apiToken":"..."}\'.');
30
+ }
31
+ for (const key of Object.keys(parsed)) {
32
+ if (!knownKeys.has(key)) {
33
+ throw new cli_user_error_1.CliUserError(`--jsonArgs contains an unknown option "${key}".`);
34
+ }
35
+ }
36
+ return parsed;
37
+ };
38
+ exports.parseJsonArgs = parseJsonArgs;
39
+ //# sourceMappingURL=json-args.js.map
40
+ //# debugId=3c85a656-a6bd-5bdc-bc2b-fffe9208a683
@@ -0,0 +1 @@
1
+ {"version":3,"file":"json-args.js","sources":["../../src/command-utils/json-args.ts"],"sourceRoot":"","names":[],"mappings":";;;;;AAAA,4DAAuD;AAEvD;;;;;;;;;;;GAWG;AACI,MAAM,aAAa,GAAG,CAC3B,QAAgB,EAChB,SAAsB,EACG,EAAE;IAC3B,IAAI,MAAe,CAAC;IACpB,IAAI,CAAC;QACH,MAAM,GAAG,IAAI,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC;IAChC,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QACf,MAAM,MAAM,GAAG,KAAK,YAAY,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;QACtE,MAAM,IAAI,6BAAY,CAAC,2CAA2C,MAAM,EAAE,CAAC,CAAC;IAC9E,CAAC;IACD,IAAI,OAAO,MAAM,KAAK,QAAQ,IAAI,MAAM,IAAI,IAAI,IAAI,KAAK,CAAC,OAAO,CAAC,MAAM,CAAC,EAAE,CAAC;QAC1E,MAAM,IAAI,6BAAY,CACpB,gEAAgE,CACjE,CAAC;IACJ,CAAC;IACD,KAAK,MAAM,GAAG,IAAI,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,EAAE,CAAC;QACtC,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,GAAG,CAAC,EAAE,CAAC;YACxB,MAAM,IAAI,6BAAY,CAAC,0CAA0C,GAAG,IAAI,CAAC,CAAC;QAC5E,CAAC;IACH,CAAC;IACD,OAAO,MAAiC,CAAC;AAC3C,CAAC,CAAC;AAtBW,QAAA,aAAa,iBAsBxB","debugId":"3c85a656-a6bd-5bdc-bc2b-fffe9208a683"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=json-args.spec.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"json-args.spec.d.ts","sourceRoot":"","sources":["../../src/command-utils/json-args.spec.ts"],"names":[],"mappings":""}
@@ -0,0 +1,37 @@
1
+ "use strict";
2
+ !function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="cdd72ac3-a982-5786-891a-a02e09335d22")}catch(e){}}();
3
+
4
+ Object.defineProperty(exports, "__esModule", { value: true });
5
+ const vitest_1 = require("vitest");
6
+ const json_args_1 = require("./json-args");
7
+ const cli_user_error_1 = require("../utils/cli-user-error");
8
+ const KNOWN = new Set(["apiToken", "json"]);
9
+ (0, vitest_1.describe)("parseJsonArgs", () => {
10
+ (0, vitest_1.it)("parses a JSON object of known keys into a record", () => {
11
+ (0, vitest_1.expect)((0, json_args_1.parseJsonArgs)('{"apiToken":"abc","json":true}', KNOWN)).toEqual({
12
+ apiToken: "abc",
13
+ json: true,
14
+ });
15
+ });
16
+ (0, vitest_1.it)("throws a CliUserError (not a raw SyntaxError) for malformed JSON", () => {
17
+ (0, vitest_1.expect)(() => (0, json_args_1.parseJsonArgs)("{bad}", KNOWN)).toThrow(cli_user_error_1.CliUserError);
18
+ (0, vitest_1.expect)(() => (0, json_args_1.parseJsonArgs)("{bad}", KNOWN)).toThrow(/valid JSON string/);
19
+ });
20
+ (0, vitest_1.it)("rejects non-object JSON (array, primitive)", () => {
21
+ (0, vitest_1.expect)(() => (0, json_args_1.parseJsonArgs)("[1,2,3]", KNOWN)).toThrow(cli_user_error_1.CliUserError);
22
+ (0, vitest_1.expect)(() => (0, json_args_1.parseJsonArgs)('"a string"', KNOWN)).toThrow(/JSON object/);
23
+ (0, vitest_1.expect)(() => (0, json_args_1.parseJsonArgs)("null", KNOWN)).toThrow(/JSON object/);
24
+ });
25
+ (0, vitest_1.it)("rejects any key that is not a known option", () => {
26
+ (0, vitest_1.expect)(() => (0, json_args_1.parseJsonArgs)('{"notAnOption":1}', KNOWN)).toThrow(/unknown option "notAnOption"/);
27
+ });
28
+ (0, vitest_1.it)("rejects prototype-polluting keys (they are never known options)", () => {
29
+ (0, vitest_1.expect)(() => (0, json_args_1.parseJsonArgs)('{"__proto__":{"polluted":true}}', KNOWN)).toThrow(/unknown option "__proto__"/);
30
+ (0, vitest_1.expect)(() => (0, json_args_1.parseJsonArgs)('{"constructor":{}}', KNOWN)).toThrow(/unknown option "constructor"/);
31
+ // A valid object of known keys must still parse and keep a clean prototype.
32
+ const parsed = (0, json_args_1.parseJsonArgs)('{"apiToken":"abc"}', KNOWN);
33
+ (0, vitest_1.expect)(Object.getPrototypeOf(parsed)).toBe(Object.prototype);
34
+ });
35
+ });
36
+ //# sourceMappingURL=json-args.spec.js.map
37
+ //# debugId=cdd72ac3-a982-5786-891a-a02e09335d22
@@ -0,0 +1 @@
1
+ {"version":3,"file":"json-args.spec.js","sources":["../../src/command-utils/json-args.spec.ts"],"sourceRoot":"","names":[],"mappings":";;;;AAAA,mCAA8C;AAC9C,2CAA4C;AAC5C,4DAAuD;AAEvD,MAAM,KAAK,GAAG,IAAI,GAAG,CAAC,CAAC,UAAU,EAAE,MAAM,CAAC,CAAC,CAAC;AAE5C,IAAA,iBAAQ,EAAC,eAAe,EAAE,GAAG,EAAE;IAC7B,IAAA,WAAE,EAAC,kDAAkD,EAAE,GAAG,EAAE;QAC1D,IAAA,eAAM,EAAC,IAAA,yBAAa,EAAC,gCAAgC,EAAE,KAAK,CAAC,CAAC,CAAC,OAAO,CAAC;YACrE,QAAQ,EAAE,KAAK;YACf,IAAI,EAAE,IAAI;SACX,CAAC,CAAC;IACL,CAAC,CAAC,CAAC;IAEH,IAAA,WAAE,EAAC,kEAAkE,EAAE,GAAG,EAAE;QAC1E,IAAA,eAAM,EAAC,GAAG,EAAE,CAAC,IAAA,yBAAa,EAA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AM,MAAM,GAAG,IAAA,yBAAa,EAAC,oBAAoB,EAAE,KAAK,CAAC,CAAC;QAC1D,IAAA,eAAM,EAAC,MAAM,CAAC,cAAc,CAAC,MAAM,CAAC,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,SAAS,CAAC,CAAC;IAC/D,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC","debugId":"cdd72ac3-a982-5786-891a-a02e09335d22"}
@@ -0,0 +1,7 @@
1
+ /**
2
+ * Prints a value as pretty-printed JSON on stdout — the single formatting
3
+ * decision (2-space indent, trailing newline) shared by every command's
4
+ * `--json` output, so machine-readable output stays consistent.
5
+ */
6
+ export declare const printJson: (value: unknown) => void;
7
+ //# sourceMappingURL=print-json.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"print-json.d.ts","sourceRoot":"","sources":["../../src/command-utils/print-json.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,eAAO,MAAM,SAAS,UAAW,OAAO,KAAG,IAE1C,CAAC"}
@@ -0,0 +1,16 @@
1
+ "use strict";
2
+ !function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="ce55db0d-3eb9-5c20-9ce0-365273d93dae")}catch(e){}}();
3
+
4
+ Object.defineProperty(exports, "__esModule", { value: true });
5
+ exports.printJson = void 0;
6
+ /**
7
+ * Prints a value as pretty-printed JSON on stdout — the single formatting
8
+ * decision (2-space indent, trailing newline) shared by every command's
9
+ * `--json` output, so machine-readable output stays consistent.
10
+ */
11
+ const printJson = (value) => {
12
+ console.log(JSON.stringify(value, null, 2));
13
+ };
14
+ exports.printJson = printJson;
15
+ //# sourceMappingURL=print-json.js.map
16
+ //# debugId=ce55db0d-3eb9-5c20-9ce0-365273d93dae
@@ -0,0 +1 @@
1
+ {"version":3,"file":"print-json.js","sources":["../../src/command-utils/print-json.ts"],"sourceRoot":"","names":[],"mappings":";;;;;AAAA;;;;GAIG;AACI,MAAM,SAAS,GAAG,CAAC,KAAc,EAAQ,EAAE;IAChD,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,SAAS,CAAC,KAAK,EAAE,IAAI,EAAE,CAAC,CAAC,CAAC,CAAC;AAC9C,CAAC,CAAC;AAFW,QAAA,SAAS,aAEpB","debugId":"ce55db0d-3eb9-5c20-9ce0-365273d93dae"}
@@ -3,8 +3,7 @@
3
3
  * commit must identify a real commit so the deployment's `commitSha` (and the
4
4
  * test run's `execution_sha`) faithfully describe what ran:
5
5
  * - explicit `--commitSha` wins;
6
- * - otherwise the HEAD of the git repo at `--repoDirectory`, defaulting to the
7
- * local repo (the current directory) when neither flag is given;
6
+ * - otherwise the HEAD of the local repo (the current directory);
8
7
  * - a dirty working tree is captured as an ephemeral `git stash create` commit
9
8
  * (a real, unreferenced commit; HEAD/branch untouched) with a stderr warning.
10
9
  */
@@ -19,9 +18,8 @@ export interface ResolvedBuildCommitSha {
19
18
  */
20
19
  source: BuildCommitShaSource;
21
20
  }
22
- export declare const resolveBuildCommitSha: ({ commitSha, repoDirectory, }: {
21
+ export declare const resolveBuildCommitSha: ({ commitSha, }: {
23
22
  commitSha: string | undefined;
24
- repoDirectory: string | undefined;
25
23
  }) => Promise<ResolvedBuildCommitSha>;
26
24
  /**
27
25
  * Resolves the commit to look up an already-uploaded deployment for, when
@@ -31,16 +29,15 @@ export declare const resolveBuildCommitSha: ({ commitSha, repoDirectory, }: {
31
29
  * could ever have been uploaded for an ephemeral, unreachable commit, so
32
30
  * inferring one here would only ever fail the lookup.
33
31
  */
34
- export declare const resolveHeadCommitShaForLookup: ({ repoDirectory, }: {
35
- repoDirectory: string | undefined;
36
- }) => Promise<string>;
32
+ export declare const resolveHeadCommitShaForLookup: () => Promise<string>;
37
33
  export interface ResolvedComparison {
38
34
  baseSha: string | undefined;
39
35
  gitDiffOutput: string | undefined;
40
36
  /**
41
- * The head commit the diff was computed against. Only known when inferred from
42
- * `--repoDirectory`; undefined when the caller passed an opaque `--gitDiffOutput`.
43
- * Used to warn if it diverges from the deployment the run actually executes.
37
+ * The head commit the diff was computed against. Only known when inferred
38
+ * from the local repo; undefined when the caller passed an opaque
39
+ * `--gitDiffOutput`. Used to warn if it diverges from the deployment the run
40
+ * actually executes.
44
41
  */
45
42
  head: string | undefined;
46
43
  /**
@@ -52,18 +49,26 @@ export interface ResolvedComparison {
52
49
  }
53
50
  /**
54
51
  * Resolves the comparison inputs (base + git diff) for `agent trigger-test-run`.
55
- * Either pass them explicitly (`--baseSha`, optionally `--gitDiffOutput`), pass
56
- * `--repoDirectory`, or pass nothing at all when no comparison inputs are
57
- * given we infer from the local repo (the current directory), the same way
58
- * `--repoDirectory .` would. Inference yields:
59
- * - `baseSha` from the merge-base with the origin default branch;
60
- * - `gitDiffOutput` as `git diff base..head`, where head is the repo HEAD (or a
61
- * `git stash create` commit when the tree is dirty, so the diff is always
62
- * between two real commits no working-tree special case).
52
+ * A diff is always computed unless the caller passes an explicit
53
+ * `--gitDiffOutput` (trusted as-is, requiring `--baseSha`). The diff's head is
54
+ * `commitSha` when given the resolved `--commitSha`, explicit or inferred
55
+ * from local HEAD for a bare invocation (see `resolveHeadCommitShaForLookup`)
56
+ * otherwise (`--deploymentId` mode) it's freshly resolved from the local
57
+ * repo's HEAD (or a `git stash create` commit when the tree is dirty, so the
58
+ * diff is always between two real commits no working-tree special case).
59
+ * The base is `--baseSha` if given, else the merge-base with the origin
60
+ * default branch — this runs whether `commitSha` was given or not, so pinning
61
+ * a custom base still gets a diff.
63
62
  */
64
- export declare const resolveComparisonOptions: ({ baseSha, gitDiffOutput, repoDirectory, }: {
63
+ export declare const resolveComparisonOptions: ({ baseSha, gitDiffOutput, commitSha, }: {
65
64
  baseSha: string | undefined;
66
65
  gitDiffOutput: string | undefined;
67
- repoDirectory: string | undefined;
66
+ /**
67
+ * The commit to diff against, when it's already resolved (`--commitSha`
68
+ * mode, explicit or inferred from local HEAD). Undefined means
69
+ * `--deploymentId` mode: the diff's head is resolved fresh from local HEAD
70
+ * here instead (and may be an ephemeral stash commit for a dirty tree).
71
+ */
72
+ commitSha: string | undefined;
68
73
  }) => Promise<ResolvedComparison>;
69
74
  //# sourceMappingURL=build-git-options.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"build-git-options.d.ts","sourceRoot":"","sources":["../../../src/commands/agent/build-git-options.ts"],"names":[],"mappings":"AAoCA;;;;;;;;;GASG;AACH,uEAAuE;AACvE,MAAM,MAAM,oBAAoB,GAAG,UAAU,GAAG,OAAO,GAAG,iBAAiB,CAAC;AAE5E,MAAM,WAAW,sBAAsB;IACrC,SAAS,EAAE,MAAM,CAAC;IAClB;;;;OAIG;IACH,MAAM,EAAE,oBAAoB,CAAC;CAC9B;AAED,eAAO,MAAM,qBAAqB,kCAG/B;IACD,SAAS,EAAE,MAAM,GAAG,SAAS,CAAC;IAC9B,aAAa,EAAE,MAAM,GAAG,SAAS,CAAC;CACnC,KAAG,OAAO,CAAC,sBAAsB,CAoDjC,CAAC;AAEF;;;;;;;GAOG;AACH,eAAO,MAAM,6BAA6B,uBAEvC;IACD,aAAa,EAAE,MAAM,GAAG,SAAS,CAAC;CACnC,KAAG,OAAO,CAAC,MAAM,CAkBjB,CAAC;AAEF,MAAM,WAAW,kBAAkB;IACjC,OAAO,EAAE,MAAM,GAAG,SAAS,CAAC;IAC5B,aAAa,EAAE,MAAM,GAAG,SAAS,CAAC;IAClC;;;;OAIG;IACH,IAAI,EAAE,MAAM,GAAG,SAAS,CAAC;IACzB;;;;OAIG;IACH,eAAe,EAAE,OAAO,CAAC;CAC1B;AAED;;;;;;;;;;GAUG;AACH,eAAO,MAAM,wBAAwB,+CAIlC;IACD,OAAO,EAAE,MAAM,GAAG,SAAS,CAAC;IAC5B,aAAa,EAAE,MAAM,GAAG,SAAS,CAAC;IAClC,aAAa,EAAE,MAAM,GAAG,SAAS,CAAC;CACnC,KAAG,OAAO,CAAC,kBAAkB,CA8D7B,CAAC"}
1
+ {"version":3,"file":"build-git-options.d.ts","sourceRoot":"","sources":["../../../src/commands/agent/build-git-options.ts"],"names":[],"mappings":"AAoCA;;;;;;;;GAQG;AACH,uEAAuE;AACvE,MAAM,MAAM,oBAAoB,GAAG,UAAU,GAAG,OAAO,GAAG,iBAAiB,CAAC;AAE5E,MAAM,WAAW,sBAAsB;IACrC,SAAS,EAAE,MAAM,CAAC;IAClB;;;;OAIG;IACH,MAAM,EAAE,oBAAoB,CAAC;CAC9B;AAED,eAAO,MAAM,qBAAqB,mBAE/B;IACD,SAAS,EAAE,MAAM,GAAG,SAAS,CAAC;CAC/B,KAAG,OAAO,CAAC,sBAAsB,CAwCjC,CAAC;AAEF;;;;;;;GAOG;AACH,eAAO,MAAM,6BAA6B,QAAa,OAAO,CAAC,MAAM,CAkBpE,CAAC;AAEF,MAAM,WAAW,kBAAkB;IACjC,OAAO,EAAE,MAAM,GAAG,SAAS,CAAC;IAC5B,aAAa,EAAE,MAAM,GAAG,SAAS,CAAC;IAClC;;;;;OAKG;IACH,IAAI,EAAE,MAAM,GAAG,SAAS,CAAC;IACzB;;;;OAIG;IACH,eAAe,EAAE,OAAO,CAAC;CAC1B;AAED;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,wBAAwB,2CAIlC;IACD,OAAO,EAAE,MAAM,GAAG,SAAS,CAAC;IAC5B,aAAa,EAAE,MAAM,GAAG,SAAS,CAAC;IAClC;;;;;OAKG;IACH,SAAS,EAAE,MAAM,GAAG,SAAS,CAAC;CAC/B,KAAG,OAAO,CAAC,kBAAkB,CA8E7B,CAAC"}
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
- !function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="36ab3613-d063-5434-9c8b-f7074604bd39")}catch(e){}}();
2
+ !function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="8e8cdcc4-ebe8-5050-88c5-b520844c565e")}catch(e){}}();
3
3
 
4
4
  Object.defineProperty(exports, "__esModule", { value: true });
5
5
  exports.resolveComparisonOptions = exports.resolveHeadCommitShaForLookup = exports.resolveBuildCommitSha = void 0;
@@ -23,20 +23,13 @@ const assertNoUntrackedFiles = async (options) => {
23
23
  "`git add` them (or add them to .gitignore) so they're captured in the " +
24
24
  "build's commit and diff, then retry — or pass an explicit --commitSha.");
25
25
  };
26
- const resolveBuildCommitSha = async ({ commitSha, repoDirectory, }) => {
27
- if (commitSha && repoDirectory) {
28
- throw new cli_user_error_1.CliUserError("--commitSha and --repoDirectory are mutually exclusive. Pass --commitSha " +
29
- "to use an explicit commit, or --repoDirectory to infer it from a git repository.");
30
- }
26
+ const resolveBuildCommitSha = async ({ commitSha, }) => {
31
27
  if (commitSha) {
32
28
  (0, common_1.logProgress)(`commitSha: ${commitSha}`);
33
29
  return { commitSha, source: "provided" };
34
30
  }
35
- // No --repoDirectory means "use the local repo" (the current directory).
36
- const gitOpts = { cwd: repoDirectory ?? "." };
37
- (0, common_1.logProgress)(repoDirectory
38
- ? `Using repo directory: ${repoDirectory}`
39
- : "Using local repo directory");
31
+ const gitOpts = { cwd: "." };
32
+ (0, common_1.logProgress)("Using local repo directory");
40
33
  await assertNoUntrackedFiles(gitOpts);
41
34
  if (await (0, common_1.hasUncommittedChanges)(gitOpts)) {
42
35
  const stashSha = await (0, common_1.getStashCreateSha)(gitOpts);
@@ -70,8 +63,8 @@ exports.resolveBuildCommitSha = resolveBuildCommitSha;
70
63
  * could ever have been uploaded for an ephemeral, unreachable commit, so
71
64
  * inferring one here would only ever fail the lookup.
72
65
  */
73
- const resolveHeadCommitShaForLookup = async ({ repoDirectory, }) => {
74
- const gitOpts = { cwd: repoDirectory ?? "." };
66
+ const resolveHeadCommitShaForLookup = async () => {
67
+ const gitOpts = { cwd: "." };
75
68
  if (await (0, common_1.hasUncommittedChanges)(gitOpts)) {
76
69
  throw new cli_user_error_1.CliUserError("Working tree has uncommitted changes, so the current commit can't be used to look up an already-uploaded deployment. " +
77
70
  "Commit your changes, or pass an explicit --commitSha or --deploymentId.");
@@ -86,63 +79,78 @@ const resolveHeadCommitShaForLookup = async ({ repoDirectory, }) => {
86
79
  exports.resolveHeadCommitShaForLookup = resolveHeadCommitShaForLookup;
87
80
  /**
88
81
  * Resolves the comparison inputs (base + git diff) for `agent trigger-test-run`.
89
- * Either pass them explicitly (`--baseSha`, optionally `--gitDiffOutput`), pass
90
- * `--repoDirectory`, or pass nothing at all when no comparison inputs are
91
- * given we infer from the local repo (the current directory), the same way
92
- * `--repoDirectory .` would. Inference yields:
93
- * - `baseSha` from the merge-base with the origin default branch;
94
- * - `gitDiffOutput` as `git diff base..head`, where head is the repo HEAD (or a
95
- * `git stash create` commit when the tree is dirty, so the diff is always
96
- * between two real commits no working-tree special case).
82
+ * A diff is always computed unless the caller passes an explicit
83
+ * `--gitDiffOutput` (trusted as-is, requiring `--baseSha`). The diff's head is
84
+ * `commitSha` when given the resolved `--commitSha`, explicit or inferred
85
+ * from local HEAD for a bare invocation (see `resolveHeadCommitShaForLookup`)
86
+ * otherwise (`--deploymentId` mode) it's freshly resolved from the local
87
+ * repo's HEAD (or a `git stash create` commit when the tree is dirty, so the
88
+ * diff is always between two real commits no working-tree special case).
89
+ * The base is `--baseSha` if given, else the merge-base with the origin
90
+ * default branch — this runs whether `commitSha` was given or not, so pinning
91
+ * a custom base still gets a diff.
97
92
  */
98
- const resolveComparisonOptions = async ({ baseSha, gitDiffOutput, repoDirectory, }) => {
99
- if (repoDirectory && (baseSha || gitDiffOutput)) {
100
- throw new cli_user_error_1.CliUserError("--repoDirectory cannot be combined with --baseSha or --gitDiffOutput. " +
101
- "When --repoDirectory is provided, both are inferred automatically.");
102
- }
93
+ const resolveComparisonOptions = async ({ baseSha, gitDiffOutput, commitSha, }) => {
103
94
  if (gitDiffOutput && !baseSha) {
104
95
  throw new cli_user_error_1.CliUserError("--gitDiffOutput requires --baseSha.");
105
96
  }
106
- // With no explicit comparison inputs, fall back to inferring from the local
107
- // repo (the current directory).
108
- const effectiveRepoDirectory = repoDirectory ?? (!baseSha && !gitDiffOutput ? "." : undefined);
109
- if (!effectiveRepoDirectory) {
110
- return {
111
- baseSha: baseSha || undefined,
112
- gitDiffOutput: gitDiffOutput || undefined,
113
- head: undefined,
114
- headIsEphemeral: false,
115
- };
97
+ // An explicit diff is trusted as-is the caller already computed exactly
98
+ // what they want, so local git isn't touched at all.
99
+ if (gitDiffOutput) {
100
+ return { baseSha, gitDiffOutput, head: undefined, headIsEphemeral: false };
116
101
  }
117
- const gitOpts = { cwd: effectiveRepoDirectory };
118
- await assertNoUntrackedFiles(gitOpts);
119
- const resolvedBase = (await (0, common_1.getLocalBaseSha)(gitOpts)) || undefined;
102
+ const gitOpts = { cwd: "." };
103
+ // Untracked files can't be captured by `git stash create` or a `base..head`
104
+ // diff, so this only matters when we're about to resolve HEAD from the live
105
+ // working tree (`--deploymentId` mode) — a pre-resolved `commitSha` is
106
+ // already a real commit, independent of the working tree's current state.
107
+ if (!commitSha) {
108
+ await assertNoUntrackedFiles(gitOpts);
109
+ }
110
+ const resolvedBase = baseSha ?? ((await (0, common_1.getLocalBaseSha)(gitOpts)) || undefined);
120
111
  if (!resolvedBase) {
121
- throw new cli_user_error_1.CliUserError(`Could not determine a base SHA from the git repository at '${effectiveRepoDirectory}'. ` +
112
+ throw new cli_user_error_1.CliUserError("Could not determine a base SHA from the local git repository. " +
122
113
  "Ensure it has an 'origin/main' or 'origin/master' remote branch, or pass --baseSha explicitly.");
123
114
  }
124
- const dirty = await (0, common_1.hasUncommittedChanges)(gitOpts);
125
- const head = dirty
126
- ? await (0, common_1.getStashCreateSha)(gitOpts)
127
- : await (0, common_1.getCommitSha)(undefined, gitOpts);
128
- if (!head) {
129
- throw new cli_user_error_1.CliUserError(`Could not determine head commit from the git repository at '${effectiveRepoDirectory}'.`);
115
+ (0, common_1.logProgress)(baseSha
116
+ ? `baseSha: ${resolvedBase}`
117
+ : `Base SHA inferred from merge-base: ${resolvedBase}`);
118
+ let head;
119
+ let headIsEphemeral = false;
120
+ if (commitSha) {
121
+ head = commitSha;
122
+ }
123
+ else {
124
+ const dirty = await (0, common_1.hasUncommittedChanges)(gitOpts);
125
+ const resolvedHead = dirty
126
+ ? await (0, common_1.getStashCreateSha)(gitOpts)
127
+ : await (0, common_1.getCommitSha)(undefined, gitOpts);
128
+ if (!resolvedHead) {
129
+ throw new cli_user_error_1.CliUserError("Could not determine head commit from the local git repository.");
130
+ }
131
+ if (dirty) {
132
+ // Always surface this (not just under --verbose): the diff is computed
133
+ // against an ephemeral stash commit rather than HEAD.
134
+ (0, common_1.logNotice)(`commitSha (local, ephemeral due to dirty working tree): ${resolvedHead}`);
135
+ }
136
+ head = resolvedHead;
137
+ headIsEphemeral = dirty;
138
+ }
139
+ let diff;
140
+ try {
141
+ diff = await (0, common_1.getGitDiff)(resolvedBase, head, gitOpts);
130
142
  }
131
- if (dirty) {
132
- // Always surface this (not just under --verbose): the diff is computed
133
- // against an ephemeral stash commit rather than HEAD.
134
- (0, common_1.logNotice)(`commitSha (local, ephemeral due to dirty working tree): ${head}`);
143
+ catch (error) {
144
+ throw new cli_user_error_1.CliUserError(`Could not compute a git diff between ${resolvedBase} and ${head}: ${error instanceof Error ? error.message : String(error)}. Ensure both commits exist in your local git history (e.g. \`git fetch\`), or pass --gitDiffOutput yourself.`);
135
145
  }
136
- const diff = await (0, common_1.getGitDiff)(resolvedBase, head, gitOpts);
137
- (0, common_1.logProgress)(`Base SHA inferred from merge-base: ${resolvedBase}`);
138
146
  (0, common_1.logProgress)(`Git diff computed: ${diff.length} chars`);
139
147
  return {
140
148
  baseSha: resolvedBase,
141
149
  gitDiffOutput: diff,
142
150
  head,
143
- headIsEphemeral: dirty,
151
+ headIsEphemeral,
144
152
  };
145
153
  };
146
154
  exports.resolveComparisonOptions = resolveComparisonOptions;
147
155
  //# sourceMappingURL=build-git-options.js.map
148
- //# debugId=36ab3613-d063-5434-9c8b-f7074604bd39
156
+ //# debugId=8e8cdcc4-ebe8-5050-88c5-b520844c565e
@@ -1 +1 @@
1
- {"version":3,"file":"build-git-options.js","sources":["../../../src/commands/agent/build-git-options.ts"],"sourceRoot":"","names":[],"mappings":";;;;;AAAA,qDASkC;AAClC,+DAA0D;AAE1D;;;;;;GAMG;AACH,MAAM,sBAAsB,GAAG,KAAK,EAAE,OAErC,EAAiB,EAAE;IAClB,MAAM,SAAS,GAAG,MAAM,IAAA,0BAAiB,EAAC,OAAO,CAAC,CAAC;IACnD,IAAI,SAAS,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;QAC3B,OAAO;IACT,CAAC;IACD,MAAM,KAAK,GAAG,SAAS,CAAC,KAAK,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IAChD,MAAM,IAAI,GACR,SAAS,CAAC,MAAM,GAAG,EAAE,CAAC,CAAC,CAAC,SAAS,SAAS,CAAC,MAAM,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,EAAE,CAAC;IACtE,MAAM,IAAI,6BAAY,CACpB,4BAA4B,KAAK,GAAG,IAAI,KAAK;QAC3C,wEAAwE;QACxE,wEAAwE,CAC3E,CAAC;AACJ,CAAC,CAAC;AAyBK,MAAM,qBAAqB,GAAG,KAAK,EAAE,EAC1C,SAAS,EACT,aAAa,GAId,EAAmC,EAAE;IACpC,IAAI,SAAS,IAAI,aAAa,EAAE,CAAC;QAC/B,MAAM,IAAI,6BAAY,CACpB,2EAA2E;YACzE,kFAAkF,CACrF,CAAC;IACJ,CAAC;IAED,IAAI,SAAS,EAAE,CAAC;QACd,IAAA,oBAAW,EAAC,cAAc,S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nC","debugId":"36ab3613-d063-5434-9c8b-f7074604bd39"}
1
+ {"version":3,"file":"build-git-options.js","sources":["../../../src/commands/agent/build-git-options.ts"],"sourceRoot":"","names":[],"mappings":";;;;;AAAA,qDASkC;AAClC,+DAA0D;AAE1D;;;;;;GAMG;AACH,MAAM,sBAAsB,GAAG,KAAK,EAAE,OAErC,EAAiB,EAAE;IAClB,MAAM,SAAS,GAAG,MAAM,IAAA,0BAAiB,EAAC,OAAO,CAAC,CAAC;IACnD,IAAI,SAAS,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;QAC3B,OAAO;IACT,CAAC;IACD,MAAM,KAAK,GAAG,SAAS,CAAC,KAAK,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IAChD,MAAM,IAAI,GACR,SAAS,CAAC,MAAM,GAAG,EAAE,CAAC,CAAC,CAAC,SAAS,SAAS,CAAC,MAAM,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,EAAE,CAAC;IACtE,MAAM,IAAI,6BAAY,CACpB,4BAA4B,KAAK,GAAG,IAAI,KAAK;QAC3C,wEAAwE;QACxE,wEAAwE,CAC3E,CAAC;AACJ,CAAC,CAAC;AAwBK,MAAM,qBAAqB,GAAG,KAAK,EAAE,EAC1C,SAAS,GAGV,EAAmC,EAAE;IACpC,IAAI,SAAS,EAAE,CAAC;QACd,IAAA,oBAAW,EAAC,cAAc,SAAS,EAAE,CAAC,CAAC;QACvC,OAAO,EAAE,SAAS,EAAE,MAAM,EAAE,UAAU,EAAE,CAAC;IAC3C,CAAC;IAED,MAAM,OAAO,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,CAAC;IAC7B,IAAA,oBAAW,EAAC,4BAA4B,CAAC,CAAC;IAE1C,MAAM,sBAAsB,CAAC,OAAO,CAAC,CAAC;IAEtC,IAAI,MAAM,IAAA,8BAAqB,EAAC,OAAO,CAAC,EAAE,CAAC;QACzC,MAAM,QAAQ,GAAG,MAAM,I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