@ricsam/r5d-api 0.0.57 → 0.0.59

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.
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@ricsam/r5d-api",
3
- "version": "0.0.57",
3
+ "version": "0.0.59",
4
4
  "type": "commonjs"
5
5
  }
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@ricsam/r5d-api",
3
- "version": "0.0.57",
3
+ "version": "0.0.59",
4
4
  "type": "module"
5
5
  }
@@ -215,11 +215,14 @@ export type R5dctlWorkspaceSyncResult = {
215
215
  toolCallId?: string;
216
216
  projectId?: string;
217
217
  branchName?: string;
218
+ canonicalCheckoutOnly?: boolean;
218
219
  detail?: string;
219
220
  };
220
- outcome: "no_change" | "published" | "updated" | "conflict_reset" | "large_diff_blocked" | "reset" | "failed";
221
+ outcome: "no_change" | "candidate_ready" | "published" | "updated" | "conflict_reset" | "large_diff_blocked" | "conflict_blocked" | "reset" | "failed";
221
222
  startingHead: string | null;
223
+ expectedHead?: string | null;
222
224
  candidateHead?: string;
225
+ quarantineRef?: string;
223
226
  publishedHead?: string;
224
227
  rebaseCount: number;
225
228
  diffSizeBytes: number;
@@ -228,13 +231,54 @@ export type R5dctlWorkspaceSyncResult = {
228
231
  affectedPaths: string[];
229
232
  discardedPaths: string[];
230
233
  localChangesDiscarded: boolean;
234
+ dirtyGeneration?: number;
235
+ sampledCanonicalCheckoutTreeHash?: string;
236
+ telemetry?: {
237
+ totalMs: number;
238
+ queueMs: number;
239
+ prepareMs: number;
240
+ synchronizeMs: number;
241
+ };
231
242
  error?: string;
232
243
  };
233
244
  export type R5dctlWorkspaceStatus = {
234
245
  head: string | null;
235
246
  latestSync: R5dctlWorkspaceSyncResult | null;
247
+ workers: Array<{
248
+ workerLabel: string;
249
+ ready: boolean;
250
+ manifestRevision: string | null;
251
+ pendingCheckouts: Array<{
252
+ projectId: string;
253
+ branchName: string;
254
+ }>;
255
+ localHead: string | null;
256
+ desiredCanonicalHead: string | null;
257
+ dirtyGeneration: number;
258
+ publishedGeneration: number;
259
+ checkpointState: "idle" | "scheduled" | "preparing" | "submitting" | "blocked";
260
+ casRetries: number;
261
+ lastNotifiedHead: string | null;
262
+ lastNotifiedAt: string | null;
263
+ fanoutLag: boolean;
264
+ fanoutLagMs: number | null;
265
+ }>;
266
+ materialization: {
267
+ desiredHead: string | null;
268
+ materializedHead: string | null;
269
+ state: "idle" | "pending" | "running" | "failed";
270
+ retryCount: number;
271
+ nextRetryAt: string | null;
272
+ lastError: string | null;
273
+ startedAt: string | null;
274
+ completedAt: string | null;
275
+ updatedAt: string;
276
+ lag: boolean;
277
+ lagMs: number;
278
+ } | null;
236
279
  incident: {
237
280
  id: string;
281
+ kind: "large_diff" | "sync_conflict";
238
282
  originWorkerLabel: string;
239
283
  remediationSessionId: string;
240
284
  status: "remediating" | "waiting_for_worker";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ricsam/r5d-api",
3
- "version": "0.0.57",
3
+ "version": "0.0.59",
4
4
  "type": "module",
5
5
  "main": "./dist/cjs/index.cjs",
6
6
  "module": "./dist/mjs/index.mjs",