@koalaauto/agentchannel 3.26.0 → 3.26.2
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/dist/src/import.js +12 -13
- package/dist/src/version.d.ts +1 -1
- package/dist/src/version.js +1 -1
- package/package.json +1 -1
package/dist/src/import.js
CHANGED
|
@@ -326,6 +326,14 @@ function chanOut(name, rs, desc) {
|
|
|
326
326
|
},
|
|
327
327
|
};
|
|
328
328
|
}
|
|
329
|
+
/** "(12 commits, 3 issues, 2 PRs, 5 assigned)" for the plan printout: what the role was inferred from. */
|
|
330
|
+
const personActivity = (p) => {
|
|
331
|
+
const s = p.stats;
|
|
332
|
+
if (!s)
|
|
333
|
+
return '';
|
|
334
|
+
const parts = [[s.commits, 'commits'], [s.issues_opened, 'issues'], [s.prs_opened, 'PRs'], [s.assigned, 'assigned']].filter(([n]) => Number(n) > 0).map(([n, w]) => `${n} ${w}`);
|
|
335
|
+
return parts.length ? ` (${parts.join(', ')})` : '';
|
|
336
|
+
};
|
|
329
337
|
/** People from commits, issues and PRs; roles inferred; bots excluded. */
|
|
330
338
|
export function inferPeople(c, channels) {
|
|
331
339
|
const chanOf = new Map();
|
|
@@ -393,17 +401,8 @@ export function inferPeople(c, channels) {
|
|
|
393
401
|
for (const a of acc.values()) {
|
|
394
402
|
const total = a.commits + a.opened + a.prs + a.assigned;
|
|
395
403
|
const self = !!c.self && a.login.toLowerCase() === c.self.toLowerCase();
|
|
396
|
-
|
|
397
|
-
const
|
|
398
|
-
if (top.length)
|
|
399
|
-
parts.push(`commits: ${top.map(([n, k]) => `${n} ${k}`).join(', ')}`);
|
|
400
|
-
if (a.opened)
|
|
401
|
-
parts.push(`opened ${a.opened} issue(s)`);
|
|
402
|
-
if (a.prs)
|
|
403
|
-
parts.push(`opened ${a.prs} PR(s)`);
|
|
404
|
-
if (a.assigned)
|
|
405
|
-
parts.push(`assigned ${a.assigned}`);
|
|
406
|
-
const label = self ? 'admin' : a.commits >= 10 ? 'maintainer' : a.opened >= 5 && a.commits < 3 ? 'reporter / tester' : 'contributor';
|
|
404
|
+
// a short label a person can read on their page; the counts stay in `stats` (admin is a permission, shown apart)
|
|
405
|
+
const label = a.commits >= 10 ? 'maintainer' : a.opened >= 5 && a.commits < 3 ? 'reporter / tester' : 'contributor';
|
|
407
406
|
const invite = self || total >= 3 || a.assigned > 0;
|
|
408
407
|
const u = c.users[a.login];
|
|
409
408
|
people.push({
|
|
@@ -413,7 +412,7 @@ export function inferPeople(c, channels) {
|
|
|
413
412
|
is_admin: self,
|
|
414
413
|
...(self ? { self: true } : {}),
|
|
415
414
|
invite,
|
|
416
|
-
role:
|
|
415
|
+
role: label,
|
|
417
416
|
...(invite ? {} : { note: 'occasional contributor: confirm who this is before inviting' }),
|
|
418
417
|
channels: [...a.chans.entries()].sort((x, y) => y[1] - x[1]).map(([n]) => n),
|
|
419
418
|
stats: { commits: a.commits, issues_opened: a.opened, prs_opened: a.prs, assigned: a.assigned, commits_by_repo: a.byRepo },
|
|
@@ -596,7 +595,7 @@ export function planSummary(plan, file, sel) {
|
|
|
596
595
|
L.push('');
|
|
597
596
|
L.push('People:');
|
|
598
597
|
for (const p of plan.people.filter((x) => x.invite !== false)) {
|
|
599
|
-
L.push(` ${pad(p.github_login, 18)}${pad(p.name, 18)}${p.is_admin ? '[admin] ' : ''}${p.role ?? ''}${p.channels?.length ? ` -> ${p.channels.map((c) => '#' + c).join(' ')}` : ''}`);
|
|
598
|
+
L.push(` ${pad(p.github_login, 18)}${pad(p.name, 18)}${p.is_admin ? '[admin] ' : ''}${p.role ?? ''}${personActivity(p)}${p.channels?.length ? ` -> ${p.channels.map((c) => '#' + c).join(' ')}` : ''}`);
|
|
600
599
|
}
|
|
601
600
|
const later = plan.people.filter((x) => x.invite === false);
|
|
602
601
|
if (later.length)
|
package/dist/src/version.d.ts
CHANGED
package/dist/src/version.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@koalaauto/agentchannel",
|
|
3
|
-
"version": "3.26.
|
|
3
|
+
"version": "3.26.2",
|
|
4
4
|
"description": "Hand work between your team's agents (Claude Code, Codex) and follow it in one panel: the ach CLI, MCP server and runner for AgentChannel v2",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"agentchannel",
|