Skip to content

Commit 8fc88be

Browse files
authored
refactor(workboard): localize private store types (#100989)
1 parent 123ec16 commit 8fc88be

4 files changed

Lines changed: 37 additions & 37 deletions

File tree

extensions/workboard/src/card-lookup.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// Workboard plugin module implements card lookup behavior.
22
import type { WorkboardCard } from "./types.js";
33

4-
export type WorkboardCardLookupResult =
4+
type WorkboardCardLookupResult =
55
| { card: WorkboardCard; error?: undefined }
66
| { card?: undefined; error: string };
77

extensions/workboard/src/dispatcher.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ const DEFAULT_DISPATCH_MODEL = "default";
1212
export type WorkboardSubagentRuntime = Pick<PluginRuntime["subagent"], "run">;
1313
export type WorkboardWorktreeRuntime = PluginRuntime["worktrees"];
1414

15-
export type WorkboardDispatchStartOptions = {
15+
type WorkboardDispatchStartOptions = {
1616
maxStarts?: number;
1717
model?: string;
1818
provider?: string;
@@ -22,20 +22,20 @@ export type WorkboardDispatchStartOptions = {
2222
allowManagedWorktrees?: boolean;
2323
};
2424

25-
export type WorkboardStartedRun = {
25+
type WorkboardStartedRun = {
2626
cardId: string;
2727
title: string;
2828
sessionKey: string;
2929
runId: string;
3030
};
3131

32-
export type WorkboardStartFailure = {
32+
type WorkboardStartFailure = {
3333
cardId: string;
3434
title: string;
3535
error: string;
3636
};
3737

38-
export type WorkboardDispatchAndStartResult = WorkboardDispatchResult & {
38+
type WorkboardDispatchAndStartResult = WorkboardDispatchResult & {
3939
started: WorkboardStartedRun[];
4040
startFailures: WorkboardStartFailure[];
4141
};

extensions/workboard/src/sqlite-store.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ const WORKBOARD_SQLITE_FILE_MODE = 0o600;
3535

3636
type Row = Record<string, unknown>;
3737

38-
export type WorkboardSqliteStores = {
38+
type WorkboardSqliteStores = {
3939
cards: WorkboardKeyedStore;
4040
boards: WorkboardKeyedStore<PersistedWorkboardBoard>;
4141
subscriptions: WorkboardKeyedStore<PersistedWorkboardNotificationSubscription>;

extensions/workboard/src/store.ts

Lines changed: 31 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ function addWorkboardDurationMs(now: number, durationMs: number): number {
102102
return resolveExpiresAtMsFromDurationMs(durationMs, { nowMs: now }) ?? MAX_DATE_TIMESTAMP_MS;
103103
}
104104

105-
export type WorkboardCardInput = {
105+
type WorkboardCardInput = {
106106
title?: unknown;
107107
notes?: unknown;
108108
status?: unknown;
@@ -131,71 +131,71 @@ export type WorkboardCardInput = {
131131
parents?: unknown;
132132
};
133133

134-
export type WorkboardCardPatch = Partial<WorkboardCardInput>;
135-
export type WorkboardCommentInput = { body?: unknown };
136-
export type WorkboardLinkInput = {
134+
type WorkboardCardPatch = Partial<WorkboardCardInput>;
135+
type WorkboardCommentInput = { body?: unknown };
136+
type WorkboardLinkInput = {
137137
type?: unknown;
138138
targetCardId?: unknown;
139139
title?: unknown;
140140
url?: unknown;
141141
};
142-
export type WorkboardLinkedCreateInput = WorkboardCardInput & {
142+
type WorkboardLinkedCreateInput = WorkboardCardInput & {
143143
parents?: unknown;
144144
};
145-
export type WorkboardProofInput = {
145+
type WorkboardProofInput = {
146146
status?: unknown;
147147
label?: unknown;
148148
command?: unknown;
149149
url?: unknown;
150150
note?: unknown;
151151
};
152-
export type WorkboardArtifactInput = {
152+
type WorkboardArtifactInput = {
153153
label?: unknown;
154154
url?: unknown;
155155
path?: unknown;
156156
mimeType?: unknown;
157157
};
158-
export type WorkboardAttachmentInput = {
158+
type WorkboardAttachmentInput = {
159159
fileName?: unknown;
160160
contentBase64?: unknown;
161161
mimeType?: unknown;
162162
note?: unknown;
163163
};
164-
export type WorkboardWorkerLogInput = {
164+
type WorkboardWorkerLogInput = {
165165
level?: unknown;
166166
message?: unknown;
167167
sessionKey?: unknown;
168168
runId?: unknown;
169169
};
170-
export type WorkboardProtocolViolationInput = {
170+
type WorkboardProtocolViolationInput = {
171171
detail?: unknown;
172172
sessionKey?: unknown;
173173
runId?: unknown;
174174
};
175-
export type WorkboardClaimInput = {
175+
type WorkboardClaimInput = {
176176
ownerId?: unknown;
177177
token?: unknown;
178178
ttlSeconds?: unknown;
179179
};
180-
export type WorkboardHeartbeatInput = {
180+
type WorkboardHeartbeatInput = {
181181
token?: unknown;
182182
ownerId?: unknown;
183183
note?: unknown;
184184
};
185-
export type WorkboardBulkInput = {
185+
type WorkboardBulkInput = {
186186
ids?: unknown;
187187
patch?: unknown;
188188
archived?: unknown;
189189
};
190-
export type WorkboardCompleteInput = {
190+
type WorkboardCompleteInput = {
191191
ownerId?: unknown;
192192
token?: unknown;
193193
summary?: unknown;
194194
proof?: unknown;
195195
artifacts?: unknown;
196196
createdCardIds?: unknown;
197197
};
198-
export type WorkboardBlockInput = {
198+
type WorkboardBlockInput = {
199199
ownerId?: unknown;
200200
token?: unknown;
201201
reason?: unknown;
@@ -207,13 +207,13 @@ export type WorkboardDispatchResult = {
207207
orchestrated: WorkboardCard[];
208208
count: number;
209209
};
210-
export type WorkboardListOptions = {
210+
type WorkboardListOptions = {
211211
boardId?: unknown;
212212
};
213-
export type WorkboardDispatchOptions = WorkboardListOptions & {
213+
type WorkboardDispatchOptions = WorkboardListOptions & {
214214
now?: unknown;
215215
};
216-
export type WorkboardBoardSummary = {
216+
type WorkboardBoardSummary = {
217217
id: string;
218218
name?: string;
219219
description?: string;
@@ -228,25 +228,25 @@ export type WorkboardBoardSummary = {
228228
updatedAt?: number;
229229
archivedAt?: number;
230230
};
231-
export type WorkboardStatsResult = WorkboardBoardSummary & {
231+
type WorkboardStatsResult = WorkboardBoardSummary & {
232232
byAgent: Record<string, number>;
233233
oldestReadyAgeMs?: number;
234234
};
235-
export type WorkboardPromoteInput = {
235+
type WorkboardPromoteInput = {
236236
force?: unknown;
237237
reason?: unknown;
238238
};
239-
export type WorkboardReassignInput = {
239+
type WorkboardReassignInput = {
240240
agentId?: unknown;
241241
status?: unknown;
242242
resetFailures?: unknown;
243243
reason?: unknown;
244244
};
245-
export type WorkboardReclaimInput = {
245+
type WorkboardReclaimInput = {
246246
status?: unknown;
247247
reason?: unknown;
248248
};
249-
export type WorkboardBoardInput = {
249+
type WorkboardBoardInput = {
250250
id?: unknown;
251251
name?: unknown;
252252
description?: unknown;
@@ -256,39 +256,39 @@ export type WorkboardBoardInput = {
256256
orchestration?: unknown;
257257
archived?: unknown;
258258
};
259-
export type WorkboardSpecifyInput = WorkboardCardPatch & {
259+
type WorkboardSpecifyInput = WorkboardCardPatch & {
260260
summary?: unknown;
261261
};
262-
export type WorkboardDecomposeChildInput = WorkboardLinkedCreateInput & {
262+
type WorkboardDecomposeChildInput = WorkboardLinkedCreateInput & {
263263
idempotencyKey?: unknown;
264264
};
265-
export type WorkboardDecomposeInput = {
265+
type WorkboardDecomposeInput = {
266266
summary?: unknown;
267267
children?: unknown;
268268
completeParent?: unknown;
269269
};
270-
export type WorkboardNotificationSubscribeInput = {
270+
type WorkboardNotificationSubscribeInput = {
271271
boardId?: unknown;
272272
cardId?: unknown;
273273
sessionKey?: unknown;
274274
runId?: unknown;
275275
target?: unknown;
276276
eventKinds?: unknown;
277277
};
278-
export type WorkboardNotificationListOptions = {
278+
type WorkboardNotificationListOptions = {
279279
boardId?: unknown;
280280
cardId?: unknown;
281281
};
282-
export type WorkboardNotificationEventsInput = WorkboardNotificationListOptions & {
282+
type WorkboardNotificationEventsInput = WorkboardNotificationListOptions & {
283283
subscriptionId?: unknown;
284284
limit?: unknown;
285285
};
286-
export type WorkboardMutationScope = {
286+
type WorkboardMutationScope = {
287287
ownerId?: unknown;
288288
token?: unknown;
289289
};
290290

291-
export type WorkboardDiagnosticsResult = {
291+
type WorkboardDiagnosticsResult = {
292292
diagnostics: Array<{
293293
card: WorkboardCard;
294294
diagnostics: WorkboardDiagnostic[];

0 commit comments

Comments
 (0)