1
This commit is contained in:
41
scripts/ops/_verify.py
Normal file
41
scripts/ops/_verify.py
Normal file
@@ -0,0 +1,41 @@
|
||||
import os
|
||||
checks = []
|
||||
|
||||
# 1. Check all 5 doc files exist
|
||||
for f in [
|
||||
'c:/NeoZQYY/docs/h5_ui/compare/AGENT-PLAYBOOK.md',
|
||||
'c:/NeoZQYY/docs/h5_ui/compare/ORCHESTRATION-PLAN.md',
|
||||
'c:/NeoZQYY/docs/h5_ui/compare/SPACING-AGENT.md',
|
||||
'c:/NeoZQYY/docs/h5_ui/compare/PROGRESS.md',
|
||||
'c:/NeoZQYY/docs/h5_ui/compare/CHANGELOG.md',
|
||||
'c:/NeoZQYY/docs/h5_ui/compare/HISTORY.md',
|
||||
]:
|
||||
exists = os.path.exists(f)
|
||||
size = os.path.getsize(f) if exists else 0
|
||||
fname = f.split('/')[-1]
|
||||
checks.append(('EXISTS' if exists else 'MISSING', fname, f'{size//1024}KB'))
|
||||
|
||||
# 2. Check key content in each exec doc
|
||||
for path, needles, label in [
|
||||
('c:/NeoZQYY/docs/h5_ui/compare/AGENT-PLAYBOOK.md', [
|
||||
'PROGRESS.md', 'mcp_recompile', '5.2.5', 'diff \u56fe\u7279\u5f81',
|
||||
'\u9547\u70b9\u5bf9\u9f50\u6cd5', 'crop', '645', '1128'
|
||||
], 'PLAYBOOK'),
|
||||
('c:/NeoZQYY/docs/h5_ui/compare/ORCHESTRATION-PLAN.md', [
|
||||
'PROGRESS.md', '\u6bcf\u6b21\u4f1a\u8bdd\u5f00\u59cb', 'mcp_recompile', '5.2.5'
|
||||
], 'ORCH'),
|
||||
('c:/NeoZQYY/docs/h5_ui/compare/PROGRESS.md', [
|
||||
'\u4e3b\u4ee3\u7406\u4f1a\u8bdd\u6062\u590d\u6d41\u7a0b', 'MCP \u5c31\u7eea\u68c0\u67e5', '\U0001f501 \u91cd\u5199\u4e2d'
|
||||
], 'PROGRESS'),
|
||||
]:
|
||||
with open(path, 'rb') as f:
|
||||
doc = f.read().decode('utf-8')
|
||||
for needle in needles:
|
||||
found = needle in doc
|
||||
checks.append(('OK' if found else 'MISSING', label, needle[:30]))
|
||||
|
||||
all_ok = all(s == 'OK' or s == 'EXISTS' for s, *_ in checks)
|
||||
for status, *rest in checks:
|
||||
print(f'[{status}] {": ".join(rest)}')
|
||||
print()
|
||||
print('\u2705 Ready to launch' if all_ok else '\u26a0\ufe0f Issues found')
|
||||
Reference in New Issue
Block a user