@remixhq/core 0.1.10 → 0.1.12
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.d.ts +29 -0
- package/dist/api.js +1 -1
- package/dist/binding.d.ts +9 -4
- package/dist/binding.js +3 -1
- package/dist/chunk-4L3ZBZUQ.js +281 -0
- package/dist/chunk-BNKPTE2U.js +401 -0
- package/dist/chunk-C5NBNU32.js +240 -0
- package/dist/chunk-DXCL6I4Q.js +399 -0
- package/dist/chunk-HZNEDSRS.js +0 -0
- package/dist/chunk-IXWQWFYT.js +342 -0
- package/dist/chunk-K54U353Z.js +691 -0
- package/dist/chunk-RM2BGDBB.js +400 -0
- package/dist/chunk-ZXP6ENQY.js +244 -0
- package/dist/collab.d.ts +49 -7
- package/dist/collab.js +1071 -139
- package/dist/index.js +1 -1
- package/dist/repo.js +2 -1
- package/package.json +1 -1
package/dist/collab.d.ts
CHANGED
|
@@ -64,8 +64,8 @@ type MergeRequestReview = {
|
|
|
64
64
|
};
|
|
65
65
|
};
|
|
66
66
|
type CollabApproveMode = "remote-only" | "sync-target-repo";
|
|
67
|
-
type CollabStatusBlockedReason = "not_git_repo" | "not_bound" | "missing_head" | "detached_head" | "branch_mismatch" | "dirty_worktree" | "metadata_conflict" | "remote_error";
|
|
68
|
-
type CollabStatusRecommendedAction = "init" | "sync" | "reconcile" | "review_queue" | "no_action";
|
|
67
|
+
type CollabStatusBlockedReason = "not_git_repo" | "not_bound" | "branch_binding_missing" | "family_ambiguous" | "missing_head" | "detached_head" | "branch_mismatch" | "dirty_worktree" | "metadata_conflict" | "remote_error";
|
|
68
|
+
type CollabStatusRecommendedAction = "init" | "sync" | "reconcile" | "review_queue" | "choose_family" | "no_action";
|
|
69
69
|
type CollabStatus = {
|
|
70
70
|
schemaVersion: 1;
|
|
71
71
|
repo: {
|
|
@@ -93,7 +93,9 @@ type CollabStatus = {
|
|
|
93
93
|
repoFingerprint: string | null;
|
|
94
94
|
remoteUrl: string | null;
|
|
95
95
|
defaultBranch: string | null;
|
|
96
|
-
|
|
96
|
+
laneId: string | null;
|
|
97
|
+
branchName: string | null;
|
|
98
|
+
bindingMode: "legacy" | "lane" | "explicit_root" | null;
|
|
97
99
|
};
|
|
98
100
|
remote: {
|
|
99
101
|
checked: boolean;
|
|
@@ -146,13 +148,13 @@ type SyncUpstreamResponse = {
|
|
|
146
148
|
status: "up-to-date" | "queued";
|
|
147
149
|
mergeRequestId?: string;
|
|
148
150
|
};
|
|
149
|
-
type CollabRecordingPreflightStatus = "not_git_repo" | "not_bound" | "missing_head" | "branch_mismatch" | "metadata_conflict" | "up_to_date" | "ready_to_fast_forward" | "reconcile_required";
|
|
151
|
+
type CollabRecordingPreflightStatus = "not_git_repo" | "not_bound" | "branch_binding_missing" | "family_ambiguous" | "missing_head" | "branch_mismatch" | "metadata_conflict" | "up_to_date" | "ready_to_fast_forward" | "reconcile_required";
|
|
150
152
|
type CollabRecordingPreflight = {
|
|
151
153
|
status: CollabRecordingPreflightStatus;
|
|
152
154
|
repoRoot: string | null;
|
|
153
155
|
appId: string | null;
|
|
154
156
|
currentBranch: string | null;
|
|
155
|
-
|
|
157
|
+
branchName: string | null;
|
|
156
158
|
headCommitHash: string | null;
|
|
157
159
|
worktreeClean: boolean;
|
|
158
160
|
syncStatus: SyncLocalResponse["status"] | null;
|
|
@@ -298,6 +300,30 @@ type CollabApiClient = {
|
|
|
298
300
|
resolveProjectBinding(params: {
|
|
299
301
|
repoFingerprint?: string;
|
|
300
302
|
remoteUrl?: string;
|
|
303
|
+
branchName?: string;
|
|
304
|
+
}): Promise<unknown>;
|
|
305
|
+
resolveProjectLaneBinding(params: {
|
|
306
|
+
projectId?: string;
|
|
307
|
+
repoFingerprint?: string;
|
|
308
|
+
remoteUrl?: string;
|
|
309
|
+
defaultBranch?: string;
|
|
310
|
+
branchName: string;
|
|
311
|
+
}): Promise<unknown>;
|
|
312
|
+
ensureProjectLaneBinding(payload: {
|
|
313
|
+
projectId?: string;
|
|
314
|
+
repoFingerprint?: string;
|
|
315
|
+
remoteUrl?: string;
|
|
316
|
+
defaultBranch?: string;
|
|
317
|
+
branchName: string;
|
|
318
|
+
seedAppId?: string;
|
|
319
|
+
}): Promise<unknown>;
|
|
320
|
+
bootstrapFreshProjectLane(payload: {
|
|
321
|
+
projectId?: string;
|
|
322
|
+
repoFingerprint?: string;
|
|
323
|
+
remoteUrl?: string;
|
|
324
|
+
defaultBranch?: string;
|
|
325
|
+
branchName: string;
|
|
326
|
+
seedAppId: string;
|
|
301
327
|
}): Promise<unknown>;
|
|
302
328
|
getOrganization(orgId: string): Promise<unknown>;
|
|
303
329
|
getProject(projectId: string): Promise<unknown>;
|
|
@@ -325,6 +351,7 @@ type CollabApiClient = {
|
|
|
325
351
|
uploadId: string;
|
|
326
352
|
appName?: string;
|
|
327
353
|
threadId?: string;
|
|
354
|
+
branch?: string;
|
|
328
355
|
path?: string;
|
|
329
356
|
platform?: string;
|
|
330
357
|
isPublic?: boolean;
|
|
@@ -337,6 +364,7 @@ type CollabApiClient = {
|
|
|
337
364
|
name?: string;
|
|
338
365
|
platform?: string;
|
|
339
366
|
forkedFromCommitId?: string;
|
|
367
|
+
branchName?: string;
|
|
340
368
|
}): Promise<unknown>;
|
|
341
369
|
downloadAppBundle(appId: string): Promise<{
|
|
342
370
|
data: Buffer;
|
|
@@ -345,6 +373,7 @@ type CollabApiClient = {
|
|
|
345
373
|
}>;
|
|
346
374
|
createChangeStep(appId: string, payload: {
|
|
347
375
|
threadId?: string;
|
|
376
|
+
collabLaneId?: string;
|
|
348
377
|
prompt: string;
|
|
349
378
|
assistantResponse?: string;
|
|
350
379
|
diff: string;
|
|
@@ -382,6 +411,7 @@ type CollabApiClient = {
|
|
|
382
411
|
getChangeStepReplayDiff(appId: string, replayId: string): Promise<unknown>;
|
|
383
412
|
createCollabTurn(appId: string, payload: {
|
|
384
413
|
threadId?: string;
|
|
414
|
+
collabLaneId?: string;
|
|
385
415
|
prompt: string;
|
|
386
416
|
assistantResponse: string;
|
|
387
417
|
actor?: {
|
|
@@ -404,6 +434,15 @@ type CollabApiClient = {
|
|
|
404
434
|
limit?: number;
|
|
405
435
|
offset?: number;
|
|
406
436
|
}): Promise<unknown>;
|
|
437
|
+
listCollabTurns(appId: string, params?: {
|
|
438
|
+
limit?: number;
|
|
439
|
+
offset?: number;
|
|
440
|
+
changeStepId?: string;
|
|
441
|
+
threadId?: string;
|
|
442
|
+
collabLaneId?: string;
|
|
443
|
+
createdAfter?: string;
|
|
444
|
+
createdBefore?: string;
|
|
445
|
+
}): Promise<unknown>;
|
|
407
446
|
openMergeRequest(sourceAppId: string): Promise<unknown>;
|
|
408
447
|
getMergeRequestReview(mrId: string): Promise<unknown>;
|
|
409
448
|
updateMergeRequest(mrId: string, payload: {
|
|
@@ -647,6 +686,8 @@ declare function collabInit(params: {
|
|
|
647
686
|
upstreamAppId: string;
|
|
648
687
|
bindingPath: string;
|
|
649
688
|
repoRoot: string;
|
|
689
|
+
bindingMode: string;
|
|
690
|
+
createdCanonicalFamily: boolean;
|
|
650
691
|
} | {
|
|
651
692
|
warnings?: string[] | undefined;
|
|
652
693
|
reused: boolean;
|
|
@@ -656,9 +697,10 @@ declare function collabInit(params: {
|
|
|
656
697
|
upstreamAppId: string;
|
|
657
698
|
bindingPath: string;
|
|
658
699
|
repoRoot: string;
|
|
700
|
+
bindingMode: "lane" | "explicit_root";
|
|
701
|
+
createdCanonicalFamily: boolean;
|
|
659
702
|
remoteUrl: string | null;
|
|
660
703
|
defaultBranch: string | null;
|
|
661
|
-
preferredBranch: string | null;
|
|
662
704
|
}>;
|
|
663
705
|
|
|
664
706
|
declare function collabInvite(params: {
|
|
@@ -739,7 +781,7 @@ declare function collabReconcile(params: {
|
|
|
739
781
|
applied: boolean;
|
|
740
782
|
dryRun: boolean;
|
|
741
783
|
} | {
|
|
742
|
-
status: "
|
|
784
|
+
status: "failed" | "queued" | "pending" | "processing" | "succeeded" | "manual_reconcile_required" | "cancelled";
|
|
743
785
|
reconcileId: string;
|
|
744
786
|
mergeBaseCommitHash: string | null;
|
|
745
787
|
reconciledHeadCommitId: string | null;
|