@remixhq/core 0.1.9 → 0.1.11

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/collab.d.ts CHANGED
@@ -64,7 +64,7 @@ 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";
67
+ type CollabStatusBlockedReason = "not_git_repo" | "not_bound" | "branch_binding_missing" | "missing_head" | "detached_head" | "branch_mismatch" | "dirty_worktree" | "metadata_conflict" | "remote_error";
68
68
  type CollabStatusRecommendedAction = "init" | "sync" | "reconcile" | "review_queue" | "no_action";
69
69
  type CollabStatus = {
70
70
  schemaVersion: 1;
@@ -93,7 +93,9 @@ type CollabStatus = {
93
93
  repoFingerprint: string | null;
94
94
  remoteUrl: string | null;
95
95
  defaultBranch: string | null;
96
- preferredBranch: string | null;
96
+ laneId: string | null;
97
+ branchName: string | null;
98
+ bindingMode: "legacy" | "lane" | 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" | "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
- preferredBranch: string | null;
157
+ branchName: string | null;
156
158
  headCommitHash: string | null;
157
159
  worktreeClean: boolean;
158
160
  syncStatus: SyncLocalResponse["status"] | null;
@@ -298,12 +300,39 @@ 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>;
304
330
  listApps(params?: {
305
331
  projectId?: string;
306
332
  organizationId?: string;
333
+ ownership?: "mine" | "shared" | "all";
334
+ accessScope?: "all_readable" | "explicit_member";
335
+ createdBy?: "me" | string;
307
336
  forked?: "only" | "exclude" | "all";
308
337
  limit?: number;
309
338
  offset?: number;
@@ -322,6 +351,7 @@ type CollabApiClient = {
322
351
  uploadId: string;
323
352
  appName?: string;
324
353
  threadId?: string;
354
+ branch?: string;
325
355
  path?: string;
326
356
  platform?: string;
327
357
  isPublic?: boolean;
@@ -334,6 +364,7 @@ type CollabApiClient = {
334
364
  name?: string;
335
365
  platform?: string;
336
366
  forkedFromCommitId?: string;
367
+ branchName?: string;
337
368
  }): Promise<unknown>;
338
369
  downloadAppBundle(appId: string): Promise<{
339
370
  data: Buffer;
@@ -342,6 +373,7 @@ type CollabApiClient = {
342
373
  }>;
343
374
  createChangeStep(appId: string, payload: {
344
375
  threadId?: string;
376
+ collabLaneId?: string;
345
377
  prompt: string;
346
378
  assistantResponse?: string;
347
379
  diff: string;
@@ -379,6 +411,7 @@ type CollabApiClient = {
379
411
  getChangeStepReplayDiff(appId: string, replayId: string): Promise<unknown>;
380
412
  createCollabTurn(appId: string, payload: {
381
413
  threadId?: string;
414
+ collabLaneId?: string;
382
415
  prompt: string;
383
416
  assistantResponse: string;
384
417
  actor?: {
@@ -401,6 +434,15 @@ type CollabApiClient = {
401
434
  limit?: number;
402
435
  offset?: number;
403
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>;
404
446
  openMergeRequest(sourceAppId: string): Promise<unknown>;
405
447
  getMergeRequestReview(mrId: string): Promise<unknown>;
406
448
  updateMergeRequest(mrId: string, payload: {
@@ -655,7 +697,6 @@ declare function collabInit(params: {
655
697
  repoRoot: string;
656
698
  remoteUrl: string | null;
657
699
  defaultBranch: string | null;
658
- preferredBranch: string | null;
659
700
  }>;
660
701
 
661
702
  declare function collabInvite(params: {
@@ -673,6 +714,9 @@ declare function collabInvite(params: {
673
714
 
674
715
  declare function collabList(params: {
675
716
  api: CollabApiClient;
717
+ ownership?: "mine" | "shared" | "all";
718
+ accessScope?: "all_readable" | "explicit_member";
719
+ createdBy?: "me" | string;
676
720
  forked?: "only" | "exclude" | "all";
677
721
  limit?: number;
678
722
  offset?: number;
@@ -733,7 +777,7 @@ declare function collabReconcile(params: {
733
777
  applied: boolean;
734
778
  dryRun: boolean;
735
779
  } | {
736
- status: "queued" | "pending" | "processing" | "succeeded" | "failed" | "manual_reconcile_required" | "cancelled";
780
+ status: "failed" | "queued" | "pending" | "processing" | "succeeded" | "manual_reconcile_required" | "cancelled";
737
781
  reconcileId: string;
738
782
  mergeBaseCommitHash: string | null;
739
783
  reconciledHeadCommitId: string | null;