Skip to content

chore(miner): migrate leaf-most, lowest-fan-in utility packages/loopover-miner/lib modules to TypeScript (batch 2.3 of 5 (Phase 2)) #7302

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 2.3 of 5 (Phase 2): 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/cross-repo-evaluation.js
  • lib/version.js
  • lib/slop-assessment.js
  • lib/discovery-throttle.js
  • lib/claim-ledger-expiry.js
  • lib/prompt-injection-defense.js
  • lib/execute-local-write.js
  • lib/portfolio-queue-expiry.js

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

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