Initial module scaffold

This commit is contained in:
2026-04-20 20:07:44 +00:00
commit c3e590e782
11 changed files with 1474 additions and 0 deletions

22
scripts/main.js Normal file
View File

@@ -0,0 +1,22 @@
import { runRuntimeAnalysis } from "./adapters/foundry-runtime.js";
import { StorageAuditReportApp } from "./apps/audit-report-app.js";
Hooks.once("init", () => {
console.log("kosmos-storage-audit | init");
game.settings.registerMenu("kosmos-storage-audit", "report", {
name: "Kosmos Storage Audit",
label: "Open Report",
hint: "Run the storage audit and inspect prioritized findings.",
icon: "fa-solid fa-broom-ball",
type: StorageAuditReportApp,
restricted: true
});
game.modules.get("kosmos-storage-audit").api = {
runRuntimeAnalysis,
StorageAuditReportApp
};
});
Hooks.once("ready", () => {
console.log("kosmos-storage-audit | ready");
});