"use strict";module.exports={name:"holocron-vr",permissions:["graphify:read","agent:invoke","audit:write","task:create","desktop:openFile","storage:indexeddb","webxr","speech","git:read","upload:temp","filesystem:read-selected"],async execute(e={}){return e._action==="open"?{opened:!0,renderer:"yodaman-host",project:e.project,message:"Holocron VR launch accepted by the YodaMan host."}:e._action==="enable"?{enabled:!0}:e._action==="disable"?{disabled:!0}:e._action==="unload"?{unloaded:!0}:{ok:!0,name:"holocron-vr"}},async onLoad(e){try{(await e.fetch("/api/graphify/status").then(n=>n.json())).available||e.log.warn("[VR] Graphify not available; plugin loaded but inactive")}catch(o){e.log.warn("[VR] Could not reach Graphify API; plugin loaded but inactive",o)}e.ui.registerPluginCard({id:"constellation-vr-card",component:"./frontend/UIPanel.js",icon:"./assets/icon.svg",label:"Holocron VR",description:"Explore your codebase as an immersive 3D constellation."}),e.log.info("[VR] Plugin loaded successfully")},async onEnable(e){e.worker.run("./backend/graphCache.js",{prefetch:!0}),e.ui.registerShortcut({id:"constellation-vr-open",keys:["Ctrl","Shift","V"],action:()=>e.ui.openModal({id:"constellation-vr-modal",title:"Holocron VR",component:"./frontend/UIPanel.js#VRExplorerModal",fullScreen:!0,closable:!0,onClose:()=>e.log.info("[VR] Modal closed")}),label:"Open Holocron VR"}),e.log.info("[VR] Plugin enabled")},async onDisable(e){e.worker.terminateAll(),e.ui.unregisterShortcut("constellation-vr-open"),e.log.info("[VR] Plugin disabled")},onUnload(e){e.worker.terminateAll(),e.log.info("[VR] Plugin unloaded")}};
//# sourceMappingURL=main.js.map
