feat(engine): add hasPlanRunningSteps - #3435
Conversation
Expose a pure plan-DAG running check for miner and dashboard flows that need a quick active-execution signal. Co-authored-by: Cursor <cursoragent@cursor.com>
|
Superagent didn't find any vulnerabilities or security issues in this PR. |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #3435 +/- ##
=======================================
Coverage 93.46% 93.46%
=======================================
Files 292 293 +1
Lines 30794 30795 +1
Branches 11223 11223
=======================================
+ Hits 28783 28784 +1
Misses 1355 1355
Partials 656 656
🚀 New features to boost your workflow:
|
|
Warning 🟨🟨🟨🟨🟨🟨🟨🟨🟨🟨🟨🟨 ⏸️ Gittensory review result - manual review recommendedReview updated: 2026-07-05 07:05:24 UTC
⏸️ Suggested Action - Manual Review Review summary Nits — 1 non-blocking
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.
|
Summary
hasPlanRunningStepsin@jsonbored/gittensory-engine— returns whether any step in a plan DAG is currently running.hasPlanPendingSteps,hasPlanFailedSteps, andisPlanFullyCompletedfor miner and dashboard status checks.Test plan
COVERAGE_NO_THRESHOLDS=1 npx vitest run test/unit/plan-running.test.ts --coveragenpx diff-cover coverage/lcov.info --compare-branch=main --fail-under=99→ 100%npm run build --workspace @jsonbored/gittensory-engine && npm run build:minerMade with Cursor