@remixhq/core 0.1.2
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/LICENSE +21 -0
- package/README.md +15 -0
- package/dist/api.d.ts +494 -0
- package/dist/api.js +7 -0
- package/dist/auth.d.ts +27 -0
- package/dist/auth.js +15 -0
- package/dist/binding.d.ts +16 -0
- package/dist/binding.js +11 -0
- package/dist/chunk-2WGZS7CD.js +0 -0
- package/dist/chunk-34WDQCPF.js +242 -0
- package/dist/chunk-4OCNZHHR.js +0 -0
- package/dist/chunk-54CBEP2W.js +570 -0
- package/dist/chunk-55K5GHAZ.js +252 -0
- package/dist/chunk-5H5CZKGN.js +691 -0
- package/dist/chunk-5NTOJXEZ.js +223 -0
- package/dist/chunk-7WUKH3ZD.js +221 -0
- package/dist/chunk-AE2HPMUZ.js +80 -0
- package/dist/chunk-AEAOYVIL.js +200 -0
- package/dist/chunk-BJFCN2C3.js +46 -0
- package/dist/chunk-DCU3646I.js +12 -0
- package/dist/chunk-DEWAIK5X.js +11 -0
- package/dist/chunk-DRD6EVTT.js +447 -0
- package/dist/chunk-E4KAGBU7.js +134 -0
- package/dist/chunk-EF3677RE.js +93 -0
- package/dist/chunk-EVWDYCBL.js +223 -0
- package/dist/chunk-FAZUMWBS.js +93 -0
- package/dist/chunk-GC2MOT3U.js +12 -0
- package/dist/chunk-GFOBGYW4.js +252 -0
- package/dist/chunk-INDDXWAH.js +92 -0
- package/dist/chunk-K57ZFDGC.js +15 -0
- package/dist/chunk-NDA7EJJA.js +286 -0
- package/dist/chunk-NK2DA4X6.js +357 -0
- package/dist/chunk-OJMTW22J.js +286 -0
- package/dist/chunk-OMUDRPUI.js +195 -0
- package/dist/chunk-ONKKRS2C.js +239 -0
- package/dist/chunk-OWFBBWU7.js +196 -0
- package/dist/chunk-P7EM3N73.js +46 -0
- package/dist/chunk-PR5QKMHM.js +46 -0
- package/dist/chunk-RIP2MIZL.js +710 -0
- package/dist/chunk-TQHLFQY4.js +448 -0
- package/dist/chunk-TY3SSQQK.js +688 -0
- package/dist/chunk-UGKPOCN5.js +710 -0
- package/dist/chunk-VM3CGCNX.js +46 -0
- package/dist/chunk-XOQIADCH.js +223 -0
- package/dist/chunk-YZ34ICNN.js +17 -0
- package/dist/chunk-ZBMOGUSJ.js +17 -0
- package/dist/collab.d.ts +680 -0
- package/dist/collab.js +1917 -0
- package/dist/config.d.ts +22 -0
- package/dist/config.js +9 -0
- package/dist/errors.d.ts +21 -0
- package/dist/errors.js +12 -0
- package/dist/index.cjs +1269 -0
- package/dist/index.d.cts +482 -0
- package/dist/index.d.ts +6 -0
- package/dist/index.js +34 -0
- package/dist/repo.d.ts +66 -0
- package/dist/repo.js +62 -0
- package/dist/tokenProvider-BWTusyj4.d.ts +63 -0
- package/package.json +72 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Comerge
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
ADDED
package/dist/api.d.ts
ADDED
|
@@ -0,0 +1,494 @@
|
|
|
1
|
+
import { CoreConfig } from './config.js';
|
|
2
|
+
import { T as TokenProvider } from './tokenProvider-BWTusyj4.js';
|
|
3
|
+
import 'zod';
|
|
4
|
+
|
|
5
|
+
type Json = Record<string, unknown> | unknown[] | string | number | boolean | null;
|
|
6
|
+
type MergeRequestStatus = "open" | "approved" | "rejected" | "merged" | "closed";
|
|
7
|
+
type MergeRequest = {
|
|
8
|
+
id: string;
|
|
9
|
+
sourceAppId: string;
|
|
10
|
+
sourceCommitId: string;
|
|
11
|
+
sourceTipCommitId: string | null;
|
|
12
|
+
targetAppId: string;
|
|
13
|
+
targetCommitId: string | null;
|
|
14
|
+
status: MergeRequestStatus;
|
|
15
|
+
title: string | null;
|
|
16
|
+
description: string | null;
|
|
17
|
+
category: string | null;
|
|
18
|
+
tags: string[] | null;
|
|
19
|
+
createdBy: string;
|
|
20
|
+
reviewedBy: string | null;
|
|
21
|
+
mergedBy: string | null;
|
|
22
|
+
createdAt: string;
|
|
23
|
+
updatedAt: string;
|
|
24
|
+
mergedAt: string | null;
|
|
25
|
+
closedAt: string | null;
|
|
26
|
+
};
|
|
27
|
+
type MergeRequestReview = {
|
|
28
|
+
mergeRequest: MergeRequest;
|
|
29
|
+
prompts: Array<{
|
|
30
|
+
commitId: string;
|
|
31
|
+
messageId: string | null;
|
|
32
|
+
prompt: string | null;
|
|
33
|
+
}>;
|
|
34
|
+
changeSteps: Array<{
|
|
35
|
+
id: string;
|
|
36
|
+
appId: string;
|
|
37
|
+
threadId: string | null;
|
|
38
|
+
messageId: string | null;
|
|
39
|
+
commitId: string | null;
|
|
40
|
+
baseCommitHash: string | null;
|
|
41
|
+
headCommitHash: string | null;
|
|
42
|
+
changedFilesCount: number | null;
|
|
43
|
+
insertions: number | null;
|
|
44
|
+
deletions: number | null;
|
|
45
|
+
status: string | null;
|
|
46
|
+
statusError: string | null;
|
|
47
|
+
actor: {
|
|
48
|
+
type: string | null;
|
|
49
|
+
name: string | null;
|
|
50
|
+
version: string | null;
|
|
51
|
+
provider: string | null;
|
|
52
|
+
};
|
|
53
|
+
workspaceMetadata: Record<string, unknown> | null;
|
|
54
|
+
prompt: string | null;
|
|
55
|
+
diff: string;
|
|
56
|
+
createdAt: string;
|
|
57
|
+
}>;
|
|
58
|
+
unifiedDiff: string;
|
|
59
|
+
stats: {
|
|
60
|
+
changeStepCount: number;
|
|
61
|
+
changedFilesCount: number;
|
|
62
|
+
insertions: number;
|
|
63
|
+
deletions: number;
|
|
64
|
+
};
|
|
65
|
+
};
|
|
66
|
+
type AgentMemoryKind = "collab_turn" | "change_step" | "merge_request" | "reconcile";
|
|
67
|
+
type AgentMemoryItem = {
|
|
68
|
+
id: string;
|
|
69
|
+
kind: AgentMemoryKind;
|
|
70
|
+
appId: string;
|
|
71
|
+
threadId: string | null;
|
|
72
|
+
status: string | null;
|
|
73
|
+
actor: {
|
|
74
|
+
type: string | null;
|
|
75
|
+
name: string | null;
|
|
76
|
+
version: string | null;
|
|
77
|
+
provider: string | null;
|
|
78
|
+
};
|
|
79
|
+
lineage: {
|
|
80
|
+
commitId: string | null;
|
|
81
|
+
baseCommitHash: string | null;
|
|
82
|
+
headCommitHash: string | null;
|
|
83
|
+
mergeRequestId: string | null;
|
|
84
|
+
queueItemId: string | null;
|
|
85
|
+
repoFingerprint: string | null;
|
|
86
|
+
remoteUrl: string | null;
|
|
87
|
+
defaultBranch: string | null;
|
|
88
|
+
branch: string | null;
|
|
89
|
+
};
|
|
90
|
+
preview: Record<string, unknown>;
|
|
91
|
+
createdAt: string;
|
|
92
|
+
updatedAt: string;
|
|
93
|
+
};
|
|
94
|
+
type AgentMemorySummary = {
|
|
95
|
+
app: {
|
|
96
|
+
id: string;
|
|
97
|
+
threadId: string | null;
|
|
98
|
+
status: string | null;
|
|
99
|
+
headCommitId: string | null;
|
|
100
|
+
headCommitHash: string | null;
|
|
101
|
+
};
|
|
102
|
+
source: {
|
|
103
|
+
repoFingerprint: string | null;
|
|
104
|
+
remoteUrl: string | null;
|
|
105
|
+
defaultBranch: string | null;
|
|
106
|
+
sourceType: string | null;
|
|
107
|
+
updatedAt: string;
|
|
108
|
+
} | null;
|
|
109
|
+
counts: {
|
|
110
|
+
collabTurnCount: number;
|
|
111
|
+
changeStepCount: number;
|
|
112
|
+
mergeRequestCount: number;
|
|
113
|
+
openMergeRequestCount: number;
|
|
114
|
+
reconcileCount: number;
|
|
115
|
+
pendingChangeStepCount: number;
|
|
116
|
+
failedChangeStepCount: number;
|
|
117
|
+
};
|
|
118
|
+
latestReconcile: AgentMemoryItem | null;
|
|
119
|
+
recent: {
|
|
120
|
+
collabTurns: AgentMemoryItem[];
|
|
121
|
+
changeSteps: AgentMemoryItem[];
|
|
122
|
+
mergeRequests: AgentMemoryItem[];
|
|
123
|
+
reconciles: AgentMemoryItem[];
|
|
124
|
+
};
|
|
125
|
+
};
|
|
126
|
+
type AgentMemoryTimelineResponse = {
|
|
127
|
+
items: AgentMemoryItem[];
|
|
128
|
+
pagination: {
|
|
129
|
+
limit: number;
|
|
130
|
+
offset: number;
|
|
131
|
+
hasMore: boolean;
|
|
132
|
+
};
|
|
133
|
+
};
|
|
134
|
+
type AgentMemorySearchItem = AgentMemoryItem & {
|
|
135
|
+
search: {
|
|
136
|
+
score: number;
|
|
137
|
+
matchedOn: string[];
|
|
138
|
+
};
|
|
139
|
+
};
|
|
140
|
+
type AgentMemorySearchResponse = {
|
|
141
|
+
items: AgentMemorySearchItem[];
|
|
142
|
+
pagination: {
|
|
143
|
+
limit: number;
|
|
144
|
+
offset: number;
|
|
145
|
+
hasMore: boolean;
|
|
146
|
+
};
|
|
147
|
+
};
|
|
148
|
+
type ChangeStepDiffResponse = {
|
|
149
|
+
changeStepId: string;
|
|
150
|
+
appId: string;
|
|
151
|
+
diff: string;
|
|
152
|
+
diffSha256: string;
|
|
153
|
+
contentType: string;
|
|
154
|
+
encoding: string;
|
|
155
|
+
expiresIn: number;
|
|
156
|
+
};
|
|
157
|
+
type BundlePlatform = "ios" | "android";
|
|
158
|
+
type BundleStatus = "pending" | "building" | "succeeded" | "failed";
|
|
159
|
+
type Bundle = {
|
|
160
|
+
id: string;
|
|
161
|
+
appId: string;
|
|
162
|
+
fingerprint: string;
|
|
163
|
+
platform: BundlePlatform;
|
|
164
|
+
status: BundleStatus;
|
|
165
|
+
storageKey: string | null;
|
|
166
|
+
size: number | null;
|
|
167
|
+
checksumSha256: string | null;
|
|
168
|
+
contentType: string | null;
|
|
169
|
+
createdAt: string;
|
|
170
|
+
updatedAt: string;
|
|
171
|
+
expiresAt: string | null;
|
|
172
|
+
};
|
|
173
|
+
type InitiateBundleRequest = {
|
|
174
|
+
commitId?: string;
|
|
175
|
+
platform: BundlePlatform;
|
|
176
|
+
expiresAt?: string;
|
|
177
|
+
idempotencyKey?: string;
|
|
178
|
+
};
|
|
179
|
+
type SyncLocalResponse = {
|
|
180
|
+
status: "up_to_date" | "ready_to_fast_forward" | "base_unknown" | "conflict_risk";
|
|
181
|
+
baseCommitHash: string;
|
|
182
|
+
targetCommitHash: string;
|
|
183
|
+
targetCommitId: string;
|
|
184
|
+
bundleRef: string | null;
|
|
185
|
+
bundleBase64: string | null;
|
|
186
|
+
bundleEncoding: "base64" | null;
|
|
187
|
+
bundleSizeBytes: number;
|
|
188
|
+
stats: {
|
|
189
|
+
changedFilesCount: number;
|
|
190
|
+
insertions: number;
|
|
191
|
+
deletions: number;
|
|
192
|
+
};
|
|
193
|
+
warnings: string[];
|
|
194
|
+
};
|
|
195
|
+
type SyncUpstreamResponse = {
|
|
196
|
+
status: "up-to-date" | "queued";
|
|
197
|
+
mergeRequestId?: string;
|
|
198
|
+
};
|
|
199
|
+
type ReconcilePreflightResponse = {
|
|
200
|
+
status: "up_to_date" | "ready_to_reconcile" | "metadata_conflict";
|
|
201
|
+
localHeadCommitHash: string;
|
|
202
|
+
targetHeadCommitId: string;
|
|
203
|
+
targetHeadCommitHash: string;
|
|
204
|
+
warnings: string[];
|
|
205
|
+
};
|
|
206
|
+
type AppReconcileResponse = {
|
|
207
|
+
id: string;
|
|
208
|
+
appId: string;
|
|
209
|
+
uploadId: string;
|
|
210
|
+
queueItemId: string | null;
|
|
211
|
+
requestedBy: string;
|
|
212
|
+
repoFingerprint: string | null;
|
|
213
|
+
remoteUrl: string | null;
|
|
214
|
+
defaultBranch: string | null;
|
|
215
|
+
localHeadCommitHash: string;
|
|
216
|
+
targetHeadCommitId: string | null;
|
|
217
|
+
targetHeadCommitHash: string | null;
|
|
218
|
+
mergeBaseCommitHash: string | null;
|
|
219
|
+
reconciledHeadCommitId: string | null;
|
|
220
|
+
reconciledHeadCommitHash: string | null;
|
|
221
|
+
localCommitHashes: string[];
|
|
222
|
+
reconciledCommitIds: string[];
|
|
223
|
+
reconciledCommitHashes: string[];
|
|
224
|
+
status: "pending" | "queued" | "processing" | "succeeded" | "failed" | "manual_reconcile_required" | "cancelled";
|
|
225
|
+
failureKind: string | null;
|
|
226
|
+
statusError: string | null;
|
|
227
|
+
idempotencyKey: string | null;
|
|
228
|
+
resultBundleRef: string | null;
|
|
229
|
+
queuePosition?: number | null;
|
|
230
|
+
runId?: string | null;
|
|
231
|
+
createdAt: string;
|
|
232
|
+
updatedAt: string;
|
|
233
|
+
};
|
|
234
|
+
type ApiClient = {
|
|
235
|
+
getMe(): Promise<Json>;
|
|
236
|
+
listOrganizations(): Promise<Json>;
|
|
237
|
+
getOrganization(orgId: string): Promise<Json>;
|
|
238
|
+
listProjects(params?: {
|
|
239
|
+
organizationId?: string;
|
|
240
|
+
clientAppId?: string;
|
|
241
|
+
}): Promise<Json>;
|
|
242
|
+
getProject(projectId: string): Promise<Json>;
|
|
243
|
+
resolveProjectBinding(params: {
|
|
244
|
+
repoFingerprint?: string;
|
|
245
|
+
remoteUrl?: string;
|
|
246
|
+
}): Promise<Json>;
|
|
247
|
+
autoEnableDeveloper(): Promise<Json>;
|
|
248
|
+
listClientApps(params?: {
|
|
249
|
+
orgId?: string;
|
|
250
|
+
}): Promise<Json>;
|
|
251
|
+
createClientApp(payload: {
|
|
252
|
+
orgId: string;
|
|
253
|
+
name: string;
|
|
254
|
+
description?: string;
|
|
255
|
+
type: "creator" | "wrapper";
|
|
256
|
+
environment?: "development" | "staging" | "production";
|
|
257
|
+
platform: "ios" | "android" | "web" | "expo" | "other";
|
|
258
|
+
iosBundleId?: string;
|
|
259
|
+
androidPackageName?: string;
|
|
260
|
+
webOrigin?: string;
|
|
261
|
+
metadata?: unknown;
|
|
262
|
+
}): Promise<Json>;
|
|
263
|
+
createClientAppKey(clientAppId: string, payload?: {
|
|
264
|
+
name?: string;
|
|
265
|
+
expiresAt?: string;
|
|
266
|
+
}): Promise<Json>;
|
|
267
|
+
listApps(params?: {
|
|
268
|
+
projectId?: string;
|
|
269
|
+
organizationId?: string;
|
|
270
|
+
forked?: "only" | "exclude" | "all";
|
|
271
|
+
}): Promise<Json>;
|
|
272
|
+
getApp(appId: string): Promise<Json>;
|
|
273
|
+
getMergeRequest(mrId: string): Promise<Json>;
|
|
274
|
+
presignImportUpload(payload: {
|
|
275
|
+
file: {
|
|
276
|
+
name: string;
|
|
277
|
+
mimeType: string;
|
|
278
|
+
size: number;
|
|
279
|
+
checksumSha256?: string;
|
|
280
|
+
};
|
|
281
|
+
}): Promise<Json>;
|
|
282
|
+
importFromUpload(payload: {
|
|
283
|
+
uploadId: string;
|
|
284
|
+
appName?: string;
|
|
285
|
+
threadId?: string;
|
|
286
|
+
path?: string;
|
|
287
|
+
}): Promise<Json>;
|
|
288
|
+
presignImportUploadFirstParty(payload: {
|
|
289
|
+
file: {
|
|
290
|
+
name: string;
|
|
291
|
+
mimeType: string;
|
|
292
|
+
size: number;
|
|
293
|
+
checksumSha256?: string;
|
|
294
|
+
};
|
|
295
|
+
}): Promise<Json>;
|
|
296
|
+
importFromUploadFirstParty(payload: {
|
|
297
|
+
uploadId: string;
|
|
298
|
+
appName?: string;
|
|
299
|
+
threadId?: string;
|
|
300
|
+
path?: string;
|
|
301
|
+
platform?: string;
|
|
302
|
+
isPublic?: boolean;
|
|
303
|
+
remoteUrl?: string;
|
|
304
|
+
defaultBranch?: string;
|
|
305
|
+
repoFingerprint?: string;
|
|
306
|
+
headCommitHash?: string;
|
|
307
|
+
}): Promise<Json>;
|
|
308
|
+
importFromGithubFirstParty(payload: {
|
|
309
|
+
repoFullName: string;
|
|
310
|
+
branch?: string;
|
|
311
|
+
path?: string;
|
|
312
|
+
appName?: string;
|
|
313
|
+
threadId?: string;
|
|
314
|
+
appId?: string;
|
|
315
|
+
platform?: string;
|
|
316
|
+
isPublic?: boolean;
|
|
317
|
+
remoteUrl?: string;
|
|
318
|
+
defaultBranch?: string;
|
|
319
|
+
repoFingerprint?: string;
|
|
320
|
+
}): Promise<Json>;
|
|
321
|
+
forkApp(appId: string, payload?: {
|
|
322
|
+
name?: string;
|
|
323
|
+
platform?: string;
|
|
324
|
+
forkedFromCommitId?: string;
|
|
325
|
+
}): Promise<Json>;
|
|
326
|
+
downloadAppBundle(appId: string): Promise<{
|
|
327
|
+
data: Buffer;
|
|
328
|
+
fileName: string | null;
|
|
329
|
+
contentType: string | null;
|
|
330
|
+
}>;
|
|
331
|
+
createChangeStep(appId: string, payload: {
|
|
332
|
+
threadId?: string;
|
|
333
|
+
prompt: string;
|
|
334
|
+
assistantResponse?: string;
|
|
335
|
+
diff: string;
|
|
336
|
+
baseCommitHash?: string | null;
|
|
337
|
+
headCommitHash?: string | null;
|
|
338
|
+
changedFilesCount?: number;
|
|
339
|
+
insertions?: number;
|
|
340
|
+
deletions?: number;
|
|
341
|
+
actor?: {
|
|
342
|
+
type?: string;
|
|
343
|
+
name?: string;
|
|
344
|
+
version?: string;
|
|
345
|
+
provider?: string;
|
|
346
|
+
};
|
|
347
|
+
workspaceMetadata?: Record<string, unknown>;
|
|
348
|
+
idempotencyKey?: string;
|
|
349
|
+
}): Promise<Json>;
|
|
350
|
+
startChangeStepReplay(appId: string, payload: {
|
|
351
|
+
prompt: string;
|
|
352
|
+
assistantResponse?: string;
|
|
353
|
+
diff: string;
|
|
354
|
+
baseCommitHash: string;
|
|
355
|
+
targetHeadCommitHash: string;
|
|
356
|
+
expectedPaths: string[];
|
|
357
|
+
actor?: {
|
|
358
|
+
type?: string;
|
|
359
|
+
name?: string;
|
|
360
|
+
version?: string;
|
|
361
|
+
provider?: string;
|
|
362
|
+
};
|
|
363
|
+
workspaceMetadata?: Record<string, unknown>;
|
|
364
|
+
idempotencyKey?: string;
|
|
365
|
+
}): Promise<Json>;
|
|
366
|
+
getChangeStepReplay(appId: string, replayId: string): Promise<Json>;
|
|
367
|
+
getChangeStepReplayDiff(appId: string, replayId: string): Promise<Json>;
|
|
368
|
+
createCollabTurn(appId: string, payload: {
|
|
369
|
+
threadId?: string;
|
|
370
|
+
prompt: string;
|
|
371
|
+
assistantResponse: string;
|
|
372
|
+
actor?: {
|
|
373
|
+
type?: string;
|
|
374
|
+
name?: string;
|
|
375
|
+
version?: string;
|
|
376
|
+
provider?: string;
|
|
377
|
+
};
|
|
378
|
+
workspaceMetadata?: Record<string, unknown>;
|
|
379
|
+
idempotencyKey?: string;
|
|
380
|
+
}): Promise<Json>;
|
|
381
|
+
listCollabTurns(appId: string, params?: {
|
|
382
|
+
limit?: number;
|
|
383
|
+
offset?: number;
|
|
384
|
+
changeStepId?: string;
|
|
385
|
+
threadId?: string;
|
|
386
|
+
createdAfter?: string;
|
|
387
|
+
createdBefore?: string;
|
|
388
|
+
}): Promise<Json>;
|
|
389
|
+
getCollabTurn(appId: string, collabTurnId: string): Promise<Json>;
|
|
390
|
+
getAgentMemorySummary(appId: string): Promise<Json>;
|
|
391
|
+
listAgentMemoryTimeline(appId: string, params?: {
|
|
392
|
+
limit?: number;
|
|
393
|
+
offset?: number;
|
|
394
|
+
kinds?: AgentMemoryKind[];
|
|
395
|
+
createdAfter?: string;
|
|
396
|
+
createdBefore?: string;
|
|
397
|
+
}): Promise<Json>;
|
|
398
|
+
searchAgentMemory(appId: string, params: {
|
|
399
|
+
q: string;
|
|
400
|
+
limit?: number;
|
|
401
|
+
offset?: number;
|
|
402
|
+
kinds?: AgentMemoryKind[];
|
|
403
|
+
createdAfter?: string;
|
|
404
|
+
createdBefore?: string;
|
|
405
|
+
}): Promise<Json>;
|
|
406
|
+
getChangeStep(appId: string, changeStepId: string): Promise<Json>;
|
|
407
|
+
getChangeStepDiff(appId: string, changeStepId: string): Promise<Json>;
|
|
408
|
+
listMergeRequests(params?: {
|
|
409
|
+
sourceAppId?: string;
|
|
410
|
+
targetAppId?: string;
|
|
411
|
+
status?: string | string[];
|
|
412
|
+
kind?: string;
|
|
413
|
+
}): Promise<Json>;
|
|
414
|
+
openMergeRequest(sourceAppId: string): Promise<Json>;
|
|
415
|
+
getMergeRequestReview(mrId: string): Promise<Json>;
|
|
416
|
+
updateMergeRequest(mrId: string, payload: {
|
|
417
|
+
title?: string;
|
|
418
|
+
description?: string;
|
|
419
|
+
status?: string;
|
|
420
|
+
}): Promise<Json>;
|
|
421
|
+
createOrganizationInvite(orgId: string, payload: {
|
|
422
|
+
email: string;
|
|
423
|
+
role?: string;
|
|
424
|
+
ttlDays?: number;
|
|
425
|
+
}): Promise<Json>;
|
|
426
|
+
createProjectInvite(projectId: string, payload: {
|
|
427
|
+
email: string;
|
|
428
|
+
role?: string;
|
|
429
|
+
ttlDays?: number;
|
|
430
|
+
}): Promise<Json>;
|
|
431
|
+
createAppInvite(appId: string, payload: {
|
|
432
|
+
email: string;
|
|
433
|
+
role?: string;
|
|
434
|
+
ttlDays?: number;
|
|
435
|
+
}): Promise<Json>;
|
|
436
|
+
listOrganizationInvites(orgId: string): Promise<Json>;
|
|
437
|
+
listProjectInvites(projectId: string): Promise<Json>;
|
|
438
|
+
listAppInvites(appId: string): Promise<Json>;
|
|
439
|
+
resendOrganizationInvite(orgId: string, inviteId: string, payload?: {
|
|
440
|
+
ttlDays?: number;
|
|
441
|
+
}): Promise<Json>;
|
|
442
|
+
resendProjectInvite(projectId: string, inviteId: string, payload?: {
|
|
443
|
+
ttlDays?: number;
|
|
444
|
+
}): Promise<Json>;
|
|
445
|
+
resendAppInvite(appId: string, inviteId: string, payload?: {
|
|
446
|
+
ttlDays?: number;
|
|
447
|
+
}): Promise<Json>;
|
|
448
|
+
revokeOrganizationInvite(orgId: string, inviteId: string): Promise<Json>;
|
|
449
|
+
revokeProjectInvite(projectId: string, inviteId: string): Promise<Json>;
|
|
450
|
+
revokeAppInvite(appId: string, inviteId: string): Promise<Json>;
|
|
451
|
+
syncUpstreamApp(appId: string): Promise<Json>;
|
|
452
|
+
preflightAppReconcile(appId: string, payload: {
|
|
453
|
+
localHeadCommitHash: string;
|
|
454
|
+
repoFingerprint?: string;
|
|
455
|
+
remoteUrl?: string;
|
|
456
|
+
defaultBranch?: string;
|
|
457
|
+
}): Promise<Json>;
|
|
458
|
+
startAppReconcile(appId: string, payload: {
|
|
459
|
+
uploadId: string;
|
|
460
|
+
localHeadCommitHash: string;
|
|
461
|
+
repoFingerprint?: string;
|
|
462
|
+
remoteUrl?: string;
|
|
463
|
+
defaultBranch?: string;
|
|
464
|
+
idempotencyKey?: string;
|
|
465
|
+
}): Promise<Json>;
|
|
466
|
+
getAppReconcile(appId: string, reconcileId: string): Promise<Json>;
|
|
467
|
+
downloadAppReconcileBundle(appId: string, reconcileId: string): Promise<{
|
|
468
|
+
data: Buffer;
|
|
469
|
+
fileName: string | null;
|
|
470
|
+
contentType: string | null;
|
|
471
|
+
}>;
|
|
472
|
+
syncLocalApp(appId: string, payload: {
|
|
473
|
+
baseCommitHash: string;
|
|
474
|
+
repoFingerprint?: string;
|
|
475
|
+
remoteUrl?: string;
|
|
476
|
+
defaultBranch?: string;
|
|
477
|
+
dryRun?: boolean;
|
|
478
|
+
}): Promise<Json>;
|
|
479
|
+
initiateBundle(appId: string, payload: InitiateBundleRequest): Promise<Json>;
|
|
480
|
+
getBundle(appId: string, bundleId: string): Promise<Json>;
|
|
481
|
+
getBundleDownloadUrl(appId: string, bundleId: string, options?: {
|
|
482
|
+
redirect?: boolean;
|
|
483
|
+
}): Promise<Json>;
|
|
484
|
+
getBundleAssetsDownloadUrl(appId: string, bundleId: string, options?: {
|
|
485
|
+
redirect?: boolean;
|
|
486
|
+
kind?: string;
|
|
487
|
+
}): Promise<Json>;
|
|
488
|
+
};
|
|
489
|
+
declare function createApiClient(config: CoreConfig, opts?: {
|
|
490
|
+
apiKey?: string | null;
|
|
491
|
+
tokenProvider?: TokenProvider;
|
|
492
|
+
}): ApiClient;
|
|
493
|
+
|
|
494
|
+
export { type AgentMemoryItem, type AgentMemoryKind, type AgentMemorySearchItem, type AgentMemorySearchResponse, type AgentMemorySummary, type AgentMemoryTimelineResponse, type ApiClient, type AppReconcileResponse, type Bundle, type BundlePlatform, type BundleStatus, type ChangeStepDiffResponse, type InitiateBundleRequest, type MergeRequest, type MergeRequestReview, type MergeRequestStatus, type ReconcilePreflightResponse, type SyncLocalResponse, type SyncUpstreamResponse, createApiClient };
|
package/dist/api.js
ADDED
package/dist/auth.d.ts
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { S as SessionStore, a as StoredSession } from './tokenProvider-BWTusyj4.js';
|
|
2
|
+
export { R as RefreshStoredSession, d as ResolvedAuthToken, T as TokenProvider, c as createStoredSessionTokenProvider, s as shouldRefreshSoon, b as storedSessionSchema } from './tokenProvider-BWTusyj4.js';
|
|
3
|
+
import { CoreConfig } from './config.js';
|
|
4
|
+
import 'zod';
|
|
5
|
+
|
|
6
|
+
declare function createLocalSessionStore(params?: {
|
|
7
|
+
service?: string;
|
|
8
|
+
account?: string;
|
|
9
|
+
filePath?: string;
|
|
10
|
+
}): SessionStore;
|
|
11
|
+
|
|
12
|
+
type SupabaseAuthHelpers = {
|
|
13
|
+
startGoogleLogin(params: {
|
|
14
|
+
redirectTo: string;
|
|
15
|
+
}): Promise<{
|
|
16
|
+
url: string;
|
|
17
|
+
}>;
|
|
18
|
+
exchangeCode(params: {
|
|
19
|
+
code: string;
|
|
20
|
+
}): Promise<StoredSession>;
|
|
21
|
+
refreshWithStoredSession(params: {
|
|
22
|
+
session: StoredSession;
|
|
23
|
+
}): Promise<StoredSession>;
|
|
24
|
+
};
|
|
25
|
+
declare function createSupabaseAuthHelpers(config: CoreConfig): SupabaseAuthHelpers;
|
|
26
|
+
|
|
27
|
+
export { SessionStore, StoredSession, type SupabaseAuthHelpers, createLocalSessionStore, createSupabaseAuthHelpers };
|
package/dist/auth.js
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import {
|
|
2
|
+
createLocalSessionStore,
|
|
3
|
+
createStoredSessionTokenProvider,
|
|
4
|
+
createSupabaseAuthHelpers,
|
|
5
|
+
shouldRefreshSoon,
|
|
6
|
+
storedSessionSchema
|
|
7
|
+
} from "./chunk-EVWDYCBL.js";
|
|
8
|
+
import "./chunk-YZ34ICNN.js";
|
|
9
|
+
export {
|
|
10
|
+
createLocalSessionStore,
|
|
11
|
+
createStoredSessionTokenProvider,
|
|
12
|
+
createSupabaseAuthHelpers,
|
|
13
|
+
shouldRefreshSoon,
|
|
14
|
+
storedSessionSchema
|
|
15
|
+
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
type CollabBinding = {
|
|
2
|
+
schemaVersion: 1;
|
|
3
|
+
projectId: string;
|
|
4
|
+
currentAppId: string;
|
|
5
|
+
upstreamAppId: string;
|
|
6
|
+
threadId: string | null;
|
|
7
|
+
repoFingerprint: string | null;
|
|
8
|
+
remoteUrl: string | null;
|
|
9
|
+
defaultBranch: string | null;
|
|
10
|
+
preferredBranch: string | null;
|
|
11
|
+
};
|
|
12
|
+
declare function getCollabBindingPath(repoRoot: string): string;
|
|
13
|
+
declare function readCollabBinding(repoRoot: string): Promise<CollabBinding | null>;
|
|
14
|
+
declare function writeCollabBinding(repoRoot: string, binding: Omit<CollabBinding, "schemaVersion">): Promise<string>;
|
|
15
|
+
|
|
16
|
+
export { type CollabBinding, getCollabBindingPath, readCollabBinding, writeCollabBinding };
|
package/dist/binding.js
ADDED
|
File without changes
|