delete Task Logs
A complete read path over a table nothing could write to. task-logger.ts exported createTaskLog, appendToLog and finalizeLog, and none of the three was called anywhere in the tree — so `task_logs` could never gain a row, and the screen was permanently empty for everyone. The read half was fully wired: mounted router, capability claim, dock icon, two routes and a page-title rule. That is why it looked alive. Gone, in the order it was reached: Screens/Dashboard/TaskLogs/ the screen App.tsx /task-logs and /task-logs/:id Dashboard/index.tsx the export Layout/Dock.tsx the 'Logs' icon, and ScrollText with it state/usePageTitle.ts the title rule api/task-logs/task-logs.ts the router, and its mount in hono.ts api/task-logger.ts 101 lines of orphaned writer officer_db/src/operations/ the directory officer_db/src/schema.ts the export line officer_db/src/types.ts TaskLogSelect / TaskLogInsert capabilities/registry.ts loses '/task-logs' from the `tasks` capability's `api` AND `routes`. The api half is not optional: assertCapabilityTotality check 2 refuses to boot on a capability claiming a prefix nothing mounts, so unmounting the router while leaving the claim would have stopped the server starting. db:push now creates 21 tables, down from 43 at the start of the evening. officer_db/src/operations was one of the two lopsided directories the schema/queries merge exposed. integrations/ is the remaining one, and it is legitimate — it spans server and user-data. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -307,9 +307,9 @@ export const CAPABILITIES: Capability[] = [
|
||||
label: 'Tasks and jobs',
|
||||
description: 'Running capabilities, pipelines and background jobs',
|
||||
kind: 'execution',
|
||||
api: ['/tasks', '/jobs', '/pipeline-jobs', '/task-logs', '/queue'],
|
||||
api: ['/tasks', '/jobs', '/pipeline-jobs', '/queue'],
|
||||
ws: ['task-runner', 'pipeline'],
|
||||
routes: ['/jobs', '/task-logs'],
|
||||
routes: ['/jobs'],
|
||||
},
|
||||
{
|
||||
key: 'items',
|
||||
|
||||
Reference in New Issue
Block a user