@lensmcp/protocol-types 1.26.35 → 1.26.37
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/index.d.ts +3 -0
- package/index.js +1 -1
- package/lib/dashboard.d.ts +2 -0
- package/lib/delivery-actions.d.ts +234 -0
- package/lib/delivery-actions.js +1 -0
- package/lib/delivery-status.d.ts +194 -4
- package/lib/goal-process.d.ts +441 -0
- package/lib/goal-process.js +1 -0
- package/lib/peers.d.ts +1 -1
- package/lib/team-decide.d.ts +191 -0
- package/lib/team-decide.js +1 -0
- package/lib/team-design.d.ts +43 -7
- package/lib/team-design.js +1 -1
- package/lib/team-library.d.ts +2 -0
- package/lib/team-roadmap.d.ts +44 -2
- package/lib/team.d.ts +54 -1
- package/package.json +1 -1
|
@@ -0,0 +1,441 @@
|
|
|
1
|
+
import type { DashGoalCleanup, DashGoalLanding } from './delivery-status.js';
|
|
2
|
+
import type { TaskTiming } from './task-timing.js';
|
|
3
|
+
import type { DashTeamStep, DashTeamWorktreeState } from './team.js';
|
|
4
|
+
/**
|
|
5
|
+
* Team › Process (issues/closed/hub-10): the process one goal actually ran, step by step, from the store's own records —
|
|
6
|
+
* its worktree and managers, its packages with their checkouts, writers, candidates, reviews and runs, its goal QA's
|
|
7
|
+
* logged steps, how it landed, the Main QA run that judged it — and «How a goal runs here»: the repository's live settings
|
|
8
|
+
* that shape it, each with where the person changes it. The owner, 2026-11-25: «i need somehow to display me the actual
|
|
9
|
+
* process of these things so i can review and adjust».
|
|
10
|
+
*
|
|
11
|
+
* GET /api/team/process «How a goal runs here» and the newest goals to pick
|
|
12
|
+
* GET /api/team/process?goal=<ref> … and one goal's process (`ref`: its id, 8 or more of its first characters, or G-n)
|
|
13
|
+
*/
|
|
14
|
+
export interface DashGoalProcessAnswer {
|
|
15
|
+
at: number;
|
|
16
|
+
how: DashGoalHow;
|
|
17
|
+
/** The newest goals, by number: what the page offers to open when none is named. */
|
|
18
|
+
goals: DashGoalProcessHead[];
|
|
19
|
+
process?: DashGoalProcess;
|
|
20
|
+
/** Why the goal named could not be read. */
|
|
21
|
+
problem?: string;
|
|
22
|
+
}
|
|
23
|
+
export interface DashGoalProcessHead {
|
|
24
|
+
id: string;
|
|
25
|
+
number?: number;
|
|
26
|
+
title: string;
|
|
27
|
+
state: string;
|
|
28
|
+
outcome?: string;
|
|
29
|
+
updatedAt: number;
|
|
30
|
+
}
|
|
31
|
+
/** Where a setting is changed: a page of the dashboard, or a key of a team file. */
|
|
32
|
+
export interface DashGoalHowChange {
|
|
33
|
+
/** `limits`: Team › Limits; `roles`: Team › Roles; `settings`: a Settings page (`page`); `board`: Team › Board (Main QA's pause); `file`: a team file. */
|
|
34
|
+
where: 'limits' | 'roles' | 'settings' | 'board' | 'file';
|
|
35
|
+
/** A Settings page's id (`team`), when `where` is `settings`. */
|
|
36
|
+
page?: string;
|
|
37
|
+
/** The team file, repository-relative (`.lensmcp/team/flow.json`), and its key (`delivery.checkouts`). */
|
|
38
|
+
file?: string;
|
|
39
|
+
key?: string;
|
|
40
|
+
/** What the link says. */
|
|
41
|
+
label: string;
|
|
42
|
+
}
|
|
43
|
+
/** One statement of «How a goal runs here»: what LensMCP does here, in plain words, with this repository's numbers. */
|
|
44
|
+
export interface DashGoalHowLine {
|
|
45
|
+
id: string;
|
|
46
|
+
/** The step of the process it is about. */
|
|
47
|
+
step: 'goal' | 'packages' | 'parallel' | 'capacity' | 'agents' | 'qa' | 'landing' | 'main-qa';
|
|
48
|
+
text: string;
|
|
49
|
+
/** Where each number in it comes from, in a few words: «flow.json caps.writers», «live, set 14:02», «LensMCP's default». */
|
|
50
|
+
from?: string;
|
|
51
|
+
/** Something about it the person should know now (Main QA paused, a cap below a goal's capacity). */
|
|
52
|
+
warn?: string;
|
|
53
|
+
change?: DashGoalHowChange;
|
|
54
|
+
}
|
|
55
|
+
export interface DashGoalHow {
|
|
56
|
+
lines: DashGoalHowLine[];
|
|
57
|
+
/** The numbers behind the lines, for the flags and the page's own words. */
|
|
58
|
+
values: DashGoalHowValues;
|
|
59
|
+
}
|
|
60
|
+
export interface DashGoalHowValues {
|
|
61
|
+
checkouts: 'separate' | 'shared';
|
|
62
|
+
writersCap?: number;
|
|
63
|
+
checkersCap?: number;
|
|
64
|
+
qaRuns: number;
|
|
65
|
+
goalsMax: number;
|
|
66
|
+
/** Each goal's capacity, by key (`writers`, `reviewer`, `research`…). */
|
|
67
|
+
capacity: Record<string, number>;
|
|
68
|
+
goalQaBudgetMinutes: number | null;
|
|
69
|
+
mainQa: {
|
|
70
|
+
auto: boolean;
|
|
71
|
+
debounceMinutes: number;
|
|
72
|
+
budgetMinutes: number | null;
|
|
73
|
+
paused?: {
|
|
74
|
+
at: number;
|
|
75
|
+
runTitle: string;
|
|
76
|
+
reason?: string;
|
|
77
|
+
};
|
|
78
|
+
};
|
|
79
|
+
merge?: 'squash' | 'merge' | 'ff';
|
|
80
|
+
pullRequests: boolean;
|
|
81
|
+
launch: {
|
|
82
|
+
on: boolean;
|
|
83
|
+
max: number;
|
|
84
|
+
checkersMax: number;
|
|
85
|
+
autoManagers: boolean;
|
|
86
|
+
};
|
|
87
|
+
leadGuard?: string;
|
|
88
|
+
}
|
|
89
|
+
/** A link from the page to what an item is: a task's drawer, a run's log, a checkout's changes. */
|
|
90
|
+
export interface DashProcessLink {
|
|
91
|
+
task?: string;
|
|
92
|
+
run?: string;
|
|
93
|
+
checkout?: string;
|
|
94
|
+
session?: string;
|
|
95
|
+
}
|
|
96
|
+
export interface DashGoalProcess {
|
|
97
|
+
goal: DashProcessGoal;
|
|
98
|
+
worktree?: DashProcessWorktree;
|
|
99
|
+
managers: DashProcessManager[];
|
|
100
|
+
packages: DashProcessPackage[];
|
|
101
|
+
/** The goal's QA runs (`qa` tasks of goal level under it), oldest first. */
|
|
102
|
+
qa: DashProcessQa[];
|
|
103
|
+
/** The rest of the work under the goal — docs, research, a probe, a re-check — oldest first, at most {@link PROCESS_OTHERS_MAX}. */
|
|
104
|
+
others: DashProcessTask[];
|
|
105
|
+
othersMore?: number;
|
|
106
|
+
landing: DashProcessLanding;
|
|
107
|
+
mainQa: DashProcessMainQa;
|
|
108
|
+
flags: DashProcessFlag[];
|
|
109
|
+
/** What a live goal waits on right now, and since when — none once it ended (hub-10 «Now»). */
|
|
110
|
+
now?: DashProcessNow;
|
|
111
|
+
/** The span the timeline draws: the goal's first claim (else its making) to its end (else now). */
|
|
112
|
+
span: {
|
|
113
|
+
from: number;
|
|
114
|
+
to: number;
|
|
115
|
+
};
|
|
116
|
+
/** The most packages at work at one time, and when. */
|
|
117
|
+
peak?: {
|
|
118
|
+
packages: number;
|
|
119
|
+
at: number;
|
|
120
|
+
};
|
|
121
|
+
/** What was read in part: the tasks under the goal past the cap, the runs not read, a log cut. */
|
|
122
|
+
partial?: string[];
|
|
123
|
+
}
|
|
124
|
+
export declare const PROCESS_OTHERS_MAX = 30;
|
|
125
|
+
export interface DashProcessGoal {
|
|
126
|
+
id: string;
|
|
127
|
+
number?: number;
|
|
128
|
+
title: string;
|
|
129
|
+
state: string;
|
|
130
|
+
outcome?: string;
|
|
131
|
+
createdAt: number;
|
|
132
|
+
startedAt?: number;
|
|
133
|
+
endedAt?: number;
|
|
134
|
+
/** Its design: the version it runs, when it was approved, by whom — none on a goal made before designs. */
|
|
135
|
+
design?: {
|
|
136
|
+
version: number;
|
|
137
|
+
versions: number;
|
|
138
|
+
stage: string;
|
|
139
|
+
approvedAt?: number;
|
|
140
|
+
file?: string;
|
|
141
|
+
};
|
|
142
|
+
/** What it was planned at: its design's decision, and the plan it runs for. */
|
|
143
|
+
estimate?: {
|
|
144
|
+
packages?: number;
|
|
145
|
+
builds?: number;
|
|
146
|
+
hours?: number;
|
|
147
|
+
spendUsd?: number;
|
|
148
|
+
from?: string;
|
|
149
|
+
units?: string;
|
|
150
|
+
};
|
|
151
|
+
/** `high-risk`, `standard`… — the delivery profile its design pinned. */
|
|
152
|
+
profile?: string;
|
|
153
|
+
timing?: TaskTiming;
|
|
154
|
+
/** The person paused or drained it: when and why, as it stands now. */
|
|
155
|
+
admission?: {
|
|
156
|
+
mode: string;
|
|
157
|
+
at: number;
|
|
158
|
+
reason: string;
|
|
159
|
+
};
|
|
160
|
+
/** Its launches that waited for a slot, as its log says them: the role, when it began to wait, when that role launched next. */
|
|
161
|
+
capWaits: Array<{
|
|
162
|
+
role: string;
|
|
163
|
+
since: number;
|
|
164
|
+
until?: number;
|
|
165
|
+
machine?: boolean;
|
|
166
|
+
}>;
|
|
167
|
+
}
|
|
168
|
+
export interface DashProcessWorktree {
|
|
169
|
+
path: string;
|
|
170
|
+
name?: string;
|
|
171
|
+
branch?: string;
|
|
172
|
+
/** Whether its folder is on this disk now. */
|
|
173
|
+
onDisk: boolean;
|
|
174
|
+
/** Its key on the Changes page (`/changes/<key>`), while it is on disk. */
|
|
175
|
+
key?: string;
|
|
176
|
+
/** What it runs, as Cluster › Worktrees last read it — none: not read. */
|
|
177
|
+
app?: DashTeamWorktreeState;
|
|
178
|
+
/** What the goal-end sweep did with it (issues/closed/foodguard-321) — none: not swept. */
|
|
179
|
+
cleanup?: DashGoalCleanup;
|
|
180
|
+
/** LensMCP's own note of what became of it at the goal's end. */
|
|
181
|
+
note?: string;
|
|
182
|
+
}
|
|
183
|
+
export interface DashProcessManager {
|
|
184
|
+
sessionId: string;
|
|
185
|
+
/** Which claim of the goal it held (1, 2, …). */
|
|
186
|
+
generation: number;
|
|
187
|
+
startedAt: number;
|
|
188
|
+
endedAt?: number;
|
|
189
|
+
/** How its claim ended: `done`, `recovery` (its session ended), … — none: it holds it. */
|
|
190
|
+
outcome?: string;
|
|
191
|
+
launch?: string;
|
|
192
|
+
client?: string;
|
|
193
|
+
model?: string;
|
|
194
|
+
effort?: string;
|
|
195
|
+
/** The account's nickname or name — none: its own sign-in. */
|
|
196
|
+
account?: string;
|
|
197
|
+
/** Who started it: the person, or a manager's spawn. */
|
|
198
|
+
by?: string;
|
|
199
|
+
suspends: number[];
|
|
200
|
+
wakes: number[];
|
|
201
|
+
/** Why its session closed, as the store records it (`suspended`, `session-end`…). */
|
|
202
|
+
closed?: string;
|
|
203
|
+
}
|
|
204
|
+
/** One task of the process, briefly: who held it and when. */
|
|
205
|
+
export interface DashProcessTask {
|
|
206
|
+
id: string;
|
|
207
|
+
title: string;
|
|
208
|
+
kind?: string;
|
|
209
|
+
role?: string;
|
|
210
|
+
state: string;
|
|
211
|
+
outcome?: string;
|
|
212
|
+
createdAt: number;
|
|
213
|
+
/** Its first claim, and its end. */
|
|
214
|
+
claimedAt?: number;
|
|
215
|
+
endedAt?: number;
|
|
216
|
+
/** The agents that held it, in order. */
|
|
217
|
+
owners: string[];
|
|
218
|
+
claims: number;
|
|
219
|
+
}
|
|
220
|
+
export interface DashProcessCheckout {
|
|
221
|
+
/** Whose it is: a writer's (`implementation`, `tests`), the shared one (`work`), or a candidate's. */
|
|
222
|
+
of: 'implementation' | 'tests' | 'work' | 'candidate';
|
|
223
|
+
path: string;
|
|
224
|
+
branch?: string;
|
|
225
|
+
/** When LensMCP made it: the first task that worked in it, or the candidate's preparation. */
|
|
226
|
+
createdAt?: number;
|
|
227
|
+
/** Whether its folder is on this disk now — `false`: removed (LensMCP removes a package's checkouts once it integrates). */
|
|
228
|
+
onDisk: boolean;
|
|
229
|
+
/** The candidate's commit, for a candidate's checkout. */
|
|
230
|
+
sha?: string;
|
|
231
|
+
/** Its key on the Changes page (`/changes/<key>`), while it is on disk. */
|
|
232
|
+
key?: string;
|
|
233
|
+
}
|
|
234
|
+
export interface DashProcessWriter extends DashProcessTask {
|
|
235
|
+
writer: 'implementation' | 'tests';
|
|
236
|
+
/** `implementation`, `test-author`, `repair`. */
|
|
237
|
+
stage: string;
|
|
238
|
+
/** Its writer's publication, when this task made it: the commit and when. */
|
|
239
|
+
published?: {
|
|
240
|
+
sha: string;
|
|
241
|
+
at: number;
|
|
242
|
+
};
|
|
243
|
+
}
|
|
244
|
+
export interface DashProcessReview extends DashProcessTask {
|
|
245
|
+
/** `preliminary` (an early look) or `final` (of a candidate). */
|
|
246
|
+
stage: 'preliminary' | 'final';
|
|
247
|
+
candidate?: string;
|
|
248
|
+
/** Its round of the role on this package: 1, 2, … */
|
|
249
|
+
round: number;
|
|
250
|
+
}
|
|
251
|
+
export interface DashProcessCandidate {
|
|
252
|
+
sha: string;
|
|
253
|
+
at: number;
|
|
254
|
+
root?: string;
|
|
255
|
+
supersededAt?: number;
|
|
256
|
+
integratedAt?: number;
|
|
257
|
+
proofs: Array<{
|
|
258
|
+
requirementId: string;
|
|
259
|
+
action?: string;
|
|
260
|
+
runId: string;
|
|
261
|
+
state: string;
|
|
262
|
+
lane?: string;
|
|
263
|
+
}>;
|
|
264
|
+
/** Its reviews: the role, the verdict, the task — `carried`: an approval of an earlier candidate with the same patch. */
|
|
265
|
+
reviews: Array<{
|
|
266
|
+
role: string;
|
|
267
|
+
state: string;
|
|
268
|
+
taskId: string;
|
|
269
|
+
carried?: boolean;
|
|
270
|
+
}>;
|
|
271
|
+
/** From its preparation to its first final review's claim — none: none was claimed. */
|
|
272
|
+
reviewWaitMs?: number;
|
|
273
|
+
/** Of the package's writers (`writersOf`), those that held no task of the goal while it waited (`writersIdle`). */
|
|
274
|
+
writersIdle?: number;
|
|
275
|
+
writersOf?: number;
|
|
276
|
+
}
|
|
277
|
+
export interface DashProcessRun {
|
|
278
|
+
runId: string;
|
|
279
|
+
action: string;
|
|
280
|
+
project?: string;
|
|
281
|
+
target?: string;
|
|
282
|
+
state: string;
|
|
283
|
+
lane?: 'light' | 'heavy';
|
|
284
|
+
queuedAt?: number;
|
|
285
|
+
startedAt?: number;
|
|
286
|
+
completedAt?: number;
|
|
287
|
+
durationMs?: number;
|
|
288
|
+
waitedMs?: number;
|
|
289
|
+
/** What it ran over: named files, the specs related to files, a whole target, the affected projects. */
|
|
290
|
+
scope?: 'files' | 'related' | 'test' | 'target' | 'affected';
|
|
291
|
+
/** It ran out of its heap and ran again at a larger one — or was not — as its step says. */
|
|
292
|
+
heap?: string;
|
|
293
|
+
counts?: {
|
|
294
|
+
passed: number;
|
|
295
|
+
failed: number;
|
|
296
|
+
skipped: number;
|
|
297
|
+
total: number;
|
|
298
|
+
};
|
|
299
|
+
/** Why it is listed: a candidate's proof (its requirement), or a QA step's run (its step). */
|
|
300
|
+
for: {
|
|
301
|
+
proof?: string;
|
|
302
|
+
step?: string;
|
|
303
|
+
package?: string;
|
|
304
|
+
};
|
|
305
|
+
/** It is not kept any more (runs are kept 30 days), or not in this home. */
|
|
306
|
+
gone?: true;
|
|
307
|
+
}
|
|
308
|
+
export interface DashProcessPackage {
|
|
309
|
+
id: string;
|
|
310
|
+
title: string;
|
|
311
|
+
/** `separate`: a checkout per writer; `shared`: one for both — chosen when it was declared. */
|
|
312
|
+
mode: 'separate' | 'shared';
|
|
313
|
+
state: string;
|
|
314
|
+
createdAt: number;
|
|
315
|
+
/** When its candidate integrated into the goal's branch. */
|
|
316
|
+
integratedAt?: number;
|
|
317
|
+
/** When its last task ended — for a package that never integrated. */
|
|
318
|
+
endedAt?: number;
|
|
319
|
+
checkouts: DashProcessCheckout[];
|
|
320
|
+
writers: DashProcessWriter[];
|
|
321
|
+
candidates: DashProcessCandidate[];
|
|
322
|
+
reviews: DashProcessReview[];
|
|
323
|
+
runs: DashProcessRun[];
|
|
324
|
+
findings: {
|
|
325
|
+
total: number;
|
|
326
|
+
open: number;
|
|
327
|
+
};
|
|
328
|
+
waivers: number;
|
|
329
|
+
forced: number;
|
|
330
|
+
testsWaived?: boolean;
|
|
331
|
+
/** The tasks it was declared to wait for (`blockedBy`) — another package, as a rule — and when the last of them finished. */
|
|
332
|
+
after?: Array<{
|
|
333
|
+
id: string;
|
|
334
|
+
title: string;
|
|
335
|
+
endedAt?: number;
|
|
336
|
+
}>;
|
|
337
|
+
/** When it could start: its declaration, or the end of the last task it waited for. None: one of them has not ended. */
|
|
338
|
+
readyAt?: number;
|
|
339
|
+
/** From {@link readyAt} to its first writer's claim — how long it waited for a writer once it could start. */
|
|
340
|
+
startWaitMs?: number;
|
|
341
|
+
}
|
|
342
|
+
export interface DashProcessQaStep extends DashTeamStep {
|
|
343
|
+
/** Its time, start to end, when it logged both — and whether it ran past its budget. */
|
|
344
|
+
ms?: number;
|
|
345
|
+
overBudget?: boolean;
|
|
346
|
+
/** Its runs, as read from the machine queue. */
|
|
347
|
+
runs: DashProcessRun[];
|
|
348
|
+
/** It ran wider than the diff reached: a whole target, or the affected graph. */
|
|
349
|
+
wider?: string;
|
|
350
|
+
/** A run of it went in the heavy lane. */
|
|
351
|
+
heavy?: boolean;
|
|
352
|
+
}
|
|
353
|
+
export interface DashProcessQa extends DashProcessTask {
|
|
354
|
+
budgetMinutes?: number | null;
|
|
355
|
+
steps: DashProcessQaStep[];
|
|
356
|
+
/**
|
|
357
|
+
* Its step times do not measure its steps: most were logged done in one write each (no start before their end), or
|
|
358
|
+
* within a minute of each other — the times are when they were written, not how long each ran.
|
|
359
|
+
*/
|
|
360
|
+
loggedAfter?: {
|
|
361
|
+
atOnce: number;
|
|
362
|
+
ended: number;
|
|
363
|
+
inAMinute: number;
|
|
364
|
+
};
|
|
365
|
+
/** The person's waivers of its runs (issues/closed/foodguard-326): which runs, why, by which question. */
|
|
366
|
+
waivers: Array<{
|
|
367
|
+
runs: string[];
|
|
368
|
+
why: string;
|
|
369
|
+
at: number;
|
|
370
|
+
question?: string;
|
|
371
|
+
}>;
|
|
372
|
+
/** Its execution time against its budget: claimed to its end, less the time it was blocked or in recovery. */
|
|
373
|
+
workedMs?: number;
|
|
374
|
+
overBudget?: boolean;
|
|
375
|
+
/** Its result's first lines: what it says it ran and found. */
|
|
376
|
+
verdict?: string;
|
|
377
|
+
}
|
|
378
|
+
export interface DashProcessLanding {
|
|
379
|
+
/** `squash`, `merge`, `ff` by LensMCP; `pull-request`; `by-hand`; none yet (`pending`), or nothing on main (`none`). */
|
|
380
|
+
how: 'lensmcp' | 'pull-request' | 'by-hand' | 'pending' | 'none';
|
|
381
|
+
kind?: string;
|
|
382
|
+
sha?: string;
|
|
383
|
+
at?: number;
|
|
384
|
+
pr?: number;
|
|
385
|
+
/** Delivery's reading (delivery/landing.ts): its one phrase and the person's steps — none when it could not be read. */
|
|
386
|
+
delivery?: DashGoalLanding;
|
|
387
|
+
text: string;
|
|
388
|
+
}
|
|
389
|
+
export interface DashProcessMainQa {
|
|
390
|
+
/** `ran`: a main run whose range holds the landing finished; `running`: one is open; `waiting`: none yet — `when` says when; `paused`; `off`; `not-landed`. */
|
|
391
|
+
state: 'ran' | 'running' | 'waiting' | 'paused' | 'off' | 'not-landed' | 'unknown';
|
|
392
|
+
run?: {
|
|
393
|
+
id: string;
|
|
394
|
+
title: string;
|
|
395
|
+
state: string;
|
|
396
|
+
outcome?: string;
|
|
397
|
+
head?: string;
|
|
398
|
+
base?: string;
|
|
399
|
+
createdAt: number;
|
|
400
|
+
endedAt?: number;
|
|
401
|
+
};
|
|
402
|
+
text: string;
|
|
403
|
+
/** When the lens makes the next main run, by its rule — none when it will not by itself. */
|
|
404
|
+
when?: number;
|
|
405
|
+
}
|
|
406
|
+
/**
|
|
407
|
+
* What a live goal waits on right now (hub-10 «Now»), from what the store holds — no GitHub call: its open tasks' parked
|
|
408
|
+
* and suspended claims (the holder's own reason, and until when the claim is kept), its manager's suspension, the
|
|
409
|
+
* questions waiting on the person, its launches waiting for a slot, and its manager's last log line.
|
|
410
|
+
*/
|
|
411
|
+
export interface DashProcessNow {
|
|
412
|
+
items: DashProcessNowItem[];
|
|
413
|
+
/** The CI run ids those texts name («run 45639283079»), first seen first. */
|
|
414
|
+
ci: string[];
|
|
415
|
+
}
|
|
416
|
+
export interface DashProcessNowItem {
|
|
417
|
+
kind: 'suspended' | 'parked' | 'manager-suspended' | 'question' | 'cap' | 'manager-log';
|
|
418
|
+
/** Since when it waits — or, for a log line, when it was written. */
|
|
419
|
+
since: number;
|
|
420
|
+
/** A kept claim's end: past it the claim goes to recovery. */
|
|
421
|
+
until?: number;
|
|
422
|
+
/** The holder's or the asker's own words, or the log line — cut. */
|
|
423
|
+
text: string;
|
|
424
|
+
/** The task it is about, to open its drawer; a question's id. */
|
|
425
|
+
task?: {
|
|
426
|
+
id: string;
|
|
427
|
+
title: string;
|
|
428
|
+
role?: string;
|
|
429
|
+
};
|
|
430
|
+
question?: string;
|
|
431
|
+
role?: string;
|
|
432
|
+
}
|
|
433
|
+
export interface DashProcessFlag {
|
|
434
|
+
id: string;
|
|
435
|
+
kind: 'qa-wider' | 'qa-heavy' | 'qa-over-budget' | 'qa-logged-after' | 'cap-wait' | 'start-wait' | 'review-wait' | 'main-qa-missing' | 'qa-not-run' | 'run-gone';
|
|
436
|
+
tone: 'warn' | 'bad' | 'muted';
|
|
437
|
+
text: string;
|
|
438
|
+
link?: DashProcessLink & {
|
|
439
|
+
setting?: DashGoalHowChange;
|
|
440
|
+
};
|
|
441
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";export const PROCESS_OTHERS_MAX=30;
|
package/lib/peers.d.ts
CHANGED
|
@@ -1488,9 +1488,9 @@ export declare const PEER_WORK_SCHEMAS: {
|
|
|
1488
1488
|
}, z.core.$strict>;
|
|
1489
1489
|
why: z.ZodObject<{
|
|
1490
1490
|
kind: z.ZodEnum<{
|
|
1491
|
+
version: "version";
|
|
1491
1492
|
restarting: "restarting";
|
|
1492
1493
|
protocol: "protocol";
|
|
1493
|
-
version: "version";
|
|
1494
1494
|
installed: "installed";
|
|
1495
1495
|
"install-failed": "install-failed";
|
|
1496
1496
|
"restart-failed": "restart-failed";
|
|
@@ -0,0 +1,191 @@
|
|
|
1
|
+
import { type DashTeamDesignRun, type TeamDesignOff, type TeamDesignRole, type TeamTuneChange } from './team-design.js';
|
|
2
|
+
/**
|
|
3
|
+
* What the person decides on Team › Design, and what «Accept all» may take (issues/closed/hub-09) — shared by the page
|
|
4
|
+
* (libs/dashboard-ui DesignView.tsx, which shows the plan) and the server (servers/lensmcp-mcp team-accept-all.ts, which
|
|
5
|
+
* works it out again and accepts only what it still finds safe). Pure; the spec pins it on the real answers' shapes.
|
|
6
|
+
*
|
|
7
|
+
* Two runs make changes to the team's files: the newest tune (small edits, one file each) and the newest design (whole
|
|
8
|
+
* role files, the brief, the flow, roles switched off, first goals). Every change neither accepted nor rejected is to
|
|
9
|
+
* decide. «Accept all» takes the SAFE ones, in one request, in order — the tune's edits file by file, then the design's
|
|
10
|
+
* files. A change is safe when:
|
|
11
|
+
* 1. it still applies — a tune edit whose old text no longer stands in its file does not;
|
|
12
|
+
* 2. it undoes no tune change the person accepted since the design ran;
|
|
13
|
+
* 3. it is not a whole-file rewrite of a file changed since the design read it — nor of a file a safe tune change edits;
|
|
14
|
+
* 4. it switches no role off (and drops no role's file);
|
|
15
|
+
* 5. it sets no manager's `agents` below the goals that run at once (issues/closed/foodguard-336 — `seats`);
|
|
16
|
+
* and it is a change to the team's files: a first goal puts work on the board, and is the person's to place.
|
|
17
|
+
* What it leaves out stays to decide by itself, each with why, in the person's words.
|
|
18
|
+
*/
|
|
19
|
+
/** A part of a design the person decides: a role, a role off, the flow, the brief, a first goal. */
|
|
20
|
+
export type DesignPartKey = `role:${string}` | `off:${string}` | 'flow' | 'brief' | `goal:${number}`;
|
|
21
|
+
/** «25 Nov», in the reader's own time. */
|
|
22
|
+
export declare const teamDay: (at: number) => string;
|
|
23
|
+
/** A tune run as the plan reads it. */
|
|
24
|
+
export interface PlanTuneRun {
|
|
25
|
+
id: string;
|
|
26
|
+
status: DashTeamDesignRun['status'];
|
|
27
|
+
startedAt: number;
|
|
28
|
+
finishedAt?: number | undefined;
|
|
29
|
+
tune?: {
|
|
30
|
+
changes: ReadonlyArray<Pick<TeamTuneChange, 'id' | 'file' | 'title' | 'verdict' | 'now'> & {
|
|
31
|
+
effect?: Pick<NonNullable<TeamTuneChange['effect']>, 'agents'> | undefined;
|
|
32
|
+
}>;
|
|
33
|
+
} | undefined;
|
|
34
|
+
}
|
|
35
|
+
/** A design as the plan reads it. */
|
|
36
|
+
export interface PlanDesign {
|
|
37
|
+
version: number;
|
|
38
|
+
roles: ReadonlyArray<Pick<TeamDesignRole, 'id' | 'title' | 'status'>>;
|
|
39
|
+
off: ReadonlyArray<Pick<TeamDesignOff, 'id' | 'own'>>;
|
|
40
|
+
flow: {
|
|
41
|
+
keep: boolean;
|
|
42
|
+
handOffs?: readonly unknown[];
|
|
43
|
+
};
|
|
44
|
+
firstGoals: ReadonlyArray<{
|
|
45
|
+
title: string;
|
|
46
|
+
tasks: readonly unknown[];
|
|
47
|
+
}>;
|
|
48
|
+
}
|
|
49
|
+
/** A design run as the plan reads it. */
|
|
50
|
+
export interface PlanDesignRun {
|
|
51
|
+
id: string;
|
|
52
|
+
status: DashTeamDesignRun['status'];
|
|
53
|
+
startedAt: number;
|
|
54
|
+
finishedAt?: number | undefined;
|
|
55
|
+
design?: PlanDesign | undefined;
|
|
56
|
+
accepted?: DashTeamDesignRun['accepted'] | undefined;
|
|
57
|
+
parts?: DashTeamDesignRun['parts'] | undefined;
|
|
58
|
+
now?: DashTeamDesignRun['now'] | undefined;
|
|
59
|
+
}
|
|
60
|
+
/**
|
|
61
|
+
* The parts of a design the person decides, in the page's order: each role it writes (one already so writes nothing),
|
|
62
|
+
* each role it switches off or drops (a flow-step role never is), the flow when it adds to it, the brief, each first goal.
|
|
63
|
+
*/
|
|
64
|
+
export declare function designPartKeys(design: PlanDesign): DesignPartKey[];
|
|
65
|
+
/**
|
|
66
|
+
* The parts of a design run still to decide: none for a run not done or with no design, and none for one accepted
|
|
67
|
+
* before the parts were kept (it was decided whole).
|
|
68
|
+
*/
|
|
69
|
+
export declare function designOpenParts(run: PlanDesignRun | undefined): DesignPartKey[];
|
|
70
|
+
/** A tune change still to decide: no verdict, or accepted but not written. */
|
|
71
|
+
export declare const tuneChangeOpen: (c: Pick<TeamTuneChange, "verdict">) => boolean;
|
|
72
|
+
/** What a change does, in a word the page shows beside it. */
|
|
73
|
+
export type TeamDecideWhat = 'edit' | 'new' | 'rewrite' | 'refine' | 'off' | 'drop' | 'flow' | 'brief' | 'goal';
|
|
74
|
+
/** One change to decide. */
|
|
75
|
+
export interface TeamDecideItem {
|
|
76
|
+
/** Unique on the page and in an «Accept all» request: `tune:<runId>:<change id>`, `design:<runId>:<part>`. */
|
|
77
|
+
key: string;
|
|
78
|
+
from: 'tune' | 'design';
|
|
79
|
+
runId: string;
|
|
80
|
+
/** The tune's change id (`c3`), or the design's part (`role:manager`, `off:bug-reporter`, `flow`, `brief`, `goal:0`). */
|
|
81
|
+
id: string;
|
|
82
|
+
/** The file it writes, `.lensmcp/team/…` — none for a first goal. */
|
|
83
|
+
file?: string;
|
|
84
|
+
/** One line: what it changes. */
|
|
85
|
+
title: string;
|
|
86
|
+
what: TeamDecideWhat;
|
|
87
|
+
}
|
|
88
|
+
/** Why «Accept all» leaves a change out. */
|
|
89
|
+
export type TeamLeftReason = 'outdated' | 'undoes' | 'changed-since' | 'clashes' | 'switches-off' | 'goal' | 'version' | 'seats' | 'unknown';
|
|
90
|
+
/**
|
|
91
|
+
* What the plan holds a manager's `agents` to: the roles that run goals (those that take `goal`) and the goals that run
|
|
92
|
+
* at once — Team › Limits, else flow.json `goals.running`, else LensMCP's default.
|
|
93
|
+
*/
|
|
94
|
+
export interface TeamManagerSeats {
|
|
95
|
+
roles: string[];
|
|
96
|
+
goalsRunning: number;
|
|
97
|
+
}
|
|
98
|
+
/** A role that runs goals: it takes `goal` — each of its agents claims one, so each running goal needs one of them. */
|
|
99
|
+
export declare const runsGoals: (role: {
|
|
100
|
+
takes: readonly string[];
|
|
101
|
+
}) => boolean;
|
|
102
|
+
/**
|
|
103
|
+
* A manager's `agents` below the goals that run at once (issues/closed/foodguard-336), in the person's words: «manager
|
|
104
|
+
* agents 1 is below goals.running 3: only one goal can have a manager at a time». FoodGuard's manager.md said
|
|
105
|
+
* `agents: 1` with three goals at once: a manager launched for a second goal found the role full at agent_join and
|
|
106
|
+
* exited, paid — twice on 25 Nov. With no `agents`, the role takes one manager per running goal (each LensMCP launch is
|
|
107
|
+
* for one goal). Undefined: the role runs no goals, sets no number, or has a seat for every running goal.
|
|
108
|
+
*/
|
|
109
|
+
export declare function managerSeatsShort(role: {
|
|
110
|
+
id: string;
|
|
111
|
+
takes: readonly string[];
|
|
112
|
+
agents?: number | null | undefined;
|
|
113
|
+
}, goalsRunning: number): string | undefined;
|
|
114
|
+
/** A change «Accept all» leaves to the person, with why — accepted or rejected by itself. */
|
|
115
|
+
export interface TeamLeftItem extends TeamDecideItem {
|
|
116
|
+
reason: TeamLeftReason;
|
|
117
|
+
/** In the person's words, with the numbers and the day. */
|
|
118
|
+
why: string;
|
|
119
|
+
/** Accepting it by itself can write it — not an out-of-date tune edit (tune again), nor a design of another version. */
|
|
120
|
+
canAccept: boolean;
|
|
121
|
+
}
|
|
122
|
+
export interface TeamAcceptAllPlan {
|
|
123
|
+
/** Every change to decide: the tune's, then the design's. */
|
|
124
|
+
items: TeamDecideItem[];
|
|
125
|
+
/** What «Accept all» takes, in the order it writes it: the tune's edits file by file, then the design's files. */
|
|
126
|
+
safe: TeamDecideItem[];
|
|
127
|
+
/** What it leaves to the person, each with why — in the order of `items`. */
|
|
128
|
+
left: TeamLeftItem[];
|
|
129
|
+
/** The files «Accept all» writes, in order, each with its changes. */
|
|
130
|
+
files: Array<{
|
|
131
|
+
file: string;
|
|
132
|
+
items: TeamDecideItem[];
|
|
133
|
+
}>;
|
|
134
|
+
}
|
|
135
|
+
/**
|
|
136
|
+
* Every change to decide, what «Accept all» takes and what it leaves out, and why. `tune`: the newest tune run with a
|
|
137
|
+
* change set; `design`: the design the page shows (the newest done one) — each read against the team as it is now (the
|
|
138
|
+
* API's `now`); `seats`: the roles that run goals and the goals at once, which a change's `agents` is held to.
|
|
139
|
+
*/
|
|
140
|
+
export declare function teamAcceptAllPlan(input: {
|
|
141
|
+
tune?: PlanTuneRun | undefined;
|
|
142
|
+
design?: PlanDesignRun | undefined;
|
|
143
|
+
seats?: TeamManagerSeats | undefined;
|
|
144
|
+
}): TeamAcceptAllPlan;
|
|
145
|
+
/** `POST /api/team/accept-all`: the safe changes the page showed — `TeamDecideItem.key`s; the server takes those still safe. */
|
|
146
|
+
export interface DashTeamAcceptAll {
|
|
147
|
+
items: string[];
|
|
148
|
+
/** The page's, one per click: the team is told once, a design's goals are never made twice. */
|
|
149
|
+
requestId: string;
|
|
150
|
+
}
|
|
151
|
+
/** What «Accept all» did: the files it wrote in order, the changes written, and what it did not write and why. */
|
|
152
|
+
export interface DashTeamAcceptedAll {
|
|
153
|
+
written: string[];
|
|
154
|
+
accepted: string[];
|
|
155
|
+
/** A change the page showed that is not safe now, or of a file whose changes did not all apply — none of that file's is written. */
|
|
156
|
+
left: Array<{
|
|
157
|
+
key: string;
|
|
158
|
+
file?: string;
|
|
159
|
+
title: string;
|
|
160
|
+
why: string;
|
|
161
|
+
}>;
|
|
162
|
+
problems: string[];
|
|
163
|
+
/** The agents on the team were told to agent_join again. */
|
|
164
|
+
notified?: boolean;
|
|
165
|
+
}
|
|
166
|
+
/** `POST /api/team/design/reject`: parts of a design the person rejects — kept with the run, never written. */
|
|
167
|
+
export interface DashTeamDesignReject {
|
|
168
|
+
runId: string;
|
|
169
|
+
parts: string[];
|
|
170
|
+
}
|
|
171
|
+
/** A run in the History. */
|
|
172
|
+
export interface TeamRunHistory {
|
|
173
|
+
/** What it proposed, in words: «12 changes in 7 files», «5 roles, the brief and 2 goals». */
|
|
174
|
+
proposed: string;
|
|
175
|
+
/** Its parts to decide, and what became of them; `left`: none decided yet. */
|
|
176
|
+
parts: number;
|
|
177
|
+
accepted: number;
|
|
178
|
+
rejected: number;
|
|
179
|
+
left: number;
|
|
180
|
+
/** A design accepted whole, before its parts were kept: the files it wrote and the goals it placed. */
|
|
181
|
+
wrote?: number;
|
|
182
|
+
goals?: number;
|
|
183
|
+
}
|
|
184
|
+
/** A tune's change set in the History: «12 changes in 7 files» — accepted (and written), rejected, still to decide. */
|
|
185
|
+
export declare function tuneHistory(tune: {
|
|
186
|
+
changes: ReadonlyArray<Pick<TeamTuneChange, 'file' | 'verdict'>>;
|
|
187
|
+
}): TeamRunHistory;
|
|
188
|
+
/** A design in the History: «5 roles, the brief and 2 goals» — its parts accepted, rejected, left; or what an accept of the whole wrote. */
|
|
189
|
+
export declare function designHistory(run: Pick<PlanDesignRun, 'design' | 'accepted' | 'parts'> & {
|
|
190
|
+
design: PlanDesign;
|
|
191
|
+
}): TeamRunHistory;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var C=Object.defineProperty;var p=(e,t)=>C(e,"name",{value:t,configurable:!0});var N=Object.defineProperty,l=p((e,t)=>N(e,"name",{value:t,configurable:!0}),"i");import{TEAM_DESIGN_VERSION as H}from"./team-design.js";const D=["tester","reviewer","qa","docs"],S=".lensmcp/team",I=l(e=>`${S}/roles/${e}.md`,"roleFile"),E=`${S}/project.md`,F=`${S}/flow.json`,W=l(e=>e.slice(e.lastIndexOf("/")+1),"base"),m=l((e,t,n=`${t}s`)=>`${e.toLocaleString("en-US")} ${e===1?t:n}`,"plural"),J=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];export const teamDay=l(e=>{const t=new Date(e);return`${t.getDate()} ${J[t.getMonth()]}`},"teamDay");export function designPartKeys(e){return[...e.roles.filter(t=>t.status!=="same").map(t=>`role:${t.id}`),...e.off.filter(t=>!D.includes(t.id)).map(t=>`off:${t.id}`),...e.flow.keep===!1?["flow"]:[],"brief",...e.firstGoals.map((t,n)=>`goal:${n}`)]}p(designPartKeys,"designPartKeys"),l(designPartKeys,"designPartKeys");export function designOpenParts(e){return!e||e.status!=="done"||!e.design?[]:e.accepted&&!e.parts?[]:designPartKeys(e.design).filter(t=>!e.parts?.[t])}p(designOpenParts,"designOpenParts"),l(designOpenParts,"designOpenParts");export const tuneChangeOpen=l(e=>!e.verdict||e.verdict.is==="accepted"&&!!e.verdict.problem,"tuneChangeOpen"),runsGoals=l(e=>e.takes.includes("goal"),"runsGoals");export function managerSeatsShort(e,t){const n=e.agents;if(!(!runsGoals(e)||n===void 0||n===null||n>=t))return`${e.id} agents ${n} is below goals.running ${t}: ${M(e.id,n)}`}p(managerSeatsShort,"managerSeatsShort"),l(managerSeatsShort,"managerSeatsShort");function M(e,t){const n=e==="manager"?"a manager":`a ${e}`;return t===0?`no goal can have ${n}`:t===1?`only one goal can have ${n} at a time`:`only ${t} goals can have ${n} at a time`}p(M,"P"),l(M,"seatsLeft");function P(e,t,n){if(!n||!e.file||!t?.agents)return;const o=n.roles.find(c=>e.file===I(c)),s=t.agents[1];if(!(!o||s===void 0||s===null||s>=n.goalsRunning))return`It sets ${o} agents to ${s}, below goals.running ${n.goalsRunning}: ${M(o,s)}. Leave the line out \u2014 one ${o} per running goal \u2014 or set it to ${n.goalsRunning} or more.`}p(P,"W"),l(P,"seatsWhy");const T={new:l(e=>`Adds the ${e} role \u2014 a new file, ${e}.md`,"new"),rewrite:l(e=>`Rewrites ${e}.md whole`,"rewrite"),refine:l(e=>`Writes ${e}.md over LensMCP\u2019s default ${e}`,"refine")};function L(e,t,n){const o={from:"design",runId:e.id,id:n,key:`design:${e.id}:${n}`};if(n.startsWith("role:")){const f=n.slice(5),a=e.now?.roles.find(w=>w.id===f),g=t.roles.find(w=>w.id===f),b=a?a.is==="new"?"new":a.is==="refines"?"refine":"rewrite":g?.status==="new"?"new":"rewrite";return{...o,file:a?.file??I(f),title:T[b](f),what:b}}if(n.startsWith("off:")){const f=n.slice(4),a=!!t.off.find(g=>g.id===f)?.own;return{...o,file:I(f),title:a?`Drops the ${f} role \u2014 deletes ${f}.md`:`Switches the ${f} role off`,what:a?"drop":"off"}}if(n==="flow"){const f=t.flow.handOffs?.length??0;return{...o,file:F,title:`Adds ${m(f,"hand-off")} to the flow (flow.json)`,what:"flow"}}if(n==="brief")return{...o,file:E,title:e.now?.brief?.exists===!1?"Writes the project brief (project.md)":"Rewrites the project brief (project.md) whole",what:"brief"};const s=Number(n.slice(5)),c=t.firstGoals[s];return{...o,title:`Puts the goal \xAB${c?.title??`first goal ${s+1}`}\xBB on the board`,what:"goal"}}p(L,"C"),l(L,"designItem");export function teamAcceptAllPlan(e){const t=[],n=[],o=[],s=l((i,d,$,u=!0)=>n.push({...i,reason:d,why:$,canAccept:u}),"leave"),c=e.tune?.status==="done"?e.tune:void 0;for(const i of c?.tune?.changes??[]){if(!tuneChangeOpen(i))continue;const d={key:`tune:${c.id}:${i.id}`,from:"tune",runId:c.id,id:i.id,file:i.file,title:i.title,what:"edit"};t.push(d);const $=P(d,i.effect,e.seats);i.now?.applies===!1?s(d,"outdated",`It no longer fits ${W(i.file)} as it is now \u2014 the file changed after the tune read it. Tune again for a fresh change.`,!1):$?s(d,"seats",$):o.push(d)}const f=new Map;for(const i of o)f.set(i.file,(f.get(i.file)??0)+1);const a=e.design,g=a?.design,b=[];if(a&&g){const i=teamDay(a.startedAt),d=(c?.tune?.changes??[]).filter(u=>u.verdict?.is==="accepted"&&!u.verdict.problem),$=new Map(d.map(u=>[u.id,u.verdict.at]));for(const u of designOpenParts(a)){const r=L(a,g,u);t.push(r);const y=r.file?W(r.file):"";if(g.version!==H){s(r,"version","It was made by another version of LensMCP and cannot be written \u2014 design again.",!1);continue}if(r.what==="goal"){const h=g.firstGoals[Number(u.slice(5))]?.tasks.length??0;s(r,"goal",`It puts work on the board${h?` \u2014 a goal and ${m(h,"task")}`:""}: a manager staffs it and agents start. Place it yourself.`);continue}if(r.what==="off"||r.what==="drop"){const h=u.slice(4);s(r,"switches-off",r.what==="drop"?`It deletes ${y}: the ${h} role goes, and its open tasks wait for no one.`:`It switches ${h} off: its open tasks wait for no one until another role takes them.`);continue}const v=u.startsWith("role:")?a.now?.roles.find(h=>h.id===u.slice(5)):void 0,x=u==="brief"?a.now?.brief:u==="flow"?a.now?.flow:v?{exists:v.is==="replaces",changedSince:v.changedSince}:void 0;if(!x){s(r,"unknown",`LensMCP cannot tell whether ${y} changed after the design read it on ${i} \u2014 look at it first.`);continue}const k=v?v.undoes??[]:d.filter(h=>h.file===r.file&&h.verdict.at>a.startedAt).map(h=>({id:h.id}));if(k.length){const h=k.map(A=>$.get(A.id)).filter(A=>A!==void 0),B=h.length?` on ${teamDay(Math.max(...h))}`:" since this design ran";s(r,"undoes",`It would undo ${m(k.length,"tune change")} you accepted${B}.`);continue}if(x.exists&&x.changedSince){s(r,"changed-since",`${y} changed after the design read it on ${i}: rewriting it whole would lose those changes.`);continue}const G=P(r,v?.effect,e.seats);if(G){s(r,"seats",G);continue}const j=r.file?f.get(r.file):void 0;if(x.exists&&j){s(r,"clashes",`It rewrites ${y} whole, and \xABAccept all\xBB takes ${m(j,"tune change")} to ${y}: it would undo ${j===1?"it":"them"}.`);continue}b.push(r)}}const w=[];for(const i of[...o,...b]){const d=w.find($=>$.file===i.file);d?d.items.push(i):w.push({file:i.file,items:[i]})}const R=w.flatMap(i=>i.items),O=new Map(t.map((i,d)=>[i.key,d]));return{items:t,safe:R,left:n.sort((i,d)=>O.get(i.key)-O.get(d.key)),files:w}}p(teamAcceptAllPlan,"teamAcceptAllPlan"),l(teamAcceptAllPlan,"teamAcceptAllPlan");const _=l(e=>e.length>1?`${e.slice(0,-1).join(", ")} and ${e.at(-1)}`:e.join(""),"listWords");export function tuneHistory(e){const t=e.changes.length,n=new Set(e.changes.map(c=>c.file)).size,o=e.changes.filter(c=>c.verdict?.is==="accepted"&&!c.verdict.problem).length,s=e.changes.filter(c=>c.verdict?.is==="rejected").length;return{proposed:t?`${m(t,"change")} in ${m(n,"file")}`:"no change",parts:t,accepted:o,rejected:s,left:t-o-s}}p(tuneHistory,"tuneHistory"),l(tuneHistory,"tuneHistory");export function designHistory(e){const t=e.design,n=t.off.filter(g=>!D.includes(g.id)).length,o=_([m(t.roles.length,"role"),...n?[`${n} off`]:[],...t.flow.keep===!1?["the flow"]:[],"the brief",...t.firstGoals.length?[m(t.firstGoals.length,"goal")]:[]]),s=designPartKeys(t);if(e.accepted&&!e.parts)return{proposed:o,parts:s.length,accepted:0,rejected:0,left:0,wrote:e.accepted.files.length,goals:e.accepted.goals.length};const c=s.map(g=>e.parts?.[g]?.is),f=c.filter(g=>g==="accepted").length,a=c.filter(g=>g==="rejected").length;return{proposed:o,parts:s.length,accepted:f,rejected:a,left:s.length-f-a}}p(designHistory,"designHistory"),l(designHistory,"designHistory");
|