chore(cleanup): remove obsolete scripts and update paths for production deployment
- Remove dev/scripts/check-file-organization.sh (obsolete organization checker) - Remove dev/scripts/community_onboarding.py (unused 559-line automation script) - Update gpu_miner_host.py log path from /home/oib/windsurf/aitbc to /opt/aitbc - Add service status and standardization badges to README.md
This commit is contained in:
32
dev/scripts/development/parse_issues.py
Normal file
32
dev/scripts/development/parse_issues.py
Normal file
@@ -0,0 +1,32 @@
|
||||
import re
|
||||
|
||||
with open("docs/10_plan/99_currentissue.md", "r") as f:
|
||||
content = f.read()
|
||||
|
||||
# We know that Phase 8 is completely done and documented in docs/13_tasks/completed_phases/
|
||||
# We should only keep the actual warnings and blockers that might still be relevant,
|
||||
# and remove all the "Completed", "Results", "Achievements" sections.
|
||||
|
||||
# Let's extract only lines with warning/pending emojis
|
||||
lines = content.split("\n")
|
||||
kept_lines = []
|
||||
|
||||
for line in lines:
|
||||
if line.startswith("# Current Issues"):
|
||||
kept_lines.append(line)
|
||||
elif line.startswith("## Current"):
|
||||
kept_lines.append(line)
|
||||
elif any(icon in line for icon in ['⚠️', '⏳', '🔄']) and '✅' not in line:
|
||||
kept_lines.append(line)
|
||||
elif line.startswith("### "):
|
||||
kept_lines.append("\n" + line)
|
||||
elif line.startswith("#### "):
|
||||
kept_lines.append("\n" + line)
|
||||
|
||||
# Clean up empty headers
|
||||
new_content = "\n".join(kept_lines)
|
||||
new_content = re.sub(r'#+\s+[^\n]+\n+(?=#)', '\n', new_content)
|
||||
new_content = re.sub(r'\n{3,}', '\n\n', new_content)
|
||||
|
||||
with open("docs/10_plan/99_currentissue.md", "w") as f:
|
||||
f.write(new_content.strip() + '\n')
|
||||
Reference in New Issue
Block a user