@cleocode/adapters 2026.10.5 → 2026.10.6-rc.ci.673

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/index.js CHANGED
@@ -1441,41 +1441,44 @@ var init_db_inventory = __esm({
1441
1441
  {
1442
1442
  role: "tasks",
1443
1443
  tier: "project",
1444
- filePathTemplate: "<projectRoot>/.cleo/tasks.db",
1444
+ filePathTemplate: "<projectRoot>/.cleo/cleo.db",
1445
+ legacyFilePathTemplate: "<projectRoot>/.cleo/tasks.db",
1445
1446
  drizzleSchemaPath: "packages/core/src/store/tasks-schema.ts",
1446
- migrationsDir: "packages/core/migrations/drizzle-tasks/",
1447
+ migrationsDir: "packages/core/migrations/drizzle-cleo-project/",
1447
1448
  ownerPackage: "@cleocode/core",
1448
- openedVia: "openCleoDb('tasks', cwd)",
1449
+ openedVia: "getDb(cwd) \u2014 binds the consolidated project store .cleo/cleo.db (openDualScopeDb('project'); E6). The legacy per-domain file is read only by exodus.",
1449
1450
  concurrency: "single-writer",
1450
1451
  privacy: "local-only",
1451
- backupPath: ".cleo/backups/sqlite/tasks-YYYYMMDD-HHmmss.db",
1452
- documentedIn: "ADR-068 row 1; ADR-013 \xA79"
1452
+ backupPath: ".cleo/backups/sqlite/tasks-YYYYMMDD-HHmmss.db (session-end snapshot of .cleo/cleo.db) or .cleo/backups/sqlite/cleo.db.<backupId> (cleo backup add)",
1453
+ documentedIn: "ADR-068 row 1; ADR-013 \xA79; T13245 (live store is .cleo/cleo.db)"
1453
1454
  },
1454
1455
  {
1455
1456
  role: "brain",
1456
1457
  tier: "project",
1457
- filePathTemplate: "<projectRoot>/.cleo/brain.db",
1458
+ filePathTemplate: "<projectRoot>/.cleo/cleo.db",
1459
+ legacyFilePathTemplate: "<projectRoot>/.cleo/brain.db",
1458
1460
  drizzleSchemaPath: "packages/core/src/store/schema/memory-schema.ts",
1459
- migrationsDir: "packages/core/migrations/drizzle-brain/",
1461
+ migrationsDir: "packages/core/migrations/drizzle-cleo-project/",
1460
1462
  ownerPackage: "@cleocode/brain",
1461
- openedVia: "openCleoDb('brain', cwd)",
1463
+ openedVia: "getBrainDb(cwd) \u2014 binds the consolidated project store .cleo/cleo.db (openDualScopeDb('project'); E6). The legacy per-domain file is read only by exodus.",
1462
1464
  concurrency: "single-writer",
1463
1465
  privacy: "local-only-pii",
1464
- backupPath: ".cleo/backups/sqlite/brain-YYYYMMDD-HHmmss.db",
1465
- documentedIn: "ADR-068 row 2; ADR-013 \xA79; audit \xA72 (P0 malformed 2026-05-23)"
1466
+ backupPath: ".cleo/backups/sqlite/brain-YYYYMMDD-HHmmss.db (session-end snapshot of .cleo/cleo.db) or .cleo/backups/sqlite/cleo.db.<backupId> (cleo backup add)",
1467
+ documentedIn: "ADR-068 row 2; ADR-013 \xA79; audit \xA72 (P0 malformed 2026-05-23); T13245 (live store is .cleo/cleo.db)"
1466
1468
  },
1467
1469
  {
1468
1470
  role: "conduit",
1469
1471
  tier: "project",
1470
- filePathTemplate: "<projectRoot>/.cleo/conduit.db",
1472
+ filePathTemplate: "<projectRoot>/.cleo/cleo.db",
1473
+ legacyFilePathTemplate: "<projectRoot>/.cleo/conduit.db",
1471
1474
  drizzleSchemaPath: "packages/core/src/store/schema/conduit-schema.ts",
1472
- migrationsDir: "packages/core/migrations/drizzle-conduit/",
1475
+ migrationsDir: "packages/core/migrations/drizzle-cleo-project/",
1473
1476
  ownerPackage: "@cleocode/core",
1474
- openedVia: "openCleoDb('conduit', cwd)",
1477
+ openedVia: "ensureConduitDb(cwd) \u2014 binds the consolidated project store .cleo/cleo.db (openDualScopeDb('project'); E6). The legacy per-domain file is read only by exodus.",
1475
1478
  concurrency: "single-writer",
1476
1479
  privacy: "local-only",
1477
- backupPath: ".cleo/backups/sqlite/conduit-YYYYMMDD-HHmmss.db",
1478
- documentedIn: "ADR-068 row 3; ADR-037 (signaldock\u2192conduit split)"
1480
+ backupPath: ".cleo/backups/sqlite/conduit-YYYYMMDD-HHmmss.db (session-end snapshot of .cleo/cleo.db) or .cleo/backups/sqlite/cleo.db.<backupId> (cleo backup add)",
1481
+ documentedIn: "ADR-068 row 3; ADR-037 (signaldock\u2192conduit split); T13245 (live store is .cleo/cleo.db)"
1479
1482
  },
1480
1483
  {
1481
1484
  role: "manifest",
@@ -16059,8 +16062,12 @@ var init_plan = __esm({
16059
16062
  scheme: ReleaseSchemeSchema,
16060
16063
  /** npm dist-tag channel for this release. */
16061
16064
  channel: ReleaseChannelSchema,
16062
- /** Epic ID this release ships. */
16063
- epicId: NonEmptyString,
16065
+ /**
16066
+ * Epic ID this release ships: the `--epic` epic or the `--saga` saga. `null`
16067
+ * for a `--tasks` plan, whose tasks may span several epics; each task's own
16068
+ * epic is on its `epicAncestor` (T13323).
16069
+ */
16070
+ epicId: NonEmptyString.nullable(),
16064
16071
  /** Release-kind classification. */
16065
16072
  releaseKind: ReleaseKindSchema,
16066
16073
  /** ISO-8601 timestamp the plan was written. */
@@ -50048,10 +50055,11 @@ function probeHeavyHookCli(projectDir, options = {}) {
50048
50055
  return { state: "current", path, detail: `${path} answers \`cleo hook heavy-command\`` };
50049
50056
  }
50050
50057
  if (probe.status === 127 && /Unknown command/.test(probe.stderr ?? "")) return older;
50058
+ const outcome = probe.status !== null ? `exit ${probe.status}` : probe.error?.message ?? `signal ${probe.signal ?? "none"}`;
50051
50059
  return {
50052
50060
  state: "unknown",
50053
50061
  path,
50054
- detail: `${path} did not answer \`cleo hook heavy-command\` (${probe.error?.message ?? `exit ${probe.status ?? "none"}`}); the hook fails open, so heavy commands run ungoverned while it does not`,
50062
+ detail: `${path} did not answer \`cleo hook heavy-command\` (${outcome}); the hook fails open, so heavy commands run ungoverned while it does not`,
50055
50063
  remedy: `run \`${path} hook heavy-command < /dev/null\` in ${projectDir} to see why it fails (a broken version-manager shim, say)`
50056
50064
  };
50057
50065
  }