feat(miner): add laptop-mode init and doctor commands#2614
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #2614 +/- ##
==========================================
+ Coverage 96.07% 96.09% +0.02%
==========================================
Files 236 237 +1
Lines 26358 26446 +88
Branches 9559 9588 +29
==========================================
+ Hits 25323 25414 +91
Misses 425 425
+ Partials 610 607 -3 🚀 New features to boost your workflow:
|
|
Caution 🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥 🛑 Gittensory review result - reject/close recommendedReview updated: 2026-07-02 23:27:27 UTC
🛑 Suggested Action - Reject/Close
Review summary Blockers
Nits — 5 non-blocking
Why this is blocked
Review context
Contributor next steps
Signal definitions
🟩 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 Gittensory, a quiet PR intelligence layer for OSS maintainers.
|
…at/2329-miner-laptop-mode-cli
JSONbored
left a comment
There was a problem hiding this comment.
Please fix/address all issues properly, then resubmit as a new PR:
AI reviewers agree on a likely critical defect: packages/gittensory-miner/package.json:40 advertises Node >=22.5.0 while packages/gittensory-miner/lib/laptop-init.js:78 imports node:sqlite, but Node 22.5.0 still requires --experimental-sqlite for that module (https://nodejs.org/download/release/v22.5.0/docs/api/cli.html#--experimental-sqlite), so gittensory-miner init fails on an allowed runtime unless you raise the engine floor to v22.13.0+ or explicitly launch/document the required flag. — Resolve the flagged defect, or override if the AI reviewers are mistaken, then re-run the gate.
Summary
gittensory-miner initandgittensory-miner doctorcommands for feat(miner-packaging): add laptop-mode CLI entry (SQLite, no Docker, npm install-and-run) #2329.Scope
type(scope): short summaryConventional Commit format, for examplefix(api): restore profile access checks.CONTRIBUTING.mdand does not reintroduce GitHub Pages, VitePress,site/, orCNAME.Fixes #2329
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=moderateAlso run:
npx vitest run test/unit/miner-cli.test.tsnpm --workspace @jsonbored/gittensory-miner run buildnpm run build:minernpm run test:ciIf any required check was skipped, explain why:
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.UI Evidence
N/A - CLI/package README change only; no visible UI, frontend, docs site, or extension surface changed.
Notes
gittensory-miner initrespectsGITTENSORY_MINER_CONFIG_DIR, thenXDG_CONFIG_HOME, then~/.config/gittensory-miner.initopens and initializes the SQLite state database on every run, so an existing empty state file is repaired instead of treated as ready.doctorreports Docker presence as informational only and does not require Docker, Redis, or Postgres.