Self-hosted, Self-Improving, Federated Everything App — dev management, agent orchestration, persistent mind, digital twin, second brain, and creative pipeline from a single dashboard over Tailscale to port the user into the OS
JavaScript ai-agentsdashboarddeveloper-toolsdigital-twinquantified-selfsecond-brainself-hostedtailscale
#!/usr/bin/env node
import { dirname, join } from 'path';
import { fileURLToPath } from 'url';
import { inspectShippedPromptHistory } from './shippedPromptHistory.js';
const repoRoot = join(dirname(fileURLToPath(import.meta.url)), '..', '..');
const result = await inspectShippedPromptHistory({
repoRoot,
migrationsDir: join(repoRoot, 'scripts', 'migrations'),
stageDir: join(repoRoot, 'data.reference', 'prompts', 'stages'),
});
if (result.skipped) {
const inCi = process.env.CI === 'true' || process.env.GITHUB_ACTIONS === 'true';
if (inCi) {
console.error(`❌ Shipped stage-prompt history guard requires full git history in CI: ${result.skipped}`);
process.exitCode = 1;
} else {
console.log(`⏭️ Skipping shipped stage-prompt history guard: ${result.skipped}`);
process.exit(0);
}
} else if (result.stranded.length) {
for (const { file, hash, commit } of result.stranded) {
console.error(
`❌ ${file}: historical hash ${hash} from ${commit.slice(0, 12)} is not accepted by a prompt migration`,
);
}
process.exitCode = 1;
} else {
console.log(
'✅ Every historical shipped stage-prompt body is accepted by a prompt migration',
);
}