@codeyam/codeyam-cli 0.1.0-staging.ad31e3e → 0.1.0-staging.bbe4da9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/analyzer-template/.build-info.json +7 -7
- package/analyzer-template/log.txt +3 -3
- package/analyzer-template/packages/ai/index.ts +4 -1
- package/analyzer-template/packages/ai/src/lib/astScopes/processExpression.ts +18 -0
- package/analyzer-template/packages/ai/src/lib/dataStructure/ScopeDataStructure.ts +56 -0
- package/analyzer-template/packages/ai/src/lib/dataStructure/helpers/cleanNonObjectFunctions.ts +64 -1
- package/analyzer-template/packages/ai/src/lib/worker/SerializableDataStructure.ts +2 -0
- package/analyzer-template/packages/analyze/src/lib/FileAnalyzer.ts +29 -2
- package/analyzer-template/packages/analyze/src/lib/asts/nodes/getNodeType.ts +1 -1
- package/analyzer-template/packages/analyze/src/lib/asts/sourceFiles/getAllExportedNodes.ts +4 -2
- package/analyzer-template/packages/analyze/src/lib/asts/sourceFiles/getAllExports.ts +5 -3
- package/analyzer-template/packages/analyze/src/lib/files/analyzeRemixRoute.ts +21 -33
- package/analyzer-template/packages/analyze/src/lib/files/getImportedExports.ts +75 -10
- package/analyzer-template/packages/analyze/src/lib/files/scenarios/gatherDataForMocks.ts +26 -0
- package/analyzer-template/packages/analyze/src/lib/files/scenarios/mergeValidatedDataStructures.ts +12 -2
- package/analyzer-template/packages/aws/dist/src/lib/s3/getPresignedUrl.d.ts.map +1 -1
- package/analyzer-template/packages/aws/dist/src/lib/s3/getPresignedUrl.js +2 -2
- package/analyzer-template/packages/aws/dist/src/lib/s3/getPresignedUrl.js.map +1 -1
- package/analyzer-template/packages/aws/src/lib/s3/getPresignedUrl.ts +2 -2
- package/analyzer-template/packages/github/dist/supabase/src/lib/scenarioToDb.d.ts.map +1 -1
- package/analyzer-template/packages/github/dist/supabase/src/lib/scenarioToDb.js +1 -1
- package/analyzer-template/packages/github/dist/supabase/src/lib/scenarioToDb.js.map +1 -1
- package/analyzer-template/packages/github/dist/utils/src/lib/applyUniversalMocks.d.ts.map +1 -1
- package/analyzer-template/packages/github/dist/utils/src/lib/applyUniversalMocks.js +39 -5
- package/analyzer-template/packages/github/dist/utils/src/lib/applyUniversalMocks.js.map +1 -1
- package/analyzer-template/packages/github/dist/utils/src/lib/lightweightEntityExtractor.d.ts.map +1 -1
- package/analyzer-template/packages/github/dist/utils/src/lib/lightweightEntityExtractor.js +17 -0
- package/analyzer-template/packages/github/dist/utils/src/lib/lightweightEntityExtractor.js.map +1 -1
- package/analyzer-template/packages/supabase/src/lib/scenarioToDb.ts +1 -0
- package/analyzer-template/packages/utils/dist/utils/src/lib/applyUniversalMocks.d.ts.map +1 -1
- package/analyzer-template/packages/utils/dist/utils/src/lib/applyUniversalMocks.js +39 -5
- package/analyzer-template/packages/utils/dist/utils/src/lib/applyUniversalMocks.js.map +1 -1
- package/analyzer-template/packages/utils/dist/utils/src/lib/lightweightEntityExtractor.d.ts.map +1 -1
- package/analyzer-template/packages/utils/dist/utils/src/lib/lightweightEntityExtractor.js +17 -0
- package/analyzer-template/packages/utils/dist/utils/src/lib/lightweightEntityExtractor.js.map +1 -1
- package/analyzer-template/packages/utils/src/lib/applyUniversalMocks.ts +46 -7
- package/analyzer-template/packages/utils/src/lib/lightweightEntityExtractor.ts +16 -0
- package/analyzer-template/project/constructMockCode.ts +29 -3
- package/analyzer-template/project/runMultiScenarioServer.ts +0 -4
- package/analyzer-template/project/runScenarioServer.ts +0 -4
- package/analyzer-template/project/start.ts +1 -11
- package/analyzer-template/project/startServer.ts +50 -70
- package/analyzer-template/project/writeMockDataTsx.ts +66 -3
- package/analyzer-template/project/writeScenarioComponents.ts +451 -25
- package/analyzer-template/scripts/postbuild.cjs +12 -1
- package/background/src/lib/virtualized/project/constructMockCode.js +25 -4
- package/background/src/lib/virtualized/project/constructMockCode.js.map +1 -1
- package/background/src/lib/virtualized/project/runMultiScenarioServer.js +0 -3
- package/background/src/lib/virtualized/project/runMultiScenarioServer.js.map +1 -1
- package/background/src/lib/virtualized/project/start.js +1 -8
- package/background/src/lib/virtualized/project/start.js.map +1 -1
- package/background/src/lib/virtualized/project/startServer.js +40 -68
- package/background/src/lib/virtualized/project/startServer.js.map +1 -1
- package/background/src/lib/virtualized/project/writeMockDataTsx.js +61 -3
- package/background/src/lib/virtualized/project/writeMockDataTsx.js.map +1 -1
- package/background/src/lib/virtualized/project/writeScenarioComponents.js +296 -20
- package/background/src/lib/virtualized/project/writeScenarioComponents.js.map +1 -1
- package/codeyam-cli/src/commands/debug.js +3 -2
- package/codeyam-cli/src/commands/debug.js.map +1 -1
- package/codeyam-cli/src/commands/setup-sandbox.js +2 -1
- package/codeyam-cli/src/commands/setup-sandbox.js.map +1 -1
- package/codeyam-cli/src/commands/test-startup.js +14 -5
- package/codeyam-cli/src/commands/test-startup.js.map +1 -1
- package/codeyam-cli/src/utils/analysisRunner.js +2 -1
- package/codeyam-cli/src/utils/analysisRunner.js.map +1 -1
- package/codeyam-cli/src/utils/analyzer.js +8 -16
- package/codeyam-cli/src/utils/analyzer.js.map +1 -1
- package/codeyam-cli/src/utils/generateReport.js +12 -6
- package/codeyam-cli/src/utils/generateReport.js.map +1 -1
- package/codeyam-cli/src/utils/queue/job.js +5 -4
- package/codeyam-cli/src/utils/queue/job.js.map +1 -1
- package/codeyam-cli/src/utils/sandbox.js +190 -0
- package/codeyam-cli/src/utils/sandbox.js.map +1 -0
- package/codeyam-cli/src/webserver/build/client/assets/{EntityTypeIcon-D5ZHFomX.js → EntityTypeIcon-Dp_FTAs1.js} +1 -1
- package/codeyam-cli/src/webserver/build/client/assets/InteractivePreview-TlHocYno.js +26 -0
- package/codeyam-cli/src/webserver/build/client/assets/{LibraryFunctionPreview-BYVx9KFp.js → LibraryFunctionPreview-CVMmGuIc.js} +1 -1
- package/codeyam-cli/src/webserver/build/client/assets/{LogViewer-CRcT5fOZ.js → LogViewer-JkfQ-VaI.js} +1 -1
- package/codeyam-cli/src/webserver/build/client/assets/ReportIssueModal-Cqce0_KG.js +1 -0
- package/codeyam-cli/src/webserver/build/client/assets/{SafeScreenshot-Bual6h18.js → SafeScreenshot-BrMAP1nP.js} +1 -1
- package/codeyam-cli/src/webserver/build/client/assets/ScenarioPreview-Bi-__7HT.js +6 -0
- package/codeyam-cli/src/webserver/build/client/assets/{ScenarioViewer-4D2vLLJz.js → ScenarioViewer-XmIpHcLJ.js} +1 -1
- package/codeyam-cli/src/webserver/build/client/assets/_index-BmfhU6CA.js +1 -0
- package/codeyam-cli/src/webserver/build/client/assets/activity.(_tab)-Dm8lM73z.js +10 -0
- package/codeyam-cli/src/webserver/build/client/assets/{chart-column-B8fb6wnw.js → chart-column-kA4jn9if.js} +1 -1
- package/codeyam-cli/src/webserver/build/client/assets/{chunk-WWGJGFF6-De6i8FUT.js → chunk-WWGJGFF6-CgXbbZRx.js} +1 -1
- package/codeyam-cli/src/webserver/build/client/assets/{circle-check-BACUUf75.js → circle-check-B2oHQ-zo.js} +1 -1
- package/codeyam-cli/src/webserver/build/client/assets/{clock-vWeoCemX.js → clock-BAfbP_iK.js} +1 -1
- package/codeyam-cli/src/webserver/build/client/assets/codeyam-name-logo-CvKwUgHo.svg +9 -0
- package/codeyam-cli/src/webserver/build/client/assets/{createLucideIcon-CS7XDrKv.js → createLucideIcon-BBYuR56H.js} +1 -1
- package/codeyam-cli/src/webserver/build/client/assets/{dev.empty-DIOEw_3i.js → dev.empty-BgPXZbm0.js} +1 -1
- package/codeyam-cli/src/webserver/build/client/assets/{entity._sha._-C6fctQ5v.js → entity._sha._-BkoAXaOa.js} +10 -10
- package/codeyam-cli/src/webserver/build/client/assets/{entity._sha_.create-scenario-C3FZJx1w.js → entity._sha_.create-scenario-Bj5GHkhb.js} +1 -1
- package/codeyam-cli/src/webserver/build/client/assets/{entity._sha_.edit._scenarioId-YJz_igar.js → entity._sha_.edit._scenarioId-eW5z9AyZ.js} +1 -1
- package/codeyam-cli/src/webserver/build/client/assets/{entityStatus-BEqj2qBy.js → entityStatus-C5Okl18j.js} +1 -1
- package/codeyam-cli/src/webserver/build/client/assets/{entityVersioning-Bk_YB1jM.js → entityVersioning-CU_Lchhc.js} +1 -1
- package/codeyam-cli/src/webserver/build/client/assets/{entry.client-DiP0q291.js → entry.client-B9tSboXM.js} +2 -2
- package/codeyam-cli/src/webserver/build/client/assets/{file-text-LM0mgxXE.js → file-text-18aYHZGd.js} +1 -1
- package/codeyam-cli/src/webserver/build/client/assets/files-Df79EyEb.js +1 -0
- package/codeyam-cli/src/webserver/build/client/assets/git-CDEwTVH_.js +12 -0
- package/codeyam-cli/src/webserver/build/client/assets/globals-DXRB6jBc.css +1 -0
- package/codeyam-cli/src/webserver/build/client/assets/{index-D-zYbzFZ.js → index-_LjBsTxX.js} +1 -1
- package/codeyam-cli/src/webserver/build/client/assets/{loader-circle-BXPKbHEb.js → loader-circle-D_EGChhq.js} +1 -1
- package/codeyam-cli/src/webserver/build/client/assets/manifest-3e0ffbcc.js +1 -0
- package/codeyam-cli/src/webserver/build/client/assets/{root-D0s7DnXb.js → root-CGyT4J4b.js} +3 -3
- package/codeyam-cli/src/webserver/build/client/assets/{settings-5zF_GOcS.js → settings-CEPbAsom.js} +1 -1
- package/codeyam-cli/src/webserver/build/client/assets/settings-R8QF_mHX.js +1 -0
- package/codeyam-cli/src/webserver/build/client/assets/simulations-B_PXvFom.js +1 -0
- package/codeyam-cli/src/webserver/build/client/assets/{triangle-alert-D7k-ArFa.js → triangle-alert-BthANBVv.js} +1 -1
- package/codeyam-cli/src/webserver/build/client/assets/{useLastLogLine-AlhS7g5F.js → useLastLogLine-Blr5oZDE.js} +1 -1
- package/codeyam-cli/src/webserver/build/client/assets/useReportContext-CANr3QJ5.js +1 -0
- package/codeyam-cli/src/webserver/build/client/assets/{useToast-Ddo4UQv7.js → useToast-Bbf4Hokd.js} +1 -1
- package/codeyam-cli/src/webserver/build/server/assets/{index-iaMjuNME.js → index-vf1FETCO.js} +1 -1
- package/codeyam-cli/src/webserver/build/server/assets/server-build-B5s58TvB.js +169 -0
- package/codeyam-cli/src/webserver/build/server/index.js +1 -1
- package/codeyam-cli/src/webserver/build-info.json +5 -5
- package/package.json +1 -1
- package/packages/ai/index.js +1 -1
- package/packages/ai/index.js.map +1 -1
- package/packages/ai/src/lib/astScopes/processExpression.js +12 -0
- package/packages/ai/src/lib/astScopes/processExpression.js.map +1 -1
- package/packages/ai/src/lib/dataStructure/ScopeDataStructure.js +38 -0
- package/packages/ai/src/lib/dataStructure/ScopeDataStructure.js.map +1 -1
- package/packages/ai/src/lib/dataStructure/helpers/cleanNonObjectFunctions.js +55 -1
- package/packages/ai/src/lib/dataStructure/helpers/cleanNonObjectFunctions.js.map +1 -1
- package/packages/ai/src/lib/worker/SerializableDataStructure.js.map +1 -1
- package/packages/analyze/src/lib/FileAnalyzer.js +22 -2
- package/packages/analyze/src/lib/FileAnalyzer.js.map +1 -1
- package/packages/analyze/src/lib/asts/nodes/getNodeType.js +1 -1
- package/packages/analyze/src/lib/asts/nodes/getNodeType.js.map +1 -1
- package/packages/analyze/src/lib/asts/sourceFiles/getAllExportedNodes.js +3 -2
- package/packages/analyze/src/lib/asts/sourceFiles/getAllExportedNodes.js.map +1 -1
- package/packages/analyze/src/lib/asts/sourceFiles/getAllExports.js +4 -3
- package/packages/analyze/src/lib/asts/sourceFiles/getAllExports.js.map +1 -1
- package/packages/analyze/src/lib/files/analyzeRemixRoute.js +18 -23
- package/packages/analyze/src/lib/files/analyzeRemixRoute.js.map +1 -1
- package/packages/analyze/src/lib/files/getImportedExports.js +56 -4
- package/packages/analyze/src/lib/files/getImportedExports.js.map +1 -1
- package/packages/analyze/src/lib/files/scenarios/gatherDataForMocks.js +24 -0
- package/packages/analyze/src/lib/files/scenarios/gatherDataForMocks.js.map +1 -1
- package/packages/analyze/src/lib/files/scenarios/mergeValidatedDataStructures.js +8 -2
- package/packages/analyze/src/lib/files/scenarios/mergeValidatedDataStructures.js.map +1 -1
- package/packages/supabase/src/lib/scenarioToDb.js +1 -1
- package/packages/supabase/src/lib/scenarioToDb.js.map +1 -1
- package/packages/utils/src/lib/applyUniversalMocks.js +39 -5
- package/packages/utils/src/lib/applyUniversalMocks.js.map +1 -1
- package/packages/utils/src/lib/lightweightEntityExtractor.js +17 -0
- package/packages/utils/src/lib/lightweightEntityExtractor.js.map +1 -1
- package/codeyam-cli/src/webserver/build/client/assets/InteractivePreview-XDSzQLOY.js +0 -26
- package/codeyam-cli/src/webserver/build/client/assets/ReportIssueModal-BORLgi0X.js +0 -1
- package/codeyam-cli/src/webserver/build/client/assets/ScenarioPreview-Bi-YUMa-.js +0 -6
- package/codeyam-cli/src/webserver/build/client/assets/_index-BC200mfN.js +0 -1
- package/codeyam-cli/src/webserver/build/client/assets/activity.(_tab)-CxvZPkCv.js +0 -10
- package/codeyam-cli/src/webserver/build/client/assets/circle-alert-IdsgAK39.js +0 -1
- package/codeyam-cli/src/webserver/build/client/assets/files-Dxh9CcaV.js +0 -1
- package/codeyam-cli/src/webserver/build/client/assets/git-BXmqrWCH.js +0 -12
- package/codeyam-cli/src/webserver/build/client/assets/globals-BGS74ED-.css +0 -1
- package/codeyam-cli/src/webserver/build/client/assets/manifest-e039ab42.js +0 -1
- package/codeyam-cli/src/webserver/build/client/assets/settings-Dc4MlMpK.js +0 -1
- package/codeyam-cli/src/webserver/build/client/assets/simulations-BQ-02-jB.js +0 -1
- package/codeyam-cli/src/webserver/build/client/assets/zap-_jw-9DCp.js +0 -1
- package/codeyam-cli/src/webserver/build/server/assets/server-build-CpyX1FZX.js +0 -169
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{r as o,j as e,b as ee,L as se}from"./chunk-WWGJGFF6-
|
|
1
|
+
import{r as o,j as e,b as ee,L as se}from"./chunk-WWGJGFF6-CgXbbZRx.js";import{a as te,I as re}from"./InteractivePreview-TlHocYno.js";import{L as ae}from"./LogViewer-JkfQ-VaI.js";import{S as ne}from"./SafeScreenshot-BrMAP1nP.js";import{u as oe}from"./useLastLogLine-Blr5oZDE.js";import{R as ie,_ as le}from"./ReportIssueModal-Cqce0_KG.js";function ce({presets:t,customSizes:i,currentWidth:l,currentHeight:n,scale:f,onSizeChange:w,onSaveCustomSize:m,onRemoveCustomSize:r,className:c=""}){const[a,x]=o.useState(!1),[h,C]=o.useState(String(l)),[y,j]=o.useState(String(n)),[u,g]=o.useState(!1),[p,k]=o.useState(!1),I=o.useRef(null);o.useEffect(()=>{u||C(String(l))},[l,u]),o.useEffect(()=>{p||j(String(n))},[n,p]),o.useEffect(()=>{const s=N=>{I.current&&!I.current.contains(N.target)&&x(!1)};return document.addEventListener("mousedown",s),()=>document.removeEventListener("mousedown",s)},[]);const P=o.useMemo(()=>{const s=t.find(b=>b.width===l&&b.height===n);if(s)return s.name;const N=i.find(b=>b.width===l&&b.height===n);return N?N.name:"Custom"},[t,i,l,n]),z=P==="Custom",A=s=>{w(s.width,s.height),x(!1)},E=s=>{const N=s.target.value;C(N);const b=parseInt(N,10);!isNaN(b)&&b>0&&w(b,n)},R=s=>{const N=s.target.value;j(N);const b=parseInt(N,10);!isNaN(b)&&b>0&&w(l,b)},D=()=>{g(!1);const s=parseInt(h,10);(isNaN(s)||s<=0)&&C(String(l))},S=()=>{k(!1);const s=parseInt(y,10);(isNaN(s)||s<=0)&&j(String(n))},$=s=>{(s.key==="Enter"||s.key==="Escape")&&s.target.blur()};return e.jsxs("div",{className:`flex items-center gap-3 ${c}`,children:[e.jsxs("div",{className:"relative",ref:I,children:[e.jsxs("button",{onClick:()=>x(!a),className:"flex items-center gap-2 px-3 py-1.5 bg-white border border-gray-300 rounded-md text-sm font-medium text-gray-700 hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-[#005c75] focus:ring-offset-1 min-w-[120px] justify-between",children:[e.jsx("span",{children:P}),e.jsx("svg",{className:`w-4 h-4 transition-transform ${a?"rotate-180":""}`,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:e.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M19 9l-7 7-7-7"})})]}),a&&e.jsx("div",{className:"absolute top-full left-0 mt-1 min-w-full bg-white border border-gray-200 rounded-md shadow-lg z-50",children:e.jsxs("div",{className:"py-1",children:[t.length>0&&e.jsxs(e.Fragment,{children:[e.jsx("div",{className:"px-3 py-1 text-xs font-semibold text-gray-500 uppercase tracking-wider whitespace-nowrap",children:"Presets"}),t.map(s=>e.jsxs("button",{onClick:()=>A(s),className:`w-full text-left px-3 py-2 text-sm hover:bg-gray-100 flex justify-between items-center gap-4 whitespace-nowrap ${P===s.name?"bg-[#f0f7f9] text-[#005c75]":"text-gray-700"}`,children:[e.jsx("span",{children:s.name}),e.jsxs("span",{className:"text-xs text-gray-500",children:[s.width," x ",s.height]})]},s.name))]}),i.length>0&&e.jsxs(e.Fragment,{children:[e.jsx("div",{className:"border-t border-gray-100 my-1"}),e.jsx("div",{className:"px-3 py-1 text-xs font-semibold text-gray-500 uppercase tracking-wider whitespace-nowrap",children:"Custom"}),[...i].sort((s,N)=>s.width-N.width).map(s=>e.jsxs("div",{className:`flex items-center gap-1 hover:bg-gray-100 ${P===s.name?"bg-[#f0f7f9] text-[#005c75]":"text-gray-700"}`,children:[e.jsxs("button",{onClick:()=>A(s),className:"flex-1 text-left px-3 py-2 text-sm flex justify-between items-center gap-4 whitespace-nowrap cursor-pointer",children:[e.jsx("span",{children:s.name}),e.jsxs("span",{className:"text-xs text-gray-500",children:[s.width," x ",s.height]})]}),r&&e.jsx("button",{onClick:N=>{N.stopPropagation(),P===s.name&&t.length>0&&w(t[0].width,t[0].height),r(s.name)},className:"p-1.5 mr-1 text-gray-400 hover:text-red-500 hover:bg-red-50 rounded cursor-pointer transition-colors",title:"Remove custom size",children:e.jsx("svg",{className:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:e.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M6 18L18 6M6 6l12 12"})})})]},s.name))]})]})})]}),e.jsxs("div",{className:"flex items-center gap-1 text-sm",children:[e.jsxs("div",{className:"flex items-center",children:[e.jsx("input",{type:"text",value:h,onChange:E,onFocus:()=>g(!0),onBlur:D,onKeyDown:$,className:"w-16 px-2 py-1 text-right border border-gray-300 rounded-l-md text-sm focus:outline-none focus:ring-2 focus:ring-[#005c75] focus:border-[#005c75]"}),e.jsx("span",{className:"px-2 py-1 bg-gray-100 border border-l-0 border-gray-300 rounded-r-md text-gray-500 text-sm",children:"px"})]}),e.jsx("span",{className:"text-gray-400 mx-1",children:"×"}),e.jsxs("div",{className:"flex items-center",children:[e.jsx("input",{type:"text",value:y,onChange:R,onFocus:()=>k(!0),onBlur:S,onKeyDown:$,className:"w-16 px-2 py-1 text-right border border-gray-300 rounded-l-md text-sm focus:outline-none focus:ring-2 focus:ring-[#005c75] focus:border-[#005c75]"}),e.jsx("span",{className:"px-2 py-1 bg-gray-100 border border-l-0 border-gray-300 rounded-r-md text-gray-500 text-sm",children:"px"})]}),f!==void 0&&f<1&&e.jsxs("span",{className:"text-xs text-gray-500 ml-1",children:["(",Math.round(f*100),"%)"]})]}),z&&e.jsx("button",{onClick:m,className:"px-3 py-1.5 bg-[#005c75] text-white text-sm font-medium rounded-md hover:bg-[#004a5c] focus:outline-none focus:ring-2 focus:ring-[#005c75] focus:ring-offset-1 transition-colors",children:"Save Custom Size"})]})}function de({scenario:t,analysis:i,entity:l}){const n=t.metadata?.executionResult||null,f=t.metadata?.data?.argumentsData||[],w=m=>{if(!m)return"No execution results available yet. Run the function to capture side effects including console output, file operations, and API calls.";const r=[],c=m.sideEffects?.consoleOutput||[];c.length>0&&(r.push(`Console Output: ${c.length} log ${c.length===1?"entry":"entries"} captured`),c.forEach(h=>{r.push(` [${h.level.toUpperCase()}] ${h.args.join(" ")}`)}));const a=m.sideEffects?.fileWrites||[];a.length>0&&(r.push(`
|
|
2
2
|
File System Operations: ${a.length} ${a.length===1?"operation":"operations"} detected`),a.forEach(h=>{r.push(` ${h.operation}: ${h.path}${h.size?` (${h.size} bytes)`:""}`)}));const x=m.sideEffects?.apiCalls||[];return x.length>0&&(r.push(`
|
|
3
3
|
API Calls: ${x.length} ${x.length===1?"call":"calls"} made`),x.forEach(h=>{r.push(` ${h.method} ${h.url}${h.status?` → ${h.status}`:""}${h.duration?` (${h.duration}ms)`:""}`)})),m.error&&r.push(`
|
|
4
4
|
Error: ${m.error.name||"Error"}: ${m.error.message}`),r.length===0?"No side effects detected. The function executed without console output, file operations, or API calls.":r.join(`
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{w as J,u as ee,b as se,d as te,r as d,j as e,L as x}from"./chunk-WWGJGFF6-CgXbbZRx.js";import{u as le}from"./useLastLogLine-Blr5oZDE.js";import{u as ae}from"./useToast-Bbf4Hokd.js";import{u as ne}from"./useReportContext-CANr3QJ5.js";import{L as re}from"./LogViewer-JkfQ-VaI.js";import{I as j,C as V,E as ie}from"./EntityTypeIcon-Dp_FTAs1.js";import{S as _}from"./SafeScreenshot-BrMAP1nP.js";import{c as H}from"./createLucideIcon-BBYuR56H.js";import{C as oe}from"./circle-check-B2oHQ-zo.js";import{L as w}from"./loader-circle-D_EGChhq.js";import"./file-text-18aYHZGd.js";import"./chart-column-kA4jn9if.js";const ce=[["path",{d:"m6 14 1.5-2.9A2 2 0 0 1 9.24 10H20a2 2 0 0 1 1.94 2.5l-1.54 6a2 2 0 0 1-1.95 1.5H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H18a2 2 0 0 1 2 2v2",key:"usdka0"}]],de=H("folder-open",ce);const me=[["path",{d:"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z",key:"1xq2db"}]],xe=H("zap",me),he="/assets/codeyam-name-logo-CvKwUgHo.svg",Ee=()=>[{title:"Dashboard - CodeYam"},{name:"description",content:"CodeYam project dashboard"}],Fe=J(function(){const{stats:v,uncommittedFiles:y,uncommittedEntitiesList:C,recentSimulations:h,visualEntitiesForSimulation:f,projectSlug:u,queueState:F,currentCommit:P}=ee(),i=se(),R=te(),{showToast:m}=ae();ne({source:"dashboard"});const[W,I]=d.useState(new Set),[o,T]=d.useState(null),[U,A]=d.useState(!1),[L,k]=d.useState(!1),{lastLine:S,isCompleted:z,resetLogs:q}=le(u,!!o),{simulatingEntity:b,scenarios:N,scenarioStatuses:Z,allScenariosCaptured:E}=d.useMemo(()=>{const s={simulatingEntity:null,scenarios:[],scenarioStatuses:[],allScenariosCaptured:!1};if(!o)return s;const t=f?.find(r=>r.sha===o);if(!t)return s;const l=t.analyses?.[0],n=l?.scenarios||[],a=l?.status?.scenarios||[],p=a.filter(r=>r.screenshotFinishedAt).length,g=n.length>0&&p===n.length;return{simulatingEntity:t,scenarios:n,scenarioStatuses:a,allScenariosCaptured:g}},[o,f]);d.useEffect(()=>{(z||E)&&T(null)},[z,E]);const Q=P?.metadata?.currentRun,$=new Set(Q?.currentEntityShas||[]),M=new Set(F.jobs.flatMap(s=>s.entityShas||[])),B=new Set(F.currentlyExecuting?.entityShas||[]),D=C.filter(s=>s.entityType==="visual"||s.entityType==="library"),c=D.filter(s=>!$.has(s.sha)&&!M.has(s.sha)&&!B.has(s.sha)),Y=()=>{if(c.length===0){m("All entities are already queued or analyzing","info",3e3);return}console.log("Analyzing uncommitted entities not yet queued:",c.length),console.log("Entity SHAs:",c.map(s=>s.sha)),k(!0),m(`Starting analysis for ${c.length} entities...`,"info",3e3),i.submit({entityShas:c.map(s=>s.sha).join(",")},{method:"post",action:"/api/analyze"})};d.useEffect(()=>{if(i.state==="idle"&&i.data){const s=i.data;s.success?(console.log("[Analyze All] Success:",s.message),m(`Analysis started for ${s.entityCount} entities in ${s.fileCount} files. Watch the logs for progress.`,"success",6e3),k(!1)):s.error&&(console.error("[Analyze All] Error:",s.error),m(`Error: ${s.error}`,"error",8e3),k(!1))}},[i.state,i.data,m]);const O=(s,t)=>{console.log("Simulating entity:",s);const l=f?.find(n=>n.sha===s);T(s),q(),m(`Starting analysis for ${l?.name||"entity"}...`,"info",3e3),i.submit({entitySha:s,filePath:t},{method:"post",action:"/api/analyze"})},G=s=>{I(t=>{const l=new Set(t);return l.has(s)?l.delete(s):l.add(s),l})},K=d.useMemo(()=>{const s=new Map;return h.forEach(t=>{const l=t.entitySha;s.has(l)||s.set(l,[]),s.get(l).push(t)}),Array.from(s.entries()).map(([t,l])=>({entitySha:t,entityName:l[0].entityName,scenarios:l}))},[h]),X=[{label:"Total Entities",value:v.totalEntities,iconType:"folder",link:"/files",color:"#F59E0B"},{label:"Analyzed Entities",value:v.entitiesWithAnalyses,iconType:"check",link:"/simulations",color:"#10B981"},{label:"Visual Components",value:v.visualEntities,iconType:"image",link:"/files?entityType=visual",color:"#8B5CF6"},{label:"Library Functions",value:v.libraryEntities,iconType:"code-xml",link:"/files?entityType=library",color:"#0DBFE9"}];return e.jsx("div",{className:"bg-cygray-10 min-h-screen",children:e.jsxs("div",{className:"pt-10 pb-6 px-12",children:[e.jsxs("header",{className:"mb-8 flex justify-between items-center",children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("img",{src:he,alt:"CodeYam",className:"h-3.5"}),e.jsx("span",{className:"text-gray-400 text-sm",children:"|"}),e.jsxs("h1",{className:"text-sm font-normal text-gray-600 m-0",children:["Overview of"," ",e.jsx("span",{className:"font-semibold",children:u?u.replace(/-/g," ").replace(/\b\w/g,s=>s.toUpperCase()):"Project"})]})]}),R.state==="loading"&&e.jsx("div",{className:"text-blue-600 text-sm font-medium animate-pulse",children:"🔄 Updating..."})]}),e.jsx("div",{className:"flex items-center justify-between gap-3",children:X.map((s,t)=>e.jsx(x,{to:s.link,className:"flex-1 bg-white rounded-xl border border-gray-200 overflow-hidden flex transition-all hover:shadow-lg hover:-translate-y-0.5 no-underline",style:{borderLeft:`4px solid ${s.color}`},children:e.jsxs("div",{className:"px-6 py-4 flex flex-col gap-3 flex-1",children:[e.jsxs("div",{className:"flex md:justify-between md:items-start md:flex-row flex-col",children:[e.jsx("div",{className:"text-xs text-gray-700 font-medium",children:s.label}),e.jsx("div",{className:"text-xs font-medium transition-colors flex items-center gap-1 sm:hidden md:flex",style:{color:s.color},children:"View All →"})]}),e.jsxs("div",{className:"flex flex-col gap-2",children:[e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsxs("div",{className:"rounded-lg p-2 leading-none shrink-0",style:{backgroundColor:`${s.color}15`},children:[s.iconType==="folder"&&e.jsx(de,{size:20,style:{color:s.color}}),s.iconType==="check"&&e.jsx(oe,{size:20,style:{color:s.color}}),s.iconType==="image"&&e.jsx(j,{size:20,style:{color:s.color}}),s.iconType==="code-xml"&&e.jsx(V,{size:20,style:{color:s.color}})]}),e.jsx("div",{className:"text-2xl font-bold text-gray-900 leading-none",children:s.value})]}),e.jsx("div",{className:"text-xs font-medium transition-colors flex items-center gap-1 md:hidden",style:{color:s.color},children:"View All →"})]})]})},t))}),e.jsxs("div",{className:"mt-12 grid gap-8 items-start",style:{gridTemplateColumns:"repeat(auto-fit, minmax(500px, 1fr))"},children:[e.jsxs("section",{id:"uncommitted",className:"bg-white border border-gray-200 rounded-xl p-6",children:[e.jsxs("div",{className:"flex justify-between items-start mb-5",children:[e.jsxs("div",{children:[e.jsx("h2",{className:"text-[22px] font-semibold text-gray-900 m-0 mb-1",children:"Uncommitted Changes"}),e.jsx("p",{className:"text-sm text-gray-500 m-0",children:y.length>0?`${y.length} file${y.length!==1?"s":""} with ${C.length} uncommitted entit${C.length!==1?"ies":"y"}`:"No uncommitted changes detected"})]}),D.length>0&&e.jsx("button",{onClick:Y,disabled:i.state!=="idle"||L||c.length===0,className:"px-5 py-2.5 text-white border-none rounded-lg text-sm font-semibold cursor-pointer transition-all hover:-translate-y-px disabled:bg-gray-400 disabled:cursor-not-allowed disabled:translate-y-0",style:{backgroundColor:"#005C75"},onMouseEnter:s=>s.currentTarget.style.backgroundColor="#004560",onMouseLeave:s=>s.currentTarget.style.backgroundColor="#005C75",children:i.state!=="idle"||L?"Starting analysis...":c.length===0?"All Queued":`Analyze All (${c.length})`})]}),y.length>0?e.jsx("div",{className:"flex flex-col gap-3",children:y.map(([s,t])=>{const l=W.has(s),n=t.editedEntities||[];return e.jsxs("div",{className:"bg-white border border-gray-200 border-l-4 rounded-lg overflow-hidden",style:{borderLeftColor:"#306AFF"},children:[e.jsx("div",{className:"p-4 cursor-pointer select-none transition-colors hover:bg-gray-50",onClick:()=>G(s),role:"button",tabIndex:0,children:e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx("span",{className:"text-gray-500 text-xs w-4 shrink-0",children:l?"▼":"▶"}),e.jsxs("svg",{width:"16",height:"20",viewBox:"0 0 12 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"shrink-0",children:[e.jsxs("g",{clipPath:"url(#clip0_784_10666)",children:[e.jsx("path",{d:"M0 2.55857C0 1.14551 1.14551 0 2.55857 0H8.73194L12 3.3616V13.4414C12 14.8545 10.8545 16 9.44143 16H2.55857C1.14551 16 0 14.8545 0 13.4414V2.55857Z",fill:"#DDDDFE"}),e.jsx("path",{d:"M8.72656 3.3307H11.9906L8.72656 0V3.3307Z",fill:"#306AFF"}),e.jsx("line",{x1:"1.8125",y1:"5.94825",x2:"10.0235",y2:"5.94825",stroke:"#306AFF",strokeWidth:"1.27929"}),e.jsx("line",{x1:"1.8125",y1:"8.82715",x2:"6.01207",y2:"8.82715",stroke:"#306AFF",strokeWidth:"1.27929"}),e.jsx("line",{x1:"1.8125",y1:"11.7061",x2:"10.0235",y2:"11.7061",stroke:"#306AFF",strokeWidth:"1.27929"})]}),e.jsx("defs",{children:e.jsx("clipPath",{id:"clip0_784_10666",children:e.jsx("rect",{width:"12",height:"16",fill:"white"})})})]}),e.jsxs("div",{className:"flex-1 min-w-0",children:[e.jsx("span",{className:"font-normal text-gray-900 text-sm block truncate",children:s}),e.jsxs("span",{className:"text-xs text-gray-500",children:[n.length," entit",n.length!==1?"ies":"y"]})]})]})}),l&&e.jsx("div",{className:"border-t border-gray-200 bg-gray-50 p-3 flex flex-col gap-2",children:n.length>0?n.map(a=>{const p=$.has(a.sha),g=M.has(a.sha)||B.has(a.sha);return e.jsxs(x,{to:`/entity/${a.sha}`,className:"flex items-center gap-4 p-4 bg-white border border-gray-200 rounded-lg no-underline transition-all hover:shadow-md hover:-translate-y-0.5",style:{borderColor:"inherit"},onMouseEnter:r=>r.currentTarget.style.borderColor="#005C75",onMouseLeave:r=>r.currentTarget.style.borderColor="inherit",children:[e.jsxs("div",{className:"shrink-0 rounded-lg p-1.5 flex items-center justify-center",style:{backgroundColor:a.entityType==="visual"?"#8B5CF615":a.entityType==="library"?"#6366F1":"#EC4899"},children:[a.entityType==="visual"&&e.jsx(j,{size:16,style:{color:"#8B5CF6"}}),a.entityType==="library"&&e.jsx(V,{size:16,className:"text-white"}),a.entityType==="other"&&e.jsx(xe,{size:16,className:"text-white"})]}),e.jsxs("div",{className:"flex-1 min-w-0",children:[e.jsxs("div",{className:"flex items-center gap-2 mb-0.5",children:[e.jsx("div",{className:"font-semibold text-gray-900 text-sm",children:a.name}),a.entityType==="visual"&&e.jsx("div",{className:"px-2 py-0.5 rounded-sm text-[10px] uppercase font-bold",style:{backgroundColor:"#8B5CF60D",color:"#8B5CF6"},children:"Visual"}),a.entityType==="library"&&e.jsx("div",{className:"px-2 py-0.5 rounded-sm text-[10px] uppercase font-bold",style:{backgroundColor:"#0DBFE90D",color:"#0DBFE9"},children:"Library"}),a.entityType==="other"&&e.jsx("div",{className:"px-2 py-0.5 rounded-sm text-[10px] uppercase font-bold",style:{backgroundColor:"#EC48990D",color:"#EC4899"},children:"Other"})]}),a.description&&e.jsx("div",{className:"text-sm text-gray-500 mt-1 overflow-hidden text-ellipsis whitespace-nowrap",children:a.description})]}),e.jsxs("div",{className:"flex items-center gap-2 shrink-0",children:[p&&e.jsxs("div",{className:"px-2 py-1 bg-pink-100 rounded text-xs text-pink-700 font-semibold flex items-center gap-1.5",children:[e.jsx(w,{size:14,className:"animate-spin"}),"Analyzing..."]}),!p&&g&&e.jsx("div",{className:"px-2 py-1 bg-purple-50 border border-purple-300 rounded text-xs text-purple-700 font-semibold",children:"⏳ Queued"}),!p&&!g&&e.jsx("button",{onClick:r=>{r.preventDefault(),r.stopPropagation(),m(`Starting analysis for ${a.name}...`,"info",3e3),i.submit({entityShas:a.sha},{method:"post",action:"/api/analyze"})},disabled:i.state!=="idle",className:"px-3 py-1.5 text-white border-none rounded text-xs font-medium cursor-pointer transition-all disabled:bg-gray-400 disabled:cursor-not-allowed",style:{backgroundColor:"#005C75"},onMouseEnter:r=>r.currentTarget.style.backgroundColor="#004560",onMouseLeave:r=>r.currentTarget.style.backgroundColor="#005C75",children:"Analyze"})]})]},a.sha)}):e.jsx("div",{className:"text-sm text-gray-500 italic p-2",children:"No entity changes detected in this file"})})]},s)})}):e.jsxs("div",{className:"py-12 px-6 text-center flex flex-col items-center bg-gray-50 rounded-lg min-h-50 justify-center",children:[e.jsxs("svg",{width:"52",height:"68",viewBox:"0 0 26 34",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"mb-4 opacity-40",children:[e.jsxs("g",{clipPath:"url(#clip0_784_10631)",children:[e.jsx("path",{d:"M0 2.55857C0 1.14551 1.14551 0 2.55857 0H18.9423L26.0318 7.14651V31.4562C26.0318 32.8693 24.8863 34.0148 23.4732 34.0148H2.55857C1.14551 34.0148 0 32.8693 0 31.4562V2.55857Z",fill:"#D9D9D9"}),e.jsx("path",{d:"M18.9453 7.08081H26.0261L18.9453 0V7.08081Z",fill:"#646464"}),e.jsx("line",{x1:"3.92188",y1:"13.3633",x2:"21.7341",y2:"13.3633",stroke:"#646464",strokeWidth:"1.27929"}),e.jsx("line",{x1:"3.92188",y1:"19.4863",x2:"13.0321",y2:"19.4863",stroke:"#646464",strokeWidth:"1.27929"}),e.jsx("line",{x1:"3.92188",y1:"25.6016",x2:"21.7341",y2:"25.6016",stroke:"#646464",strokeWidth:"1.27929"})]}),e.jsx("defs",{children:e.jsx("clipPath",{id:"clip0_784_10631",children:e.jsx("rect",{width:"26",height:"34",fill:"white"})})})]}),e.jsx("p",{className:"text-sm font-medium text-gray-400 m-0 mb-2",children:"No Uncommitted Changes."})]})]}),e.jsxs("section",{className:"bg-white border border-gray-200 rounded-xl p-6",children:[e.jsx("div",{className:"flex justify-between items-start mb-5",children:e.jsxs("div",{children:[e.jsx("h2",{className:"text-[22px] font-semibold text-gray-900 m-0 mb-1",children:"Recent Simulations"}),e.jsx("p",{className:"text-sm text-gray-500 m-0",children:h.length>0?`Latest ${h.length} captured screenshot${h.length!==1?"s":""}`:"No simulations captured yet"})]})}),h.length>0&&!o?e.jsxs(e.Fragment,{children:[e.jsx("div",{className:"space-y-6 mb-5",children:K.map(s=>e.jsxs("div",{children:[e.jsxs("div",{className:"mb-3 flex items-center gap-2",children:[e.jsx("div",{className:"shrink-0 rounded-lg p-1.5 flex items-center justify-center bg-purple-100",children:e.jsx(j,{size:16,style:{color:"#8B5CF6"}})}),e.jsx(x,{to:`/entity/${s.entitySha}`,className:"text-sm font-semibold text-gray-900 no-underline hover:text-gray-700 transition-colors",children:s.entityName})]}),e.jsx("div",{className:"grid grid-cols-4 gap-3",children:s.scenarios.map((t,l)=>e.jsx(x,{to:t.scenarioId?`/entity/${t.entitySha}/scenarios/${t.scenarioId}`:`/entity/${t.entitySha}`,className:"aspect-4/3 border border-gray-200 rounded-lg overflow-hidden bg-gray-50 transition-all flex items-center justify-center hover:scale-105",onMouseEnter:n=>{n.currentTarget.style.borderColor="#005C75",n.currentTarget.style.boxShadow="0 4px 12px rgba(0, 92, 117, 0.2)"},onMouseLeave:n=>{n.currentTarget.style.borderColor="#E5E7EB",n.currentTarget.style.boxShadow="none"},title:`${t.scenarioName}`,children:e.jsx(_,{screenshotPath:t.screenshotPath,alt:t.scenarioName,className:"max-w-full max-h-full object-contain object-center"})},l))})]},s.entitySha))}),e.jsx(x,{to:"/simulations",className:"block text-center p-3 rounded-lg no-underline font-semibold text-sm transition-all",style:{color:"#005C75",backgroundColor:"#F6F9FC"},onMouseEnter:s=>s.currentTarget.style.backgroundColor="#EEF4F8",onMouseLeave:s=>s.currentTarget.style.backgroundColor="#F6F9FC",children:"View All Recent Simulations →"})]}):o?e.jsxs("div",{className:"p-0 bg-white rounded-lg flex flex-col gap-0",children:[b&&e.jsx("div",{className:"p-4 rounded-t-lg",style:{backgroundColor:"#F0F5F8",borderBottom:"2px solid #005C75"},children:e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx("span",{className:"text-[32px] leading-none",children:e.jsx(ie,{type:"visual"})}),e.jsxs("div",{className:"flex-1 min-w-0",children:[e.jsxs("div",{className:"text-base font-bold mb-1",style:{color:"#005C75"},children:["Generating Simulations for ",b.name]}),e.jsx("div",{className:"text-[13px] text-gray-500 font-mono overflow-hidden text-ellipsis whitespace-nowrap",children:b.filePath})]})]})}),E?e.jsxs("div",{className:"flex items-center gap-2 text-sm text-emerald-600 font-medium p-4 bg-emerald-50",children:[e.jsx("span",{className:"text-lg",children:"✅"}),e.jsxs("span",{children:["Complete (",N.length," scenario",N.length!==1?"s":"",")"]})]}):S?e.jsxs("div",{className:"flex items-center justify-between gap-1.5 text-sm font-medium p-4 bg-gray-50",style:{color:"#005C75"},children:[e.jsx(w,{size:18,className:"animate-spin shrink-0"}),e.jsx("span",{className:"flex-1 overflow-hidden text-ellipsis whitespace-nowrap font-mono text-xs",title:S,children:S}),u&&e.jsx("button",{onClick:()=>A(!0),className:"px-2 py-1.5 bg-gray-500 text-white border-none rounded-md text-[13px] font-medium cursor-pointer transition-all whitespace-nowrap self-start hover:bg-gray-600 hover:-translate-y-px",title:"View analysis logs",children:"📋 Logs"})]}):i.state!=="idle"?e.jsxs("div",{className:"flex items-center justify-between gap-1.5 text-sm font-medium p-4 bg-gray-50",style:{color:"#005C75"},children:[e.jsx(w,{size:18,className:"animate-spin shrink-0"}),e.jsx("span",{className:"flex-1 overflow-hidden text-ellipsis whitespace-nowrap",children:"Initializing analysis..."})]}):e.jsxs("div",{className:"flex items-center justify-between gap-1.5 text-sm font-medium p-4 bg-gray-50",style:{color:"#005C75"},children:[e.jsx(w,{size:18,className:"animate-spin shrink-0"}),e.jsx("span",{className:"flex-1 overflow-hidden text-ellipsis whitespace-nowrap",children:"Starting analysis..."})]}),N.length>0&&e.jsx("div",{className:"flex gap-2 flex-wrap p-4 bg-white border-t border-gray-200",children:N.slice(0,8).map((s,t)=>{const l=s.metadata?.screenshotPaths?.[0],n=Z.find(g=>g.name===s.name),a=n?.screenshotStartedAt&&!n?.screenshotFinishedAt;return l?e.jsx(x,{to:`/entity/${o}`,className:"w-20 h-15 border-2 border-gray-200 rounded overflow-hidden bg-gray-50 cursor-pointer transition-all flex items-center justify-center no-underline hover:border-blue-600 hover:scale-105 hover:shadow-md",children:e.jsx(_,{screenshotPath:l,alt:s.name,title:s.name,className:"max-w-full max-h-full object-contain object-center"})},t):e.jsx("div",{className:"w-20 h-15 border-2 border-dashed border-gray-300 rounded bg-gray-50 flex items-center justify-center text-2xl",title:`Capturing ${s.name}...`,children:e.jsx("span",{className:a?"animate-pulse":"text-gray-400",children:a?"⋯":"⏹️"})},t)})})]}):e.jsxs("div",{className:"flex flex-col items-center",children:[e.jsxs("div",{className:"py-12 px-6 text-center bg-gray-50 rounded-lg w-full flex flex-col items-center justify-center min-h-50",children:[e.jsx("div",{className:"mb-4 bg-[#efefef] rounded-lg p-3",children:e.jsx(j,{size:28,style:{color:"#999999"},strokeWidth:1.5})}),e.jsx("p",{className:"text-gray-700 m-0 font-semibold",children:"Start by analyzing your first component below."})]}),(f?.length??0)>0?e.jsx(e.Fragment,{children:e.jsx("div",{className:"flex flex-col gap-3 mt-6 w-full",children:(o&&b?[b]:f||[]).map(s=>e.jsx("div",{className:"flex flex-col gap-3",children:e.jsxs("div",{className:"flex items-center gap-4 p-4 bg-white border border-gray-200 rounded-lg transition-colors",style:{borderLeft:"4px solid #8B5CF6"},onMouseEnter:t=>{t.currentTarget.style.backgroundColor="#F9FAFB"},onMouseLeave:t=>{t.currentTarget.style.backgroundColor="white"},children:[e.jsxs(x,{to:`/entity/${s.sha}`,className:"flex items-center gap-4 flex-1 min-w-0 no-underline",children:[e.jsx("div",{className:"shrink-0 rounded-lg p-1.5 flex items-center justify-center bg-purple-100",children:e.jsx(j,{size:16,style:{color:"#8B5CF6"}})}),e.jsxs("div",{className:"flex-1 min-w-0",children:[e.jsx("div",{className:"font-semibold text-gray-900 text-sm mb-1",children:s.name}),e.jsx("div",{className:"text-xs text-gray-500 font-mono overflow-hidden text-ellipsis whitespace-nowrap",children:s.filePath})]})]}),e.jsx("button",{onClick:()=>O(s.sha,s.filePath||""),disabled:i.state!=="idle"||o!==null,className:"px-4 py-2 text-white border-none rounded text-sm font-medium cursor-pointer transition-all whitespace-nowrap shrink-0 disabled:bg-gray-400 disabled:cursor-not-allowed disabled:translate-y-0",style:{backgroundColor:"#005C75"},onMouseEnter:t=>t.currentTarget.style.backgroundColor="#004560",onMouseLeave:t=>t.currentTarget.style.backgroundColor="#005C75",title:o?"Please wait for current analysis to complete":"Analyze this entity",children:"Analyze"})]})},s.sha))})}):e.jsx("p",{className:"text-base text-gray-600 m-0 mb-6 leading-relaxed mt-6",children:"Run analysis on your visual components to create simulations and capture screenshots"})]})]})]}),U&&u&&e.jsx(re,{projectSlug:u,onClose:()=>A(!1)})]})})});export{Fe as default,Ee as meta};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import{b as E,j as e,L as g,w as L,u as q,g as D,r as A,d as K}from"./chunk-WWGJGFF6-CgXbbZRx.js";import{S as F}from"./settings-CEPbAsom.js";import{F as C}from"./file-text-18aYHZGd.js";import{L as _}from"./LogViewer-JkfQ-VaI.js";import{u as I}from"./useLastLogLine-Blr5oZDE.js";import{u as W}from"./useReportContext-CANr3QJ5.js";import{C as $,S as z,a as B}from"./ScenarioPreview-Bi-__7HT.js";import{c as T}from"./createLucideIcon-BBYuR56H.js";import{C as H}from"./chart-column-kA4jn9if.js";import"./SafeScreenshot-BrMAP1nP.js";import"./LibraryFunctionPreview-CVMmGuIc.js";const Q=[["path",{d:"M11 10.27 7 3.34",key:"16pf9h"}],["path",{d:"m11 13.73-4 6.93",key:"794ttg"}],["path",{d:"M12 22v-2",key:"1osdcq"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M14 12h8",key:"4f43i9"}],["path",{d:"m17 20.66-1-1.73",key:"eq3orb"}],["path",{d:"m17 3.34-1 1.73",key:"2wel8s"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"m20.66 17-1.73-1",key:"sg0v6f"}],["path",{d:"m20.66 7-1.73 1",key:"1ow05n"}],["path",{d:"m3.34 17 1.73-1",key:"nuk764"}],["path",{d:"m3.34 7 1.73 1",key:"1ulond"}],["circle",{cx:"12",cy:"12",r:"2",key:"1c9p78"}],["circle",{cx:"12",cy:"12",r:"8",key:"46899m"}]],J=T("cog",Q);const V=[["path",{d:"M13 5h8",key:"a7qcls"}],["path",{d:"M13 12h8",key:"h98zly"}],["path",{d:"M13 19h8",key:"c3s6r1"}],["path",{d:"m3 17 2 2 4-4",key:"1jhpwq"}],["rect",{x:"3",y:"4",width:"6",height:"6",rx:"1",key:"cif1o7"}]],R=T("list-todo",V);const O=[["rect",{x:"14",y:"3",width:"5",height:"18",rx:"1",key:"kaeet6"}],["rect",{x:"5",y:"3",width:"5",height:"18",rx:"1",key:"1wsw3u"}]],M=T("pause",O);function U(i){const s=Date.now(),c=new Date(i).getTime(),r=s-c,l=Math.floor(r/6e4),t=Math.floor(l/60);return l<1?"just now":l<60?`${l}m ago`:t<24?`${t}h ago`:`${Math.floor(t/24)}d ago`}function G({state:i,currentRun:s}){E();const c=s?.currentEntityShas&&s.currentEntityShas.length>0;return!i.currentlyExecuting&&(!i.jobs||i.jobs.length===0)?null:e.jsxs("div",{className:"bg-white border-2 rounded-xl shadow-lg p-5 mb-6",style:{borderColor:"#005C75"},children:[i.currentlyExecuting&&!c&&e.jsxs("div",{className:"mb-4 border-2 rounded-lg p-3",style:{backgroundColor:"#e8f1f5",borderColor:"#005C75"},children:[e.jsxs("div",{className:"flex items-center gap-2 mb-1",children:[e.jsx(F,{size:20,className:"animate-spin",style:{color:"#005C75"}}),e.jsx("span",{className:"text-sm font-bold",style:{color:"#003d52"},children:"Starting analysis..."})]}),e.jsxs("p",{className:"text-xs mb-2",style:{color:"#004a5e"},children:["Booting analyzer for"," ",i.currentlyExecuting.entities?.length||i.currentlyExecuting.entityShas?.length||1," ",(i.currentlyExecuting.entities?.length||i.currentlyExecuting.entityShas?.length)===1?"entity":"entities"]}),i.currentlyExecuting.entities&&i.currentlyExecuting.entities.length>0&&e.jsxs("div",{className:"space-y-1 mt-2 max-h-[100px] overflow-y-auto bg-white rounded-md p-2 border",style:{borderColor:"#b3d9e6"},children:[i.currentlyExecuting.entities.slice(0,3).map(r=>e.jsxs(g,{to:`/entity/${r.sha}`,className:"flex items-center gap-1.5 text-xs hover:underline font-medium truncate",title:`${r.name} - ${r.filePath}`,style:{color:"#005C75"},onMouseEnter:l=>l.currentTarget.style.color="#003d52",onMouseLeave:l=>l.currentTarget.style.color="#005C75",children:[e.jsx(C,{size:12,style:{strokeWidth:1.5,flexShrink:0}}),e.jsxs("span",{className:"truncate",children:[r.name,e.jsxs("span",{className:"text-gray-400 ml-1",children:["(",r.filePath,")"]})]})]},r.sha)),i.currentlyExecuting.entities.length>3&&e.jsxs("div",{className:"text-xs italic",style:{color:"#005C75"},children:["+",i.currentlyExecuting.entities.length-3," more entities"]})]}),e.jsx("p",{className:"text-xs mt-2",style:{color:"#005C75"},children:"This may take 2-3 minutes for environment setup"})]}),i.jobs.length>0&&e.jsxs("div",{className:"space-y-2",children:[i.jobs.slice(0,5).map((r,l)=>{r.entities?.length||r.entityShas?.length,r.filePaths?.length,r.entityNames?.[0];const t=r.entities&&r.entities.length>0;return e.jsx("div",{className:"flex items-start gap-3",children:e.jsxs("div",{className:"flex-1 min-w-0",children:[e.jsxs("div",{className:"flex items-center gap-2 mb-1",children:[e.jsxs("span",{className:"text-sm font-semibold text-gray-700",children:["Job ",l+1]}),e.jsx("span",{className:"text-xs text-gray-400",children:"•"}),e.jsx("span",{className:"text-xs text-gray-500",children:U(r.queuedAt)})]}),t&&e.jsxs("div",{className:"space-y-1 mt-2 max-h-[120px] overflow-y-auto bg-white rounded-md p-2 border border-gray-200",children:[r.entities.slice(0,5).map(n=>e.jsxs(g,{to:`/entity/${n.sha}`,className:"flex items-center gap-1.5 text-xs hover:underline font-medium truncate",title:`${n.name} - ${n.filePath}`,style:{color:"#005C75"},onMouseEnter:u=>u.currentTarget.style.color="#003d52",onMouseLeave:u=>u.currentTarget.style.color="#005C75",children:[e.jsx(C,{size:12,style:{strokeWidth:1.5,flexShrink:0}}),e.jsxs("span",{className:"truncate",children:[n.name,e.jsxs("span",{className:"text-gray-400 ml-1",children:["(",n.filePath,")"]})]})]},n.sha)),r.entities.length>5&&e.jsxs("div",{className:"text-xs text-gray-500 italic",children:["+",r.entities.length-5," more entities"]})]}),r.type==="recapture"&&r.scenarioId&&e.jsxs("div",{className:"text-xs text-gray-500 mt-1 font-mono",children:["Scenario: ",r.scenarioId]})]})},r.id)}),i.jobs.length>5&&e.jsxs("div",{className:"text-xs text-gray-500 text-center py-2",children:["+",i.jobs.length-5," more jobs in queue"]})]})]})}function X({activeTab:i,hasCurrentActivity:s,queuedCount:c,historicCount:r}){const l=[{id:"current",label:"Current Activity",hasContent:s,count:null},{id:"queued",label:"Queued Activity",hasContent:c>0,count:c},{id:"historic",label:"Historic Activity",hasContent:r>0,count:r}];return e.jsx("div",{className:"border-b border-gray-200 mb-6",children:e.jsx("nav",{className:"flex gap-8",children:l.map(t=>{const n=i===t.id;return e.jsx(g,{to:t.id==="current"?"/activity":`/activity/${t.id}`,className:`
|
|
2
|
+
relative pb-4 px-2 text-sm font-medium transition-colors
|
|
3
|
+
${n?"border-b-2":"text-gray-500 hover:text-gray-700"}
|
|
4
|
+
`,style:n?{color:"#005C75",borderColor:"#005C75"}:{},children:e.jsxs("span",{className:"flex items-center gap-2",children:[t.label,t.count!==null&&t.count>0&&e.jsx("span",{className:`
|
|
5
|
+
inline-flex items-center justify-center px-2 py-0.5 text-xs font-semibold rounded-full
|
|
6
|
+
${n?"":"bg-gray-200 text-gray-700"}
|
|
7
|
+
`,style:n?{backgroundColor:"#e8f1f5",color:"#005C75"}:{},children:t.count}),t.count===null&&t.hasContent&&e.jsx("span",{className:`
|
|
8
|
+
inline-block w-2 h-2 rounded-full
|
|
9
|
+
${n?"":"bg-gray-400"}
|
|
10
|
+
`,style:n?{backgroundColor:"#005C75"}:{}})]})},t.id)})})})}function Y(i){const s=new Date(i),r=Math.floor((new Date().getTime()-s.getTime())/1e3);if(r<60)return"just now";const l=Math.floor(r/60);if(l<60)return`${l}m ago`;const t=Math.floor(l/60);return t<24?`${t}h ago`:`${Math.floor(t/24)}d ago`}function Z({currentlyExecuting:i,currentRun:s,state:c,projectSlug:r,commitSha:l,onShowLogs:t,recentCompletedRuns:n,totalCompletedRuns:u}){const[h,P]=A.useState({}),[p,j]=A.useState({isKilling:!1,current:0,total:0}),w=K(),k=!!i,y=i?.entities||[],x=!!s?.analysisCompletedAt,N=k,{lastLine:v}=I(r,N);return A.useEffect(()=>{if(!s)return;const a=[s.analyzerPid,s.capturePid].filter(o=>!!o);if(a.length===0)return;const m=async()=>{try{const d=await(await fetch(`/api/process-status?pids=${a.join(",")}`)).json();if(d.processes){const b={};d.processes.forEach(S=>{b[S.pid]={isRunning:S.isRunning,processName:S.processName}}),P(b)}}catch(o){console.error("Failed to fetch process statuses:",o)}};m();const f=setInterval(()=>{m()},5e3);return()=>clearInterval(f)},[s?.analyzerPid,s?.capturePid]),N?e.jsxs("div",{className:"bg-white rounded-xl shadow-lg p-6",style:{borderWidth:"2px",borderColor:"#005C75"},children:[e.jsxs("div",{className:"flex items-start justify-between mb-4",children:[e.jsxs("div",{className:"flex items-center gap-3 mb-2",children:[e.jsx("div",{className:"p-2 bg-gray-100 rounded-full animate-spin",children:e.jsx(J,{size:24,className:"text-gray-700"})}),e.jsx("h3",{className:"text-xl font-bold text-gray-900",children:x?"Capture in Progress":"Analysis in Progress"})]}),e.jsx("button",{onClick:t,className:"px-4 py-2 text-white rounded-md text-sm font-semibold transition-colors",style:{backgroundColor:"#005C75"},onMouseEnter:a=>a.currentTarget.style.backgroundColor="#003d52",onMouseLeave:a=>a.currentTarget.style.backgroundColor="#005C75",children:"View Logs"})]}),x&&(s?.readyToBeCaptured??0)>0&&e.jsxs("div",{className:"rounded-md p-4 mb-4",style:{backgroundColor:"#f0f5f8",borderColor:"#b3d9e8",borderWidth:"1px"},children:[e.jsx("p",{className:"text-sm font-semibold mb-1",style:{color:"#00263d"},children:"Capture Progress:"}),e.jsxs("div",{className:"flex items-center gap-4",children:[e.jsxs("p",{className:"text-sm",style:{color:"#004560"},children:[s?.capturesCompleted??0," of"," ",s?.readyToBeCaptured??0," entities captured"]}),e.jsx("div",{className:"flex-1 rounded-full h-2",style:{backgroundColor:"#b3d9e8"},children:e.jsx("div",{className:"h-2 rounded-full transition-all duration-300",style:{backgroundColor:"#005C75",width:`${(s?.capturesCompleted??0)/(s?.readyToBeCaptured??1)*100}%`}})})]})]}),y&&y.length>0&&e.jsxs("div",{className:"mb-4",children:[e.jsxs("p",{className:"text-sm font-semibold text-gray-700 mb-2",children:[x?"Capturing":"Analyzing"," ",y.length," ",y.length===1?"Entity":"Entities",":"]}),e.jsx("div",{className:"space-y-3",children:y.map(a=>{const m=a.analyses?.[0],f=m?.scenarios||[],o=m?.status;return e.jsxs("div",{className:"bg-gray-50 rounded-md p-3",children:[e.jsxs(g,{to:`/entity/${a.sha}`,className:"flex items-center gap-1.5 text-sm hover:underline font-medium truncate mb-2",title:`${a.name} - ${a.filePath}`,style:{color:"#005C75"},onMouseEnter:d=>d.currentTarget.style.color="#003d52",onMouseLeave:d=>d.currentTarget.style.color="#005C75",children:[e.jsx(C,{size:14,style:{strokeWidth:1.5,flexShrink:0}}),e.jsxs("span",{className:"truncate",children:[a.name,e.jsxs("span",{className:"text-gray-500 ml-2 text-xs",children:["(",a.filePath,")"]})]})]}),f.length>0&&e.jsx("div",{className:"flex gap-2 flex-wrap",children:f.slice(0,5).map((d,b)=>d.id?e.jsx(z,{scenario:d,entity:{sha:a.sha,entityType:a.entityType},analysisStatus:o,queueState:c,processIsRunning:N,size:"small"},b):null)})]},a.sha)})})]}),v&&e.jsxs("div",{className:"flex flex-col gap-2 mb-4",children:[e.jsx("p",{className:"text-sm font-semibold text-gray-700",children:"Current Step:"}),e.jsx("p",{className:"text-sm text-gray-600 font-mono",children:v})]}),(s?.analyzerPid||s?.capturePid)&&e.jsxs("div",{className:"flex flex-col gap-4",children:[e.jsx("p",{className:"text-sm font-semibold text-gray-700",children:"Running Processes:"}),e.jsxs("div",{className:"flex items-center justify-between bg-gray-50 rounded-md p-3",children:[e.jsxs("div",{className:"flex items-center gap-4 flex-wrap",children:[s.analyzerPid&&e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsxs("span",{className:"text-xs font-mono bg-gray-200 px-2 py-1 rounded",children:["Analyzer: ",s.analyzerPid]}),h[s.analyzerPid]&&e.jsx("span",{className:`text-xs px-2 py-1 rounded ${h[s.analyzerPid].isRunning?"bg-green-100 text-green-700":"bg-red-100 text-red-700"}`,children:h[s.analyzerPid].isRunning?"Running":"Stopped"})]}),s.capturePid&&e.jsxs(e.Fragment,{children:[s.analyzerPid&&e.jsx("span",{className:"text-gray-400",children:"|"}),e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsxs("span",{className:"text-xs font-mono bg-gray-200 px-2 py-1 rounded",children:["Capture: ",s.capturePid]}),h[s.capturePid]&&e.jsx("span",{className:`text-xs px-2 py-1 rounded ${h[s.capturePid].isRunning?"bg-green-100 text-green-700":"bg-red-100 text-red-700"}`,children:h[s.capturePid].isRunning?"Running":"Stopped"})]})]})]}),(h[s.analyzerPid]?.isRunning||h[s.capturePid]?.isRunning)&&e.jsxs("div",{className:"flex items-center gap-3",children:[p.isKilling&&e.jsxs("span",{className:"text-xs text-gray-600 font-medium",children:["Killing process ",p.current," of"," ",p.total,"..."]}),e.jsx("button",{onClick:()=>{const a=[s.analyzerPid,s.capturePid].filter(o=>!!o&&h[o]?.isRunning);if(a.length===0)return;const m=a.join(", ");if(!confirm(`Are you sure you want to kill all running processes (${m})?`))return;j({isKilling:!0,current:1,total:a.length}),(async()=>{for(let o=0;o<a.length;o++){const d=a[o];try{await fetch("/api/kill-process",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({pid:d,commitSha:l||""})})}catch(b){console.error(`Failed to kill process ${d}:`,b)}o<a.length-1&&j({isKilling:!0,current:o+2,total:a.length})}j({isKilling:!1,current:0,total:0}),w.revalidate()})()},disabled:p.isKilling,className:"px-3 py-1 bg-red-600 text-white rounded-md text-xs font-semibold hover:bg-red-700 transition-colors whitespace-nowrap disabled:opacity-50 disabled:cursor-not-allowed",children:p.isKilling?"Killing...":"Kill All Processes"})]})]})]})]}):e.jsxs("div",{className:"space-y-6",children:[e.jsxs("div",{className:"bg-gray-50 rounded-xl p-12 text-center",children:[e.jsx("div",{className:"flex justify-center mb-4",children:e.jsx("div",{className:"p-2 bg-gray-200 rounded-lg",children:e.jsx(M,{size:20,className:"text-gray-600"})})}),e.jsx("h3",{className:"text-xl font-semibold text-gray-700 mb-2",children:"No Current Activity"}),e.jsxs("p",{className:"text-gray-500",children:["There are no analyses currently running. Trigger an analysis from the"," ",e.jsx(g,{to:"/git",className:"text-[#005C75] underline hover:text-[#004a5e]",children:"Git"})," ","or"," ",e.jsx(g,{to:"/files",className:"text-[#005C75] underline hover:text-[#004a5e]",children:"Files"})," ","page."]})]}),n&&n.length>0&&e.jsxs("div",{className:"bg-white border border-gray-200 rounded-xl p-6",children:[e.jsx("h3",{className:"text-lg font-semibold text-gray-900 mb-4",children:"Recent Completed Analyses"}),e.jsx("div",{className:"space-y-3",children:n.map(a=>{const m=a.analysisCompletedAt||a.archivedAt||a.createdAt,f=a.entities&&a.entities.length>0;return e.jsxs("div",{className:"bg-green-50 border border-green-200 rounded-lg p-4",children:[e.jsxs("div",{className:"flex items-center gap-2 mb-2",children:[e.jsx($,{size:18,className:"text-green-600"}),e.jsx("span",{className:"text-sm font-semibold text-gray-900",children:"Completed"}),e.jsx("span",{className:"text-xs text-gray-400",children:"•"}),e.jsx("span",{className:"text-xs text-gray-500",children:m?Y(m):"Unknown"})]}),f&&e.jsxs("div",{className:"ml-7 space-y-1",children:[a.entities.slice(0,3).map(o=>e.jsxs(g,{to:`/entity/${o.sha}`,className:"flex items-center gap-1.5 text-sm hover:underline truncate",title:`${o.name} - ${o.filePath}`,style:{color:"#005C75"},onMouseEnter:d=>d.currentTarget.style.color="#003d52",onMouseLeave:d=>d.currentTarget.style.color="#005C75",children:[e.jsx(C,{size:14,style:{strokeWidth:1.5,flexShrink:0}}),e.jsxs("span",{className:"truncate",children:[o.name,e.jsxs("span",{className:"text-gray-400 ml-1 text-xs",children:["(",o.filePath,")"]})]})]},o.sha)),a.entities.length>3&&e.jsxs("div",{className:"text-xs text-gray-500 italic",children:["+",a.entities.length-3," more entities"]})]})]},a.id)})}),u>3&&e.jsx("div",{className:"mt-4 text-center",children:e.jsx(g,{to:"/activity/historic",className:"text-sm font-medium",style:{color:"#005C75"},onMouseEnter:a=>a.currentTarget.style.color="#003d52",onMouseLeave:a=>a.currentTarget.style.color="#005C75",children:"View All Historic Activity →"})})]})]})}function ee({queueJobs:i,state:s,currentRun:c}){return!i||i.length===0?e.jsxs("div",{className:"bg-gray-50 rounded-xl p-12 text-center",children:[e.jsx("div",{className:"flex justify-center mb-4",children:e.jsx("div",{className:"p-3 bg-gray-200 rounded-lg",children:e.jsx(R,{size:20,className:"text-gray-600"})})}),e.jsx("h3",{className:"text-xl font-semibold text-gray-700 mb-2",children:"No Queued Jobs"}),e.jsx("p",{className:"text-gray-500",children:"Analysis jobs will appear here when they are queued but not yet started."})]}):e.jsx("div",{children:e.jsx(G,{state:s,currentRun:c})})}function se({historicalRuns:i,totalHistoricalRuns:s,currentPage:c,totalPages:r,tab:l}){return s===0?e.jsxs("div",{className:"bg-gray-50 rounded-xl p-12 text-center",children:[e.jsx("div",{className:"flex justify-center mb-4",children:e.jsx("div",{className:"p-3 bg-gray-200 rounded-lg",children:e.jsx(H,{size:20,className:"text-gray-600"})})}),e.jsx("h3",{className:"text-xl font-semibold text-gray-700 mb-2",children:"No Historic Activity"}),e.jsx("p",{className:"text-gray-500",children:"Completed analyses will appear here for historical reference."})]}):e.jsxs("div",{className:"bg-white border border-gray-200 rounded-xl p-6",children:[e.jsx("div",{className:"space-y-3",children:i.map(t=>{const n=!!t.failedAt,u=t.readyToBeCaptured,h=t.capturesCompleted??0,P=u===void 0?!0:u===0||h>=u,p=!n&&!!t.analysisCompletedAt&&P,j=t.createdAt?new Date(t.createdAt):null,w=t.failedAt?new Date(t.failedAt):t.analysisCompletedAt?new Date(t.analysisCompletedAt):null,k=j&&w?(w.getTime()-j.getTime())/1e3:null,y=t.entities&&t.entities.length>0;return e.jsx("div",{className:`border rounded-lg p-4 ${n?"bg-red-50 border-red-200":p?"bg-green-50 border-green-200":"bg-gray-50 border-gray-200"}`,children:e.jsxs("div",{className:"flex items-start justify-between",children:[e.jsxs("div",{className:"flex-1",children:[e.jsxs("div",{className:"flex items-center gap-2 mb-1",children:[n?e.jsx(B,{size:20,className:"text-red-500"}):p?e.jsx($,{size:20,className:"text-green-500"}):e.jsx(M,{size:20,className:"text-gray-400"}),e.jsx("span",{className:"text-sm font-semibold text-gray-900",children:n?"Failed":p?"Completed":"Incomplete"}),e.jsx("span",{className:"text-xs text-gray-400",children:"•"}),e.jsx("span",{className:"text-xs text-gray-500",children:t.archivedAt?new Date(t.archivedAt).toLocaleString():t.createdAt?new Date(t.createdAt).toLocaleString():"Unknown"})]}),y&&e.jsxs("div",{className:"ml-7 mt-2 space-y-2 max-h-[300px] overflow-y-auto bg-white rounded-md p-2 border border-gray-200",children:[t.entities.slice(0,5).map(x=>{const N=x.analyses?.[0],v=N?.scenarios||[];return e.jsxs("div",{className:"pb-2 border-b last:border-b-0 border-gray-100",children:[e.jsxs(g,{to:`/entity/${x.sha}`,className:"flex items-center gap-1.5 text-xs hover:underline font-medium truncate mb-1",title:`${x.name} - ${x.filePath}`,style:{color:"#005C75"},onMouseEnter:a=>a.currentTarget.style.color="#003d52",onMouseLeave:a=>a.currentTarget.style.color="#005C75",children:[e.jsx(C,{size:12,style:{strokeWidth:1.5,flexShrink:0}}),e.jsxs("span",{className:"truncate",children:[x.name,e.jsxs("span",{className:"text-gray-400 ml-1",children:["(",x.filePath,")"]})]})]}),v.length>0&&e.jsx("div",{className:"flex gap-1.5 flex-wrap mt-1.5",children:v.slice(0,5).map((a,m)=>a.id?e.jsx(z,{scenario:a,entity:{sha:x.sha,entityType:x.entityType},analysisStatus:N?.status,queueState:void 0,processIsRunning:!1,size:"small"},m):null)})]},x.sha)}),t.entities.length>5&&e.jsxs("div",{className:"text-xs text-gray-500 italic pt-1",children:["+",t.entities.length-5," more entities"]})]}),t.failureReason&&e.jsx("p",{className:"text-xs text-red-600 mt-2 font-mono ml-7",children:t.failureReason})]}),k!==null&&e.jsxs("div",{className:"text-xs text-gray-500",children:[k.toFixed(1),"s"]})]})},t.id)})}),r>1&&e.jsxs("div",{className:"mt-6 flex items-center justify-between border-t border-gray-200 pt-4",children:[e.jsxs("div",{className:"text-sm text-gray-600",children:["Showing ",(c-1)*20+1," -"," ",Math.min(c*20,s)," of"," ",s," runs"]}),e.jsxs("div",{className:"flex gap-2",children:[c>1&&e.jsx(g,{to:`/activity/${l}?page=${c-1}`,className:"px-3 py-1 bg-gray-100 text-gray-700 rounded-md text-sm font-medium hover:bg-gray-200 transition-colors",children:"Previous"}),c<r&&e.jsx(g,{to:`/activity/${l}?page=${c+1}`,className:"px-3 py-1 bg-gray-100 text-gray-700 rounded-md text-sm font-medium hover:bg-gray-200 transition-colors",children:"Next"})]})]})]})}const he=L(function(){const s=q(),c=D(),[r,l]=A.useState(!1);W({source:"activity-page"});const t=c.tab||"current";return e.jsxs("div",{className:"px-36 py-12",children:[e.jsxs("div",{className:"mb-8",children:[e.jsx("h1",{className:"text-3xl font-bold text-gray-900 mb-2",children:"Activity"}),e.jsx("p",{className:"text-gray-600",children:"View queued, current, and historical analysis activity"})]}),e.jsx(X,{activeTab:t,hasCurrentActivity:s.hasCurrentActivity,queuedCount:s.queuedCount,historicCount:s.totalHistoricalRuns}),t==="current"&&e.jsx(Z,{currentlyExecuting:s.currentlyExecuting,currentRun:s.currentRun,state:s.state,projectSlug:s.projectSlug,commitSha:s.commitSha,onShowLogs:()=>l(!0),recentCompletedRuns:s.recentCompletedRuns,totalCompletedRuns:s.totalCompletedRuns}),t==="queued"&&e.jsx(ee,{queueJobs:s.queueJobs,state:s.state,currentRun:s.currentRun}),t==="historic"&&e.jsx(se,{historicalRuns:s.historicalRuns,totalHistoricalRuns:s.totalHistoricalRuns,currentPage:s.currentPage,totalPages:s.totalPages,tab:t}),r&&s.projectSlug&&e.jsx(_,{projectSlug:s.projectSlug,onClose:()=>l(!1)})]})});export{he as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as t}from"./createLucideIcon-
|
|
1
|
+
import{c as t}from"./createLucideIcon-BBYuR56H.js";const a=[["path",{d:"M3 3v16a2 2 0 0 0 2 2h16",key:"c24i48"}],["path",{d:"M18 17V9",key:"2bz60n"}],["path",{d:"M13 17V5",key:"1frdt8"}],["path",{d:"M8 17v-3",key:"17ska0"}]],o=t("chart-column",a);export{o as C};
|
|
@@ -23,4 +23,4 @@ import(${JSON.stringify(t.entry.module)});`:" ";return f.createElement(f.Fragmen
|
|
|
23
23
|
console.log(
|
|
24
24
|
"💿 Hey developer 👋. You can provide a way better UX than this when your app throws errors. Check out https://reactrouter.com/how-to/error-boundary for more information."
|
|
25
25
|
);
|
|
26
|
-
`}});if(We(e))return f.createElement(fr,{title:"Unhandled Thrown Response!"},f.createElement("h1",{style:{fontSize:"24px"}},e.status," ",e.statusText),r);let n;if(e instanceof Error)n=e;else{let a=e==null?"Unknown Error":typeof e=="object"&&"toString"in e?e.toString():JSON.stringify(e);n=new Error(a)}return f.createElement(fr,{title:"Application Error!",isOutsideRemixApp:t},f.createElement("h1",{style:{fontSize:"24px"}},"Application Error"),f.createElement("pre",{style:{padding:"2rem",background:"hsla(10, 50%, 50%, 0.1)",color:"red",overflow:"auto"}},n.stack),r)}function fr({title:e,renderScripts:t,isOutsideRemixApp:r,children:n}){let{routeModules:a}=et();return a.root?.Layout&&!r?n:f.createElement("html",{lang:"en"},f.createElement("head",null,f.createElement("meta",{charSet:"utf-8"}),f.createElement("meta",{name:"viewport",content:"width=device-width,initial-scale=1,viewport-fit=cover"}),f.createElement("title",null,e)),f.createElement("body",null,f.createElement("main",{style:{fontFamily:"system-ui, sans-serif",padding:"2rem"}},n,t?f.createElement(jl,null):null)))}var da=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{da&&(window.__reactRouterVersion="7.10.1")}catch{}var fa=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,ha=f.forwardRef(function({onClick:t,discover:r="render",prefetch:n="none",relative:a,reloadDocument:o,replace:i,state:s,target:l,to:u,preventScrollReset:h,viewTransition:c,...m},g){let{basename:E,unstable_useTransitions:L}=f.useContext(be),R=typeof u=="string"&&fa.test(u),S,b=!1;if(typeof u=="string"&&R&&(S=u,da))try{let Y=new URL(window.location.href),U=u.startsWith("//")?new URL(Y.protocol+u):new URL(u),de=Re(U.pathname,E);U.origin===Y.origin&&de!=null?u=de+U.search+U.hash:b=!0}catch{se(!1,`<Link to="${u}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}let D=ti(u,{relative:a}),[T,M,O]=kl(n,m),p=Wl(u,{replace:i,state:s,target:l,preventScrollReset:h,relative:a,viewTransition:c,unstable_useTransitions:L});function H(Y){t&&t(Y),Y.defaultPrevented||p(Y)}let B=f.createElement("a",{...m,...O,href:S||D,onClick:b||o?t:H,ref:zl(g,M),target:l,"data-discover":!R&&r==="render"?"true":void 0});return T&&!R?f.createElement(f.Fragment,null,B,f.createElement(ua,{page:D})):B});ha.displayName="Link";var Hl=f.forwardRef(function({"aria-current":t="page",caseSensitive:r=!1,className:n="",end:a=!1,style:o,to:i,viewTransition:s,children:l,...u},h){let c=pt(i,{relative:u.relative}),m=Le(),g=f.useContext(Qe),{navigator:E,basename:L}=f.useContext(be),R=g!=null&&Xl(c)&&s===!0,S=E.encodeLocation?E.encodeLocation(c).pathname:c.pathname,b=m.pathname,D=g&&g.navigation&&g.navigation.location?g.navigation.location.pathname:null;r||(b=b.toLowerCase(),D=D?D.toLowerCase():null,S=S.toLowerCase()),D&&L&&(D=Re(D,L)||D);const T=S!=="/"&&S.endsWith("/")?S.length-1:S.length;let M=b===S||!a&&b.startsWith(S)&&b.charAt(T)==="/",O=D!=null&&(D===S||!a&&D.startsWith(S)&&D.charAt(S.length)==="/"),p={isActive:M,isPending:O,isTransitioning:R},H=M?t:void 0,B;typeof n=="function"?B=n(p):B=[n,M?"active":null,O?"pending":null,R?"transitioning":null].filter(Boolean).join(" ");let Y=typeof o=="function"?o(p):o;return f.createElement(ha,{...u,"aria-current":H,className:B,ref:h,style:Y,to:i,viewTransition:s},typeof l=="function"?l(p):l)});Hl.displayName="NavLink";var ma=f.forwardRef(({discover:e="render",fetcherKey:t,navigate:r,reloadDocument:n,replace:a,state:o,method:i=Tt,action:s,onSubmit:l,relative:u,preventScrollReset:h,viewTransition:c,...m},g)=>{let{unstable_useTransitions:E}=f.useContext(be),L=va(),R=Jl(s,{relative:u}),S=i.toLowerCase()==="get"?"get":"post",b=typeof s=="string"&&fa.test(s),D=T=>{if(l&&l(T),T.defaultPrevented)return;T.preventDefault();let M=T.nativeEvent.submitter,O=M?.getAttribute("formmethod")||i,p=()=>L(M||T.currentTarget,{fetcherKey:t,method:O,navigate:r,replace:a,state:o,relative:u,preventScrollReset:h,viewTransition:c});E&&r!==!1?f.startTransition(()=>p()):p()};return f.createElement("form",{ref:g,method:S,action:R,onSubmit:n?l:D,...m,"data-discover":!b&&e==="render"?"true":void 0})});ma.displayName="Form";function Bl({getKey:e,storageKey:t,...r}){let n=f.useContext(zt),{basename:a}=f.useContext(be),o=Le(),i=xr();Kl({getKey:e,storageKey:t});let s=f.useMemo(()=>{if(!n||!e)return null;let u=mr(o,i,a,e);return u!==o.key?u:null},[]);if(!n||n.isSpaMode)return null;let l=((u,h)=>{if(!window.history.state||!window.history.state.key){let c=Math.random().toString(32).slice(2);window.history.replaceState({key:c},"")}try{let m=JSON.parse(sessionStorage.getItem(u)||"{}")[h||window.history.state.key];typeof m=="number"&&window.scrollTo(0,m)}catch(c){console.error(c),sessionStorage.removeItem(u)}}).toString();return f.createElement("script",{...r,suppressHydrationWarning:!0,dangerouslySetInnerHTML:{__html:`(${l})(${JSON.stringify(t||hr)}, ${JSON.stringify(s)})`}})}Bl.displayName="ScrollRestoration";function pa(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function Ht(e){let t=f.useContext(Ye);return z(t,pa(e)),t}function ya(e){let t=f.useContext(Qe);return z(t,pa(e)),t}function Wl(e,{target:t,replace:r,state:n,preventScrollReset:a,relative:o,viewTransition:i,unstable_useTransitions:s}={}){let l=Yn(),u=Le(),h=pt(e,{relative:o});return f.useCallback(c=>{if(Ti(c,t)){c.preventDefault();let m=r!==void 0?r:Me(u)===Me(h),g=()=>l(e,{replace:m,state:n,preventScrollReset:a,relative:o,viewTransition:i});s?f.startTransition(()=>g()):g()}},[u,l,h,r,n,t,e,a,o,i,s])}function ps(e){se(typeof URLSearchParams<"u","You cannot use the `useSearchParams` hook in a browser that does not support the URLSearchParams API. If you need to support Internet Explorer 11, we recommend you load a polyfill such as https://github.com/ungap/url-search-params.");let t=f.useRef(ur(e)),r=f.useRef(!1),n=Le(),a=f.useMemo(()=>Oi(n.search,r.current?null:t.current),[n.search]),o=Yn(),i=f.useCallback((s,l)=>{const u=ur(typeof s=="function"?s(new URLSearchParams(a)):s);r.current=!0,o("?"+u,l)},[o,a]);return[a,i]}var Vl=0,Yl=()=>`__${String(++Vl)}__`;function va(){let{router:e}=Ht("useSubmit"),{basename:t}=f.useContext(be),r=hi(),n=e.fetch,a=e.navigate;return f.useCallback(async(o,i={})=>{let{action:s,method:l,encType:u,formData:h,body:c}=ki(o,t);if(i.navigate===!1){let m=i.fetcherKey||Yl();await n(m,r,i.action||s,{preventScrollReset:i.preventScrollReset,formData:h,body:c,formMethod:i.method||l,formEncType:i.encType||u,flushSync:i.flushSync})}else await a(i.action||s,{preventScrollReset:i.preventScrollReset,formData:h,body:c,formMethod:i.method||l,formEncType:i.encType||u,replace:i.replace,state:i.state,fromRouteId:r,flushSync:i.flushSync,viewTransition:i.viewTransition})},[n,a,t,r])}function Jl(e,{relative:t}={}){let{basename:r}=f.useContext(be),n=f.useContext(xe);z(n,"useFormAction must be used inside a RouteContext");let[a]=n.matches.slice(-1),o={...pt(e||".",{relative:t})},i=Le();if(e==null){o.search=i.search;let s=new URLSearchParams(o.search),l=s.getAll("index");if(l.some(h=>h==="")){s.delete("index"),l.filter(c=>c).forEach(c=>s.append("index",c));let h=s.toString();o.search=h?`?${h}`:""}}return(!e||e===".")&&a.route.index&&(o.search=o.search?o.search.replace(/^\?/,"?index&"):"?index"),r!=="/"&&(o.pathname=o.pathname==="/"?r:Ce([r,o.pathname])),Me(o)}function ys({key:e}={}){let{router:t}=Ht("useFetcher"),r=ya("useFetcher"),n=f.useContext(Rr),a=f.useContext(xe),o=a.matches[a.matches.length-1]?.route.id;z(n,"useFetcher must be used inside a FetchersContext"),z(a,"useFetcher must be used inside a RouteContext"),z(o!=null,'useFetcher can only be used on routes that contain a unique "id"');let i=f.useId(),[s,l]=f.useState(e||i);e&&e!==s&&l(e);let{deleteFetcher:u,getFetcher:h,resetFetcher:c,fetch:m}=t;f.useEffect(()=>(h(s),()=>u(s)),[u,h,s]);let g=f.useCallback(async(M,O)=>{z(o,"No routeId available for fetcher.load()"),await m(s,o,M,O)},[s,o,m]),E=va(),L=f.useCallback(async(M,O)=>{await E(M,{...O,navigate:!1,fetcherKey:s})},[s,E]),R=f.useCallback(M=>c(s,M),[c,s]),S=f.useMemo(()=>{let M=f.forwardRef((O,p)=>f.createElement(ma,{...O,navigate:!1,fetcherKey:s,ref:p}));return M.displayName="fetcher.Form",M},[s]),b=r.fetchers.get(s)||In,D=n.get(s);return f.useMemo(()=>({Form:S,submit:L,load:g,reset:R,...b,data:D}),[S,L,g,R,b,D])}var hr="react-router-scroll-positions",Mt={};function mr(e,t,r,n){let a=null;return n&&(r!=="/"?a=n({...e,pathname:Re(e.pathname,r)||e.pathname},t):a=n(e,t)),a==null&&(a=e.key),a}function Kl({getKey:e,storageKey:t}={}){let{router:r}=Ht("useScrollRestoration"),{restoreScrollPosition:n,preventScrollReset:a}=ya("useScrollRestoration"),{basename:o}=f.useContext(be),i=Le(),s=xr(),l=mi();f.useEffect(()=>(window.history.scrollRestoration="manual",()=>{window.history.scrollRestoration="auto"}),[]),Gl(f.useCallback(()=>{if(l.state==="idle"){let u=mr(i,s,o,e);Mt[u]=window.scrollY}try{sessionStorage.setItem(t||hr,JSON.stringify(Mt))}catch(u){se(!1,`Failed to save scroll positions in sessionStorage, <ScrollRestoration /> will not work properly (${u}).`)}window.history.scrollRestoration="auto"},[l.state,e,o,i,s,t])),typeof document<"u"&&(f.useLayoutEffect(()=>{try{let u=sessionStorage.getItem(t||hr);u&&(Mt=JSON.parse(u))}catch{}},[t]),f.useLayoutEffect(()=>{let u=r?.enableScrollRestoration(Mt,()=>window.scrollY,e?(h,c)=>mr(h,c,o,e):void 0);return()=>u&&u()},[r,o,e]),f.useLayoutEffect(()=>{if(n!==!1){if(typeof n=="number"){window.scrollTo(0,n);return}try{if(i.hash){let u=document.getElementById(decodeURIComponent(i.hash.slice(1)));if(u){u.scrollIntoView();return}}}catch{se(!1,`"${i.hash.slice(1)}" is not a decodable element ID. The view will not scroll to it.`)}a!==!0&&window.scrollTo(0,0)}},[i,n,a]))}function Gl(e,t){let{capture:r}={};f.useEffect(()=>{let n=r!=null?{capture:r}:void 0;return window.addEventListener("pagehide",e,n),()=>{window.removeEventListener("pagehide",e,n)}},[e,r])}function Xl(e,{relative:t}={}){let r=f.useContext(Er);z(r!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:n}=Ht("useViewTransitionState"),a=pt(e,{relative:t});if(!r.isTransitioning)return!1;let o=Re(r.currentLocation.pathname,n)||r.currentLocation.pathname,i=Re(r.nextLocation.pathname,n)||r.nextLocation.pathname;return Ft(a.pathname,i)!=null||Ft(a.pathname,o)!=null}export{Ln as A,Le as B,fs as C,jl as D,Ve as E,zt as F,Ql as G,ja as H,Na as I,ql as J,ha as L,hs as M,il as N,is as O,Ua as R,Bl as S,Yn as a,ys as b,yi as c,rs as d,ps as e,oi as f,z as g,ds as h,We as i,Zl as j,ms as k,os as l,Fe as m,pl as n,Cr as o,ts as p,cs as q,f as r,Cl as s,ss as t,pi as u,es as v,ls as w,us as x,ns as y,as as z};
|
|
26
|
+
`}});if(We(e))return f.createElement(fr,{title:"Unhandled Thrown Response!"},f.createElement("h1",{style:{fontSize:"24px"}},e.status," ",e.statusText),r);let n;if(e instanceof Error)n=e;else{let a=e==null?"Unknown Error":typeof e=="object"&&"toString"in e?e.toString():JSON.stringify(e);n=new Error(a)}return f.createElement(fr,{title:"Application Error!",isOutsideRemixApp:t},f.createElement("h1",{style:{fontSize:"24px"}},"Application Error"),f.createElement("pre",{style:{padding:"2rem",background:"hsla(10, 50%, 50%, 0.1)",color:"red",overflow:"auto"}},n.stack),r)}function fr({title:e,renderScripts:t,isOutsideRemixApp:r,children:n}){let{routeModules:a}=et();return a.root?.Layout&&!r?n:f.createElement("html",{lang:"en"},f.createElement("head",null,f.createElement("meta",{charSet:"utf-8"}),f.createElement("meta",{name:"viewport",content:"width=device-width,initial-scale=1,viewport-fit=cover"}),f.createElement("title",null,e)),f.createElement("body",null,f.createElement("main",{style:{fontFamily:"system-ui, sans-serif",padding:"2rem"}},n,t?f.createElement(jl,null):null)))}var da=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{da&&(window.__reactRouterVersion="7.10.1")}catch{}var fa=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,ha=f.forwardRef(function({onClick:t,discover:r="render",prefetch:n="none",relative:a,reloadDocument:o,replace:i,state:s,target:l,to:u,preventScrollReset:h,viewTransition:c,...m},g){let{basename:E,unstable_useTransitions:L}=f.useContext(be),R=typeof u=="string"&&fa.test(u),S,b=!1;if(typeof u=="string"&&R&&(S=u,da))try{let Y=new URL(window.location.href),U=u.startsWith("//")?new URL(Y.protocol+u):new URL(u),de=Re(U.pathname,E);U.origin===Y.origin&&de!=null?u=de+U.search+U.hash:b=!0}catch{se(!1,`<Link to="${u}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}let D=ti(u,{relative:a}),[T,M,O]=kl(n,m),p=Wl(u,{replace:i,state:s,target:l,preventScrollReset:h,relative:a,viewTransition:c,unstable_useTransitions:L});function H(Y){t&&t(Y),Y.defaultPrevented||p(Y)}let B=f.createElement("a",{...m,...O,href:S||D,onClick:b||o?t:H,ref:zl(g,M),target:l,"data-discover":!R&&r==="render"?"true":void 0});return T&&!R?f.createElement(f.Fragment,null,B,f.createElement(ua,{page:D})):B});ha.displayName="Link";var Hl=f.forwardRef(function({"aria-current":t="page",caseSensitive:r=!1,className:n="",end:a=!1,style:o,to:i,viewTransition:s,children:l,...u},h){let c=pt(i,{relative:u.relative}),m=Le(),g=f.useContext(Qe),{navigator:E,basename:L}=f.useContext(be),R=g!=null&&Xl(c)&&s===!0,S=E.encodeLocation?E.encodeLocation(c).pathname:c.pathname,b=m.pathname,D=g&&g.navigation&&g.navigation.location?g.navigation.location.pathname:null;r||(b=b.toLowerCase(),D=D?D.toLowerCase():null,S=S.toLowerCase()),D&&L&&(D=Re(D,L)||D);const T=S!=="/"&&S.endsWith("/")?S.length-1:S.length;let M=b===S||!a&&b.startsWith(S)&&b.charAt(T)==="/",O=D!=null&&(D===S||!a&&D.startsWith(S)&&D.charAt(S.length)==="/"),p={isActive:M,isPending:O,isTransitioning:R},H=M?t:void 0,B;typeof n=="function"?B=n(p):B=[n,M?"active":null,O?"pending":null,R?"transitioning":null].filter(Boolean).join(" ");let Y=typeof o=="function"?o(p):o;return f.createElement(ha,{...u,"aria-current":H,className:B,ref:h,style:Y,to:i,viewTransition:s},typeof l=="function"?l(p):l)});Hl.displayName="NavLink";var ma=f.forwardRef(({discover:e="render",fetcherKey:t,navigate:r,reloadDocument:n,replace:a,state:o,method:i=Tt,action:s,onSubmit:l,relative:u,preventScrollReset:h,viewTransition:c,...m},g)=>{let{unstable_useTransitions:E}=f.useContext(be),L=va(),R=Jl(s,{relative:u}),S=i.toLowerCase()==="get"?"get":"post",b=typeof s=="string"&&fa.test(s),D=T=>{if(l&&l(T),T.defaultPrevented)return;T.preventDefault();let M=T.nativeEvent.submitter,O=M?.getAttribute("formmethod")||i,p=()=>L(M||T.currentTarget,{fetcherKey:t,method:O,navigate:r,replace:a,state:o,relative:u,preventScrollReset:h,viewTransition:c});E&&r!==!1?f.startTransition(()=>p()):p()};return f.createElement("form",{ref:g,method:S,action:R,onSubmit:n?l:D,...m,"data-discover":!b&&e==="render"?"true":void 0})});ma.displayName="Form";function Bl({getKey:e,storageKey:t,...r}){let n=f.useContext(zt),{basename:a}=f.useContext(be),o=Le(),i=xr();Kl({getKey:e,storageKey:t});let s=f.useMemo(()=>{if(!n||!e)return null;let u=mr(o,i,a,e);return u!==o.key?u:null},[]);if(!n||n.isSpaMode)return null;let l=((u,h)=>{if(!window.history.state||!window.history.state.key){let c=Math.random().toString(32).slice(2);window.history.replaceState({key:c},"")}try{let m=JSON.parse(sessionStorage.getItem(u)||"{}")[h||window.history.state.key];typeof m=="number"&&window.scrollTo(0,m)}catch(c){console.error(c),sessionStorage.removeItem(u)}}).toString();return f.createElement("script",{...r,suppressHydrationWarning:!0,dangerouslySetInnerHTML:{__html:`(${l})(${JSON.stringify(t||hr)}, ${JSON.stringify(s)})`}})}Bl.displayName="ScrollRestoration";function pa(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function Ht(e){let t=f.useContext(Ye);return z(t,pa(e)),t}function ya(e){let t=f.useContext(Qe);return z(t,pa(e)),t}function Wl(e,{target:t,replace:r,state:n,preventScrollReset:a,relative:o,viewTransition:i,unstable_useTransitions:s}={}){let l=Yn(),u=Le(),h=pt(e,{relative:o});return f.useCallback(c=>{if(Ti(c,t)){c.preventDefault();let m=r!==void 0?r:Me(u)===Me(h),g=()=>l(e,{replace:m,state:n,preventScrollReset:a,relative:o,viewTransition:i});s?f.startTransition(()=>g()):g()}},[u,l,h,r,n,t,e,a,o,i,s])}function ps(e){se(typeof URLSearchParams<"u","You cannot use the `useSearchParams` hook in a browser that does not support the URLSearchParams API. If you need to support Internet Explorer 11, we recommend you load a polyfill such as https://github.com/ungap/url-search-params.");let t=f.useRef(ur(e)),r=f.useRef(!1),n=Le(),a=f.useMemo(()=>Oi(n.search,r.current?null:t.current),[n.search]),o=Yn(),i=f.useCallback((s,l)=>{const u=ur(typeof s=="function"?s(new URLSearchParams(a)):s);r.current=!0,o("?"+u,l)},[o,a]);return[a,i]}var Vl=0,Yl=()=>`__${String(++Vl)}__`;function va(){let{router:e}=Ht("useSubmit"),{basename:t}=f.useContext(be),r=hi(),n=e.fetch,a=e.navigate;return f.useCallback(async(o,i={})=>{let{action:s,method:l,encType:u,formData:h,body:c}=ki(o,t);if(i.navigate===!1){let m=i.fetcherKey||Yl();await n(m,r,i.action||s,{preventScrollReset:i.preventScrollReset,formData:h,body:c,formMethod:i.method||l,formEncType:i.encType||u,flushSync:i.flushSync})}else await a(i.action||s,{preventScrollReset:i.preventScrollReset,formData:h,body:c,formMethod:i.method||l,formEncType:i.encType||u,replace:i.replace,state:i.state,fromRouteId:r,flushSync:i.flushSync,viewTransition:i.viewTransition})},[n,a,t,r])}function Jl(e,{relative:t}={}){let{basename:r}=f.useContext(be),n=f.useContext(xe);z(n,"useFormAction must be used inside a RouteContext");let[a]=n.matches.slice(-1),o={...pt(e||".",{relative:t})},i=Le();if(e==null){o.search=i.search;let s=new URLSearchParams(o.search),l=s.getAll("index");if(l.some(h=>h==="")){s.delete("index"),l.filter(c=>c).forEach(c=>s.append("index",c));let h=s.toString();o.search=h?`?${h}`:""}}return(!e||e===".")&&a.route.index&&(o.search=o.search?o.search.replace(/^\?/,"?index&"):"?index"),r!=="/"&&(o.pathname=o.pathname==="/"?r:Ce([r,o.pathname])),Me(o)}function ys({key:e}={}){let{router:t}=Ht("useFetcher"),r=ya("useFetcher"),n=f.useContext(Rr),a=f.useContext(xe),o=a.matches[a.matches.length-1]?.route.id;z(n,"useFetcher must be used inside a FetchersContext"),z(a,"useFetcher must be used inside a RouteContext"),z(o!=null,'useFetcher can only be used on routes that contain a unique "id"');let i=f.useId(),[s,l]=f.useState(e||i);e&&e!==s&&l(e);let{deleteFetcher:u,getFetcher:h,resetFetcher:c,fetch:m}=t;f.useEffect(()=>(h(s),()=>u(s)),[u,h,s]);let g=f.useCallback(async(M,O)=>{z(o,"No routeId available for fetcher.load()"),await m(s,o,M,O)},[s,o,m]),E=va(),L=f.useCallback(async(M,O)=>{await E(M,{...O,navigate:!1,fetcherKey:s})},[s,E]),R=f.useCallback(M=>c(s,M),[c,s]),S=f.useMemo(()=>{let M=f.forwardRef((O,p)=>f.createElement(ma,{...O,navigate:!1,fetcherKey:s,ref:p}));return M.displayName="fetcher.Form",M},[s]),b=r.fetchers.get(s)||In,D=n.get(s);return f.useMemo(()=>({Form:S,submit:L,load:g,reset:R,...b,data:D}),[S,L,g,R,b,D])}var hr="react-router-scroll-positions",Mt={};function mr(e,t,r,n){let a=null;return n&&(r!=="/"?a=n({...e,pathname:Re(e.pathname,r)||e.pathname},t):a=n(e,t)),a==null&&(a=e.key),a}function Kl({getKey:e,storageKey:t}={}){let{router:r}=Ht("useScrollRestoration"),{restoreScrollPosition:n,preventScrollReset:a}=ya("useScrollRestoration"),{basename:o}=f.useContext(be),i=Le(),s=xr(),l=mi();f.useEffect(()=>(window.history.scrollRestoration="manual",()=>{window.history.scrollRestoration="auto"}),[]),Gl(f.useCallback(()=>{if(l.state==="idle"){let u=mr(i,s,o,e);Mt[u]=window.scrollY}try{sessionStorage.setItem(t||hr,JSON.stringify(Mt))}catch(u){se(!1,`Failed to save scroll positions in sessionStorage, <ScrollRestoration /> will not work properly (${u}).`)}window.history.scrollRestoration="auto"},[l.state,e,o,i,s,t])),typeof document<"u"&&(f.useLayoutEffect(()=>{try{let u=sessionStorage.getItem(t||hr);u&&(Mt=JSON.parse(u))}catch{}},[t]),f.useLayoutEffect(()=>{let u=r?.enableScrollRestoration(Mt,()=>window.scrollY,e?(h,c)=>mr(h,c,o,e):void 0);return()=>u&&u()},[r,o,e]),f.useLayoutEffect(()=>{if(n!==!1){if(typeof n=="number"){window.scrollTo(0,n);return}try{if(i.hash){let u=document.getElementById(decodeURIComponent(i.hash.slice(1)));if(u){u.scrollIntoView();return}}}catch{se(!1,`"${i.hash.slice(1)}" is not a decodable element ID. The view will not scroll to it.`)}a!==!0&&window.scrollTo(0,0)}},[i,n,a]))}function Gl(e,t){let{capture:r}={};f.useEffect(()=>{let n=r!=null?{capture:r}:void 0;return window.addEventListener("pagehide",e,n),()=>{window.removeEventListener("pagehide",e,n)}},[e,r])}function Xl(e,{relative:t}={}){let r=f.useContext(Er);z(r!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:n}=Ht("useViewTransitionState"),a=pt(e,{relative:t});if(!r.isTransitioning)return!1;let o=Re(r.currentLocation.pathname,n)||r.currentLocation.pathname,i=Re(r.nextLocation.pathname,n)||r.nextLocation.pathname;return Ft(a.pathname,i)!=null||Ft(a.pathname,o)!=null}export{as as A,Ln as B,fs as C,jl as D,Ve as E,zt as F,Ql as G,ja as H,Na as I,ql as J,ha as L,hs as M,il as N,is as O,Ua as R,Bl as S,Yn as a,ys as b,yi as c,rs as d,Le as e,ps as f,oi as g,z as h,We as i,Zl as j,ds as k,ms as l,Fe as m,os as n,pl as o,Cr as p,ts as q,f as r,Cl as s,cs as t,pi as u,ss as v,ls as w,es as x,us as y,ns as z};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c}from"./createLucideIcon-
|
|
1
|
+
import{c}from"./createLucideIcon-BBYuR56H.js";const e=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],r=c("circle-check",e);export{r as C};
|
package/codeyam-cli/src/webserver/build/client/assets/{clock-vWeoCemX.js → clock-BAfbP_iK.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c}from"./createLucideIcon-
|
|
1
|
+
import{c}from"./createLucideIcon-BBYuR56H.js";const o=[["path",{d:"M12 6v6l4 2",key:"mmk7yg"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],r=c("clock",o);export{r as C};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
<svg width="53" height="10" viewBox="0 0 53 10" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<path d="M4.22026 8.96478C2.83098 8.96478 1.7781 8.58469 1.06162 7.82452C0.353873 7.06435 0 6.03768 0 4.74452C0 3.81833 0.148539 3.02321 0.445618 2.35915C0.751434 1.68636 1.21453 1.17084 1.8349 0.812597C2.45527 0.445617 3.24602 0.262128 4.20716 0.262128C4.69646 0.262128 5.14208 0.301447 5.54401 0.380085C5.95468 0.449986 6.33476 0.5461 6.68427 0.668426V1.91353C6.33476 1.77373 5.95904 1.66888 5.55711 1.59898C5.16392 1.52034 4.74889 1.48102 4.31201 1.48102C3.26349 1.48102 2.5208 1.76063 2.08392 2.31983C1.65578 2.87904 1.4417 3.68727 1.4417 4.74452C1.4417 5.73187 1.67762 6.4833 2.14945 6.99882C2.62128 7.5056 3.35087 7.75899 4.33822 7.75899C4.74015 7.75899 5.14208 7.72841 5.54401 7.66724C5.95468 7.59734 6.33913 7.49249 6.69737 7.35269V8.61091C6.34787 8.72449 5.96778 8.81187 5.55711 8.87303C5.15518 8.9342 4.70957 8.96478 4.22026 8.96478Z" fill="#233B46"/>
|
|
3
|
+
<path d="M11.0192 8.96478C9.90079 8.96478 9.07946 8.68518 8.5552 8.12597C8.03968 7.56676 7.78193 6.76727 7.78193 5.7275C7.78193 4.68772 8.04405 3.88823 8.56831 3.32903C9.09257 2.76982 9.90953 2.49022 11.0192 2.49022C12.1376 2.49022 12.959 2.76982 13.4832 3.32903C14.0075 3.88823 14.2696 4.68772 14.2696 5.7275C14.2696 6.76727 14.0075 7.56676 13.4832 8.12597C12.9677 8.68518 12.1464 8.96478 11.0192 8.96478ZM11.0192 7.75899C11.6745 7.75899 12.1376 7.60171 12.4085 7.28716C12.6881 6.96387 12.8279 6.44398 12.8279 5.7275C12.8279 5.01101 12.6881 4.4955 12.4085 4.18094C12.1376 3.86639 11.6745 3.70911 11.0192 3.70911C10.3726 3.70911 9.90953 3.86639 9.62993 4.18094C9.35906 4.4955 9.22363 5.01101 9.22363 5.7275C9.22363 6.44398 9.35906 6.96387 9.62993 7.28716C9.90953 7.60171 10.3726 7.75899 11.0192 7.75899Z" fill="#233B46"/>
|
|
4
|
+
<path d="M18.2284 8.96478C17.6692 8.96478 17.1756 8.86867 16.7474 8.67644C16.3193 8.48421 15.9873 8.16529 15.7513 7.71967C15.5154 7.27405 15.3975 6.67553 15.3975 5.92409C15.3975 5.1814 15.5242 4.55666 15.7775 4.04988C16.0309 3.53436 16.3804 3.14554 16.8261 2.88341C17.2804 2.62128 17.7916 2.49022 18.3595 2.49022C18.7352 2.49022 19.0673 2.5339 19.3556 2.62128C19.6527 2.70866 19.9366 2.84409 20.2075 3.02758V0H21.6361V8.83371H20.4172L20.3255 8.21771C20.0459 8.4711 19.74 8.65896 19.408 8.78129C19.076 8.90362 18.6828 8.96478 18.2284 8.96478ZM18.6085 7.89005C19.2464 7.89005 19.7794 7.67161 20.2075 7.23473V4.12852C19.7968 3.76154 19.2813 3.57805 18.661 3.57805C18.0581 3.57805 17.6037 3.77901 17.2979 4.18094C16.9921 4.58287 16.8392 5.16829 16.8392 5.9372C16.8392 6.6799 16.979 7.19105 17.2586 7.47065C17.5469 7.75025 17.9969 7.89005 18.6085 7.89005Z" fill="#233B46"/>
|
|
5
|
+
<path d="M26.3055 8.96478C25.222 8.96478 24.3832 8.69828 23.789 8.16529C23.1949 7.63229 22.8978 6.81533 22.8978 5.71439C22.8978 4.7183 23.1512 3.93192 23.658 3.35524C24.1648 2.77856 24.9337 2.49022 25.9647 2.49022C26.9084 2.49022 27.6161 2.73924 28.0879 3.23728C28.5685 3.72659 28.8088 4.36006 28.8088 5.13771V6.29107H24.2609C24.3308 6.89397 24.5492 7.309 24.9162 7.53618C25.2832 7.76336 25.8424 7.87695 26.5938 7.87695C26.9084 7.87695 27.2317 7.84637 27.5637 7.7852C27.8957 7.72404 28.1841 7.6454 28.4287 7.54929V8.5978C28.1491 8.72013 27.8258 8.81187 27.4588 8.87303C27.1006 8.9342 26.7161 8.96478 26.3055 8.96478ZM24.2609 5.36052H27.5506V4.92801C27.5506 4.49986 27.4326 4.16784 27.1967 3.93192C26.9608 3.68727 26.5632 3.56494 26.004 3.56494C25.34 3.56494 24.8812 3.70911 24.6278 3.99745C24.3832 4.28579 24.2609 4.74015 24.2609 5.36052Z" fill="#233B46"/>
|
|
6
|
+
<path d="M31.7234 8.83371V5.70128L28.6959 0.393192H30.1769L32.4312 4.4955L34.6855 0.393192H36.1665L33.1389 5.70128V8.83371H31.7234Z" fill="#233B46"/>
|
|
7
|
+
<path d="M37.7325 8.96478C37.3393 8.96478 36.9723 8.89488 36.6316 8.75508C36.2995 8.61527 36.033 8.40557 35.8321 8.12597C35.6311 7.83763 35.5306 7.48376 35.5306 7.06435C35.5306 6.47019 35.7316 5.99399 36.1335 5.63575C36.5442 5.26877 37.1733 5.08528 38.0209 5.08528H40.013V4.81005C40.013 4.51297 39.965 4.27706 39.8689 4.1023C39.7815 3.92755 39.6155 3.80086 39.3708 3.72222C39.1349 3.64358 38.7854 3.60426 38.3223 3.60426C37.5883 3.60426 36.9024 3.71348 36.2646 3.93192V2.8703C36.5442 2.75671 36.885 2.66497 37.2869 2.59507C37.6888 2.52517 38.1213 2.49022 38.5844 2.49022C39.4931 2.49022 40.1834 2.67371 40.6552 3.04068C41.1358 3.40766 41.3761 4.00619 41.3761 4.83626V8.83371H40.1572L40.0655 8.20461C39.8121 8.44926 39.4975 8.63712 39.1218 8.76818C38.7548 8.89925 38.2917 8.96478 37.7325 8.96478ZM38.1126 7.94248C38.5407 7.94248 38.9121 7.87258 39.2266 7.73278C39.5499 7.58424 39.8121 7.38764 40.013 7.14299V6.05516H38.0471C37.6277 6.05516 37.3218 6.13816 37.1296 6.30418C36.9461 6.46146 36.8544 6.70611 36.8544 7.03814C36.8544 7.36143 36.9636 7.59298 37.182 7.73278C37.4005 7.87258 37.7107 7.94248 38.1126 7.94248Z" fill="#233B46"/>
|
|
8
|
+
<path d="M42.9603 8.83371V2.62128H44.271L44.3365 3.2766C44.6423 3.03195 44.9787 2.83972 45.3457 2.69992C45.7127 2.56012 46.1059 2.49022 46.5253 2.49022C46.9709 2.49022 47.316 2.56449 47.5607 2.71303C47.8141 2.85283 48.0063 3.04942 48.1374 3.30281C48.4257 3.0669 48.7577 2.87467 49.1334 2.72613C49.5092 2.56885 49.9591 2.49022 50.4834 2.49022C51.1999 2.49022 51.7285 2.67371 52.0693 3.04068C52.41 3.40766 52.5804 3.97124 52.5804 4.73141V8.83371H51.178V4.87558C51.178 4.39501 51.0776 4.05862 50.8766 3.86639C50.6756 3.67416 50.348 3.57805 49.8936 3.57805C49.5965 3.57805 49.3126 3.63047 49.0417 3.73532C48.7796 3.84018 48.5524 3.99745 48.3602 4.20716C48.3864 4.30327 48.4038 4.40375 48.4126 4.5086C48.4213 4.61345 48.4257 4.72704 48.4257 4.84937V8.83371H47.1019V4.88869C47.1019 4.43433 47.0233 4.1023 46.866 3.8926C46.7088 3.6829 46.4117 3.57805 45.9748 3.57805C45.669 3.57805 45.3763 3.65232 45.0967 3.80086C44.8258 3.94066 44.5811 4.11104 44.3627 4.31201V8.83371H42.9603Z" fill="#233B46"/>
|
|
9
|
+
</svg>
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as s}from"./chunk-WWGJGFF6-
|
|
1
|
+
import{r as s}from"./chunk-WWGJGFF6-CgXbbZRx.js";const C=t=>t.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),w=t=>t.replace(/^([A-Z])|[\s-_]+(\w)/g,(e,r,o)=>o?o.toUpperCase():r.toLowerCase()),i=t=>{const e=w(t);return e.charAt(0).toUpperCase()+e.slice(1)},l=(...t)=>t.filter((e,r,o)=>!!e&&e.trim()!==""&&o.indexOf(e)===r).join(" ").trim(),f=t=>{for(const e in t)if(e.startsWith("aria-")||e==="role"||e==="title")return!0};var h={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};const g=s.forwardRef(({color:t="currentColor",size:e=24,strokeWidth:r=2,absoluteStrokeWidth:o,className:n="",children:a,iconNode:u,...c},p)=>s.createElement("svg",{ref:p,...h,width:e,height:e,stroke:t,strokeWidth:o?Number(r)*24/Number(e):r,className:l("lucide",n),...!a&&!f(c)&&{"aria-hidden":"true"},...c},[...u.map(([m,d])=>s.createElement(m,d)),...Array.isArray(a)?a:[a]]));const b=(t,e)=>{const r=s.forwardRef(({className:o,...n},a)=>s.createElement(g,{ref:a,iconNode:e,className:l(`lucide-${C(i(t))}`,`lucide-${t}`,o),...n}));return r.displayName=i(t),r};export{b as c};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{w as t,b as r,j as e}from"./chunk-WWGJGFF6-
|
|
1
|
+
import{w as t,b as r,j as e}from"./chunk-WWGJGFF6-CgXbbZRx.js";import{S as i}from"./ScenarioViewer-XmIpHcLJ.js";import{W as n}from"./InteractivePreview-TlHocYno.js";import"./LogViewer-JkfQ-VaI.js";import"./SafeScreenshot-BrMAP1nP.js";import"./useLastLogLine-Blr5oZDE.js";import"./ReportIssueModal-Cqce0_KG.js";import"./settings-CEPbAsom.js";import"./createLucideIcon-BBYuR56H.js";import"./circle-check-B2oHQ-zo.js";import"./triangle-alert-BthANBVv.js";import"./index-_LjBsTxX.js";const v=()=>[{title:"Empty State - CodeYam"},{name:"description",content:"Simulations empty state development view"}],g=t(function(){r();const s={sha:"mock-sha",name:"Dashboard",filePath:"codeyam-cli/src/webserver/app/routes/_index.tsx",entityType:"visual"};return e.jsx(n,{children:e.jsxs("div",{className:"h-screen bg-[#f9f9f9] flex flex-col overflow-hidden",children:[e.jsx("header",{className:"bg-white border-b border-gray-200 shrink-0 relative h-[54px]",children:e.jsxs("div",{className:"flex items-center h-full px-6 gap-6",children:[e.jsxs("div",{className:"flex items-center gap-3 min-w-0",children:[e.jsx("svg",{width:"17",height:"17",viewBox:"0 0 17 17",fill:"none",className:"shrink-0",children:e.jsx("path",{d:"M13 8.5H4M4 8.5L8.5 4M4 8.5L8.5 13",stroke:"#005c75",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})}),e.jsx("h1",{className:"text-lg font-semibold text-black m-0 leading-[26px] shrink-0",children:"Dashboard"}),e.jsx("span",{className:"text-xs text-[#626262] font-mono whitespace-nowrap overflow-hidden text-ellipsis min-w-0",children:"codeyam-cli/src/webserver/app/routes/_index.tsx"})]}),e.jsxs("div",{className:"flex items-center gap-3 shrink-0",children:[e.jsxs("div",{className:"flex items-center gap-2 px-[15px] py-0 h-[26px] bg-[#efefef] border border-[#e1e1e1] rounded",children:[e.jsx("div",{className:"w-2 h-2 rounded-full bg-[#626262]"}),e.jsx("span",{className:"text-xs font-semibold text-[#626262]",children:"Not analyzed"})]}),e.jsx("button",{className:"px-[15px] py-0 h-[26px] bg-[#005c75] text-white rounded text-xs font-semibold border-none cursor-pointer hover:bg-[#004a5e] transition-colors",children:"Analyze"})]}),e.jsxs("div",{className:"flex items-center gap-1 text-[10px] text-[#626262] ml-auto",children:[e.jsx("span",{className:"leading-[22px]",children:"Next Entity"}),e.jsx("svg",{width:"17",height:"17",viewBox:"0 0 17 17",fill:"none",className:"shrink-0",children:e.jsx("path",{d:"M4 8.5H13M13 8.5L8.5 4M13 8.5L8.5 13",stroke:"#005c75",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})})]})]})}),e.jsx("div",{className:"bg-[#efefef] border-b border-[#efefef] shrink-0",children:e.jsxs("div",{className:"flex items-center gap-3 h-11 px-[15px]",children:[e.jsxs("div",{className:"px-4 flex items-center justify-center gap-3 shrink-0 text-sm rounded bg-[#343434] text-[#efefef] font-semibold h-8",children:["Scenarios",e.jsx("span",{className:"px-2 py-0.5 rounded-[9px] text-xs font-semibold bg-[#cbf3fa] text-[#005c75] min-w-[25px] text-center",children:"0"})]}),e.jsxs("div",{className:"px-4 flex items-center justify-center gap-3 shrink-0 text-sm rounded-[9px] text-[#3e3e3e] font-normal",children:["Related Entities",e.jsx("span",{className:"px-2 py-0.5 rounded-[9px] text-xs font-semibold bg-[#e1e1e1] text-[#3e3e3e] min-w-[25px] text-center",children:"5"})]}),e.jsx("div",{className:"px-4 shrink-0 text-sm text-[#3e3e3e] font-normal",children:"Code"}),e.jsx("div",{className:"px-4 shrink-0 text-sm text-[#3e3e3e] font-normal",children:"Data Structure"}),e.jsx("div",{className:"px-4 shrink-0 text-sm text-[#3e3e3e] font-normal",children:"History"})]})}),e.jsxs("div",{className:"flex flex-1 gap-0 min-h-0",children:[e.jsx("div",{className:"w-[165px] bg-[#e1e1e1] border-r border-[#c7c7c7] flex items-center justify-center shrink-0",children:e.jsx("span",{className:"text-xs font-medium text-[#8e8e8e] leading-5",children:"No Scenarios"})}),e.jsx(i,{selectedScenario:null,analysis:void 0,entity:s,viewMode:"screenshot",cacheBuster:Date.now(),hasScenarios:!1,isAnalyzing:!1,projectSlug:null,hasAnApiKey:!0})]})]})})});export{g as default,v as meta};
|