@remixhq/core 0.1.45 → 0.1.47
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 +73 -3
- package/dist/api.js +1 -1
- package/dist/{chunk-OSHNZWYW.js → chunk-COO3TIHW.js} +31 -2
- package/dist/collab.d.ts +6 -3
- package/dist/collab.js +45 -2
- package/dist/{contracts-DTeSJnoC.d.ts → contracts-BAr3-IX5.d.ts} +62 -1
- package/dist/history.d.ts +2 -1
- package/dist/index.d.ts +2 -2
- 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-BP3YfJHm.js';
|
|
3
|
-
import { T as TurnUsage } from './contracts-
|
|
3
|
+
import { T as TurnUsage, S as SourceConversation } from './contracts-BAr3-IX5.js';
|
|
4
4
|
import 'zod';
|
|
5
5
|
|
|
6
6
|
type HistoryImportProvider = "claude_code" | "cursor";
|
|
@@ -72,6 +72,45 @@ type ImportHistoryResponse = {
|
|
|
72
72
|
};
|
|
73
73
|
|
|
74
74
|
type Json = Record<string, unknown> | unknown[] | string | number | boolean | null;
|
|
75
|
+
type ApiResponse<T, StatusCode extends number = number> = {
|
|
76
|
+
success: boolean;
|
|
77
|
+
message: string;
|
|
78
|
+
responseObject: T;
|
|
79
|
+
statusCode: StatusCode;
|
|
80
|
+
};
|
|
81
|
+
type AppEditQueueStatus = "pending" | "enqueued" | "processing" | "succeeded" | "failed" | "cancelled";
|
|
82
|
+
type AppEditQueueItem = {
|
|
83
|
+
id: string;
|
|
84
|
+
status: AppEditQueueStatus;
|
|
85
|
+
cancellationRequested: boolean;
|
|
86
|
+
prompt: string | null;
|
|
87
|
+
messageId: string | null;
|
|
88
|
+
attachments: Array<Record<string, unknown>>;
|
|
89
|
+
error: string | null;
|
|
90
|
+
createdAt: string;
|
|
91
|
+
updatedAt: string;
|
|
92
|
+
runAfter: string | null;
|
|
93
|
+
priority: number;
|
|
94
|
+
threadId: string | null;
|
|
95
|
+
};
|
|
96
|
+
type AppEditQueuePage = {
|
|
97
|
+
items: AppEditQueueItem[];
|
|
98
|
+
pageInfo: {
|
|
99
|
+
limit: number;
|
|
100
|
+
offset: number;
|
|
101
|
+
hasMore: boolean;
|
|
102
|
+
} | null;
|
|
103
|
+
};
|
|
104
|
+
type AppEditQueueCancellationRequested = {
|
|
105
|
+
id: string;
|
|
106
|
+
status: "enqueued" | "processing";
|
|
107
|
+
cancellationRequested: true;
|
|
108
|
+
};
|
|
109
|
+
type AppEditQueueCancelledItem = AppEditQueueItem & {
|
|
110
|
+
status: "cancelled";
|
|
111
|
+
};
|
|
112
|
+
type AppEditQueueCancellationResult = AppEditQueueCancelledItem | AppEditQueueCancellationRequested;
|
|
113
|
+
type AppEditQueueCancellationResponse = ApiResponse<AppEditQueueCancelledItem, 200> | ApiResponse<AppEditQueueCancellationRequested, 202>;
|
|
75
114
|
type MergeRequestStatus = "open" | "approved" | "rejected" | "merged" | "closed";
|
|
76
115
|
type MergeRequest = {
|
|
77
116
|
id: string;
|
|
@@ -569,6 +608,19 @@ type OpenAppPayload = {
|
|
|
569
608
|
url?: string;
|
|
570
609
|
correlationId?: string | null;
|
|
571
610
|
};
|
|
611
|
+
type AppThread = {
|
|
612
|
+
appId: string;
|
|
613
|
+
id: string;
|
|
614
|
+
title: string | null;
|
|
615
|
+
isMain: boolean;
|
|
616
|
+
isArchived: boolean;
|
|
617
|
+
originProvider: "cursor" | "claude" | "codex" | null;
|
|
618
|
+
titleState: string | null;
|
|
619
|
+
messageCount: number;
|
|
620
|
+
lastMessageAt: string | null;
|
|
621
|
+
createdAt?: string;
|
|
622
|
+
updatedAt?: string;
|
|
623
|
+
};
|
|
572
624
|
type AppProfileInput = {
|
|
573
625
|
primaryCategory?: string;
|
|
574
626
|
capabilities?: string[];
|
|
@@ -857,6 +909,15 @@ type ApiClient = {
|
|
|
857
909
|
}): Promise<Json>;
|
|
858
910
|
getApp(appId: string): Promise<Json>;
|
|
859
911
|
openApp(appId: string, payload?: OpenAppPayload): Promise<Json>;
|
|
912
|
+
listAppThreads(appId: string): Promise<Json>;
|
|
913
|
+
createAppThread(appId: string, payload?: {
|
|
914
|
+
title?: string;
|
|
915
|
+
}): Promise<Json>;
|
|
916
|
+
renameAppThread(appId: string, threadId: string, payload: {
|
|
917
|
+
title: string;
|
|
918
|
+
}): Promise<Json>;
|
|
919
|
+
archiveAppThread(appId: string, threadId: string): Promise<Json>;
|
|
920
|
+
openAppThread(appId: string, threadId: string): Promise<Json>;
|
|
860
921
|
updateAppStatus(appId: string, payload: {
|
|
861
922
|
status: "archived" | "ready";
|
|
862
923
|
cascadeBranchLanes?: boolean;
|
|
@@ -870,12 +931,15 @@ type ApiClient = {
|
|
|
870
931
|
includeHistorical?: boolean;
|
|
871
932
|
includeCosts?: boolean;
|
|
872
933
|
includeMergeRequestHistory?: boolean;
|
|
934
|
+
threadId?: string;
|
|
873
935
|
}): Promise<Json>;
|
|
874
936
|
getAppTimelineEvent(appId: string, eventId: string): Promise<Json>;
|
|
875
937
|
listAppEditQueue(appId: string, params?: {
|
|
876
938
|
limit?: number;
|
|
877
939
|
offset?: number;
|
|
878
|
-
|
|
940
|
+
threadId?: string;
|
|
941
|
+
}): Promise<ApiResponse<AppEditQueuePage>>;
|
|
942
|
+
cancelAppEditQueueItem(appId: string, queueItemId: string): Promise<AppEditQueueCancellationResponse>;
|
|
879
943
|
listAppJobQueue(appId: string, params?: {
|
|
880
944
|
limit?: number;
|
|
881
945
|
offset?: number;
|
|
@@ -1006,6 +1070,7 @@ type ApiClient = {
|
|
|
1006
1070
|
version?: string;
|
|
1007
1071
|
provider?: string;
|
|
1008
1072
|
};
|
|
1073
|
+
sourceConversation?: SourceConversation;
|
|
1009
1074
|
workspaceMetadata?: Record<string, unknown>;
|
|
1010
1075
|
idempotencyKey?: string;
|
|
1011
1076
|
}): Promise<Json>;
|
|
@@ -1013,6 +1078,7 @@ type ApiClient = {
|
|
|
1013
1078
|
limit?: number;
|
|
1014
1079
|
offset?: number;
|
|
1015
1080
|
idempotencyKey?: string;
|
|
1081
|
+
threadId?: string;
|
|
1016
1082
|
}): Promise<Json>;
|
|
1017
1083
|
startChangeStepReplay(appId: string, payload: {
|
|
1018
1084
|
prompt: string;
|
|
@@ -1045,6 +1111,7 @@ type ApiClient = {
|
|
|
1045
1111
|
version?: string;
|
|
1046
1112
|
provider?: string;
|
|
1047
1113
|
};
|
|
1114
|
+
sourceConversation?: SourceConversation;
|
|
1048
1115
|
workspaceMetadata?: Record<string, unknown>;
|
|
1049
1116
|
idempotencyKey?: string;
|
|
1050
1117
|
}): Promise<Json>;
|
|
@@ -1067,6 +1134,7 @@ type ApiClient = {
|
|
|
1067
1134
|
limit?: number;
|
|
1068
1135
|
offset?: number;
|
|
1069
1136
|
kinds?: AgentMemoryKind[];
|
|
1137
|
+
threadId?: string;
|
|
1070
1138
|
createdAfter?: string;
|
|
1071
1139
|
createdBefore?: string;
|
|
1072
1140
|
}): Promise<Json>;
|
|
@@ -1075,6 +1143,7 @@ type ApiClient = {
|
|
|
1075
1143
|
limit?: number;
|
|
1076
1144
|
offset?: number;
|
|
1077
1145
|
kinds?: AgentMemoryKind[];
|
|
1146
|
+
threadId?: string;
|
|
1078
1147
|
createdAfter?: string;
|
|
1079
1148
|
createdBefore?: string;
|
|
1080
1149
|
}): Promise<Json>;
|
|
@@ -1223,6 +1292,7 @@ type ApiClient = {
|
|
|
1223
1292
|
limit?: number;
|
|
1224
1293
|
offset?: number;
|
|
1225
1294
|
status?: string;
|
|
1295
|
+
threadId?: string;
|
|
1226
1296
|
currentPhase?: string;
|
|
1227
1297
|
createdAfter?: string;
|
|
1228
1298
|
createdBefore?: string;
|
|
@@ -1262,4 +1332,4 @@ declare function createApiClient(config: CoreConfig, opts?: {
|
|
|
1262
1332
|
defaultRequestTimeoutMs?: number;
|
|
1263
1333
|
}): ApiClient;
|
|
1264
1334
|
|
|
1265
|
-
export { type AgentMemoryItem, type AgentMemoryKind, type AgentMemorySearchItem, type AgentMemorySearchResponse, type AgentMemorySummary, type AgentMemoryTimelineResponse, type ApiClient, type AppContext, type AppContextAccessPath, type AppPreviewExpectedKind, type AppPreviewProcessStatus, type AppPreviewQuery, type AppPreviewResponse, type AppProfileInput, type AppReconcileResponse, type AppSandboxCommandRun, type AppShareLinkSummary, type Bundle, type BundlePlatform, type BundleStatus, type ChangeStepDiffResponse, type CreateAppShareLinkPayload, type DetectProjectRuntimeTargetsPayload, type HistoricalTurnRecord, type HistoryImportCaptureSource, type HistoryImportProvider, type HistoryImportRecordMetadata, type HistoryImportWorkspaceMetadata, type ImportHistoryRecordOutcome, type ImportHistoryRequest, type ImportHistoryResponse, type ImportProjectRuntimeEnvPayload, type InitiateBundleRequest, type InvitationRecord, type MergeRequest, type MergeRequestReview, type MergeRequestStatus, type MobileQrPayloads, type ProjectRuntimeEnvMetadata, type ProjectRuntimeEnvScope, type ProjectRuntimeTargetMetadata, type ProjectRuntimeTargetScope, type ProjectTrigger, type ProjectTriggerPayload, type ProjectTriggerScope, type ProjectTriggerStep, type ProjectTriggerStepPayload, type ReconcilePreflightResponse, type ResolveProjectRuntimeEnvForLocalPullResponse, type RunAppRuntimeTargetPayload, type RunAppSandboxCommandPayload, type RunAppTriggerEventPayload, type RunAppTriggerPayload, type RuntimeCommandKind, type RuntimeTargetKind, type SetProjectRuntimeEnvPayload, type SetProjectRuntimeTargetPayload, type SyncLocalResponse, type SyncUpstreamResponse, type TriggerEventMetadata, type TriggerEventSource, type TriggerIntegrationStatus, type TriggerMode, type TriggerRun, type TriggerStepRun, type TriggerStepType, type UpdateProjectTriggerPayload, createApiClient };
|
|
1335
|
+
export { type AgentMemoryItem, type AgentMemoryKind, type AgentMemorySearchItem, type AgentMemorySearchResponse, type AgentMemorySummary, type AgentMemoryTimelineResponse, type ApiClient, type AppContext, type AppContextAccessPath, type AppEditQueueCancellationRequested, type AppEditQueueCancellationResponse, type AppEditQueueCancellationResult, type AppEditQueueCancelledItem, type AppEditQueueItem, type AppEditQueuePage, type AppEditQueueStatus, type AppPreviewExpectedKind, type AppPreviewProcessStatus, type AppPreviewQuery, type AppPreviewResponse, type AppProfileInput, type AppReconcileResponse, type AppSandboxCommandRun, type AppShareLinkSummary, type AppThread, type Bundle, type BundlePlatform, type BundleStatus, type ChangeStepDiffResponse, type CreateAppShareLinkPayload, type DetectProjectRuntimeTargetsPayload, type HistoricalTurnRecord, type HistoryImportCaptureSource, type HistoryImportProvider, type HistoryImportRecordMetadata, type HistoryImportWorkspaceMetadata, type ImportHistoryRecordOutcome, type ImportHistoryRequest, type ImportHistoryResponse, type ImportProjectRuntimeEnvPayload, type InitiateBundleRequest, type InvitationRecord, type MergeRequest, type MergeRequestReview, type MergeRequestStatus, type MobileQrPayloads, type ProjectRuntimeEnvMetadata, type ProjectRuntimeEnvScope, type ProjectRuntimeTargetMetadata, type ProjectRuntimeTargetScope, type ProjectTrigger, type ProjectTriggerPayload, type ProjectTriggerScope, type ProjectTriggerStep, type ProjectTriggerStepPayload, type ReconcilePreflightResponse, type ResolveProjectRuntimeEnvForLocalPullResponse, type RunAppRuntimeTargetPayload, type RunAppSandboxCommandPayload, type RunAppTriggerEventPayload, type RunAppTriggerPayload, type RuntimeCommandKind, type RuntimeTargetKind, type SetProjectRuntimeEnvPayload, type SetProjectRuntimeTargetPayload, type SyncLocalResponse, type SyncUpstreamResponse, type TriggerEventMetadata, type TriggerEventSource, type TriggerIntegrationStatus, type TriggerMode, type TriggerRun, type TriggerStepRun, type TriggerStepType, type UpdateProjectTriggerPayload, createApiClient };
|
package/dist/api.js
CHANGED
|
@@ -74,6 +74,7 @@ function buildAppTimelineQuery(params) {
|
|
|
74
74
|
const qs = new URLSearchParams();
|
|
75
75
|
if (typeof params?.limit === "number") qs.set("limit", String(params.limit));
|
|
76
76
|
if (params?.cursor) qs.set("cursor", params.cursor);
|
|
77
|
+
if (params?.threadId) qs.set("threadId", params.threadId);
|
|
77
78
|
if (typeof params?.includeHistorical === "boolean") qs.set("includeHistorical", String(params.includeHistorical));
|
|
78
79
|
if (typeof params?.includeCosts === "boolean") qs.set("includeCosts", String(params.includeCosts));
|
|
79
80
|
if (typeof params?.includeMergeRequestHistory === "boolean") {
|
|
@@ -82,7 +83,9 @@ function buildAppTimelineQuery(params) {
|
|
|
82
83
|
return suffix(qs);
|
|
83
84
|
}
|
|
84
85
|
function buildAppEditQueueQuery(params) {
|
|
85
|
-
|
|
86
|
+
const qs = new URLSearchParams(buildPaginationQuery(params).replace(/^\?/, ""));
|
|
87
|
+
if (params?.threadId) qs.set("threadId", params.threadId);
|
|
88
|
+
return suffix(qs);
|
|
86
89
|
}
|
|
87
90
|
function buildAppJobQueueQuery(params) {
|
|
88
91
|
const qs = new URLSearchParams();
|
|
@@ -393,12 +396,34 @@ function createApiClient(config, opts) {
|
|
|
393
396
|
body: JSON.stringify(payload)
|
|
394
397
|
}),
|
|
395
398
|
openApp: (appId, payload) => request(`/v1/apps/${encodeURIComponent(appId)}/open`, { method: "POST", body: JSON.stringify(payload ?? {}) }),
|
|
399
|
+
listAppThreads: (appId) => request(`/v1/apps/${encodeURIComponent(appId)}/threads`, { method: "GET" }),
|
|
400
|
+
createAppThread: (appId, payload) => request(`/v1/apps/${encodeURIComponent(appId)}/threads`, {
|
|
401
|
+
method: "POST",
|
|
402
|
+
body: JSON.stringify(payload ?? {})
|
|
403
|
+
}),
|
|
404
|
+
renameAppThread: (appId, threadId, payload) => request(`/v1/apps/${encodeURIComponent(appId)}/threads/${encodeURIComponent(threadId)}`, {
|
|
405
|
+
method: "PATCH",
|
|
406
|
+
body: JSON.stringify(payload)
|
|
407
|
+
}),
|
|
408
|
+
archiveAppThread: (appId, threadId) => request(`/v1/apps/${encodeURIComponent(appId)}/threads/${encodeURIComponent(threadId)}/archive`, {
|
|
409
|
+
method: "POST",
|
|
410
|
+
body: JSON.stringify({})
|
|
411
|
+
}),
|
|
412
|
+
openAppThread: (appId, threadId) => request(`/v1/apps/${encodeURIComponent(appId)}/threads/${encodeURIComponent(threadId)}/open`, {
|
|
413
|
+
method: "POST",
|
|
414
|
+
body: JSON.stringify({})
|
|
415
|
+
}),
|
|
396
416
|
getAppContext: (appId) => request(`/v1/apps/${encodeURIComponent(appId)}/context`, { method: "GET" }),
|
|
397
417
|
getAppOverview: (appId) => request(`/v1/apps/${encodeURIComponent(appId)}/overview`, { method: "GET" }),
|
|
398
418
|
getAppMergePreview: (appId) => request(`/v1/apps/${encodeURIComponent(appId)}/merge-preview`, { method: "GET" }),
|
|
399
419
|
listAppTimeline: (appId, params) => request(`/v1/apps/${encodeURIComponent(appId)}/timeline${buildAppTimelineQuery(params)}`, { method: "GET" }),
|
|
400
420
|
getAppTimelineEvent: (appId, eventId) => request(`/v1/apps/${encodeURIComponent(appId)}/timeline/${encodeURIComponent(eventId)}`, { method: "GET" }),
|
|
401
|
-
listAppEditQueue: (appId, params) => request(`/v1/apps/${encodeURIComponent(appId)}/edit-queue${buildAppEditQueueQuery(params)}`, {
|
|
421
|
+
listAppEditQueue: (appId, params) => request(`/v1/apps/${encodeURIComponent(appId)}/edit-queue${buildAppEditQueueQuery(params)}`, {
|
|
422
|
+
method: "GET"
|
|
423
|
+
}),
|
|
424
|
+
cancelAppEditQueueItem: (appId, queueItemId) => request(`/v1/apps/${encodeURIComponent(appId)}/edit-queue/${encodeURIComponent(queueItemId)}`, {
|
|
425
|
+
method: "DELETE"
|
|
426
|
+
}),
|
|
402
427
|
listAppJobQueue: (appId, params) => request(`/v1/apps/${encodeURIComponent(appId)}/job-queue${buildAppJobQueueQuery(params)}`, { method: "GET" }),
|
|
403
428
|
getMergeRequest: (mrId) => request(`/v1/merge-requests/${encodeURIComponent(mrId)}`, { method: "GET" }),
|
|
404
429
|
presignImportUpload: (payload) => request("/v1/apps/import/upload/presign", { method: "POST", body: JSON.stringify(payload) }),
|
|
@@ -422,6 +447,7 @@ function createApiClient(config, opts) {
|
|
|
422
447
|
if (params?.limit !== void 0) qs.set("limit", String(params.limit));
|
|
423
448
|
if (params?.offset !== void 0) qs.set("offset", String(params.offset));
|
|
424
449
|
if (params?.idempotencyKey) qs.set("idempotencyKey", params.idempotencyKey);
|
|
450
|
+
if (params?.threadId) qs.set("threadId", params.threadId);
|
|
425
451
|
const suffix2 = qs.toString() ? `?${qs.toString()}` : "";
|
|
426
452
|
return request(`/v1/apps/${encodeURIComponent(appId)}/change-steps${suffix2}`, { method: "GET" });
|
|
427
453
|
},
|
|
@@ -455,6 +481,7 @@ function createApiClient(config, opts) {
|
|
|
455
481
|
if (params?.offset !== void 0) qs.set("offset", String(params.offset));
|
|
456
482
|
if (params?.createdAfter) qs.set("createdAfter", params.createdAfter);
|
|
457
483
|
if (params?.createdBefore) qs.set("createdBefore", params.createdBefore);
|
|
484
|
+
if (params?.threadId) qs.set("threadId", params.threadId);
|
|
458
485
|
if (params?.kinds?.length) {
|
|
459
486
|
for (const kind of params.kinds) qs.append("kinds", kind);
|
|
460
487
|
}
|
|
@@ -468,6 +495,7 @@ function createApiClient(config, opts) {
|
|
|
468
495
|
if (params.offset !== void 0) qs.set("offset", String(params.offset));
|
|
469
496
|
if (params.createdAfter) qs.set("createdAfter", params.createdAfter);
|
|
470
497
|
if (params.createdBefore) qs.set("createdBefore", params.createdBefore);
|
|
498
|
+
if (params.threadId) qs.set("threadId", params.threadId);
|
|
471
499
|
if (params.kinds?.length) {
|
|
472
500
|
for (const kind of params.kinds) qs.append("kinds", kind);
|
|
473
501
|
}
|
|
@@ -603,6 +631,7 @@ function createApiClient(config, opts) {
|
|
|
603
631
|
if (typeof params?.limit === "number") qs.set("limit", String(params.limit));
|
|
604
632
|
if (typeof params?.offset === "number") qs.set("offset", String(params.offset));
|
|
605
633
|
if (params?.status) qs.set("status", params.status);
|
|
634
|
+
if (params?.threadId) qs.set("threadId", params.threadId);
|
|
606
635
|
if (params?.currentPhase) qs.set("currentPhase", params.currentPhase);
|
|
607
636
|
if (params?.createdAfter) qs.set("createdAfter", params.createdAfter);
|
|
608
637
|
if (params?.createdBefore) qs.set("createdBefore", params.createdBefore);
|
package/dist/collab.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { C as CollabApiClient, a as TurnUsagePayload, b as CollabFinalizeTurnResult, c as CollabRecordingPreflight, d as CollabApproveMode, e as CollabApprovalStrategy, f as CollabApproveResult, M as MergeRequestQueue, g as MergeRequest, I as InvitationScopeType, h as CollabMember, A as AppProfileInput, J as JsonObject, i as AppDeltaResponse, j as CollabStatus, k as MergeRequestReview } from './contracts-
|
|
2
|
-
export { l as AppHeadResponse, m as AppMember, n as AppMemberRole, o as AppReconcileResponse, p as CollabFinalizeTurnAutoSync, q as CollabFinalizeTurnMode, r as CollabPendingFinalizeState, s as CollabPendingFinalizeSummary, t as CollabRecordingPreflightStatus, u as CollabRepoStateKind, v as CollabStatusBlockedReason, w as CollabStatusRecommendedAction, x as CollabTurn, y as MembershipScopeType, z as MergeRequestStatus, B as ModelCall, O as OrganizationMember, D as OrganizationMemberRole, P as ProjectMember, E as ProjectMemberRole, R as ReconcilePreflightResponse,
|
|
1
|
+
import { C as CollabApiClient, S as SourceConversation, a as TurnUsagePayload, b as CollabFinalizeTurnResult, c as CollabRecordingPreflight, d as CollabApproveMode, e as CollabApprovalStrategy, f as CollabApproveResult, M as MergeRequestQueue, g as MergeRequest, I as InvitationScopeType, h as CollabMember, A as AppProfileInput, J as JsonObject, i as AppDeltaResponse, j as CollabStatus, k as MergeRequestReview } from './contracts-BAr3-IX5.js';
|
|
2
|
+
export { l as AppHeadResponse, m as AppMember, n as AppMemberRole, o as AppReconcileResponse, p as CollabFinalizeTurnAutoSync, q as CollabFinalizeTurnMode, r as CollabPendingFinalizeState, s as CollabPendingFinalizeSummary, t as CollabRecordingPreflightStatus, u as CollabRepoStateKind, v as CollabStatusBlockedReason, w as CollabStatusRecommendedAction, x as CollabTurn, y as MembershipScopeType, z as MergeRequestStatus, B as ModelCall, O as OrganizationMember, D as OrganizationMemberRole, P as ProjectMember, E as ProjectMemberRole, R as ReconcilePreflightResponse, F as ServerToolUsage, G as SourceConversationSchema, H as SyncLocalResponse, K as SyncUpstreamResponse, T as TurnUsage, L as TurnUsageCaptureSource, N as TurnUsageConfidence, Q as TurnUsagePreviousPatch } from './contracts-BAr3-IX5.js';
|
|
3
3
|
import { B as BranchBindingMode } from './binding-WiIRI2fl.js';
|
|
4
|
+
import 'zod';
|
|
4
5
|
|
|
5
6
|
declare function collabFinalizeTurn(params: {
|
|
6
7
|
api: CollabApiClient;
|
|
@@ -18,6 +19,7 @@ declare function collabFinalizeTurn(params: {
|
|
|
18
19
|
version?: string;
|
|
19
20
|
provider?: string;
|
|
20
21
|
};
|
|
22
|
+
sourceConversation?: SourceConversation | null;
|
|
21
23
|
turnUsage?: TurnUsagePayload | null;
|
|
22
24
|
/**
|
|
23
25
|
* ISO-8601 timestamp of when the user actually typed/submitted this prompt
|
|
@@ -482,6 +484,7 @@ type PendingFinalizeJob = {
|
|
|
482
484
|
currentAppId: string;
|
|
483
485
|
laneId: string | null;
|
|
484
486
|
threadId: string | null;
|
|
487
|
+
sourceConversation?: SourceConversation | null;
|
|
485
488
|
branchName: string | null;
|
|
486
489
|
prompt: string;
|
|
487
490
|
assistantResponse: string;
|
|
@@ -575,4 +578,4 @@ declare function drainerLogPath(): string;
|
|
|
575
578
|
declare function getDrainerLogPath(): string;
|
|
576
579
|
declare function getDrainerPidPath(): string;
|
|
577
580
|
|
|
578
|
-
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 };
|
|
581
|
+
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, SourceConversation, 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 };
|
package/dist/collab.js
CHANGED
|
@@ -40,6 +40,31 @@ import {
|
|
|
40
40
|
RemixError
|
|
41
41
|
} from "./chunk-7XJGOKEO.js";
|
|
42
42
|
|
|
43
|
+
// src/application/collab/contracts.ts
|
|
44
|
+
import { z } from "zod";
|
|
45
|
+
var sourceId = z.string().trim().min(1).max(500);
|
|
46
|
+
var sourceTurnIds = {
|
|
47
|
+
nativeTurnId: sourceId.optional(),
|
|
48
|
+
turnId: sourceId.optional()
|
|
49
|
+
};
|
|
50
|
+
var SourceConversationSchema = z.discriminatedUnion("provider", [
|
|
51
|
+
z.object({
|
|
52
|
+
provider: z.literal("cursor"),
|
|
53
|
+
conversationId: sourceId,
|
|
54
|
+
...sourceTurnIds
|
|
55
|
+
}).strict(),
|
|
56
|
+
z.object({
|
|
57
|
+
provider: z.literal("claude"),
|
|
58
|
+
sessionId: sourceId,
|
|
59
|
+
...sourceTurnIds
|
|
60
|
+
}).strict(),
|
|
61
|
+
z.object({
|
|
62
|
+
provider: z.literal("codex"),
|
|
63
|
+
sessionId: sourceId,
|
|
64
|
+
...sourceTurnIds
|
|
65
|
+
}).strict()
|
|
66
|
+
]);
|
|
67
|
+
|
|
43
68
|
// src/application/collab/appDeltaCache.ts
|
|
44
69
|
var APP_DELTA_CACHE_TTL_MS = 5e3;
|
|
45
70
|
var appDeltaCache = /* @__PURE__ */ new Map();
|
|
@@ -1060,6 +1085,7 @@ async function cleanStaleFinalizeJobLocks() {
|
|
|
1060
1085
|
}
|
|
1061
1086
|
function normalizeJob2(input) {
|
|
1062
1087
|
const now = (/* @__PURE__ */ new Date()).toISOString();
|
|
1088
|
+
const sourceConversation = SourceConversationSchema.safeParse(input.sourceConversation);
|
|
1063
1089
|
return {
|
|
1064
1090
|
schemaVersion: 1,
|
|
1065
1091
|
id: input.id ?? randomUUID3(),
|
|
@@ -1069,6 +1095,7 @@ function normalizeJob2(input) {
|
|
|
1069
1095
|
currentAppId: input.currentAppId,
|
|
1070
1096
|
laneId: input.laneId ?? null,
|
|
1071
1097
|
threadId: input.threadId ?? null,
|
|
1098
|
+
sourceConversation: sourceConversation.success ? sourceConversation.data : null,
|
|
1072
1099
|
branchName: input.branchName ?? null,
|
|
1073
1100
|
prompt: input.prompt,
|
|
1074
1101
|
assistantResponse: input.assistantResponse,
|
|
@@ -1104,6 +1131,7 @@ async function readPendingFinalizeJob(jobId) {
|
|
|
1104
1131
|
currentAppId: String(parsed.currentAppId ?? ""),
|
|
1105
1132
|
laneId: parsed.laneId ?? null,
|
|
1106
1133
|
threadId: parsed.threadId ?? null,
|
|
1134
|
+
sourceConversation: parsed.sourceConversation ?? null,
|
|
1107
1135
|
branchName: parsed.branchName ?? null,
|
|
1108
1136
|
prompt: String(parsed.prompt ?? ""),
|
|
1109
1137
|
assistantResponse: String(parsed.assistantResponse ?? ""),
|
|
@@ -3190,6 +3218,7 @@ async function processClaimedPendingFinalizeJobInner(params) {
|
|
|
3190
3218
|
prompt: job.prompt,
|
|
3191
3219
|
assistantResponse: job.assistantResponse,
|
|
3192
3220
|
actor,
|
|
3221
|
+
sourceConversation: job.sourceConversation ?? void 0,
|
|
3193
3222
|
workspaceMetadata: buildWorkspaceMetadata({
|
|
3194
3223
|
repoRoot: job.repoRoot,
|
|
3195
3224
|
branchName: job.branchName,
|
|
@@ -3391,6 +3420,7 @@ async function processClaimedPendingFinalizeJobInner(params) {
|
|
|
3391
3420
|
insertions: diffResult.stats.insertions,
|
|
3392
3421
|
deletions: diffResult.stats.deletions,
|
|
3393
3422
|
actor,
|
|
3423
|
+
sourceConversation: job.sourceConversation ?? void 0,
|
|
3394
3424
|
workspaceMetadata: buildWorkspaceMetadata({
|
|
3395
3425
|
repoRoot: job.repoRoot,
|
|
3396
3426
|
branchName: job.branchName,
|
|
@@ -3468,6 +3498,7 @@ async function enqueueCapturedFinalizeTurn(params) {
|
|
|
3468
3498
|
currentAppId: params.currentAppId,
|
|
3469
3499
|
laneId: params.laneId,
|
|
3470
3500
|
threadId: params.threadId,
|
|
3501
|
+
sourceConversation: params.sourceConversation ?? null,
|
|
3471
3502
|
branchName: params.branchName,
|
|
3472
3503
|
prompt: params.prompt,
|
|
3473
3504
|
assistantResponse: params.assistantResponse,
|
|
@@ -3618,7 +3649,8 @@ async function recordConversationOnlyTurn(params) {
|
|
|
3618
3649
|
localCommitHash: params.localCommitHash ?? null,
|
|
3619
3650
|
repoState: params.repoState,
|
|
3620
3651
|
prompt: params.prompt,
|
|
3621
|
-
assistantResponse: params.assistantResponse
|
|
3652
|
+
assistantResponse: params.assistantResponse,
|
|
3653
|
+
sourceConversation: params.sourceConversation ?? null
|
|
3622
3654
|
});
|
|
3623
3655
|
const collabTurnResp = await params.api.createCollabTurn(params.binding.currentAppId, {
|
|
3624
3656
|
threadId: params.binding.threadId ?? void 0,
|
|
@@ -3626,6 +3658,7 @@ async function recordConversationOnlyTurn(params) {
|
|
|
3626
3658
|
prompt: params.prompt,
|
|
3627
3659
|
assistantResponse: params.assistantResponse,
|
|
3628
3660
|
actor: params.actor,
|
|
3661
|
+
sourceConversation: params.sourceConversation ?? void 0,
|
|
3629
3662
|
workspaceMetadata: buildConversationOnlyWorkspaceMetadata({
|
|
3630
3663
|
repoRoot: params.repoRoot,
|
|
3631
3664
|
branchName: params.binding.branchName,
|
|
@@ -3692,6 +3725,7 @@ async function collabFinalizeTurn(params) {
|
|
|
3692
3725
|
}
|
|
3693
3726
|
const prompt = params.prompt.trim();
|
|
3694
3727
|
const assistantResponse = params.assistantResponse.trim();
|
|
3728
|
+
const sourceConversation = params.sourceConversation ? SourceConversationSchema.parse(params.sourceConversation) : null;
|
|
3695
3729
|
if (!prompt) throw new RemixError("Prompt is required.", { exitCode: 2 });
|
|
3696
3730
|
if (!assistantResponse) throw new RemixError("Assistant response is required.", { exitCode: 2 });
|
|
3697
3731
|
if (params.diff?.trim()) {
|
|
@@ -3754,6 +3788,7 @@ async function collabFinalizeTurn(params) {
|
|
|
3754
3788
|
assistantResponse,
|
|
3755
3789
|
explicitIdempotencyKey: params.idempotencyKey,
|
|
3756
3790
|
actor: params.actor,
|
|
3791
|
+
sourceConversation,
|
|
3757
3792
|
turnUsage: params.turnUsage,
|
|
3758
3793
|
promptedAt: params.promptedAt,
|
|
3759
3794
|
repoState: "init_post_pending",
|
|
@@ -3805,6 +3840,7 @@ async function collabFinalizeTurn(params) {
|
|
|
3805
3840
|
assistantResponse,
|
|
3806
3841
|
explicitIdempotencyKey: params.idempotencyKey,
|
|
3807
3842
|
actor: params.actor,
|
|
3843
|
+
sourceConversation,
|
|
3808
3844
|
turnUsage: params.turnUsage,
|
|
3809
3845
|
promptedAt: params.promptedAt,
|
|
3810
3846
|
repoState: "missing_head",
|
|
@@ -3823,6 +3859,7 @@ async function collabFinalizeTurn(params) {
|
|
|
3823
3859
|
assistantResponse,
|
|
3824
3860
|
explicitIdempotencyKey: params.idempotencyKey,
|
|
3825
3861
|
actor: params.actor,
|
|
3862
|
+
sourceConversation,
|
|
3826
3863
|
turnUsage: params.turnUsage,
|
|
3827
3864
|
promptedAt: params.promptedAt,
|
|
3828
3865
|
repoState: detected.repoState,
|
|
@@ -3847,6 +3884,7 @@ async function collabFinalizeTurn(params) {
|
|
|
3847
3884
|
assistantResponse,
|
|
3848
3885
|
explicitIdempotencyKey: params.idempotencyKey,
|
|
3849
3886
|
actor: params.actor,
|
|
3887
|
+
sourceConversation,
|
|
3850
3888
|
turnUsage: params.turnUsage,
|
|
3851
3889
|
promptedAt: params.promptedAt,
|
|
3852
3890
|
repoState: "external_local_base_changed",
|
|
@@ -3876,6 +3914,7 @@ async function collabFinalizeTurn(params) {
|
|
|
3876
3914
|
assistantResponse,
|
|
3877
3915
|
explicitIdempotencyKey: params.idempotencyKey,
|
|
3878
3916
|
actor: params.actor,
|
|
3917
|
+
sourceConversation,
|
|
3879
3918
|
turnUsage: params.turnUsage,
|
|
3880
3919
|
promptedAt: params.promptedAt,
|
|
3881
3920
|
repoState: "baseline_missing",
|
|
@@ -3909,7 +3948,8 @@ async function collabFinalizeTurn(params) {
|
|
|
3909
3948
|
currentSnapshotHash: snapshot.snapshotHash,
|
|
3910
3949
|
repoState: detected.repoState,
|
|
3911
3950
|
prompt,
|
|
3912
|
-
assistantResponse
|
|
3951
|
+
assistantResponse,
|
|
3952
|
+
sourceConversation
|
|
3913
3953
|
});
|
|
3914
3954
|
const awaitingDeadlineMs = typeof params.awaitingUsageDeadlineMs === "number" && params.awaitingUsageDeadlineMs > 0 ? params.awaitingUsageDeadlineMs : null;
|
|
3915
3955
|
const nextRetryAt = awaitingDeadlineMs === null ? null : new Date(Date.now() + awaitingDeadlineMs).toISOString();
|
|
@@ -3919,6 +3959,7 @@ async function collabFinalizeTurn(params) {
|
|
|
3919
3959
|
currentAppId: binding.currentAppId,
|
|
3920
3960
|
laneId: binding.laneId,
|
|
3921
3961
|
threadId: binding.threadId,
|
|
3962
|
+
sourceConversation,
|
|
3922
3963
|
branchName: binding.branchName,
|
|
3923
3964
|
prompt,
|
|
3924
3965
|
assistantResponse,
|
|
@@ -3931,6 +3972,7 @@ async function collabFinalizeTurn(params) {
|
|
|
3931
3972
|
remoteUrl: binding.remoteUrl,
|
|
3932
3973
|
defaultBranch: binding.defaultBranch,
|
|
3933
3974
|
actor: params.actor ?? null,
|
|
3975
|
+
sourceConversation,
|
|
3934
3976
|
repoState: detected.repoState,
|
|
3935
3977
|
turnUsage: params.turnUsage ?? null,
|
|
3936
3978
|
promptedAt: typeof params.promptedAt === "string" && params.promptedAt.trim() ? params.promptedAt.trim() : null
|
|
@@ -7823,6 +7865,7 @@ async function drainAsyncJobs(opts) {
|
|
|
7823
7865
|
export {
|
|
7824
7866
|
FINALIZE_JOB_LOCK_STALE_MS,
|
|
7825
7867
|
FINALIZE_PREFLIGHT_FAILURE_CODES,
|
|
7868
|
+
SourceConversationSchema,
|
|
7826
7869
|
awaitAsyncJob,
|
|
7827
7870
|
cleanStaleFinalizeJobLocks,
|
|
7828
7871
|
collabApprove,
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
|
|
1
3
|
type JsonObject = Record<string, any>;
|
|
2
4
|
type AppProfileInput = {
|
|
3
5
|
primaryCategory?: string;
|
|
@@ -66,6 +68,53 @@ type TurnUsagePayload = {
|
|
|
66
68
|
currentTurn: TurnUsage | null;
|
|
67
69
|
previousTurn: TurnUsagePreviousPatch | null;
|
|
68
70
|
};
|
|
71
|
+
declare const SourceConversationSchema: z.ZodDiscriminatedUnion<"provider", [z.ZodObject<{
|
|
72
|
+
nativeTurnId: z.ZodOptional<z.ZodString>;
|
|
73
|
+
turnId: z.ZodOptional<z.ZodString>;
|
|
74
|
+
provider: z.ZodLiteral<"cursor">;
|
|
75
|
+
conversationId: z.ZodString;
|
|
76
|
+
}, "strict", z.ZodTypeAny, {
|
|
77
|
+
provider: "cursor";
|
|
78
|
+
conversationId: string;
|
|
79
|
+
nativeTurnId?: string | undefined;
|
|
80
|
+
turnId?: string | undefined;
|
|
81
|
+
}, {
|
|
82
|
+
provider: "cursor";
|
|
83
|
+
conversationId: string;
|
|
84
|
+
nativeTurnId?: string | undefined;
|
|
85
|
+
turnId?: string | undefined;
|
|
86
|
+
}>, z.ZodObject<{
|
|
87
|
+
nativeTurnId: z.ZodOptional<z.ZodString>;
|
|
88
|
+
turnId: z.ZodOptional<z.ZodString>;
|
|
89
|
+
provider: z.ZodLiteral<"claude">;
|
|
90
|
+
sessionId: z.ZodString;
|
|
91
|
+
}, "strict", z.ZodTypeAny, {
|
|
92
|
+
provider: "claude";
|
|
93
|
+
sessionId: string;
|
|
94
|
+
nativeTurnId?: string | undefined;
|
|
95
|
+
turnId?: string | undefined;
|
|
96
|
+
}, {
|
|
97
|
+
provider: "claude";
|
|
98
|
+
sessionId: string;
|
|
99
|
+
nativeTurnId?: string | undefined;
|
|
100
|
+
turnId?: string | undefined;
|
|
101
|
+
}>, z.ZodObject<{
|
|
102
|
+
nativeTurnId: z.ZodOptional<z.ZodString>;
|
|
103
|
+
turnId: z.ZodOptional<z.ZodString>;
|
|
104
|
+
provider: z.ZodLiteral<"codex">;
|
|
105
|
+
sessionId: z.ZodString;
|
|
106
|
+
}, "strict", z.ZodTypeAny, {
|
|
107
|
+
provider: "codex";
|
|
108
|
+
sessionId: string;
|
|
109
|
+
nativeTurnId?: string | undefined;
|
|
110
|
+
turnId?: string | undefined;
|
|
111
|
+
}, {
|
|
112
|
+
provider: "codex";
|
|
113
|
+
sessionId: string;
|
|
114
|
+
nativeTurnId?: string | undefined;
|
|
115
|
+
turnId?: string | undefined;
|
|
116
|
+
}>]>;
|
|
117
|
+
type SourceConversation = z.infer<typeof SourceConversationSchema>;
|
|
69
118
|
type MergeRequestStatus = "open" | "approved" | "rejected" | "merged" | "closed" | "manual_resolution_required";
|
|
70
119
|
type MergeRequestQueue = "reviewable" | "created_by_me" | "app_reviewable" | "app_outgoing" | "app_related_visible";
|
|
71
120
|
type MergeRequest = {
|
|
@@ -486,6 +535,15 @@ type CollabApiClient = {
|
|
|
486
535
|
offset?: number;
|
|
487
536
|
}): Promise<unknown>;
|
|
488
537
|
getApp(appId: string): Promise<unknown>;
|
|
538
|
+
listAppThreads(appId: string): Promise<unknown>;
|
|
539
|
+
createAppThread(appId: string, payload?: {
|
|
540
|
+
title?: string;
|
|
541
|
+
}): Promise<unknown>;
|
|
542
|
+
renameAppThread(appId: string, threadId: string, payload: {
|
|
543
|
+
title: string;
|
|
544
|
+
}): Promise<unknown>;
|
|
545
|
+
archiveAppThread(appId: string, threadId: string): Promise<unknown>;
|
|
546
|
+
openAppThread(appId: string, threadId: string): Promise<unknown>;
|
|
489
547
|
getAppHead(appId: string): Promise<unknown>;
|
|
490
548
|
getAppDelta(appId: string, payload: {
|
|
491
549
|
baseHeadHash: string;
|
|
@@ -550,6 +608,7 @@ type CollabApiClient = {
|
|
|
550
608
|
version?: string;
|
|
551
609
|
provider?: string;
|
|
552
610
|
};
|
|
611
|
+
sourceConversation?: SourceConversation;
|
|
553
612
|
workspaceMetadata?: Record<string, unknown>;
|
|
554
613
|
idempotencyKey?: string;
|
|
555
614
|
}): Promise<unknown>;
|
|
@@ -557,6 +616,7 @@ type CollabApiClient = {
|
|
|
557
616
|
limit?: number;
|
|
558
617
|
offset?: number;
|
|
559
618
|
idempotencyKey?: string;
|
|
619
|
+
threadId?: string;
|
|
560
620
|
}): Promise<unknown>;
|
|
561
621
|
startChangeStepReplay(appId: string, payload: {
|
|
562
622
|
prompt: string;
|
|
@@ -589,6 +649,7 @@ type CollabApiClient = {
|
|
|
589
649
|
version?: string;
|
|
590
650
|
provider?: string;
|
|
591
651
|
};
|
|
652
|
+
sourceConversation?: SourceConversation;
|
|
592
653
|
workspaceMetadata?: Record<string, unknown>;
|
|
593
654
|
idempotencyKey?: string;
|
|
594
655
|
}): Promise<unknown>;
|
|
@@ -777,4 +838,4 @@ type CollabApiClient = {
|
|
|
777
838
|
}): Promise<unknown>;
|
|
778
839
|
};
|
|
779
840
|
|
|
780
|
-
export type
|
|
841
|
+
export { type AppProfileInput as A, type ModelCall as B, type CollabApiClient as C, type OrganizationMemberRole as D, type ProjectMemberRole as E, type ServerToolUsage as F, SourceConversationSchema as G, type SyncLocalResponse as H, type InvitationScopeType as I, type JsonObject as J, type SyncUpstreamResponse as K, type TurnUsageCaptureSource as L, type MergeRequestQueue as M, type TurnUsageConfidence as N, type OrganizationMember as O, type ProjectMember as P, type TurnUsagePreviousPatch as Q, type ReconcilePreflightResponse as R, type SourceConversation as S, type TurnUsage as T, type TurnUsagePayload as a, type CollabFinalizeTurnResult as b, type CollabRecordingPreflight as c, type CollabApproveMode as d, type CollabApprovalStrategy as e, type CollabApproveResult as f, type MergeRequest as g, type CollabMember as h, type AppDeltaResponse as i, type CollabStatus as j, type MergeRequestReview as k, type AppHeadResponse as l, type AppMember as m, type AppMemberRole as n, type AppReconcileResponse as o, type CollabFinalizeTurnAutoSync as p, type CollabFinalizeTurnMode as q, type CollabPendingFinalizeState as r, type CollabPendingFinalizeSummary as s, type CollabRecordingPreflightStatus as t, type CollabRepoStateKind as u, type CollabStatusBlockedReason as v, type CollabStatusRecommendedAction as w, type CollabTurn as x, type MembershipScopeType as y, type MergeRequestStatus as z };
|
package/dist/history.d.ts
CHANGED
package/dist/index.d.ts
CHANGED
|
@@ -3,6 +3,6 @@ export { REMIX_ERROR_CODES, RemixErrorCode } from './errors.js';
|
|
|
3
3
|
export { CoreConfig, ResolveConfigOptions, configSchema, resolveConfig } from './config.js';
|
|
4
4
|
export { S as SessionStore, a as StoredSession, W as WithRefreshLock, c as createRefreshLock, b as createStoredSessionTokenProvider, s as shouldRefreshSoon, d as storedSessionSchema } from './tokenProvider-BP3YfJHm.js';
|
|
5
5
|
export { RemixAuthContinuationError, WorkosAuthChallenge, WorkosContinuationInput, createDefaultRefreshLock, createLocalSessionStore, createRemixAuthHelpers, defaultSessionFilePath, isInvalidGrantError, isNetworkError } from './auth.js';
|
|
6
|
-
export { AgentMemoryItem, AgentMemoryKind, AgentMemorySearchItem, AgentMemorySearchResponse, AgentMemorySummary, AgentMemoryTimelineResponse, ApiClient, AppContext, AppContextAccessPath, AppPreviewExpectedKind, AppPreviewProcessStatus, AppPreviewQuery, AppPreviewResponse, AppReconcileResponse, AppSandboxCommandRun, AppShareLinkSummary, Bundle, BundlePlatform, BundleStatus, ChangeStepDiffResponse, CreateAppShareLinkPayload, DetectProjectRuntimeTargetsPayload, ImportProjectRuntimeEnvPayload, InitiateBundleRequest, InvitationRecord, MergeRequest, MergeRequestReview, MergeRequestStatus, MobileQrPayloads, ProjectRuntimeEnvMetadata, ProjectRuntimeEnvScope, ProjectRuntimeTargetMetadata, ProjectRuntimeTargetScope, ProjectTrigger, ProjectTriggerPayload, ProjectTriggerScope, ProjectTriggerStep, ProjectTriggerStepPayload, ReconcilePreflightResponse, ResolveProjectRuntimeEnvForLocalPullResponse, RunAppRuntimeTargetPayload, RunAppSandboxCommandPayload, RunAppTriggerEventPayload, RunAppTriggerPayload, RuntimeCommandKind, RuntimeTargetKind, SetProjectRuntimeEnvPayload, SetProjectRuntimeTargetPayload, SyncLocalResponse, SyncUpstreamResponse, TriggerEventMetadata, TriggerEventSource, TriggerIntegrationStatus, TriggerMode, TriggerRun, TriggerStepRun, TriggerStepType, UpdateProjectTriggerPayload, createApiClient } from './api.js';
|
|
6
|
+
export { AgentMemoryItem, AgentMemoryKind, AgentMemorySearchItem, AgentMemorySearchResponse, AgentMemorySummary, AgentMemoryTimelineResponse, ApiClient, AppContext, AppContextAccessPath, AppEditQueueCancellationRequested, AppEditQueueCancellationResponse, AppEditQueueCancellationResult, AppEditQueueCancelledItem, AppEditQueueItem, AppEditQueuePage, AppEditQueueStatus, AppPreviewExpectedKind, AppPreviewProcessStatus, AppPreviewQuery, AppPreviewResponse, AppReconcileResponse, AppSandboxCommandRun, AppShareLinkSummary, AppThread, Bundle, BundlePlatform, BundleStatus, ChangeStepDiffResponse, CreateAppShareLinkPayload, DetectProjectRuntimeTargetsPayload, ImportProjectRuntimeEnvPayload, InitiateBundleRequest, InvitationRecord, MergeRequest, MergeRequestReview, MergeRequestStatus, MobileQrPayloads, ProjectRuntimeEnvMetadata, ProjectRuntimeEnvScope, ProjectRuntimeTargetMetadata, ProjectRuntimeTargetScope, ProjectTrigger, ProjectTriggerPayload, ProjectTriggerScope, ProjectTriggerStep, ProjectTriggerStepPayload, ReconcilePreflightResponse, ResolveProjectRuntimeEnvForLocalPullResponse, RunAppRuntimeTargetPayload, RunAppSandboxCommandPayload, RunAppTriggerEventPayload, RunAppTriggerPayload, RuntimeCommandKind, RuntimeTargetKind, SetProjectRuntimeEnvPayload, SetProjectRuntimeTargetPayload, SyncLocalResponse, SyncUpstreamResponse, TriggerEventMetadata, TriggerEventSource, TriggerIntegrationStatus, TriggerMode, TriggerRun, TriggerStepRun, TriggerStepType, UpdateProjectTriggerPayload, createApiClient } from './api.js';
|
|
7
7
|
import 'zod';
|
|
8
|
-
import './contracts-
|
|
8
|
+
import './contracts-BAr3-IX5.js';
|
package/dist/index.js
CHANGED