@remixhq/core 0.1.17 → 0.1.18

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/config.js CHANGED
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  configSchema,
3
3
  resolveConfig
4
- } from "./chunk-VM3CGCNX.js";
5
- import "./chunk-YZ34ICNN.js";
4
+ } from "./chunk-XCZRNB35.js";
5
+ import "./chunk-7XJGOKEO.js";
6
6
  export {
7
7
  configSchema,
8
8
  resolveConfig
@@ -91,6 +91,8 @@ type MergeRequestReviewChangeStep = {
91
91
  commitId: string | null;
92
92
  baseCommitHash: string | null;
93
93
  headCommitHash: string | null;
94
+ baseRevisionId: string | null;
95
+ resultRevisionId: string | null;
94
96
  changedFilesCount: number | null;
95
97
  insertions: number | null;
96
98
  deletions: number | null;
@@ -136,7 +138,7 @@ type CollabPendingFinalizeSummary = {
136
138
  nextRetryAt: string | null;
137
139
  latestError: string | null;
138
140
  };
139
- type CollabStatusRecommendedAction = "init" | "pull" | "re_anchor" | "reconcile" | "await_finalize" | "record" | "review_queue" | "choose_family" | "no_action";
141
+ type CollabStatusRecommendedAction = "init" | "pull" | "reconcile" | "await_finalize" | "record" | "review_queue" | "choose_family" | "no_action";
140
142
  type CollabStatus = {
141
143
  schemaVersion: 1;
142
144
  repo: {
@@ -206,11 +208,15 @@ type CollabStatus = {
206
208
  baseline: {
207
209
  lastSnapshotId: string | null;
208
210
  lastSnapshotHash: string | null;
211
+ lastServerRevisionId: string | null;
212
+ lastServerTreeHash: string | null;
209
213
  lastServerHeadHash: string | null;
210
214
  lastSeenLocalCommitHash: string | null;
211
215
  };
212
216
  current: {
213
217
  snapshotHash: string | null;
218
+ serverRevisionId: string | null;
219
+ serverTreeHash: string | null;
214
220
  serverHeadHash: string | null;
215
221
  serverHeadCommitId: string | null;
216
222
  localCommitHash: string | null;
@@ -222,8 +228,11 @@ type CollabStatus = {
222
228
  type SyncLocalResponse = {
223
229
  status: "up_to_date" | "delta_ready" | "ready_to_fast_forward" | "base_unknown" | "conflict_risk";
224
230
  baseCommitHash: string;
231
+ baseRevisionId?: string | null;
225
232
  targetCommitHash: string;
226
233
  targetCommitId: string;
234
+ targetRevisionId?: string | null;
235
+ targetTreeHash?: string | null;
227
236
  bundleRef: string | null;
228
237
  bundleBase64: string | null;
229
238
  bundleEncoding: "base64" | null;
@@ -237,6 +246,8 @@ type SyncLocalResponse = {
237
246
  };
238
247
  type AppHeadResponse = {
239
248
  appId: string;
249
+ headRevisionId: string | null;
250
+ treeHash: string | null;
240
251
  headCommitId: string;
241
252
  headCommitHash: string;
242
253
  status: string;
@@ -246,6 +257,9 @@ type AppDeltaResponse = {
246
257
  status: "up_to_date" | "delta_ready" | "base_unknown" | "content_equivalent" | "conflict_risk";
247
258
  baseHeadHash: string;
248
259
  targetHeadHash: string;
260
+ baseRevisionId?: string | null;
261
+ targetRevisionId?: string | null;
262
+ targetTreeHash?: string | null;
249
263
  targetHeadCommitId: string | null;
250
264
  diff: string;
251
265
  diffSha256: string | null;
@@ -260,7 +274,7 @@ type SyncUpstreamResponse = {
260
274
  status: "up-to-date" | "queued";
261
275
  mergeRequestId?: string;
262
276
  };
263
- type CollabRecordingPreflightStatus = "not_git_repo" | "not_bound" | "branch_binding_missing" | "family_ambiguous" | "missing_head" | "branch_mismatch" | "metadata_conflict" | "ready" | "pull_required" | "re_anchor_required" | "reconcile_required";
277
+ type CollabRecordingPreflightStatus = "not_git_repo" | "not_bound" | "branch_binding_missing" | "family_ambiguous" | "missing_head" | "branch_mismatch" | "metadata_conflict" | "ready" | "pull_required" | "baseline_missing" | "reconcile_required";
264
278
  type CollabRecordingPreflight = {
265
279
  status: CollabRecordingPreflightStatus;
266
280
  repoState: CollabRepoStateKind | null;
@@ -460,6 +474,8 @@ type CollabApiClient = {
460
474
  getAppDelta(appId: string, payload: {
461
475
  baseHeadHash: string;
462
476
  targetHeadHash?: string;
477
+ baseRevisionId?: string | null;
478
+ targetRevisionId?: string | null;
463
479
  localSnapshotHash?: string;
464
480
  repoFingerprint?: string;
465
481
  remoteUrl?: string;
@@ -507,6 +523,7 @@ type CollabApiClient = {
507
523
  diff: string;
508
524
  baseCommitHash?: string | null;
509
525
  headCommitHash?: string | null;
526
+ baseRevisionId?: string | null;
510
527
  changedFilesCount?: number;
511
528
  insertions?: number;
512
529
  deletions?: number;
@@ -525,6 +542,8 @@ type CollabApiClient = {
525
542
  diff: string;
526
543
  baseCommitHash: string;
527
544
  targetHeadCommitHash: string;
545
+ baseRevisionId?: string | null;
546
+ targetRevisionId?: string | null;
528
547
  expectedPaths: string[];
529
548
  actor?: {
530
549
  type?: string;
@@ -647,6 +666,9 @@ type CollabApiClient = {
647
666
  syncUpstreamApp(appId: string): Promise<unknown>;
648
667
  preflightAppReconcile(appId: string, payload: {
649
668
  localHeadCommitHash: string;
669
+ baseRevisionId?: string | null;
670
+ localRevisionId?: string | null;
671
+ targetRevisionId?: string | null;
650
672
  repoFingerprint?: string;
651
673
  remoteUrl?: string;
652
674
  defaultBranch?: string;
@@ -654,6 +676,9 @@ type CollabApiClient = {
654
676
  startAppReconcile(appId: string, payload: {
655
677
  uploadId: string;
656
678
  localHeadCommitHash: string;
679
+ baseRevisionId?: string | null;
680
+ localRevisionId?: string | null;
681
+ targetRevisionId?: string | null;
657
682
  repoFingerprint?: string;
658
683
  remoteUrl?: string;
659
684
  defaultBranch?: string;
@@ -667,6 +692,7 @@ type CollabApiClient = {
667
692
  }>;
668
693
  syncLocalApp(appId: string, payload: {
669
694
  baseCommitHash: string;
695
+ baseRevisionId?: string | null;
670
696
  repoFingerprint?: string;
671
697
  remoteUrl?: string;
672
698
  defaultBranch?: string;
package/dist/errors.d.ts CHANGED
@@ -2,10 +2,12 @@ declare class RemixError extends Error {
2
2
  readonly code: string | null;
3
3
  readonly exitCode: number;
4
4
  readonly hint: string | null;
5
+ readonly statusCode: number | null;
5
6
  constructor(message: string, opts?: {
6
7
  code?: string | null;
7
8
  exitCode?: number;
8
9
  hint?: string | null;
10
+ statusCode?: number | null;
9
11
  });
10
12
  }
11
13
 
package/dist/errors.js CHANGED
@@ -4,7 +4,7 @@ import {
4
4
  } from "./chunk-GC2MOT3U.js";
5
5
  import {
6
6
  RemixError
7
- } from "./chunk-YZ34ICNN.js";
7
+ } from "./chunk-7XJGOKEO.js";
8
8
  export {
9
9
  RemixError as CliError,
10
10
  REMIX_ERROR_CODES,
package/dist/history.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { T as TurnUsage } from './contracts-CHmD-fMj.js';
1
+ import { T as TurnUsage } from './contracts-DnNP-K3V.js';
2
2
 
3
3
  type TranscriptEvent = Record<string, unknown>;
4
4
  type ReadTranscriptResult = {
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-CHmD-fMj.js';
7
+ import './contracts-DnNP-K3V.js';
package/dist/index.js CHANGED
@@ -1,24 +1,24 @@
1
1
  import {
2
2
  createApiClient
3
- } from "./chunk-US5SM7ZC.js";
3
+ } from "./chunk-RCNOSZP6.js";
4
4
  import {
5
5
  createLocalSessionStore,
6
6
  createStoredSessionTokenProvider,
7
7
  createSupabaseAuthHelpers,
8
8
  shouldRefreshSoon,
9
9
  storedSessionSchema
10
- } from "./chunk-P6JHXOV4.js";
10
+ } from "./chunk-XETDXVGM.js";
11
11
  import {
12
12
  configSchema,
13
13
  resolveConfig
14
- } from "./chunk-VM3CGCNX.js";
14
+ } from "./chunk-XCZRNB35.js";
15
15
  import "./chunk-4OCNZHHR.js";
16
16
  import {
17
17
  REMIX_ERROR_CODES
18
18
  } from "./chunk-GC2MOT3U.js";
19
19
  import {
20
20
  RemixError
21
- } from "./chunk-YZ34ICNN.js";
21
+ } from "./chunk-7XJGOKEO.js";
22
22
  export {
23
23
  RemixError as CliError,
24
24
  REMIX_ERROR_CODES,
package/dist/repo.js CHANGED
@@ -28,9 +28,9 @@ import {
28
28
  requireCurrentBranch,
29
29
  summarizeUnifiedDiff,
30
30
  writeTempUnifiedDiffBackup
31
- } from "./chunk-WT6VRLXU.js";
31
+ } from "./chunk-S4ECO35X.js";
32
32
  import "./chunk-GC2MOT3U.js";
33
- import "./chunk-YZ34ICNN.js";
33
+ import "./chunk-7XJGOKEO.js";
34
34
  export {
35
35
  assertRepoSnapshotUnchanged,
36
36
  buildRepoFingerprint,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@remixhq/core",
3
- "version": "0.1.17",
3
+ "version": "0.1.18",
4
4
  "description": "Remix core library",
5
5
  "homepage": "https://github.com/RemixDotOne/remix-core",
6
6
  "license": "MIT",
@@ -1,17 +0,0 @@
1
- // src/errors/cliError.ts
2
- var RemixError = class extends Error {
3
- code;
4
- exitCode;
5
- hint;
6
- constructor(message, opts) {
7
- super(message);
8
- this.name = "RemixError";
9
- this.code = opts?.code ?? null;
10
- this.exitCode = opts?.exitCode ?? 1;
11
- this.hint = opts?.hint ?? null;
12
- }
13
- };
14
-
15
- export {
16
- RemixError
17
- };