@software-dlc/cli 0.179.0 → 0.181.7

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.
Files changed (41) hide show
  1. package/CHANGELOG.md +36 -0
  2. package/dist/cli-login.d.ts.map +1 -1
  3. package/dist/cli-login.js +4 -1
  4. package/dist/cli-login.js.map +1 -1
  5. package/dist/cli-snapshot.d.ts +15 -15
  6. package/dist/local/api-client.d.ts +4 -0
  7. package/dist/local/api-client.d.ts.map +1 -1
  8. package/dist/local/api-client.js +15 -3
  9. package/dist/local/api-client.js.map +1 -1
  10. package/dist/local/app-contract-readers.d.ts +7 -51
  11. package/dist/local/app-contract-readers.d.ts.map +1 -1
  12. package/dist/local/app-contract-readers.js +97 -70
  13. package/dist/local/app-contract-readers.js.map +1 -1
  14. package/dist/local/app-releases.d.ts +535 -0
  15. package/dist/local/app-releases.d.ts.map +1 -0
  16. package/dist/local/app-releases.js +506 -0
  17. package/dist/local/app-releases.js.map +1 -0
  18. package/dist/local/app-shell-readers.d.ts.map +1 -1
  19. package/dist/local/app-shell-readers.js +8 -1
  20. package/dist/local/app-shell-readers.js.map +1 -1
  21. package/dist/local/app-tasks-read.d.ts +5 -0
  22. package/dist/local/app-tasks-read.d.ts.map +1 -1
  23. package/dist/local/app-tasks-read.js +2 -1
  24. package/dist/local/app-tasks-read.js.map +1 -1
  25. package/dist/local/health-schema.d.ts +1 -1
  26. package/dist/local/source-evidence/schema.d.ts +6 -6
  27. package/dist/local/task-context-observations.d.ts +26 -26
  28. package/dist/local/task-context-schema.d.ts +2 -2
  29. package/dist/local/workspace-evidence.d.ts +2 -1
  30. package/dist/local/workspace-evidence.d.ts.map +1 -1
  31. package/dist/local/workspace-evidence.js +18 -6
  32. package/dist/local/workspace-evidence.js.map +1 -1
  33. package/dist/local/workspace-viewer-server.d.ts.map +1 -1
  34. package/dist/local/workspace-viewer-server.js +3 -2
  35. package/dist/local/workspace-viewer-server.js.map +1 -1
  36. package/package.json +1 -1
  37. package/viewer/assets/index-D7btL2G8.js +394 -0
  38. package/viewer/assets/index-Pl5uLvHj.css +1 -0
  39. package/viewer/index.html +2 -2
  40. package/viewer/assets/index-BUvSmMTB.js +0 -382
  41. package/viewer/assets/index-DFle_KDz.css +0 -1
@@ -0,0 +1,535 @@
1
+ /**
2
+ * The local Releases page's answers (la-releases, docs/specs/app-ui-contracts.md): release_history.py's
3
+ * Releases and candidate, release_plan.py list's Planned Releases, release_links.py view's Related and
4
+ * Planned Release, and model.js releaseBatch's words, mapped to the Releases contract's local-ahead
5
+ * shapes. Pure: app-contract-readers.ts runs the readers and passes their results here.
6
+ */
7
+ /**
8
+ * A Release's or the candidate's bump reasons as its change lines. Each reason is a reason for the
9
+ * computed bump, so each line carries it: the notes list it under Breaking (major), New (added) or
10
+ * Improved, as release_history.py notes() places it.
11
+ */
12
+ export declare function releaseChanges(entry: Record<string, unknown>): {
13
+ node_id: string;
14
+ node_type: string;
15
+ label: string;
16
+ change: string;
17
+ bump: string | null;
18
+ why: string | null;
19
+ modeling_only: boolean;
20
+ }[];
21
+ /** The track sections, in their order. */
22
+ export declare function localTracks(entry: Record<string, unknown>): {
23
+ key: string;
24
+ label: string;
25
+ version: string | null;
26
+ bump: string | null;
27
+ released_by: string | null;
28
+ packages: {
29
+ name: string;
30
+ from: string | null;
31
+ to: string | null;
32
+ changes: {
33
+ feature: string;
34
+ entry: string;
35
+ }[];
36
+ }[];
37
+ published: {
38
+ recorded: boolean;
39
+ note: string | null;
40
+ } | null;
41
+ }[];
42
+ /** The accepted failing tests a Release's notes list as known issues. */
43
+ export declare function localKnownIssues(entry: Record<string, unknown>): {
44
+ key: string;
45
+ kind: "test";
46
+ id: string;
47
+ title: string;
48
+ accepted_by: string | null;
49
+ file: string | null;
50
+ }[];
51
+ /** A readiness block as the page words it. */
52
+ export declare function localReadiness(raw: unknown): {
53
+ verdict: string;
54
+ satisfied: number;
55
+ total: number;
56
+ failed: number;
57
+ accepted: number;
58
+ judged_commit: string | null;
59
+ } | null;
60
+ /** What a Release delivered (or the candidate would) of the Planned Releases. */
61
+ export declare function localDelivery(raw: unknown): {
62
+ planned: {
63
+ id: string;
64
+ name: string;
65
+ open: boolean;
66
+ delivered: {
67
+ item: string;
68
+ label: string;
69
+ went: string | null;
70
+ }[];
71
+ not_delivered: {
72
+ item: string;
73
+ label: string;
74
+ went: string | null;
75
+ }[];
76
+ }[];
77
+ outside: number;
78
+ } | null;
79
+ /**
80
+ * One of release_history.py's Releases in the contract's summary shape. Its version is its label (the
81
+ * app version, or its batch when it has no app section, so two Releases never share one); the
82
+ * previous Release is the next older one listed, given by the caller. A record the reader could not
83
+ * read ({version, error}) is listed as unreadable, so one bad file never hides the others.
84
+ */
85
+ export declare function localRelease(entry: Record<string, unknown>, previous: Record<string, unknown> | undefined): {
86
+ id: string;
87
+ version: string;
88
+ label: string;
89
+ computed_bump: null;
90
+ bump: null;
91
+ declared_reason: null;
92
+ declared_by_name: null;
93
+ source_judged: boolean;
94
+ marks_approximate: boolean;
95
+ written_by_name: null;
96
+ written_at: string;
97
+ previous_release_id: null;
98
+ state: "unreadable";
99
+ error: string;
100
+ } | {
101
+ tracks?: string[] | undefined;
102
+ batch: string | null;
103
+ state: "released" | "withdrawn";
104
+ replaced_by: string | null;
105
+ app_changed: boolean;
106
+ landings?: number | undefined;
107
+ id: string;
108
+ version: string;
109
+ label: string;
110
+ computed_bump: string | null;
111
+ bump: string | null;
112
+ declared_reason: string | null;
113
+ declared_by_name: string | null;
114
+ source_judged: boolean;
115
+ marks_approximate: boolean;
116
+ written_by_name: null;
117
+ written_at: string;
118
+ previous_release_id: string | null;
119
+ breaking: boolean;
120
+ commit: string | null;
121
+ error?: undefined;
122
+ };
123
+ /** One Release's detail: its summary, its change lines and its local-ahead sections. */
124
+ export declare function localReleaseDetail(entry: Record<string, unknown>, previous: Record<string, unknown> | undefined): {
125
+ version_line: string | null;
126
+ planned_release: {
127
+ id: string;
128
+ name: string;
129
+ open: boolean;
130
+ } | null;
131
+ app_version: string | null;
132
+ readiness: {
133
+ verdict: string;
134
+ satisfied: number;
135
+ total: number;
136
+ failed: number;
137
+ accepted: number;
138
+ judged_commit: string | null;
139
+ } | null;
140
+ planned_delivery: {
141
+ planned: {
142
+ id: string;
143
+ name: string;
144
+ open: boolean;
145
+ delivered: {
146
+ item: string;
147
+ label: string;
148
+ went: string | null;
149
+ }[];
150
+ not_delivered: {
151
+ item: string;
152
+ label: string;
153
+ went: string | null;
154
+ }[];
155
+ }[];
156
+ outside: number;
157
+ } | null;
158
+ environment: string;
159
+ known_issues_error?: string | undefined;
160
+ known_issues: {
161
+ key: string;
162
+ kind: "test";
163
+ id: string;
164
+ title: string;
165
+ accepted_by: string | null;
166
+ file: string | null;
167
+ }[];
168
+ tracks_error?: string | undefined;
169
+ tracks: {
170
+ key: string;
171
+ label: string;
172
+ version: string | null;
173
+ bump: string | null;
174
+ released_by: string | null;
175
+ packages: {
176
+ name: string;
177
+ from: string | null;
178
+ to: string | null;
179
+ changes: {
180
+ feature: string;
181
+ entry: string;
182
+ }[];
183
+ }[];
184
+ published: {
185
+ recorded: boolean;
186
+ note: string | null;
187
+ } | null;
188
+ }[];
189
+ changes: {
190
+ node_id: string;
191
+ node_type: string;
192
+ label: string;
193
+ change: string;
194
+ bump: string | null;
195
+ why: string | null;
196
+ modeling_only: boolean;
197
+ }[];
198
+ id: string;
199
+ version: string;
200
+ label: string;
201
+ computed_bump: null;
202
+ bump: null;
203
+ declared_reason: null;
204
+ declared_by_name: null;
205
+ source_judged: boolean;
206
+ marks_approximate: boolean;
207
+ written_by_name: null;
208
+ written_at: string;
209
+ previous_release_id: null;
210
+ state: "unreadable";
211
+ error: string;
212
+ } | {
213
+ version_line: string | null;
214
+ planned_release: {
215
+ id: string;
216
+ name: string;
217
+ open: boolean;
218
+ } | null;
219
+ app_version: string | null;
220
+ readiness: {
221
+ verdict: string;
222
+ satisfied: number;
223
+ total: number;
224
+ failed: number;
225
+ accepted: number;
226
+ judged_commit: string | null;
227
+ } | null;
228
+ planned_delivery: {
229
+ planned: {
230
+ id: string;
231
+ name: string;
232
+ open: boolean;
233
+ delivered: {
234
+ item: string;
235
+ label: string;
236
+ went: string | null;
237
+ }[];
238
+ not_delivered: {
239
+ item: string;
240
+ label: string;
241
+ went: string | null;
242
+ }[];
243
+ }[];
244
+ outside: number;
245
+ } | null;
246
+ environment: string;
247
+ known_issues_error?: string | undefined;
248
+ known_issues: {
249
+ key: string;
250
+ kind: "test";
251
+ id: string;
252
+ title: string;
253
+ accepted_by: string | null;
254
+ file: string | null;
255
+ }[];
256
+ tracks_error?: string | undefined;
257
+ tracks: {
258
+ key: string;
259
+ label: string;
260
+ version: string | null;
261
+ bump: string | null;
262
+ released_by: string | null;
263
+ packages: {
264
+ name: string;
265
+ from: string | null;
266
+ to: string | null;
267
+ changes: {
268
+ feature: string;
269
+ entry: string;
270
+ }[];
271
+ }[];
272
+ published: {
273
+ recorded: boolean;
274
+ note: string | null;
275
+ } | null;
276
+ }[];
277
+ changes: {
278
+ node_id: string;
279
+ node_type: string;
280
+ label: string;
281
+ change: string;
282
+ bump: string | null;
283
+ why: string | null;
284
+ modeling_only: boolean;
285
+ }[];
286
+ batch: string | null;
287
+ state: "released" | "withdrawn";
288
+ replaced_by: string | null;
289
+ app_changed: boolean;
290
+ landings?: number | undefined;
291
+ id: string;
292
+ version: string;
293
+ label: string;
294
+ computed_bump: string | null;
295
+ bump: string | null;
296
+ declared_reason: string | null;
297
+ declared_by_name: string | null;
298
+ source_judged: boolean;
299
+ marks_approximate: boolean;
300
+ written_by_name: null;
301
+ written_at: string;
302
+ previous_release_id: string | null;
303
+ breaking: boolean;
304
+ commit: string | null;
305
+ error?: undefined;
306
+ };
307
+ /**
308
+ * release_history.py's candidate as the contract's candidate. Its previous Release is the newest one
309
+ * listed, given by the caller and named by its label as the list names it (the candidate's own
310
+ * `previous` is that Release's app version, which a Release with no app section shares). A candidate
311
+ * that does not change the app reads '<previous version> candidate'.
312
+ */
313
+ export declare function localCandidate(entry: Record<string, unknown>, newest: Record<string, unknown> | undefined): {
314
+ app_changed: boolean;
315
+ planned_release: {
316
+ id: string;
317
+ name: string;
318
+ open: boolean;
319
+ } | null;
320
+ readiness: {
321
+ verdict: string;
322
+ satisfied: number;
323
+ total: number;
324
+ failed: number;
325
+ accepted: number;
326
+ judged_commit: string | null;
327
+ } | null;
328
+ planned_delivery: {
329
+ planned: {
330
+ id: string;
331
+ name: string;
332
+ open: boolean;
333
+ delivered: {
334
+ item: string;
335
+ label: string;
336
+ went: string | null;
337
+ }[];
338
+ not_delivered: {
339
+ item: string;
340
+ label: string;
341
+ went: string | null;
342
+ }[];
343
+ }[];
344
+ outside: number;
345
+ } | null;
346
+ environment: string;
347
+ known_issues_error?: string | undefined;
348
+ known_issues: {
349
+ key: string;
350
+ kind: "test";
351
+ id: string;
352
+ title: string;
353
+ accepted_by: string | null;
354
+ file: string | null;
355
+ }[];
356
+ tracks_error?: string | undefined;
357
+ tracks: {
358
+ key: string;
359
+ label: string;
360
+ version: string | null;
361
+ bump: string | null;
362
+ released_by: string | null;
363
+ packages: {
364
+ name: string;
365
+ from: string | null;
366
+ to: string | null;
367
+ changes: {
368
+ feature: string;
369
+ entry: string;
370
+ }[];
371
+ }[];
372
+ published: {
373
+ recorded: boolean;
374
+ note: string | null;
375
+ } | null;
376
+ }[];
377
+ head_commit_id: string;
378
+ previous_release: {
379
+ id: string;
380
+ version: string;
381
+ } | null;
382
+ next_version: string;
383
+ version: string;
384
+ commits_since: number | null;
385
+ classification: {
386
+ bump: "patch" | "minor" | "major";
387
+ marks_approximate: boolean;
388
+ } | null;
389
+ changes: {
390
+ node_id: string;
391
+ node_type: string;
392
+ label: string;
393
+ change: string;
394
+ bump: string | null;
395
+ why: string | null;
396
+ modeling_only: boolean;
397
+ }[];
398
+ };
399
+ /** release_plan.py list's open Planned Releases, next first. */
400
+ export declare function localPlannedList(rows: unknown): {
401
+ id: string;
402
+ name: string;
403
+ goal: string | null;
404
+ date: string | null;
405
+ members: number;
406
+ }[];
407
+ /**
408
+ * model.js releaseBatch's {chip, text} as the page's batch card: its state, the badge's words from
409
+ * the page's status map, and the description a ready batch has. Absent (view code too old, or no
410
+ * board read) is unknown; null (no release barrier before production) is no batch at all, so the
411
+ * candidate draws no card, as the classic This release view leaves it out.
412
+ */
413
+ export declare function localBatch(raw: unknown): {
414
+ state: "unknown";
415
+ chip: string;
416
+ text: string;
417
+ help: null;
418
+ } | {
419
+ state: "ready";
420
+ chip: string;
421
+ text: string;
422
+ help: string;
423
+ } | {
424
+ state: "verifying";
425
+ chip: string;
426
+ text: string;
427
+ help: null;
428
+ } | {
429
+ state: "fixing";
430
+ chip: string;
431
+ text: string;
432
+ help: null;
433
+ } | {
434
+ state: "ready_older";
435
+ chip: string;
436
+ text: string;
437
+ help: null;
438
+ } | {
439
+ state: "abandoned";
440
+ chip: string;
441
+ text: string;
442
+ help: null;
443
+ } | {
444
+ state: "none";
445
+ chip: string;
446
+ text: string;
447
+ help: null;
448
+ } | null;
449
+ /**
450
+ * release_links.py view --release <label> --threads as the Related rows, previews and readiness.
451
+ * planned: the Planned Releases' names by id, for the groups of tasks that serve their members.
452
+ */
453
+ export declare function localReleaseRelated(view: Record<string, unknown>, planned?: Map<string, string>): {
454
+ rows: ({
455
+ kind: "thread";
456
+ id: string;
457
+ label: string;
458
+ relation: string;
459
+ state: null;
460
+ } | {
461
+ kind: "task";
462
+ id: string;
463
+ label: string;
464
+ relation: string;
465
+ state: string | null;
466
+ } | {
467
+ kind: "issue";
468
+ id: string;
469
+ label: string;
470
+ relation: string;
471
+ state: string | null;
472
+ } | {
473
+ kind: "test";
474
+ id: string;
475
+ label: string;
476
+ relation: string;
477
+ state: null;
478
+ url: string | null;
479
+ })[];
480
+ untasked: number;
481
+ previews: {
482
+ tasks: number;
483
+ of: number;
484
+ outcomes: {
485
+ [k: string]: number;
486
+ };
487
+ } | null;
488
+ readiness: {
489
+ verdict: string;
490
+ satisfied: number;
491
+ total: number;
492
+ failed: number;
493
+ accepted: number;
494
+ judged_commit: string | null;
495
+ } | null;
496
+ };
497
+ /**
498
+ * release_links.py view --planned <id> as the Planned Release's page: its members with their tasks,
499
+ * its order among the open ones (release_plan.py list), and its Related: the threads serving it
500
+ * (release_links.py threads, each named and phased by the view's --threads map, else titled from
501
+ * the board) and its members' tasks. A thread with no recorded phase reads 'Serves it' alone.
502
+ */
503
+ export declare function localPlannedRelease(view: Record<string, unknown>, open: ReturnType<typeof localPlannedList>, serving: Record<string, unknown> | null, titles: Map<string, string>): {
504
+ id: string;
505
+ name: string;
506
+ goal: string | null;
507
+ date: string | null;
508
+ order: number | null;
509
+ open: number;
510
+ members: {
511
+ item: string;
512
+ label: string;
513
+ level: string | null;
514
+ tasks: {
515
+ id: string;
516
+ state: string;
517
+ }[];
518
+ untracked: number;
519
+ state: string;
520
+ }[];
521
+ related: ({
522
+ kind: "thread";
523
+ id: string;
524
+ label: string;
525
+ relation: string;
526
+ state: null;
527
+ } | {
528
+ kind: "task";
529
+ id: string;
530
+ label: string;
531
+ relation: string;
532
+ state: string | null;
533
+ })[];
534
+ };
535
+ //# sourceMappingURL=app-releases.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"app-releases.d.ts","sourceRoot":"","sources":["../../src/local/app-releases.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAaH;;;;GAIG;AACH,wBAAgB,cAAc,CAAC,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;;;;;;;;IAa5D;AAQD,0CAA0C;AAC1C,wBAAgB,WAAW,CAAC,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;;;;;;;;;;;;;;;;;;;IA0BzD;AASD,yEAAyE;AACzE,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;;;;;;;IAe9D;AAED,8CAA8C;AAC9C,wBAAgB,cAAc,CAAC,GAAG,EAAE,OAAO;;;;;;;SAW1C;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