Skip to content

chore(miner): migrate CLI command packages/loopover-miner/lib modules to TypeScript (batch 3.1 of 4 (Phase 3)) #7305

Description

@JSONbored

Problem

#7290 proposed migrating packages/loopover-miner/lib/** to TypeScript, phased for gate safety.
Phase 1 (#7299) landed the tsc build pipeline. This issue is batch 3.1 of 4 (Phase 3): convert this batch's
files, using the same in-place-emit pattern Phase 1 already wired up.

Proposal

Convert these files (and their hand-maintained .d.ts siblings) from .js to real .ts:

  • lib/metrics-cli.js
  • lib/feasibility-cli.js
  • lib/idea-feasibility-cli.js
  • lib/calibration-cli.js
  • lib/tenant-cli.js
  • lib/migrate-cli.js

No tsconfig.json changes are needed -- its existing include glob (bin//*.ts, lib//*.ts)
picks up newly-converted files automatically.

Note: lib/tenant-cli.js does not exist in the tree yet (planned by #7275, blocked on #7180) -- skip it when this batch is picked up, or convert it then if it has landed by that point.

Deliverables

  • All files in this batch converted from .js to .ts
  • Each file's hand-maintained .d.ts sibling removed (tsc regenerates it)

Test Coverage Requirements

No behavior change from this migration alone. Existing tests for these modules must continue to
pass unmodified (only import paths/build output shape might need adjustment).

Expected Outcome

These files are real, compiler-verified TypeScript with zero behavior change.

Links & Resources

Metadata

Metadata

Assignees

No one assigned

    Labels

    gittensor:featureGittensor-scored feature linked to a feature issue — scores a 0.25x multiplier.

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions