refactor: phase 3 foundation for node-based checks#154
Merged
benvinegar merged 1 commit intomainfrom Feb 24, 2026
Merged
Conversation
Greptile SummaryRefactors integrity status parsing from inline shell/jq to a dedicated Node.js check module ( Key changes:
Confidence Score: 5/5
Important Files Changed
Flowchart%%{init: {'theme': 'neutral'}}%%
flowchart TD
A[doctor.sh / security-audit.sh] -->|Resolve Node binary| B{Node available?}
B -->|Yes| C[Execute integrity-status.mjs]
B -->|No| D[Set empty payload]
C -->|Success| E[Parse JSON output]
C -->|Failure| D
E --> F{Parse fields via json_get_string_stdin}
F --> G[exists, status, checked_at, etc.]
G --> H{exists == 1?}
H -->|No| I[Warn: file missing]
H -->|Yes| J{Switch on status}
J -->|pass| K[Pass: integrity passed]
J -->|warn| L[Warn: integrity issues]
J -->|fail| M[Fail: integrity failed]
J -->|skipped| N[Warn: check skipped]
J -->|unknown| O[Warn: status unknown]
D --> P[Warn: unreadable or missing]
style C fill:#e1f5e1
style E fill:#e1f5e1
style K fill:#d4edda
style M fill:#f8d7da
style I fill:#fff3cd
style L fill:#fff3cd
Last reviewed commit: bea4867 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Validation
Phase tracking