@remixhq/core 0.1.19 → 0.1.21
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 +9 -1
- package/dist/api.js +1 -1
- package/dist/{chunk-C2FOZ3O7.js → chunk-YENZA6QR.js} +15 -0
- package/dist/collab.d.ts +9 -2
- package/dist/collab.js +7 -0
- package/dist/{contracts-DiVLvPTG.d.ts → contracts-CuTwLa6w.d.ts} +8 -0
- package/dist/history.d.ts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/package.json +1 -1
package/dist/api.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { CoreConfig } from './config.js';
|
|
2
2
|
import { T as TokenProvider } from './tokenProvider-BWTusyj4.js';
|
|
3
|
-
import { T as TurnUsage } from './contracts-
|
|
3
|
+
import { T as TurnUsage } from './contracts-CuTwLa6w.js';
|
|
4
4
|
import 'zod';
|
|
5
5
|
|
|
6
6
|
type HistoryImportProvider = "claude_code" | "cursor";
|
|
@@ -623,6 +623,14 @@ type ApiClient = {
|
|
|
623
623
|
limit?: number;
|
|
624
624
|
offset?: number;
|
|
625
625
|
}): Promise<Json>;
|
|
626
|
+
listMergeRequestInbox(params?: {
|
|
627
|
+
status?: string | string[];
|
|
628
|
+
kind?: string;
|
|
629
|
+
limit?: number;
|
|
630
|
+
offset?: number;
|
|
631
|
+
includeReview?: boolean;
|
|
632
|
+
includeDiffs?: boolean;
|
|
633
|
+
}): Promise<Json>;
|
|
626
634
|
openMergeRequest(sourceAppId: string): Promise<Json>;
|
|
627
635
|
getMergeRequestReview(mrId: string): Promise<Json>;
|
|
628
636
|
updateMergeRequest(mrId: string, payload: {
|
package/dist/api.js
CHANGED
|
@@ -283,6 +283,21 @@ function createApiClient(config, opts) {
|
|
|
283
283
|
const suffix = qs.toString() ? `?${qs.toString()}` : "";
|
|
284
284
|
return request(`/v1/merge-requests${suffix}`, { method: "GET" });
|
|
285
285
|
},
|
|
286
|
+
listMergeRequestInbox: (params) => {
|
|
287
|
+
const qs = new URLSearchParams();
|
|
288
|
+
if (Array.isArray(params?.status)) {
|
|
289
|
+
for (const status of params.status) qs.append("status", status);
|
|
290
|
+
} else if (typeof params?.status === "string") {
|
|
291
|
+
qs.set("status", params.status);
|
|
292
|
+
}
|
|
293
|
+
if (params?.kind) qs.set("kind", params.kind);
|
|
294
|
+
if (typeof params?.limit === "number") qs.set("limit", String(params.limit));
|
|
295
|
+
if (typeof params?.offset === "number") qs.set("offset", String(params.offset));
|
|
296
|
+
if (typeof params?.includeReview === "boolean") qs.set("includeReview", String(params.includeReview));
|
|
297
|
+
if (typeof params?.includeDiffs === "boolean") qs.set("includeDiffs", String(params.includeDiffs));
|
|
298
|
+
const suffix = qs.toString() ? `?${qs.toString()}` : "";
|
|
299
|
+
return request(`/v1/merge-requests/inbox${suffix}`, { method: "GET" });
|
|
300
|
+
},
|
|
286
301
|
openMergeRequest: (sourceAppId) => request("/v1/merge-requests", { method: "POST", body: JSON.stringify({ sourceAppId }) }),
|
|
287
302
|
getMergeRequestReview: (mrId) => request(`/v1/merge-requests/${encodeURIComponent(mrId)}/review`, { method: "GET" }),
|
|
288
303
|
updateMergeRequest: (mrId, payload) => request(`/v1/merge-requests/${encodeURIComponent(mrId)}`, { method: "PATCH", body: JSON.stringify(payload) }),
|
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, J as JsonObject, A as AppDeltaResponse, h as CollabStatus, i as MergeRequestReview } from './contracts-
|
|
2
|
-
export { j as AppHeadResponse, k as AppMember, l as AppMemberRole, m as AppReconcileResponse, n as CollabFinalizeTurnAutoSync, o as CollabFinalizeTurnMode, p as CollabPendingFinalizeState, q as CollabPendingFinalizeSummary, r as CollabRecordingPreflightStatus, s as CollabRepoStateKind, t as CollabStatusBlockedReason, u as CollabStatusRecommendedAction, v as CollabTurn, w as MembershipScopeType, x as MergeRequestStatus, y as ModelCall, O as OrganizationMember, z as OrganizationMemberRole, P as ProjectMember, B as ProjectMemberRole, R as ReconcilePreflightResponse, S as ServerToolUsage, D as SyncLocalResponse, E as SyncUpstreamResponse, T as TurnUsage, F as TurnUsageCaptureSource, G as TurnUsageConfidence, H 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, J as JsonObject, A as AppDeltaResponse, h as CollabStatus, i as MergeRequestReview } from './contracts-CuTwLa6w.js';
|
|
2
|
+
export { j as AppHeadResponse, k as AppMember, l as AppMemberRole, m as AppReconcileResponse, n as CollabFinalizeTurnAutoSync, o as CollabFinalizeTurnMode, p as CollabPendingFinalizeState, q as CollabPendingFinalizeSummary, r as CollabRecordingPreflightStatus, s as CollabRepoStateKind, t as CollabStatusBlockedReason, u as CollabStatusRecommendedAction, v as CollabTurn, w as MembershipScopeType, x as MergeRequestStatus, y as ModelCall, O as OrganizationMember, z as OrganizationMemberRole, P as ProjectMember, B as ProjectMemberRole, R as ReconcilePreflightResponse, S as ServerToolUsage, D as SyncLocalResponse, E as SyncUpstreamResponse, T as TurnUsage, F as TurnUsageCaptureSource, G as TurnUsageConfidence, H as TurnUsagePreviousPatch } from './contracts-CuTwLa6w.js';
|
|
3
3
|
import { B as BranchBindingMode } from './binding-WiIRI2fl.js';
|
|
4
4
|
|
|
5
5
|
declare function collabFinalizeTurn(params: {
|
|
@@ -139,6 +139,7 @@ type CollabInitQueuedResult = {
|
|
|
139
139
|
upstreamAppId: string;
|
|
140
140
|
dashboardUrl: string;
|
|
141
141
|
bindingPath: string;
|
|
142
|
+
repoFingerprint: string;
|
|
142
143
|
bindingMode: BranchBindingMode;
|
|
143
144
|
createdCanonicalFamily: boolean;
|
|
144
145
|
remoteUrl: string | null;
|
|
@@ -162,6 +163,7 @@ declare function collabInit(params: {
|
|
|
162
163
|
upstreamAppId: string;
|
|
163
164
|
dashboardUrl: string;
|
|
164
165
|
bindingPath: string;
|
|
166
|
+
repoFingerprint: string;
|
|
165
167
|
bindingMode: string;
|
|
166
168
|
createdCanonicalFamily: boolean;
|
|
167
169
|
remoteUrl: string | null;
|
|
@@ -175,6 +177,7 @@ declare function collabInit(params: {
|
|
|
175
177
|
upstreamAppId: string;
|
|
176
178
|
bindingPath: string;
|
|
177
179
|
repoRoot: string;
|
|
180
|
+
repoFingerprint: string;
|
|
178
181
|
bindingMode: string;
|
|
179
182
|
createdCanonicalFamily: boolean;
|
|
180
183
|
baselineStatus: InitBaselineStatus;
|
|
@@ -187,6 +190,7 @@ declare function collabInit(params: {
|
|
|
187
190
|
upstreamAppId: string;
|
|
188
191
|
bindingPath: string;
|
|
189
192
|
repoRoot: string;
|
|
193
|
+
repoFingerprint: string;
|
|
190
194
|
bindingMode: "lane" | "explicit_root";
|
|
191
195
|
createdCanonicalFamily: boolean;
|
|
192
196
|
baselineStatus: InitBaselineStatus;
|
|
@@ -209,6 +213,7 @@ declare function collabInitSubmit(params: {
|
|
|
209
213
|
upstreamAppId: string;
|
|
210
214
|
dashboardUrl: string;
|
|
211
215
|
bindingPath: string;
|
|
216
|
+
repoFingerprint: string;
|
|
212
217
|
bindingMode: string;
|
|
213
218
|
createdCanonicalFamily: boolean;
|
|
214
219
|
remoteUrl: string | null;
|
|
@@ -222,6 +227,7 @@ declare function collabInitSubmit(params: {
|
|
|
222
227
|
upstreamAppId: string;
|
|
223
228
|
bindingPath: string;
|
|
224
229
|
repoRoot: string;
|
|
230
|
+
repoFingerprint: string;
|
|
225
231
|
bindingMode: string;
|
|
226
232
|
createdCanonicalFamily: boolean;
|
|
227
233
|
baselineStatus: InitBaselineStatus;
|
|
@@ -234,6 +240,7 @@ declare function collabInitSubmit(params: {
|
|
|
234
240
|
upstreamAppId: string;
|
|
235
241
|
bindingPath: string;
|
|
236
242
|
repoRoot: string;
|
|
243
|
+
repoFingerprint: string;
|
|
237
244
|
bindingMode: "lane" | "explicit_root";
|
|
238
245
|
createdCanonicalFamily: boolean;
|
|
239
246
|
baselineStatus: InitBaselineStatus;
|
package/dist/collab.js
CHANGED
|
@@ -4459,6 +4459,7 @@ async function collabInit(params) {
|
|
|
4459
4459
|
upstreamAppId: existingBinding.upstreamAppId ?? existingBinding.currentAppId,
|
|
4460
4460
|
dashboardUrl: buildDashboardAppUrl(existingBinding.currentAppId),
|
|
4461
4461
|
bindingPath: getCollabBindingPath(repoRoot),
|
|
4462
|
+
repoFingerprint: existingBinding.repoFingerprint ?? repoFingerprint,
|
|
4462
4463
|
bindingMode: existingBinding.bindingMode,
|
|
4463
4464
|
createdCanonicalFamily: false,
|
|
4464
4465
|
remoteUrl: existingBinding.remoteUrl ?? remoteUrl,
|
|
@@ -4475,6 +4476,7 @@ async function collabInit(params) {
|
|
|
4475
4476
|
upstreamAppId: "",
|
|
4476
4477
|
dashboardUrl: "",
|
|
4477
4478
|
bindingPath: getCollabBindingPath(repoRoot),
|
|
4479
|
+
repoFingerprint,
|
|
4478
4480
|
bindingMode: "lane",
|
|
4479
4481
|
createdCanonicalFamily: false,
|
|
4480
4482
|
remoteUrl,
|
|
@@ -4575,6 +4577,7 @@ async function collabInit(params) {
|
|
|
4575
4577
|
upstreamAppId: boundUpstreamAppId2,
|
|
4576
4578
|
bindingPath: path9.join(repoRoot, ".remix", "config.json"),
|
|
4577
4579
|
repoRoot,
|
|
4580
|
+
repoFingerprint,
|
|
4578
4581
|
bindingMode: defaultBranch && branchName !== defaultBranch ? "lane" : "explicit_root",
|
|
4579
4582
|
createdCanonicalFamily: false,
|
|
4580
4583
|
baselineStatus: await resolveInitBaselineStatus({
|
|
@@ -4687,6 +4690,7 @@ async function collabInit(params) {
|
|
|
4687
4690
|
upstreamAppId: boundUpstreamAppId2,
|
|
4688
4691
|
bindingPath: bindingPath2,
|
|
4689
4692
|
repoRoot,
|
|
4693
|
+
repoFingerprint,
|
|
4690
4694
|
bindingMode: "lane",
|
|
4691
4695
|
createdCanonicalFamily: false,
|
|
4692
4696
|
baselineStatus: await resolveInitBaselineStatus({
|
|
@@ -4817,6 +4821,7 @@ async function collabInit(params) {
|
|
|
4817
4821
|
upstreamAppId: boundUpstreamAppId2,
|
|
4818
4822
|
bindingPath: bindingPath2,
|
|
4819
4823
|
repoRoot,
|
|
4824
|
+
repoFingerprint,
|
|
4820
4825
|
bindingMode: "lane",
|
|
4821
4826
|
createdCanonicalFamily: false,
|
|
4822
4827
|
baselineStatus: await resolveInitBaselineStatus({
|
|
@@ -5037,6 +5042,7 @@ async function collabInit(params) {
|
|
|
5037
5042
|
upstreamAppId: boundUpstreamAppId2,
|
|
5038
5043
|
dashboardUrl: buildDashboardAppUrl(boundCurrentAppId2),
|
|
5039
5044
|
bindingPath: bindingPath2,
|
|
5045
|
+
repoFingerprint,
|
|
5040
5046
|
bindingMode: bindingMode2,
|
|
5041
5047
|
createdCanonicalFamily: Boolean(params.forceNew),
|
|
5042
5048
|
remoteUrl,
|
|
@@ -5219,6 +5225,7 @@ async function collabInit(params) {
|
|
|
5219
5225
|
upstreamAppId: boundUpstreamAppId,
|
|
5220
5226
|
bindingPath,
|
|
5221
5227
|
repoRoot,
|
|
5228
|
+
repoFingerprint,
|
|
5222
5229
|
bindingMode,
|
|
5223
5230
|
createdCanonicalFamily: Boolean(params.forceNew),
|
|
5224
5231
|
baselineStatus,
|
|
@@ -592,6 +592,14 @@ type CollabApiClient = {
|
|
|
592
592
|
limit?: number;
|
|
593
593
|
offset?: number;
|
|
594
594
|
}): Promise<unknown>;
|
|
595
|
+
listMergeRequestInbox(params?: {
|
|
596
|
+
status?: string | string[];
|
|
597
|
+
kind?: string;
|
|
598
|
+
limit?: number;
|
|
599
|
+
offset?: number;
|
|
600
|
+
includeReview?: boolean;
|
|
601
|
+
includeDiffs?: boolean;
|
|
602
|
+
}): Promise<unknown>;
|
|
595
603
|
listCollabTurns(appId: string, params?: {
|
|
596
604
|
limit?: number;
|
|
597
605
|
offset?: number;
|
package/dist/history.d.ts
CHANGED
package/dist/index.d.ts
CHANGED
|
@@ -4,4 +4,4 @@ export { S as SessionStore, a as StoredSession, c as createStoredSessionTokenPro
|
|
|
4
4
|
export { createLocalSessionStore, createSupabaseAuthHelpers } from './auth.js';
|
|
5
5
|
export { AgentMemoryItem, AgentMemoryKind, AgentMemorySearchItem, AgentMemorySearchResponse, AgentMemorySummary, AgentMemoryTimelineResponse, ApiClient, AppContext, AppContextAccessPath, AppReconcileResponse, Bundle, BundlePlatform, BundleStatus, ChangeStepDiffResponse, InitiateBundleRequest, InvitationRecord, MergeRequest, MergeRequestReview, MergeRequestStatus, ReconcilePreflightResponse, SyncLocalResponse, SyncUpstreamResponse, createApiClient } from './api.js';
|
|
6
6
|
import 'zod';
|
|
7
|
-
import './contracts-
|
|
7
|
+
import './contracts-CuTwLa6w.js';
|
package/dist/index.js
CHANGED