@remixhq/core 0.1.25 → 0.1.26
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 +33 -7
- package/dist/api.js +1 -1
- package/dist/binding.js +2 -2
- package/dist/{chunk-CQXJZ5EP.js → chunk-DOMO3LNV.js} +171 -187
- package/dist/{chunk-S4ECO35X.js → chunk-FA6PTZQI.js} +46 -6
- package/dist/{chunk-P4XIICU3.js → chunk-GNW6FA4J.js} +1 -1
- package/dist/collab.d.ts +96 -134
- package/dist/collab.js +1134 -755
- package/dist/{contracts-S3cbsIUV.d.ts → contracts-BV67NVwV.d.ts} +7 -0
- package/dist/history.d.ts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/repo.js +1 -1
- package/package.json +1 -1
package/dist/collab.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { C as CollabApiClient, a as TurnUsagePayload, b as CollabFinalizeTurnResult, c as CollabRecordingPreflight, d as CollabApproveMode, e as CollabApproveResult, M as MergeRequestQueue, f as MergeRequest, I as InvitationScopeType, g as CollabMember, A as AppProfileInput, J as JsonObject, h as AppDeltaResponse, i as CollabStatus, j as MergeRequestReview } from './contracts-
|
|
2
|
-
export { k as AppHeadResponse, l as AppMember, m as AppMemberRole, n as AppReconcileResponse, o as CollabFinalizeTurnAutoSync, p as CollabFinalizeTurnMode, q as CollabPendingFinalizeState, r as CollabPendingFinalizeSummary, s as CollabRecordingPreflightStatus, t as CollabRepoStateKind, u as CollabStatusBlockedReason, v as CollabStatusRecommendedAction, w as CollabTurn, x as MembershipScopeType, y as MergeRequestStatus, z as ModelCall, O as OrganizationMember, B as OrganizationMemberRole, P as ProjectMember, D as ProjectMemberRole, R as ReconcilePreflightResponse, S as ServerToolUsage, E as SyncLocalResponse, F as SyncUpstreamResponse, T as TurnUsage, G as TurnUsageCaptureSource, H as TurnUsageConfidence, K as TurnUsagePreviousPatch } from './contracts-
|
|
1
|
+
import { C as CollabApiClient, a as TurnUsagePayload, b as CollabFinalizeTurnResult, c as CollabRecordingPreflight, d as CollabApproveMode, e as CollabApproveResult, M as MergeRequestQueue, f as MergeRequest, I as InvitationScopeType, g as CollabMember, A as AppProfileInput, J as JsonObject, h as AppDeltaResponse, i as CollabStatus, j as MergeRequestReview } from './contracts-BV67NVwV.js';
|
|
2
|
+
export { k as AppHeadResponse, l as AppMember, m as AppMemberRole, n as AppReconcileResponse, o as CollabFinalizeTurnAutoSync, p as CollabFinalizeTurnMode, q as CollabPendingFinalizeState, r as CollabPendingFinalizeSummary, s as CollabRecordingPreflightStatus, t as CollabRepoStateKind, u as CollabStatusBlockedReason, v as CollabStatusRecommendedAction, w as CollabTurn, x as MembershipScopeType, y as MergeRequestStatus, z as ModelCall, O as OrganizationMember, B as OrganizationMemberRole, P as ProjectMember, D as ProjectMemberRole, R as ReconcilePreflightResponse, S as ServerToolUsage, E as SyncLocalResponse, F as SyncUpstreamResponse, T as TurnUsage, G as TurnUsageCaptureSource, H as TurnUsageConfidence, K as TurnUsagePreviousPatch } from './contracts-BV67NVwV.js';
|
|
3
3
|
import { B as BranchBindingMode } from './binding-WiIRI2fl.js';
|
|
4
4
|
|
|
5
5
|
declare function collabFinalizeTurn(params: {
|
|
@@ -50,6 +50,95 @@ declare const FINALIZE_PREFLIGHT_FAILURE_CODES: readonly ["not_bound", "branch_b
|
|
|
50
50
|
type FinalizePreflightFailureCode = (typeof FINALIZE_PREFLIGHT_FAILURE_CODES)[number];
|
|
51
51
|
declare function isFinalizePreflightFailureCode(value: unknown): value is FinalizePreflightFailureCode;
|
|
52
52
|
|
|
53
|
+
type AsyncJobKind = "init" | "init_post";
|
|
54
|
+
type AsyncJobStatus = "queued" | "submitting" | "uploading" | "server_processing" | "completed" | "failed";
|
|
55
|
+
type AsyncJobBase = {
|
|
56
|
+
schemaVersion: 1;
|
|
57
|
+
id: string;
|
|
58
|
+
kind: AsyncJobKind;
|
|
59
|
+
status: AsyncJobStatus;
|
|
60
|
+
repoRoot: string;
|
|
61
|
+
repoFingerprint: string | null;
|
|
62
|
+
branchName: string | null;
|
|
63
|
+
laneId: string | null;
|
|
64
|
+
createdAt: string;
|
|
65
|
+
updatedAt: string;
|
|
66
|
+
retryCount: number;
|
|
67
|
+
error: string | null;
|
|
68
|
+
idempotencyKey: string | null;
|
|
69
|
+
};
|
|
70
|
+
type InitJobPayload = {
|
|
71
|
+
bundlePath: string;
|
|
72
|
+
bundleSha256: string;
|
|
73
|
+
appName: string | null;
|
|
74
|
+
forceNew: boolean;
|
|
75
|
+
path: string | null;
|
|
76
|
+
defaultBranch: string | null;
|
|
77
|
+
headCommitHash: string;
|
|
78
|
+
remoteUrl: string | null;
|
|
79
|
+
};
|
|
80
|
+
type InitPostJobPayload = {
|
|
81
|
+
appId: string;
|
|
82
|
+
syncPhaseStartedAt: number;
|
|
83
|
+
syncPhaseFinishedAt: number;
|
|
84
|
+
};
|
|
85
|
+
type AsyncJob = (AsyncJobBase & {
|
|
86
|
+
kind: "init";
|
|
87
|
+
payload: InitJobPayload;
|
|
88
|
+
}) | (AsyncJobBase & {
|
|
89
|
+
kind: "init_post";
|
|
90
|
+
payload: InitPostJobPayload;
|
|
91
|
+
});
|
|
92
|
+
type AsyncJobSummary = {
|
|
93
|
+
state: "idle" | "queued" | "processing" | "failed";
|
|
94
|
+
activeJobCount: number;
|
|
95
|
+
queuedJobCount: number;
|
|
96
|
+
processingJobCount: number;
|
|
97
|
+
failedJobCount: number;
|
|
98
|
+
oldestCreatedAt: string | null;
|
|
99
|
+
newestCreatedAt: string | null;
|
|
100
|
+
latestError: string | null;
|
|
101
|
+
kinds: AsyncJobKind[];
|
|
102
|
+
};
|
|
103
|
+
declare function readAsyncJob(jobId: string): Promise<AsyncJob | null>;
|
|
104
|
+
declare function listAsyncJobs(): Promise<AsyncJob[]>;
|
|
105
|
+
declare function listAsyncJobsForRepo(params: {
|
|
106
|
+
repoRoot: string;
|
|
107
|
+
branchName?: string | null;
|
|
108
|
+
kind?: AsyncJobKind | null;
|
|
109
|
+
}): Promise<AsyncJob[]>;
|
|
110
|
+
declare function findPendingAsyncJob(params: {
|
|
111
|
+
repoRoot: string;
|
|
112
|
+
branchName: string | null;
|
|
113
|
+
kind: AsyncJobKind;
|
|
114
|
+
}): Promise<AsyncJob | null>;
|
|
115
|
+
declare function findFailedAsyncJob(params: {
|
|
116
|
+
repoRoot: string;
|
|
117
|
+
branchName: string | null;
|
|
118
|
+
kind: AsyncJobKind;
|
|
119
|
+
}): Promise<AsyncJob | null>;
|
|
120
|
+
declare function deleteAsyncJob(jobId: string): Promise<void>;
|
|
121
|
+
declare function summarizeAsyncJobs(params: {
|
|
122
|
+
repoRoot: string;
|
|
123
|
+
branchName?: string | null;
|
|
124
|
+
}): Promise<AsyncJobSummary>;
|
|
125
|
+
declare function pruneTerminalAsyncJobs(): Promise<void>;
|
|
126
|
+
type AwaitAsyncJobResult = {
|
|
127
|
+
status: "completed";
|
|
128
|
+
job: AsyncJob;
|
|
129
|
+
} | {
|
|
130
|
+
status: "failed";
|
|
131
|
+
job: AsyncJob;
|
|
132
|
+
} | {
|
|
133
|
+
status: "timeout";
|
|
134
|
+
job: AsyncJob | null;
|
|
135
|
+
};
|
|
136
|
+
declare function awaitAsyncJob(params: {
|
|
137
|
+
jobId: string;
|
|
138
|
+
timeoutMs: number;
|
|
139
|
+
pollIntervalMs?: number;
|
|
140
|
+
}): Promise<AwaitAsyncJobResult>;
|
|
141
|
+
|
|
53
142
|
declare function collabRecordingPreflight(params: {
|
|
54
143
|
api: CollabApiClient;
|
|
55
144
|
cwd: string;
|
|
@@ -131,6 +220,7 @@ declare function collabUpdateMemberRole(params: {
|
|
|
131
220
|
}>;
|
|
132
221
|
|
|
133
222
|
type InitBaselineStatus = "seeded" | "existing" | "baseline_missing" | "requires_sync";
|
|
223
|
+
|
|
134
224
|
type CollabInitQueuedResult = {
|
|
135
225
|
queued: true;
|
|
136
226
|
jobId: string;
|
|
@@ -147,6 +237,7 @@ type CollabInitQueuedResult = {
|
|
|
147
237
|
defaultBranch: string | null;
|
|
148
238
|
warnings?: string[];
|
|
149
239
|
};
|
|
240
|
+
|
|
150
241
|
declare function collabInit(params: {
|
|
151
242
|
api: CollabApiClient;
|
|
152
243
|
cwd: string;
|
|
@@ -155,22 +246,7 @@ declare function collabInit(params: {
|
|
|
155
246
|
forceNew?: boolean;
|
|
156
247
|
asyncSubmit?: boolean;
|
|
157
248
|
profile?: AppProfileInput | null;
|
|
158
|
-
}): Promise<{
|
|
159
|
-
warnings?: string[] | undefined;
|
|
160
|
-
queued: true;
|
|
161
|
-
jobId: string;
|
|
162
|
-
repoRoot: string;
|
|
163
|
-
projectId: string;
|
|
164
|
-
appId: string;
|
|
165
|
-
upstreamAppId: string;
|
|
166
|
-
dashboardUrl: string;
|
|
167
|
-
bindingPath: string;
|
|
168
|
-
repoFingerprint: string;
|
|
169
|
-
bindingMode: string;
|
|
170
|
-
createdCanonicalFamily: boolean;
|
|
171
|
-
remoteUrl: string | null;
|
|
172
|
-
defaultBranch: string | null;
|
|
173
|
-
} | {
|
|
249
|
+
}): Promise<CollabInitQueuedResult | {
|
|
174
250
|
warnings?: string[] | undefined;
|
|
175
251
|
reused: boolean;
|
|
176
252
|
projectId: string;
|
|
@@ -206,22 +282,7 @@ declare function collabInitSubmit(params: {
|
|
|
206
282
|
path?: string | null;
|
|
207
283
|
forceNew?: boolean;
|
|
208
284
|
profile?: AppProfileInput | null;
|
|
209
|
-
}): Promise<{
|
|
210
|
-
warnings?: string[] | undefined;
|
|
211
|
-
queued: true;
|
|
212
|
-
jobId: string;
|
|
213
|
-
repoRoot: string;
|
|
214
|
-
projectId: string;
|
|
215
|
-
appId: string;
|
|
216
|
-
upstreamAppId: string;
|
|
217
|
-
dashboardUrl: string;
|
|
218
|
-
bindingPath: string;
|
|
219
|
-
repoFingerprint: string;
|
|
220
|
-
bindingMode: string;
|
|
221
|
-
createdCanonicalFamily: boolean;
|
|
222
|
-
remoteUrl: string | null;
|
|
223
|
-
defaultBranch: string | null;
|
|
224
|
-
} | {
|
|
285
|
+
}): Promise<CollabInitQueuedResult | {
|
|
225
286
|
warnings?: string[] | undefined;
|
|
226
287
|
reused: boolean;
|
|
227
288
|
projectId: string;
|
|
@@ -502,109 +563,10 @@ declare function drainAsyncJobs(opts: {
|
|
|
502
563
|
respectPidLock?: boolean;
|
|
503
564
|
}): Promise<ProcessOutcome[]>;
|
|
504
565
|
|
|
505
|
-
type AsyncJobKind = "init" | "init_post" | "re_anchor";
|
|
506
|
-
type AsyncJobStatus = "queued" | "submitting" | "uploading" | "server_processing" | "completed" | "failed";
|
|
507
|
-
type AsyncJobBase = {
|
|
508
|
-
schemaVersion: 1;
|
|
509
|
-
id: string;
|
|
510
|
-
kind: AsyncJobKind;
|
|
511
|
-
status: AsyncJobStatus;
|
|
512
|
-
repoRoot: string;
|
|
513
|
-
repoFingerprint: string | null;
|
|
514
|
-
branchName: string | null;
|
|
515
|
-
laneId: string | null;
|
|
516
|
-
createdAt: string;
|
|
517
|
-
updatedAt: string;
|
|
518
|
-
retryCount: number;
|
|
519
|
-
error: string | null;
|
|
520
|
-
idempotencyKey: string | null;
|
|
521
|
-
};
|
|
522
|
-
type InitJobPayload = {
|
|
523
|
-
bundlePath: string;
|
|
524
|
-
bundleSha256: string;
|
|
525
|
-
appName: string | null;
|
|
526
|
-
forceNew: boolean;
|
|
527
|
-
path: string | null;
|
|
528
|
-
defaultBranch: string | null;
|
|
529
|
-
headCommitHash: string;
|
|
530
|
-
remoteUrl: string | null;
|
|
531
|
-
};
|
|
532
|
-
type ReAnchorJobPayload = {
|
|
533
|
-
bundlePath: string;
|
|
534
|
-
bundleSha256: string;
|
|
535
|
-
localHeadCommitHash: string;
|
|
536
|
-
targetHeadCommitHash: string;
|
|
537
|
-
appId: string;
|
|
538
|
-
};
|
|
539
|
-
type InitPostJobPayload = {
|
|
540
|
-
appId: string;
|
|
541
|
-
syncPhaseStartedAt: number;
|
|
542
|
-
syncPhaseFinishedAt: number;
|
|
543
|
-
};
|
|
544
|
-
type AsyncJob = (AsyncJobBase & {
|
|
545
|
-
kind: "init";
|
|
546
|
-
payload: InitJobPayload;
|
|
547
|
-
}) | (AsyncJobBase & {
|
|
548
|
-
kind: "init_post";
|
|
549
|
-
payload: InitPostJobPayload;
|
|
550
|
-
}) | (AsyncJobBase & {
|
|
551
|
-
kind: "re_anchor";
|
|
552
|
-
payload: ReAnchorJobPayload;
|
|
553
|
-
});
|
|
554
|
-
type AsyncJobSummary = {
|
|
555
|
-
state: "idle" | "queued" | "processing" | "failed";
|
|
556
|
-
activeJobCount: number;
|
|
557
|
-
queuedJobCount: number;
|
|
558
|
-
processingJobCount: number;
|
|
559
|
-
failedJobCount: number;
|
|
560
|
-
oldestCreatedAt: string | null;
|
|
561
|
-
newestCreatedAt: string | null;
|
|
562
|
-
latestError: string | null;
|
|
563
|
-
kinds: AsyncJobKind[];
|
|
564
|
-
};
|
|
565
|
-
declare function readAsyncJob(jobId: string): Promise<AsyncJob | null>;
|
|
566
|
-
declare function listAsyncJobs(): Promise<AsyncJob[]>;
|
|
567
|
-
declare function listAsyncJobsForRepo(params: {
|
|
568
|
-
repoRoot: string;
|
|
569
|
-
branchName?: string | null;
|
|
570
|
-
kind?: AsyncJobKind | null;
|
|
571
|
-
}): Promise<AsyncJob[]>;
|
|
572
|
-
declare function findPendingAsyncJob(params: {
|
|
573
|
-
repoRoot: string;
|
|
574
|
-
branchName: string | null;
|
|
575
|
-
kind: AsyncJobKind;
|
|
576
|
-
}): Promise<AsyncJob | null>;
|
|
577
|
-
declare function findFailedAsyncJob(params: {
|
|
578
|
-
repoRoot: string;
|
|
579
|
-
branchName: string | null;
|
|
580
|
-
kind: AsyncJobKind;
|
|
581
|
-
}): Promise<AsyncJob | null>;
|
|
582
|
-
declare function deleteAsyncJob(jobId: string): Promise<void>;
|
|
583
|
-
declare function summarizeAsyncJobs(params: {
|
|
584
|
-
repoRoot: string;
|
|
585
|
-
branchName?: string | null;
|
|
586
|
-
}): Promise<AsyncJobSummary>;
|
|
587
|
-
declare function pruneTerminalAsyncJobs(): Promise<void>;
|
|
588
|
-
type AwaitAsyncJobResult = {
|
|
589
|
-
status: "completed";
|
|
590
|
-
job: AsyncJob;
|
|
591
|
-
} | {
|
|
592
|
-
status: "failed";
|
|
593
|
-
job: AsyncJob;
|
|
594
|
-
} | {
|
|
595
|
-
status: "timeout";
|
|
596
|
-
job: AsyncJob | null;
|
|
597
|
-
};
|
|
598
|
-
declare function awaitAsyncJob(params: {
|
|
599
|
-
jobId: string;
|
|
600
|
-
timeoutMs: number;
|
|
601
|
-
pollIntervalMs?: number;
|
|
602
|
-
}): Promise<AwaitAsyncJobResult>;
|
|
603
|
-
|
|
604
566
|
type DrainerLogEvent = "submitted" | "claimed" | "uploading" | "server_accepted" | "server_completed" | "retrying" | "failed" | "completed" | "replaced" | "binding_cleared";
|
|
605
567
|
declare function drainerLogPath(): string;
|
|
606
568
|
|
|
607
569
|
declare function getDrainerLogPath(): string;
|
|
608
570
|
declare function getDrainerPidPath(): string;
|
|
609
571
|
|
|
610
|
-
export { AppDeltaResponse, AppProfileInput, type AsyncJob, type AsyncJobBase, type AsyncJobKind, type AsyncJobStatus, type AsyncJobSummary, type AwaitAsyncJobResult, CollabApiClient, CollabApproveMode, CollabApproveResult, CollabFinalizeTurnResult, type CollabInitQueuedResult, CollabMember, CollabRecordingPreflight, CollabStatus, type DrainerLogEvent, FINALIZE_JOB_LOCK_STALE_MS, FINALIZE_PREFLIGHT_FAILURE_CODES, type FinalizePreflightFailureCode, type InitJobPayload, InvitationScopeType, JsonObject, type LocalSnapshotRecord, MergeRequest, MergeRequestQueue, MergeRequestReview, type PendingFinalizeJob,
|
|
572
|
+
export { AppDeltaResponse, AppProfileInput, type AsyncJob, type AsyncJobBase, type AsyncJobKind, type AsyncJobStatus, type AsyncJobSummary, type AwaitAsyncJobResult, CollabApiClient, CollabApproveMode, CollabApproveResult, CollabFinalizeTurnResult, type CollabInitQueuedResult, CollabMember, CollabRecordingPreflight, CollabStatus, type DrainerLogEvent, FINALIZE_JOB_LOCK_STALE_MS, FINALIZE_PREFLIGHT_FAILURE_CODES, type FinalizePreflightFailureCode, type InitJobPayload, InvitationScopeType, JsonObject, type LocalSnapshotRecord, MergeRequest, MergeRequestQueue, MergeRequestReview, type PendingFinalizeJob, TurnUsagePayload, awaitAsyncJob, cleanStaleFinalizeJobLocks, collabApprove, collabCheckout, collabFinalizeTurn, collabInit, collabInitProcess, collabInitSubmit, collabInvite, collabList, collabListMembers, collabListMergeRequests, collabReconcile, collabRecordingPreflight, collabReject, collabRemix, collabRequestMerge, collabStatus, collabSync, collabSyncUpstream, collabUpdateMemberRole, collabView, deleteAsyncJob, drainAsyncJobs, drainPendingFinalizeQueue, drainerLogPath, findFailedAsyncJob, findPendingAsyncJob, forgetPendingFinalizeJob, getDrainerLogPath, getDrainerPidPath, getMemberRolesForScope, isFinalizePreflightFailureCode, listAsyncJobs, listAsyncJobsForRepo, listPendingFinalizeJobs, processPendingFinalizeJob, pruneTerminalAsyncJobs, readAsyncJob, readLocalSnapshot, readPendingFinalizeJob, requeuePendingFinalizeJob, summarizeAsyncJobs, updatePendingFinalizeJob, validateMemberRole };
|