@farmslot/review-dispatch 0.19.0 → 0.20.0

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/CHANGELOG.md CHANGED
@@ -2,6 +2,8 @@
2
2
 
3
3
  ## Unreleased
4
4
 
5
+ - Share fleet workspace rows, safe bulk release, discard confirmation and recovery progress between both operator apps.
6
+
5
7
  - Share plain CI-watch check counts, failing names, next poll and timeout countdown between both clients.
6
8
 
7
9
  - Show completed checklist durations and live current-step elapsed time in both operator apps.
@@ -14,6 +16,10 @@
14
16
 
15
17
  - Active-development baseline; add user-facing changes here before release or package publication.
16
18
 
19
+ ## 0.20.0 - 2026-10-26
20
+
21
+ - Share fleet workspace rows, safe bulk release, discard confirmation and recovery progress between both operator apps.
22
+
17
23
  ## 0.19.0 - 2026-10-25
18
24
 
19
25
  - Show original and derived acceptance, source links, inherited proof, pending instructions and exclusions consistently in both clients.
@@ -0,0 +1,73 @@
1
+ import { type FleetRefreshSlotStatus, type FleetRefreshSummaryEvent, type SlotRecoveryEligibility, type SlotStatus, type SlotWorkspaceIdentity } from '@farmslot/protocol';
2
+ export interface FleetRefreshClient {
3
+ contextKey(): string;
4
+ request<T>(method: string, params?: unknown, timeout?: number): Promise<T>;
5
+ subscribe(event: string, callback: (payload: unknown) => void): () => void;
6
+ }
7
+ export interface FleetWorkspaceRow {
8
+ slotId: string;
9
+ branch: string;
10
+ owner: string;
11
+ publication: string;
12
+ behind: string;
13
+ referenceTime: string;
14
+ action: string;
15
+ warning: string;
16
+ eligibility: SlotRecoveryEligibility;
17
+ }
18
+ /** Used by both fleet cards and both progress renderers. */
19
+ export declare function fleetWorkspaceRow(slot: SlotStatus): FleetWorkspaceRow;
20
+ export declare function fleetRecoverySummary(slots: readonly SlotStatus[]): {
21
+ count: number;
22
+ canInspect: boolean;
23
+ };
24
+ export interface FleetRefreshRow extends FleetWorkspaceRow {
25
+ slot: SlotStatus;
26
+ status: FleetRefreshSlotStatus | 'idle';
27
+ detail: string;
28
+ log: string[];
29
+ }
30
+ export interface FleetDiscardConfirmation {
31
+ slotId: string;
32
+ warning: string;
33
+ identity: SlotWorkspaceIdentity;
34
+ }
35
+ /** One state machine for CC and Companion. Clients only render and forward presses. */
36
+ export declare class FleetRefreshViewModel {
37
+ private readonly client;
38
+ private readonly makeId;
39
+ rows: FleetRefreshRow[];
40
+ phase: 'loading' | 'review' | 'running' | 'done' | 'error';
41
+ error: string;
42
+ summary: FleetRefreshSummaryEvent | null;
43
+ confirmation: FleetDiscardConfirmation | null;
44
+ private listeners;
45
+ private unsubscribers;
46
+ private scope;
47
+ private requestId;
48
+ private bulkRunning;
49
+ get canCancel(): boolean;
50
+ private perSlotIds;
51
+ private activeTargets;
52
+ private loadGeneration;
53
+ private inspectedContext;
54
+ constructor(client: FleetRefreshClient, makeId: () => string);
55
+ subscribe(listener: () => void): () => void;
56
+ private changed;
57
+ get bulkCount(): number;
58
+ load(slotIds?: readonly string[]): Promise<void>;
59
+ private sameContext;
60
+ cancelConfirmation(): void;
61
+ release(slotId: string): Promise<void>;
62
+ confirmDiscard(): Promise<void>;
63
+ private refreshRows;
64
+ private update;
65
+ private setPerSlotIds;
66
+ private attach;
67
+ private releaseOne;
68
+ releaseIdle(): Promise<void>;
69
+ cancel(): Promise<void>;
70
+ private detach;
71
+ dispose(): void;
72
+ }
73
+ //# sourceMappingURL=fleet-refresh.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"fleet-refresh.d.ts","sourceRoot":"","sources":["../src/fleet-refresh.ts"],"names":[],"mappings":"AAAA,OAAO,EAIL,KAAK,sBAAsB,EAE3B,KAAK,wBAAwB,EAI7B,KAAK,uBAAuB,EAG5B,KAAK,UAAU,EACf,KAAK,qBAAqB,EAE3B,MAAM,oBAAoB,CAAC;AAE5B,MAAM,WAAW,kBAAkB;IACjC,UAAU,IAAI,MAAM,CAAC;IACrB,OAAO,CAAC,CAAC,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM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/** Used by both fleet cards and both progress renderers. */
3
+ export function fleetWorkspaceRow(slot) {
4
+ const work = slot.workspace;
5
+ const defaultBranch = work?.defaultBranch ?? 'main';
6
+ const currentRun = work ? work.currentRunId : slot.currentRunId;
7
+ const eligibility = slotRecoveryEligibility(slot);
8
+ const owners = [
9
+ currentRun ? `Run ${currentRun.slice(0, 8)}` : null,
10
+ (work ? work.cleanupRunId : slot.cleanupRunId)
11
+ ? `Cleanup ${(work ? work.cleanupRunId : slot.cleanupRunId).slice(0, 8)}`
12
+ : null,
13
+ (work ? work.handoffRunId : slot.handoffRunId)
14
+ ? `Handoff ${(work ? work.handoffRunId : slot.handoffRunId).slice(0, 8)}`
15
+ : null,
16
+ ].filter((value) => !!value);
17
+ return {
18
+ slotId: slot.slot,
19
+ branch: work?.branch ?? slot.branch ?? 'Unknown branch',
20
+ owner: owners.length ? owners.join(' / ') : 'Unowned',
21
+ publication: eligibility.reason === 'unknown' ? 'unknown' : (work?.publication ?? 'unknown'),
22
+ behind: eligibility.reason === 'unknown' || work?.behind == null
23
+ ? `Behind ${defaultBranch} unknown`
24
+ : `${work.behind} behind ${defaultBranch}${work.remoteAdvanced ? ' · remote advanced' : ''}`,
25
+ referenceTime: work?.defaultFetchedAt && Number.isFinite(Date.parse(work.defaultFetchedAt))
26
+ ? `Fetched ${new Date(work.defaultFetchedAt).toISOString().slice(0, 16).replace('T', ' ')}Z`
27
+ : 'Fetch time unknown',
28
+ action: eligibility.reason === 'unknown' && (!work || work.publication === 'unknown')
29
+ ? 'Inspect workspace'
30
+ : work?.recovery
31
+ ? 'Retry release and update to main'
32
+ : 'Release and update to main',
33
+ warning: eligibility.confirmationRequired
34
+ ? `${work?.dirtyCount ?? 0} changed files, ${work?.unpublishedCount ?? 0} unpublished commits on ${work?.branch ?? slot.branch}`
35
+ : (eligibility.detail ?? slot.workspaceError ?? ''),
36
+ eligibility,
37
+ };
38
+ }
39
+ export function fleetRecoverySummary(slots) {
40
+ const eligibility = slots.map((slot) => slotRecoveryEligibility(slot));
41
+ return {
42
+ count: eligibility.filter((row) => row.bulkAllowed).length,
43
+ canInspect: eligibility.some((row) => row.bulkInspectable),
44
+ };
45
+ }
46
+ /** One state machine for CC and Companion. Clients only render and forward presses. */
47
+ export class FleetRefreshViewModel {
48
+ get canCancel() {
49
+ return this.phase === 'running' && this.bulkRunning;
50
+ }
51
+ constructor(client, makeId) {
52
+ this.client = client;
53
+ this.makeId = makeId;
54
+ this.rows = [];
55
+ this.phase = 'loading';
56
+ this.error = '';
57
+ this.summary = null;
58
+ this.confirmation = null;
59
+ this.listeners = new Set();
60
+ this.unsubscribers = [];
61
+ this.scope = null;
62
+ this.requestId = '';
63
+ this.bulkRunning = false;
64
+ this.perSlotIds = new Map();
65
+ this.activeTargets = new Set();
66
+ this.loadGeneration = 0;
67
+ }
68
+ subscribe(listener) {
69
+ this.listeners.add(listener);
70
+ return () => this.listeners.delete(listener);
71
+ }
72
+ changed() {
73
+ for (const listener of this.listeners)
74
+ listener();
75
+ }
76
+ get bulkCount() {
77
+ return this.rows.filter((row) => row.eligibility.bulkAllowed).length;
78
+ }
79
+ async load(slotIds) {
80
+ const generation = ++this.loadGeneration;
81
+ const context = this.client.contextKey();
82
+ this.inspectedContext = undefined;
83
+ this.rows = [];
84
+ this.summary = null;
85
+ this.detach();
86
+ this.scope = slotIds ? new Set(slotIds) : null;
87
+ this.phase = 'loading';
88
+ this.error = '';
89
+ this.confirmation = null;
90
+ this.changed();
91
+ try {
92
+ const { fleet } = await this.client.request(Methods.FLEET_STATUS, {});
93
+ if (generation !== this.loadGeneration)
94
+ return;
95
+ if (context !== this.client.contextKey())
96
+ throw new Error('Farm connection changed; inspect again');
97
+ this.inspectedContext = context;
98
+ this.rows = fleet.slots
99
+ .filter((slot) => !this.scope || this.scope.has(slot.slot))
100
+ .map((slot) => ({ ...fleetWorkspaceRow(slot), slot, status: 'idle', detail: '', log: [] }));
101
+ this.phase = 'review';
102
+ }
103
+ catch (error) {
104
+ this.error = error instanceof Error ? error.message : String(error);
105
+ this.phase = 'error';
106
+ }
107
+ this.changed();
108
+ }
109
+ sameContext() {
110
+ if (this.inspectedContext !== undefined && this.inspectedContext === this.client.contextKey())
111
+ return true;
112
+ this.rows = [];
113
+ this.confirmation = null;
114
+ this.phase = 'error';
115
+ this.error = 'Farm connection changed; inspect again';
116
+ this.changed();
117
+ return false;
118
+ }
119
+ cancelConfirmation() {
120
+ this.confirmation = null;
121
+ this.changed();
122
+ }
123
+ async release(slotId) {
124
+ if (!this.sameContext())
125
+ return;
126
+ const row = this.rows.find((value) => value.slotId === slotId);
127
+ if (!row)
128
+ return;
129
+ if (row.status === 'failed') {
130
+ await this.load(this.rows.map((value) => value.slotId));
131
+ const fresh = this.rows.find((value) => value.slotId === slotId);
132
+ if (fresh?.eligibility.allowed)
133
+ await this.release(slotId);
134
+ return;
135
+ }
136
+ if (row.eligibility.reason === 'unknown') {
137
+ const releaseRequested = row.action !== 'Inspect workspace';
138
+ await this.load(this.rows.map((value) => value.slotId));
139
+ const fresh = this.rows.find((value) => value.slotId === slotId);
140
+ if (releaseRequested && fresh?.eligibility.allowed)
141
+ await this.release(slotId);
142
+ return;
143
+ }
144
+ if (!row.eligibility.allowed || !row.slot.workspace)
145
+ return;
146
+ if (row.eligibility.confirmationRequired) {
147
+ this.confirmation = {
148
+ slotId,
149
+ warning: row.warning,
150
+ identity: slotWorkspaceIdentity(row.slot.workspace),
151
+ };
152
+ this.changed();
153
+ return;
154
+ }
155
+ await this.releaseOne(slotId, 'safe', slotWorkspaceIdentity(row.slot.workspace));
156
+ }
157
+ async confirmDiscard() {
158
+ if (!this.sameContext())
159
+ return;
160
+ const confirmation = this.confirmation;
161
+ if (!confirmation)
162
+ return;
163
+ this.confirmation = null;
164
+ this.changed();
165
+ await this.releaseOne(confirmation.slotId, 'force', confirmation.identity);
166
+ }
167
+ async refreshRows() {
168
+ if (!this.sameContext())
169
+ return;
170
+ const { fleet } = await this.client.request(Methods.FLEET_STATUS, {});
171
+ if (!this.sameContext())
172
+ return;
173
+ const current = new Map(fleet.slots.map((slot) => [slot.slot, slot]));
174
+ this.rows = this.rows.map((row) => {
175
+ const slot = current.get(row.slotId);
176
+ return slot ? { ...row, ...fleetWorkspaceRow(slot), slot } : row;
177
+ });
178
+ this.changed();
179
+ }
180
+ update(slotId, fields) {
181
+ this.rows = this.rows.map((row) => (row.slotId === slotId ? { ...row, ...fields } : row));
182
+ this.changed();
183
+ }
184
+ setPerSlotIds(ids) {
185
+ for (const [slotId, id] of Object.entries(ids))
186
+ if (this.activeTargets.has(slotId))
187
+ this.perSlotIds.set(id, slotId);
188
+ }
189
+ attach(requestId) {
190
+ this.detach();
191
+ this.requestId = requestId;
192
+ this.unsubscribers.push(this.client.subscribe(Events.FLEET_REFRESH_SCHEDULED, (payload) => {
193
+ const event = payload;
194
+ if (event.requestId !== requestId || !this.sameContext())
195
+ return;
196
+ this.setPerSlotIds(event.perSlotRequestIds);
197
+ }));
198
+ this.unsubscribers.push(this.client.subscribe(Events.FLEET_REFRESH_SLOT_UPDATE, (payload) => {
199
+ const event = payload;
200
+ if (event.requestId !== requestId || !this.sameContext())
201
+ return;
202
+ this.update(event.slotId, {
203
+ status: event.status,
204
+ detail: event.detail ?? event.reason ?? '',
205
+ });
206
+ }));
207
+ this.unsubscribers.push(this.client.subscribe(Events.FLEET_REFRESH_SUMMARY, (payload) => {
208
+ const event = payload;
209
+ if (event.requestId !== requestId || !this.sameContext())
210
+ return;
211
+ this.summary = event;
212
+ this.bulkRunning = false;
213
+ void this.refreshRows()
214
+ .then(() => {
215
+ if (event.requestId !== this.requestId || !this.sameContext())
216
+ return;
217
+ this.phase = 'done';
218
+ this.detach();
219
+ this.changed();
220
+ })
221
+ .catch((error) => {
222
+ if (event.requestId !== this.requestId || !this.sameContext())
223
+ return;
224
+ this.error = error instanceof Error ? error.message : String(error);
225
+ this.rows = this.rows.map((row) => {
226
+ const slot = { ...row.slot, workspace: undefined, workspaceError: this.error };
227
+ return { ...row, ...fleetWorkspaceRow(slot), slot };
228
+ });
229
+ this.phase = 'error';
230
+ this.detach();
231
+ this.changed();
232
+ });
233
+ this.changed();
234
+ }));
235
+ this.unsubscribers.push(this.client.subscribe(Events.SCRIPT_OUTPUT, (payload) => {
236
+ const event = payload;
237
+ const slotId = this.perSlotIds.get(event.requestId);
238
+ const row = this.rows.find((value) => value.slotId === slotId);
239
+ if (row)
240
+ this.update(row.slotId, {
241
+ log: [...row.log, ...event.data.split('\n').filter(Boolean)].slice(-100),
242
+ });
243
+ }));
244
+ }
245
+ async releaseOne(slotId, mode, identity) {
246
+ if (!this.sameContext())
247
+ return;
248
+ const requestId = this.makeId();
249
+ this.bulkRunning = false;
250
+ this.activeTargets = new Set([slotId]);
251
+ this.attach(requestId);
252
+ this.perSlotIds = new Map([[requestId, slotId]]);
253
+ this.phase = 'running';
254
+ this.update(slotId, { status: 'running', detail: '', log: [] });
255
+ try {
256
+ const result = await this.client.request(Methods.SLOT_REFRESH, { slotId, mode, release: true, expectedWorkspace: identity, requestId }, 30 * 60_000);
257
+ if (!this.sameContext()) {
258
+ this.detach();
259
+ return;
260
+ }
261
+ this.update(slotId, {
262
+ status: result.refreshed ? 'refreshed' : 'failed',
263
+ detail: result.detail ?? result.reason ?? 'Ready on main',
264
+ });
265
+ this.phase = 'done';
266
+ await this.refreshRows();
267
+ }
268
+ catch (error) {
269
+ this.update(slotId, {
270
+ status: 'failed',
271
+ detail: error instanceof Error ? error.message : String(error),
272
+ });
273
+ this.phase = 'done';
274
+ }
275
+ this.detach();
276
+ this.changed();
277
+ }
278
+ async releaseIdle() {
279
+ if (!this.sameContext())
280
+ return;
281
+ // Freeze exact logical membership before the request. No bulk force path.
282
+ const targets = this.rows
283
+ .filter((row) => row.eligibility.bulkAllowed && row.slot.workspace)
284
+ .map((row) => ({
285
+ slotId: row.slotId,
286
+ mode: 'safe',
287
+ release: true,
288
+ expectedWorkspace: slotWorkspaceIdentity(row.slot.workspace),
289
+ }));
290
+ if (!targets.length)
291
+ return;
292
+ const requestId = this.makeId();
293
+ this.bulkRunning = true;
294
+ this.attach(requestId);
295
+ this.activeTargets = new Set(targets.map((target) => target.slotId));
296
+ this.perSlotIds = new Map();
297
+ for (const target of targets)
298
+ this.update(target.slotId, { status: 'pending', detail: '', log: [] });
299
+ this.phase = 'running';
300
+ this.changed();
301
+ try {
302
+ const result = await this.client.request(Methods.FLEET_REFRESH_SLOTS, { requestId, slots: targets }, 30 * 60_000);
303
+ if (!this.sameContext())
304
+ return;
305
+ if (result.requestId !== requestId)
306
+ throw new Error('Bulk request identity changed');
307
+ this.setPerSlotIds(result.perSlotRequestIds);
308
+ }
309
+ catch (error) {
310
+ this.error = error instanceof Error ? error.message : String(error);
311
+ this.phase = 'error';
312
+ this.detach();
313
+ this.changed();
314
+ }
315
+ }
316
+ async cancel() {
317
+ if (!this.canCancel || !this.sameContext())
318
+ return;
319
+ try {
320
+ await this.client.request(Methods.FLEET_REFRESH_SLOTS_CANCEL, { requestId: this.requestId });
321
+ }
322
+ catch (error) {
323
+ this.error = error instanceof Error ? error.message : String(error);
324
+ this.changed();
325
+ }
326
+ }
327
+ detach() {
328
+ for (const unsubscribe of this.unsubscribers)
329
+ unsubscribe();
330
+ this.unsubscribers = [];
331
+ }
332
+ dispose() {
333
+ ++this.loadGeneration;
334
+ this.detach();
335
+ this.listeners.clear();
336
+ }
337
+ }
338
+ //# sourceMappingURL=fleet-refresh.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"fleet-refresh.js","sourceRoot":"","sources":["../src/fleet-refresh.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,MAAM,EAON,OAAO,EAGP,uBAAuB,EAIvB,qBAAqB,GACtB,MAAM,oBAAoB,CAAC;AAoB5B,4DAA4D;AAC5D,MAAM,UAAU,iBAAiB,CAAC,IAAgB;IAChD,MAAM,IAAI,GAAG,IAAI,CAAC,SAAS,CAAC;IAC5B,MAAM,aAAa,GAAG,IAAI,EAAE,aAAa,IAAI,MAAM,CAAC;IACp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AC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;YACpE,IAAI,CAAC,KAAK,GAAG,OAAO,CAAC;YACrB,IAAI,CAAC,MAAM,EAAE,CAAC;YACd,IAAI,CAAC,OAAO,EAAE,CAAC;QACjB,CAAC;IACH,CAAC;IACD,KAAK,CAAC,MAAM;QACV,IAAI,CAAC,IAAI,CAAC,SAAS,IAAI,CAAC,IAAI,CAAC,WAAW,EAAE;YAAE,OAAO;QACnD,IAAI,CAAC;YACH,MAAM,IAAI,CAAC,MAAM,CAAC,OAAO,CAAC,OAAO,CAAC,0BAA0B,EAAE,EAAE,SAAS,EAAE,IAAI,CAAC,SAAS,EAAE,CAAC,CAAC;QAC/F,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YACf,IAAI,CAAC,KAAK,GAAG,KAAK,YAAY,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;YACpE,IAAI,CAAC,OAAO,EAAE,CAAC;QACjB,CAAC;IACH,CAAC;IACO,MAAM;QACZ,KAAK,MAAM,WAAW,IAAI,IAAI,CAAC,aAAa;YAAE,WAAW,EAAE,CAAC;QAC5D,IAAI,CAAC,aAAa,GAAG,EAAE,CAAC;IAC1B,CAAC;IACD,OAAO;QACL,EAAE,IAAI,CAAC,cAAc,CAAC;QACtB,IAAI,CAAC,MAAM,EAAE,CAAC;QACd,IAAI,CAAC,SAAS,CAAC,KAAK,EAAE,CAAC;IACzB,CAAC;CACF"}
package/dist/index.d.ts CHANGED
@@ -4,6 +4,7 @@ export * from './catalog.js';
4
4
  export * from './checklist-progress.js';
5
5
  export * from './ci-watch-status.js';
6
6
  export * from './execution.js';
7
+ export * from './fleet-refresh.js';
7
8
  export * from './native-worker-target.js';
8
9
  export * from './operator-message.js';
9
10
  export * from './provenance.js';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,sBAAsB,CAAC;AACrC,cAAc,qBAAqB,CAAC;AACpC,cAAc,cAAc,CAAC;AAC7B,cAAc,yBAAyB,CAAC;AACxC,cAAc,sBAAsB,CAAC;AACrC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,2BAA2B,CAAC;AAC1C,cAAc,uBAAuB,CAAC;AACtC,cAAc,iBAAiB,CAAC;AAChC,cAAc,uBAAuB,CAAC;AACtC,cAAc,sBAAsB,CAAC;AACrC,cAAc,0BAA0B,CAAC;AACzC,cAAc,qBAAqB,CAAC;AACpC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,mBAAmB,CAAC;AAClC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,kBAAkB,CAAC;AACjC,cAAc,0BAA0B,CAAC;AACzC,cAAc,YAAY,CAAC;AAC3B,cAAc,iBAAiB,CAAC;AAChC,cAAc,iBAAiB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,sBAAsB,CAAC;AACrC,cAAc,qBAAqB,CAAC;AACpC,cAAc,cAAc,CAAC;AAC7B,cAAc,yBAAyB,CAAC;AACxC,cAAc,sBAAsB,CAAC;AACrC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,oBAAoB,CAAC;AACnC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,uBAAuB,CAAC;AACtC,cAAc,iBAAiB,CAAC;AAChC,cAAc,uBAAuB,CAAC;AACtC,cAAc,sBAAsB,CAAC;AACrC,cAAc,0BAA0B,CAAC;AACzC,cAAc,qBAAqB,CAAC;AACpC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,mBAAmB,CAAC;AAClC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,kBAAkB,CAAC;AACjC,cAAc,0BAA0B,CAAC;AACzC,cAAc,YAAY,CAAC;AAC3B,cAAc,iBAAiB,CAAC;AAChC,cAAc,iBAAiB,CAAC"}
package/dist/index.js CHANGED
@@ -4,6 +4,7 @@ export * from './catalog.js';
4
4
  export * from './checklist-progress.js';
5
5
  export * from './ci-watch-status.js';
6
6
  export * from './execution.js';
7
+ export * from './fleet-refresh.js';
7
8
  export * from './native-worker-target.js';
8
9
  export * from './operator-message.js';
9
10
  export * from './provenance.js';
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,sBAAsB,CAAC;AACrC,cAAc,qBAAqB,CAAC;AACpC,cAAc,cAAc,CAAC;AAC7B,cAAc,yBAAyB,CAAC;AACxC,cAAc,sBAAsB,CAAC;AACrC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,2BAA2B,CAAC;AAC1C,cAAc,uBAAuB,CAAC;AACtC,cAAc,iBAAiB,CAAC;AAChC,cAAc,uBAAuB,CAAC;AACtC,cAAc,sBAAsB,CAAC;AACrC,cAAc,0BAA0B,CAAC;AACzC,cAAc,qBAAqB,CAAC;AACpC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,mBAAmB,CAAC;AAClC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,kBAAkB,CAAC;AACjC,cAAc,0BAA0B,CAAC;AACzC,cAAc,YAAY,CAAC;AAC3B,cAAc,iBAAiB,CAAC;AAChC,cAAc,iBAAiB,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,sBAAsB,CAAC;AACrC,cAAc,qBAAqB,CAAC;AACpC,cAAc,cAAc,CAAC;AAC7B,cAAc,yBAAyB,CAAC;AACxC,cAAc,sBAAsB,CAAC;AACrC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,oBAAoB,CAAC;AACnC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,uBAAuB,CAAC;AACtC,cAAc,iBAAiB,CAAC;AAChC,cAAc,uBAAuB,CAAC;AACtC,cAAc,sBAAsB,CAAC;AACrC,cAAc,0BAA0B,CAAC;AACzC,cAAc,qBAAqB,CAAC;AACpC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,mBAAmB,CAAC;AAClC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,kBAAkB,CAAC;AACjC,cAAc,0BAA0B,CAAC;AACzC,cAAc,YAAY,CAAC;AAC3B,cAAc,iBAAiB,CAAC;AAChC,cAAc,iBAAiB,CAAC"}
@@ -102,7 +102,7 @@ export declare function reviewHistoryView(run: Run, artifacts?: ReviewHistoryArt
102
102
  } | null;
103
103
  summary: string;
104
104
  chain: {
105
- continuity: import("@farmslot/protocol").ReviewSessionContinuity | "unknown";
105
+ continuity: "unknown" | import("@farmslot/protocol").ReviewSessionContinuity;
106
106
  range: string;
107
107
  diffPath: string | null;
108
108
  chainId: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@farmslot/review-dispatch",
3
- "version": "0.19.0",
3
+ "version": "0.20.0",
4
4
  "description": "Shared review and dispatch selection, validation, and view model",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -33,7 +33,7 @@
33
33
  },
34
34
  "dependencies": {
35
35
  "@farmslot/adapter-sdk": "0.25.1",
36
- "@farmslot/protocol": "0.71.0"
36
+ "@farmslot/protocol": "0.73.0"
37
37
  },
38
38
  "devDependencies": {
39
39
  "@types/node": "^22.0.0",