ai-agentmanager 1.21.0 → 1.23.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,299 @@
1
+ // Value: what the delivered work is worth, by day, week, month and quarter: the engineering time it
2
+ // saved, other savings, potential revenue and strategic weight, against the AI cost and your own
3
+ // time. Each item's figures are AI estimates you can correct; reports go out on a schedule.
4
+
5
+ const PERIODS = [
6
+ ['day', 'Day'],
7
+ ['week', 'Week'],
8
+ ['month', 'Month'],
9
+ ['quarter', 'Quarter'],
10
+ ];
11
+ const CATEGORIES = ['cost savings', 'revenue', 'risk reduction', 'quality', 'customer experience', 'strategic', 'maintenance'];
12
+ const SAVED = 'agentmgr.valuePeriod';
13
+
14
+ export function initValue({ api, $, esc, toast, openAgent }) {
15
+ const dialog = $('#value-dialog');
16
+ const body = $('#value-body');
17
+ let data = null;
18
+ let period = 'week';
19
+ let selected = null; // a period key; null is the current one
20
+ let editing = null; // an agent id
21
+ let again = null;
22
+ try {
23
+ period = localStorage.getItem(SAVED) || 'week';
24
+ } catch {}
25
+
26
+ const money = (n) => (n == null ? '—' : new Intl.NumberFormat(undefined, { style: 'currency', currency: data?.settings.currency ?? 'USD', maximumFractionDigits: 0 }).format(n));
27
+ const pct = (a, b) => (b ? Math.round(((a - b) / b) * 100) : null);
28
+
29
+ async function load() {
30
+ try {
31
+ data = await api('GET', `/value?period=${period}`);
32
+ } catch (e) {
33
+ toast?.(e.message, 5000);
34
+ }
35
+ render();
36
+ }
37
+
38
+ function card(label, value, sub, prevValue, cur) {
39
+ const d = prevValue != null && cur != null ? pct(cur, prevValue) : null;
40
+ return `<div class="value-card"><div class="hint">${esc(label)}</div><div class="value-big">${value}</div>${sub ? `<div class="hint">${sub}</div>` : ''}${d != null && Number.isFinite(d) ? `<div class="value-delta ${d >= 0 ? 'up' : 'down'}">${d >= 0 ? '▲' : '▼'} ${Math.abs(d)}% vs before</div>` : ''}</div>`;
41
+ }
42
+
43
+ function bars(periods) {
44
+ const max = Math.max(1, ...periods.map((p) => p.totals.valueUsd + p.totals.revenueUsd));
45
+ return `<div class="value-bars" role="list">${[...periods]
46
+ .reverse()
47
+ .map((p) => {
48
+ const v = (p.totals.valueUsd / max) * 100;
49
+ const r = (p.totals.revenueUsd / max) * 100;
50
+ const on = (selected ?? periods[0].key) === p.key;
51
+ return `<button class="value-bar ${on ? 'on' : ''}" role="listitem" data-value-pick="${esc(p.key)}" title="${esc(`${p.label}: ${money(p.totals.valueUsd)} value, ${money(p.totals.revenueUsd)} potential revenue, ${p.totals.items} items`)}">
52
+ <span class="stack"><span class="rev" style="height:${r}%"></span><span class="val" style="height:${v}%"></span></span>
53
+ <span class="lbl">${esc(shortLabel(p))}</span>
54
+ </button>`;
55
+ })
56
+ .join('')}</div>`;
57
+ }
58
+
59
+ const shortLabel = (p) => {
60
+ const d = new Date(p.start);
61
+ if (period === 'day') return d.toLocaleDateString(undefined, { weekday: 'narrow', day: 'numeric' });
62
+ if (period === 'week') return d.toLocaleDateString(undefined, { month: 'numeric', day: 'numeric' });
63
+ if (period === 'month') return d.toLocaleDateString(undefined, { month: 'short' });
64
+ return p.label.split(' ')[0];
65
+ };
66
+
67
+ function itemRow(it) {
68
+ const v = it.value;
69
+ const mine = (k) => (v.yours.includes(k) ? ' class="mine" title="Set by you"' : it.est ? ` title="${esc(it.est.why?.[{ humanHours: 'hours', savingsUsd: 'savings', revenueUsd: 'revenue', strategic: 'strategic' }[k]] ?? '')}"` : '');
70
+ const status = it.excluded ? 'not counted' : it.est ? (v.yours.length ? 'AI + you' : `AI${it.est.confidence != null ? ` · ${Math.round(it.est.confidence * 100)}%` : ''}`) : it.estError ? 'no estimate' : data.estimating === it.agentId ? 'estimating…' : 'waiting for estimate';
71
+ const title = it.link ? `<a href="${esc(it.link)}" target="_blank" rel="noopener">${esc(it.title)}</a>` : esc(it.title);
72
+ const row = `<tr class="${it.excluded ? 'excluded' : ''}">
73
+ <td class="hint nowrap">${esc(new Date(it.deliveredAt).toLocaleDateString())}</td>
74
+ <td>${title}${v.summary ? `<div class="hint">${esc(v.summary)}</div>` : ''}${it.project ? `<div class="hint">${esc(it.project)}</div>` : ''}</td>
75
+ <td>${esc(v.category ?? '—')}</td>
76
+ <td${mine('humanHours')}>${v.humanHours ?? '—'}</td>
77
+ <td${mine('humanHours')}>${money(v.valueUsd)}${v.savingsUsd ? `<div class="hint"${mine('savingsUsd')}>incl. ${money(v.savingsUsd)} savings</div>` : ''}</td>
78
+ <td${mine('revenueUsd')}>${money(v.revenueUsd)}</td>
79
+ <td${mine('strategic')}>${v.strategic != null ? `${v.strategic}/5` : '—'}</td>
80
+ <td class="nowrap">${v.yourHours}h<div class="hint">AI ${money(v.aiCostUsd)}</div></td>
81
+ <td class="nowrap"><span class="hint">${esc(status)}</span><div><button class="link" data-value-edit="${esc(it.agentId)}">Edit</button></div></td>
82
+ </tr>`;
83
+ if (editing !== it.agentId) return row;
84
+ const e = it.edits ?? {};
85
+ const est = it.est ?? {};
86
+ const field = (k, label, step, max) => `<label>${label}<input type="number" min="0" ${max ? `max="${max}"` : ''} step="${step}" name="${k}" value="${esc(e[k] ?? '')}" placeholder="${esc(est[k] ?? (k === 'yourHours' ? v.yourHours : ''))}" /></label>`;
87
+ return `${row}<tr class="value-edit"><td colspan="9"><form data-value-form="${esc(it.agentId)}">
88
+ <div class="row value-fields">
89
+ ${field('humanHours', 'Engineering hours saved', '0.5')}
90
+ ${field('savingsUsd', 'Other savings', '100')}
91
+ ${field('revenueUsd', 'Potential revenue', '100')}
92
+ ${field('strategic', 'Strategic (0–5)', '1', 5)}
93
+ ${field('yourHours', 'Your hours', '0.25')}
94
+ <label>Category<select name="category"><option value="">${esc(est.category ? `AI: ${est.category}` : '—')}</option>${CATEGORIES.map((c) => `<option ${e.category === c ? 'selected' : ''}>${esc(c)}</option>`).join('')}</select></label>
95
+ </div>
96
+ <label>For management <input name="summary" value="${esc(e.summary ?? '')}" placeholder="${esc(est.summary ?? 'One sentence: what it gives the business')}" /></label>
97
+ ${it.est ? `<p class="hint">AI's reasons: ${['hours', 'savings', 'revenue', 'strategic'].map((k) => (it.est.why?.[k] ? `<b>${k}</b> ${esc(it.est.why[k])}` : '')).filter(Boolean).join(' · ')}</p>` : it.estError ? `<p class="hint">No estimate: ${esc(it.estError)}</p>` : ''}
98
+ <p class="hint">Empty fields use the AI's figure (shown faint). Yours are marked and win.</p>
99
+ <div class="actions">
100
+ <button type="button" class="small" data-value-act="estimate" ${it.gone ? 'disabled title="The agent is gone"' : ''}>${it.est ? 'Estimate again' : 'Estimate now'}</button>
101
+ <button type="button" class="small" data-value-act="${it.excluded ? 'include' : 'exclude'}">${it.excluded ? 'Count it' : "Don't count it"}</button>
102
+ <button type="button" class="small" data-value-act="open">Open agent</button>
103
+ <span class="spacer"></span>
104
+ <button type="button" class="small" data-value-act="cancel">Cancel</button>
105
+ <button class="small primary">Save</button>
106
+ </div>
107
+ </form></td></tr>`;
108
+ }
109
+
110
+ function settingsHtml() {
111
+ const s = data.settings;
112
+ const r = s.report;
113
+ return `<details class="value-settings"><summary>Settings and reports</summary><form data-value-settings>
114
+ <div class="row three">
115
+ <label>Engineering hour <span class="hint">loaded cost, ${esc(s.currency)}</span><input type="number" min="0" step="5" name="hourlyRate" value="${s.hourlyRate}" /></label>
116
+ <label>Your time per item <span class="hint">minutes, unless set on it</span><input type="number" min="0" step="5" name="yourMinutes" value="${s.yourMinutes}" /></label>
117
+ <label>Currency<input name="currency" maxlength="3" value="${esc(s.currency)}" /></label>
118
+ </div>
119
+ <label class="check"><input type="checkbox" name="ai" ${s.ai ? 'checked' : ''} /> Estimate each delivered item with AI (one short model call each, at most <input type="number" class="inline" min="0" name="maxPerDay" value="${s.maxPerDay}" /> a day)</label>
120
+ <label>Notes for the estimates <span class="hint">e.g. "B2B SaaS, ~2,000 customers; checkout work affects revenue; support costs $40/ticket"</span><textarea name="notes" rows="2">${esc(s.notes)}</textarea></label>
121
+ <fieldset><legend>Reports</legend>
122
+ <div class="value-report-kinds">
123
+ <label class="check"><input type="checkbox" name="daily" ${r.daily ? 'checked' : ''} /> Daily</label>
124
+ <label class="check"><input type="checkbox" name="weekly" ${r.weekly ? 'checked' : ''} /> Weekly (Mondays)</label>
125
+ <label class="check"><input type="checkbox" name="monthly" ${r.monthly ? 'checked' : ''} /> Monthly (the 1st)</label>
126
+ <label class="check"><input type="checkbox" name="quarterly" ${r.quarterly ? 'checked' : ''} /> Quarterly</label>
127
+ <label>at <input type="time" name="at" value="${esc(r.at)}" /></label>
128
+ </div>
129
+ <label class="check"><input type="checkbox" name="slack" ${r.slack ? 'checked' : ''} /> Send to Slack (Slack alerts must be on, with "value reports")</label>
130
+ <label class="check"><input type="checkbox" name="drive" ${r.drive ? 'checked' : ''} /> Save as a Google Doc in "Value reports (AI Agent Manager)" (uses the Google Drive connector of your Claude account)</label>
131
+ <p class="hint">Each report covers the period just ended and is also saved in ${esc(data.dir)}, with value.csv.</p>
132
+ </fieldset>
133
+ <div class="actions"><span class="spacer"></span><button class="small primary">Save settings</button></div>
134
+ </form></details>`;
135
+ }
136
+
137
+ function render() {
138
+ if (!dialog.open) return;
139
+ if (!data) {
140
+ body.innerHTML = '<p class="hint">Loading…</p>';
141
+ return;
142
+ }
143
+ const ps = data.periods;
144
+ const i = Math.max(0, ps.findIndex((p) => p.key === selected));
145
+ const p = ps[i];
146
+ const prev = ps[i + 1] ?? null;
147
+ const t = p.totals;
148
+ const items = data.items.filter((it) => {
149
+ const at = Date.parse(it.deliveredAt);
150
+ return at >= Date.parse(p.start) && at < Date.parse(p.end);
151
+ });
152
+ const typing = body.contains(document.activeElement) && document.activeElement.matches('input, textarea, select');
153
+ if (typing) return;
154
+ body.innerHTML = `
155
+ <div class="issues-head">
156
+ <h2>Value</h2>
157
+ <div class="chips" role="tablist">${PERIODS.map(([k, label]) => `<button class="chip ${k === period ? 'active' : ''}" role="tab" aria-selected="${k === period}" data-value-period="${k}">${label}</button>`).join('')}</div>
158
+ <span class="spacer"></span>
159
+ <button class="small" data-value="copy" title="Copy this period's report as Markdown, for an email, doc or review">Copy report</button>
160
+ <button class="small" data-value="send" title="Send this period's report now, to Slack and Google Drive as set below">Send</button>
161
+ <button class="small" data-value="csv" title="Every item with its figures, for a spreadsheet">CSV</button>
162
+ <button class="small" data-value="close" title="Close (Esc)">Close</button>
163
+ </div>
164
+ <p class="value-period"><b>${esc(p.label)}</b>${p.current ? ' <span class="hint">so far</span>' : ''} · ${t.items} item${t.items === 1 ? '' : 's'} delivered${data.pending ? ` · <span class="hint">${data.pending} waiting for an estimate</span>` : ''}</p>
165
+ <div class="value-cards">
166
+ ${card('Value delivered', money(t.valueUsd), `${t.humanHours} engineering hours${t.savingsUsd ? ` + ${money(t.savingsUsd)} savings` : ''}`, prev?.totals.valueUsd, t.valueUsd)}
167
+ ${card('Potential revenue', money(t.revenueUsd), 'first year', prev?.totals.revenueUsd, t.revenueUsd)}
168
+ ${card('Strategic', String(t.strategicHigh), 'high-impact items (4–5 of 5)', null, null)}
169
+ ${card('Leverage', t.leverage ? `${t.leverage}×` : '—', `engineering hours per hour of yours (${t.yourHours}h)`, prev?.totals.leverage, t.leverage)}
170
+ ${card('AI cost', money(t.aiCostUsd), t.roi ? `${t.roi}× value per AI dollar` : '', null, null)}
171
+ </div>
172
+ ${bars(ps)}
173
+ <div class="value-legend hint"><span class="sw val"></span> value delivered <span class="sw rev"></span> potential revenue · pick a bar to see that ${esc(period)}</div>
174
+ ${items.length
175
+ ? `<div class="issues-scroll"><table class="issues value-items">
176
+ <thead><tr><th>Delivered</th><th>Work</th><th>Category</th><th>Hours saved</th><th>Value</th><th>Revenue</th><th>Strategic</th><th>You · AI</th><th></th></tr></thead>
177
+ <tbody>${items.map(itemRow).join('')}</tbody></table></div>`
178
+ : `<p class="hint issues-empty">${data.items.length ? `Nothing delivered in ${esc(p.label)}.` : 'Nothing delivered yet. Work counts once an agent\'s pull request merges, or it finishes without one.'}</p>`}
179
+ ${settingsHtml()}`;
180
+ }
181
+
182
+ body.addEventListener('click', async (e) => {
183
+ const per = e.target.closest('[data-value-period]');
184
+ if (per) {
185
+ period = per.dataset.valuePeriod;
186
+ selected = null;
187
+ try {
188
+ localStorage.setItem(SAVED, period);
189
+ } catch {}
190
+ return load();
191
+ }
192
+ const pick = e.target.closest('[data-value-pick]');
193
+ if (pick) {
194
+ selected = pick.dataset.valuePick;
195
+ return render();
196
+ }
197
+ const ed = e.target.closest('[data-value-edit]');
198
+ if (ed) {
199
+ editing = editing === ed.dataset.valueEdit ? null : ed.dataset.valueEdit;
200
+ return render();
201
+ }
202
+ const act = e.target.closest('[data-value-act]')?.dataset.valueAct;
203
+ if (act) {
204
+ const id = e.target.closest('[data-value-form]').dataset.valueForm;
205
+ if (act === 'cancel') {
206
+ editing = null;
207
+ document.activeElement?.blur();
208
+ return render();
209
+ }
210
+ if (act === 'open') {
211
+ dialog.close();
212
+ return openAgent(id);
213
+ }
214
+ try {
215
+ if (act === 'estimate') {
216
+ toast?.('Estimating…');
217
+ await api('POST', `/value/items/${id}/estimate`);
218
+ } else await api('POST', `/value/items/${id}/exclude`, { excluded: act === 'exclude' });
219
+ } catch (err) {
220
+ toast?.(err.message, 6000);
221
+ }
222
+ document.activeElement?.blur();
223
+ return load();
224
+ }
225
+ const b = e.target.closest('[data-value]')?.dataset.value;
226
+ if (b === 'close') return dialog.close();
227
+ if (b === 'csv') {
228
+ const res = await fetch('/api/value/value.csv', { headers: { 'x-agentmgr': '1' } });
229
+ if (!res.ok) return toast?.((await res.json().catch(() => ({}))).error || `HTTP ${res.status}`, 4000);
230
+ const url = URL.createObjectURL(await res.blob());
231
+ Object.assign(document.createElement('a'), { href: url, download: 'value.csv' }).click();
232
+ return setTimeout(() => URL.revokeObjectURL(url), 10_000);
233
+ }
234
+ const p = data?.periods.find((x) => x.key === selected) ?? data?.periods[0];
235
+ const current = Boolean(p?.current);
236
+ if (b === 'copy' || b === 'send') {
237
+ // Reports cover a whole period: the current one so far, or the one just before it.
238
+ if (p && !current && p !== data.periods[1]) return toast?.('Reports are for the current period or the one just ended: pick one of those bars', 5000);
239
+ try {
240
+ if (b === 'copy') {
241
+ const r = await api('GET', `/value/report?kind=${period}${current ? '&current=1' : ''}`);
242
+ await navigator.clipboard.writeText(r.markdown);
243
+ toast?.(`Copied the report for ${r.period.label}`);
244
+ } else {
245
+ const r = await api('POST', '/value/report', { kind: period, current });
246
+ const where = [r.sent.slack && 'Slack', r.sent.drive?.url && 'Google Drive'].filter(Boolean);
247
+ toast?.(`Report for ${r.period.label} saved${where.length ? ` and sent to ${where.join(' and ')}` : ''}${r.sent.drive?.error ? `; Google Drive: ${r.sent.drive.error}` : ''}`, 7000);
248
+ }
249
+ } catch (err) {
250
+ toast?.(err.message, 6000);
251
+ }
252
+ }
253
+ });
254
+
255
+ body.addEventListener('submit', async (e) => {
256
+ e.preventDefault();
257
+ const f = e.target;
258
+ try {
259
+ if (f.dataset.valueSettings !== undefined) {
260
+ await api('PUT', `/value?period=${period}`, {
261
+ hourlyRate: Number(f.hourlyRate.value),
262
+ yourMinutes: Number(f.yourMinutes.value),
263
+ currency: f.currency.value.trim().toUpperCase(),
264
+ ai: f.ai.checked,
265
+ maxPerDay: Number(f.maxPerDay.value),
266
+ notes: f.notes.value,
267
+ report: { daily: f.daily.checked, weekly: f.weekly.checked, monthly: f.monthly.checked, quarterly: f.quarterly.checked, at: f.at.value, slack: f.slack.checked, drive: f.drive.checked },
268
+ });
269
+ toast?.('Saved');
270
+ } else {
271
+ const id = f.dataset.valueForm;
272
+ const patch = {};
273
+ for (const k of ['humanHours', 'savingsUsd', 'revenueUsd', 'strategic', 'yourHours', 'category', 'summary']) patch[k] = f[k].value.trim() === '' ? null : k === 'category' || k === 'summary' ? f[k].value.trim() : Number(f[k].value);
274
+ await api('PATCH', `/value/items/${id}`, patch);
275
+ editing = null;
276
+ }
277
+ } catch (err) {
278
+ return toast?.(err.message, 6000);
279
+ }
280
+ document.activeElement?.blur();
281
+ load();
282
+ });
283
+
284
+ function open() {
285
+ if (dialog.open) return dialog.close();
286
+ dialog.showModal();
287
+ render();
288
+ load();
289
+ }
290
+
291
+ /** The daemon says the figures changed: look again, while open. */
292
+ function changed() {
293
+ if (!dialog.open) return;
294
+ clearTimeout(again);
295
+ again = setTimeout(load, 800);
296
+ }
297
+
298
+ return { open, changed, isOpen: () => dialog.open };
299
+ }
package/src/assistant.js CHANGED
@@ -27,6 +27,8 @@ export const ASSISTANT_DEFAULTS = {
27
27
  permissionMode: 'auto',
28
28
  model: null,
29
29
  notes: '',
30
+ // Propose Jira and Linear issues for the person to pick, instead of starting agents for them.
31
+ pickIssues: false,
30
32
  };
31
33
  const DAY = 86_400_000;
32
34
  const BIN = path.join(path.dirname(fileURLToPath(import.meta.url)), '..', 'bin', 'agentmgr.js');
@@ -48,6 +50,7 @@ export function assistantSettings(config = {}) {
48
50
  permissionMode: typeof c.permissionMode === 'string' && c.permissionMode ? c.permissionMode : null,
49
51
  model: typeof c.model === 'string' && c.model ? c.model : null,
50
52
  notes: typeof c.notes === 'string' ? c.notes.slice(0, 4000) : '',
53
+ pickIssues: c.pickIssues === true,
51
54
  };
52
55
  }
53
56
 
@@ -56,18 +59,27 @@ export function assistantPrompt(s, dir, bin = `node ${BIN}`) {
56
59
  const am = bin;
57
60
  const watch = s.sources.map((k) => `- ${SOURCES[k]}`).join('\n');
58
61
  const how = [];
62
+ // The person picks which issues get agents: propose them instead of starting them.
63
+ const pick =
64
+ `Don't start agents for new issues: the person picks which ones get agents. Propose each one you haven't handled instead: ${am} issues propose @<project> "<the issue link> <a one-line summary of what to do>". ` +
65
+ `It is listed for them under Jira, Not started, and an agent starts only if they tick it. Record it as "proposed". ` +
66
+ `A proposal for an issue they dismissed, or one that already has an agent, is refused: record it as skipped and don't propose it again.`;
59
67
  if (s.sources.includes('jira')) {
60
68
  how.push(
61
69
  `Jira, new assignments: with your Jira / Atlassian tools, find unresolved issues assigned to the person that were created or assigned since your last check (on the first check, the last 2 days). ` +
62
- `For each one you haven't handled, start an agent: ${am} add @<project> "<the issue link> <a one-line summary of what to do>". ` +
63
- `Start the request with the issue link: the agent is then named after the issue key, and the daemon refuses a second agent for the same key.`,
70
+ (s.pickIssues
71
+ ? pick
72
+ : `For each one you haven't handled, start an agent: ${am} add @<project> "<the issue link> <a one-line summary of what to do>". ` +
73
+ `Start the request with the issue link: the agent is then named after the issue key, and the daemon refuses a second agent for the same key.`),
64
74
  );
65
75
  }
66
76
  if (s.sources.includes('linear')) {
67
77
  how.push(
68
78
  `Linear, new assignments: with your Linear tools, find open issues assigned to the person that were created or assigned since your last check (on the first check, the last 2 days). ` +
69
- `For each one you haven't handled, start an agent: ${am} add @<project> "<the issue link> <a one-line summary of what to do>". ` +
70
- `Start the request with the issue link (https://linear.app/<team>/issue/<KEY>/…): the agent is then named after the issue key, and the daemon refuses a second agent for the same key. ` +
79
+ (s.pickIssues
80
+ ? `${pick} The link looks like https://linear.app/<team>/issue/<KEY>/…. `
81
+ : `For each one you haven't handled, start an agent: ${am} add @<project> "<the issue link> <a one-line summary of what to do>". ` +
82
+ `Start the request with the issue link (https://linear.app/<team>/issue/<KEY>/…): the agent is then named after the issue key, and the daemon refuses a second agent for the same key. `) +
71
83
  `New comments on issues that already have an agent: pass them on with ${am} tell, as for Jira.`,
72
84
  );
73
85
  }
@@ -81,7 +93,10 @@ export function assistantPrompt(s, dir, bin = `node ${BIN}`) {
81
93
  if (s.sources.includes('reviews')) {
82
94
  how.push(
83
95
  `GitHub reviews: gh search prs --review-requested=@me --state=open --json url,title,repository,updatedAt. ` +
84
- `For each pull request you haven't handled, start a review agent in its project: ${am} add @<project> "Review <the PR link>: read the change, check out the branch if needed, and write the review as comments for the person to post. Don't approve, request changes or post anything yourself."`,
96
+ (s.pickIssues
97
+ ? `Don't start reviewers: the person picks. These pull requests are listed for them under Reviews, where they start a reviewer with one click. Record them as "listed".`
98
+ : `For each pull request you haven't handled, start a reviewer agent: ${am} review <the PR link>. It reviews the change read-only, writes its blockers and questions for the person, and never posts on GitHub. ` +
99
+ `A second reviewer for the same pull request is refused: record it as skipped.`),
85
100
  );
86
101
  }
87
102
  if (s.sources.includes('ci')) {