@codeyam/codeyam-cli 0.1.5 → 0.1.6
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/package.json +2 -2
- package/analyzer-template/packages/ai/package.json +1 -1
- package/analyzer-template/packages/ai/src/lib/completionCall.ts +102 -113
- package/analyzer-template/packages/aws/package.json +1 -1
- package/codeyam-cli/src/cli.js +5 -11
- package/codeyam-cli/src/cli.js.map +1 -1
- package/codeyam-cli/src/utils/install-skills.js +4 -4
- package/codeyam-cli/src/utils/install-skills.js.map +1 -1
- package/codeyam-cli/src/utils/requireSimulations.js +1 -1
- package/codeyam-cli/src/utils/requireSimulations.js.map +1 -1
- package/codeyam-cli/src/utils/ruleReflection/__tests__/contextBuilder.test.js +5 -6
- package/codeyam-cli/src/utils/ruleReflection/__tests__/contextBuilder.test.js.map +1 -1
- package/codeyam-cli/src/utils/ruleReflection/__tests__/promptBuilder.test.js +2 -5
- package/codeyam-cli/src/utils/ruleReflection/__tests__/promptBuilder.test.js.map +1 -1
- package/codeyam-cli/src/utils/rules/__tests__/rulePlacement.test.js +72 -0
- package/codeyam-cli/src/utils/rules/__tests__/rulePlacement.test.js.map +1 -0
- package/codeyam-cli/src/utils/rules/__tests__/sourceFiles.test.js +11 -18
- package/codeyam-cli/src/utils/rules/__tests__/sourceFiles.test.js.map +1 -1
- package/codeyam-cli/src/utils/rules/rulePlacement.js +65 -0
- package/codeyam-cli/src/utils/rules/rulePlacement.js.map +1 -0
- package/codeyam-cli/src/utils/rules/sourceFiles.js +2 -6
- package/codeyam-cli/src/utils/rules/sourceFiles.js.map +1 -1
- package/codeyam-cli/src/utils/simulationGateMiddleware.js +63 -42
- package/codeyam-cli/src/utils/simulationGateMiddleware.js.map +1 -1
- package/codeyam-cli/src/webserver/app/routes/api.agent-transcripts.js +486 -0
- package/codeyam-cli/src/webserver/app/routes/api.agent-transcripts.js.map +1 -0
- package/codeyam-cli/src/webserver/backgroundServer.js +10 -0
- package/codeyam-cli/src/webserver/backgroundServer.js.map +1 -1
- package/codeyam-cli/src/webserver/build/client/assets/{CopyButton-jNYXRRNI.js → CopyButton-CtmbP4Gl.js} +1 -1
- package/codeyam-cli/src/webserver/build/client/assets/{EntityItem-bwuHPyTa.js → EntityItem-DlMph_Hm.js} +1 -1
- package/codeyam-cli/src/webserver/build/client/assets/{EntityTypeBadge-CvzqMxcu.js → EntityTypeBadge-B-0PjGOU.js} +1 -1
- package/codeyam-cli/src/webserver/build/client/assets/{EntityTypeIcon-BH0XDim7.js → EntityTypeIcon-DN9eiJAO.js} +1 -1
- package/codeyam-cli/src/webserver/build/client/assets/{InlineSpinner-EhOseatT.js → InlineSpinner-C1rIyZdV.js} +1 -1
- package/codeyam-cli/src/webserver/build/client/assets/{InteractivePreview-yjIHlOGa.js → InteractivePreview-rE_fI2h2.js} +2 -2
- package/codeyam-cli/src/webserver/build/client/assets/{LibraryFunctionPreview-Cq5o8jL4.js → LibraryFunctionPreview-CnatsCw2.js} +1 -1
- package/codeyam-cli/src/webserver/build/client/assets/{LoadingDots-BvMu2i-g.js → LoadingDots-CSP6DZrh.js} +1 -1
- package/codeyam-cli/src/webserver/build/client/assets/{LogViewer-kgBTLoJD.js → LogViewer-CMK8Q7yk.js} +1 -1
- package/codeyam-cli/src/webserver/build/client/assets/{ReportIssueModal-BzPgx-xO.js → ReportIssueModal-TCV_HBjy.js} +1 -1
- package/codeyam-cli/src/webserver/build/client/assets/{SafeScreenshot-CwZrv-Ok.js → SafeScreenshot-CG2uh31y.js} +1 -1
- package/codeyam-cli/src/webserver/build/client/assets/{ScenarioViewer-BX2Ny2Qj.js → ScenarioViewer-CU_TDYd8.js} +1 -1
- package/codeyam-cli/src/webserver/build/client/assets/{TruncatedFilePath-CDpEprKa.js → TruncatedFilePath-D7IoaWUW.js} +1 -1
- package/codeyam-cli/src/webserver/build/client/assets/{_index-BRx8ZGZo.js → _index-B8z7mjR-.js} +1 -1
- package/codeyam-cli/src/webserver/build/client/assets/{activity.(_tab)-4S4yPfFw.js → activity.(_tab)-DZu78RI1.js} +1 -1
- package/codeyam-cli/src/webserver/build/client/assets/agent-transcripts-DxCa1oBt.js +23 -0
- package/codeyam-cli/src/webserver/build/client/assets/api.rule-path-l0sNRNKZ.js +1 -0
- package/codeyam-cli/src/webserver/build/client/assets/{book-open-D4IPYH_y.js → book-open-Bp5FLkd4.js} +1 -1
- package/codeyam-cli/src/webserver/build/client/assets/{chevron-down-CG65viiV.js → chevron-down-DQJA9f4o.js} +1 -1
- package/codeyam-cli/src/webserver/build/client/assets/{chunk-JZWAC4HX-DB3aFuEO.js → chunk-JZWAC4HX-7VptmeIr.js} +1 -1
- package/codeyam-cli/src/webserver/build/client/assets/{circle-check-igfMr5DY.js → circle-check-B6C4LY9o.js} +1 -1
- package/codeyam-cli/src/webserver/build/client/assets/{copy-Coc4o_8c.js → copy-6nzYCu0G.js} +1 -1
- package/codeyam-cli/src/webserver/build/client/assets/{createLucideIcon-D1zB-pYc.js → createLucideIcon-D-QUFOwe.js} +1 -1
- package/codeyam-cli/src/webserver/build/client/assets/{dev.empty-JTAjQ54M.js → dev.empty-DmzSmblj.js} +1 -1
- package/codeyam-cli/src/webserver/build/client/assets/{entity._sha._-B0h9AqE6.js → entity._sha._--zvFJ4OH.js} +1 -1
- package/codeyam-cli/src/webserver/build/client/assets/{entity._sha.scenarios._scenarioId.fullscreen-DjLxr2JB.js → entity._sha.scenarios._scenarioId.fullscreen-DVTcUnur.js} +1 -1
- package/codeyam-cli/src/webserver/build/client/assets/{entity._sha_.create-scenario-CtYowLOt.js → entity._sha_.create-scenario-BVgNO76F.js} +1 -1
- package/codeyam-cli/src/webserver/build/client/assets/{entity._sha_.edit._scenarioId-PePWg17F.js → entity._sha_.edit._scenarioId-C7ysA4Jq.js} +1 -1
- package/codeyam-cli/src/webserver/build/client/assets/{entry.client-I-Wo99C_.js → entry.client-CU6EUArK.js} +1 -1
- package/codeyam-cli/src/webserver/build/client/assets/{fileTableUtils-9sMMAiWJ.js → fileTableUtils-EWpfFU4X.js} +1 -1
- package/codeyam-cli/src/webserver/build/client/assets/{files-Co65J0s3.js → files-CrxAoWIL.js} +1 -1
- package/codeyam-cli/src/webserver/build/client/assets/{git-BdHOxVfg.js → git-BldHtKeW.js} +1 -1
- package/codeyam-cli/src/webserver/build/client/assets/{index-CUM5iXwc.js → index-7-1FmlHo.js} +1 -1
- package/codeyam-cli/src/webserver/build/client/assets/{index-_417gcQW.js → index-DuYcwYp_.js} +1 -1
- package/codeyam-cli/src/webserver/build/client/assets/{labs-DAvt-sy-.js → labs-CPPVOSWB.js} +1 -1
- package/codeyam-cli/src/webserver/build/client/assets/{loader-circle-TzRHMVog.js → loader-circle-BnDcD54R.js} +1 -1
- package/codeyam-cli/src/webserver/build/client/assets/manifest-c1fc3656.js +1 -0
- package/codeyam-cli/src/webserver/build/client/assets/{memory-bAp4y2hv.js → memory-CfpYxpNu.js} +19 -18
- package/codeyam-cli/src/webserver/build/client/assets/{pause-hjzB7t2z.js → pause-DhQX2g22.js} +1 -1
- package/codeyam-cli/src/webserver/build/client/assets/{root-DoB3B10-.js → root-CAAbm4U5.js} +1 -1
- package/codeyam-cli/src/webserver/build/client/assets/{search-DcAwD_Ln.js → search-DborVoKD.js} +1 -1
- package/codeyam-cli/src/webserver/build/client/assets/{settings-CclxrcPK.js → settings-BpLDWmGh.js} +1 -1
- package/codeyam-cli/src/webserver/build/client/assets/{simulations-DVNJVQgD.js → simulations-BtrtCYJg.js} +1 -1
- package/codeyam-cli/src/webserver/build/client/assets/{terminal-DbEAHMbA.js → terminal-Bs4NC-VZ.js} +1 -1
- package/codeyam-cli/src/webserver/build/client/assets/{triangle-alert-CAD5b1o_.js → triangle-alert-DTf3Jojp.js} +1 -1
- package/codeyam-cli/src/webserver/build/client/assets/{useCustomSizes-BqgrAzs3.js → useCustomSizes-D_bDZyDU.js} +1 -1
- package/codeyam-cli/src/webserver/build/client/assets/{useLastLogLine-DAFqfEDH.js → useLastLogLine-DZp6rrQD.js} +1 -1
- package/codeyam-cli/src/webserver/build/client/assets/{useReportContext-DZlYx2c4.js → useReportContext-BsQb6rFd.js} +1 -1
- package/codeyam-cli/src/webserver/build/client/assets/{useToast-ihdMtlf6.js → useToast-BOur3mUv.js} +1 -1
- package/codeyam-cli/src/webserver/build/server/assets/{index-C_nP9_jr.js → index-B8A_aaGG.js} +1 -1
- package/codeyam-cli/src/webserver/build/server/assets/server-build-69rRZnZo.js +286 -0
- package/codeyam-cli/src/webserver/build/server/index.js +1 -1
- package/codeyam-cli/src/webserver/build-info.json +5 -5
- package/codeyam-cli/templates/codeyam-new-rule.md +0 -2
- package/codeyam-cli/templates/hooks/staleness-check.sh +43 -0
- package/codeyam-cli/templates/prompts/conversation-guidance.txt +32 -0
- package/codeyam-cli/templates/prompts/conversation-prompt.txt +28 -0
- package/codeyam-cli/templates/prompts/interruption-prompt.txt +31 -0
- package/codeyam-cli/templates/prompts/stale-rules-prompt.txt +24 -0
- package/codeyam-cli/templates/rules-instructions.md +33 -88
- package/package.json +1 -1
- package/packages/ai/src/lib/completionCall.js +0 -5
- package/packages/ai/src/lib/completionCall.js.map +1 -1
- package/codeyam-cli/src/commands/detect-universal-mocks.js +0 -120
- package/codeyam-cli/src/commands/detect-universal-mocks.js.map +0 -1
- package/codeyam-cli/src/commands/list.js +0 -31
- package/codeyam-cli/src/commands/list.js.map +0 -1
- package/codeyam-cli/src/commands/webapp-info.js +0 -146
- package/codeyam-cli/src/commands/webapp-info.js.map +0 -1
- package/codeyam-cli/src/utils/universal-mocks.js +0 -152
- package/codeyam-cli/src/utils/universal-mocks.js.map +0 -1
- package/codeyam-cli/src/webserver/build/client/assets/agent-transcripts-DHKuQSmR.js +0 -17
- package/codeyam-cli/src/webserver/build/client/assets/manifest-e24d6600.js +0 -1
- package/codeyam-cli/src/webserver/build/server/assets/server-build-BEaMCeTu.js +0 -273
- package/codeyam-cli/templates/codeyam-stop-hook.sh +0 -284
package/codeyam-cli/src/webserver/build/client/assets/{files-Co65J0s3.js → files-CrxAoWIL.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{b as ne,r as u,j as e,w as le,u as ce,f as de}from"./chunk-JZWAC4HX-DB3aFuEO.js";import{u as me}from"./useReportContext-DZlYx2c4.js";import{C as pe,a as he,F as fe,b as xe,E as ue,S as ye,u as ge}from"./EntityItem-bwuHPyTa.js";import{g as T}from"./fileTableUtils-9sMMAiWJ.js";import{C as ae}from"./chevron-down-CG65viiV.js";import{S as ve}from"./search-DcAwD_Ln.js";import"./createLucideIcon-D1zB-pYc.js";import"./useToast-ihdMtlf6.js";import"./TruncatedFilePath-CDpEprKa.js";import"./SafeScreenshot-CwZrv-Ok.js";import"./LibraryFunctionPreview-Cq5o8jL4.js";import"./scenarioStatus-B_8jpV3e.js";import"./triangle-alert-CAD5b1o_.js";import"./EntityTypeIcon-BH0XDim7.js";import"./EntityTypeBadge-CvzqMxcu.js";function be({entities:Q,page:N,itemsPerPage:b=50,currentRun:L,filter:S,entityType:_,queueState:o,isEntityPending:U,pendingEntityKeys:w,onGenerateSimulation:k,onGenerateAllSimulations:D,totalFilesCount:H,totalEntitiesCount:J,uncommittedFilesCount:W,showOnlyUncommitted:j,onToggleUncommitted:V}){const[I,X]=ne(),[B,M]=u.useState(new Set),[A,y]=u.useState(""),[g,x]=u.useState(!1),[E,$]=u.useState("all"),[z,Y]=u.useState("desc"),P=_||"all",R=u.useMemo(()=>{let s=Q;return P!=="all"&&(s=s.filter(i=>i.entityType===P)),S==="analyzed"&&(s=s.filter(i=>i.analyses&&i.analyses.length>0)),s},[Q,P,S]),te=u.useMemo(()=>{const s=new Map,i=new Map,p=new Map;R.forEach(a=>{var r,c;const t=`${a.filePath}::${a.name}`,n=i.get(t);if(!n)i.set(t,a),p.set(t,[]);else{const d=((r=n.metadata)==null?void 0:r.editedAt)||n.createdAt||"",l=((c=a.metadata)==null?void 0:c.editedAt)||a.createdAt||"";let m=!1;if(l>d)m=!0;else if(l===d){const h=n.createdAt||"";m=(a.createdAt||"")>h}m?(p.get(t).push(n),i.set(t,a)):p.get(t).push(a)}}),i.forEach((a,t)=>{var r;if(!(a.analyses&&a.analyses.length>0)&&((r=a.metadata)!=null&&r.previousVersionWithAnalyses)){const d=(p.get(t)||[]).find(l=>{var m;return l.sha===((m=a.metadata)==null?void 0:m.previousVersionWithAnalyses)});d&&d.analyses&&d.analyses.length>0&&(a.analyses=d.analyses)}}),Array.from(i.values()).sort((a,t)=>{var c,d,l,m;const n=!((c=a.metadata)!=null&&c.notExported)&&!((d=a.metadata)!=null&&d.namedExport),r=!((l=t.metadata)!=null&&l.notExported)&&!((m=t.metadata)!=null&&m.namedExport);return n&&!r?-1:!n&&r?1:0}).forEach(a=>{var d,l,m,h,f;const t=a.filePath??"No File Path";s.has(t)||s.set(t,{filePath:t,entities:[],totalCount:0,uncommittedCount:0,lastUpdated:null,previewScreenshots:[],previewScreenshotErrors:[],previewLibraryScenarios:[],state:"up-to-date",simulationCount:0});const n=s.get(t);n.entities.push(a),n.totalCount++,(d=a.metadata)!=null&&d.isUncommitted&&n.uncommittedCount++;const r=((h=(m=(l=a.analyses)==null?void 0:l[0])==null?void 0:m.scenarios)==null?void 0:h.length)||0;n.simulationCount+=r;const c=((f=a.metadata)==null?void 0:f.editedAt)||a.updatedAt;c&&(!n.lastUpdated||new Date(c)>new Date(n.lastUpdated))&&(n.lastUpdated=c)});const q=(o==null?void 0:o.jobs)||[],ee=a=>{const t=`${a.filePath||""}::${a.name}`;return(w==null?void 0:w.includes(t))||!1};s.forEach(a=>{const t=a.entities.map(n=>ee(n)?"queued":T(n,q));t.includes("analyzing")||t.includes("queued")?a.state="analyzing":t.includes("incomplete")?a.state="incomplete":t.includes("out-of-date")?a.state="out-of-date":t.includes("not-analyzed")?a.state="not-analyzed":a.state="up-to-date"}),s.forEach(a=>{var t,n,r,c,d;for(const l of a.entities){if(a.previewScreenshots.length+a.previewLibraryScenarios.length>=3)break;const h=((n=(t=l.analyses)==null?void 0:t[0])==null?void 0:n.scenarios)||[];if(l.entityType==="library"){const f=h.find(v=>{var F,O;return((F=v.metadata)==null?void 0:F.executionResult)||((O=v.metadata)==null?void 0:O.error)});f&&a.previewLibraryScenarios.push({scenario:f,entitySha:l.sha})}else{const f=h.find(v=>{var F,O;return(O=(F=v.metadata)==null?void 0:F.screenshotPaths)==null?void 0:O[0]});if(f){const v=(c=(r=f.metadata)==null?void 0:r.screenshotPaths)==null?void 0:c[0],F=!!((d=f.metadata)!=null&&d.error);v&&!a.previewScreenshots.includes(v)&&(a.previewScreenshots.push(v),a.previewScreenshotErrors.push(F))}}}});const G=Array.from(s.values());return G.sort((a,t)=>{if(S==="analyzed"){const c=Math.max(...a.entities.filter(l=>{var m,h;return(h=(m=l.analyses)==null?void 0:m[0])==null?void 0:h.createdAt}).map(l=>new Date(l.analyses[0].createdAt).getTime()),0),d=Math.max(...t.entities.filter(l=>{var m,h;return(h=(m=l.analyses)==null?void 0:m[0])==null?void 0:h.createdAt}).map(l=>new Date(l.analyses[0].createdAt).getTime()),0);return z==="desc"?d-c:c-d}if(a.uncommittedCount>0&&t.uncommittedCount===0)return-1;if(a.uncommittedCount===0&&t.uncommittedCount>0)return 1;const n=a.lastUpdated?new Date(a.lastUpdated).getTime():0,r=t.lastUpdated?new Date(t.lastUpdated).getTime():0;return z==="desc"?r-n:n-r}),G},[R,S,z,o,w]),C=u.useMemo(()=>{let s=te;if(E!=="all"&&(s=s.filter(i=>i.state===E)),A.trim()){const i=A.toLowerCase();s=s.filter(p=>p.filePath.toLowerCase().includes(i))}return s},[te,A,E]),se=(N-1)*b,oe=se+b,Z=C.slice(se,oe),K=Math.ceil(C.length/b),re=s=>{M(i=>{const p=new Set(i);return p.has(s)?p.delete(s):p.add(s),p})},ie=()=>{Y(s=>s==="desc"?"asc":"desc")};return e.jsxs("div",{children:[e.jsxs("div",{className:"bg-white border-b border-gray-200 rounded-t-lg px-5 py-4 mb-3",children:[e.jsx("div",{className:"text-[11px] text-gray-500 mb-2 uppercase",children:"Filters"}),e.jsxs("div",{className:"flex gap-3",children:[e.jsxs("div",{className:"relative w-[130px]",children:[e.jsxs("select",{value:P,onChange:s=>{const i=s.target.value,p=new URLSearchParams(I);i==="all"?p.delete("entityType"):p.set("entityType",i),p.set("page","1"),X(p)},className:"appearance-none bg-gray-50 border border-gray-200 rounded px-[10px] pr-6 text-[13px] h-[39px] w-full cursor-pointer focus:outline-none focus:ring-0 focus:border-2 focus:border-[#005c75] hover:border-gray-300 transition-colors",children:[e.jsx("option",{value:"all",children:"All Types"}),e.jsx("option",{value:"visual",children:"Visual"}),e.jsx("option",{value:"library",children:"Library"})]}),e.jsx(ae,{className:"absolute right-2 top-1/2 -translate-y-1/2 w-3 h-3 text-gray-500 pointer-events-none"})]}),e.jsxs("div",{className:"relative w-[130px]",children:[e.jsxs("select",{value:E,onChange:s=>$(s.target.value),className:"appearance-none bg-gray-50 border border-gray-200 rounded px-[10px] pr-6 text-[13px] h-[39px] w-full cursor-pointer focus:outline-none focus:ring-0 focus:border-2 focus:border-[#005c75] hover:border-gray-300 transition-colors",children:[e.jsx("option",{value:"all",children:"All States"}),e.jsx("option",{value:"analyzing",children:"Analyzing..."}),e.jsx("option",{value:"up-to-date",children:"Up to date"}),e.jsx("option",{value:"incomplete",children:"Incomplete"}),e.jsx("option",{value:"out-of-date",children:"Out of date"}),e.jsx("option",{value:"not-analyzed",children:"Not analyzed"})]}),e.jsx(ae,{className:"absolute right-2 top-1/2 -translate-y-1/2 w-3 h-3 text-gray-500 pointer-events-none"})]}),e.jsxs("div",{className:"flex-1 relative",children:[e.jsx(ve,{className:"absolute left-3 top-1/2 -translate-y-1/2 w-4 h-4 text-gray-400"}),e.jsx("input",{type:"text",placeholder:"Search component",value:A,onChange:s=>y(s.target.value),className:"w-full bg-gray-50 border border-gray-200 rounded pl-9 pr-[10px] text-[13px] h-[39px] placeholder:text-gray-400 focus:outline-none focus:ring-0 focus:border-2 focus:border-[#005c75] transition-colors"})]})]})]}),H!==void 0&&J!==void 0&&W!==void 0&&e.jsx("div",{className:"mb-3",children:e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsxs("div",{className:"flex items-center",children:[e.jsxs("span",{className:"font-mono uppercase",style:{fontSize:"11px",color:"#8b8b8b",fontWeight:500,letterSpacing:"0.05em"},children:[e.jsx("span",{style:{color:"#000000"},children:C.length})," ",C.length===1?"file":"files"]}),e.jsxs("div",{className:"relative group inline-flex items-center ml-1.5",children:[e.jsx("svg",{className:"w-3 h-3 text-gray-400 cursor-help",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:e.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M13 16h-1v-4h-1m1-4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"})}),e.jsx("div",{className:"absolute left-0 top-full mt-2 hidden group-hover:block z-50 w-80",children:e.jsxs("div",{className:"bg-gray-900 text-white text-xs rounded-lg px-3 py-2 shadow-lg",children:["In CodeYam, an entity is a discrete, analyzable unit of code that can be independently simulated and tested.",e.jsx("div",{className:"absolute -top-1 left-4 w-2 h-2 bg-gray-900 transform rotate-45"})]})})]}),e.jsx("span",{className:"font-mono uppercase",style:{fontSize:"11px",color:"#d1d5db",fontWeight:500,letterSpacing:"0.05em",marginLeft:"8px"},children:"|"}),e.jsxs("span",{className:"font-mono uppercase",style:{fontSize:"11px",color:"#8b8b8b",fontWeight:500,letterSpacing:"0.05em",marginLeft:"8px"},children:[e.jsx("span",{style:{color:"#000000"},children:C.reduce((s,i)=>s+i.totalCount,0)})," ",C.reduce((s,i)=>s+i.totalCount,0)===1?"entity":"entities"]}),e.jsx("span",{className:"font-mono uppercase",style:{fontSize:"11px",color:"#d1d5db",fontWeight:500,letterSpacing:"0.05em",marginLeft:"8px"},children:"|"}),j?e.jsxs("button",{onClick:V,className:"flex items-center gap-2 text-[#005c75] underline hover:text-[#004a5e] transition-colors ml-2 font-mono uppercase cursor-pointer",style:{fontSize:"11px",fontWeight:500,letterSpacing:"0.05em"},children:[C.filter(s=>s.uncommittedCount>0).length," ","uncommitted"," ",C.filter(s=>s.uncommittedCount>0).length===1?"file":"files",e.jsx("svg",{className:"w-3.5 h-3.5",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"})})]}):e.jsxs("button",{onClick:V,className:"text-[#005c75] underline hover:text-[#004a5e] transition-colors ml-2 font-mono uppercase",style:{fontSize:"11px",fontWeight:500,letterSpacing:"0.05em"},children:[W," uncommitted"," ",W===1?"file":"files"]})]}),Z.length>0&&e.jsxs("div",{className:"flex gap-6",children:[e.jsxs("button",{onClick:()=>{M(new Set(Z.map(s=>s.filePath))),x(!0)},className:"text-[#005c75] hover:bg-[#E6F5F8] hover:text-[#003d4f] font-mono uppercase transition-all cursor-pointer px-3 py-1 rounded flex items-center gap-1.5",style:{fontSize:"11px",fontWeight:500,letterSpacing:"0.05em"},children:[e.jsx(pe,{className:"w-3.5 h-3.5"}),"Expand All"]}),e.jsxs("button",{onClick:()=>{M(new Set),x(!1)},className:"text-[#005c75] hover:bg-[#E6F5F8] hover:text-[#003d4f] font-mono uppercase transition-all cursor-pointer px-3 py-1 rounded flex items-center gap-1.5",style:{fontSize:"11px",fontWeight:500,letterSpacing:"0.05em"},children:[e.jsx(he,{className:"w-3.5 h-3.5"}),"Collapse All"]})]})]})}),e.jsx(fe,{showActions:!0,sortOrder:z,onSortChange:ie}),e.jsx("div",{className:"flex flex-col gap-[3px]",children:Z.map(s=>{const i=B.has(s.filePath),q=s.entities.filter(t=>(t.entityType==="visual"||t.entityType==="library")&&(T(t,(o==null?void 0:o.jobs)||[])==="not-analyzed"||T(t,(o==null?void 0:o.jobs)||[])==="out-of-date"||T(t,(o==null?void 0:o.jobs)||[])==="incomplete")).length>0,ee=t=>{var n;return((n=L==null?void 0:L.currentEntityShas)==null?void 0:n.includes(t))||!1},G=t=>{var n;return U!=null&&U(t)?!0:((n=o==null?void 0:o.jobs)==null?void 0:n.some(r=>{var c;return(c=r.entityShas)==null?void 0:c.includes(t.sha)}))||!1},a=t=>{k==null||k(t)};return e.jsx(xe,{filePath:s.filePath,isExpanded:i,onToggle:()=>re(s.filePath),simulationPreviews:e.jsx(ye,{entities:s.entities,maxPreviews:1}),entityCount:s.totalCount,state:s.state,lastModified:s.lastUpdated,uncommittedCount:s.uncommittedCount,isUncommitted:s.uncommittedCount>0,actionButton:q?e.jsx("button",{onClick:t=>{t.stopPropagation();const n=s.entities.filter(r=>(r.entityType==="visual"||r.entityType==="library")&&(T(r,(o==null?void 0:o.jobs)||[])==="not-analyzed"||T(r,(o==null?void 0:o.jobs)||[])==="out-of-date"||T(r,(o==null?void 0:o.jobs)||[])==="incomplete"));D==null||D(n)},className:"bg-[#005c75] text-white rounded text-[12px] font-['IBM_Plex_Sans'] font-normal hover:bg-[#004a5e] transition-colors cursor-pointer px-[15px] py-0 h-[28px]",children:s.state==="out-of-date"?"Re-analyze":"Analyze"}):void 0,children:s.entities.sort((t,n)=>{var m,h,f,v;const r=!((m=t.metadata)!=null&&m.notExported)&&!((h=t.metadata)!=null&&h.namedExport),c=!((f=n.metadata)!=null&&f.notExported)&&!((v=n.metadata)!=null&&v.namedExport);if(r&&!c)return-1;if(!r&&c)return 1;const d=t.entityType==="visual"||t.entityType==="library",l=n.entityType==="visual"||n.entityType==="library";return d&&!l?-1:!d&&l?1:t.name.localeCompare(n.name)}).map(t=>e.jsx(ue,{entity:t,isActivelyAnalyzing:ee(t.sha),isQueued:G(t),onGenerateSimulation:a},t.sha))},s.filePath)})}),K>1&&e.jsxs("div",{className:"flex justify-center items-center gap-4 mt-6 p-4",children:[N>1&&e.jsx("a",{href:`?${new URLSearchParams({...Object.fromEntries(I),page:String(N-1)}).toString()}`,className:"no-underline font-medium hover:underline",style:{color:"#005C75"},children:"← Previous"}),e.jsxs("span",{children:["Page ",N," of ",K]}),N<K&&e.jsx("a",{href:`?${new URLSearchParams({...Object.fromEntries(I),page:String(N+1)}).toString()}`,className:"no-underline font-medium hover:underline",style:{color:"#005C75"},children:"Next →"})]})]})}const De=()=>[{title:"Files & Entities - CodeYam"},{name:"description",content:"Browse your codebase files and entities"}],We=le(function(){var B,M,A;const{entities:N,currentCommit:b,page:L,filter:S,entityType:_,queueState:o,error:U}=ce();de(),ne();const[w,k]=u.useState(!1);me({source:"files-page"});const{handleGenerateSimulation:D,handleGenerateAllSimulations:H,isEntityPending:J,pendingEntityKeys:W}=ge((M=(B=b==null?void 0:b.metadata)==null?void 0:B.currentRun)==null?void 0:M.currentEntityShas,o),j=N||[],V=u.useMemo(()=>{const y=new Set([]);for(const g of j)y.add(g.filePath??"No File Path");return Array.from(y)},[j]),I=u.useMemo(()=>{let y=j;return w&&(y=y.filter(g=>{var x;return(x=g.metadata)==null?void 0:x.isUncommitted})),y.sort((g,x)=>{var E,$,z,Y,P,R;return(E=g.metadata)!=null&&E.isUncommitted&&!(($=x.metadata)!=null&&$.isUncommitted)?-1:!((z=g.metadata)!=null&&z.isUncommitted)&&((Y=x.metadata)!=null&&Y.isUncommitted)?1:new Date(((P=x.metadata)==null?void 0:P.editedAt)||0).getTime()-new Date(((R=g.metadata)==null?void 0:R.editedAt)||0).getTime()})},[j,w]),X=u.useMemo(()=>{var g;const y=new Set([]);for(const x of j)(g=x.metadata)!=null&&g.isUncommitted&&y.add(x.filePath??"No File Path");return Array.from(y)},[j]);return U?e.jsx("div",{className:"bg-[#F8F7F6] min-h-screen",children:e.jsxs("div",{className:"px-12 py-6 font-sans",children:[e.jsx("h1",{className:"text-[28px] font-semibold text-gray-900",children:"Error"}),e.jsx("p",{className:"text-base text-gray-500",children:U})]})}):j.length===0?e.jsx("div",{className:"bg-[#f9f9f9] min-h-screen",children:e.jsxs("div",{className:"px-20 py-12 font-sans",children:[e.jsxs("div",{className:"mb-8",children:[e.jsx("h1",{className:"text-[28px] font-semibold text-gray-900 mb-2",children:"Files & Entities"}),e.jsx("p",{className:"text-[15px] text-gray-500",children:"This is a list of all the files in your app."})]}),e.jsx("div",{className:"bg-white rounded-lg border border-gray-200 p-12 text-center",children:e.jsxs("div",{className:"max-w-md mx-auto",children:[e.jsx("h2",{className:"text-xl font-semibold text-gray-900 mb-3",children:"No entities found"}),e.jsxs("p",{className:"text-[15px] text-gray-600 mb-6",children:["Your project hasn't been analyzed yet. Run"," ",e.jsx("code",{className:"px-2 py-1 bg-gray-100 rounded text-sm font-mono",children:"codeyam analyze"})," ","to extract entities from your codebase."]}),e.jsx("p",{className:"text-sm text-gray-500",children:"Entities include React components, functions, and other analyzable code elements."})]})})]})}):e.jsx("div",{className:"bg-[#f9f9f9] min-h-screen",children:e.jsxs("div",{className:"px-20 py-12 font-sans",children:[e.jsxs("div",{className:"mb-8",children:[e.jsx("h1",{className:"text-[28px] font-semibold text-gray-900 mb-2",children:"Files & Entities"}),e.jsx("p",{className:"text-[15px] text-gray-500",children:"This is a list of all the files in your app."})]}),e.jsx(be,{entities:I,page:L,itemsPerPage:50,currentRun:(A=b==null?void 0:b.metadata)==null?void 0:A.currentRun,filter:S,entityType:_,queueState:o,isEntityPending:J,pendingEntityKeys:W,onGenerateSimulation:D,onGenerateAllSimulations:H,totalFilesCount:V.length,totalEntitiesCount:j.length,uncommittedFilesCount:X.length,showOnlyUncommitted:w,onToggleUncommitted:()=>k(!w)})]})})});export{We as default,De as meta};
|
|
1
|
+
import{b as ne,r as u,j as e,w as le,u as ce,f as de}from"./chunk-JZWAC4HX-7VptmeIr.js";import{u as me}from"./useReportContext-BsQb6rFd.js";import{C as pe,a as he,F as fe,b as xe,E as ue,S as ye,u as ge}from"./EntityItem-DlMph_Hm.js";import{g as T}from"./fileTableUtils-EWpfFU4X.js";import{C as ae}from"./chevron-down-DQJA9f4o.js";import{S as ve}from"./search-DborVoKD.js";import"./createLucideIcon-D-QUFOwe.js";import"./useToast-BOur3mUv.js";import"./TruncatedFilePath-D7IoaWUW.js";import"./SafeScreenshot-CG2uh31y.js";import"./LibraryFunctionPreview-CnatsCw2.js";import"./scenarioStatus-B_8jpV3e.js";import"./triangle-alert-DTf3Jojp.js";import"./EntityTypeIcon-DN9eiJAO.js";import"./EntityTypeBadge-B-0PjGOU.js";function be({entities:Q,page:N,itemsPerPage:b=50,currentRun:L,filter:S,entityType:_,queueState:o,isEntityPending:U,pendingEntityKeys:w,onGenerateSimulation:k,onGenerateAllSimulations:D,totalFilesCount:H,totalEntitiesCount:J,uncommittedFilesCount:W,showOnlyUncommitted:j,onToggleUncommitted:V}){const[I,X]=ne(),[B,M]=u.useState(new Set),[A,y]=u.useState(""),[g,x]=u.useState(!1),[E,$]=u.useState("all"),[z,Y]=u.useState("desc"),P=_||"all",R=u.useMemo(()=>{let s=Q;return P!=="all"&&(s=s.filter(i=>i.entityType===P)),S==="analyzed"&&(s=s.filter(i=>i.analyses&&i.analyses.length>0)),s},[Q,P,S]),te=u.useMemo(()=>{const s=new Map,i=new Map,p=new Map;R.forEach(a=>{var r,c;const t=`${a.filePath}::${a.name}`,n=i.get(t);if(!n)i.set(t,a),p.set(t,[]);else{const d=((r=n.metadata)==null?void 0:r.editedAt)||n.createdAt||"",l=((c=a.metadata)==null?void 0:c.editedAt)||a.createdAt||"";let m=!1;if(l>d)m=!0;else if(l===d){const h=n.createdAt||"";m=(a.createdAt||"")>h}m?(p.get(t).push(n),i.set(t,a)):p.get(t).push(a)}}),i.forEach((a,t)=>{var r;if(!(a.analyses&&a.analyses.length>0)&&((r=a.metadata)!=null&&r.previousVersionWithAnalyses)){const d=(p.get(t)||[]).find(l=>{var m;return l.sha===((m=a.metadata)==null?void 0:m.previousVersionWithAnalyses)});d&&d.analyses&&d.analyses.length>0&&(a.analyses=d.analyses)}}),Array.from(i.values()).sort((a,t)=>{var c,d,l,m;const n=!((c=a.metadata)!=null&&c.notExported)&&!((d=a.metadata)!=null&&d.namedExport),r=!((l=t.metadata)!=null&&l.notExported)&&!((m=t.metadata)!=null&&m.namedExport);return n&&!r?-1:!n&&r?1:0}).forEach(a=>{var d,l,m,h,f;const t=a.filePath??"No File Path";s.has(t)||s.set(t,{filePath:t,entities:[],totalCount:0,uncommittedCount:0,lastUpdated:null,previewScreenshots:[],previewScreenshotErrors:[],previewLibraryScenarios:[],state:"up-to-date",simulationCount:0});const n=s.get(t);n.entities.push(a),n.totalCount++,(d=a.metadata)!=null&&d.isUncommitted&&n.uncommittedCount++;const r=((h=(m=(l=a.analyses)==null?void 0:l[0])==null?void 0:m.scenarios)==null?void 0:h.length)||0;n.simulationCount+=r;const c=((f=a.metadata)==null?void 0:f.editedAt)||a.updatedAt;c&&(!n.lastUpdated||new Date(c)>new Date(n.lastUpdated))&&(n.lastUpdated=c)});const q=(o==null?void 0:o.jobs)||[],ee=a=>{const t=`${a.filePath||""}::${a.name}`;return(w==null?void 0:w.includes(t))||!1};s.forEach(a=>{const t=a.entities.map(n=>ee(n)?"queued":T(n,q));t.includes("analyzing")||t.includes("queued")?a.state="analyzing":t.includes("incomplete")?a.state="incomplete":t.includes("out-of-date")?a.state="out-of-date":t.includes("not-analyzed")?a.state="not-analyzed":a.state="up-to-date"}),s.forEach(a=>{var t,n,r,c,d;for(const l of a.entities){if(a.previewScreenshots.length+a.previewLibraryScenarios.length>=3)break;const h=((n=(t=l.analyses)==null?void 0:t[0])==null?void 0:n.scenarios)||[];if(l.entityType==="library"){const f=h.find(v=>{var F,O;return((F=v.metadata)==null?void 0:F.executionResult)||((O=v.metadata)==null?void 0:O.error)});f&&a.previewLibraryScenarios.push({scenario:f,entitySha:l.sha})}else{const f=h.find(v=>{var F,O;return(O=(F=v.metadata)==null?void 0:F.screenshotPaths)==null?void 0:O[0]});if(f){const v=(c=(r=f.metadata)==null?void 0:r.screenshotPaths)==null?void 0:c[0],F=!!((d=f.metadata)!=null&&d.error);v&&!a.previewScreenshots.includes(v)&&(a.previewScreenshots.push(v),a.previewScreenshotErrors.push(F))}}}});const G=Array.from(s.values());return G.sort((a,t)=>{if(S==="analyzed"){const c=Math.max(...a.entities.filter(l=>{var m,h;return(h=(m=l.analyses)==null?void 0:m[0])==null?void 0:h.createdAt}).map(l=>new Date(l.analyses[0].createdAt).getTime()),0),d=Math.max(...t.entities.filter(l=>{var m,h;return(h=(m=l.analyses)==null?void 0:m[0])==null?void 0:h.createdAt}).map(l=>new Date(l.analyses[0].createdAt).getTime()),0);return z==="desc"?d-c:c-d}if(a.uncommittedCount>0&&t.uncommittedCount===0)return-1;if(a.uncommittedCount===0&&t.uncommittedCount>0)return 1;const n=a.lastUpdated?new Date(a.lastUpdated).getTime():0,r=t.lastUpdated?new Date(t.lastUpdated).getTime():0;return z==="desc"?r-n:n-r}),G},[R,S,z,o,w]),C=u.useMemo(()=>{let s=te;if(E!=="all"&&(s=s.filter(i=>i.state===E)),A.trim()){const i=A.toLowerCase();s=s.filter(p=>p.filePath.toLowerCase().includes(i))}return s},[te,A,E]),se=(N-1)*b,oe=se+b,Z=C.slice(se,oe),K=Math.ceil(C.length/b),re=s=>{M(i=>{const p=new Set(i);return p.has(s)?p.delete(s):p.add(s),p})},ie=()=>{Y(s=>s==="desc"?"asc":"desc")};return e.jsxs("div",{children:[e.jsxs("div",{className:"bg-white border-b border-gray-200 rounded-t-lg px-5 py-4 mb-3",children:[e.jsx("div",{className:"text-[11px] text-gray-500 mb-2 uppercase",children:"Filters"}),e.jsxs("div",{className:"flex gap-3",children:[e.jsxs("div",{className:"relative w-[130px]",children:[e.jsxs("select",{value:P,onChange:s=>{const i=s.target.value,p=new URLSearchParams(I);i==="all"?p.delete("entityType"):p.set("entityType",i),p.set("page","1"),X(p)},className:"appearance-none bg-gray-50 border border-gray-200 rounded px-[10px] pr-6 text-[13px] h-[39px] w-full cursor-pointer focus:outline-none focus:ring-0 focus:border-2 focus:border-[#005c75] hover:border-gray-300 transition-colors",children:[e.jsx("option",{value:"all",children:"All Types"}),e.jsx("option",{value:"visual",children:"Visual"}),e.jsx("option",{value:"library",children:"Library"})]}),e.jsx(ae,{className:"absolute right-2 top-1/2 -translate-y-1/2 w-3 h-3 text-gray-500 pointer-events-none"})]}),e.jsxs("div",{className:"relative w-[130px]",children:[e.jsxs("select",{value:E,onChange:s=>$(s.target.value),className:"appearance-none bg-gray-50 border border-gray-200 rounded px-[10px] pr-6 text-[13px] h-[39px] w-full cursor-pointer focus:outline-none focus:ring-0 focus:border-2 focus:border-[#005c75] hover:border-gray-300 transition-colors",children:[e.jsx("option",{value:"all",children:"All States"}),e.jsx("option",{value:"analyzing",children:"Analyzing..."}),e.jsx("option",{value:"up-to-date",children:"Up to date"}),e.jsx("option",{value:"incomplete",children:"Incomplete"}),e.jsx("option",{value:"out-of-date",children:"Out of date"}),e.jsx("option",{value:"not-analyzed",children:"Not analyzed"})]}),e.jsx(ae,{className:"absolute right-2 top-1/2 -translate-y-1/2 w-3 h-3 text-gray-500 pointer-events-none"})]}),e.jsxs("div",{className:"flex-1 relative",children:[e.jsx(ve,{className:"absolute left-3 top-1/2 -translate-y-1/2 w-4 h-4 text-gray-400"}),e.jsx("input",{type:"text",placeholder:"Search component",value:A,onChange:s=>y(s.target.value),className:"w-full bg-gray-50 border border-gray-200 rounded pl-9 pr-[10px] text-[13px] h-[39px] placeholder:text-gray-400 focus:outline-none focus:ring-0 focus:border-2 focus:border-[#005c75] transition-colors"})]})]})]}),H!==void 0&&J!==void 0&&W!==void 0&&e.jsx("div",{className:"mb-3",children:e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsxs("div",{className:"flex items-center",children:[e.jsxs("span",{className:"font-mono uppercase",style:{fontSize:"11px",color:"#8b8b8b",fontWeight:500,letterSpacing:"0.05em"},children:[e.jsx("span",{style:{color:"#000000"},children:C.length})," ",C.length===1?"file":"files"]}),e.jsxs("div",{className:"relative group inline-flex items-center ml-1.5",children:[e.jsx("svg",{className:"w-3 h-3 text-gray-400 cursor-help",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:e.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M13 16h-1v-4h-1m1-4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"})}),e.jsx("div",{className:"absolute left-0 top-full mt-2 hidden group-hover:block z-50 w-80",children:e.jsxs("div",{className:"bg-gray-900 text-white text-xs rounded-lg px-3 py-2 shadow-lg",children:["In CodeYam, an entity is a discrete, analyzable unit of code that can be independently simulated and tested.",e.jsx("div",{className:"absolute -top-1 left-4 w-2 h-2 bg-gray-900 transform rotate-45"})]})})]}),e.jsx("span",{className:"font-mono uppercase",style:{fontSize:"11px",color:"#d1d5db",fontWeight:500,letterSpacing:"0.05em",marginLeft:"8px"},children:"|"}),e.jsxs("span",{className:"font-mono uppercase",style:{fontSize:"11px",color:"#8b8b8b",fontWeight:500,letterSpacing:"0.05em",marginLeft:"8px"},children:[e.jsx("span",{style:{color:"#000000"},children:C.reduce((s,i)=>s+i.totalCount,0)})," ",C.reduce((s,i)=>s+i.totalCount,0)===1?"entity":"entities"]}),e.jsx("span",{className:"font-mono uppercase",style:{fontSize:"11px",color:"#d1d5db",fontWeight:500,letterSpacing:"0.05em",marginLeft:"8px"},children:"|"}),j?e.jsxs("button",{onClick:V,className:"flex items-center gap-2 text-[#005c75] underline hover:text-[#004a5e] transition-colors ml-2 font-mono uppercase cursor-pointer",style:{fontSize:"11px",fontWeight:500,letterSpacing:"0.05em"},children:[C.filter(s=>s.uncommittedCount>0).length," ","uncommitted"," ",C.filter(s=>s.uncommittedCount>0).length===1?"file":"files",e.jsx("svg",{className:"w-3.5 h-3.5",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"})})]}):e.jsxs("button",{onClick:V,className:"text-[#005c75] underline hover:text-[#004a5e] transition-colors ml-2 font-mono uppercase",style:{fontSize:"11px",fontWeight:500,letterSpacing:"0.05em"},children:[W," uncommitted"," ",W===1?"file":"files"]})]}),Z.length>0&&e.jsxs("div",{className:"flex gap-6",children:[e.jsxs("button",{onClick:()=>{M(new Set(Z.map(s=>s.filePath))),x(!0)},className:"text-[#005c75] hover:bg-[#E6F5F8] hover:text-[#003d4f] font-mono uppercase transition-all cursor-pointer px-3 py-1 rounded flex items-center gap-1.5",style:{fontSize:"11px",fontWeight:500,letterSpacing:"0.05em"},children:[e.jsx(pe,{className:"w-3.5 h-3.5"}),"Expand All"]}),e.jsxs("button",{onClick:()=>{M(new Set),x(!1)},className:"text-[#005c75] hover:bg-[#E6F5F8] hover:text-[#003d4f] font-mono uppercase transition-all cursor-pointer px-3 py-1 rounded flex items-center gap-1.5",style:{fontSize:"11px",fontWeight:500,letterSpacing:"0.05em"},children:[e.jsx(he,{className:"w-3.5 h-3.5"}),"Collapse All"]})]})]})}),e.jsx(fe,{showActions:!0,sortOrder:z,onSortChange:ie}),e.jsx("div",{className:"flex flex-col gap-[3px]",children:Z.map(s=>{const i=B.has(s.filePath),q=s.entities.filter(t=>(t.entityType==="visual"||t.entityType==="library")&&(T(t,(o==null?void 0:o.jobs)||[])==="not-analyzed"||T(t,(o==null?void 0:o.jobs)||[])==="out-of-date"||T(t,(o==null?void 0:o.jobs)||[])==="incomplete")).length>0,ee=t=>{var n;return((n=L==null?void 0:L.currentEntityShas)==null?void 0:n.includes(t))||!1},G=t=>{var n;return U!=null&&U(t)?!0:((n=o==null?void 0:o.jobs)==null?void 0:n.some(r=>{var c;return(c=r.entityShas)==null?void 0:c.includes(t.sha)}))||!1},a=t=>{k==null||k(t)};return e.jsx(xe,{filePath:s.filePath,isExpanded:i,onToggle:()=>re(s.filePath),simulationPreviews:e.jsx(ye,{entities:s.entities,maxPreviews:1}),entityCount:s.totalCount,state:s.state,lastModified:s.lastUpdated,uncommittedCount:s.uncommittedCount,isUncommitted:s.uncommittedCount>0,actionButton:q?e.jsx("button",{onClick:t=>{t.stopPropagation();const n=s.entities.filter(r=>(r.entityType==="visual"||r.entityType==="library")&&(T(r,(o==null?void 0:o.jobs)||[])==="not-analyzed"||T(r,(o==null?void 0:o.jobs)||[])==="out-of-date"||T(r,(o==null?void 0:o.jobs)||[])==="incomplete"));D==null||D(n)},className:"bg-[#005c75] text-white rounded text-[12px] font-['IBM_Plex_Sans'] font-normal hover:bg-[#004a5e] transition-colors cursor-pointer px-[15px] py-0 h-[28px]",children:s.state==="out-of-date"?"Re-analyze":"Analyze"}):void 0,children:s.entities.sort((t,n)=>{var m,h,f,v;const r=!((m=t.metadata)!=null&&m.notExported)&&!((h=t.metadata)!=null&&h.namedExport),c=!((f=n.metadata)!=null&&f.notExported)&&!((v=n.metadata)!=null&&v.namedExport);if(r&&!c)return-1;if(!r&&c)return 1;const d=t.entityType==="visual"||t.entityType==="library",l=n.entityType==="visual"||n.entityType==="library";return d&&!l?-1:!d&&l?1:t.name.localeCompare(n.name)}).map(t=>e.jsx(ue,{entity:t,isActivelyAnalyzing:ee(t.sha),isQueued:G(t),onGenerateSimulation:a},t.sha))},s.filePath)})}),K>1&&e.jsxs("div",{className:"flex justify-center items-center gap-4 mt-6 p-4",children:[N>1&&e.jsx("a",{href:`?${new URLSearchParams({...Object.fromEntries(I),page:String(N-1)}).toString()}`,className:"no-underline font-medium hover:underline",style:{color:"#005C75"},children:"← Previous"}),e.jsxs("span",{children:["Page ",N," of ",K]}),N<K&&e.jsx("a",{href:`?${new URLSearchParams({...Object.fromEntries(I),page:String(N+1)}).toString()}`,className:"no-underline font-medium hover:underline",style:{color:"#005C75"},children:"Next →"})]})]})}const De=()=>[{title:"Files & Entities - CodeYam"},{name:"description",content:"Browse your codebase files and entities"}],We=le(function(){var B,M,A;const{entities:N,currentCommit:b,page:L,filter:S,entityType:_,queueState:o,error:U}=ce();de(),ne();const[w,k]=u.useState(!1);me({source:"files-page"});const{handleGenerateSimulation:D,handleGenerateAllSimulations:H,isEntityPending:J,pendingEntityKeys:W}=ge((M=(B=b==null?void 0:b.metadata)==null?void 0:B.currentRun)==null?void 0:M.currentEntityShas,o),j=N||[],V=u.useMemo(()=>{const y=new Set([]);for(const g of j)y.add(g.filePath??"No File Path");return Array.from(y)},[j]),I=u.useMemo(()=>{let y=j;return w&&(y=y.filter(g=>{var x;return(x=g.metadata)==null?void 0:x.isUncommitted})),y.sort((g,x)=>{var E,$,z,Y,P,R;return(E=g.metadata)!=null&&E.isUncommitted&&!(($=x.metadata)!=null&&$.isUncommitted)?-1:!((z=g.metadata)!=null&&z.isUncommitted)&&((Y=x.metadata)!=null&&Y.isUncommitted)?1:new Date(((P=x.metadata)==null?void 0:P.editedAt)||0).getTime()-new Date(((R=g.metadata)==null?void 0:R.editedAt)||0).getTime()})},[j,w]),X=u.useMemo(()=>{var g;const y=new Set([]);for(const x of j)(g=x.metadata)!=null&&g.isUncommitted&&y.add(x.filePath??"No File Path");return Array.from(y)},[j]);return U?e.jsx("div",{className:"bg-[#F8F7F6] min-h-screen",children:e.jsxs("div",{className:"px-12 py-6 font-sans",children:[e.jsx("h1",{className:"text-[28px] font-semibold text-gray-900",children:"Error"}),e.jsx("p",{className:"text-base text-gray-500",children:U})]})}):j.length===0?e.jsx("div",{className:"bg-[#f9f9f9] min-h-screen",children:e.jsxs("div",{className:"px-20 py-12 font-sans",children:[e.jsxs("div",{className:"mb-8",children:[e.jsx("h1",{className:"text-[28px] font-semibold text-gray-900 mb-2",children:"Files & Entities"}),e.jsx("p",{className:"text-[15px] text-gray-500",children:"This is a list of all the files in your app."})]}),e.jsx("div",{className:"bg-white rounded-lg border border-gray-200 p-12 text-center",children:e.jsxs("div",{className:"max-w-md mx-auto",children:[e.jsx("h2",{className:"text-xl font-semibold text-gray-900 mb-3",children:"No entities found"}),e.jsxs("p",{className:"text-[15px] text-gray-600 mb-6",children:["Your project hasn't been analyzed yet. Run"," ",e.jsx("code",{className:"px-2 py-1 bg-gray-100 rounded text-sm font-mono",children:"codeyam analyze"})," ","to extract entities from your codebase."]}),e.jsx("p",{className:"text-sm text-gray-500",children:"Entities include React components, functions, and other analyzable code elements."})]})})]})}):e.jsx("div",{className:"bg-[#f9f9f9] min-h-screen",children:e.jsxs("div",{className:"px-20 py-12 font-sans",children:[e.jsxs("div",{className:"mb-8",children:[e.jsx("h1",{className:"text-[28px] font-semibold text-gray-900 mb-2",children:"Files & Entities"}),e.jsx("p",{className:"text-[15px] text-gray-500",children:"This is a list of all the files in your app."})]}),e.jsx(be,{entities:I,page:L,itemsPerPage:50,currentRun:(A=b==null?void 0:b.metadata)==null?void 0:A.currentRun,filter:S,entityType:_,queueState:o,isEntityPending:J,pendingEntityKeys:W,onGenerateSimulation:D,onGenerateAllSimulations:H,totalFilesCount:V.length,totalEntitiesCount:j.length,uncommittedFilesCount:X.length,showOnlyUncommitted:w,onToggleUncommitted:()=>k(!w)})]})})});export{We as default,De as meta};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var un=Object.defineProperty;var hn=(e,t,n)=>t in e?un(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var G=(e,t,n)=>hn(e,typeof t!="symbol"?t+"":t,n);import{r as R,c as $t,H as pn,j as l,w as mn,u as gn,b as xn}from"./chunk-JZWAC4HX-
|
|
1
|
+
var un=Object.defineProperty;var hn=(e,t,n)=>t in e?un(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var G=(e,t,n)=>hn(e,typeof t!="symbol"?t+"":t,n);import{r as R,c as $t,H as pn,j as l,w as mn,u as gn,b as xn}from"./chunk-JZWAC4HX-7VptmeIr.js";import{u as yn}from"./useReportContext-BsQb6rFd.js";import{F as Vt,b as zt,E as Pt,S as Gt,u as vn,C as bn,a as wn}from"./EntityItem-DlMph_Hm.js";import{L as Cn}from"./LogViewer-CMK8Q7yk.js";import{g as Ht}from"./fileTableUtils-EWpfFU4X.js";import"./createLucideIcon-D-QUFOwe.js";import"./useToast-BOur3mUv.js";import"./TruncatedFilePath-D7IoaWUW.js";import"./SafeScreenshot-CG2uh31y.js";import"./LibraryFunctionPreview-CnatsCw2.js";import"./scenarioStatus-B_8jpV3e.js";import"./triangle-alert-DTf3Jojp.js";import"./EntityTypeIcon-DN9eiJAO.js";import"./EntityTypeBadge-B-0PjGOU.js";function Nn(e,t,n=10){var c;const r=new Map,i=d=>d.entityType==="visual"||d.entityType==="library";for(const d of e)i(d)&&r.set(d.sha,{entity:d,depth:0});const s=new Map;for(const d of t){const f=(c=d.metadata)==null?void 0:c.importedBy;if(f)for(const u of Object.keys(f))for(const h of Object.keys(f[u])){const{shas:b}=f[u][h];for(const g of b)s.has(d.sha)||s.set(d.sha,new Set),s.get(d.sha).add(g)}}const o=[],a=new Set;for(const d of e)o.push({sha:d.sha,depth:0}),a.add(d.sha);for(;o.length>0;){const{sha:d,depth:f}=o.shift();if(f>=n)continue;const u=s.get(d);if(u)for(const h of u){if(a.has(h))continue;a.add(h);const b=t.find(g=>g.sha===h);if(b){if(i(b)){const g=f+1,p=r.get(h);(!p||g<p.depth)&&r.set(h,{entity:b,depth:g})}o.push({sha:h,depth:f+1})}}}return Array.from(r.values()).sort((d,f)=>d.depth!==f.depth?d.depth-f.depth:d.entity.name.localeCompare(f.entity.name))}function Le(e){const t=new Map;for(const r of e)t.has(r.name)||t.set(r.name,[]),t.get(r.name).push(r);const n=[];for(const r of t.values())if(r.length===1)n.push(r[0]);else{const i=r.sort((s,o)=>{var d,f;const a=((d=s.metadata)==null?void 0:d.editedAt)||s.createdAt||"";return(((f=o.metadata)==null?void 0:f.editedAt)||o.createdAt||"").localeCompare(a)});n.push(i[0])}return n}function jn(e,t){const n=new Map,r=new Set(e.map(i=>i.path));for(const i of e)i.status==="renamed"&&i.oldPath&&r.add(i.oldPath);for(const i of e){const s=t.filter(c=>c.filePath===i.path||i.status==="renamed"&&i.oldPath&&c.filePath===i.oldPath),o=s.filter(c=>{var d,f;return r.has(c.filePath)&&((d=c.metadata)==null?void 0:d.isUncommitted)&&!((f=c.metadata)!=null&&f.isSuperseded)}),a=Le(o);n.set(i.path,{status:i,entities:s,editedEntities:a})}return n}function Sn(e,t,n){const r=new Map;if(!n){for(const s of e)if(s.status==="deleted")r.set(s.path,{status:s,entities:[]});else{const o=t.filter(c=>c.filePath===s.path||s.status==="renamed"&&s.oldPath&&c.filePath===s.oldPath),a=Le(o);r.set(s.path,{status:s,entities:a})}return r}const i=new Map;for(const s of n.fileComparisons){const o=new Set;for(const a of s.newEntities)o.add(a.name);for(const a of s.modifiedEntities)o.add(a.name);for(const a of s.deletedEntities)o.add(a.name);o.size>0&&i.set(s.filePath,o)}for(const s of e){const o=i.get(s.path);if(s.status==="deleted")r.set(s.path,{status:s,entities:[]});else{const a=o?t.filter(d=>(d.filePath===s.path||s.status==="renamed"&&s.oldPath&&d.filePath===s.oldPath)&&o.has(d.name)):[],c=Le(a);r.set(s.path,{status:s,entities:c})}}return r}function kn(e,t){const n=new Map,r=Ln(e,t);for(const i of r){const o=Nn([i],t).filter(({depth:a})=>a>0);n.set(i.sha,o)}return n}function Ln(e,t){const n=new Set(e.map(i=>i.path));for(const i of e)i.status==="renamed"&&i.oldPath&&n.add(i.oldPath);const r=t.filter(i=>{var s,o;return n.has(i.filePath)&&((s=i.metadata)==null?void 0:s.isUncommitted)&&!((o=i.metadata)!=null&&o.isSuperseded)});return Le(r)}function An(e,t,n){const[r,i]=R.useState(()=>new Set),[s,o]=R.useState(()=>new Set),a=R.useRef([]),c=R.useRef([]);return R.useEffect(()=>{(t.length!==a.current.length||t.some((p,C)=>p!==a.current[C]))&&(a.current=t,i(p=>{const C=new Set;return t.forEach(w=>{p.has(w)&&C.add(w)}),C}))},[t]),R.useEffect(()=>{(n.length!==c.current.length||n.some((p,C)=>p!==c.current[C]))&&(c.current=n,o(p=>{const C=new Set;return n.forEach(w=>{p.has(w)&&C.add(w)}),C}))},[n]),{expandedUncommitted:r,expandedBranch:s,setExpandedUncommitted:i,setExpandedBranch:o,toggleFile:(g,p,C)=>{C(w=>{const N=new Set(w);return N.has(g)?N.delete(g):N.add(g),N})},expandAllUncommitted:()=>{i(new Set(t))},collapseAllUncommitted:()=>{i(new Set)},expandAllBranch:()=>{o(new Set(n))},collapseAllBranch:()=>{o(new Set)}}}function En(e,t,n){const[r,i]=R.useState(null),[s,o]=R.useState(null),a=$t();R.useEffect(()=>{var u,h;((u=a.data)==null?void 0:u.oldContent)!==void 0&&((h=a.data)==null?void 0:h.newContent)!==void 0&&o({oldContent:a.data.oldContent,newContent:a.data.newContent,fileName:a.data.fileName})},[a.data]);const c=u=>{i({type:"file",path:u}),o(null);const h=new FormData;h.append("actionType","getDiff"),h.append("filePath",u),h.append("diffType","branch"),h.append("baseBranch",e),h.append("currentBranch",t||""),a.submit(h,{method:"post"})},d=(u,h)=>{i({type:"entity",path:u,entitySha:h}),o(null);const b=new FormData;b.append("actionType","getDiff"),b.append("filePath",u),b.append("diffType","branch"),b.append("baseBranch",e),b.append("currentBranch",t||""),b.append("entitySha",h),a.submit(b,{method:"post"})},f=()=>{i(null),o(null)};return{diffView:r,diffContent:s,isLoading:a.state==="loading"||a.state==="submitting",handleShowFileDiff:c,handleShowEntityDiff:d,handleCloseDiff:f}}var Ge={exports:{}};/*!
|
|
2
2
|
Copyright (c) 2018 Jed Watson.
|
|
3
3
|
Licensed under the MIT License (MIT), see
|
|
4
4
|
http://jedwatson.github.io/classnames
|
package/codeyam-cli/src/webserver/build/client/assets/{index-_417gcQW.js → index-DuYcwYp_.js}
RENAMED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{g as L,H as xe}from"./chunk-JZWAC4HX-7VptmeIr.js";import{r as Se}from"./index-7-1FmlHo.js";function je(s,v){for(var c=0;c<v.length;c++){const u=v[c];if(typeof u!="string"&&!Array.isArray(u)){for(const b in u)if(b!=="default"&&!(b in s)){const f=Object.getOwnPropertyDescriptor(u,b);f&&Object.defineProperty(s,b,f.get?f:{enumerable:!0,get:()=>u[b]})}}}return Object.freeze(Object.defineProperty(s,Symbol.toStringTag,{value:"Module"}))}var X={exports:{}},Y={},F={exports:{}},Q={},Z={exports:{}},ee,ne;function Te(){if(ne)return ee;ne=1;var s="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return ee=s,ee}var te,oe;function Ce(){if(oe)return te;oe=1;var s=Te();function v(){}function c(){}return c.resetWarningCache=v,te=function(){function u(w,O,y,g,R,m){if(m!==s){var S=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw S.name="Invariant Violation",S}}u.isRequired=u;function b(){return u}var f={array:u,bigint:u,bool:u,func:u,number:u,object:u,string:u,symbol:u,any:u,arrayOf:b,element:u,elementType:u,instanceOf:b,node:u,objectOf:b,oneOf:b,oneOfType:b,shape:b,exact:b,checkPropTypes:c,resetWarningCache:v};return f.PropTypes=f,f},te}var ie;function K(){return ie||(ie=1,Z.exports=Ce()()),Z.exports}var I={exports:{}},se;function Me(){if(se)return I.exports;se=1;function s(c){var u,b,f="";if(typeof c=="string"||typeof c=="number")f+=c;else if(typeof c=="object")if(Array.isArray(c)){var w=c.length;for(u=0;u<w;u++)c[u]&&(b=s(c[u]))&&(f&&(f+=" "),f+=b)}else for(b in c)c[b]&&(f&&(f+=" "),f+=b);return f}function v(){for(var c,u,b=0,f="",w=arguments.length;b<w;b++)(c=arguments[b])&&(u=s(c))&&(f&&(f+=" "),f+=u);return f}return I.exports=v,I.exports.clsx=v,I.exports}var T={},W={},ae;function J(){if(ae)return W;ae=1,Object.defineProperty(W,"__esModule",{value:!0}),W.dontSetMe=b,W.findInArray=s,W.int=u,W.isFunction=v,W.isNum=c;function s(f,w){for(let O=0,y=f.length;O<y;O++)if(w.apply(w,[f[O],O,f]))return f[O]}function v(f){return typeof f=="function"||Object.prototype.toString.call(f)==="[object Function]"}function c(f){return typeof f=="number"&&!isNaN(f)}function u(f){return parseInt(f,10)}function b(f,w,O){if(f[w])return new Error(`Invalid prop ${w} passed to ${O} - do not set this, set it on the child.`)}return W}var H={},le;function ze(){if(le)return H;le=1,Object.defineProperty(H,"__esModule",{value:!0}),H.browserPrefixToKey=c,H.browserPrefixToStyle=u,H.default=void 0,H.getPrefix=v;const s=["Moz","Webkit","O","ms"];function v(){var O,y;let f=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"transform";if(typeof window>"u")return"";const w=(y=(O=window.document)==null?void 0:O.documentElement)==null?void 0:y.style;if(!w||f in w)return"";for(let g=0;g<s.length;g++)if(c(f,s[g])in w)return s[g];return""}function c(f,w){return w?`${w}${b(f)}`:f}function u(f,w){return w?`-${w.toLowerCase()}-${f}`:f}function b(f){let w="",O=!0;for(let y=0;y<f.length;y++)O?(w+=f[y].toUpperCase(),O=!1):f[y]==="-"?O=!0:w+=f[y];return w}return H.default=v(),H}var ue;function re(){if(ue)return T;ue=1,Object.defineProperty(T,"__esModule",{value:!0}),T.addClassName=d,T.addEvent=w,T.addUserSelectStyles=r,T.createCSSTransform=D,T.createSVGTransform=P,T.getTouch=e,T.getTouchIdentifier=t,T.getTranslation=a,T.innerHeight=R,T.innerWidth=m,T.matchesSelector=b,T.matchesSelectorAndParentsTo=f,T.offsetXYFromParent=S,T.outerHeight=y,T.outerWidth=g,T.removeClassName=p,T.removeEvent=O,T.scheduleRemoveUserSelectStyles=o;var s=J(),v=c(ze());function c(n,i){if(typeof WeakMap=="function")var h=new WeakMap,x=new WeakMap;return(c=function(_,C){if(!C&&_&&_.__esModule)return _;var j,M,E={__proto__:null,default:_};if(_===null||typeof _!="object"&&typeof _!="function")return E;if(j=C?x:h){if(j.has(_))return j.get(_);j.set(_,E)}for(const N in _)N!=="default"&&{}.hasOwnProperty.call(_,N)&&((M=(j=Object.defineProperty)&&Object.getOwnPropertyDescriptor(_,N))&&(M.get||M.set)?j(E,N,M):E[N]=_[N]);return E})(n,i)}let u="";function b(n,i){return u||(u=(0,s.findInArray)(["matches","webkitMatchesSelector","mozMatchesSelector","msMatchesSelector","oMatchesSelector"],function(h){return(0,s.isFunction)(n[h])})),(0,s.isFunction)(n[u])?n[u](i):!1}function f(n,i,h){let x=n;do{if(b(x,i))return!0;if(x===h)return!1;x=x.parentNode}while(x);return!1}function w(n,i,h,x){if(!n)return;const _={capture:!0,...x};n.addEventListener?n.addEventListener(i,h,_):n.attachEvent?n.attachEvent("on"+i,h):n["on"+i]=h}function O(n,i,h,x){if(!n)return;const _={capture:!0,...x};n.removeEventListener?n.removeEventListener(i,h,_):n.detachEvent?n.detachEvent("on"+i,h):n["on"+i]=null}function y(n){let i=n.clientHeight;const h=n.ownerDocument.defaultView.getComputedStyle(n);return i+=(0,s.int)(h.borderTopWidth),i+=(0,s.int)(h.borderBottomWidth),i}function g(n){let i=n.clientWidth;const h=n.ownerDocument.defaultView.getComputedStyle(n);return i+=(0,s.int)(h.borderLeftWidth),i+=(0,s.int)(h.borderRightWidth),i}function R(n){let i=n.clientHeight;const h=n.ownerDocument.defaultView.getComputedStyle(n);return i-=(0,s.int)(h.paddingTop),i-=(0,s.int)(h.paddingBottom),i}function m(n){let i=n.clientWidth;const h=n.ownerDocument.defaultView.getComputedStyle(n);return i-=(0,s.int)(h.paddingLeft),i-=(0,s.int)(h.paddingRight),i}function S(n,i,h){const _=i===i.ownerDocument.body?{left:0,top:0}:i.getBoundingClientRect(),C=(n.clientX+i.scrollLeft-_.left)/h,j=(n.clientY+i.scrollTop-_.top)/h;return{x:C,y:j}}function D(n,i){const h=a(n,i,"px");return{[(0,v.browserPrefixToKey)("transform",v.default)]:h}}function P(n,i){return a(n,i,"")}function a(n,i,h){let{x,y:_}=n,C=`translate(${x}${h},${_}${h})`;if(i){const j=`${typeof i.x=="string"?i.x:i.x+h}`,M=`${typeof i.y=="string"?i.y:i.y+h}`;C=`translate(${j}, ${M})`+C}return C}function e(n,i){return n.targetTouches&&(0,s.findInArray)(n.targetTouches,h=>i===h.identifier)||n.changedTouches&&(0,s.findInArray)(n.changedTouches,h=>i===h.identifier)}function t(n){if(n.targetTouches&&n.targetTouches[0])return n.targetTouches[0].identifier;if(n.changedTouches&&n.changedTouches[0])return n.changedTouches[0].identifier}function r(n){if(!n)return;let i=n.getElementById("react-draggable-style-el");i||(i=n.createElement("style"),i.type="text/css",i.id="react-draggable-style-el",i.innerHTML=`.react-draggable-transparent-selection *::-moz-selection {all: inherit;}
|
|
2
2
|
`,i.innerHTML+=`.react-draggable-transparent-selection *::selection {all: inherit;}
|
|
3
3
|
`,n.getElementsByTagName("head")[0].appendChild(i)),n.body&&d(n.body,"react-draggable-transparent-selection")}function o(n){window.requestAnimationFrame?window.requestAnimationFrame(()=>{l(n)}):l(n)}function l(n){if(n)try{if(n.body&&p(n.body,"react-draggable-transparent-selection"),n.selection)n.selection.empty();else{const i=(n.defaultView||window).getSelection();i&&i.type!=="Caret"&&i.removeAllRanges()}}catch{}}function d(n,i){n.classList?n.classList.add(i):n.className.match(new RegExp(`(?:^|\\s)${i}(?!\\S)`))||(n.className+=` ${i}`)}function p(n,i){n.classList?n.classList.remove(i):n.className=n.className.replace(new RegExp(`(?:^|\\s)${i}(?!\\S)`,"g"),"")}return T}var k={},ce;function we(){if(ce)return k;ce=1,Object.defineProperty(k,"__esModule",{value:!0}),k.canDragX=b,k.canDragY=f,k.createCoreData=O,k.createDraggableData=y,k.getBoundPosition=c,k.getControlPosition=w,k.snapToGrid=u;var s=J(),v=re();function c(m,S,D){if(!m.props.bounds)return[S,D];let{bounds:P}=m.props;P=typeof P=="string"?P:g(P);const a=R(m);if(typeof P=="string"){const{ownerDocument:e}=a,t=e.defaultView;let r;if(P==="parent"?r=a.parentNode:r=a.getRootNode().querySelector(P),!(r instanceof t.HTMLElement))throw new Error('Bounds selector "'+P+'" could not find an element.');const o=r,l=t.getComputedStyle(a),d=t.getComputedStyle(o);P={left:-a.offsetLeft+(0,s.int)(d.paddingLeft)+(0,s.int)(l.marginLeft),top:-a.offsetTop+(0,s.int)(d.paddingTop)+(0,s.int)(l.marginTop),right:(0,v.innerWidth)(o)-(0,v.outerWidth)(a)-a.offsetLeft+(0,s.int)(d.paddingRight)-(0,s.int)(l.marginRight),bottom:(0,v.innerHeight)(o)-(0,v.outerHeight)(a)-a.offsetTop+(0,s.int)(d.paddingBottom)-(0,s.int)(l.marginBottom)}}return(0,s.isNum)(P.right)&&(S=Math.min(S,P.right)),(0,s.isNum)(P.bottom)&&(D=Math.min(D,P.bottom)),(0,s.isNum)(P.left)&&(S=Math.max(S,P.left)),(0,s.isNum)(P.top)&&(D=Math.max(D,P.top)),[S,D]}function u(m,S,D){const P=Math.round(S/m[0])*m[0],a=Math.round(D/m[1])*m[1];return[P,a]}function b(m){return m.props.axis==="both"||m.props.axis==="x"}function f(m){return m.props.axis==="both"||m.props.axis==="y"}function w(m,S,D){const P=typeof S=="number"?(0,v.getTouch)(m,S):null;if(typeof S=="number"&&!P)return null;const a=R(D),e=D.props.offsetParent||a.offsetParent||a.ownerDocument.body;return(0,v.offsetXYFromParent)(P||m,e,D.props.scale)}function O(m,S,D){const P=!(0,s.isNum)(m.lastX),a=R(m);return P?{node:a,deltaX:0,deltaY:0,lastX:S,lastY:D,x:S,y:D}:{node:a,deltaX:S-m.lastX,deltaY:D-m.lastY,lastX:m.lastX,lastY:m.lastY,x:S,y:D}}function y(m,S){const D=m.props.scale;return{node:S.node,x:m.state.x+S.deltaX/D,y:m.state.y+S.deltaY/D,deltaX:S.deltaX/D,deltaY:S.deltaY/D,lastX:m.state.x,lastY:m.state.y}}function g(m){return{left:m.left,top:m.top,right:m.right,bottom:m.bottom}}function R(m){const S=m.findDOMNode();if(!S)throw new Error("<DraggableCore>: Unmounted during event!");return S}return k}var U={},V={},fe;function De(){if(fe)return V;fe=1,Object.defineProperty(V,"__esModule",{value:!0}),V.default=s;function s(){}return V}var de;function Ee(){if(de)return U;de=1,Object.defineProperty(U,"__esModule",{value:!0}),U.default=void 0;var s=y(L()),v=O(K()),c=O(Se()),u=re(),b=we(),f=J(),w=O(De());function O(a){return a&&a.__esModule?a:{default:a}}function y(a,e){if(typeof WeakMap=="function")var t=new WeakMap,r=new WeakMap;return(y=function(o,l){if(!l&&o&&o.__esModule)return o;var d,p,n={__proto__:null,default:o};if(o===null||typeof o!="object"&&typeof o!="function")return n;if(d=l?r:t){if(d.has(o))return d.get(o);d.set(o,n)}for(const i in o)i!=="default"&&{}.hasOwnProperty.call(o,i)&&((p=(d=Object.defineProperty)&&Object.getOwnPropertyDescriptor(o,i))&&(p.get||p.set)?d(n,i,p):n[i]=o[i]);return n})(a,e)}function g(a,e,t){return(e=R(e))in a?Object.defineProperty(a,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):a[e]=t,a}function R(a){var e=m(a,"string");return typeof e=="symbol"?e:e+""}function m(a,e){if(typeof a!="object"||!a)return a;var t=a[Symbol.toPrimitive];if(t!==void 0){var r=t.call(a,e);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(a)}const S={touch:{start:"touchstart",move:"touchmove",stop:"touchend"},mouse:{start:"mousedown",move:"mousemove",stop:"mouseup"}};let D=S.mouse,P=class extends s.Component{constructor(){super(...arguments),g(this,"dragging",!1),g(this,"lastX",NaN),g(this,"lastY",NaN),g(this,"touchIdentifier",null),g(this,"mounted",!1),g(this,"handleDragStart",e=>{if(this.props.onMouseDown(e),!this.props.allowAnyClick&&typeof e.button=="number"&&e.button!==0)return!1;const t=this.findDOMNode();if(!t||!t.ownerDocument||!t.ownerDocument.body)throw new Error("<DraggableCore> not mounted on DragStart!");const{ownerDocument:r}=t;if(this.props.disabled||!(e.target instanceof r.defaultView.Node)||this.props.handle&&!(0,u.matchesSelectorAndParentsTo)(e.target,this.props.handle,t)||this.props.cancel&&(0,u.matchesSelectorAndParentsTo)(e.target,this.props.cancel,t))return;e.type==="touchstart"&&!this.props.allowMobileScroll&&e.preventDefault();const o=(0,u.getTouchIdentifier)(e);this.touchIdentifier=o;const l=(0,b.getControlPosition)(e,o,this);if(l==null)return;const{x:d,y:p}=l,n=(0,b.createCoreData)(this,d,p);(0,w.default)("DraggableCore: handleDragStart: %j",n),(0,w.default)("calling",this.props.onStart),!(this.props.onStart(e,n)===!1||this.mounted===!1)&&(this.props.enableUserSelectHack&&(0,u.addUserSelectStyles)(r),this.dragging=!0,this.lastX=d,this.lastY=p,(0,u.addEvent)(r,D.move,this.handleDrag),(0,u.addEvent)(r,D.stop,this.handleDragStop))}),g(this,"handleDrag",e=>{const t=(0,b.getControlPosition)(e,this.touchIdentifier,this);if(t==null)return;let{x:r,y:o}=t;if(Array.isArray(this.props.grid)){let p=r-this.lastX,n=o-this.lastY;if([p,n]=(0,b.snapToGrid)(this.props.grid,p,n),!p&&!n)return;r=this.lastX+p,o=this.lastY+n}const l=(0,b.createCoreData)(this,r,o);if((0,w.default)("DraggableCore: handleDrag: %j",l),this.props.onDrag(e,l)===!1||this.mounted===!1){try{this.handleDragStop(new MouseEvent("mouseup"))}catch{const n=document.createEvent("MouseEvents");n.initMouseEvent("mouseup",!0,!0,window,0,0,0,0,0,!1,!1,!1,!1,0,null),this.handleDragStop(n)}return}this.lastX=r,this.lastY=o}),g(this,"handleDragStop",e=>{if(!this.dragging)return;const t=(0,b.getControlPosition)(e,this.touchIdentifier,this);if(t==null)return;let{x:r,y:o}=t;if(Array.isArray(this.props.grid)){let n=r-this.lastX||0,i=o-this.lastY||0;[n,i]=(0,b.snapToGrid)(this.props.grid,n,i),r=this.lastX+n,o=this.lastY+i}const l=(0,b.createCoreData)(this,r,o);if(this.props.onStop(e,l)===!1||this.mounted===!1)return!1;const p=this.findDOMNode();p&&this.props.enableUserSelectHack&&(0,u.scheduleRemoveUserSelectStyles)(p.ownerDocument),(0,w.default)("DraggableCore: handleDragStop: %j",l),this.dragging=!1,this.lastX=NaN,this.lastY=NaN,p&&((0,w.default)("DraggableCore: Removing handlers"),(0,u.removeEvent)(p.ownerDocument,D.move,this.handleDrag),(0,u.removeEvent)(p.ownerDocument,D.stop,this.handleDragStop))}),g(this,"onMouseDown",e=>(D=S.mouse,this.handleDragStart(e))),g(this,"onMouseUp",e=>(D=S.mouse,this.handleDragStop(e))),g(this,"onTouchStart",e=>(D=S.touch,this.handleDragStart(e))),g(this,"onTouchEnd",e=>(D=S.touch,this.handleDragStop(e)))}componentDidMount(){this.mounted=!0;const e=this.findDOMNode();e&&(0,u.addEvent)(e,S.touch.start,this.onTouchStart,{passive:!1})}componentWillUnmount(){this.mounted=!1;const e=this.findDOMNode();if(e){const{ownerDocument:t}=e;(0,u.removeEvent)(t,S.mouse.move,this.handleDrag),(0,u.removeEvent)(t,S.touch.move,this.handleDrag),(0,u.removeEvent)(t,S.mouse.stop,this.handleDragStop),(0,u.removeEvent)(t,S.touch.stop,this.handleDragStop),(0,u.removeEvent)(e,S.touch.start,this.onTouchStart,{passive:!1}),this.props.enableUserSelectHack&&(0,u.scheduleRemoveUserSelectStyles)(t)}}findDOMNode(){var e,t,r;return(e=this.props)!=null&&e.nodeRef?(r=(t=this.props)==null?void 0:t.nodeRef)==null?void 0:r.current:c.default.findDOMNode(this)}render(){return s.cloneElement(s.Children.only(this.props.children),{onMouseDown:this.onMouseDown,onMouseUp:this.onMouseUp,onTouchEnd:this.onTouchEnd})}};return U.default=P,g(P,"displayName","DraggableCore"),g(P,"propTypes",{allowAnyClick:v.default.bool,allowMobileScroll:v.default.bool,children:v.default.node.isRequired,disabled:v.default.bool,enableUserSelectHack:v.default.bool,offsetParent:function(a,e){if(a[e]&&a[e].nodeType!==1)throw new Error("Draggable's offsetParent must be a DOM Node.")},grid:v.default.arrayOf(v.default.number),handle:v.default.string,cancel:v.default.string,nodeRef:v.default.object,onStart:v.default.func,onDrag:v.default.func,onStop:v.default.func,onMouseDown:v.default.func,scale:v.default.number,className:f.dontSetMe,style:f.dontSetMe,transform:f.dontSetMe}),g(P,"defaultProps",{allowAnyClick:!1,allowMobileScroll:!1,disabled:!1,enableUserSelectHack:!0,onStart:function(){},onDrag:function(){},onStop:function(){},onMouseDown:function(){},scale:1}),U}var pe;function Ne(){return pe||(pe=1,(function(s){Object.defineProperty(s,"__esModule",{value:!0}),Object.defineProperty(s,"DraggableCore",{enumerable:!0,get:function(){return y.default}}),s.default=void 0;var v=m(L()),c=R(K()),u=R(Se()),b=Me(),f=re(),w=we(),O=J(),y=R(Ee()),g=R(De());function R(t){return t&&t.__esModule?t:{default:t}}function m(t,r){if(typeof WeakMap=="function")var o=new WeakMap,l=new WeakMap;return(m=function(d,p){if(!p&&d&&d.__esModule)return d;var n,i,h={__proto__:null,default:d};if(d===null||typeof d!="object"&&typeof d!="function")return h;if(n=p?l:o){if(n.has(d))return n.get(d);n.set(d,h)}for(const x in d)x!=="default"&&{}.hasOwnProperty.call(d,x)&&((i=(n=Object.defineProperty)&&Object.getOwnPropertyDescriptor(d,x))&&(i.get||i.set)?n(h,x,i):h[x]=d[x]);return h})(t,r)}function S(){return S=Object.assign?Object.assign.bind():function(t){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var l in o)({}).hasOwnProperty.call(o,l)&&(t[l]=o[l])}return t},S.apply(null,arguments)}function D(t,r,o){return(r=P(r))in t?Object.defineProperty(t,r,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[r]=o,t}function P(t){var r=a(t,"string");return typeof r=="symbol"?r:r+""}function a(t,r){if(typeof t!="object"||!t)return t;var o=t[Symbol.toPrimitive];if(o!==void 0){var l=o.call(t,r);if(typeof l!="object")return l;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(t)}class e extends v.Component{static getDerivedStateFromProps(r,o){let{position:l}=r,{prevPropsPosition:d}=o;return l&&(!d||l.x!==d.x||l.y!==d.y)?((0,g.default)("Draggable: getDerivedStateFromProps %j",{position:l,prevPropsPosition:d}),{x:l.x,y:l.y,prevPropsPosition:{...l}}):null}constructor(r){super(r),D(this,"onDragStart",(o,l)=>{if((0,g.default)("Draggable: onDragStart: %j",l),this.props.onStart(o,(0,w.createDraggableData)(this,l))===!1)return!1;this.setState({dragging:!0,dragged:!0})}),D(this,"onDrag",(o,l)=>{if(!this.state.dragging)return!1;(0,g.default)("Draggable: onDrag: %j",l);const d=(0,w.createDraggableData)(this,l),p={x:d.x,y:d.y,slackX:0,slackY:0};if(this.props.bounds){const{x:i,y:h}=p;p.x+=this.state.slackX,p.y+=this.state.slackY;const[x,_]=(0,w.getBoundPosition)(this,p.x,p.y);p.x=x,p.y=_,p.slackX=this.state.slackX+(i-p.x),p.slackY=this.state.slackY+(h-p.y),d.x=p.x,d.y=p.y,d.deltaX=p.x-this.state.x,d.deltaY=p.y-this.state.y}if(this.props.onDrag(o,d)===!1)return!1;this.setState(p)}),D(this,"onDragStop",(o,l)=>{if(!this.state.dragging||this.props.onStop(o,(0,w.createDraggableData)(this,l))===!1)return!1;(0,g.default)("Draggable: onDragStop: %j",l);const p={dragging:!1,slackX:0,slackY:0};if(!!this.props.position){const{x:i,y:h}=this.props.position;p.x=i,p.y=h}this.setState(p)}),this.state={dragging:!1,dragged:!1,x:r.position?r.position.x:r.defaultPosition.x,y:r.position?r.position.y:r.defaultPosition.y,prevPropsPosition:{...r.position},slackX:0,slackY:0,isElementSVG:!1},r.position&&!(r.onDrag||r.onStop)&&console.warn("A `position` was applied to this <Draggable>, without drag handlers. This will make this component effectively undraggable. Please attach `onDrag` or `onStop` handlers so you can adjust the `position` of this element.")}componentDidMount(){typeof window.SVGElement<"u"&&this.findDOMNode()instanceof window.SVGElement&&this.setState({isElementSVG:!0})}componentWillUnmount(){this.state.dragging&&this.setState({dragging:!1})}findDOMNode(){var r,o;return((o=(r=this.props)==null?void 0:r.nodeRef)==null?void 0:o.current)??u.default.findDOMNode(this)}render(){const{axis:r,bounds:o,children:l,defaultPosition:d,defaultClassName:p,defaultClassNameDragging:n,defaultClassNameDragged:i,position:h,positionOffset:x,scale:_,...C}=this.props;let j={},M=null;const N=!!!h||this.state.dragging,q=h||d,z={x:(0,w.canDragX)(this)&&N?this.state.x:q.x,y:(0,w.canDragY)(this)&&N?this.state.y:q.y};this.state.isElementSVG?M=(0,f.createSVGTransform)(z,x):j=(0,f.createCSSTransform)(z,x);const B=(0,b.clsx)(l.props.className||"",p,{[n]:this.state.dragging,[i]:this.state.dragged});return v.createElement(y.default,S({},C,{onStart:this.onDragStart,onDrag:this.onDrag,onStop:this.onDragStop}),v.cloneElement(v.Children.only(l),{className:B,style:{...l.props.style,...j},transform:M}))}}s.default=e,D(e,"displayName","Draggable"),D(e,"propTypes",{...y.default.propTypes,axis:c.default.oneOf(["both","x","y","none"]),bounds:c.default.oneOfType([c.default.shape({left:c.default.number,right:c.default.number,top:c.default.number,bottom:c.default.number}),c.default.string,c.default.oneOf([!1])]),defaultClassName:c.default.string,defaultClassNameDragging:c.default.string,defaultClassNameDragged:c.default.string,defaultPosition:c.default.shape({x:c.default.number,y:c.default.number}),positionOffset:c.default.shape({x:c.default.oneOfType([c.default.number,c.default.string]),y:c.default.oneOfType([c.default.number,c.default.string])}),position:c.default.shape({x:c.default.number,y:c.default.number}),className:O.dontSetMe,style:O.dontSetMe,transform:O.dontSetMe}),D(e,"defaultProps",{...y.default.defaultProps,axis:"both",bounds:!1,defaultClassName:"react-draggable",defaultClassNameDragging:"react-draggable-dragging",defaultClassNameDragged:"react-draggable-dragged",defaultPosition:{x:0,y:0},scale:1})})(Q)),Q}var he;function Pe(){if(he)return F.exports;he=1;const{default:s,DraggableCore:v}=Ne();return F.exports=s,F.exports.default=s,F.exports.DraggableCore=v,F.exports}var G={},ge;function ke(){if(ge)return G;ge=1,G.__esModule=!0,G.cloneElement=O;var s=v(L());function v(y){return y&&y.__esModule?y:{default:y}}function c(y,g){var R=Object.keys(y);if(Object.getOwnPropertySymbols){var m=Object.getOwnPropertySymbols(y);g&&(m=m.filter(function(S){return Object.getOwnPropertyDescriptor(y,S).enumerable})),R.push.apply(R,m)}return R}function u(y){for(var g=1;g<arguments.length;g++){var R=arguments[g]!=null?arguments[g]:{};g%2?c(Object(R),!0).forEach(function(m){b(y,m,R[m])}):Object.getOwnPropertyDescriptors?Object.defineProperties(y,Object.getOwnPropertyDescriptors(R)):c(Object(R)).forEach(function(m){Object.defineProperty(y,m,Object.getOwnPropertyDescriptor(R,m))})}return y}function b(y,g,R){return(g=f(g))in y?Object.defineProperty(y,g,{value:R,enumerable:!0,configurable:!0,writable:!0}):y[g]=R,y}function f(y){var g=w(y,"string");return typeof g=="symbol"?g:g+""}function w(y,g){if(typeof y!="object"||!y)return y;var R=y[Symbol.toPrimitive];if(R!==void 0){var m=R.call(y,g);if(typeof m!="object")return m;throw new TypeError("@@toPrimitive must return a primitive value.")}return(g==="string"?String:Number)(y)}function O(y,g){return g.style&&y.props.style&&(g.style=u(u({},y.props.style),g.style)),g.className&&y.props.className&&(g.className=`${y.props.className} ${g.className}`),s.default.cloneElement(y,g)}return G}var $={},me;function Oe(){if(me)return $;me=1,$.__esModule=!0,$.resizableProps=void 0;var s=v(K());Pe();function v(c){return c&&c.__esModule?c:{default:c}}return $.resizableProps={axis:s.default.oneOf(["both","x","y","none"]),className:s.default.string,children:s.default.element.isRequired,draggableOpts:s.default.shape({allowAnyClick:s.default.bool,cancel:s.default.string,children:s.default.node,disabled:s.default.bool,enableUserSelectHack:s.default.bool,offsetParent:typeof Element<"u"?s.default.instanceOf(Element):s.default.any,grid:s.default.arrayOf(s.default.number),handle:s.default.string,nodeRef:s.default.object,onStart:s.default.func,onDrag:s.default.func,onStop:s.default.func,onMouseDown:s.default.func,scale:s.default.number}),height:function(){for(var c=arguments.length,u=new Array(c),b=0;b<c;b++)u[b]=arguments[b];const[f]=u;return f.axis==="both"||f.axis==="y"?s.default.number.isRequired(...u):s.default.number(...u)},handle:s.default.oneOfType([s.default.node,s.default.func]),handleSize:s.default.arrayOf(s.default.number),lockAspectRatio:s.default.bool,maxConstraints:s.default.arrayOf(s.default.number),minConstraints:s.default.arrayOf(s.default.number),onResizeStop:s.default.func,onResizeStart:s.default.func,onResize:s.default.func,resizeHandles:s.default.arrayOf(s.default.oneOf(["s","w","e","n","sw","nw","se","ne"])),transformScale:s.default.number,width:function(){for(var c=arguments.length,u=new Array(c),b=0;b<c;b++)u[b]=arguments[b];const[f]=u;return f.axis==="both"||f.axis==="x"?s.default.number.isRequired(...u):s.default.number(...u)}},$}var ye;function Re(){if(ye)return Y;ye=1,Y.__esModule=!0,Y.default=void 0;var s=f(L()),v=Pe(),c=ke(),u=Oe();const b=["children","className","draggableOpts","width","height","handle","handleSize","lockAspectRatio","axis","minConstraints","maxConstraints","onResize","onResizeStop","onResizeStart","resizeHandles","transformScale"];function f(a,e){if(typeof WeakMap=="function")var t=new WeakMap,r=new WeakMap;return(f=function(o,l){if(!l&&o&&o.__esModule)return o;var d,p,n={__proto__:null,default:o};if(o===null||typeof o!="object"&&typeof o!="function")return n;if(d=l?r:t){if(d.has(o))return d.get(o);d.set(o,n)}for(const i in o)i!=="default"&&{}.hasOwnProperty.call(o,i)&&((p=(d=Object.defineProperty)&&Object.getOwnPropertyDescriptor(o,i))&&(p.get||p.set)?d(n,i,p):n[i]=o[i]);return n})(a,e)}function w(){return w=Object.assign?Object.assign.bind():function(a){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var r in t)({}).hasOwnProperty.call(t,r)&&(a[r]=t[r])}return a},w.apply(null,arguments)}function O(a,e){if(a==null)return{};var t,r,o=y(a,e);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(a);for(r=0;r<l.length;r++)t=l[r],e.indexOf(t)===-1&&{}.propertyIsEnumerable.call(a,t)&&(o[t]=a[t])}return o}function y(a,e){if(a==null)return{};var t={};for(var r in a)if({}.hasOwnProperty.call(a,r)){if(e.indexOf(r)!==-1)continue;t[r]=a[r]}return t}function g(a,e){var t=Object.keys(a);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(a);e&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(a,o).enumerable})),t.push.apply(t,r)}return t}function R(a){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?g(Object(t),!0).forEach(function(r){m(a,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(a,Object.getOwnPropertyDescriptors(t)):g(Object(t)).forEach(function(r){Object.defineProperty(a,r,Object.getOwnPropertyDescriptor(t,r))})}return a}function m(a,e,t){return(e=S(e))in a?Object.defineProperty(a,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):a[e]=t,a}function S(a){var e=D(a,"string");return typeof e=="symbol"?e:e+""}function D(a,e){if(typeof a!="object"||!a)return a;var t=a[Symbol.toPrimitive];if(t!==void 0){var r=t.call(a,e);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(a)}let P=class extends s.Component{constructor(){super(...arguments),this.handleRefs={},this.lastHandleRect=null,this.slack=null,this.lastSize=null}componentWillUnmount(){this.resetData()}resetData(){this.lastHandleRect=this.slack=this.lastSize=null}runConstraints(e,t){const{minConstraints:r,maxConstraints:o,lockAspectRatio:l}=this.props;if(!r&&!o&&!l)return[e,t];if(l){const h=this.props.width/this.props.height,x=e-this.props.width,_=t-this.props.height;Math.abs(x)>Math.abs(_*h)?t=e/h:e=t*h}const[d,p]=[e,t];let[n,i]=this.slack||[0,0];return e+=n,t+=i,r&&(e=Math.max(r[0],e),t=Math.max(r[1],t)),o&&(e=Math.min(o[0],e),t=Math.min(o[1],t)),this.slack=[n+(d-e),i+(p-t)],[e,t]}resizeHandler(e,t){return(r,o)=>{var q;let{node:l,deltaX:d,deltaY:p}=o;e==="onResizeStart"&&this.resetData();const n=(this.props.axis==="both"||this.props.axis==="x")&&t!=="n"&&t!=="s",i=(this.props.axis==="both"||this.props.axis==="y")&&t!=="e"&&t!=="w";if(!n&&!i)return;const h=t[0],x=t[t.length-1],_=l.getBoundingClientRect();if(this.lastHandleRect!=null){if(x==="w"){const z=_.left-this.lastHandleRect.left;d+=z}if(h==="n"){const z=_.top-this.lastHandleRect.top;p+=z}}this.lastHandleRect=_,x==="w"&&(d=-d),h==="n"&&(p=-p);let C=this.props.width+(n?d/this.props.transformScale:0),j=this.props.height+(i?p/this.props.transformScale:0);[C,j]=this.runConstraints(C,j),e==="onResizeStop"&&this.lastSize&&({width:C,height:j}=this.lastSize);const M=C!==this.props.width||j!==this.props.height;e!=="onResizeStop"&&(this.lastSize={width:C,height:j});const E=typeof this.props[e]=="function"?this.props[e]:null;E&&!(e==="onResize"&&!M)&&((q=r.persist)==null||q.call(r),E(r,{node:l,size:{width:C,height:j},handle:t})),e==="onResizeStop"&&this.resetData()}}renderResizeHandle(e,t){const{handle:r}=this.props;if(!r)return s.createElement("span",{className:`react-resizable-handle react-resizable-handle-${e}`,ref:t});if(typeof r=="function")return r(e,t);const o=typeof r.type=="string",l=R({ref:t},o?{}:{handleAxis:e});return s.cloneElement(r,l)}render(){const e=this.props,{children:t,className:r,draggableOpts:o,width:l,height:d,handle:p,handleSize:n,lockAspectRatio:i,axis:h,minConstraints:x,maxConstraints:_,onResize:C,onResizeStop:j,onResizeStart:M,resizeHandles:E,transformScale:N}=e,q=O(e,b);return(0,c.cloneElement)(t,R(R({},q),{},{className:`${r?`${r} `:""}react-resizable`,children:[...s.Children.toArray(t.props.children),...E.map(z=>{const B=this.handleRefs[z]??(this.handleRefs[z]=s.createRef());return s.createElement(v.DraggableCore,w({},o,{nodeRef:B,key:`resizableHandle-${z}`,onStop:this.resizeHandler("onResizeStop",z),onStart:this.resizeHandler("onResizeStart",z),onDrag:this.resizeHandler("onResize",z)}),this.renderResizeHandle(z,B))})]}))}};return Y.default=P,P.propTypes=u.resizableProps,P.defaultProps={axis:"both",handleSize:[20,20],lockAspectRatio:!1,minConstraints:[20,20],maxConstraints:[1/0,1/0],resizeHandles:["se"],transformScale:1},Y}var A={},be;function qe(){if(be)return A;be=1,A.__esModule=!0,A.default=void 0;var s=w(L()),v=f(K()),c=f(Re()),u=Oe();const b=["handle","handleSize","onResize","onResizeStart","onResizeStop","draggableOpts","minConstraints","maxConstraints","lockAspectRatio","axis","width","height","resizeHandles","style","transformScale"];function f(e){return e&&e.__esModule?e:{default:e}}function w(e,t){if(typeof WeakMap=="function")var r=new WeakMap,o=new WeakMap;return(w=function(l,d){if(!d&&l&&l.__esModule)return l;var p,n,i={__proto__:null,default:l};if(l===null||typeof l!="object"&&typeof l!="function")return i;if(p=d?o:r){if(p.has(l))return p.get(l);p.set(l,i)}for(const h in l)h!=="default"&&{}.hasOwnProperty.call(l,h)&&((n=(p=Object.defineProperty)&&Object.getOwnPropertyDescriptor(l,h))&&(n.get||n.set)?p(i,h,n):i[h]=l[h]);return i})(e,t)}function O(){return O=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var o in r)({}).hasOwnProperty.call(r,o)&&(e[o]=r[o])}return e},O.apply(null,arguments)}function y(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(l){return Object.getOwnPropertyDescriptor(e,l).enumerable})),r.push.apply(r,o)}return r}function g(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?y(Object(r),!0).forEach(function(o){R(e,o,r[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):y(Object(r)).forEach(function(o){Object.defineProperty(e,o,Object.getOwnPropertyDescriptor(r,o))})}return e}function R(e,t,r){return(t=m(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function m(e){var t=S(e,"string");return typeof t=="symbol"?t:t+""}function S(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var o=r.call(e,t);if(typeof o!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function D(e,t){if(e==null)return{};var r,o,l=P(e,t);if(Object.getOwnPropertySymbols){var d=Object.getOwnPropertySymbols(e);for(o=0;o<d.length;o++)r=d[o],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(l[r]=e[r])}return l}function P(e,t){if(e==null)return{};var r={};for(var o in e)if({}.hasOwnProperty.call(e,o)){if(t.indexOf(o)!==-1)continue;r[o]=e[o]}return r}let a=class extends s.Component{constructor(){super(...arguments),this.state={width:this.props.width,height:this.props.height,propsWidth:this.props.width,propsHeight:this.props.height},this.onResize=(t,r)=>{var l;const{size:o}=r;this.props.onResize?((l=t.persist)==null||l.call(t),this.setState(o,()=>this.props.onResize&&this.props.onResize(t,r))):this.setState(o)}}static getDerivedStateFromProps(t,r){return r.propsWidth!==t.width||r.propsHeight!==t.height?{width:t.width,height:t.height,propsWidth:t.width,propsHeight:t.height}:null}render(){const t=this.props,{handle:r,handleSize:o,onResize:l,onResizeStart:d,onResizeStop:p,draggableOpts:n,minConstraints:i,maxConstraints:h,lockAspectRatio:x,axis:_,width:C,height:j,resizeHandles:M,style:E,transformScale:N}=t,q=D(t,b);return s.createElement(c.default,{axis:_,draggableOpts:n,handle:r,handleSize:o,height:this.state.height,lockAspectRatio:x,maxConstraints:h,minConstraints:i,onResizeStart:d,onResize:this.onResize,onResizeStop:p,resizeHandles:M,transformScale:N,width:this.state.width},s.createElement("div",O({},q,{style:g(g({},E),{},{width:this.state.width+"px",height:this.state.height+"px"})})))}};return A.default=a,a.propTypes=g(g({},u.resizableProps),{},{children:v.default.element}),A}var ve;function We(){return ve||(ve=1,X.exports=function(){throw new Error("Don't instantiate Resizable directly! Use require('react-resizable').Resizable")},X.exports.Resizable=Re().default,X.exports.ResizableBox=qe().default),X.exports}var _e=We();const He=xe(_e),Ae=je({__proto__:null,default:He},[_e]);export{Ae as i};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{w,u as N,c as g,r as x,j as e}from"./chunk-JZWAC4HX-DB3aFuEO.js";import{u as k}from"./useReportContext-DZlYx2c4.js";const T=()=>[{title:"Labs - CodeYam"},{name:"description",content:"Experimental features"}],C=[{id:"simulations",name:"Simulations",description:"Enable entity analysis, visual simulations, git impact analysis, file browsing, and activity monitoring. When disabled, only Memory, Labs, and Settings are accessible.",defaultEnabled:!0},{id:"enhancedClaudeTesting",name:"Enhanced Claude Testing",description:"Automatically generated mock data that covers the scenarios you actually care about: empty states, error states, auth flows, broken images, missing permissions.",defaultEnabled:!0},{id:"gitIntegration",name:"Git Integration Showing Impacted Files",description:"Lorem Ipsum Automatically generated mock data that covers the scenarios you actually care about: empty states, error states, auth flows, broken images, missing permissions.",defaultEnabled:!1}],y="https://docs.google.com/forms/d/e/1FAIpQLSfopqQOQsjY9S4Ns0l3xDLzGl7iYNpKa2Wn2Xzmtxj8CR1sMA/viewform",S=[{title:"CodeYam Simulations",status:"apply for early access",desc:"CodeYam Simulations are the core of the CodeYam development experience. They leverage static code analysis and AI to generate robust data scenarios that are used to hydrate code. This creates a whole new dimension to the software development experience"},{title:"The Full CodeYam Experience",status:"more to come",desc:"CodeYam is completely rethinking the software development experience in the AI era. Focused on navigating the challenges of iteration speed, complexity, and communication, CodeYam will provide a powerful software development experience."}];function E({onClose:c}){const s=x.useRef(null),l=x.useRef(0);return x.useEffect(()=>{const t=s.current;if(!t)return;const d=100,i=2e3,o=500;let a=null,n=!1;const u=()=>{l.current=Date.now(),!a&&!n&&(a=setInterval(()=>{const m=Date.now()-l.current,h=t.scrollTop>d,b=m>i;h&&b&&(t.scrollTo({top:0,behavior:"smooth"}),n=!0,a&&(clearInterval(a),a=null))},o))};return t.addEventListener("scroll",u,{passive:!0}),()=>{t.removeEventListener("scroll",u),a&&clearInterval(a)}},[]),e.jsxs("div",{className:"fixed inset-0 z-50 flex items-center justify-center",onClick:t=>{t.target===t.currentTarget&&c()},children:[e.jsx("div",{className:"absolute inset-0 bg-black/50"}),e.jsxs("div",{className:"relative bg-white rounded-xl max-w-3xl w-full mx-4 max-h-[90vh] overflow-hidden",children:[e.jsx("button",{onClick:c,className:"absolute top-4 right-4 text-gray-400 hover:text-gray-600 text-2xl leading-none cursor-pointer bg-transparent border-none z-10",children:"×"}),e.jsxs("div",{ref:s,className:"overflow-y-auto max-h-[90vh] p-4 md:p-6",children:[e.jsxs("div",{className:"mb-4",children:[e.jsx("h3",{className:"font-serif italic text-2xl text-primary-200 mb-2",children:"Request Early Access"}),e.jsx("p",{className:"text-sm text-gray-500",children:"Complete the form below to join the waitlist for CodeYam Labs."})]}),e.jsx("div",{className:"bg-white rounded-lg overflow-hidden",children:e.jsx("iframe",{src:`${y}?embedded=true`,width:"100%",height:"1400",style:{border:0,minHeight:"1400px"},title:"Labs Waitlist Form",loading:"eager",children:e.jsx("div",{className:"flex items-center justify-center p-8 text-gray-600",children:e.jsxs("div",{className:"text-center",children:[e.jsx("div",{className:"mb-4",children:"Loading form..."}),e.jsxs("div",{className:"text-sm",children:["If this takes too long,"," ",e.jsx("a",{href:y,target:"_blank",rel:"noopener noreferrer",className:"text-blue-600 hover:text-blue-800 underline",children:"open the form directly"})]})]})})})})]})]})]})}function L({onClose:c,unlockCodeInput:s,setUnlockCodeInput:l,unlockFetcher:t}){var o,a;const d=(o=t.data)==null?void 0:o.error,i=(a=t.data)==null?void 0:a.success;return e.jsxs("div",{className:"fixed inset-0 z-50 flex items-center justify-center",onClick:n=>{n.target===n.currentTarget&&c()},children:[e.jsx("div",{className:"absolute inset-0 bg-black/50"}),e.jsxs("div",{className:"relative bg-white rounded-xl p-8 max-w-md w-full mx-4",children:[e.jsx("button",{onClick:c,className:"absolute top-4 right-4 text-gray-400 hover:text-gray-600 text-2xl leading-none cursor-pointer bg-transparent border-none",children:"×"}),e.jsx("h3",{className:"font-serif italic text-2xl text-primary-200 mb-2",children:"Have an unlock code?"}),e.jsx("p",{className:"text-sm text-cygray-50 mb-6",children:"If you've received an unlock code, paste it below to enable Simulations immediately."}),e.jsxs(t.Form,{method:"post",action:"/api/labs-unlock",className:"space-y-4",children:[e.jsx("input",{type:"text",name:"unlockCode",value:s,onChange:n=>l(n.target.value),placeholder:"CY-...",className:"w-full px-4 py-2.5 border border-gray-300 rounded-lg text-sm font-mono focus:outline-none focus:ring-2 focus:ring-primary-100 focus:border-transparent"}),e.jsx("button",{type:"submit",disabled:!s.trim()||t.state==="submitting",className:"w-full py-3 text-white border-none rounded-lg text-sm font-mono font-semibold uppercase tracking-wider cursor-pointer transition-all bg-primary-200 hover:bg-primary-100 disabled:bg-gray-400 disabled:cursor-not-allowed",children:t.state==="submitting"?"Validating...":"Unlock"}),d&&e.jsx("p",{className:"text-red-600 text-sm mt-2",children:d}),i&&e.jsx("p",{className:"text-emerald-600 text-sm mt-2",children:"Simulations enabled! Refresh the page to see all tabs."})]})]})]})}const R=w(function(){const{labs:s,unlockCode:l,error:t}=N(),d=g(),i=g(),o=g(),[a,n]=x.useState(""),[u,m]=x.useState(!1),[h,b]=x.useState(!1);k({source:"labs-page"});const j=(s==null?void 0:s.accessGranted)===!0||(s==null?void 0:s.simulations)===!0;return t?e.jsx("div",{className:"bg-cygray-10 min-h-screen",children:e.jsxs("div",{className:"px-20 pt-8 pb-12 font-sans",children:[e.jsx("h1",{className:"text-[28px] font-semibold text-gray-900 mb-2",children:"Labs"}),e.jsx("div",{className:"bg-red-50 border border-red-200 rounded-lg p-4 mt-4",children:e.jsx("p",{className:"text-red-700",children:t})})]})}):j?e.jsxs("div",{className:"bg-cygray-10 min-h-screen font-sans flex flex-col",children:[e.jsx("div",{className:"px-6 sm:px-12 pt-8 pb-4",children:e.jsx("h1",{className:"font-mono text-lg font-semibold tracking-widest text-cyblack-100 m-0",children:"LABS"})}),e.jsxs("div",{className:"px-6 sm:px-12 pt-8 pb-10",children:[e.jsx("h2",{className:"font-serif italic text-[32px] sm:text-[48px] text-primary-100 mb-3 font-normal leading-tight",children:"Congrats!"}),e.jsx("p",{className:"font-serif text-[18px] sm:text-[24px] text-cyblack-100 font-normal leading-snug max-w-2xl",children:"You were granted early access to software simulation and other experimental features."})]}),e.jsx("div",{className:"px-6 sm:px-12 space-y-6 flex-1",children:C.map(r=>{var f;const p=(s==null?void 0:s[r.id])??r.defaultEnabled,v=i.state==="submitting"&&((f=i.formData)==null?void 0:f.get("feature"))===r.id;return e.jsx("div",{className:"border border-cygray-30 rounded-xl p-5 sm:p-8 bg-white",children:e.jsxs("div",{className:"flex items-center justify-between gap-4",children:[e.jsxs("div",{className:"flex-1 min-w-0",children:[e.jsxs("div",{className:"flex items-center gap-3 mb-3",children:[e.jsx("h3",{className:"text-lg font-semibold text-cyblack-100 m-0",children:r.name}),e.jsx("span",{className:`inline-flex items-center px-2.5 py-0.5 rounded text-[10px] font-bold uppercase tracking-wider ${p?"bg-primary-100/15 text-primary-100":"bg-cygray-20 text-cygray-50"}`,children:p?"Enabled":"Disabled"})]}),e.jsx("p",{className:"text-sm text-cygray-50 leading-relaxed m-0",children:r.description})]}),e.jsxs(i.Form,{method:"post",children:[e.jsx("input",{type:"hidden",name:"feature",value:r.id}),e.jsx("input",{type:"hidden",name:"enabled",value:String(!p)}),e.jsx("button",{type:"submit",disabled:v,className:`relative inline-flex h-8 w-14 flex-shrink-0 cursor-pointer rounded-full border-2 border-transparent transition-colors duration-200 ease-in-out focus:outline-none disabled:opacity-60 disabled:cursor-not-allowed ${p?"bg-primary-100":"bg-gray-300"}`,children:e.jsx("span",{className:`pointer-events-none inline-block h-7 w-7 transform rounded-full bg-white shadow ring-0 transition duration-200 ease-in-out ${p?"translate-x-6":"translate-x-0"}`})})]})]})},r.id)})}),l&&e.jsx("div",{className:"px-6 sm:px-12 pt-12",children:e.jsxs("div",{className:"border border-cygray-30 rounded-xl p-5 sm:p-8 bg-white",children:[e.jsx("h3",{className:"text-base font-semibold text-cyblack-100 mb-1",children:"Unlock Code"}),e.jsx("p",{className:"text-sm text-cygray-50 mb-3",children:"This code was used to enable Labs access. Clear it to revoke access and return to the landing page."}),e.jsxs("div",{className:"flex flex-col sm:flex-row sm:items-center gap-3",children:[e.jsx("code",{className:"sm:flex-1 px-4 py-2.5 bg-cygray-10 border border-cygray-30 rounded-lg text-sm font-mono text-cyblack-100 overflow-x-auto",children:l}),e.jsxs(o.Form,{method:"post",children:[e.jsx("input",{type:"hidden",name:"feature",value:"clearAccess"}),e.jsx("input",{type:"hidden",name:"enabled",value:"false"}),e.jsx("button",{type:"submit",disabled:o.state==="submitting",className:"px-4 py-2.5 bg-red-50 border border-red-200 rounded-lg text-sm font-medium text-red-700 cursor-pointer transition-colors hover:bg-red-100 disabled:opacity-60 disabled:cursor-not-allowed",children:o.state==="submitting"?"Clearing...":"Clear"})]})]})]})})]}):e.jsxs("div",{className:"bg-cygray-10 min-h-screen font-sans",children:[u&&e.jsx(E,{onClose:()=>m(!1)}),h&&e.jsx(L,{onClose:()=>b(!1),unlockCodeInput:a,setUnlockCodeInput:n,unlockFetcher:d}),e.jsxs("div",{className:"flex flex-wrap justify-between items-center gap-3 px-6 sm:px-12 pt-8 pb-4",children:[e.jsx("h1",{className:"font-mono text-lg font-semibold tracking-widest text-cyblack-100 m-0",children:"LABS"}),e.jsxs("div",{className:"flex flex-wrap items-center gap-3",children:[e.jsx("button",{onClick:()=>b(!0),className:"font-mono text-xs font-semibold uppercase tracking-widest px-4 sm:px-5 py-2.5 rounded border border-cygray-30 bg-transparent text-cygray-50 cursor-pointer transition-colors hover:border-cyblack-100 hover:text-cyblack-100",children:"Have a Code?"}),e.jsx("button",{onClick:()=>m(!0),className:"font-mono text-xs font-semibold uppercase tracking-widest px-4 sm:px-5 py-2.5 rounded border border-cyblack-100 bg-transparent text-cyblack-100 cursor-pointer transition-colors hover:bg-cyblack-100 hover:text-white",children:"Apply for Early Access"})]})]}),e.jsxs("div",{className:"px-6 sm:px-12 pt-12 pb-8",children:[e.jsx("h2",{className:"font-serif text-[24px] sm:text-[32px] leading-snug text-cyblack-100 max-w-xl mb-4 font-normal",children:"Powerful tools for the AI coding era."}),e.jsxs("p",{className:"text-base sm:text-lg text-cygray-50 leading-relaxed max-w-xl mb-8",children:["We're opening early access to"," ",e.jsx("strong",{className:"text-cyblack-100",children:"experimental features"})," to a small group of developers and teams."]}),e.jsx("button",{onClick:()=>m(!0),className:"font-mono text-xs font-semibold uppercase tracking-widest px-6 py-3 rounded bg-primary-200 text-white border-none cursor-pointer transition-colors hover:bg-primary-100",children:"Apply for Early Access"})]}),e.jsx("div",{className:"px-6 sm:px-12 py-8",children:e.jsx("hr",{className:"border-t border-cygray-30 m-0"})}),e.jsxs("div",{className:"px-6 sm:px-12 pt-8 pb-4",children:[e.jsx("h3",{className:"font-serif text-[22px] sm:text-[28px] text-cyblack-100 mb-10 font-normal text-center",children:"In The Works"}),e.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-5 max-w-4xl mx-auto",children:S.map(r=>e.jsxs("div",{className:"border border-cygray-30 bg-white p-5 sm:p-8 rounded-lg",children:[e.jsxs("h4",{className:"text-base font-semibold text-cyblack-100 mb-1",children:[r.title," ",e.jsxs("span",{className:"font-normal text-primary-100 font-serif italic",children:["(",r.status,")"]})]}),e.jsx("p",{className:"text-sm text-cygray-50 leading-relaxed mt-3 mb-0",children:r.desc})]},r.title))})]}),e.jsx("div",{className:"px-6 sm:px-12 py-16",children:e.jsxs("div",{className:"rounded-lg p-6 sm:p-12 bg-primary-200",children:[e.jsx("h3",{className:"font-serif text-[20px] sm:text-[24px] text-white mb-4 font-semibold",children:"Request Early Access"}),e.jsx("p",{className:"text-sm text-white/80 leading-relaxed max-w-lg mb-10 font-mono",children:"We're onboarding a limited number of developers and teams. Tell us about how you build and we'll let you know when you can try simulations and other Labs features."}),e.jsx("button",{onClick:()=>m(!0),className:"font-mono text-xs font-semibold uppercase tracking-widest px-6 py-3 rounded border border-white bg-white text-cyblack-100 cursor-pointer transition-colors hover:bg-white/90 mb-4",children:"Apply for Early Access"}),e.jsx("p",{className:"text-xs text-white/60 m-0",children:"Takes about 2 minutes. Your answers help us determine eligibility and prioritize access."})]})})]})});export{R as default,T as meta};
|
|
1
|
+
import{w,u as N,c as g,r as x,j as e}from"./chunk-JZWAC4HX-7VptmeIr.js";import{u as k}from"./useReportContext-BsQb6rFd.js";const T=()=>[{title:"Labs - CodeYam"},{name:"description",content:"Experimental features"}],C=[{id:"simulations",name:"Simulations",description:"Enable entity analysis, visual simulations, git impact analysis, file browsing, and activity monitoring. When disabled, only Memory, Labs, and Settings are accessible.",defaultEnabled:!0},{id:"enhancedClaudeTesting",name:"Enhanced Claude Testing",description:"Automatically generated mock data that covers the scenarios you actually care about: empty states, error states, auth flows, broken images, missing permissions.",defaultEnabled:!0},{id:"gitIntegration",name:"Git Integration Showing Impacted Files",description:"Lorem Ipsum Automatically generated mock data that covers the scenarios you actually care about: empty states, error states, auth flows, broken images, missing permissions.",defaultEnabled:!1}],y="https://docs.google.com/forms/d/e/1FAIpQLSfopqQOQsjY9S4Ns0l3xDLzGl7iYNpKa2Wn2Xzmtxj8CR1sMA/viewform",S=[{title:"CodeYam Simulations",status:"apply for early access",desc:"CodeYam Simulations are the core of the CodeYam development experience. They leverage static code analysis and AI to generate robust data scenarios that are used to hydrate code. This creates a whole new dimension to the software development experience"},{title:"The Full CodeYam Experience",status:"more to come",desc:"CodeYam is completely rethinking the software development experience in the AI era. Focused on navigating the challenges of iteration speed, complexity, and communication, CodeYam will provide a powerful software development experience."}];function E({onClose:c}){const s=x.useRef(null),l=x.useRef(0);return x.useEffect(()=>{const t=s.current;if(!t)return;const d=100,i=2e3,o=500;let a=null,n=!1;const u=()=>{l.current=Date.now(),!a&&!n&&(a=setInterval(()=>{const m=Date.now()-l.current,h=t.scrollTop>d,b=m>i;h&&b&&(t.scrollTo({top:0,behavior:"smooth"}),n=!0,a&&(clearInterval(a),a=null))},o))};return t.addEventListener("scroll",u,{passive:!0}),()=>{t.removeEventListener("scroll",u),a&&clearInterval(a)}},[]),e.jsxs("div",{className:"fixed inset-0 z-50 flex items-center justify-center",onClick:t=>{t.target===t.currentTarget&&c()},children:[e.jsx("div",{className:"absolute inset-0 bg-black/50"}),e.jsxs("div",{className:"relative bg-white rounded-xl max-w-3xl w-full mx-4 max-h-[90vh] overflow-hidden",children:[e.jsx("button",{onClick:c,className:"absolute top-4 right-4 text-gray-400 hover:text-gray-600 text-2xl leading-none cursor-pointer bg-transparent border-none z-10",children:"×"}),e.jsxs("div",{ref:s,className:"overflow-y-auto max-h-[90vh] p-4 md:p-6",children:[e.jsxs("div",{className:"mb-4",children:[e.jsx("h3",{className:"font-serif italic text-2xl text-primary-200 mb-2",children:"Request Early Access"}),e.jsx("p",{className:"text-sm text-gray-500",children:"Complete the form below to join the waitlist for CodeYam Labs."})]}),e.jsx("div",{className:"bg-white rounded-lg overflow-hidden",children:e.jsx("iframe",{src:`${y}?embedded=true`,width:"100%",height:"1400",style:{border:0,minHeight:"1400px"},title:"Labs Waitlist Form",loading:"eager",children:e.jsx("div",{className:"flex items-center justify-center p-8 text-gray-600",children:e.jsxs("div",{className:"text-center",children:[e.jsx("div",{className:"mb-4",children:"Loading form..."}),e.jsxs("div",{className:"text-sm",children:["If this takes too long,"," ",e.jsx("a",{href:y,target:"_blank",rel:"noopener noreferrer",className:"text-blue-600 hover:text-blue-800 underline",children:"open the form directly"})]})]})})})})]})]})]})}function L({onClose:c,unlockCodeInput:s,setUnlockCodeInput:l,unlockFetcher:t}){var o,a;const d=(o=t.data)==null?void 0:o.error,i=(a=t.data)==null?void 0:a.success;return e.jsxs("div",{className:"fixed inset-0 z-50 flex items-center justify-center",onClick:n=>{n.target===n.currentTarget&&c()},children:[e.jsx("div",{className:"absolute inset-0 bg-black/50"}),e.jsxs("div",{className:"relative bg-white rounded-xl p-8 max-w-md w-full mx-4",children:[e.jsx("button",{onClick:c,className:"absolute top-4 right-4 text-gray-400 hover:text-gray-600 text-2xl leading-none cursor-pointer bg-transparent border-none",children:"×"}),e.jsx("h3",{className:"font-serif italic text-2xl text-primary-200 mb-2",children:"Have an unlock code?"}),e.jsx("p",{className:"text-sm text-cygray-50 mb-6",children:"If you've received an unlock code, paste it below to enable Simulations immediately."}),e.jsxs(t.Form,{method:"post",action:"/api/labs-unlock",className:"space-y-4",children:[e.jsx("input",{type:"text",name:"unlockCode",value:s,onChange:n=>l(n.target.value),placeholder:"CY-...",className:"w-full px-4 py-2.5 border border-gray-300 rounded-lg text-sm font-mono focus:outline-none focus:ring-2 focus:ring-primary-100 focus:border-transparent"}),e.jsx("button",{type:"submit",disabled:!s.trim()||t.state==="submitting",className:"w-full py-3 text-white border-none rounded-lg text-sm font-mono font-semibold uppercase tracking-wider cursor-pointer transition-all bg-primary-200 hover:bg-primary-100 disabled:bg-gray-400 disabled:cursor-not-allowed",children:t.state==="submitting"?"Validating...":"Unlock"}),d&&e.jsx("p",{className:"text-red-600 text-sm mt-2",children:d}),i&&e.jsx("p",{className:"text-emerald-600 text-sm mt-2",children:"Simulations enabled! Refresh the page to see all tabs."})]})]})]})}const R=w(function(){const{labs:s,unlockCode:l,error:t}=N(),d=g(),i=g(),o=g(),[a,n]=x.useState(""),[u,m]=x.useState(!1),[h,b]=x.useState(!1);k({source:"labs-page"});const j=(s==null?void 0:s.accessGranted)===!0||(s==null?void 0:s.simulations)===!0;return t?e.jsx("div",{className:"bg-cygray-10 min-h-screen",children:e.jsxs("div",{className:"px-20 pt-8 pb-12 font-sans",children:[e.jsx("h1",{className:"text-[28px] font-semibold text-gray-900 mb-2",children:"Labs"}),e.jsx("div",{className:"bg-red-50 border border-red-200 rounded-lg p-4 mt-4",children:e.jsx("p",{className:"text-red-700",children:t})})]})}):j?e.jsxs("div",{className:"bg-cygray-10 min-h-screen font-sans flex flex-col",children:[e.jsx("div",{className:"px-6 sm:px-12 pt-8 pb-4",children:e.jsx("h1",{className:"font-mono text-lg font-semibold tracking-widest text-cyblack-100 m-0",children:"LABS"})}),e.jsxs("div",{className:"px-6 sm:px-12 pt-8 pb-10",children:[e.jsx("h2",{className:"font-serif italic text-[32px] sm:text-[48px] text-primary-100 mb-3 font-normal leading-tight",children:"Congrats!"}),e.jsx("p",{className:"font-serif text-[18px] sm:text-[24px] text-cyblack-100 font-normal leading-snug max-w-2xl",children:"You were granted early access to software simulation and other experimental features."})]}),e.jsx("div",{className:"px-6 sm:px-12 space-y-6 flex-1",children:C.map(r=>{var f;const p=(s==null?void 0:s[r.id])??r.defaultEnabled,v=i.state==="submitting"&&((f=i.formData)==null?void 0:f.get("feature"))===r.id;return e.jsx("div",{className:"border border-cygray-30 rounded-xl p-5 sm:p-8 bg-white",children:e.jsxs("div",{className:"flex items-center justify-between gap-4",children:[e.jsxs("div",{className:"flex-1 min-w-0",children:[e.jsxs("div",{className:"flex items-center gap-3 mb-3",children:[e.jsx("h3",{className:"text-lg font-semibold text-cyblack-100 m-0",children:r.name}),e.jsx("span",{className:`inline-flex items-center px-2.5 py-0.5 rounded text-[10px] font-bold uppercase tracking-wider ${p?"bg-primary-100/15 text-primary-100":"bg-cygray-20 text-cygray-50"}`,children:p?"Enabled":"Disabled"})]}),e.jsx("p",{className:"text-sm text-cygray-50 leading-relaxed m-0",children:r.description})]}),e.jsxs(i.Form,{method:"post",children:[e.jsx("input",{type:"hidden",name:"feature",value:r.id}),e.jsx("input",{type:"hidden",name:"enabled",value:String(!p)}),e.jsx("button",{type:"submit",disabled:v,className:`relative inline-flex h-8 w-14 flex-shrink-0 cursor-pointer rounded-full border-2 border-transparent transition-colors duration-200 ease-in-out focus:outline-none disabled:opacity-60 disabled:cursor-not-allowed ${p?"bg-primary-100":"bg-gray-300"}`,children:e.jsx("span",{className:`pointer-events-none inline-block h-7 w-7 transform rounded-full bg-white shadow ring-0 transition duration-200 ease-in-out ${p?"translate-x-6":"translate-x-0"}`})})]})]})},r.id)})}),l&&e.jsx("div",{className:"px-6 sm:px-12 pt-12",children:e.jsxs("div",{className:"border border-cygray-30 rounded-xl p-5 sm:p-8 bg-white",children:[e.jsx("h3",{className:"text-base font-semibold text-cyblack-100 mb-1",children:"Unlock Code"}),e.jsx("p",{className:"text-sm text-cygray-50 mb-3",children:"This code was used to enable Labs access. Clear it to revoke access and return to the landing page."}),e.jsxs("div",{className:"flex flex-col sm:flex-row sm:items-center gap-3",children:[e.jsx("code",{className:"sm:flex-1 px-4 py-2.5 bg-cygray-10 border border-cygray-30 rounded-lg text-sm font-mono text-cyblack-100 overflow-x-auto",children:l}),e.jsxs(o.Form,{method:"post",children:[e.jsx("input",{type:"hidden",name:"feature",value:"clearAccess"}),e.jsx("input",{type:"hidden",name:"enabled",value:"false"}),e.jsx("button",{type:"submit",disabled:o.state==="submitting",className:"px-4 py-2.5 bg-red-50 border border-red-200 rounded-lg text-sm font-medium text-red-700 cursor-pointer transition-colors hover:bg-red-100 disabled:opacity-60 disabled:cursor-not-allowed",children:o.state==="submitting"?"Clearing...":"Clear"})]})]})]})})]}):e.jsxs("div",{className:"bg-cygray-10 min-h-screen font-sans",children:[u&&e.jsx(E,{onClose:()=>m(!1)}),h&&e.jsx(L,{onClose:()=>b(!1),unlockCodeInput:a,setUnlockCodeInput:n,unlockFetcher:d}),e.jsxs("div",{className:"flex flex-wrap justify-between items-center gap-3 px-6 sm:px-12 pt-8 pb-4",children:[e.jsx("h1",{className:"font-mono text-lg font-semibold tracking-widest text-cyblack-100 m-0",children:"LABS"}),e.jsxs("div",{className:"flex flex-wrap items-center gap-3",children:[e.jsx("button",{onClick:()=>b(!0),className:"font-mono text-xs font-semibold uppercase tracking-widest px-4 sm:px-5 py-2.5 rounded border border-cygray-30 bg-transparent text-cygray-50 cursor-pointer transition-colors hover:border-cyblack-100 hover:text-cyblack-100",children:"Have a Code?"}),e.jsx("button",{onClick:()=>m(!0),className:"font-mono text-xs font-semibold uppercase tracking-widest px-4 sm:px-5 py-2.5 rounded border border-cyblack-100 bg-transparent text-cyblack-100 cursor-pointer transition-colors hover:bg-cyblack-100 hover:text-white",children:"Apply for Early Access"})]})]}),e.jsxs("div",{className:"px-6 sm:px-12 pt-12 pb-8",children:[e.jsx("h2",{className:"font-serif text-[24px] sm:text-[32px] leading-snug text-cyblack-100 max-w-xl mb-4 font-normal",children:"Powerful tools for the AI coding era."}),e.jsxs("p",{className:"text-base sm:text-lg text-cygray-50 leading-relaxed max-w-xl mb-8",children:["We're opening early access to"," ",e.jsx("strong",{className:"text-cyblack-100",children:"experimental features"})," to a small group of developers and teams."]}),e.jsx("button",{onClick:()=>m(!0),className:"font-mono text-xs font-semibold uppercase tracking-widest px-6 py-3 rounded bg-primary-200 text-white border-none cursor-pointer transition-colors hover:bg-primary-100",children:"Apply for Early Access"})]}),e.jsx("div",{className:"px-6 sm:px-12 py-8",children:e.jsx("hr",{className:"border-t border-cygray-30 m-0"})}),e.jsxs("div",{className:"px-6 sm:px-12 pt-8 pb-4",children:[e.jsx("h3",{className:"font-serif text-[22px] sm:text-[28px] text-cyblack-100 mb-10 font-normal text-center",children:"In The Works"}),e.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-5 max-w-4xl mx-auto",children:S.map(r=>e.jsxs("div",{className:"border border-cygray-30 bg-white p-5 sm:p-8 rounded-lg",children:[e.jsxs("h4",{className:"text-base font-semibold text-cyblack-100 mb-1",children:[r.title," ",e.jsxs("span",{className:"font-normal text-primary-100 font-serif italic",children:["(",r.status,")"]})]}),e.jsx("p",{className:"text-sm text-cygray-50 leading-relaxed mt-3 mb-0",children:r.desc})]},r.title))})]}),e.jsx("div",{className:"px-6 sm:px-12 py-16",children:e.jsxs("div",{className:"rounded-lg p-6 sm:p-12 bg-primary-200",children:[e.jsx("h3",{className:"font-serif text-[20px] sm:text-[24px] text-white mb-4 font-semibold",children:"Request Early Access"}),e.jsx("p",{className:"text-sm text-white/80 leading-relaxed max-w-lg mb-10 font-mono",children:"We're onboarding a limited number of developers and teams. Tell us about how you build and we'll let you know when you can try simulations and other Labs features."}),e.jsx("button",{onClick:()=>m(!0),className:"font-mono text-xs font-semibold uppercase tracking-widest px-6 py-3 rounded border border-white bg-white text-cyblack-100 cursor-pointer transition-colors hover:bg-white/90 mb-4",children:"Apply for Early Access"}),e.jsx("p",{className:"text-xs text-white/60 m-0",children:"Takes about 2 minutes. Your answers help us determine eligibility and prioritize access."})]})})]})});export{R as default,T as meta};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
window.__reactRouterManifest={"entry":{"module":"/assets/entry.client-CU6EUArK.js","imports":["/assets/chunk-JZWAC4HX-7VptmeIr.js","/assets/index-7-1FmlHo.js"],"css":[]},"routes":{"root":{"id":"root","path":"","hasAction":false,"hasLoader":true,"hasClientAction":false,"hasClientLoader":false,"hasClientMiddleware":false,"hasErrorBoundary":false,"module":"/assets/root-CAAbm4U5.js","imports":["/assets/chunk-JZWAC4HX-7VptmeIr.js","/assets/index-7-1FmlHo.js","/assets/preload-helper-ckwbz45p.js","/assets/cy-logo-cli-DcX-ZS3p.js","/assets/ReportIssueModal-TCV_HBjy.js","/assets/useReportContext-BsQb6rFd.js","/assets/loader-circle-BnDcD54R.js","/assets/createLucideIcon-D-QUFOwe.js","/assets/book-open-Bp5FLkd4.js","/assets/useToast-BOur3mUv.js","/assets/useLastLogLine-DZp6rrQD.js","/assets/LogViewer-CMK8Q7yk.js","/assets/EntityTypeIcon-DN9eiJAO.js","/assets/TruncatedFilePath-D7IoaWUW.js","/assets/chevron-down-DQJA9f4o.js","/assets/circle-check-B6C4LY9o.js","/assets/triangle-alert-DTf3Jojp.js","/assets/copy-6nzYCu0G.js"],"css":[]},"routes/entity.$sha.scenarios.$scenarioId.fullscreen":{"id":"routes/entity.$sha.scenarios.$scenarioId.fullscreen","parentId":"root","path":"entity/:sha/scenarios/:scenarioId/fullscreen","hasAction":false,"hasLoader":true,"hasClientAction":false,"hasClientLoader":false,"hasClientMiddleware":false,"hasErrorBoundary":false,"module":"/assets/entity._sha.scenarios._scenarioId.fullscreen-DVTcUnur.js","imports":["/assets/chunk-JZWAC4HX-7VptmeIr.js","/assets/InlineSpinner-C1rIyZdV.js","/assets/useLastLogLine-DZp6rrQD.js","/assets/useCustomSizes-D_bDZyDU.js","/assets/cy-logo-cli-DcX-ZS3p.js"],"css":[]},"routes/entity.$sha_.edit.$scenarioId":{"id":"routes/entity.$sha_.edit.$scenarioId","parentId":"root","path":"entity/:sha/edit/:scenarioId","hasAction":false,"hasLoader":true,"hasClientAction":false,"hasClientLoader":false,"hasClientMiddleware":false,"hasErrorBoundary":false,"module":"/assets/entity._sha_.edit._scenarioId-C7ysA4Jq.js","imports":["/assets/chunk-JZWAC4HX-7VptmeIr.js","/assets/InteractivePreview-rE_fI2h2.js","/assets/InlineSpinner-C1rIyZdV.js","/assets/preload-helper-ckwbz45p.js","/assets/useLastLogLine-DZp6rrQD.js"],"css":[]},"routes/entity.$sha_.create-scenario":{"id":"routes/entity.$sha_.create-scenario","parentId":"root","path":"entity/:sha/create-scenario","hasAction":false,"hasLoader":true,"hasClientAction":false,"hasClientLoader":false,"hasClientMiddleware":false,"hasErrorBoundary":false,"module":"/assets/entity._sha_.create-scenario-BVgNO76F.js","imports":["/assets/chunk-JZWAC4HX-7VptmeIr.js","/assets/InteractivePreview-rE_fI2h2.js","/assets/InlineSpinner-C1rIyZdV.js","/assets/executionFlowCoverage-BWhdfn70.js","/assets/preload-helper-ckwbz45p.js","/assets/useLastLogLine-DZp6rrQD.js"],"css":[]},"routes/api.generate-scenario-data":{"id":"routes/api.generate-scenario-data","parentId":"root","path":"api/generate-scenario-data","hasAction":true,"hasLoader":false,"hasClientAction":false,"hasClientLoader":false,"hasClientMiddleware":false,"hasErrorBoundary":false,"module":"/assets/api.generate-scenario-data-l0sNRNKZ.js","imports":[],"css":[]},"routes/api.llm-calls.$entitySha":{"id":"routes/api.llm-calls.$entitySha","parentId":"root","path":"api/llm-calls/:entitySha","hasAction":false,"hasLoader":true,"hasClientAction":false,"hasClientLoader":false,"hasClientMiddleware":false,"hasErrorBoundary":false,"module":"/assets/api.llm-calls._entitySha-l0sNRNKZ.js","imports":[],"css":[]},"routes/api.branch-entity-diff":{"id":"routes/api.branch-entity-diff","parentId":"root","path":"api/branch-entity-diff","hasAction":false,"hasLoader":true,"hasClientAction":false,"hasClientLoader":false,"hasClientMiddleware":false,"hasErrorBoundary":false,"module":"/assets/api.branch-entity-diff-l0sNRNKZ.js","imports":[],"css":[]},"routes/api.capture-screenshot":{"id":"routes/api.capture-screenshot","parentId":"root","path":"api/capture-screenshot","hasAction":true,"hasLoader":false,"hasClientAction":false,"hasClientLoader":false,"hasClientMiddleware":false,"hasErrorBoundary":false,"module":"/assets/api.capture-screenshot-l0sNRNKZ.js","imports":[],"css":[]},"routes/api.recapture-scenario":{"id":"routes/api.recapture-scenario","parentId":"root","path":"api/recapture-scenario","hasAction":true,"hasLoader":false,"hasClientAction":false,"hasClientLoader":false,"hasClientMiddleware":false,"hasErrorBoundary":false,"module":"/assets/api.recapture-scenario-l0sNRNKZ.js","imports":[],"css":[]},"routes/api.agent-transcripts":{"id":"routes/api.agent-transcripts","parentId":"root","path":"api/agent-transcripts","hasAction":false,"hasLoader":true,"hasClientAction":false,"hasClientLoader":false,"hasClientMiddleware":false,"hasErrorBoundary":false,"module":"/assets/api.agent-transcripts-l0sNRNKZ.js","imports":[],"css":[]},"routes/api.logs.$projectSlug":{"id":"routes/api.logs.$projectSlug","parentId":"root","path":"api/logs/:projectSlug","hasAction":true,"hasLoader":true,"hasClientAction":false,"hasClientLoader":false,"hasClientMiddleware":false,"hasErrorBoundary":false,"module":"/assets/api.logs._projectSlug-l0sNRNKZ.js","imports":[],"css":[]},"routes/api.execute-function":{"id":"routes/api.execute-function","parentId":"root","path":"api/execute-function","hasAction":true,"hasLoader":false,"hasClientAction":false,"hasClientLoader":false,"hasClientMiddleware":false,"hasErrorBoundary":false,"module":"/assets/api.execute-function-l0sNRNKZ.js","imports":[],"css":[]},"routes/api.interactive-mode":{"id":"routes/api.interactive-mode","parentId":"root","path":"api/interactive-mode","hasAction":true,"hasLoader":true,"hasClientAction":false,"hasClientLoader":false,"hasClientMiddleware":false,"hasErrorBoundary":false,"module":"/assets/api.interactive-mode-l0sNRNKZ.js","imports":[],"css":[]},"routes/api.delete-scenario":{"id":"routes/api.delete-scenario","parentId":"root","path":"api/delete-scenario","hasAction":true,"hasLoader":false,"hasClientAction":false,"hasClientLoader":false,"hasClientMiddleware":false,"hasErrorBoundary":false,"module":"/assets/api.delete-scenario-l0sNRNKZ.js","imports":[],"css":[]},"routes/api.generate-report":{"id":"routes/api.generate-report","parentId":"root","path":"api/generate-report","hasAction":true,"hasLoader":true,"hasClientAction":false,"hasClientLoader":false,"hasClientMiddleware":false,"hasErrorBoundary":false,"module":"/assets/api.generate-report-l0sNRNKZ.js","imports":[],"css":[]},"routes/api.memory-profile":{"id":"routes/api.memory-profile","parentId":"root","path":"api/memory-profile","hasAction":false,"hasLoader":true,"hasClientAction":false,"hasClientLoader":false,"hasClientMiddleware":false,"hasErrorBoundary":false,"module":"/assets/api.memory-profile-l0sNRNKZ.js","imports":[],"css":[]},"routes/api.process-status":{"id":"routes/api.process-status","parentId":"root","path":"api/process-status","hasAction":false,"hasLoader":true,"hasClientAction":false,"hasClientLoader":false,"hasClientMiddleware":false,"hasErrorBoundary":false,"module":"/assets/api.process-status-l0sNRNKZ.js","imports":[],"css":[]},"routes/api.restart-server":{"id":"routes/api.restart-server","parentId":"root","path":"api/restart-server","hasAction":true,"hasLoader":false,"hasClientAction":false,"hasClientLoader":false,"hasClientMiddleware":false,"hasErrorBoundary":false,"module":"/assets/api.restart-server-l0sNRNKZ.js","imports":[],"css":[]},"routes/api.save-scenarios":{"id":"routes/api.save-scenarios","parentId":"root","path":"api/save-scenarios","hasAction":true,"hasLoader":false,"hasClientAction":false,"hasClientLoader":false,"hasClientMiddleware":false,"hasErrorBoundary":false,"module":"/assets/api.save-scenarios-l0sNRNKZ.js","imports":[],"css":[]},"routes/agent-transcripts":{"id":"routes/agent-transcripts","parentId":"root","path":"agent-transcripts","hasAction":false,"hasLoader":true,"hasClientAction":false,"hasClientLoader":false,"hasClientMiddleware":false,"hasErrorBoundary":false,"module":"/assets/agent-transcripts-DxCa1oBt.js","imports":["/assets/chunk-JZWAC4HX-7VptmeIr.js","/assets/useReportContext-BsQb6rFd.js","/assets/createLucideIcon-D-QUFOwe.js","/assets/terminal-Bs4NC-VZ.js","/assets/search-DborVoKD.js","/assets/chevron-down-DQJA9f4o.js","/assets/book-open-Bp5FLkd4.js","/assets/triangle-alert-DTf3Jojp.js","/assets/copy-6nzYCu0G.js"],"css":[]},"routes/api.kill-process":{"id":"routes/api.kill-process","parentId":"root","path":"api/kill-process","hasAction":true,"hasLoader":false,"hasClientAction":false,"hasClientLoader":false,"hasClientMiddleware":false,"hasErrorBoundary":false,"module":"/assets/api.kill-process-l0sNRNKZ.js","imports":[],"css":[]},"routes/api.save-fixture":{"id":"routes/api.save-fixture","parentId":"root","path":"api/save-fixture","hasAction":true,"hasLoader":false,"hasClientAction":false,"hasClientLoader":false,"hasClientMiddleware":false,"hasErrorBoundary":false,"module":"/assets/api.save-fixture-l0sNRNKZ.js","imports":[],"css":[]},"routes/api.screenshot.$":{"id":"routes/api.screenshot.$","parentId":"root","path":"api/screenshot/*","hasAction":false,"hasLoader":true,"hasClientAction":false,"hasClientLoader":false,"hasClientMiddleware":false,"hasErrorBoundary":false,"module":"/assets/api.screenshot._-l0sNRNKZ.js","imports":[],"css":[]},"routes/activity.($tab)":{"id":"routes/activity.($tab)","parentId":"root","path":"activity/:tab?","hasAction":false,"hasLoader":true,"hasClientAction":false,"hasClientLoader":false,"hasClientMiddleware":false,"hasErrorBoundary":false,"module":"/assets/activity.(_tab)-DZu78RI1.js","imports":["/assets/chunk-JZWAC4HX-7VptmeIr.js","/assets/LogViewer-CMK8Q7yk.js","/assets/useLastLogLine-DZp6rrQD.js","/assets/useReportContext-BsQb6rFd.js","/assets/EntityTypeIcon-DN9eiJAO.js","/assets/EntityTypeBadge-B-0PjGOU.js","/assets/SafeScreenshot-CG2uh31y.js","/assets/LoadingDots-CSP6DZrh.js","/assets/loader-circle-BnDcD54R.js","/assets/pause-DhQX2g22.js","/assets/createLucideIcon-D-QUFOwe.js"],"css":[]},"routes/api.debug-setup":{"id":"routes/api.debug-setup","parentId":"root","path":"api/debug-setup","hasAction":true,"hasLoader":true,"hasClientAction":false,"hasClientLoader":false,"hasClientMiddleware":false,"hasErrorBoundary":false,"module":"/assets/api.debug-setup-l0sNRNKZ.js","imports":[],"css":[]},"routes/api.labs-unlock":{"id":"routes/api.labs-unlock","parentId":"root","path":"api/labs-unlock","hasAction":true,"hasLoader":false,"hasClientAction":false,"hasClientLoader":false,"hasClientMiddleware":false,"hasErrorBoundary":false,"module":"/assets/api.labs-unlock-l0sNRNKZ.js","imports":[],"css":[]},"routes/api.recapture":{"id":"routes/api.recapture","parentId":"root","path":"api/recapture","hasAction":true,"hasLoader":false,"hasClientAction":false,"hasClientLoader":false,"hasClientMiddleware":false,"hasErrorBoundary":false,"module":"/assets/api.recapture-l0sNRNKZ.js","imports":[],"css":[]},"routes/api.rule-path":{"id":"routes/api.rule-path","parentId":"root","path":"api/rule-path","hasAction":false,"hasLoader":true,"hasClientAction":false,"hasClientLoader":false,"hasClientMiddleware":false,"hasErrorBoundary":false,"module":"/assets/api.rule-path-l0sNRNKZ.js","imports":[],"css":[]},"routes/entity.$sha.$":{"id":"routes/entity.$sha.$","parentId":"root","path":"entity/:sha/*","hasAction":false,"hasLoader":true,"hasClientAction":false,"hasClientLoader":false,"hasClientMiddleware":false,"hasErrorBoundary":false,"module":"/assets/entity._sha._--zvFJ4OH.js","imports":["/assets/chunk-JZWAC4HX-7VptmeIr.js","/assets/useLastLogLine-DZp6rrQD.js","/assets/InlineSpinner-C1rIyZdV.js","/assets/InteractivePreview-rE_fI2h2.js","/assets/SafeScreenshot-CG2uh31y.js","/assets/LibraryFunctionPreview-CnatsCw2.js","/assets/LoadingDots-CSP6DZrh.js","/assets/scenarioStatus-B_8jpV3e.js","/assets/ScenarioViewer-CU_TDYd8.js","/assets/createLucideIcon-D-QUFOwe.js","/assets/executionFlowCoverage-BWhdfn70.js","/assets/EntityTypeIcon-DN9eiJAO.js","/assets/CopyButton-CtmbP4Gl.js","/assets/LogViewer-CMK8Q7yk.js","/assets/useReportContext-BsQb6rFd.js","/assets/preload-helper-ckwbz45p.js","/assets/useCustomSizes-D_bDZyDU.js","/assets/ReportIssueModal-TCV_HBjy.js","/assets/circle-check-B6C4LY9o.js","/assets/triangle-alert-DTf3Jojp.js","/assets/copy-6nzYCu0G.js"],"css":[]},"routes/api.analyze":{"id":"routes/api.analyze","parentId":"root","path":"api/analyze","hasAction":true,"hasLoader":false,"hasClientAction":false,"hasClientLoader":false,"hasClientMiddleware":false,"hasErrorBoundary":false,"module":"/assets/api.analyze-l0sNRNKZ.js","imports":[],"css":[]},"routes/simulations":{"id":"routes/simulations","parentId":"root","path":"simulations","hasAction":false,"hasLoader":true,"hasClientAction":false,"hasClientLoader":false,"hasClientMiddleware":false,"hasErrorBoundary":false,"module":"/assets/simulations-BtrtCYJg.js","imports":["/assets/chunk-JZWAC4HX-7VptmeIr.js","/assets/useReportContext-BsQb6rFd.js","/assets/SafeScreenshot-CG2uh31y.js","/assets/LoadingDots-CSP6DZrh.js","/assets/EntityTypeIcon-DN9eiJAO.js","/assets/fileTableUtils-EWpfFU4X.js","/assets/chevron-down-DQJA9f4o.js","/assets/search-DborVoKD.js","/assets/loader-circle-BnDcD54R.js","/assets/createLucideIcon-D-QUFOwe.js"],"css":[]},"routes/api.events":{"id":"routes/api.events","parentId":"root","path":"api/events","hasAction":false,"hasLoader":true,"hasClientAction":false,"hasClientLoader":false,"hasClientMiddleware":false,"hasErrorBoundary":false,"module":"/assets/api.events-l0sNRNKZ.js","imports":[],"css":[]},"routes/api.health":{"id":"routes/api.health","parentId":"root","path":"api/health","hasAction":false,"hasLoader":true,"hasClientAction":false,"hasClientLoader":false,"hasClientMiddleware":false,"hasErrorBoundary":false,"module":"/assets/api.health-l0sNRNKZ.js","imports":[],"css":[]},"routes/api.memory":{"id":"routes/api.memory","parentId":"root","path":"api/memory","hasAction":true,"hasLoader":true,"hasClientAction":false,"hasClientLoader":false,"hasClientMiddleware":false,"hasErrorBoundary":false,"module":"/assets/api.memory-l0sNRNKZ.js","imports":[],"css":[]},"routes/api.queue":{"id":"routes/api.queue","parentId":"root","path":"api/queue","hasAction":true,"hasLoader":true,"hasClientAction":false,"hasClientLoader":false,"hasClientMiddleware":false,"hasErrorBoundary":false,"module":"/assets/api.queue-l0sNRNKZ.js","imports":[],"css":[]},"routes/dev.empty":{"id":"routes/dev.empty","parentId":"root","path":"dev/empty","hasAction":false,"hasLoader":false,"hasClientAction":false,"hasClientLoader":false,"hasClientMiddleware":false,"hasErrorBoundary":false,"module":"/assets/dev.empty-DmzSmblj.js","imports":["/assets/chunk-JZWAC4HX-7VptmeIr.js","/assets/ScenarioViewer-CU_TDYd8.js","/assets/InteractivePreview-rE_fI2h2.js","/assets/useCustomSizes-D_bDZyDU.js","/assets/LogViewer-CMK8Q7yk.js","/assets/SafeScreenshot-CG2uh31y.js","/assets/useLastLogLine-DZp6rrQD.js","/assets/InlineSpinner-C1rIyZdV.js","/assets/preload-helper-ckwbz45p.js","/assets/ReportIssueModal-TCV_HBjy.js","/assets/createLucideIcon-D-QUFOwe.js","/assets/circle-check-B6C4LY9o.js","/assets/triangle-alert-DTf3Jojp.js","/assets/copy-6nzYCu0G.js","/assets/scenarioStatus-B_8jpV3e.js"],"css":[]},"routes/settings":{"id":"routes/settings","parentId":"root","path":"settings","hasAction":true,"hasLoader":true,"hasClientAction":false,"hasClientLoader":false,"hasClientMiddleware":false,"hasErrorBoundary":false,"module":"/assets/settings-BpLDWmGh.js","imports":["/assets/chunk-JZWAC4HX-7VptmeIr.js","/assets/useReportContext-BsQb6rFd.js"],"css":[]},"routes/static.$":{"id":"routes/static.$","parentId":"root","path":"static/*","hasAction":false,"hasLoader":true,"hasClientAction":false,"hasClientLoader":false,"hasClientMiddleware":false,"hasErrorBoundary":false,"module":"/assets/static._-l0sNRNKZ.js","imports":[],"css":[]},"routes/_index":{"id":"routes/_index","parentId":"root","index":true,"hasAction":false,"hasLoader":true,"hasClientAction":false,"hasClientLoader":false,"hasClientMiddleware":false,"hasErrorBoundary":false,"module":"/assets/_index-B8z7mjR-.js","imports":["/assets/chunk-JZWAC4HX-7VptmeIr.js","/assets/useLastLogLine-DZp6rrQD.js","/assets/useToast-BOur3mUv.js","/assets/useReportContext-BsQb6rFd.js","/assets/LogViewer-CMK8Q7yk.js","/assets/EntityTypeIcon-DN9eiJAO.js","/assets/SafeScreenshot-CG2uh31y.js","/assets/scenarioStatus-B_8jpV3e.js","/assets/createLucideIcon-D-QUFOwe.js","/assets/circle-check-B6C4LY9o.js","/assets/loader-circle-BnDcD54R.js"],"css":[]},"routes/memory":{"id":"routes/memory","parentId":"root","path":"memory","hasAction":false,"hasLoader":true,"hasClientAction":false,"hasClientLoader":false,"hasClientMiddleware":false,"hasErrorBoundary":false,"module":"/assets/memory-CfpYxpNu.js","imports":["/assets/chunk-JZWAC4HX-7VptmeIr.js","/assets/useReportContext-BsQb6rFd.js","/assets/createLucideIcon-D-QUFOwe.js","/assets/terminal-Bs4NC-VZ.js","/assets/copy-6nzYCu0G.js","/assets/CopyButton-CtmbP4Gl.js","/assets/chevron-down-DQJA9f4o.js","/assets/search-DborVoKD.js","/assets/pause-DhQX2g22.js","/assets/book-open-Bp5FLkd4.js"],"css":[]},"routes/files":{"id":"routes/files","parentId":"root","path":"files","hasAction":false,"hasLoader":true,"hasClientAction":false,"hasClientLoader":false,"hasClientMiddleware":false,"hasErrorBoundary":false,"module":"/assets/files-CrxAoWIL.js","imports":["/assets/chunk-JZWAC4HX-7VptmeIr.js","/assets/useReportContext-BsQb6rFd.js","/assets/EntityItem-DlMph_Hm.js","/assets/fileTableUtils-EWpfFU4X.js","/assets/chevron-down-DQJA9f4o.js","/assets/search-DborVoKD.js","/assets/createLucideIcon-D-QUFOwe.js","/assets/useToast-BOur3mUv.js","/assets/TruncatedFilePath-D7IoaWUW.js","/assets/SafeScreenshot-CG2uh31y.js","/assets/LibraryFunctionPreview-CnatsCw2.js","/assets/scenarioStatus-B_8jpV3e.js","/assets/triangle-alert-DTf3Jojp.js","/assets/EntityTypeIcon-DN9eiJAO.js","/assets/EntityTypeBadge-B-0PjGOU.js"],"css":[]},"routes/labs":{"id":"routes/labs","parentId":"root","path":"labs","hasAction":true,"hasLoader":true,"hasClientAction":false,"hasClientLoader":false,"hasClientMiddleware":false,"hasErrorBoundary":false,"module":"/assets/labs-CPPVOSWB.js","imports":["/assets/chunk-JZWAC4HX-7VptmeIr.js","/assets/useReportContext-BsQb6rFd.js"],"css":[]},"routes/git":{"id":"routes/git","parentId":"root","path":"git","hasAction":true,"hasLoader":true,"hasClientAction":false,"hasClientLoader":false,"hasClientMiddleware":false,"hasErrorBoundary":false,"module":"/assets/git-BldHtKeW.js","imports":["/assets/chunk-JZWAC4HX-7VptmeIr.js","/assets/useReportContext-BsQb6rFd.js","/assets/EntityItem-DlMph_Hm.js","/assets/LogViewer-CMK8Q7yk.js","/assets/fileTableUtils-EWpfFU4X.js","/assets/createLucideIcon-D-QUFOwe.js","/assets/useToast-BOur3mUv.js","/assets/TruncatedFilePath-D7IoaWUW.js","/assets/SafeScreenshot-CG2uh31y.js","/assets/LibraryFunctionPreview-CnatsCw2.js","/assets/scenarioStatus-B_8jpV3e.js","/assets/triangle-alert-DTf3Jojp.js","/assets/EntityTypeIcon-DN9eiJAO.js","/assets/EntityTypeBadge-B-0PjGOU.js"],"css":[]}},"url":"/assets/manifest-c1fc3656.js","version":"c1fc3656"};
|