@alwaysmeticulous/client 2.280.0 → 2.281.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.
@@ -5,3 +5,9 @@ export declare const getPrDiff: ({ client, testRunId, }: {
5
5
  }) => Promise<{
6
6
  content: string;
7
7
  }>;
8
+ export declare const getPrDiffForTestRun: ({ client, testRunId, }: {
9
+ client: MeticulousClient;
10
+ testRunId: string;
11
+ }) => Promise<{
12
+ content: string;
13
+ }>;
@@ -1,12 +1,17 @@
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]="2d1c3171-3586-523b-b65b-9964544ea3bb")}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]="5f18d969-6959-56ad-bdd9-d1cb36b792b3")}catch(e){}}();
3
3
 
4
4
  Object.defineProperty(exports, "__esModule", { value: true });
5
- exports.getPrDiff = void 0;
5
+ exports.getPrDiffForTestRun = exports.getPrDiff = void 0;
6
6
  const getPrDiff = async ({ client, testRunId, }) => {
7
7
  const { data } = await client.post("/source-code/pr-diff", { testRunId });
8
8
  return data;
9
9
  };
10
10
  exports.getPrDiff = getPrDiff;
11
+ const getPrDiffForTestRun = async ({ client, testRunId, }) => {
12
+ const { data } = await client.get(`/test-runs/${testRunId}/pr-diff`);
13
+ return data;
14
+ };
15
+ exports.getPrDiffForTestRun = getPrDiffForTestRun;
11
16
  //# sourceMappingURL=source-code.api.js.map
12
- //# debugId=2d1c3171-3586-523b-b65b-9964544ea3bb
17
+ //# debugId=5f18d969-6959-56ad-bdd9-d1cb36b792b3
@@ -1 +1 @@
1
- {"version":3,"file":"source-code.api.js","sources":["../../src/api/source-code.api.ts"],"sourceRoot":"","names":[],"mappings":";;;;;AAEO,MAAM,SAAS,GAAG,KAAK,EAAE,EAC9B,MAAM,EACN,SAAS,GAIV,EAAgC,EAAE;IACjC,MAAM,EAAE,IAAI,EAAE,GAAG,MAAM,MAAM,CAAC,IAAI,CAChC,sBAAsB,EACtB,EAAE,SAAS,EAAE,CACd,CAAC;IACF,OAAO,IAAI,CAAC;AACd,CAAC,CAAC;AAZW,QAAA,SAAS,aAYpB","debugId":"2d1c3171-3586-523b-b65b-9964544ea3bb"}
1
+ {"version":3,"file":"source-code.api.js","sources":["../../src/api/source-code.api.ts"],"sourceRoot":"","names":[],"mappings":";;;;;AAEO,MAAM,SAAS,GAAG,KAAK,EAAE,EAC9B,MAAM,EACN,SAAS,GAIV,EAAgC,EAAE;IACjC,MAAM,EAAE,IAAI,EAAE,GAAG,MAAM,MAAM,CAAC,IAAI,CAChC,sBAAsB,EACtB,EAAE,SAAS,EAAE,CACd,CAAC;IACF,OAAO,IAAI,CAAC;AACd,CAAC,CAAC;AAZW,QAAA,SAAS,aAYpB;AAEK,MAAM,mBAAmB,GAAG,KAAK,EAAE,EACxC,MAAM,EACN,SAAS,GAIV,EAAgC,EAAE;IACjC,MAAM,EAAE,IAAI,EAAE,GAAG,MAAM,MAAM,CAAC,GAAG,CAC/B,cAAc,SAAS,UAAU,CAClC,CAAC;IACF,OAAO,IAAI,CAAC;AACd,CAAC,CAAC;AAXW,QAAA,mBAAmB,uBAW9B","debugId":"5f18d969-6959-56ad-bdd9-d1cb36b792b3"}
package/dist/index.d.ts CHANGED
@@ -5,7 +5,7 @@ export { GetRepoUrlOptions, RepoUrlResponse, getProject, getRepoUrl, GetSourceAr
5
5
  export { ReplayV3UploadLocations, getReplay, getReplayDownloadUrl, getReplayV3DownloadUrls, } from "./api/replay.api";
6
6
  export { getRecordedSession, getRecordedSessionData, getRecordingCommandId, postSessionIdNotification, } from "./api/session.api";
7
7
  export { ReplayDiffResponse, getReplayDiff } from "./api/replay-diff.api";
8
- export { getPrDiff } from "./api/source-code.api";
8
+ export { getPrDiff, getPrDiffForTestRun } from "./api/source-code.api";
9
9
  export { ExecuteSecureTunnelTestRunOptions, executeSecureTunnelTestRun, getTestRun, getTestRunData, getTestRunReplayDiffs, GetLatestTestRunOptions, getLatestTestRunResults, TestRun, emitTelemetry, } from "./api/test-run.api";
10
10
  export { GetIsLockedOptions, getIsLocked } from "./api/deployment-lock.api";
11
11
  export { IN_PROGRESS_TEST_RUN_STATUS } from "./api/test-run.constants";
package/dist/index.js CHANGED
@@ -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]="c4f4b9c9-8243-5016-b0bf-99f3499377d5")}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]="2bbe5271-0c63-5638-aadb-36057093f69d")}catch(e){}}();
3
3
 
4
4
  var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
5
5
  if (k2 === undefined) k2 = k;
@@ -16,8 +16,8 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
16
16
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
17
17
  };
18
18
  Object.defineProperty(exports, "__esModule", { value: true });
19
- exports.getContainerDeployment = exports.downloadProjectDeployment = exports.completeContainerUpload = exports.completeAssetUpload = exports.requestGitDiffUpload = exports.requestUploadPart = exports.requestMultipartAssetUpload = exports.requestAssetUpload = exports.retryTransientUploadErrors = exports.isTransientUploadError = exports.UploadError = exports.putFileToSignedUrl = exports.getProxyAgent = exports.clearOAuthTokens = exports.getValidAccessToken = exports.performOAuthLogin = exports.makeRequest = exports.isInteractiveContext = exports.createClientWithOAuth = exports.createClient = exports.getAuthToken = exports.getApiToken = exports.IN_PROGRESS_TEST_RUN_STATUS = exports.getIsLocked = exports.emitTelemetry = exports.getLatestTestRunResults = exports.getTestRunReplayDiffs = exports.getTestRunData = exports.getTestRun = exports.executeSecureTunnelTestRun = exports.getPrDiff = exports.getReplayDiff = exports.postSessionIdNotification = exports.getRecordingCommandId = exports.getRecordedSessionData = exports.getRecordedSession = exports.getReplayV3DownloadUrls = exports.getReplayDownloadUrl = exports.getReplay = exports.requestSourceCodeUploadUrl = exports.getSourceArchiveUrl = exports.getRepoUrl = exports.getProject = exports.getWhoami = exports.trackAgentFeatureUsage = exports.getTimelineDiff = exports.getScreenshotUrls = exports.getScreenshotDomDiff = exports.getTestRunDiffsSummary = exports.getStructuredSessionData = void 0;
20
- exports.getRelevantSessions = exports.isFetchError = exports.getRegistryAuth = void 0;
19
+ exports.downloadProjectDeployment = exports.completeContainerUpload = exports.completeAssetUpload = exports.requestGitDiffUpload = exports.requestUploadPart = exports.requestMultipartAssetUpload = exports.requestAssetUpload = exports.retryTransientUploadErrors = exports.isTransientUploadError = exports.UploadError = exports.putFileToSignedUrl = exports.getProxyAgent = exports.clearOAuthTokens = exports.getValidAccessToken = exports.performOAuthLogin = exports.makeRequest = exports.isInteractiveContext = exports.createClientWithOAuth = exports.createClient = exports.getAuthToken = exports.getApiToken = exports.IN_PROGRESS_TEST_RUN_STATUS = exports.getIsLocked = exports.emitTelemetry = exports.getLatestTestRunResults = exports.getTestRunReplayDiffs = exports.getTestRunData = exports.getTestRun = exports.executeSecureTunnelTestRun = exports.getPrDiffForTestRun = exports.getPrDiff = exports.getReplayDiff = exports.postSessionIdNotification = exports.getRecordingCommandId = exports.getRecordedSessionData = exports.getRecordedSession = exports.getReplayV3DownloadUrls = exports.getReplayDownloadUrl = exports.getReplay = exports.requestSourceCodeUploadUrl = exports.getSourceArchiveUrl = exports.getRepoUrl = exports.getProject = exports.getWhoami = exports.trackAgentFeatureUsage = exports.getTimelineDiff = exports.getScreenshotUrls = exports.getScreenshotDomDiff = exports.getTestRunDiffsSummary = exports.getStructuredSessionData = void 0;
20
+ exports.getRelevantSessions = exports.isFetchError = exports.getRegistryAuth = exports.getContainerDeployment = void 0;
21
21
  var agent_api_1 = require("./api/agent.api");
22
22
  Object.defineProperty(exports, "getStructuredSessionData", { enumerable: true, get: function () { return agent_api_1.getStructuredSessionData; } });
23
23
  Object.defineProperty(exports, "getTestRunDiffsSummary", { enumerable: true, get: function () { return agent_api_1.getTestRunDiffsSummary; } });
@@ -46,6 +46,7 @@ var replay_diff_api_1 = require("./api/replay-diff.api");
46
46
  Object.defineProperty(exports, "getReplayDiff", { enumerable: true, get: function () { return replay_diff_api_1.getReplayDiff; } });
47
47
  var source_code_api_1 = require("./api/source-code.api");
48
48
  Object.defineProperty(exports, "getPrDiff", { enumerable: true, get: function () { return source_code_api_1.getPrDiff; } });
49
+ Object.defineProperty(exports, "getPrDiffForTestRun", { enumerable: true, get: function () { return source_code_api_1.getPrDiffForTestRun; } });
49
50
  var test_run_api_1 = require("./api/test-run.api");
50
51
  Object.defineProperty(exports, "executeSecureTunnelTestRun", { enumerable: true, get: function () { return test_run_api_1.executeSecureTunnelTestRun; } });
51
52
  Object.defineProperty(exports, "getTestRun", { enumerable: true, get: function () { return test_run_api_1.getTestRun; } });
@@ -95,4 +96,4 @@ Object.defineProperty(exports, "isFetchError", { enumerable: true, get: function
95
96
  var local_changes_api_1 = require("./api/local-changes.api");
96
97
  Object.defineProperty(exports, "getRelevantSessions", { enumerable: true, get: function () { return local_changes_api_1.getRelevantSessions; } });
97
98
  //# sourceMappingURL=index.js.map
98
- //# debugId=c4f4b9c9-8243-5016-b0bf-99f3499377d5
99
+ //# debugId=2bbe5271-0c63-5638-aadb-36057093f69d
package/dist/index.js.map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iIAAA,sBAAsB,OAAA;AAGxB,mDAA8E;AAA5C,+GAAA,eAAe,OAAA;AACjD,mCAAwC;AAA/B,sGAAA,YAAY,OAAA;AACrB,6DAMiC;AAD/B,wHAAA,mBAAmB,OAAA","debugId":"2bbe5271-0c63-5638-aadb-36057093f69d"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alwaysmeticulous/client",
3
- "version": "2.280.0",
3
+ "version": "2.281.0",
4
4
  "description": "Helper methods for using the Meticulous backend API",
5
5
  "license": "ISC",
6
6
  "main": "dist/index.js",
@@ -8,23 +8,12 @@
8
8
  "files": [
9
9
  "dist"
10
10
  ],
11
- "scripts": {
12
- "clean": "rimraf dist tsconfig.tsbuildinfo",
13
- "build": "tsc --build tsconfig.json",
14
- "dev": "tsc --build tsconfig.json --watch",
15
- "format": "prettier --write src",
16
- "lint": "eslint \"src/**/*.{js,ts,tsx}\" --cache",
17
- "lint:commit": "eslint --cache $(git diff --relative --name-only --diff-filter=ACMRTUXB master | grep -E \"(.js$|.ts$|.tsx$)\")",
18
- "lint:fix": "eslint \"src/**/*.{js,ts,tsx}\" --cache --fix",
19
- "depcheck": "depcheck --ignore-patterns=dist",
20
- "test": "vitest run --passWithNoTests"
21
- },
22
11
  "dependencies": {
23
- "@alwaysmeticulous/api": "2.280.0",
24
- "@alwaysmeticulous/common": "2.280.0",
25
12
  "loglevel": "^1.8.0",
26
13
  "proxy-agent": "^6.4.0",
27
- "undici": "^6.24.1"
14
+ "undici": "^6.24.1",
15
+ "@alwaysmeticulous/api": "2.280.0",
16
+ "@alwaysmeticulous/common": "2.280.0"
28
17
  },
29
18
  "author": {
30
19
  "name": "The Meticulous Team",
@@ -44,7 +33,17 @@
44
33
  "url": "https://github.com/alwaysmeticulous/meticulous-sdk/issues"
45
34
  },
46
35
  "devDependencies": {
47
- "vitest": "catalog:"
36
+ "vitest": "^4.1.4"
48
37
  },
49
- "gitHead": "87ca975a232d16ea878caa5649a8b21221ebca02"
50
- }
38
+ "scripts": {
39
+ "clean": "rimraf dist tsconfig.tsbuildinfo",
40
+ "build": "tsc --build tsconfig.json",
41
+ "dev": "tsc --build tsconfig.json --watch",
42
+ "format": "prettier --write src",
43
+ "lint": "eslint \"src/**/*.{js,ts,tsx}\" --cache",
44
+ "lint:commit": "eslint --cache $(git diff --relative --name-only --diff-filter=ACMRTUXB master | grep -E \"(.js$|.ts$|.tsx$)\")",
45
+ "lint:fix": "eslint \"src/**/*.{js,ts,tsx}\" --cache --fix",
46
+ "depcheck": "depcheck --ignore-patterns=dist",
47
+ "test": "vitest run --passWithNoTests"
48
+ }
49
+ }