@droconnell/agent-inbox-cli 2.6.0 → 2.7.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.
Files changed (2) hide show
  1. package/agent-inbox.mjs +209 -18
  2. package/package.json +1 -1
package/agent-inbox.mjs CHANGED
@@ -16,6 +16,8 @@
16
16
  // agent-inbox check [folder] for a pull request: the plan and a rehearsal of it, as markdown (exit 1 needs a look)
17
17
  // agent-inbox ci init [folder] write the GitHub workflow that checks pull requests, proposes on merge, and
18
18
  // opens a pull request when someone changed the setup in the console
19
+ // agent-inbox ci comment [folder] in that workflow: one pull request comment with what the change does and the
20
+ // answers it changes on recent conversations, before and after (names taken out)
19
21
  // agent-inbox diff <file|folder> what the file would change; changes nothing (exit 0 none, 2 some, 1 problems)
20
22
  // agent-inbox propose <file|folder> send those changes to Approvals, where an admin applies or discards them
21
23
  // (a folder: its Markdown, text and HTML documents, as knowledge articles)
@@ -38,7 +40,7 @@ import { basename, dirname, isAbsolute, join, relative, resolve, sep } from "nod
38
40
  import { spawn, spawnSync } from "node:child_process";
39
41
  import { fileURLToPath } from "node:url";
40
42
 
41
- export const VERSION = "2.6.0";
43
+ export const VERSION = "2.7.0";
42
44
  /** The npm package; its command is agent-inbox. (The name agent-inbox itself belongs to someone else on npm.) */
43
45
  export const PACKAGE = "@droconnell/agent-inbox-cli";
44
46
  const DIR = join(process.env.XDG_CONFIG_HOME || join(homedir(), ".config"), "agent-inbox");
@@ -220,7 +222,7 @@ export function splitNext(text) {
220
222
 
221
223
  /** Wait for test or rehearsal jobs, asking how each stands every few seconds (asking also moves it along). */
222
224
  async function waitJobs(jobs) {
223
- const lines = [];
225
+ const lines = [], data = [];
224
226
  let ok = true;
225
227
  for (const { job, agent } of jobs) {
226
228
  // A whole day's replay can take a while (a few hundred conversations, twice each); the rest within minutes.
@@ -236,8 +238,9 @@ async function waitJobs(jobs) {
236
238
  if (!markdown && process.stderr.isTTY) process.stderr.write("\r".padEnd(81) + "\r");
237
239
  if (s.data?.passed === false) ok = false;
238
240
  lines.push(`${agent}: ${s.text}`);
241
+ data.push(s.data ?? {});
239
242
  }
240
- return { ok, lines };
243
+ return { ok, lines, data };
241
244
  }
242
245
 
243
246
  // ---- CI for a repository of support files --------------------------------------------------------------------------
@@ -273,7 +276,8 @@ export function ciWorkflow(url, folder) {
273
276
  - run: ${cli}`;
274
277
  const pr = "${{ github.event.pull_request.number }}";
275
278
  return `# Next support, written by agent-inbox ci init. The support setup lives in ${dir === "." ? "this repository" : `${dir}/`} (agent-inbox pull).
276
- # Pull requests: what the change would do, and a rehearsal on past conversations and the saved tests, as one comment.
279
+ # Pull requests: what the change does, and the answers it changes on 10 recent conversations (each answered as things
280
+ # are and with the change), the saved tests and the cost, as one comment, edited on each push. Names are taken out.
277
281
  # Merges to main: the changes are proposed in Next's Approvals, for an admin to apply.
278
282
  # Nightly: changes someone made in Next's console come back as a pull request, so the two never drift apart. That
279
283
  # includes policy.yaml, what every agent may do: a change to it (an agent now allowed to act alone) is a reviewed line.
@@ -300,18 +304,9 @@ jobs:
300
304
  runs-on: ubuntu-latest
301
305
  steps:
302
306
  ${setup}
303
- - name: Check the change
304
- id: check
305
- run: |
306
- set +e
307
- node agent-inbox.mjs check ${dir} > report.md
308
- echo "code=$?" >> "$GITHUB_OUTPUT"
309
- cat report.md >> "$GITHUB_STEP_SUMMARY"
310
- - name: Comment on the pull request
311
- env: { GH_TOKEN: "\${{ github.token }}" }
312
- run: gh pr comment ${pr} --body-file report.md --edit-last || gh pr comment ${pr} --body-file report.md
313
- - name: Pass or fail
314
- run: exit \${{ steps.check.outputs.code }}
307
+ - name: How this changes answers
308
+ env: { GITHUB_TOKEN: "\${{ github.token }}" }
309
+ run: node agent-inbox.mjs ci comment ${dir} --on 10 --pr ${pr}
315
310
  propose:
316
311
  if: github.event_name == 'push'
317
312
  runs-on: ubuntu-latest
@@ -340,6 +335,199 @@ ${setup}
340
335
  `;
341
336
  }
342
337
 
338
+ // ---- Answer changes on a pull request: agent-inbox ci comment ------------------------------------------------------
339
+ /** The marker the answer-changes comment starts with, so later pushes edit the same comment (found through the API). */
340
+ export const ANSWERS_MARK = "<!-- next-answer-changes -->";
341
+ /** GitHub refuses a comment over 65,536 characters; ours stays well under. */
342
+ const COMMENT_MAX = 60_000;
343
+
344
+ /** Words after "hi" or "I'm" that are not a name. */
345
+ const NOT_A_NAME = /^(there|team|all|everyone|again|so|for|you|both|folks|support|the|next|i|i'm|i’m|a|an|not|very|just|here|sorry|glad|happy|looking|trying|writing|wondering)$/i;
346
+ /**
347
+ * Text fit for a pull request, which more people may read than the console: emails, phone, card and order numbers,
348
+ * long tokens and names in greetings are taken out. Next has already taken out the customer's own name; this is the
349
+ * second look, on this computer, before anything is posted. Pure, so it can be tested.
350
+ */
351
+ export function redact(text) {
352
+ return String(text ?? "")
353
+ .replace(/\b(bearer|basic)\s+\S+/gi, "$1 [hidden]")
354
+ .replace(/\b(password|passwd|passcode|pin|secret|token|api[_ -]?key|key|code)\b(\s*(?:is|:|=)\s*)\S+/gi, "$1$2[hidden]")
355
+ .replace(/[\w.+-]+@[\w-]+(\.[\w-]+)+/g, "[email]")
356
+ .replace(/\b(?:\d[ -]?){13,19}\b/g, "[card number]")
357
+ .replace(/(?:\+\d{1,3}[ .-]?)?(?:\(\d{2,4}\)[ .-]?)?\d{3,4}[ .-]\d{3,4}(?:[ .-]\d{2,4})?\b/g, "[phone]")
358
+ .replace(/\b(order|invoice|booking|reservation|reference|ref|tracking|shipment|parcel|account|acct|customer)(\s*(?:no\.?|number|num|id|#)?\s*[:#]?\s*)(?=[A-Z0-9-]*\d)[A-Z0-9][A-Z0-9-]{2,}\b/gi, "$1$2[number]")
359
+ .replace(/#\s?[A-Z]{0,3}-?\d{3,}\b/gi, "#[number]")
360
+ .replace(/\b\d{5,}\b/g, "[number]")
361
+ .replace(/\b(?=[A-Za-z0-9_\-]*\d)(?=[A-Za-z0-9_\-]*[A-Za-z])[A-Za-z0-9_\-]{24,}\b/g, "[hidden]")
362
+ // "my name is Ines Duarte", "I'm Sam", then greetings and sign-offs: "Hi Maya,", "Thanks, Leo Park".
363
+ .replace(/\b(my name is|my name's|i am|i'm|i’m|this is)(\s+)(\p{Lu}[\p{L}'-]+)(\s+\p{Lu}[\p{L}'-]+)?/giu, (m, w, gap, first) => (NOT_A_NAME.test(first) ? m : `${w}${gap}[name]`))
364
+ .replace(/\b(hi|hello|hey|dear|thanks|thank you|cheers|regards|best)(,?\s+)(\p{Lu}[\p{L}'-]+)(\s+\p{Lu}[\p{L}'-]+)?/giu, (m, w, gap, first) => (NOT_A_NAME.test(first) ? m : `${w}${gap}[name]`));
365
+ }
366
+
367
+ /**
368
+ * Text that can sit in a comment without becoming markup: no HTML (a </details> or the marker), no @mentions (GitHub
369
+ * would notify someone), no links or images, on one line. Applied after redact().
370
+ */
371
+ export function mdSafe(text, max = 600) {
372
+ let s = String(text ?? "").replace(/\s+/g, " ").trim();
373
+ if (s.length > max) s = `${s.slice(0, max).replace(/\s+\S*$/, "")}…`;
374
+ return s.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;").replace(/@/g, "&#64;")
375
+ .replace(/\[/g, "&#91;").replace(/\]/g, "&#93;").replace(/!/g, "&#33;").replace(/`/g, "&#96;").replace(/\*/g, "&#42;").replace(/_/g, "&#95;").replace(/\|/g, "&#124;");
376
+ }
377
+
378
+ /** A plan's text as plain lines for people: the table's rows as "section name: change", the notes kept, the hints dropped. */
379
+ export function planLines(plan) {
380
+ const out = [];
381
+ for (const raw of String(plan ?? "").split("\n")) {
382
+ const l = raw.replace(/^Plan [0-9a-f]{4,}: /, "").trim();
383
+ if (!l || /^name\s+change$/.test(l) || /rehearse|submit_plan|Approvals|apply /i.test(l)) continue;
384
+ const cells = l.split(/\s{2,}/);
385
+ out.push(cells.length >= 3 ? `${cells[0]} ${cells[1]}: ${cells.slice(2).join(", ")}` : cells.length === 2 ? `${cells[0]}: ${cells[1]}` : l);
386
+ }
387
+ return out;
388
+ }
389
+
390
+ const KIND_SAID = { handed: "Now handed to a person", answered: "Now answered", acts: "Uses the apps differently", sources: "Answers from other articles" };
391
+
392
+ /**
393
+ * The one pull request comment: what the change does, how many answers change, each changed answer before and after
394
+ * (collapsed), the tests, the cost, and the link to the rehearsal in Next. Pure, so it can be tested; every text that
395
+ * came from a conversation goes through redact() and mdSafe(). `failed` is true when something needs a look.
396
+ */
397
+ export function answerComment({ plan = "", changes = 0, policy = null, problems = null, rehearsal = null, passed = null, link = null, skipped = null, blocked = null, on = 10 }) {
398
+ const parts = [ANSWERS_MARK, "## Next: how this pull request changes answers"];
399
+ if (problems) {
400
+ parts.push("### The folder has problems", planLines(problems).map((l) => `- ${mdSafe(l, 400)}`).join("\n"), "**Needs a look before merging.**");
401
+ return { text: parts.join("\n\n") + "\n", failed: true };
402
+ }
403
+ const what = [...planLines(changes ? plan : ""), ...(policy?.changes ? planLines(policy.plan).map((l) => `What the agents may do: ${l}`) : [])];
404
+ parts.push("### What the change does", what.length ? what.slice(0, 40).map((l) => `- ${mdSafe(l, 300)}`).join("\n") + (what.length > 40 ? `\n- …and ${what.length - 40} more` : "") : "Nothing in Next would change: the workspace already matches the folder.");
405
+ if (skipped) parts.push(`> ${mdSafe(skipped, 500)}`);
406
+ if (blocked) parts.push("### Could not rehearse", mdSafe(blocked, 500));
407
+ const a = rehearsal?.answers;
408
+ if (rehearsal && a) {
409
+ parts.push(`### Answers that change: ${a.changed} of ${a.total}`,
410
+ `Each of ${a.total} recent conversations was answered twice in test copies, as things are now and with this change, so what differs is the change's doing. Wording differs every time, so only these count: now handed to a person, now answered, apps used differently, or answered from other articles.`);
411
+ for (const it of a.items) {
412
+ const ref = it.ref && /^#\d+$/.test(it.ref) ? `<b>${it.ref}</b> · ` : "";
413
+ parts.push(`<details><summary>${ref}${KIND_SAID[it.kind] ?? "Changed"} · “${mdSafe(redact(it.question), 120)}”</summary>\n\n**As things are:** ${mdSafe(redact(it.before))}\n\n**With the change:** ${mdSafe(redact(it.after))}\n\n</details>`);
414
+ }
415
+ if (a.changed > a.items.length) parts.push(`…and ${a.changed - a.items.length} more, in Next.`);
416
+ } else if (rehearsal) {
417
+ parts.push(`### Answers: ${rehearsal.replay.answered} of ${rehearsal.replay.total} answered with the change (${rehearsal.replay.before} were answered at the time)`);
418
+ }
419
+ if (rehearsal?.tests) {
420
+ const tt = rehearsal.tests;
421
+ parts.push(`### Tests\n\n${tt.after} of ${tt.total} pass with the change (${tt.before} as things are now)${tt.worse ? `; ${tt.worse} now ${tt.worse === 1 ? "fails" : "fail"}` : ""}.`);
422
+ }
423
+ if (rehearsal) {
424
+ const where = link && /^https:\/\/[^\s<>()]+$/.test(link) ? ` [Open the rehearsal in Next](${link}) (for people in the workspace).` : "";
425
+ parts.push(`Cost: $${Number(rehearsal.usd ?? 0).toFixed(2)}, charged as tests.${where}`);
426
+ }
427
+ const failed = Boolean(blocked || (rehearsal && passed === false));
428
+ if (failed) parts.push("**Needs a look before merging.**");
429
+ else if (changes || policy?.changes) parts.push("Merging proposes these changes in Next's **Approvals**, where an admin applies them.");
430
+ parts.push(`<sub>Customer names, emails, phone and order numbers are taken out. This comment is updated on each push.${rehearsal ? "" : ` Rehearsed on ${on} conversations when there is something to rehearse.`}</sub>`);
431
+ let text = parts.join("\n\n") + "\n";
432
+ if (text.length > COMMENT_MAX) text = `${text.slice(0, COMMENT_MAX - 200)}\n\n…cut short: the rest is in Next.\n`;
433
+ return { text, failed };
434
+ }
435
+
436
+ /** The pull request's number in a GitHub Actions run: --pr, or the event that started it. */
437
+ export function prNumber(given, eventPath = process.env.GITHUB_EVENT_PATH, read = (p) => readFileSync(p, "utf8")) {
438
+ if (given && /^\d+$/.test(String(given))) return Number(given);
439
+ try { const n = JSON.parse(read(eventPath))?.pull_request?.number; return Number.isInteger(n) ? n : null; } catch { return null; }
440
+ }
441
+
442
+ /**
443
+ * Post the comment, or edit the one already there: the pull request's comments are read a page at a time until one
444
+ * starts with the marker (this one, or check's older one), and that one is edited, so a pull request has one comment.
445
+ * `fetcher` is fetch, passed in so a test can stand in for GitHub.
446
+ */
447
+ export async function postComment({ fetcher = fetch, token, repo, pr, body, api = "https://api.github.com", marks = [ANSWERS_MARK, CHECK_MARK] }) {
448
+ const headers = { authorization: `Bearer ${token}`, accept: "application/vnd.github+json", "x-github-api-version": "2022-11-28", "user-agent": UA, "content-type": "application/json" };
449
+ const base = `${api.replace(/\/+$/, "")}/repos/${repo}`;
450
+ let found = null;
451
+ for (let page = 1; page <= 30 && !found; page++) {
452
+ const r = await fetcher(`${base}/issues/${pr}/comments?per_page=100&page=${page}`, { headers });
453
+ if (!r.ok) return { ok: false, status: r.status };
454
+ const list = await r.json();
455
+ found = list.find((c) => marks.some((m) => String(c.body ?? "").startsWith(m))) ?? null;
456
+ if (list.length < 100) break;
457
+ }
458
+ const r = found
459
+ ? await fetcher(`${base}/issues/comments/${found.id}`, { method: "PATCH", headers, body: JSON.stringify({ body }) })
460
+ : await fetcher(`${base}/issues/${pr}/comments`, { method: "POST", headers, body: JSON.stringify({ body }) });
461
+ if (!r.ok) return { ok: false, status: r.status };
462
+ const made = await r.json().catch(() => ({}));
463
+ return { ok: true, action: found ? "updated" : "created", url: made.html_url ?? null };
464
+ }
465
+
466
+ /**
467
+ * agent-inbox ci comment [folder] [--on 10] [--pr n] [--print]: in a pull request's workflow, plan the folder (and
468
+ * policy.yaml), rehearse the change on recent conversations with each answered as things are and with it, and post one
469
+ * comment on the pull request, edited on later pushes. Exit 1 when something needs a look; 0 otherwise, including when
470
+ * rehearsals are switched off (the comment says so).
471
+ */
472
+ async function ciComment(words) {
473
+ const opt = (name) => { const i = words.indexOf(`--${name}`); return i >= 0 && words[i + 1] && !words[i + 1].startsWith("--") ? words[i + 1] : undefined; };
474
+ const dir = words.find((a, i) => !a.startsWith("--") && !(i > 0 && words[i - 1].startsWith("--") && words[i - 1] !== "--print")) || ".";
475
+ if (!existsSync(dir) || !statSync(dir).isDirectory() || !isPulled(dir)) stop(`${dir} is not a folder from ${ME} pull (it has no workspace.yaml).`);
476
+ const asked = Number(opt("on") ?? 10);
477
+ const on = Number.isInteger(asked) && asked > 0 ? Math.min(asked, 30) : 10;
478
+ const progress = (s) => { if (process.stderr.isTTY || process.env.CI) process.stderr.write(`${s}\n`); };
479
+
480
+ progress("Planning the folder");
481
+ const { text, data } = await planFolder(dir);
482
+ const plan = text.replace(/\n*(Nothing has changed|This token can only look)[\s\S]*$/, "").replace(/\n+Before +rehearse [^\n]*/g, "").trim();
483
+ let comment;
484
+ let target = null, policy = null;
485
+ if (!data?.ok) comment = answerComment({ problems: plan });
486
+ else {
487
+ // policy.yaml, when the folder keeps one: a change to what the agents may do is part of the change too.
488
+ const policyFile = join(dir, POLICY_FILE);
489
+ if (existsSync(policyFile)) {
490
+ const got = await tool("plan_policy", { file: readFileSync(policyFile, "utf8") });
491
+ if (got.data?.ok && got.data.changes) policy = { changes: got.data.changes, plan: got.text.replace(/\n*(Nothing has changed|This token can only look)[\s\S]*?(?=\n\nNot changed by the file|$)/, "").trim(), ref: got.data.plan };
492
+ }
493
+ target = data.changes ? data.plan : policy?.ref ?? null;
494
+ let rehearsal = null, passed = null, link = null, skipped = null, blocked = null;
495
+ if (target) {
496
+ progress(`Rehearsing the change on ${on} recent conversations, each answered as things are and with it`);
497
+ const r = await tool("rehearse", { plan: target, conversations: on, compare: true });
498
+ if (r.isError && /are off|look-only|can only look/i.test(r.text)) skipped = `Answers were not rehearsed: ${r.text.replace(/\.?$/, ".")} The setting is Tests and rehearsals from CI and AI tools, on Settings, AI features in Next.`;
499
+ else if (r.isError && /nothing to rehearse|does not change what/i.test(r.text)) skipped = `Not rehearsed: ${r.text}`;
500
+ else if (r.isError) blocked = r.text;
501
+ else if (r.data?.job) {
502
+ const done = await waitJobs([{ job: r.data.job, agent: "This change" }]);
503
+ const last = done.data[0] ?? {};
504
+ rehearsal = last.rehearsal ?? null; passed = done.ok; link = last.link ?? r.data.link ?? null;
505
+ if (!rehearsal) blocked = done.lines.join("\n");
506
+ }
507
+ if (data.changes && policy?.changes && !skipped && !blocked) skipped = "The change to policy.yaml is shown above but not rehearsed: one plan is rehearsed at a time, and this one is the folder's.";
508
+ }
509
+ comment = answerComment({ plan, changes: data.changes, policy, rehearsal, passed, link, skipped, blocked, on });
510
+ }
511
+
512
+ // Where it goes: the pull request (in GitHub Actions, with the workflow's token), the run's summary, or the screen.
513
+ if (process.env.GITHUB_STEP_SUMMARY) { try { writeFileSync(process.env.GITHUB_STEP_SUMMARY, comment.text, { flag: "a" }); } catch {} }
514
+ const pr = prNumber(opt("pr"));
515
+ const token = process.env.GITHUB_TOKEN || process.env.GH_TOKEN;
516
+ const repo = process.env.GITHUB_REPOSITORY;
517
+ if (words.includes("--print") || !token || !repo || !pr) {
518
+ say(comment.text);
519
+ if (!words.includes("--print")) process.stderr.write(`agent-inbox: printed the comment instead of posting it: ${!pr ? "no pull request number (run it on a pull_request event, or give --pr)" : "no GITHUB_TOKEN and GITHUB_REPOSITORY (the workflow gives both)"}.\n`);
520
+ } else {
521
+ const posted = await postComment({ token, repo, pr, body: comment.text, api: process.env.GITHUB_API_URL || "https://api.github.com" }).catch(() => ({ ok: false, status: 0 }));
522
+ if (posted.ok) say(`${posted.action === "updated" ? "Updated" : "Posted"} the comment on pull request #${pr}${posted.url ? `: ${posted.url}` : ""}.`);
523
+ else {
524
+ say(comment.text);
525
+ process.stderr.write(`agent-inbox: GitHub did not take the comment (${posted.status === 403 ? "the workflow needs pull-requests: write, and pull requests from forks get a read-only token" : posted.status ? `it answered ${posted.status}` : "no answer"}). It is in the run's summary instead.\n`);
526
+ }
527
+ }
528
+ process.exit(comment.failed ? 1 : 0);
529
+ }
530
+
343
531
  // ---- Knowledge from this computer ----------------------------------------------------------------------------------
344
532
  const DOCS = [".md", ".markdown", ".txt", ".html", ".htm"];
345
533
  const posix = (p) => p.split(sep).join("/");
@@ -570,6 +758,7 @@ const USAGE = [
570
758
  ['run "<command>"', 'the same, in quotes, such as "ls unassigned --inbox Billing"'],
571
759
  ["check [folder] [--on 20]", "for a pull request: what the folder would change and a rehearsal of it, as markdown (exit 1 when something needs a look)"],
572
760
  ["ci init [folder] [--force]", "write a GitHub workflow: check pull requests, propose on merge, and open a pull request when the console changed"],
761
+ ["ci comment [folder] [--on 10] [--pr n] [--print]", "in a pull request's workflow: one comment with what the change does and the answers it changes, before and after (costs money)"],
573
762
  ["tail [--inbox name] [--tag name] [--since 15m]", "what is happening now, then keeps following until Ctrl+C (in CI: one page, then the line to continue)"],
574
763
  ["script <file> [--propose]", "commands, one per line, as one plan; --propose sends it to Approvals"],
575
764
  ["submit <plan>", "send a plan a change printed to Approvals, for an admin to apply (the CLI never applies)"],
@@ -1519,8 +1708,10 @@ switch (cmd) {
1519
1708
  process.exit(report.failed ? 1 : 0);
1520
1709
  }
1521
1710
  case "ci": {
1711
+ // ci comment [folder]: the pull request's comment on how the change moves answers (prd/answer-diffs.md).
1712
+ if (rest[0] === "comment") { await ciComment(rest.slice(1)); break; }
1522
1713
  // ci init [folder]: write the GitHub workflow for a repository of support files.
1523
- if (rest[0] !== "init") stop(`Use ${ME} ci init [folder], in the repository that holds the folder from ${ME} pull.`);
1714
+ if (rest[0] !== "init") stop(`Use ${ME} ci init [folder], in the repository that holds the folder from ${ME} pull, or ${ME} ci comment [folder] in its pull request workflow.`);
1524
1715
  const dir = rest[1] || ".";
1525
1716
  if (!existsSync(dir) || !statSync(dir).isDirectory() || !isPulled(dir)) stop(`${dir} is not a folder from ${ME} pull (it has no workspace.yaml). Run ${ME} pull ${dir} first.`);
1526
1717
  const { url } = await access();
@@ -1533,7 +1724,7 @@ switch (cmd) {
1533
1724
  Then:
1534
1725
  1. In Next, an admin makes a personal access token set to Look and propose changes (Settings, Terminal, Plain English and AI tools).
1535
1726
  2. In GitHub, add it as the repository secret AGENT_INBOX_TOKEN.
1536
- 3. Commit and push the workflow. Each pull request that changes ${dir === "." ? "the folder" : dir} gets a comment with what it would do.
1727
+ 3. Commit and push the workflow. Each pull request that changes ${dir === "." ? "the folder" : dir} gets one comment: what it does and the answers it changes.
1537
1728
  4. For rehearsals on pull requests, an admin turns on Tests and rehearsals from CI and AI tools (Settings, AI features). They are charged as tests.`);
1538
1729
  break;
1539
1730
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@droconnell/agent-inbox-cli",
3
- "version": "2.6.0",
3
+ "version": "2.7.0",
4
4
  "description": "The Next CLI, built for agents: JSON on every command, an MCP server for any AI tool, live events, apps and webhooks from the terminal, and a support workspace's setup as files in git.",
5
5
  "type": "module",
6
6
  "bin": {