@codeyam/codeyam-cli 0.1.0-staging.323686 → 0.1.0-staging.483fdc2
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/index.ts +6 -1
- package/analyzer-template/packages/ai/src/lib/analyzeScope.ts +39 -17
- package/analyzer-template/packages/ai/src/lib/astScopes/astScopeAnalyzer.ts +67 -9
- package/analyzer-template/packages/ai/src/lib/astScopes/processExpression.ts +308 -50
- package/analyzer-template/packages/ai/src/lib/astScopes/types.ts +15 -6
- package/analyzer-template/packages/ai/src/lib/dataStructure/ScopeDataStructure.ts +664 -242
- package/analyzer-template/packages/ai/src/lib/dataStructure/helpers/BatchSchemaProcessor.ts +16 -3
- package/analyzer-template/packages/ai/src/lib/dataStructure/helpers/ScopeTreeManager.ts +6 -4
- package/analyzer-template/packages/ai/src/lib/dataStructure/helpers/cleanKnownObjectFunctions.ts +20 -1
- package/analyzer-template/packages/ai/src/lib/dataStructure/helpers/cleanNonObjectFunctions.ts +35 -13
- package/analyzer-template/packages/ai/src/lib/dataStructure/helpers/convertTypeAnnotationsToValues.ts +160 -0
- package/analyzer-template/packages/ai/src/lib/dataStructure/helpers/deduplicateFunctionSchemas.ts +40 -30
- package/analyzer-template/packages/ai/src/lib/dataStructure/helpers/fillInSchemaGapsAndUnknowns.ts +289 -83
- package/analyzer-template/packages/ai/src/lib/generateEntityScenarioData.ts +269 -1
- package/analyzer-template/packages/ai/src/lib/generateEntityScenarios.ts +9 -5
- package/analyzer-template/packages/ai/src/lib/generateExecutionFlows.ts +11 -3
- package/analyzer-template/packages/ai/src/lib/generateExecutionFlowsFromConditionalEffects.ts +1 -1
- package/analyzer-template/packages/ai/src/lib/generateExecutionFlowsFromConditionals.ts +297 -7
- package/analyzer-template/packages/ai/src/lib/generateExecutionFlowsFromJsxUsages.ts +1 -1
- package/analyzer-template/packages/ai/src/lib/mergeStatements.ts +90 -96
- package/analyzer-template/packages/ai/src/lib/promptGenerators/gatherAttributesMap.ts +10 -7
- package/analyzer-template/packages/ai/src/lib/resolvePathToControllable.ts +25 -13
- package/analyzer-template/packages/ai/src/lib/worker/SerializableDataStructure.ts +4 -3
- package/analyzer-template/packages/analyze/src/lib/FileAnalyzer.ts +65 -59
- package/analyzer-template/packages/analyze/src/lib/ProjectAnalyzer.ts +113 -26
- package/analyzer-template/packages/analyze/src/lib/asts/sourceFiles/getAllDeclaredEntityNodes.ts +19 -0
- package/analyzer-template/packages/analyze/src/lib/asts/sourceFiles/getAllEntityNodes.ts +19 -0
- package/analyzer-template/packages/analyze/src/lib/asts/sourceFiles/getAllExports.ts +11 -0
- package/analyzer-template/packages/analyze/src/lib/asts/sourceFiles/getImportsAnalysis.ts +8 -0
- package/analyzer-template/packages/analyze/src/lib/asts/sourceFiles/getResolvedModule.ts +49 -1
- package/analyzer-template/packages/analyze/src/lib/asts/sourceFiles/getSourceFilesForAllImports.ts +2 -1
- package/analyzer-template/packages/analyze/src/lib/files/analyze/analyzeEntities/prepareDataStructures.ts +20 -6
- package/analyzer-template/packages/analyze/src/lib/files/analyze/analyzeEntities.ts +14 -4
- package/analyzer-template/packages/analyze/src/lib/files/analyze/gatherEntityMap.ts +4 -2
- package/analyzer-template/packages/analyze/src/lib/files/analyze/validateDependencyAnalyses.ts +0 -3
- package/analyzer-template/packages/analyze/src/lib/files/analyzeRemixRoute.ts +4 -5
- package/analyzer-template/packages/analyze/src/lib/files/getImportedExports.ts +14 -12
- package/analyzer-template/packages/analyze/src/lib/files/scenarios/enrichArrayTypesFromChildSignatures.ts +57 -13
- package/analyzer-template/packages/analyze/src/lib/files/scenarios/gatherDataForMocks.ts +29 -0
- package/analyzer-template/packages/analyze/src/lib/files/scenarios/generateDataStructure.ts +35 -4
- package/analyzer-template/packages/analyze/src/lib/files/scenarios/generateExecutionFlows.ts +117 -9
- package/analyzer-template/packages/analyze/src/lib/files/scenarios/mergeInDependentDataStructure.ts +199 -17
- package/analyzer-template/packages/analyze/src/lib/files/scenarios/propagateArrayItemSchemas.ts +474 -0
- package/analyzer-template/packages/analyze/src/lib/files/setImportedExports.ts +2 -1
- package/analyzer-template/packages/analyze/src/lib/utils/getFileByPath.ts +19 -0
- package/analyzer-template/packages/aws/package.json +1 -1
- package/analyzer-template/packages/github/dist/types/src/types/ScenariosDataStructure.d.ts +5 -5
- package/analyzer-template/packages/github/dist/types/src/types/ScenariosDataStructure.d.ts.map +1 -1
- package/analyzer-template/packages/github/dist/types/src/types/ScopeAnalysis.d.ts +6 -1
- package/analyzer-template/packages/github/dist/types/src/types/ScopeAnalysis.d.ts.map +1 -1
- package/analyzer-template/packages/github/package.json +1 -1
- package/analyzer-template/packages/types/src/types/ScenariosDataStructure.ts +6 -5
- package/analyzer-template/packages/types/src/types/ScopeAnalysis.ts +6 -1
- package/analyzer-template/packages/utils/dist/types/src/types/ScenariosDataStructure.d.ts +5 -5
- package/analyzer-template/packages/utils/dist/types/src/types/ScenariosDataStructure.d.ts.map +1 -1
- package/analyzer-template/packages/utils/dist/types/src/types/ScopeAnalysis.d.ts +6 -1
- package/analyzer-template/packages/utils/dist/types/src/types/ScopeAnalysis.d.ts.map +1 -1
- package/analyzer-template/project/constructMockCode.ts +54 -9
- package/analyzer-template/project/writeMockDataTsx.ts +73 -2
- package/background/src/lib/virtualized/project/constructMockCode.js +45 -3
- package/background/src/lib/virtualized/project/constructMockCode.js.map +1 -1
- package/background/src/lib/virtualized/project/writeMockDataTsx.js +71 -2
- package/background/src/lib/virtualized/project/writeMockDataTsx.js.map +1 -1
- package/codeyam-cli/scripts/apply-setup.js +146 -0
- package/codeyam-cli/scripts/apply-setup.js.map +1 -1
- package/codeyam-cli/src/commands/debug.js +7 -5
- package/codeyam-cli/src/commands/debug.js.map +1 -1
- package/codeyam-cli/src/utils/install-skills.js +22 -0
- package/codeyam-cli/src/utils/install-skills.js.map +1 -1
- package/codeyam-cli/src/utils/reviewedRules.js +92 -0
- package/codeyam-cli/src/utils/reviewedRules.js.map +1 -0
- package/codeyam-cli/src/webserver/build/client/assets/globals-CX9f-5xM.css +1 -0
- package/codeyam-cli/src/webserver/build/client/assets/{manifest-7522edd4.js → manifest-bba56ec1.js} +1 -1
- package/codeyam-cli/src/webserver/build/client/assets/memory-DuTFSyJ2.js +92 -0
- package/codeyam-cli/src/webserver/build/client/assets/{root-eVAaavTS.js → root-DTfSQARG.js} +6 -6
- package/codeyam-cli/src/webserver/build/server/assets/{index-DVzYx8PN.js → index-TD1f-DHV.js} +1 -1
- package/codeyam-cli/src/webserver/build/server/assets/server-build-BQ-1XyEa.js +258 -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:memory.md +174 -233
- package/codeyam-cli/templates/codeyam:new-rule.md +41 -2
- package/codeyam-cli/templates/rule-reflection-hook.py +161 -0
- package/codeyam-cli/templates/rules-instructions.md +126 -0
- package/package.json +1 -1
- package/packages/ai/index.js +2 -1
- package/packages/ai/index.js.map +1 -1
- package/packages/ai/src/lib/analyzeScope.js +29 -12
- package/packages/ai/src/lib/analyzeScope.js.map +1 -1
- package/packages/ai/src/lib/astScopes/astScopeAnalyzer.js +54 -8
- package/packages/ai/src/lib/astScopes/astScopeAnalyzer.js.map +1 -1
- package/packages/ai/src/lib/astScopes/processExpression.js +239 -43
- package/packages/ai/src/lib/astScopes/processExpression.js.map +1 -1
- package/packages/ai/src/lib/dataStructure/ScopeDataStructure.js +503 -165
- package/packages/ai/src/lib/dataStructure/ScopeDataStructure.js.map +1 -1
- package/packages/ai/src/lib/dataStructure/helpers/BatchSchemaProcessor.js +13 -3
- package/packages/ai/src/lib/dataStructure/helpers/BatchSchemaProcessor.js.map +1 -1
- package/packages/ai/src/lib/dataStructure/helpers/ScopeTreeManager.js +6 -4
- package/packages/ai/src/lib/dataStructure/helpers/ScopeTreeManager.js.map +1 -1
- package/packages/ai/src/lib/dataStructure/helpers/cleanKnownObjectFunctions.js +22 -1
- package/packages/ai/src/lib/dataStructure/helpers/cleanKnownObjectFunctions.js.map +1 -1
- package/packages/ai/src/lib/dataStructure/helpers/cleanNonObjectFunctions.js +34 -9
- package/packages/ai/src/lib/dataStructure/helpers/cleanNonObjectFunctions.js.map +1 -1
- package/packages/ai/src/lib/dataStructure/helpers/convertTypeAnnotationsToValues.js +159 -0
- package/packages/ai/src/lib/dataStructure/helpers/convertTypeAnnotationsToValues.js.map +1 -0
- package/packages/ai/src/lib/dataStructure/helpers/deduplicateFunctionSchemas.js +37 -20
- package/packages/ai/src/lib/dataStructure/helpers/deduplicateFunctionSchemas.js.map +1 -1
- package/packages/ai/src/lib/dataStructure/helpers/fillInSchemaGapsAndUnknowns.js +237 -73
- package/packages/ai/src/lib/dataStructure/helpers/fillInSchemaGapsAndUnknowns.js.map +1 -1
- package/packages/ai/src/lib/generateEntityScenarioData.js +195 -1
- package/packages/ai/src/lib/generateEntityScenarioData.js.map +1 -1
- package/packages/ai/src/lib/generateEntityScenarios.js +7 -1
- package/packages/ai/src/lib/generateEntityScenarios.js.map +1 -1
- package/packages/ai/src/lib/generateExecutionFlows.js +10 -2
- package/packages/ai/src/lib/generateExecutionFlows.js.map +1 -1
- package/packages/ai/src/lib/generateExecutionFlowsFromConditionals.js +209 -3
- package/packages/ai/src/lib/generateExecutionFlowsFromConditionals.js.map +1 -1
- package/packages/ai/src/lib/mergeStatements.js +70 -51
- package/packages/ai/src/lib/mergeStatements.js.map +1 -1
- package/packages/ai/src/lib/promptGenerators/gatherAttributesMap.js +10 -4
- package/packages/ai/src/lib/promptGenerators/gatherAttributesMap.js.map +1 -1
- package/packages/ai/src/lib/resolvePathToControllable.js +24 -14
- package/packages/ai/src/lib/resolvePathToControllable.js.map +1 -1
- package/packages/ai/src/lib/worker/SerializableDataStructure.js.map +1 -1
- package/packages/analyze/src/lib/FileAnalyzer.js +60 -36
- package/packages/analyze/src/lib/FileAnalyzer.js.map +1 -1
- package/packages/analyze/src/lib/ProjectAnalyzer.js +96 -26
- package/packages/analyze/src/lib/ProjectAnalyzer.js.map +1 -1
- package/packages/analyze/src/lib/asts/sourceFiles/getAllDeclaredEntityNodes.js +14 -0
- package/packages/analyze/src/lib/asts/sourceFiles/getAllDeclaredEntityNodes.js.map +1 -1
- package/packages/analyze/src/lib/asts/sourceFiles/getAllEntityNodes.js +14 -0
- package/packages/analyze/src/lib/asts/sourceFiles/getAllEntityNodes.js.map +1 -1
- package/packages/analyze/src/lib/asts/sourceFiles/getAllExports.js +6 -0
- package/packages/analyze/src/lib/asts/sourceFiles/getAllExports.js.map +1 -1
- package/packages/analyze/src/lib/asts/sourceFiles/getImportsAnalysis.js +6 -0
- package/packages/analyze/src/lib/asts/sourceFiles/getImportsAnalysis.js.map +1 -1
- package/packages/analyze/src/lib/asts/sourceFiles/getResolvedModule.js +39 -1
- package/packages/analyze/src/lib/asts/sourceFiles/getResolvedModule.js.map +1 -1
- package/packages/analyze/src/lib/asts/sourceFiles/getSourceFilesForAllImports.js +2 -1
- package/packages/analyze/src/lib/asts/sourceFiles/getSourceFilesForAllImports.js.map +1 -1
- package/packages/analyze/src/lib/files/analyze/analyzeEntities/prepareDataStructures.js +13 -5
- package/packages/analyze/src/lib/files/analyze/analyzeEntities/prepareDataStructures.js.map +1 -1
- package/packages/analyze/src/lib/files/analyze/analyzeEntities.js +14 -4
- package/packages/analyze/src/lib/files/analyze/analyzeEntities.js.map +1 -1
- package/packages/analyze/src/lib/files/analyze/gatherEntityMap.js +2 -1
- package/packages/analyze/src/lib/files/analyze/gatherEntityMap.js.map +1 -1
- package/packages/analyze/src/lib/files/analyze/validateDependencyAnalyses.js +0 -3
- package/packages/analyze/src/lib/files/analyze/validateDependencyAnalyses.js.map +1 -1
- package/packages/analyze/src/lib/files/analyzeRemixRoute.js +3 -2
- package/packages/analyze/src/lib/files/analyzeRemixRoute.js.map +1 -1
- package/packages/analyze/src/lib/files/getImportedExports.js +11 -7
- package/packages/analyze/src/lib/files/getImportedExports.js.map +1 -1
- package/packages/analyze/src/lib/files/scenarios/enrichArrayTypesFromChildSignatures.js +52 -10
- package/packages/analyze/src/lib/files/scenarios/enrichArrayTypesFromChildSignatures.js.map +1 -1
- package/packages/analyze/src/lib/files/scenarios/gatherDataForMocks.js +25 -8
- package/packages/analyze/src/lib/files/scenarios/gatherDataForMocks.js.map +1 -1
- package/packages/analyze/src/lib/files/scenarios/generateDataStructure.js +34 -4
- package/packages/analyze/src/lib/files/scenarios/generateDataStructure.js.map +1 -1
- package/packages/analyze/src/lib/files/scenarios/generateExecutionFlows.js +56 -8
- package/packages/analyze/src/lib/files/scenarios/generateExecutionFlows.js.map +1 -1
- package/packages/analyze/src/lib/files/scenarios/mergeInDependentDataStructure.js +168 -9
- package/packages/analyze/src/lib/files/scenarios/mergeInDependentDataStructure.js.map +1 -1
- package/packages/analyze/src/lib/files/setImportedExports.js +2 -1
- package/packages/analyze/src/lib/files/setImportedExports.js.map +1 -1
- package/packages/analyze/src/lib/utils/getFileByPath.js +12 -0
- package/packages/analyze/src/lib/utils/getFileByPath.js.map +1 -0
- package/codeyam-cli/src/webserver/build/client/assets/globals-D3yhhV8x.css +0 -1
- package/codeyam-cli/src/webserver/build/client/assets/memory-yxFcrxBX.js +0 -92
- package/codeyam-cli/src/webserver/build/server/assets/server-build-4Cr0uToj.js +0 -257
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{r,j as e,d as
|
|
1
|
+
import{r,j as e,d as G,a as oe,c as ae,L as O,w as ne,M as re,C as le,S as ce,D as de,u as me,f as he,O as pe}from"./chunk-EPOLDU6W-CXRTFQ3F.js";import{_ as xe}from"./preload-helper-ckwbz45p.js";import{c as fe}from"./cy-logo-cli-DcX-ZS3p.js";import{B as ue,R as ye,S as ve}from"./ReportIssueModal-OApQuNyq.js";import{a as ge,R as je}from"./useReportContext-DYxHZQuP.js";import{L as q}from"./loader-circle-B7B9V-bu.js";import{c as S}from"./createLucideIcon-BdhJEx6B.js";import{T as Ce,u as we}from"./useToast-mBRpZPiu.js";import{u as ke}from"./useLastLogLine-aSv48UbS.js";import{L as be}from"./LogViewer-xgeCVgSM.js";import{E as Ne}from"./EntityTypeIcon-Ba2JVPzP.js";import{T as Se}from"./TruncatedFilePath-DyFZkK0l.js";import{C as Ae}from"./chevron-down-Cx24_aWc.js";import{C as Le}from"./circle-check-BOARzkeR.js";import"./triangle-alert-B6LgvRJg.js";import"./copy-Bb-80kDT.js";function ze({id:t,selected:o,onClick:a,icon:d,name:m}){const[l,i]=r.useState(!1);r.useEffect(()=>{i(!0)},[]);const C=r.useCallback(()=>{a==null||a(t)},[a,t]);return e.jsxs("button",{className:`
|
|
2
2
|
w-full px-1.5 py-2 cursor-pointer focus:outline-none
|
|
3
3
|
flex flex-col items-center justify-center gap-1 transition-colors
|
|
4
4
|
${o?"text-[#CBF3FA]":"text-[#568B94] hover:text-[#CBF3FA]"}
|
|
@@ -7,7 +7,7 @@ import{r,j as e,d as X,a as oe,c as ae,L as O,w as ne,M as re,C as le,S as ce,D
|
|
|
7
7
|
*
|
|
8
8
|
* This source code is licensed under the ISC license.
|
|
9
9
|
* See the LICENSE file in the root directory of this source tree.
|
|
10
|
-
*/const Te=[["path",{d:"M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2",key:"169zse"}]],
|
|
10
|
+
*/const Te=[["path",{d:"M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2",key:"169zse"}]],H=S("activity",Te);/**
|
|
11
11
|
* @license lucide-react v0.556.0 - ISC
|
|
12
12
|
*
|
|
13
13
|
* This source code is licensed under the ISC license.
|
|
@@ -32,7 +32,7 @@ import{r,j as e,d as X,a as oe,c as ae,L as O,w as ne,M as re,C as le,S as ce,D
|
|
|
32
32
|
*
|
|
33
33
|
* This source code is licensed under the ISC license.
|
|
34
34
|
* See the LICENSE file in the root directory of this source tree.
|
|
35
|
-
*/const Be=[["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}],["line",{x1:"3",x2:"9",y1:"12",y2:"12",key:"1dyftd"}],["line",{x1:"15",x2:"21",y1:"12",y2:"12",key:"oup4p8"}]],
|
|
35
|
+
*/const Be=[["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}],["line",{x1:"3",x2:"9",y1:"12",y2:"12",key:"1dyftd"}],["line",{x1:"15",x2:"21",y1:"12",y2:"12",key:"oup4p8"}]],X=S("git-commit-horizontal",Be);/**
|
|
36
36
|
* @license lucide-react v0.556.0 - ISC
|
|
37
37
|
*
|
|
38
38
|
* This source code is licensed under the ISC license.
|
|
@@ -42,12 +42,12 @@ import{r,j as e,d as X,a as oe,c as ae,L as O,w as ne,M as re,C as le,S as ce,D
|
|
|
42
42
|
*
|
|
43
43
|
* This source code is licensed under the ISC license.
|
|
44
44
|
* See the LICENSE file in the root directory of this source tree.
|
|
45
|
-
*/const
|
|
45
|
+
*/const He=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M3 9h18",key:"1pudct"}],["path",{d:"M9 21V9",key:"1oto5p"}]],Ve=S("panels-top-left",He);/**
|
|
46
46
|
* @license lucide-react v0.556.0 - ISC
|
|
47
47
|
*
|
|
48
48
|
* This source code is licensed under the ISC license.
|
|
49
49
|
* See the LICENSE file in the root directory of this source tree.
|
|
50
|
-
*/const Re=[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]],qe=S("refresh-cw",Re);function Je(){var y;const t=
|
|
50
|
+
*/const Re=[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]],qe=S("refresh-cw",Re);function Je(){var y;const t=G(),o=oe(),[a,d]=r.useState(),[m,l]=r.useState(!1),[i,C]=r.useState(!1),[z,k]=r.useState(null),h=ae();r.useEffect(()=>{h.state==="idle"&&!h.data&&h.load("/api/generate-report")},[h]);const A=((y=h.data)==null?void 0:y.defaultEmail)||"",c={width:"20px",height:"20px",strokeWidth:1.5},g=[{id:"dashboard",icon:e.jsx(Oe,{style:c}),link:"/",name:"Dashboard"},{id:"simulations",icon:e.jsxs("svg",{width:"20",height:"20",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:c,children:[e.jsx("path",{d:"M9 12.75V15.75",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),e.jsx("path",{d:"M6 15.75H12",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),e.jsx("path",{d:"M6.75 12.7498L11.325 8.17483C11.6067 7.89873 11.9858 7.7447 12.3803 7.7461C12.7747 7.74751 13.1528 7.90423 13.4325 8.18233L16.5 11.2498",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),e.jsx("path",{d:"M6 8.25C6.82843 8.25 7.5 7.57843 7.5 6.75C7.5 5.92157 6.82843 5.25 6 5.25C5.17157 5.25 4.5 5.92157 4.5 6.75C4.5 7.57843 5.17157 8.25 6 8.25Z",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),e.jsx("path",{d:"M15 2.25H3C2.17157 2.25 1.5 2.92157 1.5 3.75V11.25C1.5 12.0784 2.17157 12.75 3 12.75H15C15.8284 12.75 16.5 12.0784 16.5 11.25V3.75C16.5 2.92157 15.8284 2.25 15 2.25Z",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]}),link:"/simulations",name:"Simulations"},{id:"git",icon:e.jsx(X,{style:c}),link:"/git",name:"Git"},{id:"files",icon:e.jsx(Pe,{style:c}),link:"/files",name:"Files"},{id:"activity",icon:e.jsx(qe,{style:c}),link:"/activity",name:"Activity"},{id:"memory",icon:e.jsx(Me,{style:c}),link:"/memory",name:"Memory"},{id:"settings",icon:e.jsx(ve,{style:c}),link:"/settings",name:"Settings"},{id:"commits",icon:e.jsx(X,{style:c}),link:"/commits",name:"Commits",hidden:!0},{id:"pages",icon:e.jsx(Ve,{style:c}),link:"/pages",name:"Pages",hidden:!0},{id:"components",icon:e.jsx($e,{style:c}),link:"/components",name:"Components",hidden:!0}],L=r.useCallback(n=>{const x=g.find(v=>v.id===n);x!=null&&x.link&&o(x.link),d(v=>v===n?void 0:n)},[g,o]);r.useEffect(()=>{const n={dashboard:["/","/home"],git:["git"],commits:["commits"],simulations:["simulations"],activity:["activity"],memory:["memory"],files:["files"],settings:["settings"],pages:["pages"],components:["components"]};for(const[x,v]of Object.entries(n))if(v.some(f=>f==="/"?t.pathname==="/":t.pathname.includes(f))){d(x);return}d(void 0)},[t]);const T=async()=>{C(!0);try{const{default:n}=await xe(async()=>{const{default:f}=await import("./html2canvas-pro.esm-fmIEn3Bc.js");return{default:f}},[]),v=(await n(document.body)).toDataURL("image/jpeg",.8);k(v),l(!0)}catch(n){console.error("Screenshot capture failed:",n),l(!0)}finally{C(!1)}},I=()=>{l(!1),k(null)},E=ge();return e.jsxs(e.Fragment,{children:[e.jsxs("div",{id:"sidebar",className:"relative w-full h-screen bg-[#051C22] flex flex-col justify-between py-3",children:[e.jsxs("div",{className:"w-full flex flex-col items-center",children:[e.jsx("div",{className:"py-3 mt-2 mb-4",children:e.jsx(O,{to:"/",className:"flex items-center justify-center cursor-pointer",children:e.jsx("img",{src:fe,alt:"CodeYam",className:"h-6"})})}),g.filter(n=>!n.hidden).map(n=>e.jsx(ze,{id:n.id,selected:n.id===a,onClick:L,icon:n.icon,name:n.name},`sidebar-button-${n.id}`))]}),e.jsx("div",{className:"w-full flex flex-col items-center pb-2",children:e.jsxs("button",{onClick:()=>void T(),disabled:i,className:"w-full px-1.5 py-2 flex flex-col items-center justify-center gap-1 text-[#568B94] hover:text-[#CBF3FA] transition-colors cursor-pointer disabled:opacity-50 disabled:cursor-wait",children:[e.jsx("div",{className:"w-9 h-9 rounded-lg flex items-center justify-center",children:i?e.jsx(q,{style:{width:"20px",height:"20px",strokeWidth:1.5},className:"animate-spin"}):e.jsx(ue,{style:{width:"20px",height:"20px",strokeWidth:1.5}})}),e.jsx("span",{className:"text-[9px] font-normal text-center leading-tight whitespace-pre-line",children:i?"Capturing...":`Report
|
|
51
51
|
Bug`})]})})]}),m&&e.jsx(ye,{isOpen:!0,onClose:I,context:E,defaultEmail:A,screenshotDataUrl:z??void 0})]})}function Ue({toast:t,onClose:o}){r.useEffect(()=>{const m=t.duration||5e3;if(m>0){const l=setTimeout(()=>{o(t.id)},m);return()=>clearTimeout(l)}},[t.id,t.duration,o]);const a={success:"✅",error:"❌",info:"ℹ️",warning:"⚠️"},d={success:"bg-emerald-50 border-emerald-200 text-emerald-900",error:"bg-red-50 border-red-200 text-red-900",info:"bg-blue-50 border-blue-200 text-blue-900",warning:"bg-amber-50 border-amber-200 text-amber-900"};return e.jsxs("div",{className:`flex items-center gap-3 px-4 py-3 rounded-lg border-2 shadow-lg min-w-[320px] max-w-[500px] animate-[slideIn_0.3s_ease-out] ${d[t.type]}`,children:[e.jsx("span",{className:"text-2xl",children:a[t.type]}),e.jsx("p",{className:"flex-1 text-sm font-medium m-0",children:t.message}),e.jsx("button",{onClick:()=>o(t.id),className:"text-gray-500 hover:text-gray-700 text-xl leading-none bg-transparent border-none cursor-pointer p-0 w-6 h-6 flex items-center justify-center rounded transition-colors hover:bg-black/10",children:"×"})]})}function Ye({toasts:t,onClose:o}){return t.length===0?null:e.jsxs("div",{className:"fixed top-4 right-4 z-10000 flex flex-col gap-2",children:[e.jsx("style",{children:`
|
|
52
52
|
@keyframes slideIn {
|
|
53
53
|
from {
|
|
@@ -59,4 +59,4 @@ Bug`})]})})]}),m&&e.jsx(ye,{isOpen:!0,onClose:I,context:E,defaultEmail:A,screens
|
|
|
59
59
|
opacity: 1;
|
|
60
60
|
}
|
|
61
61
|
}
|
|
62
|
-
`}),t.map(a=>e.jsx(Ue,{toast:a,onClose:o},a.id))]})}function H({entity:t,nameSize:o="11px",pathSize:a="10px",pathMaxLength:d=50,showScenarioCount:m=!1,scenarioCount:l=0,additionalContent:i}){return e.jsxs("div",{className:"flex flex-col gap-1",children:[e.jsxs("div",{className:"flex items-center gap-1",children:[e.jsx(Ne,{type:t.entityType||"other"}),e.jsxs(O,{to:`/entity/${t.sha}`,className:"hover:underline shrink-0 cursor-pointer",style:{fontSize:o,fontWeight:500,color:"#000",whiteSpace:"nowrap"},children:[t.name,m&&l>0&&` (${l})`]}),e.jsx(Se,{filePath:t.filePath,maxLength:d,style:{fontSize:a,color:"#8E8E8E"}})]}),i]})}const R={fontSize:"9px",color:"#005C75",fontStyle:"italic"};function Qe({currentRun:t,projectSlug:o,currentEntities:a=[],isAnalysisStarting:d=!1,queuedJobCount:m=0,queueJobs:l=[],currentlyExecuting:i=null,historicalRuns:C=[]}){var J,U,Y;const[z,k]=r.useState(!1),[h,A]=r.useState(!1),[c,g]=r.useState(null),[L,T]=r.useState(new Set),[I,E]=r.useState(new Set),[y,n]=r.useState(!1),x=!!i||l.length>0,v=!!i,f=(i==null?void 0:i.entities)||a,P=!!(t!=null&&t.analysisCompletedAt),$=(t==null?void 0:t.readyToBeCaptured)??0,K=(t==null?void 0:t.capturesCompleted)??0;t!=null&&t.captureCompletedAt||P&&($===0||K>=$);const Z=(t==null?void 0:t.currentEntityShas)&&t.currentEntityShas.length>0,ee=x,{lastLine:B}=ke(o,ee),_=v||l.length>0,te=new Set(((J=i==null?void 0:i.entities)==null?void 0:J.map(s=>s.sha))||[]),W=C.filter(s=>!(s.currentEntityShas||[]).some(p=>te.has(p))),se=(()=>{const u=Date.now()-1440*60*1e3;if(t!=null&&t.createdAt&&Z){const p=t.analysisCompletedAt||t.createdAt;if(new Date(p).getTime()>u)return!0}if(W.length>0){const p=W[0],N=p.analysisCompletedAt||p.archivedAt||p.createdAt;if(N&&new Date(N).getTime()>u)return!0}return!1})();return r.useEffect(()=>{const s=(i==null?void 0:i.id)||null;x&&!h&&s!==c&&A(!0),!x&&c!==null&&g(null)},[x,i==null?void 0:i.id,h,c]),e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:`fixed bottom-4 right-4 z-9998 bg-white rounded shadow-lg border-2 border-primary-100 transition-all duration-200 ${h?"min-w-[350px] max-w-[500px]":"w-auto"}`,children:[!h&&e.jsxs("div",{onClick:()=>{A(!0),g(null)},className:"flex items-center gap-2 px-3 py-2 cursor-pointer hover:bg-gray-50 transition-colors",title:"Click to expand",children:[_?e.jsx(q,{size:16,className:"animate-spin",style:{color:"#005C75"}}):e.jsx("div",{className:"flex items-center justify-center rounded",style:{backgroundColor:"#E0E9EC",width:"20px",height:"20px"},children:e.jsx(V,{size:16,style:{color:"#005C75"}})}),e.jsx("span",{style:{fontSize:"12px",fontWeight:500,color:"#343434"},children:_?"Analyzing...":"Activity: No Activity Yet"}),_&&e.jsx("button",{onClick:s=>{s.stopPropagation(),k(!0)},className:"ml-auto px-2 py-1 rounded transition-colors cursor-pointer",style:{backgroundColor:"#E0E9EC",color:"#005C75",fontSize:"10px",fontWeight:600},children:"View Logs"})]}),h&&e.jsxs("div",{children:[e.jsxs("div",{className:"flex items-center justify-between px-3 py-2",children:[e.jsxs("div",{className:"flex items-center gap-2",children:[_?e.jsx(q,{size:16,className:"animate-spin",style:{color:"#005C75"}}):e.jsx("div",{className:"flex items-center justify-center rounded",style:{backgroundColor:"#E0E9EC",width:"20px",height:"20px"},children:e.jsx(V,{size:16,style:{color:"#005C75"}})}),e.jsx("span",{style:{fontSize:"12px",fontWeight:500,color:"#343434"},children:_?"Analyzing...":"Activity"})]}),e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("button",{onClick:()=>k(!0),className:"px-2 py-1 rounded transition-colors cursor-pointer",style:{backgroundColor:"#E0E9EC",color:"#005C75",fontSize:"10px",fontWeight:600},children:"View Logs"}),e.jsx("button",{onClick:()=>{A(!1),g((i==null?void 0:i.id)||null)},className:"p-1 rounded transition-colors cursor-pointer",style:{backgroundColor:"#E0E9EC"},title:"Collapse","aria-label":"Collapse",children:e.jsx(Ae,{size:16,style:{color:"#646464"}})})]})]}),e.jsx("div",{style:{height:"1px",backgroundColor:"#E0E9EC",margin:"0 12px"}}),e.jsxs("div",{className:"px-3 pt-2 pb-3 space-y-3",children:[_&&i&&e.jsxs("div",{children:[e.jsxs("div",{className:"flex items-center gap-1.5 mb-2",children:[e.jsx(V,{size:12,style:{color:"#005C75"}}),e.jsx("h4",{style:{fontSize:"11px",fontWeight:600,color:"#343434"},children:"Current Activity"})]}),e.jsx("div",{className:"rounded p-2",style:{backgroundColor:"#f5f5f5"},children:f.length>0?e.jsxs("div",{className:"space-y-1.5",children:[(y?f:f.slice(0,3)).map(s=>e.jsx(H,{entity:s,nameSize:"11px",pathSize:"10px",pathMaxLength:150},s.sha)),f.length>3&&e.jsx("button",{onClick:()=>n(s=>!s),className:"cursor-pointer bg-transparent border-none p-0 hover:underline",style:R,"aria-label":y?"Show fewer entities":`Show ${f.length-3} more entities`,children:y?"Show less":`+${f.length-3} more`}),B&&e.jsx("div",{style:{fontSize:"10px",color:"#005C75",marginTop:"4px"},children:B})]}):e.jsxs("div",{children:[i.entityNames&&i.entityNames.length>0?e.jsxs("div",{className:"space-y-0.5",children:[i.entityNames.slice(0,5).map((s,u)=>e.jsx("div",{style:{fontSize:"11px",color:"#343434"},children:s},u)),i.entityNames.length>5&&e.jsxs("div",{className:"italic",style:{fontSize:"10px",color:"#666"},children:["+",i.entityNames.length-5," ","more"]})]}):e.jsxs("div",{style:{fontSize:"11px",color:"#343434"},children:["Analyzing"," ",((U=i.entityShas)==null?void 0:U.length)||0," ",((Y=i.entityShas)==null?void 0:Y.length)===1?"entity":"entities","..."]}),B&&e.jsx("div",{style:{fontSize:"10px",color:"#005C75",marginTop:"4px"},children:B})]})})]}),l.length>0&&e.jsxs("div",{children:[e.jsxs("div",{className:"flex items-center gap-1.5 mb-2",children:[e.jsx(De,{size:12,style:{color:"#005C75"}}),e.jsx("h4",{style:{fontSize:"11px",fontWeight:600,color:"#343434"},children:"Queued Activity"})]}),e.jsx("div",{className:"space-y-2 max-h-[200px] overflow-y-auto",children:l.map(s=>{var N,D;const u=L.has(s.id),p=u?s.entities:s.entities.slice(0,3);return e.jsx("div",{className:"rounded p-2",style:{backgroundColor:"#f5f5f5"},children:s.entities.length>0?e.jsxs("div",{className:"space-y-1.5",children:[p.map(b=>e.jsx(H,{entity:b,nameSize:"10px",pathSize:"9px",pathMaxLength:120},b.sha)),s.entities.length>3&&e.jsx("button",{onClick:()=>{T(b=>{const M=new Set(b);return M.has(s.id)?M.delete(s.id):M.add(s.id),M})},className:"cursor-pointer bg-transparent border-none p-0 hover:underline",style:R,"aria-label":u?"Show fewer entities":`Show ${s.entities.length-3} more entities`,children:u?"Show less":`+${s.entities.length-3} more`})]}):e.jsxs("div",{style:{fontSize:"10px",color:"#343434"},children:[s.type==="analysis"&&e.jsx(e.Fragment,{children:s.entityNames&&s.entityNames.length>0?e.jsxs("div",{className:"space-y-0.5",children:[s.entityNames.slice(0,5).map((b,M)=>e.jsx("div",{children:b},M)),s.entityNames.length>5&&e.jsxs("div",{className:"italic",children:["+",s.entityNames.length-5," more"]})]}):`Analyzing ${((N=s.entityShas)==null?void 0:N.length)||0} ${((D=s.entityShas)==null?void 0:D.length)===1?"entity":"entities"}`}),s.type==="recapture"&&"Recapturing scenario",s.type==="debug-setup"&&"Setting up debug environment"]})},s.id)})})]}),se&&W.length>0&&e.jsxs("div",{children:[e.jsxs("div",{className:"flex items-center gap-1.5 mb-2",children:[e.jsx(Le,{size:12,style:{color:"#005C75"}}),e.jsx("h4",{style:{fontSize:"11px",fontWeight:600,color:"#343434"},children:"Recently Completed"})]}),e.jsx("div",{className:"space-y-2 max-h-[200px] overflow-y-auto",children:W.slice(0,3).map((s,u)=>{const p=s.entities||[],N=s.analysisCompletedAt||s.archivedAt||s.createdAt||"",D=(()=>{if(!N)return"";const w=Date.now()-new Date(N).getTime(),j=Math.floor(w/6e4),F=Math.floor(w/36e5);return F>0?`${F}h ago`:j>0?`${j}m ago`:"just now"})(),b=I.has(u),ie=(b?p:p.slice(0,3)).map(w=>{var j,F,Q;return{...w,scenarioCount:((Q=(F=(j=w.analyses)==null?void 0:j[0])==null?void 0:F.scenarios)==null?void 0:Q.length)||0}});return e.jsx("div",{className:"rounded p-2",style:{backgroundColor:"#f5f5f5"},children:p.length>0&&e.jsxs("div",{className:"space-y-1.5",children:[ie.map((w,j)=>e.jsxs("div",{className:"flex items-start justify-between gap-2",children:[e.jsx("div",{className:"flex-1 min-w-0",children:e.jsx(H,{entity:w,nameSize:"10px",pathSize:"9px",pathMaxLength:100,showScenarioCount:!0,scenarioCount:w.scenarioCount})}),j===0&&D&&e.jsx("div",{style:{fontSize:"9px",color:"#8E8E8E",whiteSpace:"nowrap",paddingTop:"2px"},children:D})]},w.sha)),p.length>3&&e.jsx("button",{onClick:()=>{E(w=>{const j=new Set(w);return j.has(u)?j.delete(u):j.add(u),j})},className:"cursor-pointer bg-transparent border-none p-0 hover:underline",style:R,"aria-label":b?"Show fewer entities":`Show ${p.length-3} more entities`,children:b?"Show less":`+${p.length-3} more`})]})},u)})})]})]}),e.jsx("div",{style:{height:"1px",backgroundColor:"#E0E9EC",margin:"0 12px"}}),e.jsx("div",{className:"px-3 pb-2",children:e.jsx(O,{to:"/activity",className:"text-xs font-medium hover:underline cursor-pointer",style:{color:"#005C75"},children:"View All Activity →"})})]})]}),z&&o&&e.jsx(be,{projectSlug:o,onClose:()=>k(!1)})]})}const Ge="/assets/globals-D3yhhV8x.css";function Xe({text:t,subtext:o,linkText:a,linkTo:d}){const[m,l]=r.useState(!1);return m?null:e.jsx("div",{className:"bg-blue-100 border rounded border-blue-800 shadow-sm mx-6 mt-6",children:e.jsxs("div",{className:"max-w-7xl mx-auto px-4 py-3 flex items-center justify-between",children:[e.jsxs("div",{className:"flex items-center gap-3 flex-1",children:[e.jsx("div",{className:"shrink-0",children:e.jsx("svg",{className:"w-5 h-5 text-yellow-600",fill:"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",viewBox:"0 0 24 24",stroke:"currentColor",children:e.jsx("path",{d:"M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-3L13.732 4c-.77-1.333-2.694-1.333-3.464 0L3.34 16c-.77 1.333.192 3 1.732 3z"})})}),e.jsxs("div",{className:"flex-1",children:[e.jsx("p",{className:"text-sm font-medium text-blue-900",children:t}),e.jsx("p",{className:"text-xs text-blue-700 mt-0.5",children:o})]}),e.jsx(O,{to:d,className:"shrink-0 px-4 py-2 bg-blue-600 text-white text-sm font-medium rounded hover:bg-blue-700 transition-colors",children:a})]}),e.jsx("button",{type:"button",onClick:()=>l(!0),className:"shrink-0 ml-4 p-1 rounded text-blue-600 hover:text-blue-800 hover:bg-blue-100 transition-colors cursor-pointer","aria-label":"Dismiss banner",children:e.jsx("svg",{className:"w-5 h-5",fill:"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",viewBox:"0 0 24 24",stroke:"currentColor",children:e.jsx("path",{d:"M6 18L18 6M6 6l12 12"})})})]})})}function Ke({serverVersion:t}){const[o,a]=r.useState("stale"),[d,m]=r.useState(null),l=async()=>{a("restarting"),m(null);try{if(!(await fetch("/api/restart-server",{method:"POST"})).ok)throw new Error("Failed to restart server");a("reconnecting");let C=0;const z=30,k=1e3,h=async()=>{try{if((await fetch("/api/health")).ok){window.location.reload();return}}catch{}C++,C<z?setTimeout(()=>void h(),k):(m("Server took too long to restart. Please refresh manually."),a("stale"))};setTimeout(()=>void h(),500)}catch(i){m(i instanceof Error?i.message:"Failed to restart server"),a("stale")}};return e.jsx("div",{className:"bg-amber-100 border rounded border-amber-700 shadow-sm mx-6 mt-6",children:e.jsx("div",{className:"max-w-7xl mx-auto px-4 py-3 flex items-center justify-between",children:e.jsxs("div",{className:"flex items-center gap-3 flex-1",children:[e.jsx("div",{className:"shrink-0",children:e.jsx("svg",{className:"w-5 h-5 text-amber-600",fill:"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",viewBox:"0 0 24 24",stroke:"currentColor",children:e.jsx("path",{d:"M4 4v5h.582m15.356 2A8.001 8.001 0 004.582 9m0 0H9m11 11v-5h-.581m0 0a8.003 8.003 0 01-15.357-2m15.357 2H15"})})}),e.jsxs("div",{className:"flex-1",children:[o==="stale"&&e.jsxs(e.Fragment,{children:[e.jsx("p",{className:"text-sm font-medium text-amber-900",children:"Dashboard server is out of date"}),e.jsxs("p",{className:"text-xs text-amber-700 mt-0.5",children:["Server version: ",t,". A newer version of CodeYam CLI is installed. Restart the server to get the latest features."]}),d&&e.jsx("p",{className:"text-xs text-red-600 mt-1",children:d})]}),o==="restarting"&&e.jsxs(e.Fragment,{children:[e.jsx("p",{className:"text-sm font-medium text-amber-900",children:"Restarting server..."}),e.jsx("p",{className:"text-xs text-amber-700 mt-0.5",children:"Please wait while the server restarts."})]}),o==="reconnecting"&&e.jsxs(e.Fragment,{children:[e.jsx("p",{className:"text-sm font-medium text-amber-900",children:"Reconnecting..."}),e.jsx("p",{className:"text-xs text-amber-700 mt-0.5",children:"Waiting for the server to come back online."})]})]}),o==="stale"&&e.jsx("button",{type:"button",onClick:()=>void l(),className:"shrink-0 px-4 py-2 bg-amber-600 text-white text-sm font-medium rounded hover:bg-amber-700 transition-colors cursor-pointer",children:"Restart Server"}),(o==="restarting"||o==="reconnecting")&&e.jsxs("div",{className:"shrink-0 flex items-center gap-2 px-4 py-2 text-amber-700 text-sm",children:[e.jsxs("svg",{className:"w-4 h-4 animate-spin",fill:"none",viewBox:"0 0 24 24",children:[e.jsx("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),e.jsx("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"})]}),o==="restarting"?"Stopping...":"Reconnecting..."]})]})})})}const ut=()=>[{rel:"stylesheet",href:Ge},{rel:"icon",type:"image/x-icon",href:"/favicon.ico"}];function Ze(){const{currentRun:t,projectSlug:o,currentEntities:a,availableAPIKeys:d,queuedJobCount:m,queueJobs:l,currentlyExecuting:i,historicalRuns:C,isServerOutOfDate:z,serverVersion:k}=me(),{toasts:h,closeToast:A}=we(),c=he(),g=r.useRef(c),L=X();r.useEffect(()=>{g.current=c},[c]);const T=L.pathname.startsWith("/entity/")&&L.pathname.includes("/edit/")||L.pathname.startsWith("/dev/"),I=L.pathname.includes("/fullscreen");return r.useEffect(()=>{const E=new EventSource("/api/events");let y=null,n=0;const x=2e3;return E.addEventListener("message",v=>{const f=JSON.parse(v.data);if(f.type==="queue")g.current.revalidate(),n=Date.now();else if(f.type==="db-change"||f.type==="unknown"){const P=Date.now(),$=P-n;$<x?(y&&clearTimeout(y),y=setTimeout(()=>{g.current.revalidate(),n=Date.now(),y=null},x-$)):(g.current.revalidate(),n=P)}}),E.addEventListener("error",v=>{console.error("SSE connection error:",v)}),()=>{y&&clearTimeout(y),E.close()}},[]),e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:`min-h-screen ${T?"":"grid"} bg-cygray-10`,style:T?void 0:{gridTemplateColumns:"65px minmax(900px, 1fr)"},children:[!T&&e.jsx(Je,{}),e.jsxs("div",{className:"max-h-screen overflow-auto bg-cygray-10",children:[z&&e.jsx(Ke,{serverVersion:k}),d.length===0&&e.jsx(Xe,{text:"No AI API keys configured. Please provide an AI API key at your earliest convenience.",subtext:"An API key is required for stable, frequent use of CodeYam",linkText:"Configure API Keys",linkTo:"/settings"}),e.jsx(pe,{})]})]}),e.jsx(Ye,{toasts:h,onClose:A}),!I&&e.jsx(Qe,{currentRun:t,projectSlug:o,currentEntities:a,isAnalysisStarting:!1,queuedJobCount:m,queueJobs:l,currentlyExecuting:i,historicalRuns:C})]})}const yt=ne(function(){return e.jsxs("html",{lang:"en",children:[e.jsxs("head",{children:[e.jsx("meta",{charSet:"utf-8"}),e.jsx("meta",{name:"viewport",content:"width=device-width,initial-scale=1"}),e.jsx(re,{}),e.jsx(le,{})]}),e.jsxs("body",{children:[e.jsx(Ce,{children:e.jsx(je,{children:e.jsx(Ze,{})})}),e.jsx(ce,{}),e.jsx(de,{})]})]})});export{yt as default,ut as links};
|
|
62
|
+
`}),t.map(a=>e.jsx(Ue,{toast:a,onClose:o},a.id))]})}function V({entity:t,nameSize:o="11px",pathSize:a="10px",pathMaxLength:d=50,showScenarioCount:m=!1,scenarioCount:l=0,additionalContent:i}){return e.jsxs("div",{className:"flex flex-col gap-1",children:[e.jsxs("div",{className:"flex items-center gap-1",children:[e.jsx(Ne,{type:t.entityType||"other"}),e.jsxs(O,{to:`/entity/${t.sha}`,className:"hover:underline shrink-0 cursor-pointer",style:{fontSize:o,fontWeight:500,color:"#000",whiteSpace:"nowrap"},children:[t.name,m&&l>0&&` (${l})`]}),e.jsx(Se,{filePath:t.filePath,maxLength:d,style:{fontSize:a,color:"#8E8E8E"}})]}),i]})}const R={fontSize:"9px",color:"#005C75",fontStyle:"italic"};function Qe({currentRun:t,projectSlug:o,currentEntities:a=[],isAnalysisStarting:d=!1,queuedJobCount:m=0,queueJobs:l=[],currentlyExecuting:i=null,historicalRuns:C=[]}){var J,U,Y;const[z,k]=r.useState(!1),[h,A]=r.useState(!1),[c,g]=r.useState(null),[L,T]=r.useState(new Set),[I,E]=r.useState(new Set),[y,n]=r.useState(!1),x=!!i||l.length>0,v=!!i,f=(i==null?void 0:i.entities)||a,P=!!(t!=null&&t.analysisCompletedAt),$=(t==null?void 0:t.readyToBeCaptured)??0,K=(t==null?void 0:t.capturesCompleted)??0;t!=null&&t.captureCompletedAt||P&&($===0||K>=$);const Z=(t==null?void 0:t.currentEntityShas)&&t.currentEntityShas.length>0,ee=x,{lastLine:B}=ke(o,ee),_=v||l.length>0,te=new Set(((J=i==null?void 0:i.entities)==null?void 0:J.map(s=>s.sha))||[]),W=C.filter(s=>!(s.currentEntityShas||[]).some(p=>te.has(p))),se=(()=>{const u=Date.now()-1440*60*1e3;if(t!=null&&t.createdAt&&Z){const p=t.analysisCompletedAt||t.createdAt;if(new Date(p).getTime()>u)return!0}if(W.length>0){const p=W[0],N=p.analysisCompletedAt||p.archivedAt||p.createdAt;if(N&&new Date(N).getTime()>u)return!0}return!1})();return r.useEffect(()=>{const s=(i==null?void 0:i.id)||null;x&&!h&&s!==c&&A(!0),!x&&c!==null&&g(null)},[x,i==null?void 0:i.id,h,c]),e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:`fixed bottom-4 right-4 z-9998 bg-white rounded shadow-lg border-2 border-primary-100 transition-all duration-200 ${h?"min-w-[350px] max-w-[500px]":"w-auto"}`,children:[!h&&e.jsxs("div",{onClick:()=>{A(!0),g(null)},className:"flex items-center gap-2 px-3 py-2 cursor-pointer hover:bg-gray-50 transition-colors",title:"Click to expand",children:[_?e.jsx(q,{size:16,className:"animate-spin",style:{color:"#005C75"}}):e.jsx("div",{className:"flex items-center justify-center rounded",style:{backgroundColor:"#E0E9EC",width:"20px",height:"20px"},children:e.jsx(H,{size:16,style:{color:"#005C75"}})}),e.jsx("span",{style:{fontSize:"12px",fontWeight:500,color:"#343434"},children:_?"Analyzing...":"Activity: No Activity Yet"}),_&&e.jsx("button",{onClick:s=>{s.stopPropagation(),k(!0)},className:"ml-auto px-2 py-1 rounded transition-colors cursor-pointer",style:{backgroundColor:"#E0E9EC",color:"#005C75",fontSize:"10px",fontWeight:600},children:"View Logs"})]}),h&&e.jsxs("div",{children:[e.jsxs("div",{className:"flex items-center justify-between px-3 py-2",children:[e.jsxs("div",{className:"flex items-center gap-2",children:[_?e.jsx(q,{size:16,className:"animate-spin",style:{color:"#005C75"}}):e.jsx("div",{className:"flex items-center justify-center rounded",style:{backgroundColor:"#E0E9EC",width:"20px",height:"20px"},children:e.jsx(H,{size:16,style:{color:"#005C75"}})}),e.jsx("span",{style:{fontSize:"12px",fontWeight:500,color:"#343434"},children:_?"Analyzing...":"Activity"})]}),e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("button",{onClick:()=>k(!0),className:"px-2 py-1 rounded transition-colors cursor-pointer",style:{backgroundColor:"#E0E9EC",color:"#005C75",fontSize:"10px",fontWeight:600},children:"View Logs"}),e.jsx("button",{onClick:()=>{A(!1),g((i==null?void 0:i.id)||null)},className:"p-1 rounded transition-colors cursor-pointer",style:{backgroundColor:"#E0E9EC"},title:"Collapse","aria-label":"Collapse",children:e.jsx(Ae,{size:16,style:{color:"#646464"}})})]})]}),e.jsx("div",{style:{height:"1px",backgroundColor:"#E0E9EC",margin:"0 12px"}}),e.jsxs("div",{className:"px-3 pt-2 pb-3 space-y-3",children:[_&&i&&e.jsxs("div",{children:[e.jsxs("div",{className:"flex items-center gap-1.5 mb-2",children:[e.jsx(H,{size:12,style:{color:"#005C75"}}),e.jsx("h4",{style:{fontSize:"11px",fontWeight:600,color:"#343434"},children:"Current Activity"})]}),e.jsx("div",{className:"rounded p-2",style:{backgroundColor:"#f5f5f5"},children:f.length>0?e.jsxs("div",{className:"space-y-1.5",children:[(y?f:f.slice(0,3)).map(s=>e.jsx(V,{entity:s,nameSize:"11px",pathSize:"10px",pathMaxLength:150},s.sha)),f.length>3&&e.jsx("button",{onClick:()=>n(s=>!s),className:"cursor-pointer bg-transparent border-none p-0 hover:underline",style:R,"aria-label":y?"Show fewer entities":`Show ${f.length-3} more entities`,children:y?"Show less":`+${f.length-3} more`}),B&&e.jsx("div",{style:{fontSize:"10px",color:"#005C75",marginTop:"4px"},children:B})]}):e.jsxs("div",{children:[i.entityNames&&i.entityNames.length>0?e.jsxs("div",{className:"space-y-0.5",children:[i.entityNames.slice(0,5).map((s,u)=>e.jsx("div",{style:{fontSize:"11px",color:"#343434"},children:s},u)),i.entityNames.length>5&&e.jsxs("div",{className:"italic",style:{fontSize:"10px",color:"#666"},children:["+",i.entityNames.length-5," ","more"]})]}):e.jsxs("div",{style:{fontSize:"11px",color:"#343434"},children:["Analyzing"," ",((U=i.entityShas)==null?void 0:U.length)||0," ",((Y=i.entityShas)==null?void 0:Y.length)===1?"entity":"entities","..."]}),B&&e.jsx("div",{style:{fontSize:"10px",color:"#005C75",marginTop:"4px"},children:B})]})})]}),l.length>0&&e.jsxs("div",{children:[e.jsxs("div",{className:"flex items-center gap-1.5 mb-2",children:[e.jsx(De,{size:12,style:{color:"#005C75"}}),e.jsx("h4",{style:{fontSize:"11px",fontWeight:600,color:"#343434"},children:"Queued Activity"})]}),e.jsx("div",{className:"space-y-2 max-h-[200px] overflow-y-auto",children:l.map(s=>{var N,D;const u=L.has(s.id),p=u?s.entities:s.entities.slice(0,3);return e.jsx("div",{className:"rounded p-2",style:{backgroundColor:"#f5f5f5"},children:s.entities.length>0?e.jsxs("div",{className:"space-y-1.5",children:[p.map(b=>e.jsx(V,{entity:b,nameSize:"10px",pathSize:"9px",pathMaxLength:120},b.sha)),s.entities.length>3&&e.jsx("button",{onClick:()=>{T(b=>{const M=new Set(b);return M.has(s.id)?M.delete(s.id):M.add(s.id),M})},className:"cursor-pointer bg-transparent border-none p-0 hover:underline",style:R,"aria-label":u?"Show fewer entities":`Show ${s.entities.length-3} more entities`,children:u?"Show less":`+${s.entities.length-3} more`})]}):e.jsxs("div",{style:{fontSize:"10px",color:"#343434"},children:[s.type==="analysis"&&e.jsx(e.Fragment,{children:s.entityNames&&s.entityNames.length>0?e.jsxs("div",{className:"space-y-0.5",children:[s.entityNames.slice(0,5).map((b,M)=>e.jsx("div",{children:b},M)),s.entityNames.length>5&&e.jsxs("div",{className:"italic",children:["+",s.entityNames.length-5," more"]})]}):`Analyzing ${((N=s.entityShas)==null?void 0:N.length)||0} ${((D=s.entityShas)==null?void 0:D.length)===1?"entity":"entities"}`}),s.type==="recapture"&&"Recapturing scenario",s.type==="debug-setup"&&"Setting up debug environment"]})},s.id)})})]}),se&&W.length>0&&e.jsxs("div",{children:[e.jsxs("div",{className:"flex items-center gap-1.5 mb-2",children:[e.jsx(Le,{size:12,style:{color:"#005C75"}}),e.jsx("h4",{style:{fontSize:"11px",fontWeight:600,color:"#343434"},children:"Recently Completed"})]}),e.jsx("div",{className:"space-y-2 max-h-[200px] overflow-y-auto",children:W.slice(0,3).map((s,u)=>{const p=s.entities||[],N=s.analysisCompletedAt||s.archivedAt||s.createdAt||"",D=(()=>{if(!N)return"";const w=Date.now()-new Date(N).getTime(),j=Math.floor(w/6e4),F=Math.floor(w/36e5);return F>0?`${F}h ago`:j>0?`${j}m ago`:"just now"})(),b=I.has(u),ie=(b?p:p.slice(0,3)).map(w=>{var j,F,Q;return{...w,scenarioCount:((Q=(F=(j=w.analyses)==null?void 0:j[0])==null?void 0:F.scenarios)==null?void 0:Q.length)||0}});return e.jsx("div",{className:"rounded p-2",style:{backgroundColor:"#f5f5f5"},children:p.length>0&&e.jsxs("div",{className:"space-y-1.5",children:[ie.map((w,j)=>e.jsxs("div",{className:"flex items-start justify-between gap-2",children:[e.jsx("div",{className:"flex-1 min-w-0",children:e.jsx(V,{entity:w,nameSize:"10px",pathSize:"9px",pathMaxLength:100,showScenarioCount:!0,scenarioCount:w.scenarioCount})}),j===0&&D&&e.jsx("div",{style:{fontSize:"9px",color:"#8E8E8E",whiteSpace:"nowrap",paddingTop:"2px"},children:D})]},w.sha)),p.length>3&&e.jsx("button",{onClick:()=>{E(w=>{const j=new Set(w);return j.has(u)?j.delete(u):j.add(u),j})},className:"cursor-pointer bg-transparent border-none p-0 hover:underline",style:R,"aria-label":b?"Show fewer entities":`Show ${p.length-3} more entities`,children:b?"Show less":`+${p.length-3} more`})]})},u)})})]})]}),e.jsx("div",{style:{height:"1px",backgroundColor:"#E0E9EC",margin:"0 12px"}}),e.jsx("div",{className:"px-3 pb-2",children:e.jsx(O,{to:"/activity",className:"text-xs font-medium hover:underline cursor-pointer",style:{color:"#005C75"},children:"View All Activity →"})})]})]}),z&&o&&e.jsx(be,{projectSlug:o,onClose:()=>k(!1)})]})}const Xe="/assets/globals-CX9f-5xM.css";function Ge({text:t,subtext:o,linkText:a,linkTo:d}){const[m,l]=r.useState(!1);return m?null:e.jsx("div",{className:"bg-blue-100 border rounded border-blue-800 shadow-sm mx-6 mt-6",children:e.jsxs("div",{className:"max-w-7xl mx-auto px-4 py-3 flex items-center justify-between",children:[e.jsxs("div",{className:"flex items-center gap-3 flex-1",children:[e.jsx("div",{className:"shrink-0",children:e.jsx("svg",{className:"w-5 h-5 text-yellow-600",fill:"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",viewBox:"0 0 24 24",stroke:"currentColor",children:e.jsx("path",{d:"M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-3L13.732 4c-.77-1.333-2.694-1.333-3.464 0L3.34 16c-.77 1.333.192 3 1.732 3z"})})}),e.jsxs("div",{className:"flex-1",children:[e.jsx("p",{className:"text-sm font-medium text-blue-900",children:t}),e.jsx("p",{className:"text-xs text-blue-700 mt-0.5",children:o})]}),e.jsx(O,{to:d,className:"shrink-0 px-4 py-2 bg-blue-600 text-white text-sm font-medium rounded hover:bg-blue-700 transition-colors",children:a})]}),e.jsx("button",{type:"button",onClick:()=>l(!0),className:"shrink-0 ml-4 p-1 rounded text-blue-600 hover:text-blue-800 hover:bg-blue-100 transition-colors cursor-pointer","aria-label":"Dismiss banner",children:e.jsx("svg",{className:"w-5 h-5",fill:"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",viewBox:"0 0 24 24",stroke:"currentColor",children:e.jsx("path",{d:"M6 18L18 6M6 6l12 12"})})})]})})}function Ke({serverVersion:t}){const[o,a]=r.useState("stale"),[d,m]=r.useState(null),l=async()=>{a("restarting"),m(null);try{if(!(await fetch("/api/restart-server",{method:"POST"})).ok)throw new Error("Failed to restart server");a("reconnecting");let C=0;const z=30,k=1e3,h=async()=>{try{if((await fetch("/api/health")).ok){window.location.reload();return}}catch{}C++,C<z?setTimeout(()=>void h(),k):(m("Server took too long to restart. Please refresh manually."),a("stale"))};setTimeout(()=>void h(),500)}catch(i){m(i instanceof Error?i.message:"Failed to restart server"),a("stale")}};return e.jsx("div",{className:"bg-amber-100 border rounded border-amber-700 shadow-sm mx-6 mt-6",children:e.jsx("div",{className:"max-w-7xl mx-auto px-4 py-3 flex items-center justify-between",children:e.jsxs("div",{className:"flex items-center gap-3 flex-1",children:[e.jsx("div",{className:"shrink-0",children:e.jsx("svg",{className:"w-5 h-5 text-amber-600",fill:"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",viewBox:"0 0 24 24",stroke:"currentColor",children:e.jsx("path",{d:"M4 4v5h.582m15.356 2A8.001 8.001 0 004.582 9m0 0H9m11 11v-5h-.581m0 0a8.003 8.003 0 01-15.357-2m15.357 2H15"})})}),e.jsxs("div",{className:"flex-1",children:[o==="stale"&&e.jsxs(e.Fragment,{children:[e.jsx("p",{className:"text-sm font-medium text-amber-900",children:"Dashboard server is out of date"}),e.jsxs("p",{className:"text-xs text-amber-700 mt-0.5",children:["Server version: ",t,". A newer version of CodeYam CLI is installed. Restart the server to get the latest features."]}),d&&e.jsx("p",{className:"text-xs text-red-600 mt-1",children:d})]}),o==="restarting"&&e.jsxs(e.Fragment,{children:[e.jsx("p",{className:"text-sm font-medium text-amber-900",children:"Restarting server..."}),e.jsx("p",{className:"text-xs text-amber-700 mt-0.5",children:"Please wait while the server restarts."})]}),o==="reconnecting"&&e.jsxs(e.Fragment,{children:[e.jsx("p",{className:"text-sm font-medium text-amber-900",children:"Reconnecting..."}),e.jsx("p",{className:"text-xs text-amber-700 mt-0.5",children:"Waiting for the server to come back online."})]})]}),o==="stale"&&e.jsx("button",{type:"button",onClick:()=>void l(),className:"shrink-0 px-4 py-2 bg-amber-600 text-white text-sm font-medium rounded hover:bg-amber-700 transition-colors cursor-pointer",children:"Restart Server"}),(o==="restarting"||o==="reconnecting")&&e.jsxs("div",{className:"shrink-0 flex items-center gap-2 px-4 py-2 text-amber-700 text-sm",children:[e.jsxs("svg",{className:"w-4 h-4 animate-spin",fill:"none",viewBox:"0 0 24 24",children:[e.jsx("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),e.jsx("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"})]}),o==="restarting"?"Stopping...":"Reconnecting..."]})]})})})}const ut=()=>[{rel:"stylesheet",href:Xe},{rel:"icon",type:"image/x-icon",href:"/favicon.ico"}];function Ze(){const{currentRun:t,projectSlug:o,currentEntities:a,availableAPIKeys:d,queuedJobCount:m,queueJobs:l,currentlyExecuting:i,historicalRuns:C,isServerOutOfDate:z,serverVersion:k}=me(),{toasts:h,closeToast:A}=we(),c=he(),g=r.useRef(c),L=G();r.useEffect(()=>{g.current=c},[c]);const T=L.pathname.startsWith("/entity/")&&L.pathname.includes("/edit/")||L.pathname.startsWith("/dev/"),I=L.pathname.includes("/fullscreen");return r.useEffect(()=>{const E=new EventSource("/api/events");let y=null,n=0;const x=2e3;return E.addEventListener("message",v=>{const f=JSON.parse(v.data);if(f.type==="queue")g.current.revalidate(),n=Date.now();else if(f.type==="db-change"||f.type==="unknown"){const P=Date.now(),$=P-n;$<x?(y&&clearTimeout(y),y=setTimeout(()=>{g.current.revalidate(),n=Date.now(),y=null},x-$)):(g.current.revalidate(),n=P)}}),E.addEventListener("error",v=>{console.error("SSE connection error:",v)}),()=>{y&&clearTimeout(y),E.close()}},[]),e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:`min-h-screen ${T?"":"grid"} bg-cygray-10`,style:T?void 0:{gridTemplateColumns:"65px minmax(900px, 1fr)"},children:[!T&&e.jsx(Je,{}),e.jsxs("div",{className:"max-h-screen overflow-auto bg-cygray-10",children:[z&&e.jsx(Ke,{serverVersion:k}),d.length===0&&e.jsx(Ge,{text:"No AI API keys configured. Please provide an AI API key at your earliest convenience.",subtext:"An API key is required for stable, frequent use of CodeYam",linkText:"Configure API Keys",linkTo:"/settings"}),e.jsx(pe,{})]})]}),e.jsx(Ye,{toasts:h,onClose:A}),!I&&e.jsx(Qe,{currentRun:t,projectSlug:o,currentEntities:a,isAnalysisStarting:!1,queuedJobCount:m,queueJobs:l,currentlyExecuting:i,historicalRuns:C})]})}const yt=ne(function(){return e.jsxs("html",{lang:"en",children:[e.jsxs("head",{children:[e.jsx("meta",{charSet:"utf-8"}),e.jsx("meta",{name:"viewport",content:"width=device-width,initial-scale=1"}),e.jsx(re,{}),e.jsx(le,{})]}),e.jsxs("body",{children:[e.jsx(Ce,{children:e.jsx(je,{children:e.jsx(Ze,{})})}),e.jsx(ce,{}),e.jsx(de,{})]})]})});export{yt as default,ut as links};
|
package/codeyam-cli/src/webserver/build/server/assets/{index-DVzYx8PN.js → index-TD1f-DHV.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
import"fetch-retry";import{G as V,H as W,I as X,J as Y,K as Z,L as _,P as $,S as aa,d as ta,a as sa,b as oa,c as ia,e as ra,f as ma,g as ea,h as pa,i as la,j as na,k as da,C as ba,F as ua,E as ca,D as Ta,l as Ca,m as ha,n as ya,o as Ba,p as Sa,q as Aa,r as ga,s as Ea,t as Fa,u as Pa,v as ja,w as Da,x as Ma,y as fa,z as qa,A as xa,B as Ga}from"./server-build-
|
|
1
|
+
import"fetch-retry";import{G as V,H as W,I as X,J as Y,K as Z,L as _,P as $,S as aa,d as ta,a as sa,b as oa,c as ia,e as ra,f as ma,g as ea,h as pa,i as la,j as na,k as da,C as ba,F as ua,E as ca,D as Ta,l as Ca,m as ha,n as ya,o as Ba,p as Sa,q as Aa,r as ga,s as Ea,t as Fa,u as Pa,v as ja,w as Da,x as Ma,y as fa,z as qa,A as xa,B as Ga}from"./server-build-BQ-1XyEa.js";import"typescript";import"kysely";import"react/jsx-runtime";import"node:stream";import"@react-router/node";import"react-router";import"isbot";import"react-dom/server";import"react";import"lucide-react";import"better-sqlite3";import"pg";import"fs";import"path";import"kysely/helpers/sqlite";import"kysely/helpers/postgres";import"fs/promises";import"os";import"prompts";import"chalk";import"crypto";import"child_process";import"url";import"util";import"dotenv";import"events";import"uuid";import"openai";import"p-queue";import"p-retry";import"@aws-sdk/client-dynamodb";import"lru-cache";import"pluralize";import"piscina";import"json5";import"@aws-sdk/util-dynamodb";import"v8";import"react-syntax-highlighter";import"react-syntax-highlighter/dist/cjs/styles/prism/index.js";import"node:crypto";import"minimatch";import"react-markdown";import"remark-gfm";import"react-diff-viewer-continued";export{V as AnalysisBranchesTableColumns,W as BranchesTableColumns,X as CommitsTableColumns,Y as EntitiesTableColumns,Z as EntityBranchesTableColumns,_ as FilesTableColumns,$ as ProjectsTableColumns,aa as ScenariosTableColumns,ta as dbToAnalysis,sa as dbToAnalysisBranch,oa as dbToBranch,ia as dbToCommit,ra as dbToEntity,ma as dbToFile,ea as dbToProject,pa as dbToScenario,la as dbToUserScenario,na as deleteScenarios,da as generateSha,ba as getDatabase,ua as getJsonHelper,ca as getPostgreDatabase,Ta as getSqliteDatabase,Ca as loadAnalyses,ha as loadAnalysis,ya as loadBranches,Ba as loadCommitBranches,Sa as loadCommits,Aa as loadEntities,ga as loadEntity,Ea as loadFiles,Fa as loadProject,Pa as updateCommitMetadata,ja as updateFreshAnalysisMetadata,Da as updateFreshAnalysisStatus,Ma as updateProjectMetadata,fa as upsertCommitBranches,qa as upsertCommits,xa as upsertGithubUser,Ga as upsertScenarios};
|