Skip to content

Dead code: src/process/supervisor/ and src/providers/ cleanup #116

@alexey-pelykh

Description

@alexey-pelykh

Summary

Two dead/partially-dead subsystems identified during WI-075 post-gate audit.


1. src/process/supervisor/ (10 files, zero external callers)

No code outside the supervisor/ directory imports getProcessSupervisor(),
createProcessSupervisor(), or any other export from this module.

Files:

  • src/process/supervisor/index.ts (barrel + singleton)
  • src/process/supervisor/supervisor.ts (implementation)
  • src/process/supervisor/supervisor.test.ts
  • src/process/supervisor/registry.ts
  • src/process/supervisor/registry.test.ts
  • src/process/supervisor/types.ts
  • src/process/supervisor/adapters/child.ts
  • src/process/supervisor/adapters/child.test.ts
  • src/process/supervisor/adapters/env.ts

Action: Delete entire directory.


2. src/providers/ (5 files, partially dead)

The original disposition marked all 10 files GUT. WI-069 reduced to 5 files. Of the
remaining 5:

Dead (zero external callers):

  • src/providers/github-copilot-models.ts — GitHub Copilot model catalog
  • src/providers/github-copilot-models.test.ts — tests for above
  • src/providers/github-copilot-token.ts — Copilot token management
  • src/providers/github-copilot-token.test.ts — tests for above

Live (3 external callers):

  • src/providers/kilocode-shared.ts — exports KILOCODE_BASE_URL and
    KILOCODE_DEFAULT_MODEL_REF, imported by:
    • src/commands/onboard-auth.credentials.ts
    • src/commands/onboard-auth.models.ts
    • src/commands/onboard-auth.config-core.ts

Action:

  • Delete 4 dead github-copilot files
  • Evaluate kilocode-shared.ts — if the onboard-auth commands that use it are themselves
    dead or will be modified during rebrand (M4), the constant can be inlined or moved to
    the consuming files. Otherwise keep.

Verification

  • src/process/supervisor/ directory deleted
  • 4 dead github-copilot files deleted from src/providers/
  • kilocode-shared.ts evaluated and resolved (inlined, moved, or kept)
  • pnpm build passes
  • pnpm test passes

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions