chore(miner): remove dead parseJsonFlag from portfolio-queue-cli#6198
Conversation
parseJsonFlag was defined in portfolio-queue-cli.js but never called and never exported. Every subcommand uses the real parsers instead (parseQueueListArgs, parseQueueNextArgs, parseRepoIdentifierArgs, parseQueueClaimBatchArgs), which is why it carried the same JSONbored#4847 comment verbatim as parseRepoIdentifierArgs -- a superseded early draft that was never deleted. Verified repo-wide that it has zero callers. plan-store-cli.js defines its own separate module-scoped parseJsonFlag that is still in use and is left untouched. Closes JSONbored#6164
|
🚨 Contributor flagged. Click here for more info: Superagent Dashboard |
|
Superagent didn't find any vulnerabilities or security issues in this PR. |
|
Warning 🟨🟨🟨🟨🟨🟨🟨🟨🟨🟨🟨🟨 ⏸️ LoopOver review result - manual review recommendedReview updated: 2026-07-15 23:07:23 UTC
⏸️ Suggested Action - Manual Review Review summary Nits — 4 non-blocking
Flagged checks (non-blocking)
Review context
Contributor next steps
Signal definitions
🧪 Chat with LoopOverAsk LoopOver a question about this PR directly in a comment — grounded only in the same cached, public-safe facts shown above, never a new claim.
Full command reference: https://gittensory.aethereal.dev/docs/loopover-commands 🧪 Experimental — new and may change. 🟩 Safe / merged · 🟦 Advisory · 🟨 Held for review · 🟥 Blocked / closed 💰 Earn for open-source contributions like this. Gittensor lets GitHub contributors earn for the work they already do — register to start earning →. Checked by LoopOver, a quiet PR intelligence layer for OSS maintainers.
|
Summary
Closes #6164
parseJsonFlagfrompackages/loopover-miner/lib/portfolio-queue-cli.js(was lines 28-49). It was never called and never exported — every subcommand uses the real parsers instead (parseQueueListArgs/parseQueueNextArgs/parseRepoIdentifierArgs/parseQueueClaimBatchArgs).--dry-run/--jsonparsing loop and carried the same#4847comment verbatim asparseRepoIdentifierArgs, which is what marks it as a superseded early draft that was never deleted.Scope
type(scope): short summaryConventional Commit format, for examplefix(api): restore profile access checks.CONTRIBUTING.mdand does not reintroduce GitHub Pages, VitePress,site/, orCNAME.Closes #123) — a linked open issue is required for every contributor PR.Validation
git diff --checknpm run actionlintnpm run typechecknpm run test:coveragelocally;codecov/patchrequires ≥99% coverage of the lines AND branches you changed (aim for 100% on your diff so CI variance does not fail near the threshold). Global coverage is a non-blocking trend with a loose 90% backstop, not the gate.npm run test:workersnpm run build:mcpnpm run test:mcp-packnpm run ui:openapi:checknpm run ui:lintnpm run ui:typechecknpm run ui:buildnpm audit --audit-level=moderateIf any required check was skipped, explain why:
miner-portfolio-queue-cli+miner-plan-store-cli(44 tests), plusminer-portfolio-queue,miner-portfolio-queue-manager,miner-portfolio-queue-expiry,miner-portfolio-queue-crash-recovery,portfolio-queue(83 tests) — 127 total.grep -rn parseJsonFlag) that the removed function had zero callers.plan-store-cli.jsdefines its own separate module-scopedparseJsonFlagthat is still used at its line 55; that one is deliberately left untouched.codecov/patchto measure. The UI/MCP/workers suites are untouched by this change; leaving them to CI.Safety
UI Evidencesection below with JPG/JPEG or PNG screenshots arranged as organized, captioned, clickable thumbnails. SVG screenshots are not used as review evidence. Review-only screenshots or recordings are not committed to the repository.No auth/API/UI/docs surface is touched — this only deletes unreachable code.
Notes
Closes #6164