agent-lyceum 0.44.1 → 0.45.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.
package/dist/mailbox.js CHANGED
@@ -320,7 +320,7 @@ export function routeOutboxes(project, routing) {
320
320
  }
321
321
  const over = RECORD_KINDS.map((k) => ({ k, n: activeRecordsBytes(project, k) })).filter((x) => x.n > RECORDS_BUDGET);
322
322
  if (over.length) {
323
- reject(`${over.map((x) => `records/${x.k} hold ${x.n} bytes of active entries`).join(" and ")}; the budget is ${RECORDS_BUDGET} bytes (6 KB) per kind. Merge entries, or mark obsolete ones "status: superseded" (or name them in a newer entry's "supersedes"), then send "done" again.`);
323
+ reject(`${over.map((x) => `records/${x.k} hold ${x.n} bytes of active entries`).join(" and ")}; the budget is ${RECORDS_BUDGET} bytes (${RECORDS_BUDGET / 1024} KB) per kind. Merge entries, or mark obsolete ones "status: superseded" (or name them in a newer entry's "supersedes"), then send "done" again.`);
324
324
  continue;
325
325
  }
326
326
  res.done = { from: sender.name, subject, body: parsed.body, file, meta: d };
package/dist/records.js CHANGED
@@ -5,7 +5,7 @@ import { readRegularFileNoFollow } from "./fs-util.js";
5
5
  import { recordsDir, recordsKindDir } from "./policy.js";
6
6
  export const RECORD_KINDS = ["decisions", "lessons"];
7
7
  /** Cap of one kind's effective-active entries in a prompt (and, for `done`, the most they may add up to). */
8
- export const RECORDS_BUDGET = 6 * 1024;
8
+ export const RECORDS_BUDGET = 12 * 1024;
9
9
  const ID_RE = /^[a-z0-9-]+$/;
10
10
  const DATE_RE = /^\d{4}-\d{2}-\d{2}$/;
11
11
  function parseEntry(kind, file) {
package/dist/scaffold.js CHANGED
@@ -1,6 +1,7 @@
1
1
  import fs from "node:fs";
2
2
  import path from "node:path";
3
3
  import { assertName, homePaths, projectPaths } from "./paths.js";
4
+ import { RECORDS_BUDGET } from "./records.js";
4
5
  /** The lead's guidance on `parallel: true` (spec 23.12 point 5). Only `init` writes it, into a new lead AGENT.md. */
5
6
  export const LEAD_PARALLEL_HINT = "Mark a task `parallel: true` only when it is independent and touches different files from the other open tasks; list each task's files in `## Scope` first; shared components, types, routes and tokens go first, alone.";
6
7
  /** The lead's guidance on the `## Decisions` and `## Not done` sections of `done`. Only `init` writes it, into a new lead AGENT.md. */
@@ -11,7 +12,7 @@ const PERSONAS = {
11
12
  You coordinate the team. You receive the user's task, break it into concrete pieces, and delegate each piece to the right teammate by mail.
12
13
 
13
14
  - Keep \`COMMON.md\` (shared team context: goal, conventions) accurate and short.
14
- - Before you send \`done\`, record what was decided and why as decision entries, and what the project learned as lesson entries, in the records folders named in your rules (one file per entry, with frontmatter); mark outdated entries \`superseded\`. Later runs start from the effective-active ones (about 6 KB per kind).
15
+ - Before you send \`done\`, record what was decided and why as decision entries, and what the project learned as lesson entries, in the records folders named in your rules (one file per entry, with frontmatter); mark outdated entries \`superseded\`. Later runs start from the effective-active ones (about ${RECORDS_BUDGET / 1024} KB per kind).
15
16
  - Write every task with the standard task headings, and cite the mail it derives from under Upstream so teammates can trace it.
16
17
  - When a teammate reports back, decide the next step: assign follow-up work, ask another teammate to verify, or accept the result.
17
18
  - Teammates cannot message each other by default; route everything through yourself.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "agent-lyceum",
3
- "version": "0.44.1",
3
+ "version": "0.45.0",
4
4
  "description": "Config + dispatcher for teams of Claude Code / Codex agents with scoped context and file-based mailboxes",
5
5
  "keywords": [
6
6
  "ai",