PageSourceSearch

https://app.commanderai.com/assets/AppDebug-AkTbxuNT.js

js commanderai.com collected 2026-10-04 02:53:58 UTC 2,890 bytes, 2 lines download raw bytes

1import{o as t,j as o,v as l,x as c,y as a,E as r,z as g,c as n}from"./index-DTlGp7Od.js";function x(){const d=s=>{console.log("=== Debug Navigation ===");const e=t.getAppById(s);if(console.log("App ID:",s),console.log("App config:",e),!e){console.error("App not found!");return}const i=t.getAppUrl(s);console.log("Target URL:",i),console.log("Current location:",window.location.href),console.log("Navigating in 1 second..."),setTimeout(()=>{console.log("Navigating now to:",i),window.location.href=i},1e3)},h=t.getActiveApps();return o.jsxs("div",{className:"p-6",children:[o.jsx("h1",{className:"text-2xl font-bold mb-6",children:"App Navigation Debug"}),o.jsxs(l,{className:"mb-6",children:[o.jsx(c,{children:o.jsx(a,{children:"Current Environment"})}),o.jsx(r,{children:o.jsxs("div",{className:"space-y-2 font-mono text-sm",children:[o.jsxs("div",{children:["Current URL: ",window.location.href]}),o.jsxs("div",{children:["Hostname: ",window.location.hostname]}),o.jsxs("div",{children:["Port: ",window.location.port]}),o.jsxs("div",{children:["Protocol: ",window.location.protocol]})]})})]}),o.jsxs(l,{children:[o.jsxs(c,{children:[o.jsx(a,{children:"Available Apps"}),o.jsx(g,{children:"Click on any app to test navigation. Check browser console for debug output."})]}),o.jsx(r,{children:o.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:h.map(s=>{const e=t.getAppUrl(s.id);return o.jsxs("div",{className:"border rounded-lg p-4",children:[o.jsx("h3",{className:"font-semibold mb-2",children:s.name}),o.jsxs("div",{className:"space-y-1 text-sm text-muted-foreground mb-4",children:[o.jsxs("div",{children:["ID: ",s.id]}),o.jsxs("div",{children:["Port: ",s.port]}),o.jsxs("div",{children:["Path: ",s.path]}),o.jsxs("div",{children:["Target URL: ",e]})]}),o.jsxs(n,{onClick:()=>d(s.id),className:"w-full",variant:"outline",children:["Navigate to ",s.name]})]},s.id)})})})]}),o.jsxs(l,{className:"mt-6",children:[o.jsx(c,{children:o.jsx(a,{children:"Direct URL Test"})}),o.jsx(r,{children:o.jsxs("div",{className:"space-y-2",children:[o.jsx(n,{onClick:()=>{console.log("Direct navigation to http://localhost:3001/crm"),window.location.href="http://localhost:3001/crm"},variant:"outline",className:"w-full",children:"Direct navigate to CRM (http://localhost:3001/crm)"}),o.jsx(n,{onClick:()=>{console.log("Direct navigation to http://localhost:3002/prospecting"),window.location.href="http://localhost:3002/prospecting"},variant:"outline",className:"w-full",children:"Direct navigate to Prospecting (http://localhost:3002/prospecting)"}),o.jsx(n,{onClick:()=>{console.log("Direct navigation to http://localhost:3003/success"),window.location.href="http://localhost:3003/success"},variant:"outline",className:"w-full",children:"Direct navigate to Success (http://localhost:3003/success)"})]})})]})]})}export{x as default};
2//# sourceMappingURL=AppDebug-AkTbxuNT.js.map

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.