@alwaysmeticulous/api 2.257.1 → 2.262.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.
package/dist/index.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  export { Organization } from "./organization.types";
2
2
  export { Project, ProjectSettingsScreenshottingOptions } from "./project.types";
3
3
  export { EndStateScreenshot, ScreenshotAfterEvent, ScreenshotDiffResult, ScreenshotDiffResultCompared, ScreenshotDiffResultDifferentSize, ScreenshotDiffResultMissingBase, ScreenshotDiffResultMissingBaseAndHead, ScreenshotDiffResultMissingHead, ScreenshotDiffResultDifference, ScreenshotDiffResultNoDifference, ScreenshotIdentifier, ScreenshotVariant, SingleTryScreenshotDiffResult, ScreenshotDiffRetryResult, SingleTryScreenshotDiffRetryResult, RedactedScreenshotIncompatible, RedactedScreenshotsCompared, RedactedScreenshotsComparison, } from "./sdk-bundle-api/bundle-to-sdk/screenshot-diff-result";
4
- export { SessionRelevance, isPrAuthorRelevance, TestCase, TestCaseReplayOptions, TestRunStatus, TestCaseResult, TestCaseResultStatus, TestRunDataLocations, } from "./replay/test-run.types";
4
+ export { SessionRelevance, isPrAuthorRelevance, TestCase, TestCaseReplayOptions, TestRunStatus, TestCaseResult, TestCaseResultStatus, AppContainerLogsLocations, TestRunDataLocations, } from "./replay/test-run.types";
5
5
  export { TestRunChunkStatus } from "./replay/test-run-chunk.types";
6
6
  export * from "./sdk-bundle-api/sdk-to-bundle/test-run-environment";
7
7
  export { ReplayableEvent } from "./sdk-bundle-api/bidirectional/replayable-event";
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAsBA,0DASiC;AAR/B,kHAAA,gBAAgB,OAAA;AAChB,qHAAA,mBAAmB,OAAA;AASrB,sFAAoE;AAQpE,4EAoBqD;AAPnD,8HAAA,8BAA8B,OAAA;AAoBhC,mFAAiE"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAsBA,0DAUiC;AAT/B,kHAAA,gBAAgB,OAAA;AAChB,qHAAA,mBAAmB,OAAA;AAUrB,sFAAoE;AAQpE,4EAoBqD;AAPnD,8HAAA,8BAA8B,OAAA;AAoBhC,mFAAiE"}
@@ -4,10 +4,10 @@ import { ScreenshotDiffOptions } from "../sdk-bundle-api/sdk-to-bundle/screensho
4
4
  * Relevance of a session
5
5
  */
6
6
  export declare enum SessionRelevance {
7
- IsPrAuthor = "is-pr-author",
8
- IsPrAuthorRelevant = "is-pr-author-relevant",
9
- IsPrAuthorNotRelevant = "is-pr-author-not-relevant",
10
- IsRelevantBeta = "is-relevant-beta",
7
+ IsPrAuthor = "is-pr-author",// Recent session recorded from the author of the PR. This is used to tag sessions before they are executed.
8
+ IsPrAuthorRelevant = "is-pr-author-relevant",// Recent session recorded from the author of the PR, but relevant to the PR
9
+ IsPrAuthorNotRelevant = "is-pr-author-not-relevant",// Recent session recorded from the author of the PR, but not relevant to the PR
10
+ IsRelevantBeta = "is-relevant-beta",// Similar to IsRelevant, but used by beta relevance algorithm for A/B testing and internal evaluation
11
11
  IsRelevant = "is-relevant",
12
12
  NotRelevant = "not-relevant",
13
13
  MaybeRelevant = "maybe-relevant"
@@ -60,6 +60,13 @@ export interface TestCaseResult extends TestCase {
60
60
  */
61
61
  result: TestCaseResultStatus;
62
62
  }
63
+ export interface AppContainerLogsLocations {
64
+ signedBaseUrl: string;
65
+ pods: Array<{
66
+ podName: string;
67
+ chunkKeys: string[];
68
+ }>;
69
+ }
63
70
  export interface TestRunDataLocations {
64
71
  coverage: S3Location;
65
72
  coverageStats: S3Location;
@@ -72,4 +79,5 @@ export interface TestRunDataLocations {
72
79
  coverageByReplayPr?: S3Location;
73
80
  diversityByReplay?: S3Location;
74
81
  relevantReplayContexts: S3Location;
82
+ appContainerLogs?: AppContainerLogsLocations;
75
83
  }
@@ -13,7 +13,7 @@ var SessionRelevance;
13
13
  SessionRelevance["IsRelevant"] = "is-relevant";
14
14
  SessionRelevance["NotRelevant"] = "not-relevant";
15
15
  SessionRelevance["MaybeRelevant"] = "maybe-relevant";
16
- })(SessionRelevance = exports.SessionRelevance || (exports.SessionRelevance = {}));
16
+ })(SessionRelevance || (exports.SessionRelevance = SessionRelevance = {}));
17
17
  const isPrAuthorRelevance = (relevance) => {
18
18
  if (!relevance) {
19
19
  return false;
@@ -1 +1 @@
1
- {"version":3,"file":"test-run.types.js","sourceRoot":"","sources":["../../src/replay/test-run.types.ts"],"names":[],"mappings":";;;AAGA;;GAEG;AACH,IAAY,gBAQX;AARD,WAAY,gBAAgB;IAC1B,+CAA2B,CAAA;IAC3B,gEAA4C,CAAA;IAC5C,uEAAmD,CAAA;IACnD,uDAAmC,CAAA;IACnC,8CAA0B,CAAA;IAC1B,gDAA4B,CAAA;IAC5B,oDAAgC,CAAA;AAClC,CAAC,EARW,gBAAgB,GAAhB,wBAAgB,KAAhB,wBAAgB,QAQ3B;AAEM,MAAM,mBAAmB,GAAG,CACjC,SAA8C,EACrC,EAAE;IACX,IAAI,CAAC,SAAS,EAAE;QACd,OAAO,KAAK,CAAC;KACd;IAED,OAAO,CACL,SAAS,KAAK,gBAAgB,CAAC,UAAU;QACzC,SAAS,KAAK,gBAAgB,CAAC,kBAAkB;QACjD,SAAS,KAAK,gBAAgB,CAAC,qBAAqB,CACrD,CAAC;AACJ,CAAC,CAAC;AAZW,QAAA,mBAAmB,uBAY9B"}
1
+ {"version":3,"file":"test-run.types.js","sourceRoot":"","sources":["../../src/replay/test-run.types.ts"],"names":[],"mappings":";;;AAGA;;GAEG;AACH,IAAY,gBAQX;AARD,WAAY,gBAAgB;IAC1B,+CAA2B,CAAA;IAC3B,gEAA4C,CAAA;IAC5C,uEAAmD,CAAA;IACnD,uDAAmC,CAAA;IACnC,8CAA0B,CAAA;IAC1B,gDAA4B,CAAA;IAC5B,oDAAgC,CAAA;AAClC,CAAC,EARW,gBAAgB,gCAAhB,gBAAgB,QAQ3B;AAEM,MAAM,mBAAmB,GAAG,CACjC,SAA8C,EACrC,EAAE;IACX,IAAI,CAAC,SAAS,EAAE,CAAC;QACf,OAAO,KAAK,CAAC;IACf,CAAC;IAED,OAAO,CACL,SAAS,KAAK,gBAAgB,CAAC,UAAU;QACzC,SAAS,KAAK,gBAAgB,CAAC,kBAAkB;QACjD,SAAS,KAAK,gBAAgB,CAAC,qBAAqB,CACrD,CAAC;AACJ,CAAC,CAAC;AAZW,QAAA,mBAAmB,uBAY9B"}
@@ -33,5 +33,5 @@ var CustomDataSingletonInternalKey;
33
33
  * Present on recordings since ~May 2025.
34
34
  */
35
35
  CustomDataSingletonInternalKey["CustomObjectTooLargeToSerialize"] = "met-custom-object-too-large-to-serialize";
36
- })(CustomDataSingletonInternalKey = exports.CustomDataSingletonInternalKey || (exports.CustomDataSingletonInternalKey = {}));
36
+ })(CustomDataSingletonInternalKey || (exports.CustomDataSingletonInternalKey = CustomDataSingletonInternalKey = {}));
37
37
  //# sourceMappingURL=session-data.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"session-data.js","sourceRoot":"","sources":["../../../src/sdk-bundle-api/sdk-to-bundle/session-data.ts"],"names":[],"mappings":";;;AA0QA,IAAY,8BAmCX;AAnCD,WAAY,8BAA8B;IACxC;;;OAGG;IACH,gGAA8D,CAAA;IAE9D;;;;;OAKG;IACH,oEAAkC,CAAA;IAElC;;;;;OAKG;IACH,6DAA2B,CAAA;IAE3B;;;OAGG;IACH,8DAA4B,CAAA;IAE5B;;;;OAIG;IACH,8GAA4E,CAAA;AAC9E,CAAC,EAnCW,8BAA8B,GAA9B,sCAA8B,KAA9B,sCAA8B,QAmCzC"}
1
+ {"version":3,"file":"session-data.js","sourceRoot":"","sources":["../../../src/sdk-bundle-api/sdk-to-bundle/session-data.ts"],"names":[],"mappings":";;;AA0QA,IAAY,8BAmCX;AAnCD,WAAY,8BAA8B;IACxC;;;OAGG;IACH,gGAA8D,CAAA;IAE9D;;;;;OAKG;IACH,oEAAkC,CAAA;IAElC;;;;;OAKG;IACH,6DAA2B,CAAA;IAE3B;;;OAGG;IACH,8DAA4B,CAAA;IAE5B;;;;OAIG;IACH,8GAA4E,CAAA;AAC9E,CAAC,EAnCW,8BAA8B,8CAA9B,8BAA8B,QAmCzC"}
@@ -1,6 +1,6 @@
1
1
  export interface TestRunEnvironment {
2
2
  ci?: boolean;
3
- context?: TestRunGitHubContext | TestRunGitLabContext | TestRunBitbucketContext;
3
+ context?: TestRunGitHubContext | TestRunGitLabContext | TestRunBitbucketContext | TestRunCustomTriggerContext;
4
4
  [key: string]: unknown;
5
5
  }
6
6
  export type TestRunGitHubContext = TestRunGitHubPullRequestContext | TestRunGitHubPushContext | TestRunGitHubWorkflowDispatchContext;
@@ -114,4 +114,14 @@ export interface TestRunBitbucketPushContext {
114
114
  /** Git ref for the branch (/refs/heads/<branch>) */
115
115
  ref: string;
116
116
  }
117
+ export interface TestRunCustomTriggerContext {
118
+ type: "custom-trigger";
119
+ event: "custom-trigger";
120
+ /** Base commit hash */
121
+ baseSha: string;
122
+ /** Head commit hash */
123
+ headSha: string;
124
+ /** Whether the test run includes uncommitted changes from the working directory */
125
+ withUncommittedChanges?: boolean;
126
+ }
117
127
  export type ReasonPullRequestIsNotAvailable = "no-pull-requests-found-for-commit" | "multiple-pull-requests-for-same-commit" | "all-pull-requests-had-skip-meticulous-label" | "only-found-merged-pull-requests-for-which-commit-is-the-merge-commit" | "commit-is-already-on-base-branch";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alwaysmeticulous/api",
3
- "version": "2.257.1",
3
+ "version": "2.262.0",
4
4
  "description": "Meticulous API types",
5
5
  "license": "ISC",
6
6
  "main": "dist/index.js",
@@ -35,5 +35,5 @@
35
35
  "bugs": {
36
36
  "url": "https://github.com/alwaysmeticulous/meticulous-sdk/issues"
37
37
  },
38
- "gitHead": "1ac81a76cdc1434dee4b4cb02ff8f442085793a4"
38
+ "gitHead": "c5016bb8ce957282c5b8acf2a88c3247e27e983f"
39
39
  }