d35828e76d
Manual SKILL.md updates were blocked by registry sha256 and a byte-equal versions/ gate. Consult now loads the operator-maintained tree; rectification and personal-report stay hashed. Co-authored-by: Cursor <cursoragent@cursor.com>
18 lines
676 B
TypeScript
18 lines
676 B
TypeScript
/**
|
|
* Deployment startup guard.
|
|
*
|
|
* Next.js awaits register() before the server accepts traffic. Node runtimes
|
|
* must verify hashed product packages (rectification, personal report) and
|
|
* confirm the live consult skill tree is present, so a stale copy fails closed.
|
|
*/
|
|
export async function register(): Promise<void> {
|
|
if (process.env.NEXT_RUNTIME !== "nodejs") return;
|
|
|
|
const { resolveLiveJyotishSkill, verifyAllActiveSkillPackages } = await import("./lib/skill-package-registry");
|
|
verifyAllActiveSkillPackages();
|
|
resolveLiveJyotishSkill();
|
|
|
|
const { startPersonalReportWorker } = await import("./lib/personal-report-worker");
|
|
startPersonalReportWorker();
|
|
}
|