@software-dlc/cli 0.168.10 → 0.169.3
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 +16 -0
- package/dist/cli-snapshot.d.ts +9 -9
- package/dist/local/app-contract-readers.d.ts +10 -4
- package/dist/local/app-contract-readers.d.ts.map +1 -1
- package/dist/local/app-contract-readers.js +29 -7
- package/dist/local/app-contract-readers.js.map +1 -1
- package/dist/local/app-shell-readers.js +1 -1
- package/dist/local/app-shell-readers.js.map +1 -1
- package/dist/local/app-task-sections.d.ts +222 -0
- package/dist/local/app-task-sections.d.ts.map +1 -0
- package/dist/local/app-task-sections.js +286 -0
- package/dist/local/app-task-sections.js.map +1 -0
- package/dist/local/document-commands.d.ts +2 -2
- package/dist/local/health-store.d.ts +2 -2
- package/dist/local/source-evidence/schema.d.ts +6 -6
- package/dist/local/task-context-observations.d.ts +28 -28
- package/dist/local/task-context-schema.d.ts +2 -2
- package/dist/local/workspace-resolution.d.ts +2 -2
- package/dist/local/workspace-scope.d.ts +2 -2
- package/package.json +1 -1
- package/viewer/assets/index-DLgA2hHT.css +1 -0
- package/viewer/assets/index-DdcGT7zT.js +337 -0
- package/viewer/index.html +2 -2
- package/viewer/assets/index-C_hcpQvV.js +0 -292
- package/viewer/assets/index-qH2RBxhz.css +0 -1
|
@@ -0,0 +1,222 @@
|
|
|
1
|
+
import { type TaskBoardRead, type TaskModel } from './app-tasks-read.js';
|
|
2
|
+
/** A record's lifecycle as the board's group, for a task the board does not list. */
|
|
3
|
+
export declare function recordGroup(lifecycle: string | null, outcome: string | null): string;
|
|
4
|
+
type LocalClaim = {
|
|
5
|
+
id: string;
|
|
6
|
+
user_id: string;
|
|
7
|
+
started_at: string;
|
|
8
|
+
lease_expires_at: string;
|
|
9
|
+
lapsed: boolean;
|
|
10
|
+
via: null;
|
|
11
|
+
};
|
|
12
|
+
type Detail = {
|
|
13
|
+
task: {
|
|
14
|
+
id: string;
|
|
15
|
+
status_id: string;
|
|
16
|
+
[key: string]: unknown;
|
|
17
|
+
};
|
|
18
|
+
[key: string]: unknown;
|
|
19
|
+
};
|
|
20
|
+
/**
|
|
21
|
+
* The task's detail with what the board says of it: its group as its status (Cancelled for a
|
|
22
|
+
* cancelled done row, the record's lifecycle for a task the board does not list), the board's line
|
|
23
|
+
* and owner, the live claim, the holds that wait on the user, and Done where the user's word closes
|
|
24
|
+
* the task itself. done: the viewer offers Done. A board read from view code without the queue and
|
|
25
|
+
* claims answers no claim or holds and says view_outdated.
|
|
26
|
+
*/
|
|
27
|
+
export declare function taskOnBoard<T extends Detail>(detail: T, board: TaskBoardRead, model: Pick<TaskModel, 'taskGroupView'>, { done, now, lifecycle, outcome }?: {
|
|
28
|
+
done?: boolean;
|
|
29
|
+
now?: number;
|
|
30
|
+
lifecycle?: string | null;
|
|
31
|
+
outcome?: string | null;
|
|
32
|
+
}): (Omit<T, "holds" | "claim"> & {
|
|
33
|
+
claim: LocalClaim | null;
|
|
34
|
+
holds: never[];
|
|
35
|
+
view_outdated: true;
|
|
36
|
+
local_done?: {
|
|
37
|
+
task: string;
|
|
38
|
+
} | undefined;
|
|
39
|
+
owner_title?: string | undefined;
|
|
40
|
+
local_detail?: string | undefined;
|
|
41
|
+
task: {
|
|
42
|
+
status_id: string;
|
|
43
|
+
id: string;
|
|
44
|
+
};
|
|
45
|
+
local_state: string;
|
|
46
|
+
}) | (Omit<T, "holds" | "claim"> & {
|
|
47
|
+
claim: LocalClaim | null;
|
|
48
|
+
holds: {
|
|
49
|
+
id: string;
|
|
50
|
+
hold_type: "blocked" | "waiting_for_user" | "waiting_for_external";
|
|
51
|
+
reason: string;
|
|
52
|
+
opened_at: string;
|
|
53
|
+
opened_by: string;
|
|
54
|
+
released_at: null;
|
|
55
|
+
released_by: null;
|
|
56
|
+
target: {
|
|
57
|
+
kind: "user";
|
|
58
|
+
user_id: string;
|
|
59
|
+
};
|
|
60
|
+
}[];
|
|
61
|
+
local_waits: {
|
|
62
|
+
local_threads?: string[] | undefined;
|
|
63
|
+
local_done?: {
|
|
64
|
+
task: string;
|
|
65
|
+
} | {
|
|
66
|
+
hold: string;
|
|
67
|
+
} | undefined;
|
|
68
|
+
target: {
|
|
69
|
+
kind: "user";
|
|
70
|
+
user_id: string;
|
|
71
|
+
};
|
|
72
|
+
local_label: string;
|
|
73
|
+
task?: {
|
|
74
|
+
id: string;
|
|
75
|
+
list_id: string;
|
|
76
|
+
title: string;
|
|
77
|
+
} | undefined;
|
|
78
|
+
id: string;
|
|
79
|
+
hold_type: "blocked" | "waiting_for_user" | "waiting_for_external";
|
|
80
|
+
reason: string;
|
|
81
|
+
opened_at: string;
|
|
82
|
+
opened_by: string;
|
|
83
|
+
}[];
|
|
84
|
+
local_done?: {
|
|
85
|
+
task: string;
|
|
86
|
+
} | undefined;
|
|
87
|
+
owner_title?: string | undefined;
|
|
88
|
+
local_detail?: string | undefined;
|
|
89
|
+
task: {
|
|
90
|
+
status_id: string;
|
|
91
|
+
id: string;
|
|
92
|
+
};
|
|
93
|
+
local_state: string;
|
|
94
|
+
});
|
|
95
|
+
/**
|
|
96
|
+
* task_page.py's answer as the page's sections after Holds. now: epoch ms, for the time a working
|
|
97
|
+
* task has taken. who: the owning thread's title, for History.
|
|
98
|
+
*/
|
|
99
|
+
export declare function localTaskSections(page: Record<string, unknown>, { now, who }?: {
|
|
100
|
+
now?: number;
|
|
101
|
+
who?: string | null;
|
|
102
|
+
}): {
|
|
103
|
+
record: string | null;
|
|
104
|
+
lifecycle: string | null;
|
|
105
|
+
outcome: string | null;
|
|
106
|
+
started_at: string | null;
|
|
107
|
+
finished_at: string | null;
|
|
108
|
+
session: {
|
|
109
|
+
provider: string;
|
|
110
|
+
id: string;
|
|
111
|
+
} | null;
|
|
112
|
+
time: {
|
|
113
|
+
estimate: {
|
|
114
|
+
low: number;
|
|
115
|
+
high: number;
|
|
116
|
+
} | null;
|
|
117
|
+
unknown_reason: string | null;
|
|
118
|
+
elapsed: number | null;
|
|
119
|
+
over_estimate: boolean;
|
|
120
|
+
forecast: {
|
|
121
|
+
reason: string | null;
|
|
122
|
+
low: number;
|
|
123
|
+
high: number;
|
|
124
|
+
} | null;
|
|
125
|
+
} | null;
|
|
126
|
+
graph: {
|
|
127
|
+
ok: false;
|
|
128
|
+
refusal: {
|
|
129
|
+
status: number;
|
|
130
|
+
message: string;
|
|
131
|
+
reason: "view_outdated";
|
|
132
|
+
};
|
|
133
|
+
data?: undefined;
|
|
134
|
+
} | {
|
|
135
|
+
ok: true;
|
|
136
|
+
data: {
|
|
137
|
+
document: null;
|
|
138
|
+
exempt: string;
|
|
139
|
+
changes: never[];
|
|
140
|
+
};
|
|
141
|
+
refusal?: undefined;
|
|
142
|
+
} | {
|
|
143
|
+
ok: false;
|
|
144
|
+
refusal: {
|
|
145
|
+
status: number;
|
|
146
|
+
message: string;
|
|
147
|
+
reason: "engine_failed";
|
|
148
|
+
};
|
|
149
|
+
data?: undefined;
|
|
150
|
+
} | {
|
|
151
|
+
ok: true;
|
|
152
|
+
data: {
|
|
153
|
+
document: string | null;
|
|
154
|
+
exempt: null;
|
|
155
|
+
changes: {
|
|
156
|
+
id: string;
|
|
157
|
+
label: string;
|
|
158
|
+
type: string;
|
|
159
|
+
change: "added" | "changed" | "removed";
|
|
160
|
+
also_in: {
|
|
161
|
+
id: string;
|
|
162
|
+
}[];
|
|
163
|
+
planned: boolean;
|
|
164
|
+
}[];
|
|
165
|
+
};
|
|
166
|
+
refusal?: undefined;
|
|
167
|
+
};
|
|
168
|
+
files: {
|
|
169
|
+
paths: string[];
|
|
170
|
+
landed: {
|
|
171
|
+
sha: string;
|
|
172
|
+
files: number;
|
|
173
|
+
} | null;
|
|
174
|
+
} | null;
|
|
175
|
+
proof: {
|
|
176
|
+
evidence: string | null;
|
|
177
|
+
commit: string | null;
|
|
178
|
+
on_main: boolean | null;
|
|
179
|
+
no_code: string | null;
|
|
180
|
+
} | null;
|
|
181
|
+
history: {
|
|
182
|
+
what: string;
|
|
183
|
+
who: string | null;
|
|
184
|
+
at: string;
|
|
185
|
+
}[];
|
|
186
|
+
};
|
|
187
|
+
/** release_links.py trace's answer as the Related table's rows: threads, tasks, issues, releases, tests. */
|
|
188
|
+
export declare function localTaskRelated(trace: Record<string, unknown>): ({
|
|
189
|
+
kind: "release";
|
|
190
|
+
id: string;
|
|
191
|
+
planned: boolean;
|
|
192
|
+
label: string;
|
|
193
|
+
relation: string;
|
|
194
|
+
} | {
|
|
195
|
+
kind: "release";
|
|
196
|
+
id: string;
|
|
197
|
+
label: string;
|
|
198
|
+
relation: string;
|
|
199
|
+
planned?: undefined;
|
|
200
|
+
} | {
|
|
201
|
+
kind: "thread";
|
|
202
|
+
id: string;
|
|
203
|
+
label: string;
|
|
204
|
+
relation: string;
|
|
205
|
+
} | {
|
|
206
|
+
kind: "task";
|
|
207
|
+
id: string;
|
|
208
|
+
label: string;
|
|
209
|
+
relation: string;
|
|
210
|
+
} | {
|
|
211
|
+
kind: "issue";
|
|
212
|
+
id: string;
|
|
213
|
+
label: string;
|
|
214
|
+
relation: string;
|
|
215
|
+
} | {
|
|
216
|
+
kind: "test";
|
|
217
|
+
id: string;
|
|
218
|
+
label: string;
|
|
219
|
+
relation: string;
|
|
220
|
+
})[];
|
|
221
|
+
export {};
|
|
222
|
+
//# sourceMappingURL=app-task-sections.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"app-task-sections.d.ts","sourceRoot":"","sources":["../../src/local/app-task-sections.ts"],"names":[],"mappings":"AAAA,OAAO,EAAqB,KAAK,aAAa,EAAE,KAAK,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAsB5F,qFAAqF;AACrF,wBAAgB,WAAW,CAAC,SAAS,EAAE,MAAM,GAAG,IAAI,EAAE,OAAO,EAAE,MAAM,GAAG,IAAI,GAAG,MAAM,CAKpF;AAaD,KAAK,UAAU,GAAG;IAChB,EAAE,EAAE,MAAM,CAAC;IACX,OAAO,EAAE,MAAM,CAA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AG,SAAS,GAAG,SAAS;;;;;;;;;;;;;;;;;;;;;;;cA8DpF,MAAM;aAAO,MAAM,GAAG,IAAI;YAAM,MAAM;;EAoC9D;AA8CD,4GAA4G;AAC5G,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KA+B9D"}
|
|
@@ -0,0 +1,286 @@
|
|
|
1
|
+
import { localWaitingOnYou } from './app-tasks-read.js';
|
|
2
|
+
/**
|
|
3
|
+
* The local Task page's reads (plan 09595796, la-tasks-task), in the shapes of
|
|
4
|
+
* packages/app-ui/src/contracts/tasks.ts: the task as the board holds it (its state, the claim, the
|
|
5
|
+
* holds that wait on the user and Done), the sections after Holds from task_page.py's answer, and
|
|
6
|
+
* the Related rows from release_links.py trace. Nothing here reads a store: the board, the page and
|
|
7
|
+
* the trace come in already read.
|
|
8
|
+
*/
|
|
9
|
+
const text = (value) => (typeof value === 'string' && value ? value : null);
|
|
10
|
+
const record = (value) => value && typeof value === 'object' && !Array.isArray(value) ? value : {};
|
|
11
|
+
const list = (value) => (Array.isArray(value) ? value.map(record) : []);
|
|
12
|
+
const strings = (value) => Array.isArray(value) ? value.filter((item) => typeof item === 'string' && item !== '') : [];
|
|
13
|
+
const num = (value) => (typeof value === 'number' && Number.isFinite(value) ? value : null);
|
|
14
|
+
const iso = (seconds) => {
|
|
15
|
+
const at = num(seconds);
|
|
16
|
+
return at === null ? null : new Date(at * 1000).toISOString();
|
|
17
|
+
};
|
|
18
|
+
/** A record's lifecycle as the board's group, for a task the board does not list. */
|
|
19
|
+
export function recordGroup(lifecycle, outcome) {
|
|
20
|
+
if (lifecycle === 'finished')
|
|
21
|
+
return outcome === 'cancelled' ? 'cancelled' : 'done';
|
|
22
|
+
if (lifecycle === 'active')
|
|
23
|
+
return 'working';
|
|
24
|
+
if (lifecycle === 'planned')
|
|
25
|
+
return 'planned';
|
|
26
|
+
return 'unowned';
|
|
27
|
+
}
|
|
28
|
+
/** The board's row for the task, with model.js's parts for it (title, owner, detail, done). */
|
|
29
|
+
function boardRow(board, id, model) {
|
|
30
|
+
const row = board.tasks.find((candidate) => String(candidate.id) === id);
|
|
31
|
+
if (!row)
|
|
32
|
+
return null;
|
|
33
|
+
const parts = model
|
|
34
|
+
.taskGroupView([row])
|
|
35
|
+
.groups.flatMap((group) => group.rows)
|
|
36
|
+
.find((candidate) => candidate.id === id);
|
|
37
|
+
return { row, parts: parts ?? null };
|
|
38
|
+
}
|
|
39
|
+
/**
|
|
40
|
+
* The task's detail with what the board says of it: its group as its status (Cancelled for a
|
|
41
|
+
* cancelled done row, the record's lifecycle for a task the board does not list), the board's line
|
|
42
|
+
* and owner, the live claim, the holds that wait on the user, and Done where the user's word closes
|
|
43
|
+
* the task itself. done: the viewer offers Done. A board read from view code without the queue and
|
|
44
|
+
* claims answers no claim or holds and says view_outdated.
|
|
45
|
+
*/
|
|
46
|
+
export function taskOnBoard(detail, board, model, { done = false, now = Date.now(), lifecycle = null, outcome = null } = {}) {
|
|
47
|
+
const id = detail.task.id;
|
|
48
|
+
const found = boardRow(board, id, model);
|
|
49
|
+
const state = found ? String(found.row.state ?? '') : recordGroup(lifecycle, outcome);
|
|
50
|
+
const cancelled = state === 'done' && String(found?.row.detail ?? '').startsWith('cancelled');
|
|
51
|
+
const status_id = cancelled ? 'cancelled' : state;
|
|
52
|
+
const parts = found?.parts ?? null;
|
|
53
|
+
const owner = record(found?.row.owner);
|
|
54
|
+
const owner_title = text(parts?.owner) ?? text(owner.title);
|
|
55
|
+
const target = parts?.done;
|
|
56
|
+
const local_done = done && target && 'task' in target ? { task: target.task } : undefined;
|
|
57
|
+
const outdated = !board.queue || !board.claims;
|
|
58
|
+
// The claim and holds come from the board, never from the record's read.
|
|
59
|
+
const { claim: _claim, holds: _holds, ...rest } = detail;
|
|
60
|
+
const base = {
|
|
61
|
+
...rest,
|
|
62
|
+
task: { ...detail.task, status_id },
|
|
63
|
+
local_state: state,
|
|
64
|
+
...(text(parts?.detail) ? { local_detail: String(parts?.detail) } : {}),
|
|
65
|
+
...(owner_title ? { owner_title } : {}),
|
|
66
|
+
...(local_done ? { local_done } : {})
|
|
67
|
+
};
|
|
68
|
+
if (outdated)
|
|
69
|
+
return { ...base, claim: null, holds: [], view_outdated: true };
|
|
70
|
+
const claimed = list(board.claims).find((claim) => text(claim.task) === id && text(claim.thread));
|
|
71
|
+
const expires = num(claimed?.expires);
|
|
72
|
+
const claim = claimed && expires !== null
|
|
73
|
+
? {
|
|
74
|
+
id: `claim:${id}`,
|
|
75
|
+
user_id: String(claimed.thread),
|
|
76
|
+
started_at: '',
|
|
77
|
+
lease_expires_at: new Date(expires * 1000).toISOString(),
|
|
78
|
+
lapsed: expires * 1000 <= now,
|
|
79
|
+
via: null
|
|
80
|
+
}
|
|
81
|
+
: null;
|
|
82
|
+
const waits = (localWaitingOnYou(board, { done, now })?.holds ?? []).filter((hold) => hold.task?.id === id);
|
|
83
|
+
const holds = waits.map((hold) => ({
|
|
84
|
+
id: hold.id,
|
|
85
|
+
hold_type: hold.hold_type,
|
|
86
|
+
reason: hold.reason,
|
|
87
|
+
opened_at: hold.opened_at,
|
|
88
|
+
opened_by: hold.opened_by,
|
|
89
|
+
released_at: null,
|
|
90
|
+
released_by: null,
|
|
91
|
+
target: hold.target
|
|
92
|
+
}));
|
|
93
|
+
return { ...base, claim, holds, local_waits: waits };
|
|
94
|
+
}
|
|
95
|
+
/** A reforecast's range: {low, high} or [low, high]. */
|
|
96
|
+
function range(value) {
|
|
97
|
+
if (Array.isArray(value) && value.length === 2 && num(value[0]) !== null && num(value[1]) !== null)
|
|
98
|
+
return { low: value[0], high: value[1] };
|
|
99
|
+
const held = record(value);
|
|
100
|
+
const low = num(held.low);
|
|
101
|
+
const high = num(held.high);
|
|
102
|
+
return low !== null && high !== null ? { low, high } : null;
|
|
103
|
+
}
|
|
104
|
+
const CHANGES = new Set(['added', 'changed', 'removed']);
|
|
105
|
+
/** task_page.py's scope as the Graph changes section: its rows, the exempt plan's reason, or why not. */
|
|
106
|
+
function graphOf(scope) {
|
|
107
|
+
if (scope === undefined || scope === null)
|
|
108
|
+
return { ok: false, refusal: { status: 409, message: 'This view code reads no graph changes.', reason: 'view_outdated' } };
|
|
109
|
+
const held = record(scope);
|
|
110
|
+
if (text(held.exempt))
|
|
111
|
+
return { ok: true, data: { document: null, exempt: text(held.reason) ?? String(held.exempt), changes: [] } };
|
|
112
|
+
if (text(held.error))
|
|
113
|
+
return { ok: false, refusal: { status: 500, message: String(held.error), reason: 'engine_failed' } };
|
|
114
|
+
const row = (entry, planned) => ({
|
|
115
|
+
id: String(entry.entity ?? ''),
|
|
116
|
+
label: text(entry.label) ?? String(entry.entity ?? ''),
|
|
117
|
+
type: text(entry.type) ?? String(entry.entity_kind ?? ''),
|
|
118
|
+
// A slice with no live comparison lists its embeds with no change: they read as changed.
|
|
119
|
+
change: (CHANGES.has(String(entry.change)) ? entry.change : 'changed'),
|
|
120
|
+
also_in: strings(entry.shared_with).map((task) => ({ id: task })),
|
|
121
|
+
planned
|
|
122
|
+
});
|
|
123
|
+
return {
|
|
124
|
+
ok: true,
|
|
125
|
+
data: {
|
|
126
|
+
document: text(held.document_label),
|
|
127
|
+
exempt: null,
|
|
128
|
+
changes: [...list(held.changes).map((entry) => row(entry, true)), ...list(held.not_changed).map((entry) => row(entry, false))]
|
|
129
|
+
}
|
|
130
|
+
};
|
|
131
|
+
}
|
|
132
|
+
/**
|
|
133
|
+
* task_page.py's answer as the page's sections after Holds. now: epoch ms, for the time a working
|
|
134
|
+
* task has taken. who: the owning thread's title, for History.
|
|
135
|
+
*/
|
|
136
|
+
export function localTaskSections(page, { now = Date.now(), who = null } = {}) {
|
|
137
|
+
const held = record(page.record);
|
|
138
|
+
const has_record = page.record !== null && page.record !== undefined;
|
|
139
|
+
const execution = record(page.execution);
|
|
140
|
+
const lifecycle = text(held.lifecycle_state);
|
|
141
|
+
const outcome = text(held.outcome);
|
|
142
|
+
const started = num(held.started_at);
|
|
143
|
+
const finished = num(held.finished_at);
|
|
144
|
+
const thread = text(execution.thread);
|
|
145
|
+
const split = thread ? thread.indexOf(':') : -1;
|
|
146
|
+
const session = thread && split > 0 ? { provider: thread.slice(0, split), id: thread.slice(split + 1) } : null;
|
|
147
|
+
const estimate = record(held.estimate);
|
|
148
|
+
const actuals = record(held.actuals);
|
|
149
|
+
const low = num(estimate.low);
|
|
150
|
+
const high = num(estimate.high);
|
|
151
|
+
const elapsed = num(actuals.elapsed_seconds) ?? (started !== null && finished === null ? Math.max(0, now / 1000 - started) : null);
|
|
152
|
+
const forecasts = list(held.forecasts);
|
|
153
|
+
const last = forecasts[forecasts.length - 1];
|
|
154
|
+
const forecast_range = last ? range(last.range) : null;
|
|
155
|
+
const time = has_record && (low !== null || text(estimate.unknown_reason) || elapsed !== null)
|
|
156
|
+
? {
|
|
157
|
+
estimate: low !== null && high !== null ? { low, high } : null,
|
|
158
|
+
unknown_reason: text(estimate.unknown_reason),
|
|
159
|
+
elapsed,
|
|
160
|
+
over_estimate: elapsed !== null && high !== null && elapsed > high,
|
|
161
|
+
forecast: forecast_range ? { ...forecast_range, reason: text(last?.reason) } : null
|
|
162
|
+
}
|
|
163
|
+
: null;
|
|
164
|
+
const proof = record(held.proof);
|
|
165
|
+
const landings = list(actuals.landings);
|
|
166
|
+
const proof_commit = text(proof.commit);
|
|
167
|
+
const landing = landings.find((entry) => text(entry.commit) === proof_commit) ?? landings[landings.length - 1];
|
|
168
|
+
const paths = strings(actuals.files);
|
|
169
|
+
const files = paths.length || landing
|
|
170
|
+
? {
|
|
171
|
+
paths,
|
|
172
|
+
landed: landing && text(landing.commit) ? { sha: String(landing.commit), files: num(landing.files) ?? paths.length } : null
|
|
173
|
+
}
|
|
174
|
+
: null;
|
|
175
|
+
const history = [];
|
|
176
|
+
const add = (seconds, what) => {
|
|
177
|
+
const at = iso(seconds);
|
|
178
|
+
if (at)
|
|
179
|
+
history.push({ what, who, at });
|
|
180
|
+
};
|
|
181
|
+
add(held.created_at, 'Created the task record');
|
|
182
|
+
add(held.started_at, 'Started the task');
|
|
183
|
+
for (const entry of forecasts) {
|
|
184
|
+
const span = range(entry.range);
|
|
185
|
+
add(entry.at, `Reforecast${span ? ` to ${span.low}–${span.high} s left` : ''}${text(entry.reason) ? `: ${entry.reason}` : ''}`);
|
|
186
|
+
}
|
|
187
|
+
for (const entry of list(held.amendments))
|
|
188
|
+
add(entry.at, `Changed its scope${text(entry.reason) ? `: ${entry.reason}` : ''}`);
|
|
189
|
+
if (lifecycle === 'finished')
|
|
190
|
+
add(held.finished_at, outcome === 'cancelled' ? 'Cancelled the task' : `Finished the task${outcome ? ` ${outcome}` : ''}`);
|
|
191
|
+
history.sort((a, b) => b.at.localeCompare(a.at));
|
|
192
|
+
return {
|
|
193
|
+
record: has_record ? text(held.path) : null,
|
|
194
|
+
lifecycle,
|
|
195
|
+
outcome,
|
|
196
|
+
started_at: iso(held.started_at),
|
|
197
|
+
finished_at: iso(held.finished_at),
|
|
198
|
+
session,
|
|
199
|
+
time,
|
|
200
|
+
graph: graphOf(page.scope),
|
|
201
|
+
files,
|
|
202
|
+
proof: lifecycle === 'finished'
|
|
203
|
+
? {
|
|
204
|
+
evidence: text(held.evidence),
|
|
205
|
+
commit: proof_commit,
|
|
206
|
+
on_main: typeof proof.on_main === 'boolean' ? proof.on_main : null,
|
|
207
|
+
no_code: text(proof.no_code)
|
|
208
|
+
}
|
|
209
|
+
: null,
|
|
210
|
+
history
|
|
211
|
+
};
|
|
212
|
+
}
|
|
213
|
+
const VIA = {
|
|
214
|
+
owns: 'Owns it',
|
|
215
|
+
landed: 'Landed it',
|
|
216
|
+
waits_on: 'This task waits on it',
|
|
217
|
+
fixes: 'This task fixes it',
|
|
218
|
+
landed_fix: 'Landed its fix'
|
|
219
|
+
};
|
|
220
|
+
const words = (via) => strings(Array.isArray(via) ? via : typeof via === 'string' ? [via] : [])
|
|
221
|
+
.map((key) => VIA[key] ?? key.replace(/_/g, ' '))
|
|
222
|
+
.join(', ');
|
|
223
|
+
// What a release row's stands word reads as, in the other surfaces' words (model.js RELEASE_STANDS).
|
|
224
|
+
const STANDS = {
|
|
225
|
+
released: 'Shipped in it',
|
|
226
|
+
candidate: 'In the release candidate',
|
|
227
|
+
on_main: 'On main, not yet on staging',
|
|
228
|
+
planned: 'Planned for it'
|
|
229
|
+
};
|
|
230
|
+
/**
|
|
231
|
+
* One release_links.py task_releases row, as model.js relatedRelease names it: a Planned Release by
|
|
232
|
+
* its name (planned: its id opens #planned=), a landing on main as "on main" opening the candidate,
|
|
233
|
+
* and a version or the candidate as itself.
|
|
234
|
+
*/
|
|
235
|
+
function releaseRow(row) {
|
|
236
|
+
const stands = text(row.stands);
|
|
237
|
+
const relation = (stands && STANDS[stands]) ?? stands ?? 'Part of it';
|
|
238
|
+
if (text(row.planned_release)) {
|
|
239
|
+
const id = String(row.planned_release);
|
|
240
|
+
return { kind: 'release', id, planned: true, label: text(row.name) ?? id, relation };
|
|
241
|
+
}
|
|
242
|
+
const version = String(row.release ?? row.version ?? '');
|
|
243
|
+
if (stands === 'on_main' || version === 'on_main') {
|
|
244
|
+
return { kind: 'release', id: 'candidate', label: 'On main', relation: STANDS.on_main };
|
|
245
|
+
}
|
|
246
|
+
return {
|
|
247
|
+
kind: 'release',
|
|
248
|
+
id: version,
|
|
249
|
+
label: version === 'candidate' ? 'Release candidate' : `Release ${version}`,
|
|
250
|
+
relation
|
|
251
|
+
};
|
|
252
|
+
}
|
|
253
|
+
/** release_links.py trace's answer as the Related table's rows: threads, tasks, issues, releases, tests. */
|
|
254
|
+
export function localTaskRelated(trace) {
|
|
255
|
+
const related = record(trace.related);
|
|
256
|
+
const titles = record(trace.threads);
|
|
257
|
+
return [
|
|
258
|
+
...list(related.threads).map((row) => ({
|
|
259
|
+
kind: 'thread',
|
|
260
|
+
id: String(row.thread ?? ''),
|
|
261
|
+
label: text(record(titles[String(row.thread ?? '')]).title) ?? String(row.thread ?? ''),
|
|
262
|
+
relation: words(row.via)
|
|
263
|
+
})),
|
|
264
|
+
...list(related.tasks).map((row) => ({
|
|
265
|
+
kind: 'task',
|
|
266
|
+
id: String(row.id ?? ''),
|
|
267
|
+
label: text(row.objective) ?? String(row.id ?? ''),
|
|
268
|
+
relation: words(row.via) || `Named by this task${text(row.state) ? ` (${row.state})` : ''}`
|
|
269
|
+
})),
|
|
270
|
+
...list(related.issues).map((row) => ({
|
|
271
|
+
kind: 'issue',
|
|
272
|
+
id: String(row.id ?? ''),
|
|
273
|
+
label: text(row.title) ?? String(row.id ?? ''),
|
|
274
|
+
relation: `This task fixes it${text(row.status) ? ` (${row.status})` : ''}`
|
|
275
|
+
})),
|
|
276
|
+
...list(related.releases).map(releaseRow),
|
|
277
|
+
...list(related.tests).map((row) => ({
|
|
278
|
+
kind: 'test',
|
|
279
|
+
// One row per check, each with its landing's sha: the pair names the row.
|
|
280
|
+
id: [row.sha, row.name].filter((part) => part !== undefined && part !== null).map(String).join(':'),
|
|
281
|
+
label: String(row.name ?? ''),
|
|
282
|
+
relation: `${text(row.result) === 'pass' ? 'Passed' : text(row.result) === 'fail' ? 'Failed' : (text(row.result) ?? 'Ran')} on its landing${text(row.sha) ? ` ${String(row.sha).slice(0, 10)}` : ''}`
|
|
283
|
+
}))
|
|
284
|
+
].filter((row) => row.id);
|
|
285
|
+
}
|
|
286
|
+
//# sourceMappingURL=app-task-sections.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"app-task-sections.js","sourceRoot":"","sources":["../../src/local/app-task-sections.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAsC,MAAM,qBAAqB,CAAC;AAE5F;;;;;;GAMG;AAEH,MAAM,IAAI,GAAG,CAAC,KAAc,EAAiB,EAAE,CAAC,CAAC,OAAO,KAAK,KAAK,QAAQ,IAAI,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC;AACpG,MAAM,M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,IAAI,EAAE,EAAE,CAAC,IAAI,KAAK,SAAS,IAAI,IAAI,KAAK,IAAI,CAAC,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC;YACnG,KAAK,EAAE,MAAM,CAAC,GAAG,CAAC,IAAI,IAAI,EAAE,CAAC;YAC7B,QAAQ,EAAE,GAAG,IAAI,CAAC,GAAG,CAAC,MAAM,CAAC,KAAK,MAAM,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,MAAM,CAAC,KAAK,MAAM,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,MAAM,CAAC,IAAI,KAAK,CAAC,kBAAkB,IAAI,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,KAAK,CAAC,CAAC,EAAE,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,EAAE;SACtM,CAAC,CAAC;KACJ,CAAC,MAAM,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC;AAC5B,CAAC"}
|
|
@@ -17,8 +17,8 @@ export declare const document_outline_schema: z.ZodObject<{
|
|
|
17
17
|
id: z.ZodString;
|
|
18
18
|
embed: z.ZodObject<{
|
|
19
19
|
kind: z.ZodEnum<{
|
|
20
|
-
node: "node";
|
|
21
20
|
path: "path";
|
|
21
|
+
node: "node";
|
|
22
22
|
edge: "edge";
|
|
23
23
|
}>;
|
|
24
24
|
id: z.ZodString;
|
|
@@ -88,7 +88,7 @@ export declare function documentOutlineForNode(projection_dir: string, node_id:
|
|
|
88
88
|
} | {
|
|
89
89
|
id: string;
|
|
90
90
|
embed: {
|
|
91
|
-
kind: "
|
|
91
|
+
kind: "path" | "node" | "edge";
|
|
92
92
|
id: string;
|
|
93
93
|
caption?: string | undefined;
|
|
94
94
|
};
|
|
@@ -7,8 +7,8 @@ declare const projection_details_schema: z.ZodObject<{
|
|
|
7
7
|
checkpoint_hash: z.ZodNullable<z.ZodString>;
|
|
8
8
|
deletion_intents: z.ZodArray<z.ZodObject<{
|
|
9
9
|
entity_kind: z.ZodEnum<{
|
|
10
|
-
node: "node";
|
|
11
10
|
path: "path";
|
|
11
|
+
node: "node";
|
|
12
12
|
edge: "edge";
|
|
13
13
|
path_relation: "path_relation";
|
|
14
14
|
}>;
|
|
@@ -41,7 +41,7 @@ export declare function inspectHealthStore(files: HealthFiles, state_dir: string
|
|
|
41
41
|
base_graph_hash: string;
|
|
42
42
|
checkpoint_hash: string | null;
|
|
43
43
|
deletion_intents: {
|
|
44
|
-
entity_kind: "
|
|
44
|
+
entity_kind: "path" | "node" | "edge" | "path_relation";
|
|
45
45
|
entity_id: string;
|
|
46
46
|
}[];
|
|
47
47
|
} | null;
|
|
@@ -1526,8 +1526,8 @@ export declare const source_result_schema: z.ZodDiscriminatedUnion<[z.ZodObject<
|
|
|
1526
1526
|
}, z.core.$strict>;
|
|
1527
1527
|
anchors: z.ZodArray<z.ZodObject<{
|
|
1528
1528
|
kind: z.ZodEnum<{
|
|
1529
|
-
node: "node";
|
|
1530
1529
|
path: "path";
|
|
1530
|
+
node: "node";
|
|
1531
1531
|
edge: "edge";
|
|
1532
1532
|
path_relation: "path_relation";
|
|
1533
1533
|
}>;
|
|
@@ -1542,8 +1542,8 @@ export declare const source_result_schema: z.ZodDiscriminatedUnion<[z.ZodObject<
|
|
|
1542
1542
|
continuation: z.ZodNullable<z.ZodString>;
|
|
1543
1543
|
items: z.ZodArray<z.ZodObject<{
|
|
1544
1544
|
kind: z.ZodEnum<{
|
|
1545
|
-
node: "node";
|
|
1546
1545
|
path: "path";
|
|
1546
|
+
node: "node";
|
|
1547
1547
|
edge: "edge";
|
|
1548
1548
|
path_relation: "path_relation";
|
|
1549
1549
|
}>;
|
|
@@ -1666,8 +1666,8 @@ export declare const source_result_schema: z.ZodDiscriminatedUnion<[z.ZodObject<
|
|
|
1666
1666
|
}, z.core.$strict>;
|
|
1667
1667
|
anchors: z.ZodArray<z.ZodObject<{
|
|
1668
1668
|
kind: z.ZodEnum<{
|
|
1669
|
-
node: "node";
|
|
1670
1669
|
path: "path";
|
|
1670
|
+
node: "node";
|
|
1671
1671
|
edge: "edge";
|
|
1672
1672
|
path_relation: "path_relation";
|
|
1673
1673
|
}>;
|
|
@@ -1682,8 +1682,8 @@ export declare const source_result_schema: z.ZodDiscriminatedUnion<[z.ZodObject<
|
|
|
1682
1682
|
continuation: z.ZodNullable<z.ZodString>;
|
|
1683
1683
|
items: z.ZodArray<z.ZodObject<{
|
|
1684
1684
|
kind: z.ZodEnum<{
|
|
1685
|
-
node: "node";
|
|
1686
1685
|
path: "path";
|
|
1686
|
+
node: "node";
|
|
1687
1687
|
edge: "edge";
|
|
1688
1688
|
path_relation: "path_relation";
|
|
1689
1689
|
}>;
|
|
@@ -1952,8 +1952,8 @@ export declare const source_result_schema: z.ZodDiscriminatedUnion<[z.ZodObject<
|
|
|
1952
1952
|
}>;
|
|
1953
1953
|
entities: z.ZodArray<z.ZodObject<{
|
|
1954
1954
|
kind: z.ZodEnum<{
|
|
1955
|
-
node: "node";
|
|
1956
1955
|
path: "path";
|
|
1956
|
+
node: "node";
|
|
1957
1957
|
edge: "edge";
|
|
1958
1958
|
path_relation: "path_relation";
|
|
1959
1959
|
}>;
|
|
@@ -2139,8 +2139,8 @@ export declare const source_result_schema: z.ZodDiscriminatedUnion<[z.ZodObject<
|
|
|
2139
2139
|
}>;
|
|
2140
2140
|
entities: z.ZodArray<z.ZodObject<{
|
|
2141
2141
|
kind: z.ZodEnum<{
|
|
2142
|
-
node: "node";
|
|
2143
2142
|
path: "path";
|
|
2143
|
+
node: "node";
|
|
2144
2144
|
edge: "edge";
|
|
2145
2145
|
path_relation: "path_relation";
|
|
2146
2146
|
}>;
|