@remixhq/core 0.1.12 → 0.1.14
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 +94 -2
- package/dist/api.js +1 -1
- package/dist/auth.js +1 -1
- package/dist/binding-WiIRI2fl.d.ts +43 -0
- package/dist/binding.d.ts +1 -21
- package/dist/binding.js +4 -2
- package/dist/chunk-CUUXZSKW.js +611 -0
- package/dist/chunk-E6AYE22H.js +343 -0
- package/dist/chunk-OZRXDDEL.js +46 -0
- package/dist/chunk-P6JHXOV4.js +236 -0
- package/dist/chunk-R7FVSCQW.js +415 -0
- package/dist/chunk-RKMMEML5.js +46 -0
- package/dist/chunk-UIGKSCTD.js +406 -0
- package/dist/chunk-US5SM7ZC.js +433 -0
- package/dist/chunk-UWIVJRTI.js +343 -0
- package/dist/chunk-VA6WXRWB.js +636 -0
- package/dist/chunk-WT6VRLXU.js +636 -0
- package/dist/chunk-YCFLOHJV.js +343 -0
- package/dist/collab.d.ts +433 -663
- package/dist/collab.js +4793 -1550
- package/dist/contracts-NbV3P_Rl.d.ts +677 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +2 -2
- package/dist/repo.js +1 -1
- package/package.json +4 -2
package/dist/api.d.ts
CHANGED
|
@@ -1,7 +1,76 @@
|
|
|
1
1
|
import { CoreConfig } from './config.js';
|
|
2
2
|
import { T as TokenProvider } from './tokenProvider-BWTusyj4.js';
|
|
3
|
+
import { E as TurnUsage } from './contracts-NbV3P_Rl.js';
|
|
3
4
|
import 'zod';
|
|
4
5
|
|
|
6
|
+
type HistoryImportProvider = "claude_code" | "cursor";
|
|
7
|
+
type HistoryImportCaptureSource = "claude_local_v1" | "cursor_local_v1" | "cursor_local_v1_drift";
|
|
8
|
+
type HistoryImportRecordMetadata = {
|
|
9
|
+
importBatchId: string;
|
|
10
|
+
importerVersion: string;
|
|
11
|
+
scannerSchemaFingerprint?: string;
|
|
12
|
+
rawCwd?: string;
|
|
13
|
+
driftDetected?: boolean;
|
|
14
|
+
};
|
|
15
|
+
type HistoryImportWorkspaceMetadata = {
|
|
16
|
+
turnUsage: TurnUsage;
|
|
17
|
+
branch?: string;
|
|
18
|
+
} & Record<string, unknown>;
|
|
19
|
+
type HistoricalTurnRecord = {
|
|
20
|
+
provider: HistoryImportProvider;
|
|
21
|
+
providerSessionId: string | null;
|
|
22
|
+
providerTurnId: string;
|
|
23
|
+
repoFingerprint: string;
|
|
24
|
+
captureSource: HistoryImportCaptureSource;
|
|
25
|
+
occurredAt: string;
|
|
26
|
+
promptText: string | null;
|
|
27
|
+
assistantText?: string | null;
|
|
28
|
+
workspaceMetadata: HistoryImportWorkspaceMetadata;
|
|
29
|
+
metadata: HistoryImportRecordMetadata;
|
|
30
|
+
dedupKey: string;
|
|
31
|
+
};
|
|
32
|
+
type ImportHistoryRequest = {
|
|
33
|
+
records: HistoricalTurnRecord[];
|
|
34
|
+
};
|
|
35
|
+
type ImportHistoryRecordOutcome = {
|
|
36
|
+
ok: true;
|
|
37
|
+
outcome: "inserted";
|
|
38
|
+
historicalRepoTurnId: string;
|
|
39
|
+
} | {
|
|
40
|
+
ok: true;
|
|
41
|
+
outcome: "skipped_duplicate";
|
|
42
|
+
} | {
|
|
43
|
+
ok: false;
|
|
44
|
+
outcome: "validation_failed";
|
|
45
|
+
reason: string;
|
|
46
|
+
} | {
|
|
47
|
+
ok: false;
|
|
48
|
+
outcome: "dedup_key_mismatch";
|
|
49
|
+
expected: string;
|
|
50
|
+
} | {
|
|
51
|
+
ok: false;
|
|
52
|
+
outcome: "insert_failed";
|
|
53
|
+
reason: string;
|
|
54
|
+
};
|
|
55
|
+
type ImportHistoryResponse = {
|
|
56
|
+
importBatchId: string;
|
|
57
|
+
processed: number;
|
|
58
|
+
inserted: number;
|
|
59
|
+
skipped: number;
|
|
60
|
+
failed: number;
|
|
61
|
+
perRepo: Array<{
|
|
62
|
+
repoFingerprint: string;
|
|
63
|
+
inserted: number;
|
|
64
|
+
skipped: number;
|
|
65
|
+
failed: number;
|
|
66
|
+
}>;
|
|
67
|
+
failures: Array<{
|
|
68
|
+
dedupKey: string;
|
|
69
|
+
outcome: Exclude<ImportHistoryRecordOutcome["outcome"], "inserted" | "skipped_duplicate">;
|
|
70
|
+
reason: string;
|
|
71
|
+
}>;
|
|
72
|
+
};
|
|
73
|
+
|
|
5
74
|
type Json = Record<string, unknown> | unknown[] | string | number | boolean | null;
|
|
6
75
|
type MergeRequestStatus = "open" | "approved" | "rejected" | "merged" | "closed";
|
|
7
76
|
type MergeRequest = {
|
|
@@ -178,7 +247,7 @@ type InitiateBundleRequest = {
|
|
|
178
247
|
idempotencyKey?: string;
|
|
179
248
|
};
|
|
180
249
|
type SyncLocalResponse = {
|
|
181
|
-
status: "up_to_date" | "ready_to_fast_forward" | "base_unknown" | "conflict_risk";
|
|
250
|
+
status: "up_to_date" | "delta_ready" | "ready_to_fast_forward" | "base_unknown" | "conflict_risk";
|
|
182
251
|
baseCommitHash: string;
|
|
183
252
|
targetCommitHash: string;
|
|
184
253
|
targetCommitId: string;
|
|
@@ -318,6 +387,7 @@ type ApiClient = {
|
|
|
318
387
|
defaultBranch?: string;
|
|
319
388
|
branchName: string;
|
|
320
389
|
seedAppId?: string;
|
|
390
|
+
seedHeadCommitHash?: string;
|
|
321
391
|
}): Promise<Json>;
|
|
322
392
|
bootstrapFreshProjectLane(payload: {
|
|
323
393
|
projectId?: string;
|
|
@@ -326,6 +396,7 @@ type ApiClient = {
|
|
|
326
396
|
defaultBranch?: string;
|
|
327
397
|
branchName: string;
|
|
328
398
|
seedAppId: string;
|
|
399
|
+
seedHeadCommitHash?: string;
|
|
329
400
|
}): Promise<Json>;
|
|
330
401
|
autoEnableDeveloper(): Promise<Json>;
|
|
331
402
|
listClientApps(params?: {
|
|
@@ -369,6 +440,12 @@ type ApiClient = {
|
|
|
369
440
|
limit?: number;
|
|
370
441
|
offset?: number;
|
|
371
442
|
}): Promise<Json>;
|
|
443
|
+
listAppJobQueue(appId: string, params?: {
|
|
444
|
+
limit?: number;
|
|
445
|
+
offset?: number;
|
|
446
|
+
kind?: string[];
|
|
447
|
+
status?: string[];
|
|
448
|
+
}): Promise<Json>;
|
|
372
449
|
getMergeRequest(mrId: string): Promise<Json>;
|
|
373
450
|
presignImportUpload(payload: {
|
|
374
451
|
file: {
|
|
@@ -405,6 +482,7 @@ type ApiClient = {
|
|
|
405
482
|
defaultBranch?: string;
|
|
406
483
|
repoFingerprint?: string;
|
|
407
484
|
headCommitHash?: string;
|
|
485
|
+
forceNew?: boolean;
|
|
408
486
|
}): Promise<Json>;
|
|
409
487
|
importFromGithubFirstParty(payload: {
|
|
410
488
|
repoFullName: string;
|
|
@@ -425,6 +503,15 @@ type ApiClient = {
|
|
|
425
503
|
forkedFromCommitId?: string;
|
|
426
504
|
branchName?: string;
|
|
427
505
|
}): Promise<Json>;
|
|
506
|
+
getAppHead(appId: string): Promise<Json>;
|
|
507
|
+
getAppDelta(appId: string, payload: {
|
|
508
|
+
baseHeadHash: string;
|
|
509
|
+
targetHeadHash?: string;
|
|
510
|
+
localSnapshotHash?: string;
|
|
511
|
+
repoFingerprint?: string;
|
|
512
|
+
remoteUrl?: string;
|
|
513
|
+
defaultBranch?: string;
|
|
514
|
+
}): Promise<Json>;
|
|
428
515
|
downloadAppBundle(appId: string): Promise<{
|
|
429
516
|
data: Buffer;
|
|
430
517
|
fileName: string | null;
|
|
@@ -482,6 +569,10 @@ type ApiClient = {
|
|
|
482
569
|
workspaceMetadata?: Record<string, unknown>;
|
|
483
570
|
idempotencyKey?: string;
|
|
484
571
|
}): Promise<Json>;
|
|
572
|
+
attachCollabTurnUsage(appId: string, payload: {
|
|
573
|
+
prompt: string;
|
|
574
|
+
workspaceMetadata: Record<string, unknown>;
|
|
575
|
+
}): Promise<Json>;
|
|
485
576
|
listCollabTurns(appId: string, params?: {
|
|
486
577
|
limit?: number;
|
|
487
578
|
offset?: number;
|
|
@@ -643,10 +734,11 @@ type ApiClient = {
|
|
|
643
734
|
createdBefore?: string;
|
|
644
735
|
}): Promise<Json>;
|
|
645
736
|
getSandboxStatus(appId: string): Promise<Json>;
|
|
737
|
+
importHistory(payload: ImportHistoryRequest): Promise<ImportHistoryResponse>;
|
|
646
738
|
};
|
|
647
739
|
declare function createApiClient(config: CoreConfig, opts?: {
|
|
648
740
|
apiKey?: string | null;
|
|
649
741
|
tokenProvider?: TokenProvider;
|
|
650
742
|
}): ApiClient;
|
|
651
743
|
|
|
652
|
-
export { type AgentMemoryItem, type AgentMemoryKind, type AgentMemorySearchItem, type AgentMemorySearchResponse, type AgentMemorySummary, type AgentMemoryTimelineResponse, type ApiClient, type AppContext, type AppContextAccessPath, type AppReconcileResponse, type Bundle, type BundlePlatform, type BundleStatus, type ChangeStepDiffResponse, type InitiateBundleRequest, type InvitationRecord, type MergeRequest, type MergeRequestReview, type MergeRequestStatus, type ReconcilePreflightResponse, type SyncLocalResponse, type SyncUpstreamResponse, createApiClient };
|
|
744
|
+
export { type AgentMemoryItem, type AgentMemoryKind, type AgentMemorySearchItem, type AgentMemorySearchResponse, type AgentMemorySummary, type AgentMemoryTimelineResponse, type ApiClient, type AppContext, type AppContextAccessPath, type AppReconcileResponse, type Bundle, type BundlePlatform, type BundleStatus, type ChangeStepDiffResponse, type HistoricalTurnRecord, type HistoryImportCaptureSource, type HistoryImportProvider, type HistoryImportRecordMetadata, type HistoryImportWorkspaceMetadata, type ImportHistoryRecordOutcome, type ImportHistoryRequest, type ImportHistoryResponse, type InitiateBundleRequest, type InvitationRecord, type MergeRequest, type MergeRequestReview, type MergeRequestStatus, type ReconcilePreflightResponse, type SyncLocalResponse, type SyncUpstreamResponse, createApiClient };
|
package/dist/api.js
CHANGED
package/dist/auth.js
CHANGED
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
type BranchBindingMode = "legacy" | "lane" | "explicit_root";
|
|
2
|
+
type BranchBinding = {
|
|
3
|
+
projectId: string | null;
|
|
4
|
+
currentAppId: string;
|
|
5
|
+
upstreamAppId: string;
|
|
6
|
+
threadId: string | null;
|
|
7
|
+
laneId: string | null;
|
|
8
|
+
bindingMode: BranchBindingMode;
|
|
9
|
+
};
|
|
10
|
+
type CollabBinding = {
|
|
11
|
+
schemaVersion: 3;
|
|
12
|
+
projectId: string | null;
|
|
13
|
+
currentAppId: string;
|
|
14
|
+
upstreamAppId: string;
|
|
15
|
+
threadId: string | null;
|
|
16
|
+
repoFingerprint: string | null;
|
|
17
|
+
remoteUrl: string | null;
|
|
18
|
+
defaultBranch: string | null;
|
|
19
|
+
laneId: string | null;
|
|
20
|
+
branchName: string | null;
|
|
21
|
+
bindingMode: BranchBindingMode;
|
|
22
|
+
};
|
|
23
|
+
declare function getCollabBindingPath(repoRoot: string): string;
|
|
24
|
+
type CollabBindingState = {
|
|
25
|
+
schemaVersion: 1 | 2 | 3;
|
|
26
|
+
projectId: string | null;
|
|
27
|
+
repoFingerprint: string | null;
|
|
28
|
+
remoteUrl: string | null;
|
|
29
|
+
defaultBranch: string | null;
|
|
30
|
+
currentBranch: string | null;
|
|
31
|
+
binding: CollabBinding | null;
|
|
32
|
+
branchBindings: Record<string, BranchBinding>;
|
|
33
|
+
explicitRootBinding: CollabBinding | null;
|
|
34
|
+
};
|
|
35
|
+
declare function readCollabBindingState(repoRoot: string, options?: {
|
|
36
|
+
persist?: boolean;
|
|
37
|
+
}): Promise<CollabBindingState | null>;
|
|
38
|
+
declare function readCollabBinding(repoRoot: string): Promise<CollabBinding | null>;
|
|
39
|
+
declare function writeCollabBinding(repoRoot: string, binding: Omit<CollabBinding, "schemaVersion" | "branchName"> & {
|
|
40
|
+
branchName?: string | null;
|
|
41
|
+
}): Promise<string>;
|
|
42
|
+
|
|
43
|
+
export { type BranchBindingMode as B, type CollabBinding as C, type CollabBindingState as a, readCollabBindingState as b, getCollabBindingPath as g, readCollabBinding as r, writeCollabBinding as w };
|
package/dist/binding.d.ts
CHANGED
|
@@ -1,21 +1 @@
|
|
|
1
|
-
|
|
2
|
-
type CollabBinding = {
|
|
3
|
-
schemaVersion: 3;
|
|
4
|
-
projectId: string | null;
|
|
5
|
-
currentAppId: string;
|
|
6
|
-
upstreamAppId: string;
|
|
7
|
-
threadId: string | null;
|
|
8
|
-
repoFingerprint: string | null;
|
|
9
|
-
remoteUrl: string | null;
|
|
10
|
-
defaultBranch: string | null;
|
|
11
|
-
laneId: string | null;
|
|
12
|
-
branchName: string | null;
|
|
13
|
-
bindingMode: BranchBindingMode;
|
|
14
|
-
};
|
|
15
|
-
declare function getCollabBindingPath(repoRoot: string): string;
|
|
16
|
-
declare function readCollabBinding(repoRoot: string): Promise<CollabBinding | null>;
|
|
17
|
-
declare function writeCollabBinding(repoRoot: string, binding: Omit<CollabBinding, "schemaVersion" | "branchName"> & {
|
|
18
|
-
branchName?: string | null;
|
|
19
|
-
}): Promise<string>;
|
|
20
|
-
|
|
21
|
-
export { type CollabBinding, getCollabBindingPath, readCollabBinding, writeCollabBinding };
|
|
1
|
+
export { C as CollabBinding, a as CollabBindingState, g as getCollabBindingPath, r as readCollabBinding, b as readCollabBindingState, w as writeCollabBinding } from './binding-WiIRI2fl.js';
|
package/dist/binding.js
CHANGED
|
@@ -1,13 +1,15 @@
|
|
|
1
1
|
import {
|
|
2
2
|
getCollabBindingPath,
|
|
3
3
|
readCollabBinding,
|
|
4
|
+
readCollabBindingState,
|
|
4
5
|
writeCollabBinding
|
|
5
|
-
} from "./chunk-
|
|
6
|
-
import "./chunk-
|
|
6
|
+
} from "./chunk-YCFLOHJV.js";
|
|
7
|
+
import "./chunk-WT6VRLXU.js";
|
|
7
8
|
import "./chunk-GC2MOT3U.js";
|
|
8
9
|
import "./chunk-YZ34ICNN.js";
|
|
9
10
|
export {
|
|
10
11
|
getCollabBindingPath,
|
|
11
12
|
readCollabBinding,
|
|
13
|
+
readCollabBindingState,
|
|
12
14
|
writeCollabBinding
|
|
13
15
|
};
|