mirror of
https://github.com/affaan-m/everything-claude-code.git
synced 2026-05-16 22:03:05 +08:00
Add repeatable operator readiness dashboard
This commit is contained in:
committed by
Affaan Mustafa
parent
bfffc33869
commit
50f375bc2c
@@ -268,6 +268,10 @@ function readText(rootDir, relativePath) {
|
||||
}
|
||||
}
|
||||
|
||||
function fileExists(rootDir, relativePath) {
|
||||
return fs.existsSync(path.join(rootDir, relativePath));
|
||||
}
|
||||
|
||||
function safeParseJson(text) {
|
||||
if (!text || !text.trim()) {
|
||||
return null;
|
||||
@@ -431,10 +435,20 @@ function buildLocalEvidenceChecks(rootDir) {
|
||||
'platform-audit-cli-surface',
|
||||
packageScripts['platform:audit'] === 'node scripts/platform-audit.js'
|
||||
&& packageScripts['discussion:audit'] === 'node scripts/discussion-audit.js'
|
||||
&& packageScripts['operator:dashboard'] === 'node scripts/operator-readiness-dashboard.js'
|
||||
? 'pass'
|
||||
: 'fail',
|
||||
'package.json exposes the platform and discussion audit commands',
|
||||
{ fix: 'Add platform:audit and discussion:audit commands to package.json.' }
|
||||
'package.json exposes platform, discussion, and operator dashboard audit commands',
|
||||
{ fix: 'Add platform:audit, discussion:audit, and operator:dashboard commands to package.json.' }
|
||||
),
|
||||
buildCheck(
|
||||
'operator-dashboard-command',
|
||||
fileExists(rootDir, 'scripts/operator-readiness-dashboard.js')
|
||||
&& packageScripts['operator:dashboard'] === 'node scripts/operator-readiness-dashboard.js'
|
||||
? 'pass'
|
||||
: 'fail',
|
||||
'operator dashboard is generated by the repeatable ITO-44 command',
|
||||
{ path: 'scripts/operator-readiness-dashboard.js' }
|
||||
),
|
||||
buildCheck(
|
||||
'roadmap-linear-mirror',
|
||||
|
||||
Reference in New Issue
Block a user