diff --git a/codev/projects/bugfix-1077-consult-pre-flight-auth-state-/status.yaml b/codev/projects/bugfix-1077-consult-pre-flight-auth-state-/status.yaml new file mode 100644 index 000000000..182e54a3e --- /dev/null +++ b/codev/projects/bugfix-1077-consult-pre-flight-auth-state-/status.yaml @@ -0,0 +1,14 @@ +id: bugfix-1077 +title: consult-pre-flight-auth-state- +protocol: bugfix +phase: fix +plan_phases: [] +current_plan_phase: null +gates: + pr: + status: pending +iteration: 1 +build_complete: false +history: [] +started_at: '2026-07-25T12:49:13.351Z' +updated_at: '2026-07-25T12:54:44.131Z' diff --git a/codev/state/task-08Gm_thread.md b/codev/state/task-08Gm_thread.md new file mode 100644 index 000000000..834c357f6 --- /dev/null +++ b/codev/state/task-08Gm_thread.md @@ -0,0 +1,13 @@ +# Builder task-08Gm — thread + +## Task +Fix broken build on main: `packages/codev/src/commands/doctor.ts` imported `formatBytes` twice (from `../lib/migration-backup-audit.js` and `../agent-farm/servers/session-log-sweep.js`), causing TS2300 duplicate identifier. Landed via PR #1243. + +## Work log +- Confirmed both imports and both call sites: line 111 (session-log summary, uses `measureSessionLogs` data) and line 847 (migration-backup reclaimable bytes). +- Aliased the session-log-sweep import as `formatBytes as formatLogBytes` and updated line 111 to `formatLogBytes(bytes)`. The migration-backup import and its call site (line 847) are unchanged. +- Verifying with `npx tsc --noEmit` in `packages/codev` before creating the PR. + +## PR +- PR #1249 created: https://github.com/cluesmith/codev/pull/1249 — verified with `pnpm exec tsc --noEmit` (clean after building codev-core). +- `afx send architect` failed with NOT_FOUND (workspace not active in Tower from this nested worktree); architect notification could not be delivered via afx. diff --git a/packages/codev/src/commands/doctor.ts b/packages/codev/src/commands/doctor.ts index 1bab37d30..c7c961153 100644 --- a/packages/codev/src/commands/doctor.ts +++ b/packages/codev/src/commands/doctor.ts @@ -33,7 +33,7 @@ import { AGENT_FARM_DIR } from '@cluesmith/codev-core/constants'; import { measureSessionLogs, resolveLogRetentionDays, - formatBytes, + formatBytes as formatLogBytes, } from '../agent-farm/servers/session-log-sweep.js'; const __filename = fileURLToPath(import.meta.url); @@ -108,7 +108,7 @@ export function checkSessionLogs( }; } - const summary = `${files} file(s), ${formatBytes(bytes)}`; + const summary = `${files} file(s), ${formatLogBytes(bytes)}`; if (bytes < SESSION_LOG_WARN_BYTES) { return { status: 'ok', files, bytes, retentionDays, summary, retentionNote }; }