@alwaysmeticulous/client 2.292.1 → 2.293.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/api/agent.api.d.ts +57 -1
- package/dist/api/agent.api.js +65 -3
- package/dist/api/agent.api.js.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +8 -4
- package/dist/index.js.map +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +3 -3
package/dist/api/agent.api.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { SessionContext } from "@alwaysmeticulous/api";
|
|
1
|
+
import { SessionContext, TestRunStatus } from "@alwaysmeticulous/api";
|
|
2
2
|
import { MeticulousClient } from "../types/client.types";
|
|
3
3
|
export interface DiffsSummaryScreenshot {
|
|
4
4
|
screenshotName: string;
|
|
@@ -30,6 +30,53 @@ export interface ScreenshotDomDiffResponse {
|
|
|
30
30
|
}>;
|
|
31
31
|
totalDiffs: number;
|
|
32
32
|
}
|
|
33
|
+
export type CompactRange = [startLineInc: number, endLineInc: number];
|
|
34
|
+
export type FileWithCompactRanges = [filePath: string, ranges: CompactRange[]];
|
|
35
|
+
export interface TestRunForCommitResponse {
|
|
36
|
+
/**
|
|
37
|
+
* The id of the most recent user-visible test run for the commit, including
|
|
38
|
+
* one still in progress (`ExecutionError`/`Aborted` runs are skipped), or
|
|
39
|
+
* `null` if the project has no such run.
|
|
40
|
+
*/
|
|
41
|
+
testRunId: string | null;
|
|
42
|
+
/**
|
|
43
|
+
* The matched run's status (`null` iff `testRunId` is null). An in-progress
|
|
44
|
+
* status lets the caller decide whether to wait for the run to finish.
|
|
45
|
+
*/
|
|
46
|
+
status: TestRunStatus | null;
|
|
47
|
+
}
|
|
48
|
+
export interface TestRunJsCoverageResponse {
|
|
49
|
+
/**
|
|
50
|
+
* Executed line ranges per file across the whole test run, keyed by
|
|
51
|
+
* repo-relative path (from the precomputed, repo-mapped coverage.json).
|
|
52
|
+
*/
|
|
53
|
+
files: FileWithCompactRanges[];
|
|
54
|
+
}
|
|
55
|
+
export interface ReplayJsCoverageResponse {
|
|
56
|
+
/**
|
|
57
|
+
* Executed line ranges for a single replay (whole replay, or one screenshot),
|
|
58
|
+
* keyed by repo-relative path. Source-map paths that don't resolve to a repo
|
|
59
|
+
* file are dropped. `null` only when a specific screenshot has no coverage.
|
|
60
|
+
*/
|
|
61
|
+
files: FileWithCompactRanges[] | null;
|
|
62
|
+
}
|
|
63
|
+
export interface CoverageFileDiff {
|
|
64
|
+
/** Repo-relative file path. */
|
|
65
|
+
filePath: string;
|
|
66
|
+
status: "added" | "removed" | "modified";
|
|
67
|
+
baseRanges: CompactRange[];
|
|
68
|
+
headRanges: CompactRange[];
|
|
69
|
+
}
|
|
70
|
+
export interface ReplayDiffJsCoverageDiffResponse {
|
|
71
|
+
/**
|
|
72
|
+
* Base/head executed line ranges and their diff, all keyed by repo-relative
|
|
73
|
+
* path. Source-map paths that don't resolve to a repo file (e.g. a file
|
|
74
|
+
* deleted at head, or third-party code) are dropped.
|
|
75
|
+
*/
|
|
76
|
+
base: FileWithCompactRanges[] | null;
|
|
77
|
+
head: FileWithCompactRanges[] | null;
|
|
78
|
+
diff: CoverageFileDiff[];
|
|
79
|
+
}
|
|
33
80
|
export interface ScreenshotUrlsResponse {
|
|
34
81
|
outcome: string;
|
|
35
82
|
screenshot?: string;
|
|
@@ -172,6 +219,15 @@ export declare const trackAgentFeatureUsage: ({ client, feature, projectId, }: {
|
|
|
172
219
|
}) => Promise<void>;
|
|
173
220
|
export declare const getTestRunDiffsSummary: (client: MeticulousClient, testRunId: string, options?: DiffsSummaryOptions) => Promise<DiffsSummaryResponse>;
|
|
174
221
|
export declare const getScreenshotDomDiff: (client: MeticulousClient, replayDiffId: string, screenshotName: string, index?: number, context?: string) => Promise<ScreenshotDomDiffResponse>;
|
|
222
|
+
export declare const getTestRunForCommit: (client: MeticulousClient, commitSha: string, options?: {
|
|
223
|
+
projectId?: string | undefined;
|
|
224
|
+
}) => Promise<TestRunForCommitResponse>;
|
|
225
|
+
export declare const getTestRunJsCoverage: (client: MeticulousClient, testRunId: string) => Promise<TestRunJsCoverageResponse>;
|
|
226
|
+
export declare const getReplayJsCoverage: (client: MeticulousClient, replayId: string, options?: {
|
|
227
|
+
screenshotName?: string | undefined;
|
|
228
|
+
testRunId?: string | undefined;
|
|
229
|
+
}) => Promise<ReplayJsCoverageResponse>;
|
|
230
|
+
export declare const getReplayDiffJsCoverage: (client: MeticulousClient, replayDiffId: string, screenshotName?: string) => Promise<ReplayDiffJsCoverageDiffResponse>;
|
|
175
231
|
export declare const getScreenshotUrls: (client: MeticulousClient, replayDiffId: string, screenshotName: string) => Promise<ScreenshotUrlsResponse>;
|
|
176
232
|
export declare const getTimelineDiff: (client: MeticulousClient, replayDiffId: string) => Promise<TimelineDiffResponse>;
|
|
177
233
|
export declare const getStructuredSessionData: (client: MeticulousClient, sessionId: string) => Promise<StructuredSessionDataResponse>;
|
package/dist/api/agent.api.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
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]="
|
|
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]="0a8d20f7-ffb8-5c52-9069-8718aeb7ffba")}catch(e){}}();
|
|
3
3
|
|
|
4
4
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
-
exports.getStructuredSessionData = exports.getTimelineDiff = exports.getScreenshotUrls = exports.getScreenshotDomDiff = exports.getTestRunDiffsSummary = exports.trackAgentFeatureUsage = void 0;
|
|
5
|
+
exports.getStructuredSessionData = exports.getTimelineDiff = exports.getScreenshotUrls = exports.getReplayDiffJsCoverage = exports.getReplayJsCoverage = exports.getTestRunJsCoverage = exports.getTestRunForCommit = exports.getScreenshotDomDiff = exports.getTestRunDiffsSummary = exports.trackAgentFeatureUsage = void 0;
|
|
6
6
|
const errors_1 = require("../errors");
|
|
7
7
|
// ---------------------------------------------------------------------------
|
|
8
8
|
// API methods
|
|
@@ -47,6 +47,68 @@ const getScreenshotDomDiff = async (client, replayDiffId, screenshotName, index,
|
|
|
47
47
|
return data;
|
|
48
48
|
};
|
|
49
49
|
exports.getScreenshotDomDiff = getScreenshotDomDiff;
|
|
50
|
+
// Resolves the latest test run for a commit so the current checkout can be
|
|
51
|
+
// mapped to a test run (e.g. before requesting js-coverage). Returns
|
|
52
|
+
// `{ testRunId: null }` when the project has no matching run. The project comes
|
|
53
|
+
// from the token; OAuth user tokens must pass `projectId`.
|
|
54
|
+
const getTestRunForCommit = async (client, commitSha, options) => {
|
|
55
|
+
const params = { commitSha };
|
|
56
|
+
if (options?.projectId != null) {
|
|
57
|
+
params.projectId = options.projectId;
|
|
58
|
+
}
|
|
59
|
+
const { data } = await client
|
|
60
|
+
.get("agent/test-runs", { params })
|
|
61
|
+
.catch((error) => {
|
|
62
|
+
throw (0, errors_1.maybeEnrichFetchError)(error);
|
|
63
|
+
});
|
|
64
|
+
return data;
|
|
65
|
+
};
|
|
66
|
+
exports.getTestRunForCommit = getTestRunForCommit;
|
|
67
|
+
// Returns the whole test run's executed line ranges from the precomputed,
|
|
68
|
+
// repo-mapped coverage.json (keyed by repo-relative path).
|
|
69
|
+
const getTestRunJsCoverage = async (client, testRunId) => {
|
|
70
|
+
const { data } = await client
|
|
71
|
+
.get(`agent/test-runs/${testRunId}/js-coverage`)
|
|
72
|
+
.catch((error) => {
|
|
73
|
+
throw (0, errors_1.maybeEnrichFetchError)(error);
|
|
74
|
+
});
|
|
75
|
+
return data;
|
|
76
|
+
};
|
|
77
|
+
exports.getTestRunJsCoverage = getTestRunJsCoverage;
|
|
78
|
+
// Plain coverage for a single replay. Omit screenshotName for the whole replay.
|
|
79
|
+
// Repo file paths always resolve against the run that executed the replay as its
|
|
80
|
+
// head (its source maps were built at that run's commit). testRunId, when given,
|
|
81
|
+
// gates membership (the replay must belong to that run, head or base) and
|
|
82
|
+
// disambiguates: if the replay was that run's head, paths resolve against it —
|
|
83
|
+
// useful when a head replay belongs to several runs (e.g. proxy / copied diffs).
|
|
84
|
+
// When omitted, the execution run is inferred from replay-diffs and must be
|
|
85
|
+
// unique (restricted to user-visible runs).
|
|
86
|
+
const getReplayJsCoverage = async (client, replayId, options) => {
|
|
87
|
+
const path = options?.screenshotName != null
|
|
88
|
+
? `agent/replays/${replayId}/screenshots/${encodeURIComponent(options.screenshotName)}/js-coverage`
|
|
89
|
+
: `agent/replays/${replayId}/js-coverage`;
|
|
90
|
+
const params = {};
|
|
91
|
+
if (options?.testRunId != null) {
|
|
92
|
+
params.testRunId = options.testRunId;
|
|
93
|
+
}
|
|
94
|
+
const { data } = await client.get(path, { params }).catch((error) => {
|
|
95
|
+
throw (0, errors_1.maybeEnrichFetchError)(error);
|
|
96
|
+
});
|
|
97
|
+
return data;
|
|
98
|
+
};
|
|
99
|
+
exports.getReplayJsCoverage = getReplayJsCoverage;
|
|
100
|
+
// Coverage *diff* for a replay diff (base vs head). Omit screenshotName for the
|
|
101
|
+
// whole-replay diff.
|
|
102
|
+
const getReplayDiffJsCoverage = async (client, replayDiffId, screenshotName) => {
|
|
103
|
+
const path = screenshotName != null
|
|
104
|
+
? `agent/replay-diffs/${replayDiffId}/screenshots/${encodeURIComponent(screenshotName)}/js-coverage-diff`
|
|
105
|
+
: `agent/replay-diffs/${replayDiffId}/js-coverage-diff`;
|
|
106
|
+
const { data } = await client.get(path).catch((error) => {
|
|
107
|
+
throw (0, errors_1.maybeEnrichFetchError)(error);
|
|
108
|
+
});
|
|
109
|
+
return data;
|
|
110
|
+
};
|
|
111
|
+
exports.getReplayDiffJsCoverage = getReplayDiffJsCoverage;
|
|
50
112
|
const getScreenshotUrls = async (client, replayDiffId, screenshotName) => {
|
|
51
113
|
const { data } = await client
|
|
52
114
|
.get(`agent/replay-diffs/${replayDiffId}/screenshots/${encodeURIComponent(screenshotName)}/image-urls`)
|
|
@@ -75,4 +137,4 @@ const getStructuredSessionData = async (client, sessionId) => {
|
|
|
75
137
|
};
|
|
76
138
|
exports.getStructuredSessionData = getStructuredSessionData;
|
|
77
139
|
//# sourceMappingURL=agent.api.js.map
|
|
78
|
-
//# debugId=
|
|
140
|
+
//# debugId=0a8d20f7-ffb8-5c52-9069-8718aeb7ffba
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"agent.api.js","sources":["../../src/api/agent.api.ts"],"sourceRoot":"","names":[],"mappings":";;;;;AACA,sCAAkD;
|
|
1
|
+
{"version":3,"file":"agent.api.js","sources":["../../src/api/agent.api.ts"],"sourceRoot":"","names":[],"mappings":";;;;;AACA,sCAAkD;AA2OlD,8EAA8E;AAC9E,cAAc;AACd,8EAA8E;AAEvE,MAAM,sBAAsB,GAAG,KAAK,EAAE,EAC3C,MAAM,EACN,OAAO,EACP,SAAS,GAKV,EAAiB,EAAE;IAClB,MAAM,MAAM;SACT,IAAI,CACH,iBAAiB,EACjB,EAAE,OAAO,EAAE,EACX,SAAS,CAAC,CAAC,CAAC,EAAE,MAAM,EAAE,EAAE,SAAS,EAAE,EAAE,CAAC,CAAC,CAAC,SAAS,CAClD;SACA,KAAK,CAAC,GAAG,EAAE;QACV,oDAAoD;IACtD,CAAC,CAAC,CAAC;AACP,CAAC,CAAC;AAlBW,QAAA,sBAAsB,0BAkBjC;AAEK,MAAM,sBAAsB,GAAG,KAAK,EACzC,MAAwB,EACxB,SAAiB,EACjB,OAA6B,EACE,EAAE;IACjC,MAAM,MAAM,GAA2B,EAAE,CAAC;IAC1C,IAAI,OAAO,EAAE,gBAAgB,EAAE,CAAC;QAC9B,MAAM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CAAC,aAAa,CAClG;SACA,KAAK,CAAC,CAAC,KAAK,EAAE,EAAE;QACf,MAAM,IAAA,8BAAqB,EAAC,KAAK,CAAC,CAAC;IACrC,CAAC,CAAC,CAAC;IACL,OAAO,IAAI,CAAC;AACd,CAAC,CAAC;AAbW,QAAA,iBAAiB,qBAa5B;AAEK,MAAM,eAAe,GAAG,KAAK,EAClC,MAAwB,EACxB,YAAoB,EACW,EAAE;IACjC,MAAM,EAAE,IAAI,EAAE,GAAG,MAAM,MAAM;SAC1B,GAAG,CAAC,sBAAsB,YAAY,gBAAgB,CAAC;SACvD,KAAK,CAAC,CAAC,KAAK,EAAE,EAAE;QACf,MAAM,IAAA,8BAAqB,EAAC,KAAK,CAAC,CAAC;IACrC,CAAC,CAAC,CAAC;IACL,OAAO,IAAI,CAAC;AACd,CAAC,CAAC;AAVW,QAAA,eAAe,mBAU1B;AAEK,MAAM,wBAAwB,GAAG,KAAK,EAC3C,MAAwB,EACxB,SAAiB,EACuB,EAAE;IAC1C,MAAM,EAAE,IAAI,EAAE,GAAG,MAAM,MAAM;SAC1B,GAAG,CAAC,kBAAkB,SAAS,kBAAkB,CAAC;SAClD,KAAK,CAAC,CAAC,KAAK,EAAE,EAAE;QACf,MAAM,IAAA,8BAAqB,EAAC,KAAK,CAAC,CAAC;IACrC,CAAC,CAAC,CAAC;IACL,OAAO,IAAI,CAAC;AACd,CAAC,CAAC;AAVW,QAAA,wBAAwB,4BAUnC","debugId":"0a8d20f7-ffb8-5c52-9069-8718aeb7ffba"}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { AgentFeature, StructuredSessionDataResponse, StructuredSessionSummary, DiffsSummaryOptions, DiffsSummaryScreenshot, DiffsSummaryReplayDiff, DiffsSummaryResponse, ScreenshotDomDiffResponse, ScreenshotUrlsResponse, TimelineDiffEntry, TimelineDiffResponse, getStructuredSessionData, getTestRunDiffsSummary, getScreenshotDomDiff, getScreenshotUrls, getTimelineDiff, trackAgentFeatureUsage, } from "./api/agent.api";
|
|
1
|
+
export { AgentFeature, StructuredSessionDataResponse, StructuredSessionSummary, DiffsSummaryOptions, DiffsSummaryScreenshot, DiffsSummaryReplayDiff, DiffsSummaryResponse, ScreenshotDomDiffResponse, ScreenshotUrlsResponse, CompactRange, FileWithCompactRanges, TestRunForCommitResponse, TestRunJsCoverageResponse, ReplayJsCoverageResponse, CoverageFileDiff, ReplayDiffJsCoverageDiffResponse, TimelineDiffEntry, TimelineDiffResponse, getStructuredSessionData, getTestRunDiffsSummary, getScreenshotDomDiff, getTestRunForCommit, getTestRunJsCoverage, getReplayJsCoverage, getReplayDiffJsCoverage, getScreenshotUrls, getTimelineDiff, trackAgentFeatureUsage, } from "./api/agent.api";
|
|
2
2
|
export * from "./api/github-cloud-replay.api";
|
|
3
3
|
export { WhoamiOrganization, WhoamiResponse, getWhoami, OAuthProject, OAuthProjectsResponse, getOAuthProjects, } from "./api/oauth.api";
|
|
4
4
|
export { GetRepoUrlOptions, RepoUrlResponse, getProject, getRepoUrl, GetSourceArchiveUrlOptions, SourceArchiveUrlResponse, getSourceArchiveUrl, RequestSourceCodeUploadUrlParams, RequestSourceCodeUploadUrlResponse, requestSourceCodeUploadUrl, } from "./api/project.api";
|
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]="
|
|
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]="2eb5c68f-8415-5e35-b10e-c559c8862d57")}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,12 +16,16 @@ 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.
|
|
20
|
-
exports.getRelevantSessions = exports.maybeEnrichFetchError = exports.isFetchError = exports.getRegistryAuth = 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 = void 0;
|
|
19
|
+
exports.getStoredProjectId = exports.getStoredProject = exports.getStoredOAuthTokens = exports.clearStoredProject = exports.clearOAuthTokens = exports.getValidAccessToken = exports.performOAuthLogin = exports.resolveApiTokenWithOAuth = 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.getTestRunNetworkPatchingResult = exports.getTestRun = exports.executeSecureTunnelTestRun = exports.getPrDiffForTestRun = exports.getPrDiff = exports.getPrDescriptionForTestRun = 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.getOAuthProjects = exports.getWhoami = exports.trackAgentFeatureUsage = exports.getTimelineDiff = exports.getScreenshotUrls = exports.getReplayDiffJsCoverage = exports.getReplayJsCoverage = exports.getTestRunJsCoverage = exports.getTestRunForCommit = exports.getScreenshotDomDiff = exports.getTestRunDiffsSummary = exports.getStructuredSessionData = void 0;
|
|
20
|
+
exports.getRelevantSessions = exports.maybeEnrichFetchError = exports.isFetchError = exports.getRegistryAuth = 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.isOAuthJwt = exports.isJwtExpired = exports.getJwtClaims = exports.setStoredProject = 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; } });
|
|
24
24
|
Object.defineProperty(exports, "getScreenshotDomDiff", { enumerable: true, get: function () { return agent_api_1.getScreenshotDomDiff; } });
|
|
25
|
+
Object.defineProperty(exports, "getTestRunForCommit", { enumerable: true, get: function () { return agent_api_1.getTestRunForCommit; } });
|
|
26
|
+
Object.defineProperty(exports, "getTestRunJsCoverage", { enumerable: true, get: function () { return agent_api_1.getTestRunJsCoverage; } });
|
|
27
|
+
Object.defineProperty(exports, "getReplayJsCoverage", { enumerable: true, get: function () { return agent_api_1.getReplayJsCoverage; } });
|
|
28
|
+
Object.defineProperty(exports, "getReplayDiffJsCoverage", { enumerable: true, get: function () { return agent_api_1.getReplayDiffJsCoverage; } });
|
|
25
29
|
Object.defineProperty(exports, "getScreenshotUrls", { enumerable: true, get: function () { return agent_api_1.getScreenshotUrls; } });
|
|
26
30
|
Object.defineProperty(exports, "getTimelineDiff", { enumerable: true, get: function () { return agent_api_1.getTimelineDiff; } });
|
|
27
31
|
Object.defineProperty(exports, "trackAgentFeatureUsage", { enumerable: true, get: function () { return agent_api_1.trackAgentFeatureUsage; } });
|
|
@@ -110,4 +114,4 @@ Object.defineProperty(exports, "maybeEnrichFetchError", { enumerable: true, get:
|
|
|
110
114
|
var local_changes_api_1 = require("./api/local-changes.api");
|
|
111
115
|
Object.defineProperty(exports, "getRelevantSessions", { enumerable: true, get: function () { return local_changes_api_1.getRelevantSessions; } });
|
|
112
116
|
//# sourceMappingURL=index.js.map
|
|
113
|
-
//# debugId=
|
|
117
|
+
//# debugId=2eb5c68f-8415-5e35-b10e-c559c8862d57
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../src/index.ts"],"sourceRoot":"","names":[],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA,
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../src/index.ts"],"sourceRoot":"","names":[],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA,6CA6ByB;AAVvB,qHAAA,wBAAwB,OAAA;AACxB,mHAAA,sBAAsB,OAAA;AACtB,iHAAA,oBAAoB,OAAA;AACpB,gHAAA,mBAAmB,OAAA;AACnB,iHAAA,oBAAoB,OAAA;AACpB,gHAAA,mBAAmB,OAAA;AACnB,oHAAA,uBAAuB,OAAA;AACvB,8GAAA,iBAAiB,OAAA;AACjB,4GAAA,eAAe,OAAA;AACf,mHAAA,sBAAsB,OAAA;AAExB,gEAA8C;AAC9C,6CAOyB;AAJvB,sGAAA,SAAS,OAAA;AAGT,6GAAA,gBAAgB,OAAA;AAElB,iDAW2B;AARzB,yGAAA,UAAU,OAAA;AACV,yGAAA,UAAU,OAAA;AAGV,kHAAA,mBAAmB,OAAA;AAGnB,yHAAA,0BAA0B,OAAA;AAE5B,+CAK0B;AAHxB,uGAAA,SAAS,OAAA;AACT,kHAAA,oBAAoB,OAAA;AACpB,qHAAA,uBAAuB,OAAA;AAE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4HAAA,WAAW,OAAA;AACX,uIAAA,sBAAsB,OAAA;AACtB,2IAAA,0BAA0B,OAAA;AAG5B,yEAyBuC;AArBrC,6HAAA,kBAAkB,OAAA;AAClB,sIAAA,2BAA2B,OAAA;AAI3B,4HAAA,iBAAiB,OAAA;AAGjB,+HAAA,oBAAoB,OAAA;AAGpB,8HAAA,mBAAmB,OAAA;AAGnB,kIAAA,uBAAuB,OAAA;AAGvB,oIAAA,yBAAyB,OAAA;AAEzB,iIAAA,sBAAsB,OAAA;AAGxB,mDAA8E;AAA5C,+GAAA,eAAe,OAAA;AACjD,mCAA+D;AAAtD,sGAAA,YAAY,OAAA;AAAE,+GAAA,qBAAqB,OAAA;AAC5C,6DAMiC;AAD/B,wHAAA,mBAAmB,OAAA","debugId":"2eb5c68f-8415-5e35-b10e-c559c8862d57"}
|
package/dist/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const VERSION = "2.
|
|
1
|
+
export declare const VERSION = "2.293.0";
|
package/dist/version.js
CHANGED
|
@@ -5,6 +5,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
5
5
|
exports.VERSION = void 0;
|
|
6
6
|
// AUTO-GENERATED by scripts/generate-version.mjs — do not edit by hand.
|
|
7
7
|
// Regenerated from package.json on every build.
|
|
8
|
-
exports.VERSION = "2.
|
|
8
|
+
exports.VERSION = "2.293.0";
|
|
9
9
|
//# sourceMappingURL=version.js.map
|
|
10
10
|
//# debugId=ac10f4cc-7a38-5615-8b9d-956b50ad79da
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alwaysmeticulous/client",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.293.0",
|
|
4
4
|
"description": "Helper methods for using the Meticulous backend API",
|
|
5
5
|
"license": "ISC",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -12,8 +12,8 @@
|
|
|
12
12
|
"loglevel": "^1.8.0",
|
|
13
13
|
"proxy-agent": "^6.4.0",
|
|
14
14
|
"undici": "^6.24.1",
|
|
15
|
-
"@alwaysmeticulous/api": "2.
|
|
16
|
-
"@alwaysmeticulous/common": "2.
|
|
15
|
+
"@alwaysmeticulous/api": "2.293.0",
|
|
16
|
+
"@alwaysmeticulous/common": "2.293.0"
|
|
17
17
|
},
|
|
18
18
|
"author": {
|
|
19
19
|
"name": "The Meticulous Team",
|