Files
SubMiner/backlog/tasks/task-2.1 - Remove-unused-scaffolding-and-clean-exports.md

1.9 KiB

id, title, status, assignee, created_date, updated_date, labels, dependencies, references, parent_task_id, ordinal
id title status assignee created_date updated_date labels dependencies references parent_task_id ordinal
TASK-2.1 Remove unused scaffolding and clean exports Done
codex
2026-02-10 18:56 2026-02-11 03:35
TASK-1
investigation.md
src/core/action-bus.ts
src/core/actions.ts
src/core/app-context.ts
src/core/module-registry.ts
src/core/module.ts
src/modules/
src/ipc/
src/core/services/index.ts
TASK-2 10000

Description

Remove unused module-architecture scaffolding and IPC abstraction files identified as dead code, and clean service barrel exports that are not needed outside service internals.

Acceptance Criteria

  • #1 Files under src/core/{action-bus.ts,actions.ts,app-context.ts,module-registry.ts,module.ts} are removed if unreferenced.
  • #2 Unused src/modules/ and src/ipc/ scaffolding files are removed if unreferenced.
  • #3 src/core/services/index.ts no longer exports symbols that are only consumed internally (isGlobalShortcutRegisteredSafe).
  • #4 Build and core tests pass after cleanup.

Implementation Plan

  1. Verify all candidate files are truly unreferenced in runtime/test paths.
  2. Delete dead scaffolding files and folders.
  3. Remove unnecessary service barrel exports and fix any import fallout.
  4. Run pnpm run build and pnpm run test:core.

Implementation Notes

Removed unused scaffolding files from src/core/, src/modules/, and src/ipc/ that were unreferenced by runtime code.

Updated src/core/services/index.ts to stop re-exporting isGlobalShortcutRegisteredSafe, which is only used internally by service files.

Verification:

  • pnpm run build passed
  • pnpm run test:core passed (18/18)