@alwaysmeticulous/client 2.308.0 → 2.312.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/__tests__/agent.api.spec.js +113 -2
- package/dist/api/__tests__/agent.api.spec.js.map +1 -1
- package/dist/api/agent.api.d.ts +108 -2
- package/dist/api/agent.api.d.ts.map +1 -1
- package/dist/api/agent.api.js +114 -14
- package/dist/api/agent.api.js.map +1 -1
- package/dist/api/agentic-session-generation.api.d.ts +269 -0
- package/dist/api/agentic-session-generation.api.d.ts.map +1 -0
- package/dist/api/agentic-session-generation.api.js +119 -0
- package/dist/api/agentic-session-generation.api.js.map +1 -0
- package/dist/api/project-deployments.api.d.ts +21 -0
- package/dist/api/project-deployments.api.d.ts.map +1 -1
- package/dist/api/project-deployments.api.js +15 -14
- package/dist/api/project-deployments.api.js.map +1 -1
- package/dist/index.d.ts +3 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +22 -4
- package/dist/index.js.map +1 -1
- package/dist/oauth/__tests__/oauth-device-login.spec.d.ts +2 -0
- package/dist/oauth/__tests__/oauth-device-login.spec.d.ts.map +1 -0
- package/dist/oauth/__tests__/oauth-device-login.spec.js +310 -0
- package/dist/oauth/__tests__/oauth-device-login.spec.js.map +1 -0
- package/dist/oauth/oauth-constants.d.ts +1 -0
- package/dist/oauth/oauth-constants.d.ts.map +1 -1
- package/dist/oauth/oauth-constants.js +23 -9
- package/dist/oauth/oauth-constants.js.map +1 -1
- package/dist/oauth/oauth-device-login.d.ts +3 -0
- package/dist/oauth/oauth-device-login.d.ts.map +1 -0
- package/dist/oauth/oauth-device-login.js +169 -0
- package/dist/oauth/oauth-device-login.js.map +1 -0
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +3 -3
|
@@ -0,0 +1,269 @@
|
|
|
1
|
+
import type { MeticulousClient } from "../types/client.types";
|
|
2
|
+
import type { ContainerEnvVariable, ProjectIdentifier } from "./project-deployments.api";
|
|
3
|
+
export interface RequestAgenticInstructionsUploadParams extends ProjectIdentifier {
|
|
4
|
+
size: number;
|
|
5
|
+
}
|
|
6
|
+
export interface RequestAgenticInstructionsUploadResponse {
|
|
7
|
+
uploadUrl: string;
|
|
8
|
+
/** Server-minted id that ties the uploaded instructions to a later trigger. */
|
|
9
|
+
instructionsId: string;
|
|
10
|
+
}
|
|
11
|
+
export interface CompleteAgenticSessionGenerationParams extends ProjectIdentifier {
|
|
12
|
+
uploadId: string;
|
|
13
|
+
commitSha: string;
|
|
14
|
+
/** Server-minted id of instructions uploaded for this trigger, if any. */
|
|
15
|
+
instructionsId?: string;
|
|
16
|
+
containerPort?: number | undefined;
|
|
17
|
+
containerEnv?: ContainerEnvVariable[] | undefined;
|
|
18
|
+
containerHealthCheckEndpoint?: string | undefined;
|
|
19
|
+
}
|
|
20
|
+
export interface CompleteAgenticSessionGenerationResponse {
|
|
21
|
+
/** The id of the launched agentic session generation workflow run. */
|
|
22
|
+
workflowRunId?: string;
|
|
23
|
+
message?: string;
|
|
24
|
+
}
|
|
25
|
+
export declare const requestAgenticInstructionsUpload: ({ client, projectId, ...body }: RequestAgenticInstructionsUploadParams & {
|
|
26
|
+
client: MeticulousClient;
|
|
27
|
+
}) => Promise<RequestAgenticInstructionsUploadResponse>;
|
|
28
|
+
export declare const completeAgenticSessionGeneration: ({ client, projectId, ...body }: CompleteAgenticSessionGenerationParams & {
|
|
29
|
+
client: MeticulousClient;
|
|
30
|
+
}) => Promise<CompleteAgenticSessionGenerationResponse>;
|
|
31
|
+
export type AgenticRunResultCaseOutcome = "pass" | "fail" | "blocked";
|
|
32
|
+
/**
|
|
33
|
+
* A single user flow the agent exercised, with its outcome and the sessions it
|
|
34
|
+
* recorded while running it. One agentic run produces many of these.
|
|
35
|
+
*/
|
|
36
|
+
export interface AgenticRunResultCase {
|
|
37
|
+
/** Short human-readable name of the flow, e.g. "Sign up with email". */
|
|
38
|
+
title: string;
|
|
39
|
+
/** The steps the agent took, in order. */
|
|
40
|
+
steps: string[];
|
|
41
|
+
outcome: AgenticRunResultCaseOutcome;
|
|
42
|
+
/** Sessions recorded while running this case. */
|
|
43
|
+
sessionIds: string[];
|
|
44
|
+
/** Free-form notes, e.g. what failed or why the case was blocked. */
|
|
45
|
+
notes?: string;
|
|
46
|
+
}
|
|
47
|
+
export interface AgenticRunCoverageFile {
|
|
48
|
+
/** Repo-relative post-edit path. */
|
|
49
|
+
path: string;
|
|
50
|
+
/** Edited lines the coverage tool could observe (the per-file denominator). */
|
|
51
|
+
executableEditedLines: number;
|
|
52
|
+
/** Observable edited lines that the run covered. */
|
|
53
|
+
coveredLines: number;
|
|
54
|
+
/** Observable edited lines still uncovered, as inclusive [start, end] ranges. */
|
|
55
|
+
residualUncoveredRanges: Array<[number, number]>;
|
|
56
|
+
}
|
|
57
|
+
/**
|
|
58
|
+
* Edit-coverage for the run: how much of the PR's changed code the produced
|
|
59
|
+
* sessions exercised. Omitted entirely when coverage could not be measured
|
|
60
|
+
* (e.g. the app under test served no source maps).
|
|
61
|
+
*/
|
|
62
|
+
export interface AgenticRunCoverage {
|
|
63
|
+
/** coveredLines / executableEditedLines, in [0, 1]. */
|
|
64
|
+
fraction: number;
|
|
65
|
+
coveredLines: number;
|
|
66
|
+
executableEditedLines: number;
|
|
67
|
+
files: AgenticRunCoverageFile[];
|
|
68
|
+
/** Edited files with no coverage data at all (unmappable / not loaded). */
|
|
69
|
+
unobservedFiles: string[];
|
|
70
|
+
}
|
|
71
|
+
export interface ReportAgenticRunResultParams extends ProjectIdentifier {
|
|
72
|
+
/** Every session produced across the run (the union of all cases' sessions). */
|
|
73
|
+
sessionIds: string[];
|
|
74
|
+
cases: AgenticRunResultCase[];
|
|
75
|
+
appUrl: string;
|
|
76
|
+
commitSha: string;
|
|
77
|
+
/** Edit-coverage for the run; omitted when coverage could not be measured. */
|
|
78
|
+
coverage?: AgenticRunCoverage;
|
|
79
|
+
}
|
|
80
|
+
export interface ReportAgenticRunResultResponse {
|
|
81
|
+
message?: string;
|
|
82
|
+
}
|
|
83
|
+
export declare const reportAgenticRunResult: ({ client, projectId, ...body }: ReportAgenticRunResultParams & {
|
|
84
|
+
client: MeticulousClient;
|
|
85
|
+
}) => Promise<ReportAgenticRunResultResponse>;
|
|
86
|
+
export interface GetAgenticChangedFilesParams extends ProjectIdentifier, AgenticRepoLeaseRef {
|
|
87
|
+
commitSha: string;
|
|
88
|
+
}
|
|
89
|
+
export interface AgenticChangedFile {
|
|
90
|
+
filename: string;
|
|
91
|
+
status?: string;
|
|
92
|
+
}
|
|
93
|
+
export interface GetAgenticChangedFilesResponse {
|
|
94
|
+
/** `null` when no PR/diff is available or source access is disabled. */
|
|
95
|
+
files: AgenticChangedFile[] | null;
|
|
96
|
+
}
|
|
97
|
+
/**
|
|
98
|
+
* Lists the files the PR under test touched. Served cap-free off the project's
|
|
99
|
+
* repo-server mirror where possible, falling back to the hosting provider. When
|
|
100
|
+
* `runId` is supplied the mirror read borrows the worker's durable run lease (a
|
|
101
|
+
* warm pod) instead of acquiring a fresh short-lived one; a missing/stale lease
|
|
102
|
+
* falls back to the leaseless path server-side.
|
|
103
|
+
*/
|
|
104
|
+
export declare const getAgenticChangedFiles: ({ client, projectId, commitSha, runId, }: GetAgenticChangedFilesParams & {
|
|
105
|
+
client: MeticulousClient;
|
|
106
|
+
}) => Promise<GetAgenticChangedFilesResponse>;
|
|
107
|
+
/**
|
|
108
|
+
* The agentic run id (workflow run id) a read carries so the backend borrows the
|
|
109
|
+
* worker's durable repo-server lease — discovered by this id — instead of
|
|
110
|
+
* acquiring a fresh short-lived lease per read. Optional: absent (or a lease
|
|
111
|
+
* that's since gone) falls back to the leaseless per-read path server-side.
|
|
112
|
+
*/
|
|
113
|
+
export interface AgenticRepoLeaseRef {
|
|
114
|
+
runId?: string;
|
|
115
|
+
}
|
|
116
|
+
export interface GetAgenticRepoFileParams extends ProjectIdentifier, AgenticRepoLeaseRef {
|
|
117
|
+
commitSha: string;
|
|
118
|
+
path: string;
|
|
119
|
+
/** Hard cap on the returned file size in bytes. */
|
|
120
|
+
maxBytes?: number;
|
|
121
|
+
}
|
|
122
|
+
export interface GetAgenticRepoFileResponse {
|
|
123
|
+
kind: "found" | "missing";
|
|
124
|
+
/** UTF-8 decoded file contents; present only when `kind === "found"`. */
|
|
125
|
+
content?: string;
|
|
126
|
+
/** `true` when the file exceeded `maxBytes` and `content` is partial. */
|
|
127
|
+
truncated?: boolean;
|
|
128
|
+
/** Total file size in bytes before any truncation. */
|
|
129
|
+
sizeBytes?: number;
|
|
130
|
+
}
|
|
131
|
+
/** Reads a single source file from the project's repo at `commitSha`. */
|
|
132
|
+
export declare const getAgenticRepoFile: ({ client, projectId, ...body }: GetAgenticRepoFileParams & {
|
|
133
|
+
client: MeticulousClient;
|
|
134
|
+
}) => Promise<GetAgenticRepoFileResponse>;
|
|
135
|
+
export interface SearchAgenticRepoCodeParams extends ProjectIdentifier, AgenticRepoLeaseRef {
|
|
136
|
+
commitSha: string;
|
|
137
|
+
pattern: string;
|
|
138
|
+
/** Restrict the search to these path prefixes. */
|
|
139
|
+
paths?: string[];
|
|
140
|
+
caseInsensitive?: boolean;
|
|
141
|
+
/** Lines of context to return around each match. */
|
|
142
|
+
contextLines?: number;
|
|
143
|
+
/** Hard cap on the number of matches returned. */
|
|
144
|
+
maxMatches?: number;
|
|
145
|
+
}
|
|
146
|
+
export interface AgenticRepoSearchMatch {
|
|
147
|
+
path: string;
|
|
148
|
+
lineNumber: number;
|
|
149
|
+
line: string;
|
|
150
|
+
before: string[];
|
|
151
|
+
after: string[];
|
|
152
|
+
}
|
|
153
|
+
export interface SearchAgenticRepoCodeResponse {
|
|
154
|
+
matches: AgenticRepoSearchMatch[];
|
|
155
|
+
/** `true` when `maxMatches` was reached and trailing matches were dropped. */
|
|
156
|
+
truncated: boolean;
|
|
157
|
+
}
|
|
158
|
+
/** Searches the project's repo (ripgrep) at `commitSha`. */
|
|
159
|
+
export declare const searchAgenticRepoCode: ({ client, projectId, ...body }: SearchAgenticRepoCodeParams & {
|
|
160
|
+
client: MeticulousClient;
|
|
161
|
+
}) => Promise<SearchAgenticRepoCodeResponse>;
|
|
162
|
+
export interface GetAgenticFileChangesParams extends ProjectIdentifier, AgenticRepoLeaseRef {
|
|
163
|
+
commitSha: string;
|
|
164
|
+
/** Repo-relative path of the file whose changes to return. */
|
|
165
|
+
path: string;
|
|
166
|
+
}
|
|
167
|
+
export interface GetAgenticFileChangesResponse {
|
|
168
|
+
/**
|
|
169
|
+
* The file's unified diff (base..head) as raw patch text, or `null` when no
|
|
170
|
+
* PR/diff is available or source access is disabled. Empty string when the
|
|
171
|
+
* file is unchanged.
|
|
172
|
+
*/
|
|
173
|
+
diff: string | null;
|
|
174
|
+
}
|
|
175
|
+
/**
|
|
176
|
+
* Returns how a single file changed in the PR under test (unified-diff hunks).
|
|
177
|
+
* The worker uses this to compute edit-coverage; the agent uses it to see what
|
|
178
|
+
* changed in a file it is about to exercise.
|
|
179
|
+
*/
|
|
180
|
+
export declare const getAgenticFileChanges: ({ client, projectId, ...body }: GetAgenticFileChangesParams & {
|
|
181
|
+
client: MeticulousClient;
|
|
182
|
+
}) => Promise<GetAgenticFileChangesResponse>;
|
|
183
|
+
export interface ListAgenticRepoTreeParams extends ProjectIdentifier, AgenticRepoLeaseRef {
|
|
184
|
+
commitSha: string;
|
|
185
|
+
/** Tree path inside the commit. Defaults to the repo root. */
|
|
186
|
+
path?: string;
|
|
187
|
+
/** When true, walks descendants recursively. */
|
|
188
|
+
recursive?: boolean;
|
|
189
|
+
/** Hard cap on the number of entries returned. */
|
|
190
|
+
maxEntries?: number;
|
|
191
|
+
}
|
|
192
|
+
export interface AgenticRepoTreeEntry {
|
|
193
|
+
type: "blob" | "tree" | "commit";
|
|
194
|
+
path: string;
|
|
195
|
+
/** Blob size in bytes; `null` for trees/submodules and blobless-mirror blobs. */
|
|
196
|
+
sizeBytes: number | null;
|
|
197
|
+
}
|
|
198
|
+
export interface ListAgenticRepoTreeResponse {
|
|
199
|
+
entries: AgenticRepoTreeEntry[];
|
|
200
|
+
/** `true` when `maxEntries` was reached and trailing entries were dropped. */
|
|
201
|
+
truncated: boolean;
|
|
202
|
+
}
|
|
203
|
+
/** Lists a tree in the project's repo at `commitSha`. */
|
|
204
|
+
export declare const listAgenticRepoTree: ({ client, projectId, ...body }: ListAgenticRepoTreeParams & {
|
|
205
|
+
client: MeticulousClient;
|
|
206
|
+
}) => Promise<ListAgenticRepoTreeResponse>;
|
|
207
|
+
export interface AcquireAgenticRepoLeaseParams extends ProjectIdentifier {
|
|
208
|
+
/** The agentic run id (workflow run id) the lease is keyed on. */
|
|
209
|
+
runId: string;
|
|
210
|
+
}
|
|
211
|
+
export interface AcquireAgenticRepoLeaseResponse {
|
|
212
|
+
leaseId: string;
|
|
213
|
+
podInstanceId?: string;
|
|
214
|
+
recommendedHeartbeatIntervalMs: number;
|
|
215
|
+
heartbeatTtlMs: number;
|
|
216
|
+
}
|
|
217
|
+
/**
|
|
218
|
+
* Acquires a durable repo-server lease for the whole agentic run and kicks off
|
|
219
|
+
* the mirror clone. Blocks only on the bounded pod-boot step; poll
|
|
220
|
+
* {@link getAgenticRepoLeaseStatus} for the clone. The caller must heartbeat
|
|
221
|
+
* (see {@link heartbeatAgenticRepoLease}) and release it
|
|
222
|
+
* ({@link releaseAgenticRepoLease}). Source access is a hard requirement, so this
|
|
223
|
+
* rejects (403) rather than returning an "unavailable" result when the
|
|
224
|
+
* `ALLOW_CODE_ACCESS` kill switch is off, the project disables source access, or
|
|
225
|
+
* the project isn't enrolled.
|
|
226
|
+
*/
|
|
227
|
+
export declare const acquireAgenticRepoLease: ({ client, projectId, ...body }: AcquireAgenticRepoLeaseParams & {
|
|
228
|
+
client: MeticulousClient;
|
|
229
|
+
}) => Promise<AcquireAgenticRepoLeaseResponse>;
|
|
230
|
+
export interface GetAgenticRepoLeaseStatusParams extends ProjectIdentifier {
|
|
231
|
+
/** Instance id of the lease-holding pod (from acquire), if any. */
|
|
232
|
+
podInstanceId?: string;
|
|
233
|
+
}
|
|
234
|
+
export interface AgenticRepoLeaseStatusResponse {
|
|
235
|
+
/** `true` when the pod is up and its git mirror has finished cloning. */
|
|
236
|
+
ready: boolean;
|
|
237
|
+
}
|
|
238
|
+
/**
|
|
239
|
+
* Returns whether the held lease's pod + git mirror are ready right now — a
|
|
240
|
+
* single point-in-time status query, not a wait. The caller drives its own poll
|
|
241
|
+
* loop (source reads simply retry a mirror that's still cloning).
|
|
242
|
+
*/
|
|
243
|
+
export declare const getAgenticRepoLeaseStatus: ({ client, projectId, podInstanceId, }: GetAgenticRepoLeaseStatusParams & {
|
|
244
|
+
client: MeticulousClient;
|
|
245
|
+
}) => Promise<AgenticRepoLeaseStatusResponse>;
|
|
246
|
+
export interface HeartbeatAgenticRepoLeaseParams extends ProjectIdentifier {
|
|
247
|
+
leaseId: string;
|
|
248
|
+
podInstanceId?: string;
|
|
249
|
+
}
|
|
250
|
+
export interface HeartbeatAgenticRepoLeaseResponse {
|
|
251
|
+
ok: boolean;
|
|
252
|
+
expiresAt?: string;
|
|
253
|
+
}
|
|
254
|
+
/** Heartbeats the held lease to keep it alive for the run's lifetime. */
|
|
255
|
+
export declare const heartbeatAgenticRepoLease: ({ client, projectId, ...body }: HeartbeatAgenticRepoLeaseParams & {
|
|
256
|
+
client: MeticulousClient;
|
|
257
|
+
}) => Promise<HeartbeatAgenticRepoLeaseResponse>;
|
|
258
|
+
export interface ReleaseAgenticRepoLeaseParams extends ProjectIdentifier {
|
|
259
|
+
leaseId: string;
|
|
260
|
+
podInstanceId?: string;
|
|
261
|
+
}
|
|
262
|
+
export interface ReleaseAgenticRepoLeaseResponse {
|
|
263
|
+
released: boolean;
|
|
264
|
+
}
|
|
265
|
+
/** Releases the held lease at the end of the run (best-effort). */
|
|
266
|
+
export declare const releaseAgenticRepoLease: ({ client, projectId, ...body }: ReleaseAgenticRepoLeaseParams & {
|
|
267
|
+
client: MeticulousClient;
|
|
268
|
+
}) => Promise<ReleaseAgenticRepoLeaseResponse>;
|
|
269
|
+
//# sourceMappingURL=agentic-session-generation.api.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"agentic-session-generation.api.d.ts","sourceRoot":"","sources":["../../src/api/agentic-session-generation.api.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AAC9D,OAAO,KAAK,EACV,oBAAoB,EACpB,iBAAiB,EAClB,MAAM,2BAA2B,CAAC;AAGnC,MAAM,WAAW,sCAAuC,SAAQ,iBAAiB;IAC/E,IAAI,EAAE,MAAM,CAAC;CACd;AAED,MAAM,WAAW,wCAAwC;IACvD,SAAS,EAAE,MAAM,CAAC;IAClB,+EAA+E;IAC/E,cAAc,EAAE,MAAM,CAAC;CACxB;AAED,MAAM,WAAW,sCAAuC,SAAQ,iBAAiB;IAC/E,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,MAAM,CAAC;IAClB,0EAA0E;IAC1E,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,aAAa,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACnC,YAAY,CAAC,EAAE,oBAAoB,EAAE,GAAG,SAAS,CAAC;IAClD,4BAA4B,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CACnD;AAED,MAAM,WAAW,wCAAwC;IACvD,sEAAsE;IACtE,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,eAAO,MAAM,gCAAgC,mCAI1C,sCAAsC,GAAG;IAC1C,MAAM,EAAE,gBAAgB,CAAC;CAC1B,KAAG,OAAO,CAAC,wCAAwC,CAUnD,CAAC;AAEF,eAAO,MAAM,gCAAgC,mCAI1C,sCAAsC,GAAG;IAC1C,MAAM,EAAE,gBAAgB,CAAC;CAC1B,KAAG,OAAO,CAAC,wCAAwC,CAMnD,CAAC;AAEF,MAAM,MAAM,2BAA2B,GAAG,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aAAa,CAAC,EAAE,MAAM,CAAC;CACxB;AAED,MAAM,WAAW,iCAAiC;IAChD,EAAE,EAAE,OAAO,CAAC;IACZ,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,yEAAyE;AACzE,eAAO,MAAM,yBAAyB,mCAInC,+BAA+B,GAAG;IACnC,MAAM,EAAE,gBAAgB,CAAC;CAC1B,KAAG,OAAO,CAAC,iCAAiC,CAU5C,CAAC;AAEF,MAAM,WAAW,6BAA8B,SAAQ,iBAAiB;IACtE,OAAO,EAAE,MAAM,CAAC;IAChB,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB;AAED,MAAM,WAAW,+BAA+B;IAC9C,QAAQ,EAAE,OAAO,CAAC;CACnB;AAED,mEAAmE;AACnE,eAAO,MAAM,uBAAuB,mCAIjC,6BAA6B,GAAG;IACjC,MAAM,EAAE,gBAAgB,CAAC;CAC1B,KAAG,OAAO,CAAC,+BAA+B,CAU1C,CAAC"}
|
|
@@ -0,0 +1,119 @@
|
|
|
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]="c00ccb33-c8d0-54ef-b38a-e80d456fea8c")}catch(e){}}();
|
|
3
|
+
|
|
4
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
+
exports.releaseAgenticRepoLease = exports.heartbeatAgenticRepoLease = exports.getAgenticRepoLeaseStatus = exports.acquireAgenticRepoLease = exports.listAgenticRepoTree = exports.getAgenticFileChanges = exports.searchAgenticRepoCode = exports.getAgenticRepoFile = exports.getAgenticChangedFiles = exports.reportAgenticRunResult = exports.completeAgenticSessionGeneration = exports.requestAgenticInstructionsUpload = void 0;
|
|
6
|
+
const project_deployments_api_1 = require("./project-deployments.api");
|
|
7
|
+
const requestAgenticInstructionsUpload = async ({ client, projectId, ...body }) => {
|
|
8
|
+
const { data } = await client.post("agentic-session-generation/request-instructions-upload", body, (0, project_deployments_api_1.projectIdQuery)(projectId));
|
|
9
|
+
return data;
|
|
10
|
+
};
|
|
11
|
+
exports.requestAgenticInstructionsUpload = requestAgenticInstructionsUpload;
|
|
12
|
+
const completeAgenticSessionGeneration = async ({ client, projectId, ...body }) => {
|
|
13
|
+
const { data } = await client.post("agentic-session-generation/launch", body, (0, project_deployments_api_1.projectIdQuery)(projectId));
|
|
14
|
+
return data;
|
|
15
|
+
};
|
|
16
|
+
exports.completeAgenticSessionGeneration = completeAgenticSessionGeneration;
|
|
17
|
+
const reportAgenticRunResult = async ({ client, projectId, ...body }) => {
|
|
18
|
+
const { data } = await client.post("agentic-session-generation/result", body, (0, project_deployments_api_1.projectIdQuery)(projectId));
|
|
19
|
+
return data;
|
|
20
|
+
};
|
|
21
|
+
exports.reportAgenticRunResult = reportAgenticRunResult;
|
|
22
|
+
/**
|
|
23
|
+
* Lists the files the PR under test touched. Served cap-free off the project's
|
|
24
|
+
* repo-server mirror where possible, falling back to the hosting provider. When
|
|
25
|
+
* `runId` is supplied the mirror read borrows the worker's durable run lease (a
|
|
26
|
+
* warm pod) instead of acquiring a fresh short-lived one; a missing/stale lease
|
|
27
|
+
* falls back to the leaseless path server-side.
|
|
28
|
+
*/
|
|
29
|
+
const getAgenticChangedFiles = async ({ client, projectId, commitSha, runId, }) => {
|
|
30
|
+
const { data } = await client.get("agentic-session-generation/changed-files", {
|
|
31
|
+
params: {
|
|
32
|
+
...(projectId ? { projectId } : {}),
|
|
33
|
+
commitSha,
|
|
34
|
+
...(runId ? { runId } : {}),
|
|
35
|
+
},
|
|
36
|
+
});
|
|
37
|
+
return data;
|
|
38
|
+
};
|
|
39
|
+
exports.getAgenticChangedFiles = getAgenticChangedFiles;
|
|
40
|
+
/** Reads a single source file from the project's repo at `commitSha`. */
|
|
41
|
+
const getAgenticRepoFile = async ({ client, projectId, ...body }) => {
|
|
42
|
+
const { data } = await client.post("agentic-session-generation/repo/file", body, (0, project_deployments_api_1.projectIdQuery)(projectId));
|
|
43
|
+
return data;
|
|
44
|
+
};
|
|
45
|
+
exports.getAgenticRepoFile = getAgenticRepoFile;
|
|
46
|
+
/** Searches the project's repo (ripgrep) at `commitSha`. */
|
|
47
|
+
const searchAgenticRepoCode = async ({ client, projectId, ...body }) => {
|
|
48
|
+
const { data } = await client.post("agentic-session-generation/repo/search", body, (0, project_deployments_api_1.projectIdQuery)(projectId));
|
|
49
|
+
return data;
|
|
50
|
+
};
|
|
51
|
+
exports.searchAgenticRepoCode = searchAgenticRepoCode;
|
|
52
|
+
/**
|
|
53
|
+
* Returns how a single file changed in the PR under test (unified-diff hunks).
|
|
54
|
+
* The worker uses this to compute edit-coverage; the agent uses it to see what
|
|
55
|
+
* changed in a file it is about to exercise.
|
|
56
|
+
*/
|
|
57
|
+
const getAgenticFileChanges = async ({ client, projectId, ...body }) => {
|
|
58
|
+
const { data } = await client.post("agentic-session-generation/repo/file-changes", body, (0, project_deployments_api_1.projectIdQuery)(projectId));
|
|
59
|
+
return data;
|
|
60
|
+
};
|
|
61
|
+
exports.getAgenticFileChanges = getAgenticFileChanges;
|
|
62
|
+
/** Lists a tree in the project's repo at `commitSha`. */
|
|
63
|
+
const listAgenticRepoTree = async ({ client, projectId, ...body }) => {
|
|
64
|
+
const { data } = await client.post("agentic-session-generation/repo/ls-tree", body, (0, project_deployments_api_1.projectIdQuery)(projectId));
|
|
65
|
+
return data;
|
|
66
|
+
};
|
|
67
|
+
exports.listAgenticRepoTree = listAgenticRepoTree;
|
|
68
|
+
/**
|
|
69
|
+
* Acquires a durable repo-server lease for the whole agentic run and kicks off
|
|
70
|
+
* the mirror clone. Blocks only on the bounded pod-boot step; poll
|
|
71
|
+
* {@link getAgenticRepoLeaseStatus} for the clone. The caller must heartbeat
|
|
72
|
+
* (see {@link heartbeatAgenticRepoLease}) and release it
|
|
73
|
+
* ({@link releaseAgenticRepoLease}). Source access is a hard requirement, so this
|
|
74
|
+
* rejects (403) rather than returning an "unavailable" result when the
|
|
75
|
+
* `ALLOW_CODE_ACCESS` kill switch is off, the project disables source access, or
|
|
76
|
+
* the project isn't enrolled.
|
|
77
|
+
*/
|
|
78
|
+
const acquireAgenticRepoLease = async ({ client, projectId, ...body }) => {
|
|
79
|
+
const { data } = await client.post("agentic-session-generation/repo/lease/acquire", body, {
|
|
80
|
+
...(0, project_deployments_api_1.projectIdQuery)(projectId),
|
|
81
|
+
// The acquire endpoint blocks server-side up to ~6 min bringing a cold pod
|
|
82
|
+
// up (backend REPO_SERVER_ACQUIRE_REQUEST_TIMEOUT_MS). Wait that out in a
|
|
83
|
+
// single attempt — with a little headroom so the server's own response
|
|
84
|
+
// lands first — rather than aborting at the client's 60s default and
|
|
85
|
+
// retrying, which fires several redundant bring-ups.
|
|
86
|
+
timeout: 6.5 * 60 * 1000,
|
|
87
|
+
});
|
|
88
|
+
return data;
|
|
89
|
+
};
|
|
90
|
+
exports.acquireAgenticRepoLease = acquireAgenticRepoLease;
|
|
91
|
+
/**
|
|
92
|
+
* Returns whether the held lease's pod + git mirror are ready right now — a
|
|
93
|
+
* single point-in-time status query, not a wait. The caller drives its own poll
|
|
94
|
+
* loop (source reads simply retry a mirror that's still cloning).
|
|
95
|
+
*/
|
|
96
|
+
const getAgenticRepoLeaseStatus = async ({ client, projectId, podInstanceId, }) => {
|
|
97
|
+
const { data } = await client.get("agentic-session-generation/repo/lease/status", {
|
|
98
|
+
params: {
|
|
99
|
+
...(projectId ? { projectId } : {}),
|
|
100
|
+
...(podInstanceId ? { podInstanceId } : {}),
|
|
101
|
+
},
|
|
102
|
+
});
|
|
103
|
+
return data;
|
|
104
|
+
};
|
|
105
|
+
exports.getAgenticRepoLeaseStatus = getAgenticRepoLeaseStatus;
|
|
106
|
+
/** Heartbeats the held lease to keep it alive for the run's lifetime. */
|
|
107
|
+
const heartbeatAgenticRepoLease = async ({ client, projectId, ...body }) => {
|
|
108
|
+
const { data } = await client.post("agentic-session-generation/repo/lease/heartbeat", body, (0, project_deployments_api_1.projectIdQuery)(projectId));
|
|
109
|
+
return data;
|
|
110
|
+
};
|
|
111
|
+
exports.heartbeatAgenticRepoLease = heartbeatAgenticRepoLease;
|
|
112
|
+
/** Releases the held lease at the end of the run (best-effort). */
|
|
113
|
+
const releaseAgenticRepoLease = async ({ client, projectId, ...body }) => {
|
|
114
|
+
const { data } = await client.post("agentic-session-generation/repo/lease/release", body, (0, project_deployments_api_1.projectIdQuery)(projectId));
|
|
115
|
+
return data;
|
|
116
|
+
};
|
|
117
|
+
exports.releaseAgenticRepoLease = releaseAgenticRepoLease;
|
|
118
|
+
//# sourceMappingURL=agentic-session-generation.api.js.map
|
|
119
|
+
//# debugId=c00ccb33-c8d0-54ef-b38a-e80d456fea8c
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"agentic-session-generation.api.js","sources":["../../src/api/agentic-session-generation.api.ts"],"sourceRoot":"","names":[],"mappings":";;;;;AAKA,uEAA2D;AA4BpD,MAAM,gCAAgC,GAAG,KAAK,EAAE,EACrD,MAAM,EACN,SAAS,EACT,GAAG,IAAI,EAGR,EAAqD,EAAE;IACtD,MAAM,EAAE,IAAI,EAAE,GAAG,MAAM,MAAM,CAAC,IAAI,CAIhC,wDAAwD,EACxD,IAAI,EACJ,IAAA,wCAAc,EAAC,SAAS,CAAC,CAC1B,CAAC;IACF,OAAO,IAAI,CAAC;AACd,CAAC,CAAC;AAhBW,QAAA,gCAAgC,oCAgB3C;AAEK,MAAM,gCAAgC,GAAG,KAAK,EAAE,EACrD,MAAM,EACN,SAAS,EACT,GAAG,IAAI,EAGR,EAAqD,EAAE;IACtD,MAAM,EAAE,IAAI,EAAE,GAAG,MAAM,MAAM,CAAC,IAAI,CAGhC,mCAAmC,EAAE,IAAI,EAAE,IAAA,wCAAc,EAAC,SAAS,CAAC,CAAC,CAAC;IACxE,OAAO,IAAI,CAAC;AACd,CAAC,CAAC;AAZW,QAAA,gCAAgC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AAA,uBAAuB,2BAgBlC","debugId":"c00ccb33-c8d0-54ef-b38a-e80d456fea8c"}
|
|
@@ -103,6 +103,16 @@ export interface ContainerEnvVariable {
|
|
|
103
103
|
name: string;
|
|
104
104
|
value: string;
|
|
105
105
|
}
|
|
106
|
+
/**
|
|
107
|
+
* Builds a `RequestConfig` that puts `projectId` (if present) into the query
|
|
108
|
+
* string. Every project-deployment endpoint reads `projectId` from
|
|
109
|
+
* `@Query("projectId")` on the backend, not from the body.
|
|
110
|
+
*/
|
|
111
|
+
export declare const projectIdQuery: (projectId: string | undefined) => {
|
|
112
|
+
params: {
|
|
113
|
+
projectId: string;
|
|
114
|
+
};
|
|
115
|
+
} | undefined;
|
|
106
116
|
/**
|
|
107
117
|
* Identifies (or overrides) a project for OAuth callers of the `agent/*`
|
|
108
118
|
* namespace. Unlike {@link ProjectIdentifier}, `project` is resolved flexibly
|
|
@@ -308,6 +318,17 @@ export interface AgentTriggerTestRunParams extends AgentProjectOverride {
|
|
|
308
318
|
* auto-selected golden set.
|
|
309
319
|
*/
|
|
310
320
|
sessionIds?: string[];
|
|
321
|
+
/**
|
|
322
|
+
* Caps each session replay at this many seconds; sessions longer than the
|
|
323
|
+
* cap are trimmed. Only applied when `sessionIds` is also set — the backend
|
|
324
|
+
* rejects it otherwise. Intended for newly custom-recorded sessions: the cap
|
|
325
|
+
* is applied to both the head run and any fresh base run created to compare
|
|
326
|
+
* against, but a pre-existing base run reused for the comparison keeps
|
|
327
|
+
* whatever cap it originally ran under. Defaults to 300 seconds (5 minutes)
|
|
328
|
+
* when omitted; pass `null` for unlimited. Wins over any project-configured
|
|
329
|
+
* cap.
|
|
330
|
+
*/
|
|
331
|
+
maxDurationSeconds?: number | null;
|
|
311
332
|
}
|
|
312
333
|
export interface AgentTriggerTestRunResponse {
|
|
313
334
|
testRun?: TestRun;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"project-deployments.api.d.ts","sourceRoot":"","sources":["../../src/api/project-deployments.api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S,CAAC;IAClD,4BAA4B,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CACnD;AAED,MAAM,WAAW,+BAA+B;IAC9C,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,YAAY,CAAC,EAAE,OAAO,CAAC;CACxB;AAED,MAAM,WAAW,8BAA8B;IAC7C,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,MAAM,CAAC;IACjB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,YAAY,CAAC,EAAE,oBAAoB,EAAE,CAAC;IACtC,4BAA4B,CAAC,EAAE,MAAM,CAAC;CACvC;AAED,MAAM,WAAW,oBAAoB;IACnC,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;CACf;
|
|
1
|
+
{"version":3,"file":"project-deployments.api.d.ts","sourceRoot":"","sources":["../../src/api/project-deployments.api.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,mBAAmB,EACnB,qBAAqB,EACrB,0BAA0B,EAC1B,aAAa,EACb,OAAO,EACR,MAAM,uBAAuB,CAAC;AAC/B,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AAE9D;;;;;GAKG;AACH,MAAM,WAAW,iBAAiB;IAChC,SAAS,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CAChC;AAED,MAAM,WAAW,wBAAyB,SAAQ,iBAAiB;IACjE,IAAI,EAAE,MAAM,CAAC;CACd;AAED,MAAM,WAAW,0BAA0B;IACzC,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,WAAW,iCAAkC,SAAQ,iBAAiB;IAC1E,WAAW,EAAE,qBAAqB,CAAC;CACpC;AAED,MAAM,WAAW,mCAAmC;IAClD,QAAQ,EAAE,MAAM,CAAC;IACjB,WAAW,EAAE,MAAM,CAAC;IAC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,MAAM,uBAAuB,iCAIjC,6BAA6B,GAAG;IACjC,MAAM,EAAE,gBAAgB,CAAC;CAC1B,KAAG,OAAO,CAAC,+BAA+B,CAO1C,CAAC;AAEF,MAAM,WAAW,yBAA0B,SAAQ,oBAAoB;IACrE;;;OAGG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB;;;OAGG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,0EAA0E;IAC1E,OAAO,EAAE,MAAM,CAAC;IAChB;;;;OAIG;IACH,UAAU,CAAC,EAAE,MAAM,EAAE,CAAC;IACtB;;;;;;;;;OASG;IACH,kBAAkB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CACpC;AAED,MAAM,WAAW,2BAA2B;IAC1C,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,0EAA0E;IAC1E,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,eAAO,MAAM,mBAAmB,iCAI7B,yBAAyB,GAAG;IAC7B,MAAM,EAAE,gBAAgB,CAAC;CAC1B,KAAG,OAAO,CAAC,2BAA2B,CAOtC,CAAC"}
|
|
@@ -1,14 +1,15 @@
|
|
|
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]="9f8c9a35-6467-5f16-8358-2b21415ba66a")}catch(e){}}();
|
|
3
3
|
|
|
4
4
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
-
exports.agentTriggerTestRun = exports.agentUploadGitDiffBuild = exports.agentUploadContainerBuild = exports.agentUploadAssetBuild = exports.getContainerDeployment = exports.downloadProjectDeployment = exports.completeAssetChunkUpload = exports.requestAssetChunkUpload = exports.triggerRunWithUploadedAssetChunks = exports.createRunWithUploadedAssetChunks = exports.completeContainerUpload = exports.completeAssetUpload = exports.triggerRunOnDeployment = exports.requestGitDiffUpload = exports.requestUploadPart = exports.requestMultipartAssetUpload = exports.requestAssetUpload = void 0;
|
|
5
|
+
exports.agentTriggerTestRun = exports.agentUploadGitDiffBuild = exports.agentUploadContainerBuild = exports.agentUploadAssetBuild = exports.getContainerDeployment = exports.downloadProjectDeployment = exports.completeAssetChunkUpload = exports.requestAssetChunkUpload = exports.triggerRunWithUploadedAssetChunks = exports.createRunWithUploadedAssetChunks = exports.completeContainerUpload = exports.completeAssetUpload = exports.triggerRunOnDeployment = exports.requestGitDiffUpload = exports.requestUploadPart = exports.requestMultipartAssetUpload = exports.requestAssetUpload = exports.projectIdQuery = void 0;
|
|
6
6
|
/**
|
|
7
7
|
* Builds a `RequestConfig` that puts `projectId` (if present) into the query
|
|
8
8
|
* string. Every project-deployment endpoint reads `projectId` from
|
|
9
9
|
* `@Query("projectId")` on the backend, not from the body.
|
|
10
10
|
*/
|
|
11
11
|
const projectIdQuery = (projectId) => projectId ? { params: { projectId } } : undefined;
|
|
12
|
+
exports.projectIdQuery = projectIdQuery;
|
|
12
13
|
/**
|
|
13
14
|
* Fails loudly if a caller passes the removed `projectId` field. Silently
|
|
14
15
|
* ignoring it would fall back to the stored default project — potentially the
|
|
@@ -28,57 +29,57 @@ const rejectLegacyProjectId = (body) => {
|
|
|
28
29
|
*/
|
|
29
30
|
const projectQuery = (project) => project ? { params: { project } } : undefined;
|
|
30
31
|
const requestAssetUpload = async ({ client, projectId, ...body }) => {
|
|
31
|
-
const { data } = await client.post("project-deployments/request-asset-upload", body, projectIdQuery(projectId));
|
|
32
|
+
const { data } = await client.post("project-deployments/request-asset-upload", body, (0, exports.projectIdQuery)(projectId));
|
|
32
33
|
return data;
|
|
33
34
|
};
|
|
34
35
|
exports.requestAssetUpload = requestAssetUpload;
|
|
35
36
|
const requestMultipartAssetUpload = async ({ client, projectId, ...body }) => {
|
|
36
|
-
const { data } = await client.post("project-deployments/request-multipart-asset-upload", body, projectIdQuery(projectId));
|
|
37
|
+
const { data } = await client.post("project-deployments/request-multipart-asset-upload", body, (0, exports.projectIdQuery)(projectId));
|
|
37
38
|
return data;
|
|
38
39
|
};
|
|
39
40
|
exports.requestMultipartAssetUpload = requestMultipartAssetUpload;
|
|
40
41
|
const requestUploadPart = async ({ client, projectId, ...body }) => {
|
|
41
|
-
const { data } = await client.post("project-deployments/request-upload-part", body, projectIdQuery(projectId));
|
|
42
|
+
const { data } = await client.post("project-deployments/request-upload-part", body, (0, exports.projectIdQuery)(projectId));
|
|
42
43
|
return data;
|
|
43
44
|
};
|
|
44
45
|
exports.requestUploadPart = requestUploadPart;
|
|
45
46
|
const requestGitDiffUpload = async ({ client, projectId, ...body }) => {
|
|
46
|
-
const { data } = await client.post("project-deployments/request-git-diff-upload", body, projectIdQuery(projectId));
|
|
47
|
+
const { data } = await client.post("project-deployments/request-git-diff-upload", body, (0, exports.projectIdQuery)(projectId));
|
|
47
48
|
return data;
|
|
48
49
|
};
|
|
49
50
|
exports.requestGitDiffUpload = requestGitDiffUpload;
|
|
50
51
|
const triggerRunOnDeployment = async ({ client, projectId, ...body }) => {
|
|
51
|
-
const { data } = await client.post("project-deployments/trigger-run", body, projectIdQuery(projectId));
|
|
52
|
+
const { data } = await client.post("project-deployments/trigger-run", body, (0, exports.projectIdQuery)(projectId));
|
|
52
53
|
return data;
|
|
53
54
|
};
|
|
54
55
|
exports.triggerRunOnDeployment = triggerRunOnDeployment;
|
|
55
56
|
const completeAssetUpload = async ({ client, projectId, ...body }) => {
|
|
56
|
-
const { data } = await client.post("project-deployments/complete-asset-upload-and-maybe-trigger-run", body, projectIdQuery(projectId));
|
|
57
|
+
const { data } = await client.post("project-deployments/complete-asset-upload-and-maybe-trigger-run", body, (0, exports.projectIdQuery)(projectId));
|
|
57
58
|
return data;
|
|
58
59
|
};
|
|
59
60
|
exports.completeAssetUpload = completeAssetUpload;
|
|
60
61
|
const completeContainerUpload = async ({ client, projectId, ...body }) => {
|
|
61
|
-
const { data } = await client.post("project-deployments/complete-container-upload", body, projectIdQuery(projectId));
|
|
62
|
+
const { data } = await client.post("project-deployments/complete-container-upload", body, (0, exports.projectIdQuery)(projectId));
|
|
62
63
|
return data;
|
|
63
64
|
};
|
|
64
65
|
exports.completeContainerUpload = completeContainerUpload;
|
|
65
66
|
const createRunWithUploadedAssetChunks = async ({ client, projectId, ...body }) => {
|
|
66
|
-
const { data } = await client.post("project-deployments/create-run-with-uploaded-asset-chunks", body, projectIdQuery(projectId));
|
|
67
|
+
const { data } = await client.post("project-deployments/create-run-with-uploaded-asset-chunks", body, (0, exports.projectIdQuery)(projectId));
|
|
67
68
|
return data;
|
|
68
69
|
};
|
|
69
70
|
exports.createRunWithUploadedAssetChunks = createRunWithUploadedAssetChunks;
|
|
70
71
|
const triggerRunWithUploadedAssetChunks = async ({ client, projectId, ...body }) => {
|
|
71
|
-
const { data } = await client.post("project-deployments/trigger-run-with-uploaded-asset-chunks", body, projectIdQuery(projectId));
|
|
72
|
+
const { data } = await client.post("project-deployments/trigger-run-with-uploaded-asset-chunks", body, (0, exports.projectIdQuery)(projectId));
|
|
72
73
|
return data;
|
|
73
74
|
};
|
|
74
75
|
exports.triggerRunWithUploadedAssetChunks = triggerRunWithUploadedAssetChunks;
|
|
75
76
|
const requestAssetChunkUpload = async ({ client, projectId, ...body }) => {
|
|
76
|
-
const { data } = await client.post("project-deployments/request-asset-chunk-upload", body, projectIdQuery(projectId));
|
|
77
|
+
const { data } = await client.post("project-deployments/request-asset-chunk-upload", body, (0, exports.projectIdQuery)(projectId));
|
|
77
78
|
return data;
|
|
78
79
|
};
|
|
79
80
|
exports.requestAssetChunkUpload = requestAssetChunkUpload;
|
|
80
81
|
const completeAssetChunkUpload = async ({ client, projectId, ...body }) => {
|
|
81
|
-
const { data } = await client.post("project-deployments/complete-asset-chunk-upload", body, projectIdQuery(projectId));
|
|
82
|
+
const { data } = await client.post("project-deployments/complete-asset-chunk-upload", body, (0, exports.projectIdQuery)(projectId));
|
|
82
83
|
return data;
|
|
83
84
|
};
|
|
84
85
|
exports.completeAssetChunkUpload = completeAssetChunkUpload;
|
|
@@ -117,4 +118,4 @@ const agentTriggerTestRun = async ({ client, project, ...body }) => {
|
|
|
117
118
|
};
|
|
118
119
|
exports.agentTriggerTestRun = agentTriggerTestRun;
|
|
119
120
|
//# sourceMappingURL=project-deployments.api.js.map
|
|
120
|
-
//# debugId=
|
|
121
|
+
//# debugId=9f8c9a35-6467-5f16-8358-2b21415ba66a
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"project-deployments.api.js","sources":["../../src/api/project-deployments.api.ts"],"sourceRoot":"","names":[],"mappings":";;;;;AA2HA;;;;GAIG;
|
|
1
|
+
{"version":3,"file":"project-deployments.api.js","sources":["../../src/api/project-deployments.api.ts"],"sourceRoot":"","names":[],"mappings":";;;;;AA2HA;;;;GAIG;AACI,MAAM,cAAc,GAAG,CAC5B,SAA6B,EACkB,EAAE,CACjD,SAAS,CAAC,CAAC,CAAC,EAAE,MAAM,EAAE,EAAE,SAAS,EAAE,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC;AAHvC,QAAA,cAAc,kBAGyB;AAuBpD;;;;GAIG;AACH,MAAM,qBAAqB,GAAG,CAAC,IAAY,EAAQ,EAAE;IACnD,IAAI,WAAW,IAAI,IAAI,EAAE,CAAC;QACxB,MAAM,IAAI,KAAK,CACb,yEAAyE;YACvE,qEAAqE;YACrE,gDAAgD,CACnD,CAAC;IACJ,CAAC;AACH,CAAC,CAAC;AAEF;;;;GAIG;AACH,MAAM,YAAY,GAAG,CACnB,OAA2B,EACkB,EAAE,CAC/C,OAAO,CAAC,CAAC,CAAC,EAAE,MAAM,EAAE,EAAE,OAAO,EAAE,EAAE,CAAC,CAAC,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AuB,2BAalC;AAwCK,MAAM,mBAAmB,GAAG,KAAK,EAAE,EACxC,MAAM,EACN,OAAO,EACP,GAAG,IAAI,EAGR,EAAwC,EAAE;IACzC,qBAAqB,CAAC,IAAI,CAAC,CAAC;IAC5B,MAAM,EAAE,IAAI,EAAE,GAAG,MAAM,MAAM,CAAC,IAAI,CAGhC,wBAAwB,EAAE,IAAI,EAAE,YAAY,CAAC,OAAO,CAAC,CAAC,CAAC;IACzD,OAAO,IAAI,CAAC;AACd,CAAC,CAAC;AAbW,QAAA,mBAAmB,uBAa9B","debugId":"9f8c9a35-6467-5f16-8358-2b21415ba66a"}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { AgentFeature, StructuredSessionDataResponse, StructuredSessionSummary, DiffsSummaryOptions, DiffsSummaryScreenshot, DiffsSummaryReplayDiff, DiffsSummaryResponse, DiffsSummaryCountsResponse, DiffDecisionState, ScreenshotDomDiffResponse, ScreenshotUrlsResponse, CompactRange, FileWithCompactRanges, TestRunForCommitResponse, TestRunJsCoverageResponse, TestRunJsCoverageOptions, TestRunJsCoverageResponseV2, TestRunCoverageFile, ReplayJsCoverageResponse, CoverageFileDiff, ReplayDiffJsCoverageDiffResponse, TimelineDiffEntry, TimelineDiffResponse, getStructuredSessionData, getTestRunDiffsSummary, getTestRunDiffsSummaryCounts, getScreenshotDomDiff, getTestRunForCommit, getTestRunJsCoverage, getReplayJsCoverage, getReplayDiffJsCoverage, getScreenshotUrls, getTimelineDiff, trackAgentFeatureUsage, } from "./api/agent.api";
|
|
1
|
+
export { AgentFeature, StructuredSessionDataResponse, StructuredSessionSummary, DiffsSummaryOptions, DiffsSummaryScreenshot, DiffsSummaryReplayDiff, DiffsSummaryResponse, DiffsSummaryCountsResponse, DiffDecisionState, ScreenshotDomDiffResponse, ScreenshotUrlsResponse, CompactRange, FileWithCompactRanges, TestRunForCommitResponse, TestRunJsCoverageResponse, TestRunJsCoverageOptions, TestRunJsCoverageResponseV2, TestRunCoverageFile, shouldDefaultToExecutedRanges, ProjectJsCoverageOptions, ProjectJsCoverageResponse, ReplayJsCoverageResponse, CoverageFileDiff, ReplayDiffJsCoverageDiffResponse, TimelineDiffEntry, TimelineDiffResponse, getStructuredSessionData, getTestRunDiffsSummary, getTestRunDiffsSummaryCounts, getScreenshotDomDiff, getTestRunForCommit, getTestRunJsCoverage, getProjectJsCoverage, getReplayJsCoverage, getReplayDiffJsCoverage, getScreenshotUrls, getTimelineDiff, getSessions, SessionsResponse, SessionListItem, SessionStatus, SessionAbandonmentReason, trackAgentFeatureUsage, } from "./api/agent.api";
|
|
2
2
|
export * from "./api/github-cloud-replay.api";
|
|
3
3
|
export { WhoamiOrganization, WhoamiResponse, getWhoami, OAuthProject, OAuthProjectsResponse, getOAuthProjects, OAuthDefaultProjectResponse, getOAuthDefaultProject, setOAuthDefaultProject, clearOAuthDefaultProject, } from "./api/oauth.api";
|
|
4
4
|
export { GetRepoUrlOptions, RepoUrlResponse, getProject, getRepoUrl, GetSourceArchiveUrlOptions, SourceArchiveUrlResponse, getSourceArchiveUrl, RequestSourceCodeUploadUrlParams, RequestSourceCodeUploadUrlResponse, requestSourceCodeUploadUrl, } from "./api/project.api";
|
|
@@ -12,6 +12,7 @@ export { IN_PROGRESS_TEST_RUN_STATUS } from "./api/test-run.constants";
|
|
|
12
12
|
export { getApiToken, getAuthToken, readFileBasedToken, } from "./api-token.utils";
|
|
13
13
|
export { ClientOptions, createClient, createClientWithOAuth, isInteractiveContext, makeRequest, resolveApiTokenWithOAuth, } from "./client";
|
|
14
14
|
export { performOAuthLogin } from "./oauth/oauth-login";
|
|
15
|
+
export { performDeviceLogin } from "./oauth/oauth-device-login";
|
|
15
16
|
export { getValidAccessToken } from "./oauth/oauth-refresh";
|
|
16
17
|
export { clearOAuthTokens, getStoredOAuthTokens, } from "./oauth/oauth-token-store";
|
|
17
18
|
export { resolveDefaultProjectId } from "./oauth/default-project";
|
|
@@ -22,6 +23,7 @@ export { getProxyAgent } from "./utils/get-proxy-agent";
|
|
|
22
23
|
export { PutFileToSignedUrlOptions, putFileToSignedUrl, } from "./utils/put-file-to-signed-url";
|
|
23
24
|
export { UploadError, isTransientUploadError, retryTransientUploadErrors, RetryTransientUploadErrorsOptions, } from "./utils/retry-transient-upload-errors";
|
|
24
25
|
export { ProjectIdentifier, AgentProjectOverride, RequestAssetUploadParams, RequestAssetUploadResponse, requestAssetUpload, requestMultipartAssetUpload, RequestMultipartAssetUploadResponse, RequestUploadPartParams, RequestUploadPartResponse, requestUploadPart, RequestGitDiffUploadParams, RequestGitDiffUploadResponse, requestGitDiffUpload, ChunkPathOverlap, CompleteAssetUploadParams, CompleteAssetUploadResponse, completeAssetUpload, CompleteContainerUploadParams, CompleteContainerUploadResponse, completeContainerUpload, MultiPartUploadInfo, ProjectAssetChunkReference, RequestedProjectAssetChunkReference, ProjectAssetChunkVersionLookup, CreateRunWithUploadedAssetChunksParams, CreateRunWithUploadedAssetChunksResponse, createRunWithUploadedAssetChunks, TriggerRunWithUploadedAssetChunksParams, triggerRunWithUploadedAssetChunks, RequestAssetChunkUploadParams, RequestAssetChunkUploadResponse, requestAssetChunkUpload, CompleteAssetChunkUploadParams, CompleteAssetChunkUploadResponse, completeAssetChunkUpload, downloadProjectDeployment, GetContainerDeploymentResponse, getContainerDeployment, ContainerEnvVariable, ProjectDeploymentSource, AgentUploadBuildResponse, AgentUploadAssetBuildParams, agentUploadAssetBuild, AgentUploadContainerBuildParams, agentUploadContainerBuild, AgentUploadGitDiffBuildParams, AgentUploadGitDiffBuildResponse, agentUploadGitDiffBuild, AgentTriggerTestRunParams, AgentTriggerTestRunResponse, agentTriggerTestRun, } from "./api/project-deployments.api";
|
|
26
|
+
export { RequestAgenticInstructionsUploadParams, RequestAgenticInstructionsUploadResponse, requestAgenticInstructionsUpload, CompleteAgenticSessionGenerationParams, CompleteAgenticSessionGenerationResponse, completeAgenticSessionGeneration, AgenticRunResultCaseOutcome, AgenticRunResultCase, AgenticRunCoverage, AgenticRunCoverageFile, ReportAgenticRunResultParams, ReportAgenticRunResultResponse, reportAgenticRunResult, GetAgenticChangedFilesParams, GetAgenticChangedFilesResponse, AgenticChangedFile, getAgenticChangedFiles, GetAgenticRepoFileParams, GetAgenticRepoFileResponse, getAgenticRepoFile, SearchAgenticRepoCodeParams, SearchAgenticRepoCodeResponse, AgenticRepoSearchMatch, searchAgenticRepoCode, GetAgenticFileChangesParams, GetAgenticFileChangesResponse, getAgenticFileChanges, ListAgenticRepoTreeParams, ListAgenticRepoTreeResponse, AgenticRepoTreeEntry, listAgenticRepoTree, AgenticRepoLeaseRef, AcquireAgenticRepoLeaseParams, AcquireAgenticRepoLeaseResponse, acquireAgenticRepoLease, GetAgenticRepoLeaseStatusParams, AgenticRepoLeaseStatusResponse, getAgenticRepoLeaseStatus, HeartbeatAgenticRepoLeaseParams, HeartbeatAgenticRepoLeaseResponse, heartbeatAgenticRepoLease, ReleaseAgenticRepoLeaseParams, ReleaseAgenticRepoLeaseResponse, releaseAgenticRepoLease, } from "./api/agentic-session-generation.api";
|
|
25
27
|
export { GetRegistryAuthResponse, getRegistryAuth } from "./api/registry.api";
|
|
26
28
|
export { isFetchError, maybeEnrichFetchError } from "./errors";
|
|
27
29
|
export { EditedFileWithLines, GetRelevantSessionsParams, GetRelevantSessionsResponse, RelevantSession, getRelevantSessions, } from "./api/local-changes.api";
|