@prostgles/prostgles 2.3.6-dev.1786548258
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/.dockerignore +14 -0
- package/.eslintrc.common.js +71 -0
- package/.gitattributes +2 -0
- package/.github/ISSUE_TEMPLATE/BUG.yml +52 -0
- package/.github/ISSUE_TEMPLATE/CUSTOM.yml +13 -0
- package/.github/ISSUE_TEMPLATE/FEATURE.yml +27 -0
- package/.github/ISSUE_TEMPLATE/bug_report.md +9 -0
- package/.github/ISSUE_TEMPLATE/config.yml +5 -0
- package/.github/ISSUE_TEMPLATE/custom.md +3 -0
- package/.github/ISSUE_TEMPLATE/feature_request.md +5 -0
- package/.github/workflows/docker_test.yml +46 -0
- package/.github/workflows/electron_build_linux.yml +40 -0
- package/.github/workflows/electron_build_macos.yml +36 -0
- package/.github/workflows/electron_build_windows.yml +34 -0
- package/.github/workflows/electron_linux_test.yml +24 -0
- package/.github/workflows/electron_macos_test.yml +25 -0
- package/.github/workflows/linux_test.yml +127 -0
- package/.github/workflows/macos_test.yml +63 -0
- package/.github/workflows/on_release.yml +185 -0
- package/.github/workflows/package_version_increased.yml +66 -0
- package/.github/workflows/publish_release.yml +67 -0
- package/.github/workflows/windows_test.yml +48 -0
- package/.prettierignore +5 -0
- package/.prettierrc +3 -0
- package/.vscode/settings.json +46 -0
- package/CODE_OF_CONDUCT +47 -0
- package/CONTRIBUTING +59 -0
- package/DB.Dockerfile +11 -0
- package/Dockerfile +31 -0
- package/LICENSE +661 -0
- package/PRIVACY +28 -0
- package/README.md +132 -0
- package/SECURITY.md +8 -0
- package/changelog/v1.0.0.md +5 -0
- package/changelog/v2.0.0.md +25 -0
- package/changelog/v2.2.0.md +13 -0
- package/changelog/v2.2.1.md +4 -0
- package/changelog/v2.2.2.md +3 -0
- package/changelog/v2.2.3.md +2 -0
- package/changelog/v2.2.4.md +3 -0
- package/changelog/v2.3.0.md +5 -0
- package/changelog/v2.3.1.md +1 -0
- package/changelog/v2.3.2.md +1 -0
- package/changelog/v2.3.3.md +2 -0
- package/changelog/v2.3.4.md +2 -0
- package/changelog/v2.3.5.md +2 -0
- package/changelog/v2.3.6.md +2 -0
- package/client/build.sh +1 -0
- package/client/eslint.config.mjs +114 -0
- package/client/package-lock.json +16513 -0
- package/client/package.json +108 -0
- package/client/public/manifest.json +12 -0
- package/client/public/robots.txt +3 -0
- package/client/setup-icons.js +59 -0
- package/client/src/App.css +31 -0
- package/client/src/App.tsx +364 -0
- package/client/src/Testing.ts +724 -0
- package/client/src/app/CommandPalette/CommandPalette.css +11 -0
- package/client/src/app/CommandPalette/CommandPalette.tsx +119 -0
- package/client/src/app/CommandPalette/Documentation.css +3 -0
- package/client/src/app/CommandPalette/Documentation.tsx +77 -0
- package/client/src/app/CommandPalette/DynamicComponent.tsx +87 -0
- package/client/src/app/CommandPalette/getDocumentation.ts +175 -0
- package/client/src/app/CommandPalette/getUIDocShortestPath.ts +62 -0
- package/client/src/app/CommandPalette/useCommandPaletteState.tsx +188 -0
- package/client/src/app/CommandPalette/useGoToUI.tsx +147 -0
- package/client/src/app/CommandPalette/useHighlightDocItem.ts +89 -0
- package/client/src/app/CommandPalette/utils.ts +111 -0
- package/client/src/app/UIDocs/UIInstallationUIDoc.ts +43 -0
- package/client/src/app/UIDocs/accountUIDoc.ts +128 -0
- package/client/src/app/UIDocs/commandPaletteUIDoc.ts +40 -0
- package/client/src/app/UIDocs/connection/AIAssistantUIDoc.ts +309 -0
- package/client/src/app/UIDocs/connection/agenticWorkflowsUIDoc.ts +37 -0
- package/client/src/app/UIDocs/connection/config/accessControlUIDoc.ts +44 -0
- package/client/src/app/UIDocs/connection/config/apiUIDoc.ts +95 -0
- package/client/src/app/UIDocs/connection/config/authentication.UIDoc.ts +96 -0
- package/client/src/app/UIDocs/connection/config/backupAndRestoreUIDoc.ts +238 -0
- package/client/src/app/UIDocs/connection/config/fileStorageUIDoc.ts +27 -0
- package/client/src/app/UIDocs/connection/connectionConfigUIDoc.ts +79 -0
- package/client/src/app/UIDocs/connection/dashboard/dashboardContentUIDoc.ts +27 -0
- package/client/src/app/UIDocs/connection/dashboard/dashboardMenuUIDoc.ts +189 -0
- package/client/src/app/UIDocs/connection/dashboard/mapUIDoc.ts +172 -0
- package/client/src/app/UIDocs/connection/dashboard/schemaGraphUIDoc.ts +66 -0
- package/client/src/app/UIDocs/connection/dashboard/serverSideFunctionUIDoc.ts +27 -0
- package/client/src/app/UIDocs/connection/dashboard/sqlEditorUIDoc.ts +284 -0
- package/client/src/app/UIDocs/connection/dashboard/table/addColumnMenuUIDoc.ts +250 -0
- package/client/src/app/UIDocs/connection/dashboard/table/columnMenuUIDoc.ts +123 -0
- package/client/src/app/UIDocs/connection/dashboard/table/paginationUIDoc.ts +56 -0
- package/client/src/app/UIDocs/connection/dashboard/table/smartFilterBarUIDoc.ts +126 -0
- package/client/src/app/UIDocs/connection/dashboard/table/smartFormUIDoc.ts +168 -0
- package/client/src/app/UIDocs/connection/dashboard/table/tableMenuUIDoc.ts +228 -0
- package/client/src/app/UIDocs/connection/dashboard/table/tableUIDoc.ts +90 -0
- package/client/src/app/UIDocs/connection/dashboard/timechartUIDoc.ts +169 -0
- package/client/src/app/UIDocs/connection/dashboardUIDoc.ts +176 -0
- package/client/src/app/UIDocs/connection/getCommonViewHeaderUIDoc.ts +146 -0
- package/client/src/app/UIDocs/connectionsUIDoc.ts +261 -0
- package/client/src/app/UIDocs/desktopInstallation.ts +32 -0
- package/client/src/app/UIDocs/editConnectionUIDoc.ts +131 -0
- package/client/src/app/UIDocs/navbarUIDoc.ts +145 -0
- package/client/src/app/UIDocs/overviewUIDoc.ts +31 -0
- package/client/src/app/UIDocs/serverSettingsUIDoc.ts +64 -0
- package/client/src/app/UIDocs.ts +274 -0
- package/client/src/app/XRealIpSpoofableAlert.tsx +39 -0
- package/client/src/app/domToSVG/SVGif/addSVGifCaption.ts +112 -0
- package/client/src/app/domToSVG/SVGif/addSVGifPointer.ts +59 -0
- package/client/src/app/domToSVG/SVGif/addSVGifTimelineControls.ts +94 -0
- package/client/src/app/domToSVG/SVGif/animations/getSVGifCursorAnimationHandler.ts +162 -0
- package/client/src/app/domToSVG/SVGif/animations/getSVGifCustomAnimation.ts +53 -0
- package/client/src/app/domToSVG/SVGif/animations/getSVGifPropertiesAnimation.ts +50 -0
- package/client/src/app/domToSVG/SVGif/animations/getSVGifTypeAnimation.ts +105 -0
- package/client/src/app/domToSVG/SVGif/animations/getSVGifZoomToAnimation.ts +114 -0
- package/client/src/app/domToSVG/SVGif/compressSVGif.ts +86 -0
- package/client/src/app/domToSVG/SVGif/getSVGif.ts +111 -0
- package/client/src/app/domToSVG/SVGif/getSVGifAnimations.ts +318 -0
- package/client/src/app/domToSVG/SVGif/getSVGifKeyframes.ts +42 -0
- package/client/src/app/domToSVG/SVGif/getSVGifParsedScenes.ts +52 -0
- package/client/src/app/domToSVG/SVGif/getSVGifRevealKeyframes.ts +73 -0
- package/client/src/app/domToSVG/SVGif/getSVGifTargetBBox.ts +36 -0
- package/client/src/app/domToSVG/addFragmentViewBoxes.ts +43 -0
- package/client/src/app/domToSVG/containers/addOverflowClipPath.ts +117 -0
- package/client/src/app/domToSVG/containers/bgAndBorderToSVG.ts +204 -0
- package/client/src/app/domToSVG/containers/deduplicateSVGPaths.ts +128 -0
- package/client/src/app/domToSVG/containers/elementToSVG.ts +231 -0
- package/client/src/app/domToSVG/containers/rectangleToSVG.ts +196 -0
- package/client/src/app/domToSVG/containers/shadowToSVG.ts +52 -0
- package/client/src/app/domToSVG/domToSVG.ts +263 -0
- package/client/src/app/domToSVG/domToSvg2.ts +129 -0
- package/client/src/app/domToSVG/domToThemeAwareSVG.ts +361 -0
- package/client/src/app/domToSVG/getCorrespondingDarkNode.ts +87 -0
- package/client/src/app/domToSVG/graphics/fontIconToSVG.ts +141 -0
- package/client/src/app/domToSVG/graphics/getForeignObject.ts +43 -0
- package/client/src/app/domToSVG/graphics/imgToSVG.ts +140 -0
- package/client/src/app/domToSVG/setThemeForSVGScreenshot.ts +82 -0
- package/client/src/app/domToSVG/text/getTextForSVG.ts +243 -0
- package/client/src/app/domToSVG/text/textToSVG.ts +264 -0
- package/client/src/app/domToSVG/utils/addNewChildren.ts +55 -0
- package/client/src/app/domToSVG/utils/canvasToDataURL.ts +6 -0
- package/client/src/app/domToSVG/utils/copyAnimationStylesToSvg.ts +127 -0
- package/client/src/app/domToSVG/utils/getWhatToRenderOnSVG.ts +218 -0
- package/client/src/app/domToSVG/utils/isElementVisible.ts +144 -0
- package/client/src/app/domToSVG/utils/toFixed.ts +3 -0
- package/client/src/appUtils.ts +135 -0
- package/client/src/components/AlertProvider.tsx +99 -0
- package/client/src/components/Animations.css +207 -0
- package/client/src/components/Animations.tsx +130 -0
- package/client/src/components/Btn.css +235 -0
- package/client/src/components/Btn.tsx +603 -0
- package/client/src/components/ButtonBar.tsx +29 -0
- package/client/src/components/ButtonGroup.tsx +135 -0
- package/client/src/components/Chat/Chat.css +116 -0
- package/client/src/components/Chat/Chat.tsx +200 -0
- package/client/src/components/Chat/ChatFileAttachments/ChatFileAttachments.tsx +126 -0
- package/client/src/components/Chat/ChatMessage.tsx +38 -0
- package/client/src/components/Chat/ChatSendControls.tsx +117 -0
- package/client/src/components/Chat/ChatSpeech/ChatSpeech.tsx +201 -0
- package/client/src/components/Chat/ChatSpeech/ChatSpeechSetup.tsx +75 -0
- package/client/src/components/Chat/ChatSpeech/hooks/SpeechRecorder.ts +295 -0
- package/client/src/components/Chat/ChatSpeech/hooks/renderSpeechAudioLevelsIcon.ts +67 -0
- package/client/src/components/Chat/ChatSpeech/hooks/useSpeechRecorder.ts +59 -0
- package/client/src/components/Chat/ChatSpeech/hooks/useSpeechToTextWeb.ts +125 -0
- package/client/src/components/Chat/ChatSpeech/useChatSpeechSetup.ts +106 -0
- package/client/src/components/Chat/Marked.tsx +258 -0
- package/client/src/components/Chat/MonacoCodeInMarkdown/MarkdownMonacoCodeHeader.tsx +179 -0
- package/client/src/components/Chat/MonacoCodeInMarkdown/MonacoCodeInMarkdown.tsx +162 -0
- package/client/src/components/Chat/MonacoCodeInMarkdown/useOnRunSQL.ts +70 -0
- package/client/src/components/Chat/useChatFileUpload.ts +167 -0
- package/client/src/components/Chat/useChatOnPaste.ts +102 -0
- package/client/src/components/Chat/useChatState.ts +118 -0
- package/client/src/components/Checkbox.css +24 -0
- package/client/src/components/Checkbox.tsx +152 -0
- package/client/src/components/Chip.css +78 -0
- package/client/src/components/Chip.tsx +150 -0
- package/client/src/components/ClickCatch.tsx +49 -0
- package/client/src/components/ClickCatchOverlay.css +7 -0
- package/client/src/components/ClickCatchOverlay.tsx +30 -0
- package/client/src/components/CodeFileBrowser/CodeFileBrowser.tsx +85 -0
- package/client/src/components/CodeFileBrowser/ProjectCodeEditor.tsx +89 -0
- package/client/src/components/CodeFileBrowser/WebAppFileBrowser.tsx +96 -0
- package/client/src/components/CompactTabs/CompactTabs.tsx +101 -0
- package/client/src/components/ConfirmationDialog.tsx +90 -0
- package/client/src/components/CopyToClipboardBtn.tsx +24 -0
- package/client/src/components/DragOverUpload/DragOverUpload.css +36 -0
- package/client/src/components/DragOverUpload/DragOverUpload.tsx +46 -0
- package/client/src/components/DraggableLI.tsx +182 -0
- package/client/src/components/ElectronSearchBar.tsx +335 -0
- package/client/src/components/ErrorComponent.tsx +240 -0
- package/client/src/components/ExpandSection.tsx +55 -0
- package/client/src/components/Expander.tsx +16 -0
- package/client/src/components/FileInput/DropZone.tsx +23 -0
- package/client/src/components/FileInput/FileInput.tsx +363 -0
- package/client/src/components/FileInput/FileInputMedia.tsx +144 -0
- package/client/src/components/FileInput/useFileDropZone.ts +51 -0
- package/client/src/components/FileTree/FILE_EXTENSION_TO_ICON_INFO.ts +687 -0
- package/client/src/components/FileTree/FileIcon.tsx +31 -0
- package/client/src/components/FileTree/FileTree.tsx +147 -0
- package/client/src/components/FileTree/FileTreeCurrentDirectory.tsx +135 -0
- package/client/src/components/FileTree/FileTreeNode.css +12 -0
- package/client/src/components/FileTree/FileTreeNode.tsx +264 -0
- package/client/src/components/FileTree/FileTreeNodeCheckbox.tsx +48 -0
- package/client/src/components/FileTree/FileTreeSearchBar.tsx +121 -0
- package/client/src/components/FileTree/FileTreeSelectedItems.tsx +73 -0
- package/client/src/components/FileTree/FolderIcon.tsx +18 -0
- package/client/src/components/FileTree/fileSystemTreeUtils.ts +15 -0
- package/client/src/components/FileTree/useFileTree.ts +255 -0
- package/client/src/components/FileTree/useFileTreeChecked.ts +158 -0
- package/client/src/components/FlashMessage.tsx +64 -0
- package/client/src/components/Flex.tsx +76 -0
- package/client/src/components/FormField/FormField.css +91 -0
- package/client/src/components/FormField/FormField.tsx +748 -0
- package/client/src/components/FormField/FormFieldCodeEditor.tsx +97 -0
- package/client/src/components/FormField/FormFieldDebounced.tsx +60 -0
- package/client/src/components/FormField/FormFieldSkeleton.tsx +206 -0
- package/client/src/components/FormField/onFormFieldKeyDown.ts +124 -0
- package/client/src/components/FullscreenWrapper/FullscreenWrapper.tsx +154 -0
- package/client/src/components/FullscreenWrapper/useFullscreen.ts +46 -0
- package/client/src/components/HeaderSection.tsx +36 -0
- package/client/src/components/Hotkey.css +12 -0
- package/client/src/components/Hotkey.tsx +26 -0
- package/client/src/components/IFrame/IFrame.tsx +54 -0
- package/client/src/components/Icon/Icon.tsx +138 -0
- package/client/src/components/IconPalette/IconPalette.tsx +194 -0
- package/client/src/components/InfoRow.tsx +64 -0
- package/client/src/components/Input.tsx +63 -0
- package/client/src/components/JSONBSchema/JSONBSchema.tsx +182 -0
- package/client/src/components/JSONBSchema/JSONBSchemaAllowedOptions.tsx +112 -0
- package/client/src/components/JSONBSchema/JSONBSchemaArray.tsx +172 -0
- package/client/src/components/JSONBSchema/JSONBSchemaLookup.tsx +249 -0
- package/client/src/components/JSONBSchema/JSONBSchemaObject.tsx +130 -0
- package/client/src/components/JSONBSchema/JSONBSchemaOneOfType.tsx +155 -0
- package/client/src/components/JSONBSchema/JSONBSchemaPrimitive.tsx +209 -0
- package/client/src/components/JSONBSchema/JSONBSchemaRecord.tsx +78 -0
- package/client/src/components/JSONBSchema/isCompleteJSONB.ts +54 -0
- package/client/src/components/Label.css +10 -0
- package/client/src/components/Label.tsx +152 -0
- package/client/src/components/LabeledRow.tsx +51 -0
- package/client/src/components/List.css +51 -0
- package/client/src/components/List.tsx +170 -0
- package/client/src/components/Loader/Loading.css +141 -0
- package/client/src/components/Loader/Loading.tsx +254 -0
- package/client/src/components/Loader/SpinnerV2.tsx +121 -0
- package/client/src/components/Loader/SpinnerV3.tsx +58 -0
- package/client/src/components/Loader/SpinnerV4.tsx +31 -0
- package/client/src/components/MarkdownWithPlugins/MarkdownWithPlugins.tsx +99 -0
- package/client/src/components/MarkdownWithPlugins/Marked.css +72 -0
- package/client/src/components/MarkdownWithPlugins/preserveDisallowedHtmlAsText.ts +76 -0
- package/client/src/components/MediaViewer/MediaViewer.tsx +252 -0
- package/client/src/components/MediaViewer/MediaViewerContent.tsx +223 -0
- package/client/src/components/MediaViewer/managedTableUtils.ts +99 -0
- package/client/src/components/MenuList.css +3 -0
- package/client/src/components/MenuList.tsx +237 -0
- package/client/src/components/MenuListItem.tsx +126 -0
- package/client/src/components/MonacoEditor/MonacoEditor.tsx +273 -0
- package/client/src/components/MonacoEditor/monacoHackyFixes.ts +56 -0
- package/client/src/components/MonacoEditor/useMonacoEditorAddActions.ts +56 -0
- package/client/src/components/MonacoEditor/useWhyDidYouUpdate.ts +80 -0
- package/client/src/components/MonacoLogs/MonacoLogs.tsx +98 -0
- package/client/src/components/MonacoLogs/MonacoLogsWithFullscreen.tsx +124 -0
- package/client/src/components/MonacoLogs/setAnsiLogContent.ts +163 -0
- package/client/src/components/NavBar/NavBar.css +110 -0
- package/client/src/components/NavBar/NavBar.tsx +152 -0
- package/client/src/components/NavBar/NavBarWrapper.tsx +55 -0
- package/client/src/components/NavBar/useNavBarItems.ts +40 -0
- package/client/src/components/Pan.tsx +63 -0
- package/client/src/components/PdfViewer/PdfViewer.css +58 -0
- package/client/src/components/PdfViewer/PdfViewer.tsx +126 -0
- package/client/src/components/PdfViewer/PdfViewerDoclingTextOverlay.tsx +44 -0
- package/client/src/components/PdfViewer/PdfViewerHeaderControls.tsx +82 -0
- package/client/src/components/PdfViewer/PdfViewerHighlights/PdfViewerHighlights.tsx +146 -0
- package/client/src/components/PdfViewer/PdfViewerHighlights/usePdfViewerHighlights.ts +212 -0
- package/client/src/components/PdfViewer/PdfViewerSearch/PdfViewerSearch.css +21 -0
- package/client/src/components/PdfViewer/PdfViewerSearch/PdfViewerSearch.tsx +323 -0
- package/client/src/components/PdfViewer/PdfViewerWithFileTableContext.tsx +209 -0
- package/client/src/components/PdfViewer/usePdfViewer.ts +215 -0
- package/client/src/components/Popup/Footer.tsx +41 -0
- package/client/src/components/Popup/FooterButtons.tsx +60 -0
- package/client/src/components/Popup/Popup.css +14 -0
- package/client/src/components/Popup/Popup.tsx +469 -0
- package/client/src/components/Popup/PopupHeader.tsx +113 -0
- package/client/src/components/Popup/getPopupPosition.ts +137 -0
- package/client/src/components/Popup/getPopupStyle.ts +57 -0
- package/client/src/components/Popup/popupCheckPosition.ts +280 -0
- package/client/src/components/PopupMenu.tsx +106 -0
- package/client/src/components/PopupMenuList.tsx +36 -0
- package/client/src/components/PostgresInstallationInstructions.tsx +112 -0
- package/client/src/components/ProgressBar.css +29 -0
- package/client/src/components/ProgressBar.tsx +131 -0
- package/client/src/components/QRCodeImage.tsx +57 -0
- package/client/src/components/Scheduler.css +7 -0
- package/client/src/components/Scheduler.tsx +149 -0
- package/client/src/components/ScrollFade/ScrollFade.css +4 -0
- package/client/src/components/ScrollFade/ScrollFade.tsx +177 -0
- package/client/src/components/ScrollFade/useAutoScrollToBottom.ts +31 -0
- package/client/src/components/ScrollFade/useResizeObserver.ts +96 -0
- package/client/src/components/SearchList/SearchInput.tsx +143 -0
- package/client/src/components/SearchList/SearchList.css +37 -0
- package/client/src/components/SearchList/SearchList.tsx +184 -0
- package/client/src/components/SearchList/SearchListContent.tsx +285 -0
- package/client/src/components/SearchList/SearchListItems.tsx +244 -0
- package/client/src/components/SearchList/SearchListRowContent.tsx +46 -0
- package/client/src/components/SearchList/getSearchListMatchAndHighlight.tsx +162 -0
- package/client/src/components/SearchList/hooks/useSearchListItems.tsx +113 -0
- package/client/src/components/SearchList/hooks/useSearchListItemsSorting.tsx +169 -0
- package/client/src/components/SearchList/hooks/useSearchListOnClick.ts +69 -0
- package/client/src/components/SearchList/hooks/useSearchListOnKeyUpDown.ts +128 -0
- package/client/src/components/SearchList/hooks/useSearchListSearch.ts +211 -0
- package/client/src/components/SearchList/searchMatchUtils/getItemSearchRank.ts +74 -0
- package/client/src/components/SearchList/searchMatchUtils/getSearchRanking.ts +18 -0
- package/client/src/components/Section.tsx +159 -0
- package/client/src/components/SegmentedToggle.tsx +57 -0
- package/client/src/components/Select/Select.css +18 -0
- package/client/src/components/Select/Select.tsx +629 -0
- package/client/src/components/Select/SelectTriggerButton.tsx +204 -0
- package/client/src/components/ShorterText.tsx +56 -0
- package/client/src/components/SidePanel.tsx +49 -0
- package/client/src/components/Slider.css +65 -0
- package/client/src/components/Slider.tsx +66 -0
- package/client/src/components/StatusChip.tsx +34 -0
- package/client/src/components/Stepper.tsx +92 -0
- package/client/src/components/Stopwatch.tsx +121 -0
- package/client/src/components/SvgIcon.tsx +181 -0
- package/client/src/components/SwitchToggle.css +136 -0
- package/client/src/components/SwitchToggle.tsx +141 -0
- package/client/src/components/Table/Pagination.tsx +178 -0
- package/client/src/components/Table/Table.css +97 -0
- package/client/src/components/Table/Table.tsx +216 -0
- package/client/src/components/Table/TableBody.tsx +146 -0
- package/client/src/components/Table/TableHeader.tsx +491 -0
- package/client/src/components/Table/TableRow.tsx +164 -0
- package/client/src/components/Table/useVirtualisedRows.ts +160 -0
- package/client/src/components/Tabs.tsx +320 -0
- package/client/src/components/Tooltip.tsx +47 -0
- package/client/src/dashboard/API/zip.ts +151 -0
- package/client/src/dashboard/AccessControl/AccessControl.tsx +164 -0
- package/client/src/dashboard/AccessControl/AccessControlRuleEditor.tsx +373 -0
- package/client/src/dashboard/AccessControl/AccessRuleEditorFooter.tsx +241 -0
- package/client/src/dashboard/AccessControl/AccessRuleSummary.tsx +159 -0
- package/client/src/dashboard/AccessControl/ContextDataSelector.tsx +89 -0
- package/client/src/dashboard/AccessControl/ContextFilter.tsx +161 -0
- package/client/src/dashboard/AccessControl/ExistingAccessRules.tsx +168 -0
- package/client/src/dashboard/AccessControl/Methods/MethodDefinition.tsx +156 -0
- package/client/src/dashboard/AccessControl/Methods/MethodDefinitionEditAsJson.tsx +73 -0
- package/client/src/dashboard/AccessControl/Methods/MethodFunctionDefinition.tsx +97 -0
- package/client/src/dashboard/AccessControl/Methods/ReferencesDefinition.tsx +155 -0
- package/client/src/dashboard/AccessControl/Methods/useCodeEditorTsTypes.ts +152 -0
- package/client/src/dashboard/AccessControl/OptionControllers/DynamicFields.tsx +145 -0
- package/client/src/dashboard/AccessControl/OptionControllers/FieldFilterControl.tsx +193 -0
- package/client/src/dashboard/AccessControl/OptionControllers/FilterControl.tsx +207 -0
- package/client/src/dashboard/AccessControl/PasswordlessSetup.tsx +90 -0
- package/client/src/dashboard/AccessControl/PermissionTypes/PAllTables.tsx +50 -0
- package/client/src/dashboard/AccessControl/PermissionTypes/PCustomTables.tsx +237 -0
- package/client/src/dashboard/AccessControl/PermissionTypes/PRunSQL.tsx +92 -0
- package/client/src/dashboard/AccessControl/PublishedWorkspaceSelector.tsx +290 -0
- package/client/src/dashboard/AccessControl/RuleTypeControls/ComparablePGPolicies.tsx +179 -0
- package/client/src/dashboard/AccessControl/RuleTypeControls/DeleteRuleControl.tsx +95 -0
- package/client/src/dashboard/AccessControl/RuleTypeControls/ExampleComparablePolicy.tsx +112 -0
- package/client/src/dashboard/AccessControl/RuleTypeControls/InsertRuleControl.tsx +115 -0
- package/client/src/dashboard/AccessControl/RuleTypeControls/RuleToggle.tsx +19 -0
- package/client/src/dashboard/AccessControl/RuleTypeControls/SelectRuleControl.tsx +186 -0
- package/client/src/dashboard/AccessControl/RuleTypeControls/SyncRuleControl.tsx +130 -0
- package/client/src/dashboard/AccessControl/RuleTypeControls/UpdateRuleControl.tsx +207 -0
- package/client/src/dashboard/AccessControl/RuleTypeControls/getComparablePGPolicy.ts +130 -0
- package/client/src/dashboard/AccessControl/TableRules/FileTableAccessControlInfo.tsx +161 -0
- package/client/src/dashboard/AccessControl/TableRules/TablePermissionControls.tsx +251 -0
- package/client/src/dashboard/AccessControl/TableRules/TableRulesPopup.tsx +167 -0
- package/client/src/dashboard/AccessControl/TableRules/useLocalTableRulesErrors.ts +27 -0
- package/client/src/dashboard/AccessControl/UserStats.tsx +83 -0
- package/client/src/dashboard/AccessControl/UserSyncConfig.tsx +168 -0
- package/client/src/dashboard/AccessControl/UserTypeSelect.tsx +86 -0
- package/client/src/dashboard/AccessControl/useAccessControlSearchParams.ts +81 -0
- package/client/src/dashboard/AccessControl/useEditedAccessRule.ts +293 -0
- package/client/src/dashboard/AskLLM/AskLLM.tsx +91 -0
- package/client/src/dashboard/AskLLM/Chat/AskLLMChat.tsx +208 -0
- package/client/src/dashboard/AskLLM/Chat/AskLLMChatHeader.tsx +127 -0
- package/client/src/dashboard/AskLLM/Chat/AskLLMChatMessages/LLMChatMessage/LLMChatMessage.tsx +77 -0
- package/client/src/dashboard/AskLLM/Chat/AskLLMChatMessages/LLMChatMessage/LLMChatMessageContent.tsx +96 -0
- package/client/src/dashboard/AskLLM/Chat/AskLLMChatMessages/LLMChatMessage/LLMChatMessageContentText.tsx +57 -0
- package/client/src/dashboard/AskLLM/Chat/AskLLMChatMessages/LLMChatMessage/LLMChatMessageHeader.tsx +129 -0
- package/client/src/dashboard/AskLLM/Chat/AskLLMChatMessages/LLMChatMessage/LLMGroupedToolCallsMessage.tsx +122 -0
- package/client/src/dashboard/AskLLM/Chat/AskLLMChatMessages/LLMChatMessage/LLMSingleChatMessage.tsx +44 -0
- package/client/src/dashboard/AskLLM/Chat/AskLLMChatMessages/LLMChatMessage/LLMToolCallIcon.tsx +12 -0
- package/client/src/dashboard/AskLLM/Chat/AskLLMChatMessages/ProstglesToolUseMessage/ProstglesMCPTools/Agent/Agent.tsx +161 -0
- package/client/src/dashboard/AskLLM/Chat/AskLLMChatMessages/ProstglesToolUseMessage/ProstglesMCPTools/Agent/AgentGoalToolCall.tsx +59 -0
- package/client/src/dashboard/AskLLM/Chat/AskLLMChatMessages/ProstglesToolUseMessage/ProstglesMCPTools/AgenticWorkflow/AgentDefinition.tsx +206 -0
- package/client/src/dashboard/AskLLM/Chat/AskLLMChatMessages/ProstglesToolUseMessage/ProstglesMCPTools/AgenticWorkflow/AgenticWorkflow.tsx +242 -0
- package/client/src/dashboard/AskLLM/Chat/AskLLMChatMessages/ProstglesToolUseMessage/ProstglesMCPTools/AgenticWorkflow/AgenticWorkflowActions.tsx +245 -0
- package/client/src/dashboard/AskLLM/Chat/AskLLMChatMessages/ProstglesToolUseMessage/ProstglesMCPTools/AgenticWorkflow/AgenticWorkflowActivity/AgenticWorkflowActivity.tsx +225 -0
- package/client/src/dashboard/AskLLM/Chat/AskLLMChatMessages/ProstglesToolUseMessage/ProstglesMCPTools/AgenticWorkflow/AgenticWorkflowActivity/ToolCall.tsx +137 -0
- package/client/src/dashboard/AskLLM/Chat/AskLLMChatMessages/ProstglesToolUseMessage/ProstglesMCPTools/AgenticWorkflow/AgenticWorkflowActivity/useAgenticWorkflowActivityItems.ts +70 -0
- package/client/src/dashboard/AskLLM/Chat/AskLLMChatMessages/ProstglesToolUseMessage/ProstglesMCPTools/AgenticWorkflow/AgenticWorkflowDefinition.tsx +173 -0
- package/client/src/dashboard/AskLLM/Chat/AskLLMChatMessages/ProstglesToolUseMessage/ProstglesMCPTools/AgenticWorkflow/AgenticWorkflowDetails.tsx +141 -0
- package/client/src/dashboard/AskLLM/Chat/AskLLMChatMessages/ProstglesToolUseMessage/ProstglesMCPTools/AgenticWorkflow/AgenticWorkflowMessage.tsx +103 -0
- package/client/src/dashboard/AskLLM/Chat/AskLLMChatMessages/ProstglesToolUseMessage/ProstglesMCPTools/AgenticWorkflow/AgenticWorkflowSchemaDrift.tsx +146 -0
- package/client/src/dashboard/AskLLM/Chat/AskLLMChatMessages/ProstglesToolUseMessage/ProstglesMCPTools/AgenticWorkflow/ContainerConfigurationEditor.tsx +184 -0
- package/client/src/dashboard/AskLLM/Chat/AskLLMChatMessages/ProstglesToolUseMessage/ProstglesMCPTools/AgenticWorkflow/McpToolAccess.tsx +156 -0
- package/client/src/dashboard/AskLLM/Chat/AskLLMChatMessages/ProstglesToolUseMessage/ProstglesMCPTools/AgenticWorkflow/UserInput.tsx +393 -0
- package/client/src/dashboard/AskLLM/Chat/AskLLMChatMessages/ProstglesToolUseMessage/ProstglesMCPTools/AgenticWorkflow/UserInputColumnValues.tsx +61 -0
- package/client/src/dashboard/AskLLM/Chat/AskLLMChatMessages/ProstglesToolUseMessage/ProstglesMCPTools/AgenticWorkflow/hooks/useAgenticWorkflowState.ts +50 -0
- package/client/src/dashboard/AskLLM/Chat/AskLLMChatMessages/ProstglesToolUseMessage/ProstglesMCPTools/AgenticWorkflow/hooks/useUserInput.ts +27 -0
- package/client/src/dashboard/AskLLM/Chat/AskLLMChatMessages/ProstglesToolUseMessage/ProstglesMCPTools/AskUserQuestions.tsx +249 -0
- package/client/src/dashboard/AskLLM/Chat/AskLLMChatMessages/ProstglesToolUseMessage/ProstglesMCPTools/CreateTables.tsx +32 -0
- package/client/src/dashboard/AskLLM/Chat/AskLLMChatMessages/ProstglesToolUseMessage/ProstglesMCPTools/DockerContainer.tsx +296 -0
- package/client/src/dashboard/AskLLM/Chat/AskLLMChatMessages/ProstglesToolUseMessage/ProstglesMCPTools/DoclingConvertedDocument/DoclingDocument.d.ts +154 -0
- package/client/src/dashboard/AskLLM/Chat/AskLLMChatMessages/ProstglesToolUseMessage/ProstglesMCPTools/DoclingConvertedDocument/DoclingDocumentViewer.tsx +98 -0
- package/client/src/dashboard/AskLLM/Chat/AskLLMChatMessages/ProstglesToolUseMessage/ProstglesMCPTools/DoclingConvertedDocument/DoclingDocumentViewerPage.tsx +42 -0
- package/client/src/dashboard/AskLLM/Chat/AskLLMChatMessages/ProstglesToolUseMessage/ProstglesMCPTools/DoclingConvertedDocument/DoclingTable.tsx +166 -0
- package/client/src/dashboard/AskLLM/Chat/AskLLMChatMessages/ProstglesToolUseMessage/ProstglesMCPTools/DoclingConvertedDocument/DoclingText.tsx +99 -0
- package/client/src/dashboard/AskLLM/Chat/AskLLMChatMessages/ProstglesToolUseMessage/ProstglesMCPTools/DoclingConvertedDocument/DoclingToolUseView.tsx +47 -0
- package/client/src/dashboard/AskLLM/Chat/AskLLMChatMessages/ProstglesToolUseMessage/ProstglesMCPTools/ExecuteSQL.tsx +34 -0
- package/client/src/dashboard/AskLLM/Chat/AskLLMChatMessages/ProstglesToolUseMessage/ProstglesMCPTools/LoadSuggestedDashboards.tsx +172 -0
- package/client/src/dashboard/AskLLM/Chat/AskLLMChatMessages/ProstglesToolUseMessage/ProstglesMCPTools/RequestToolAccess.tsx +272 -0
- package/client/src/dashboard/AskLLM/Chat/AskLLMChatMessages/ProstglesToolUseMessage/ProstglesMCPTools/RunCodeInSandbox.tsx +33 -0
- package/client/src/dashboard/AskLLM/Chat/AskLLMChatMessages/ProstglesToolUseMessage/ProstglesMCPTools/RunTypescriptInNodejs.tsx +48 -0
- package/client/src/dashboard/AskLLM/Chat/AskLLMChatMessages/ProstglesToolUseMessage/ProstglesMCPTools/ToolUseResultError.tsx +29 -0
- package/client/src/dashboard/AskLLM/Chat/AskLLMChatMessages/ProstglesToolUseMessage/ProstglesMCPTools/WebSearch/Favicon.tsx +34 -0
- package/client/src/dashboard/AskLLM/Chat/AskLLMChatMessages/ProstglesToolUseMessage/ProstglesMCPTools/WebSearch/Markdown.tsx +21 -0
- package/client/src/dashboard/AskLLM/Chat/AskLLMChatMessages/ProstglesToolUseMessage/ProstglesMCPTools/WebSearch/WebSearch.tsx +70 -0
- package/client/src/dashboard/AskLLM/Chat/AskLLMChatMessages/ProstglesToolUseMessage/ProstglesMCPTools/Webdev/CreateComponentQuickFeedbackPreview.tsx +104 -0
- package/client/src/dashboard/AskLLM/Chat/AskLLMChatMessages/ProstglesToolUseMessage/ProstglesMCPTools/common/DatabaseAccessPermissions.tsx +63 -0
- package/client/src/dashboard/AskLLM/Chat/AskLLMChatMessages/ProstglesToolUseMessage/ProstglesMCPTools/common/HeaderList.tsx +26 -0
- package/client/src/dashboard/AskLLM/Chat/AskLLMChatMessages/ProstglesToolUseMessage/ProstglesMCPTools/common/useJSONBParsedData.ts +16 -0
- package/client/src/dashboard/AskLLM/Chat/AskLLMChatMessages/ProstglesToolUseMessage/ProstglesMCPTools/common/useSendToolUseResult.ts +46 -0
- package/client/src/dashboard/AskLLM/Chat/AskLLMChatMessages/ProstglesToolUseMessage/ProstglesMCPTools/common/useToolUseResultString.ts +27 -0
- package/client/src/dashboard/AskLLM/Chat/AskLLMChatMessages/ProstglesToolUseMessage/ProstglesMCPTools/common/useTypedToolUseResultData.ts +85 -0
- package/client/src/dashboard/AskLLM/Chat/AskLLMChatMessages/ProstglesToolUseMessage/ProstglesToolUseMessage.tsx +127 -0
- package/client/src/dashboard/AskLLM/Chat/AskLLMChatMessages/ToolUseChatMessage/InChatToolApprover.tsx +82 -0
- package/client/src/dashboard/AskLLM/Chat/AskLLMChatMessages/ToolUseChatMessage/ToolUseChatMessage.tsx +109 -0
- package/client/src/dashboard/AskLLM/Chat/AskLLMChatMessages/ToolUseChatMessage/ToolUseChatMessageBtn.tsx +51 -0
- package/client/src/dashboard/AskLLM/Chat/AskLLMChatMessages/ToolUseChatMessage/ToolUseChatMessageBtnTextSummary.tsx +45 -0
- package/client/src/dashboard/AskLLM/Chat/AskLLMChatMessages/ToolUseChatMessage/ToolUseChatMessageJSONData.tsx +132 -0
- package/client/src/dashboard/AskLLM/Chat/AskLLMChatMessages/ToolUseChatMessage/ToolUseChatMessageResult.tsx +57 -0
- package/client/src/dashboard/AskLLM/Chat/AskLLMChatMessages/ToolUseChatMessage/ToolUseReRunBtn.tsx +71 -0
- package/client/src/dashboard/AskLLM/Chat/AskLLMChatMessages/ToolUseChatMessage/useToolUseChatMessage.ts +51 -0
- package/client/src/dashboard/AskLLM/Chat/AskLLMChatMessages/ToolUseChatMessage/utils/getToolUseResult.ts +40 -0
- package/client/src/dashboard/AskLLM/Chat/AskLLMChatMessages/hooks/useLLMChatMessageGrouper.tsx +168 -0
- package/client/src/dashboard/AskLLM/Chat/AskLLMChatMessages/hooks/useLLMChatMessages.tsx +157 -0
- package/client/src/dashboard/AskLLM/Chat/AskLLMChatMessages/setChatPrompt.ts +116 -0
- package/client/src/dashboard/AskLLM/Chat/AskLLMChatSettings.tsx +88 -0
- package/client/src/dashboard/AskLLM/Chat/useAskLLMChatSend.ts +111 -0
- package/client/src/dashboard/AskLLM/Chat/useLLMChat.tsx +126 -0
- package/client/src/dashboard/AskLLM/Chat/useLLMSchemaStr.ts +207 -0
- package/client/src/dashboard/AskLLM/ChatActionBar/AskLLMChatActionBar.tsx +34 -0
- package/client/src/dashboard/AskLLM/ChatActionBar/AskLLMChatActionBarDatabaseAccess.tsx +273 -0
- package/client/src/dashboard/AskLLM/ChatActionBar/AskLLMChatActionBarMCPTools.tsx +102 -0
- package/client/src/dashboard/AskLLM/ChatActionBar/AskLLMChatActionBarMCPToolsBtn.tsx +167 -0
- package/client/src/dashboard/AskLLM/ChatActionBar/AskLLMChatActionBarModelSelector.tsx +238 -0
- package/client/src/dashboard/AskLLM/ChatActionBar/AskLLMChatActionBarPromptSelector.tsx +206 -0
- package/client/src/dashboard/AskLLM/ChatActionBar/PromptAndAllowedMcpToolsSchemaPreviews.tsx +85 -0
- package/client/src/dashboard/AskLLM/LLMModelSelector.tsx +270 -0
- package/client/src/dashboard/AskLLM/Setup/AddLLMPromptForm.tsx +33 -0
- package/client/src/dashboard/AskLLM/Setup/AskLLMAccessControl.tsx +246 -0
- package/client/src/dashboard/AskLLM/Setup/LLMProviderSetup.tsx +68 -0
- package/client/src/dashboard/AskLLM/Setup/LLMSetupProvider.tsx +111 -0
- package/client/src/dashboard/AskLLM/Setup/ProstglesSignup.tsx +108 -0
- package/client/src/dashboard/AskLLM/Setup/SetupLLMCredentials.tsx +89 -0
- package/client/src/dashboard/AskLLM/Tools/AskLLMToolApprover.tsx +279 -0
- package/client/src/dashboard/AskLLM/Tools/loadGeneratedWorkspaces/loadGeneratedBarchart.ts +126 -0
- package/client/src/dashboard/AskLLM/Tools/loadGeneratedWorkspaces/loadGeneratedMap.ts +58 -0
- package/client/src/dashboard/AskLLM/Tools/loadGeneratedWorkspaces/loadGeneratedTable.ts +159 -0
- package/client/src/dashboard/AskLLM/Tools/loadGeneratedWorkspaces/loadGeneratedTimechart.ts +78 -0
- package/client/src/dashboard/AskLLM/Tools/loadGeneratedWorkspaces/loadGeneratedWorkspaces.ts +168 -0
- package/client/src/dashboard/AskLLM/Tools/useAskLLMToolApprover.ts +99 -0
- package/client/src/dashboard/AskLLM/useLocalLLM.ts +84 -0
- package/client/src/dashboard/BackupAndRestore/AutomaticBackups.tsx +212 -0
- package/client/src/dashboard/BackupAndRestore/BackupsControls.tsx +291 -0
- package/client/src/dashboard/BackupAndRestore/BackupsInProgress.tsx +98 -0
- package/client/src/dashboard/BackupAndRestore/CloudStorageCredentialSelector.tsx +215 -0
- package/client/src/dashboard/BackupAndRestore/CodeConfirmation.tsx +205 -0
- package/client/src/dashboard/BackupAndRestore/CompletedBackups/DeleteAllBackups.tsx +58 -0
- package/client/src/dashboard/BackupAndRestore/CompletedBackups.tsx +276 -0
- package/client/src/dashboard/BackupAndRestore/DumpLocationOptions.tsx +40 -0
- package/client/src/dashboard/BackupAndRestore/DumpRestoreAlerts.tsx +82 -0
- package/client/src/dashboard/BackupAndRestore/PGDumpOptions.tsx +299 -0
- package/client/src/dashboard/BackupAndRestore/RenderBackupLogs.tsx +48 -0
- package/client/src/dashboard/BackupAndRestore/RenderBackupStatus.tsx +58 -0
- package/client/src/dashboard/BackupAndRestore/Restore/Restore.tsx +205 -0
- package/client/src/dashboard/BackupAndRestore/Restore/RestoreOptions.tsx +148 -0
- package/client/src/dashboard/BackupAndRestore/Restore/useRestoreDatabaseFromFile.ts +73 -0
- package/client/src/dashboard/BackupAndRestore/useBackupsControlsState.ts +39 -0
- package/client/src/dashboard/Charts/CanvasChart.ts +746 -0
- package/client/src/dashboard/Charts/TimeChart/TimeChart.tsx +232 -0
- package/client/src/dashboard/Charts/TimeChart/getBinValueLabels.ts +125 -0
- package/client/src/dashboard/Charts/TimeChart/getCssVariableValue.ts +6 -0
- package/client/src/dashboard/Charts/TimeChart/getTimeAxisTicks.ts +426 -0
- package/client/src/dashboard/Charts/TimeChart/getTimechartBinSize.ts +121 -0
- package/client/src/dashboard/Charts/TimeChart/getTimechartTooltipIntersections.ts +94 -0
- package/client/src/dashboard/Charts/TimeChart/getTimechartTooltipShapes.ts +318 -0
- package/client/src/dashboard/Charts/TimeChart/measureText.ts +34 -0
- package/client/src/dashboard/Charts/TimeChart/onDeltaTimechart.ts +65 -0
- package/client/src/dashboard/Charts/TimeChart/onRenderTimechart.ts +354 -0
- package/client/src/dashboard/Charts/TimeChart/prepareTimechartData.ts +185 -0
- package/client/src/dashboard/Charts/constants.ts +8 -0
- package/client/src/dashboard/Charts/createHiPPICanvas.ts +31 -0
- package/client/src/dashboard/Charts/drawMonotoneXCurve.ts +171 -0
- package/client/src/dashboard/Charts/drawShapes/drawLinkLine.ts +29 -0
- package/client/src/dashboard/Charts/drawShapes/drawShapes.ts +217 -0
- package/client/src/dashboard/Charts/drawShapes/drawShapesOnSVG.ts +481 -0
- package/client/src/dashboard/Charts/drawShapes/findShortestPathAroundRectangles.ts +241 -0
- package/client/src/dashboard/Charts/drawShapes/getLinkLinePoints.ts +124 -0
- package/client/src/dashboard/Charts/drawShapes/getTimechartGradientPeakSections.ts +27 -0
- package/client/src/dashboard/Charts/drawShapes/shortestLinkLineV2.ts +182 -0
- package/client/src/dashboard/Charts/roundRect.ts +42 -0
- package/client/src/dashboard/Charts.tsx +216 -0
- package/client/src/dashboard/CodeEditor/CodeEditor.tsx +288 -0
- package/client/src/dashboard/CodeEditor/CodeEditorWithSaveButton.tsx +208 -0
- package/client/src/dashboard/CodeEditor/registerLogLang.ts +128 -0
- package/client/src/dashboard/CodeEditor/utils/getMonacoJsonSchemas.ts +31 -0
- package/client/src/dashboard/CodeEditor/utils/installGoToDefinition.ts +40 -0
- package/client/src/dashboard/CodeEditor/utils/navigateTo.ts +61 -0
- package/client/src/dashboard/CodeEditor/utils/resolveDefinition..ts +33 -0
- package/client/src/dashboard/CodeEditor/utils/setMonacoErrorMarkers.ts +67 -0
- package/client/src/dashboard/CodeEditor/utils/useSetMonacoJsonSchemas.ts +60 -0
- package/client/src/dashboard/CodeEditor/utils/useSetMonacoTsLibraries.ts +157 -0
- package/client/src/dashboard/CodeExample.tsx +34 -0
- package/client/src/dashboard/ConnectionConfig/APIDetails/APICodeExamples.tsx +280 -0
- package/client/src/dashboard/ConnectionConfig/APIDetails/APIDetails.tsx +111 -0
- package/client/src/dashboard/ConnectionConfig/APIDetails/APIDetailsHttp.tsx +123 -0
- package/client/src/dashboard/ConnectionConfig/APIDetails/APIDetailsTokens.tsx +137 -0
- package/client/src/dashboard/ConnectionConfig/APIDetails/APIDetailsWs.tsx +98 -0
- package/client/src/dashboard/ConnectionConfig/APIDetails/AllowedOriginCheck.tsx +104 -0
- package/client/src/dashboard/ConnectionConfig/APIDetails/getApiEndpoint.ts +8 -0
- package/client/src/dashboard/ConnectionConfig/ConnectionConfig.tsx +267 -0
- package/client/src/dashboard/ConnectionConfig/ConnectionConfigSync.tsx +123 -0
- package/client/src/dashboard/ConnectionConfig/ServerSideFunctions.tsx +46 -0
- package/client/src/dashboard/ConnectionConfig/WebApp/WebAppConfig.tsx +90 -0
- package/client/src/dashboard/ConnectionConfig/WebApp/WebAppConfigComponents.tsx +47 -0
- package/client/src/dashboard/ConnectionConfig/WebApp/WebAppConfigFooterActions.tsx +137 -0
- package/client/src/dashboard/ConnectionConfig/WebApp/WebAppConfigSetup.tsx +135 -0
- package/client/src/dashboard/ConnectionConfig/WebApp/hooks/useWebAppConfigActiveSection.ts +12 -0
- package/client/src/dashboard/ConnectionConfig/WebApp/hooks/useWebAppConfigState.ts +76 -0
- package/client/src/dashboard/ConnectionConfig/useConnectionConfigSearchParams.ts +35 -0
- package/client/src/dashboard/ConnectionSelector.tsx +58 -0
- package/client/src/dashboard/Dashboard/CloseSaveSQLPopup.tsx +81 -0
- package/client/src/dashboard/Dashboard/DBS.ts +19 -0
- package/client/src/dashboard/Dashboard/Dashboard.tsx +667 -0
- package/client/src/dashboard/Dashboard/DashboardCenteredLayoutResizer.tsx +56 -0
- package/client/src/dashboard/Dashboard/PALETTE.ts +36 -0
- package/client/src/dashboard/Dashboard/ViewRenderer.tsx +498 -0
- package/client/src/dashboard/Dashboard/addChart.ts +261 -0
- package/client/src/dashboard/Dashboard/addLink.ts +48 -0
- package/client/src/dashboard/Dashboard/addWindow.ts +51 -0
- package/client/src/dashboard/Dashboard/cardLayout.ts +28 -0
- package/client/src/dashboard/Dashboard/cloneWorkspace.ts +102 -0
- package/client/src/dashboard/Dashboard/dashboardUtils.ts +377 -0
- package/client/src/dashboard/Dashboard/debuggingUtils.ts +112 -0
- package/client/src/dashboard/Dashboard/getTables.ts +31 -0
- package/client/src/dashboard/Dashboard/getViewRendererUtils.ts +108 -0
- package/client/src/dashboard/Dashboard/onLinkTable.ts +45 -0
- package/client/src/dashboard/Dashboard/useAddViewToWorkspace.ts +92 -0
- package/client/src/dashboard/DashboardMenu/CreateTable.tsx +307 -0
- package/client/src/dashboard/DashboardMenu/DashboardHotkeys.tsx +38 -0
- package/client/src/dashboard/DashboardMenu/DashboardMenu.tsx +183 -0
- package/client/src/dashboard/DashboardMenu/DashboardMenuContent.tsx +203 -0
- package/client/src/dashboard/DashboardMenu/DashboardMenuHeader.tsx +86 -0
- package/client/src/dashboard/DashboardMenu/DashboardMenuHotkeys.tsx +102 -0
- package/client/src/dashboard/DashboardMenu/DashboardMenuResizer.tsx +68 -0
- package/client/src/dashboard/DashboardMenu/DashboardMenuSettings.tsx +241 -0
- package/client/src/dashboard/DashboardMenu/NewTableMenu.tsx +121 -0
- package/client/src/dashboard/DashboardMenu/SavedAgenticWorkflowsAndContainers.tsx +149 -0
- package/client/src/dashboard/DashboardMenu/SettingsSection.tsx +22 -0
- package/client/src/dashboard/DashboardMenu/TableList.tsx +141 -0
- package/client/src/dashboard/DashboardMenu/useTableSizeInfo.ts +98 -0
- package/client/src/dashboard/DatabaseAccessEditor/DatabaseAccessEditor.tsx +174 -0
- package/client/src/dashboard/DatabaseAccessEditor/DatabaseAccessEditorCustomTables.tsx +149 -0
- package/client/src/dashboard/DatabaseAccessEditor/TableAccessAdvancedOptions.tsx +128 -0
- package/client/src/dashboard/DatabaseAccessEditor/TableAccessAdvancedOptionsMenu.tsx +65 -0
- package/client/src/dashboard/DatabaseAccessEditor/TableAccessDetails.tsx +163 -0
- package/client/src/dashboard/DatabaseAccessEditor/TableAccessEditor.tsx +229 -0
- package/client/src/dashboard/DatabaseAccessEditor/getTableSchemaDriftState.ts +65 -0
- package/client/src/dashboard/DatabaseAccessEditor/useDatabaseAccessEditorTables.tsx +99 -0
- package/client/src/dashboard/DetailedFilterControl/DetailedFilterBaseControl.tsx +139 -0
- package/client/src/dashboard/DetailedFilterControl/DetailedFilterBaseControlRouter.tsx +192 -0
- package/client/src/dashboard/DetailedFilterControl/DetailedFilterBaseTypes/AgeFilter.tsx +148 -0
- package/client/src/dashboard/DetailedFilterControl/DetailedFilterBaseTypes/GeoFilter.tsx +255 -0
- package/client/src/dashboard/DetailedFilterControl/DetailedFilterBaseTypes/ListFilter/ListFilter.tsx +235 -0
- package/client/src/dashboard/DetailedFilterControl/DetailedFilterBaseTypes/ListFilter/fetchListFilterOptions.ts +76 -0
- package/client/src/dashboard/DetailedFilterControl/DetailedFilterBaseTypes/NumberOrDateFilter.tsx +206 -0
- package/client/src/dashboard/DetailedFilterControl/DetailedFilterControl.tsx +157 -0
- package/client/src/dashboard/DetailedFilterControl/FTS_LANGUAGES.ts +35 -0
- package/client/src/dashboard/DetailedFilterControl/FilterWrapper.css +7 -0
- package/client/src/dashboard/DetailedFilterControl/FilterWrapper.tsx +339 -0
- package/client/src/dashboard/DetailedFilterControl/validateFilter.ts +46 -0
- package/client/src/dashboard/Feedback.tsx +145 -0
- package/client/src/dashboard/FileImporter/FileImporter.tsx +770 -0
- package/client/src/dashboard/FileImporter/FileImporterFooter.tsx +100 -0
- package/client/src/dashboard/FileImporter/checkCSVColumnDataTypes.tsx +139 -0
- package/client/src/dashboard/FileImporter/importFile.ts +303 -0
- package/client/src/dashboard/FileImporter/parseCSVFile.ts +123 -0
- package/client/src/dashboard/FileImporter/setFile.ts +251 -0
- package/client/src/dashboard/FileTableControls/CreateFileColumn.tsx +189 -0
- package/client/src/dashboard/FileTableControls/FileColumnConfigControls.tsx +191 -0
- package/client/src/dashboard/FileTableControls/FileColumnConfigEditor.tsx +251 -0
- package/client/src/dashboard/FileTableControls/FileStorageControls.tsx +294 -0
- package/client/src/dashboard/FileTableControls/FileStorageDelete.tsx +106 -0
- package/client/src/dashboard/FileTableControls/FileStorageReferencedTablesConfig.tsx +80 -0
- package/client/src/dashboard/FileTableControls/FileTableConfigControls.tsx +69 -0
- package/client/src/dashboard/FileTableControls/hooks/useFileTableConfigControls.ts +70 -0
- package/client/src/dashboard/FileTableControls/hooks/useSetFileStorage.ts +128 -0
- package/client/src/dashboard/JSONBColumnEditor.tsx +60 -0
- package/client/src/dashboard/LinkMenu.tsx +332 -0
- package/client/src/dashboard/Map/DeckGLFeatureEditor.tsx +645 -0
- package/client/src/dashboard/Map/DeckGLMap.css +45 -0
- package/client/src/dashboard/Map/DeckGLMap.tsx +576 -0
- package/client/src/dashboard/Map/DeckGLWrapped.ts +312 -0
- package/client/src/dashboard/Map/InMapControls.tsx +137 -0
- package/client/src/dashboard/Map/MVTLayerProps.ts +306 -0
- package/client/src/dashboard/Map/fitBounds.ts +63 -0
- package/client/src/dashboard/Map/mapDrawUtils.ts +129 -0
- package/client/src/dashboard/Map/mapUtils.ts +183 -0
- package/client/src/dashboard/RTComp.tsx +165 -0
- package/client/src/dashboard/RenderFilter.tsx +174 -0
- package/client/src/dashboard/SQLEditor/SQLCompletion/CommonMatchImports.ts +366 -0
- package/client/src/dashboard/SQLEditor/SQLCompletion/KEYWORDS.ts +448 -0
- package/client/src/dashboard/SQLEditor/SQLCompletion/MacthCreate/MatchCreate.ts +294 -0
- package/client/src/dashboard/SQLEditor/SQLCompletion/MacthCreate/MatchCreateView.ts +106 -0
- package/client/src/dashboard/SQLEditor/SQLCompletion/MacthCreate/matchCreateIndex.ts +220 -0
- package/client/src/dashboard/SQLEditor/SQLCompletion/MacthCreate/matchCreatePolicy.ts +108 -0
- package/client/src/dashboard/SQLEditor/SQLCompletion/MacthCreate/matchCreateRule.tsx +99 -0
- package/client/src/dashboard/SQLEditor/SQLCompletion/MacthCreate/matchCreateTable.ts +336 -0
- package/client/src/dashboard/SQLEditor/SQLCompletion/MacthCreate/matchCreateTrigger.ts +84 -0
- package/client/src/dashboard/SQLEditor/SQLCompletion/MatchAlter/MatchAlter.tsx +258 -0
- package/client/src/dashboard/SQLEditor/SQLCompletion/MatchAlter/matchAlterPolicy.ts +50 -0
- package/client/src/dashboard/SQLEditor/SQLCompletion/MatchAlter/matchAlterTable.ts +325 -0
- package/client/src/dashboard/SQLEditor/SQLCompletion/MatchAlter/matchCreateOrAlterUser.tsx +192 -0
- package/client/src/dashboard/SQLEditor/SQLCompletion/MatchComment.ts +86 -0
- package/client/src/dashboard/SQLEditor/SQLCompletion/MatchCopy.ts +367 -0
- package/client/src/dashboard/SQLEditor/SQLCompletion/MatchDrop.ts +161 -0
- package/client/src/dashboard/SQLEditor/SQLCompletion/MatchFirst.ts +471 -0
- package/client/src/dashboard/SQLEditor/SQLCompletion/MatchGrant.ts +331 -0
- package/client/src/dashboard/SQLEditor/SQLCompletion/MatchInsert.tsx +123 -0
- package/client/src/dashboard/SQLEditor/SQLCompletion/MatchLast.ts +10 -0
- package/client/src/dashboard/SQLEditor/SQLCompletion/MatchPublication.ts +126 -0
- package/client/src/dashboard/SQLEditor/SQLCompletion/MatchReassign.ts +35 -0
- package/client/src/dashboard/SQLEditor/SQLCompletion/MatchReindex.ts +36 -0
- package/client/src/dashboard/SQLEditor/SQLCompletion/MatchSelect.ts +623 -0
- package/client/src/dashboard/SQLEditor/SQLCompletion/MatchSet.ts +183 -0
- package/client/src/dashboard/SQLEditor/SQLCompletion/MatchSubscription.ts +231 -0
- package/client/src/dashboard/SQLEditor/SQLCompletion/MatchUpdate.ts +79 -0
- package/client/src/dashboard/SQLEditor/SQLCompletion/MatchVacuum.ts +86 -0
- package/client/src/dashboard/SQLEditor/SQLCompletion/MatchWith.ts +222 -0
- package/client/src/dashboard/SQLEditor/SQLCompletion/MathDelete.ts +18 -0
- package/client/src/dashboard/SQLEditor/SQLCompletion/PSQL.ts +136 -0
- package/client/src/dashboard/SQLEditor/SQLCompletion/STARTING_KEYWORDS.ts +931 -0
- package/client/src/dashboard/SQLEditor/SQLCompletion/TableKWDs.ts +479 -0
- package/client/src/dashboard/SQLEditor/SQLCompletion/completionUtils/checkIfInsideDollarFunctionDefinition.ts +88 -0
- package/client/src/dashboard/SQLEditor/SQLCompletion/completionUtils/checkIfUnfinishedParenthesis.ts +74 -0
- package/client/src/dashboard/SQLEditor/SQLCompletion/completionUtils/getCodeBlock.ts +627 -0
- package/client/src/dashboard/SQLEditor/SQLCompletion/completionUtils/getQueryReturnType.ts +274 -0
- package/client/src/dashboard/SQLEditor/SQLCompletion/completionUtils/getTableExpressionReturnTypes.ts +243 -0
- package/client/src/dashboard/SQLEditor/SQLCompletion/completionUtils/getTabularExpressions.ts +428 -0
- package/client/src/dashboard/SQLEditor/SQLCompletion/completionUtils/getTokens.ts +239 -0
- package/client/src/dashboard/SQLEditor/SQLCompletion/getExpected.ts +176 -0
- package/client/src/dashboard/SQLEditor/SQLCompletion/getJoinSuggestions.ts +193 -0
- package/client/src/dashboard/SQLEditor/SQLCompletion/getMatch.ts +62 -0
- package/client/src/dashboard/SQLEditor/SQLCompletion/getPGObjects.ts +1270 -0
- package/client/src/dashboard/SQLEditor/SQLCompletion/getPrevTokensNoParantheses.ts +234 -0
- package/client/src/dashboard/SQLEditor/SQLCompletion/jsonbPathSuggest.ts +188 -0
- package/client/src/dashboard/SQLEditor/SQLCompletion/monacoSQLSetup/registerHover.ts +138 -0
- package/client/src/dashboard/SQLEditor/SQLCompletion/monacoSQLSetup/registerSuggestions.ts +549 -0
- package/client/src/dashboard/SQLEditor/SQLCompletion/suggestColumnLike.ts +251 -0
- package/client/src/dashboard/SQLEditor/SQLCompletion/suggestCondition.ts +320 -0
- package/client/src/dashboard/SQLEditor/SQLCompletion/suggestFuncArgs.ts +105 -0
- package/client/src/dashboard/SQLEditor/SQLCompletion/suggestTableLike.ts +104 -0
- package/client/src/dashboard/SQLEditor/SQLCompletion/suggestValue.ts +125 -0
- package/client/src/dashboard/SQLEditor/SQLCompletion/withKWDs.ts +507 -0
- package/client/src/dashboard/SQLEditor/SQLEditorSuggestions.ts +1883 -0
- package/client/src/dashboard/SQLEditor/SQLSmartEditor.tsx +124 -0
- package/client/src/dashboard/SQLEditor/SQL_SNIPPETS.ts +43 -0
- package/client/src/dashboard/SQLEditor/W_SQLEditor.css +15 -0
- package/client/src/dashboard/SQLEditor/W_SQLEditor.tsx +746 -0
- package/client/src/dashboard/SQLEditor/addSqlEditorFunctions.ts +74 -0
- package/client/src/dashboard/SQLEditor/defineCustomMonacoSQLTheme.ts +74 -0
- package/client/src/dashboard/SQLEditor/getFormattedSql.ts +154 -0
- package/client/src/dashboard/SQLEditor/registerFunctionSuggestions.ts +175 -0
- package/client/src/dashboard/SQLEditor/utils/scrollToLineIfNeeded.ts +17 -0
- package/client/src/dashboard/SQLEditor/utils/setMonacEditorError.ts +93 -0
- package/client/src/dashboard/SampleSchemas.tsx +50 -0
- package/client/src/dashboard/SchemaGraph/ERDSchema/ERDSchema.tsx +175 -0
- package/client/src/dashboard/SchemaGraph/ERDSchema/getInitialPlacement.ts +115 -0
- package/client/src/dashboard/SchemaGraph/ERDSchema/getInitialPlacementV2.ts +343 -0
- package/client/src/dashboard/SchemaGraph/ERDSchema/useCanvasPanZoom.ts +54 -0
- package/client/src/dashboard/SchemaGraph/ERDSchema/useDrawHiddenSvgForNativeTextSearch.ts +80 -0
- package/client/src/dashboard/SchemaGraph/ERDSchema/useDrawSchemaShapes.ts +242 -0
- package/client/src/dashboard/SchemaGraph/ERDSchema/useFetchSchemaForDiagram.ts +276 -0
- package/client/src/dashboard/SchemaGraph/ERDSchema/usePanShapes.ts +160 -0
- package/client/src/dashboard/SchemaGraph/ERDSchema/useSchemaShapes.ts +352 -0
- package/client/src/dashboard/SchemaGraph/SchemaGraph.tsx +55 -0
- package/client/src/dashboard/SchemaGraph/SchemaGraphControls.tsx +226 -0
- package/client/src/dashboard/SchemaGraph/types.ts +29 -0
- package/client/src/dashboard/SearchAll/SearchAll.tsx +77 -0
- package/client/src/dashboard/SearchAll/SearchAllContent.tsx +63 -0
- package/client/src/dashboard/SearchAll/SearchAllHeader.tsx +71 -0
- package/client/src/dashboard/SearchAll/SearchMatchRow.tsx +103 -0
- package/client/src/dashboard/SearchAll/hooks/useSearchAllState.ts +46 -0
- package/client/src/dashboard/SearchAll/hooks/useSearchListProps.tsx +178 -0
- package/client/src/dashboard/SearchAll/hooks/useSearchTables.tsx +163 -0
- package/client/src/dashboard/SearchAll/hooks/useTablesAndViewsSearchItems.ts +55 -0
- package/client/src/dashboard/SilverGrid/SilverGrid.tsx +531 -0
- package/client/src/dashboard/SilverGrid/SilverGridChild.tsx +403 -0
- package/client/src/dashboard/SilverGrid/SilverGridChildHeader.tsx +235 -0
- package/client/src/dashboard/SilverGrid/SilverGridResizer.tsx +129 -0
- package/client/src/dashboard/SilverGrid/TreeBuilder.ts +261 -0
- package/client/src/dashboard/SmartCard/SmartCard.tsx +218 -0
- package/client/src/dashboard/SmartCard/SmartCardActions.tsx +113 -0
- package/client/src/dashboard/SmartCard/SmartCardColumn.tsx +49 -0
- package/client/src/dashboard/SmartCard/getSelectForFieldConfigs.ts +44 -0
- package/client/src/dashboard/SmartCard/parseFieldConfigs.tsx +165 -0
- package/client/src/dashboard/SmartCard/useFieldConfigParser.ts +55 -0
- package/client/src/dashboard/SmartCard/useSmartCardColumns.ts +46 -0
- package/client/src/dashboard/SmartCardList/SmartCardList.tsx +291 -0
- package/client/src/dashboard/SmartCardList/SmartCardListHeaderControls.tsx +130 -0
- package/client/src/dashboard/SmartCardList/SmartCardListJoinedNewRecords.tsx +97 -0
- package/client/src/dashboard/SmartCardList/useSmartCardListState.ts +273 -0
- package/client/src/dashboard/SmartFilter/AddJoinFilter.tsx +97 -0
- package/client/src/dashboard/SmartFilter/MinimisedFilter.css +13 -0
- package/client/src/dashboard/SmartFilter/MinimisedFilter.tsx +208 -0
- package/client/src/dashboard/SmartFilter/SmartAddFilter.tsx +324 -0
- package/client/src/dashboard/SmartFilter/SmartFilter.tsx +182 -0
- package/client/src/dashboard/SmartFilter/SmartSearch/SmartSearch.css +4 -0
- package/client/src/dashboard/SmartFilter/SmartSearch/SmartSearch.tsx +230 -0
- package/client/src/dashboard/SmartFilter/SmartSearch/getSmartSearchRows.ts +277 -0
- package/client/src/dashboard/SmartFilter/SmartSearch/onSearchItems.tsx +146 -0
- package/client/src/dashboard/SmartFilter/SortByControl.tsx +81 -0
- package/client/src/dashboard/SmartFilter/smartFilterUtils.ts +97 -0
- package/client/src/dashboard/SmartFilterBar/SmartFilterBar.tsx +178 -0
- package/client/src/dashboard/SmartFilterBar/SmartFilterBarFilters.tsx +103 -0
- package/client/src/dashboard/SmartFilterBar/SmartFilterBarRightActions.tsx +212 -0
- package/client/src/dashboard/SmartFilterBar/SmartFilterBarSearch.tsx +115 -0
- package/client/src/dashboard/SmartFilterBar/SmartFilterBarSort.tsx +108 -0
- package/client/src/dashboard/SmartFilterBar/useSmartFilterBarState.ts +100 -0
- package/client/src/dashboard/SmartForm/ChipArrayEditor.tsx +169 -0
- package/client/src/dashboard/SmartForm/InsertButton.tsx +89 -0
- package/client/src/dashboard/SmartForm/JoinedRecords/JoinedRecords.tsx +155 -0
- package/client/src/dashboard/SmartForm/JoinedRecords/JoinedRecordsAddRow.tsx +182 -0
- package/client/src/dashboard/SmartForm/JoinedRecords/JoinedRecordsSection.tsx +168 -0
- package/client/src/dashboard/SmartForm/JoinedRecords/getJoinFilter.ts +31 -0
- package/client/src/dashboard/SmartForm/JoinedRecords/useJoinedRecordsSections.ts +246 -0
- package/client/src/dashboard/SmartForm/JoinedRecords/useJoinedSectionFieldConfigs.tsx +120 -0
- package/client/src/dashboard/SmartForm/SmartForm.tsx +368 -0
- package/client/src/dashboard/SmartForm/SmartFormField/RenderValue/RenderJson.tsx +72 -0
- package/client/src/dashboard/SmartForm/SmartFormField/RenderValue.tsx +294 -0
- package/client/src/dashboard/SmartForm/SmartFormField/SmartFormField.tsx +349 -0
- package/client/src/dashboard/SmartForm/SmartFormField/SmartFormFieldFileSection.tsx +51 -0
- package/client/src/dashboard/SmartForm/SmartFormField/SmartFormFieldForeignKey.tsx +253 -0
- package/client/src/dashboard/SmartForm/SmartFormField/SmartFormFieldLinkedData.tsx +207 -0
- package/client/src/dashboard/SmartForm/SmartFormField/SmartFormFieldLinkedDataInsert/SmartFormFieldLinkedDataInsert.tsx +165 -0
- package/client/src/dashboard/SmartForm/SmartFormField/SmartFormFieldLinkedDataInsert/useSmartFormFieldLinkedDataInsert.tsx +77 -0
- package/client/src/dashboard/SmartForm/SmartFormField/SmartFormFieldLinkedDataSearch.tsx +91 -0
- package/client/src/dashboard/SmartForm/SmartFormField/SmartFormFieldRightButtons.tsx +110 -0
- package/client/src/dashboard/SmartForm/SmartFormField/ViewMoreSmartCardList.tsx +86 -0
- package/client/src/dashboard/SmartForm/SmartFormField/fetchColumnValueSuggestions.ts +92 -0
- package/client/src/dashboard/SmartForm/SmartFormField/fetchForeignKeyOptions.tsx +348 -0
- package/client/src/dashboard/SmartForm/SmartFormField/fieldUtils.ts +228 -0
- package/client/src/dashboard/SmartForm/SmartFormField/useNestedInsertDefaultData.ts +28 -0
- package/client/src/dashboard/SmartForm/SmartFormField/useSmartFormFieldAsJSON.tsx +87 -0
- package/client/src/dashboard/SmartForm/SmartFormField/useSmartFormFieldOnChange.ts +65 -0
- package/client/src/dashboard/SmartForm/SmartFormFieldList.tsx +190 -0
- package/client/src/dashboard/SmartForm/SmartFormFileSection.tsx +110 -0
- package/client/src/dashboard/SmartForm/SmartFormFooter/SmartFormFooterButtons.tsx +133 -0
- package/client/src/dashboard/SmartForm/SmartFormFooter/useSmartFormActions.ts +265 -0
- package/client/src/dashboard/SmartForm/SmartFormNewRowDataHandler.ts +168 -0
- package/client/src/dashboard/SmartForm/SmartFormPopup/SmartFormPopupWrapper.tsx +92 -0
- package/client/src/dashboard/SmartForm/SmartFormPopup/SmartFormPrevNext.tsx +33 -0
- package/client/src/dashboard/SmartForm/SmartFormPopup/SmartFormViewAsMarkdown.tsx +83 -0
- package/client/src/dashboard/SmartForm/SmartFormPopup/useSmartFormPrevNext.ts +20 -0
- package/client/src/dashboard/SmartForm/SmartFormPopup/useSmartFormSubTitle.ts +44 -0
- package/client/src/dashboard/SmartForm/SmartFormUpperFooter/SmartFormUpperFooter.tsx +198 -0
- package/client/src/dashboard/SmartForm/SmartFormUpperFooter/useActiveJoinedRecordsTab.ts +65 -0
- package/client/src/dashboard/SmartForm/constants.ts +1 -0
- package/client/src/dashboard/SmartForm/useNewRowDataHandler.ts +386 -0
- package/client/src/dashboard/SmartForm/useSmartForm.ts +67 -0
- package/client/src/dashboard/SmartForm/useSmartFormColumns.ts +127 -0
- package/client/src/dashboard/SmartForm/useSmartFormMode.ts +243 -0
- package/client/src/dashboard/SmartSelect.tsx +228 -0
- package/client/src/dashboard/SmartTable.tsx +383 -0
- package/client/src/dashboard/StatusMonitor/StatusMonitor.tsx +41 -0
- package/client/src/dashboard/StatusMonitor/StatusMonitorBlockedByPid.tsx +35 -0
- package/client/src/dashboard/StatusMonitor/StatusMonitorConnections.tsx +127 -0
- package/client/src/dashboard/StatusMonitor/StatusMonitorInfoHeader/StatusMonitorInfoHeader.tsx +122 -0
- package/client/src/dashboard/StatusMonitor/StatusMonitorInfoHeader/StatusMonitorInfoHeaderCpu.tsx +122 -0
- package/client/src/dashboard/StatusMonitor/StatusMonitorInfoHeader/StatusMonitorInfoHeaderMemory.tsx +21 -0
- package/client/src/dashboard/StatusMonitor/StatusMonitorProcList.tsx +292 -0
- package/client/src/dashboard/StatusMonitor/StatusMonitorProcListControlsHeader.tsx +85 -0
- package/client/src/dashboard/TableConfig/ProcessLogs.tsx +65 -0
- package/client/src/dashboard/TableConfig/TableConfig.tsx +88 -0
- package/client/src/dashboard/TimeSeries.tsx +29 -0
- package/client/src/dashboard/UserManager.tsx +54 -0
- package/client/src/dashboard/W_Barchart/W_Barchart.tsx +104 -0
- package/client/src/dashboard/W_Barchart/fetchSQLBarchartData.ts +7 -0
- package/client/src/dashboard/W_Barchart/useBarchartData.ts +176 -0
- package/client/src/dashboard/W_Map/OSM/OverpassQuery.tsx +21 -0
- package/client/src/dashboard/W_Map/OSM/fetchOSMCountryBoundary.ts +73 -0
- package/client/src/dashboard/W_Map/OSM/getOSMData.ts +240 -0
- package/client/src/dashboard/W_Map/OSM/osmToGeoJSON.ts +198 -0
- package/client/src/dashboard/W_Map/OSM/osmTypes.ts +1856 -0
- package/client/src/dashboard/W_Map/W_Map.tsx +747 -0
- package/client/src/dashboard/W_Map/W_MapMenu.tsx +188 -0
- package/client/src/dashboard/W_Map/controls/MapBasemapOptions.tsx +268 -0
- package/client/src/dashboard/W_Map/controls/MapInfoSection.tsx +95 -0
- package/client/src/dashboard/W_Map/controls/MapOSMQuery.tsx +174 -0
- package/client/src/dashboard/W_Map/controls/MapOpacityMenu.tsx +60 -0
- package/client/src/dashboard/W_Map/fetchData/fetchMapLayerData.ts +401 -0
- package/client/src/dashboard/W_Map/fetchData/getMapData.ts +161 -0
- package/client/src/dashboard/W_Map/fetchData/getMapDataExtent.ts +86 -0
- package/client/src/dashboard/W_Map/fetchData/getMapLayerQueries.ts +232 -0
- package/client/src/dashboard/W_Map/getMapFeatureStyle.ts +160 -0
- package/client/src/dashboard/W_Map/onMapHover.ts +118 -0
- package/client/src/dashboard/W_Method/FunctionLabel.tsx +24 -0
- package/client/src/dashboard/W_Method/NewMethod.tsx +108 -0
- package/client/src/dashboard/W_Method/PublishedMethods.tsx +218 -0
- package/client/src/dashboard/W_Method/W_Method.tsx +48 -0
- package/client/src/dashboard/W_Method/W_MethodControls.tsx +338 -0
- package/client/src/dashboard/W_Method/W_MethodMenu.tsx +162 -0
- package/client/src/dashboard/W_QuickMenu.tsx +228 -0
- package/client/src/dashboard/W_SQL/CSVRender.tsx +18 -0
- package/client/src/dashboard/W_SQL/CopyResultBtn.tsx +246 -0
- package/client/src/dashboard/W_SQL/MonacoLanguageRegister.ts +701 -0
- package/client/src/dashboard/W_SQL/SQLHotkeys.tsx +23 -0
- package/client/src/dashboard/W_SQL/TestSQL.ts +52 -0
- package/client/src/dashboard/W_SQL/W_SQL.tsx +679 -0
- package/client/src/dashboard/W_SQL/W_SQLBottomBar/W_SQLBottomBar.tsx +484 -0
- package/client/src/dashboard/W_SQL/W_SQLBottomBar/W_SQLBottomBarProcStats.tsx +67 -0
- package/client/src/dashboard/W_SQL/W_SQLMenu.tsx +403 -0
- package/client/src/dashboard/W_SQL/W_SQLResults.tsx +161 -0
- package/client/src/dashboard/W_SQL/customRenderers.tsx +126 -0
- package/client/src/dashboard/W_SQL/demoScripts/createTables.ts +262 -0
- package/client/src/dashboard/W_SQL/demoScripts/mainTestScripts.ts +269 -0
- package/client/src/dashboard/W_SQL/demoScripts/testBugs.ts +596 -0
- package/client/src/dashboard/W_SQL/demoScripts/testMiscAndBugs.ts +61 -0
- package/client/src/dashboard/W_SQL/demoScripts/testSqlCharts.ts +117 -0
- package/client/src/dashboard/W_SQL/getChartableSQL.ts +169 -0
- package/client/src/dashboard/W_SQL/getDemoUtils.ts +260 -0
- package/client/src/dashboard/W_SQL/getSQLResultTableColumns.ts +56 -0
- package/client/src/dashboard/W_SQL/monacoEditorTypes.ts +13 -0
- package/client/src/dashboard/W_SQL/parseExplainResult.ts +99 -0
- package/client/src/dashboard/W_SQL/parseSQLError.ts +55 -0
- package/client/src/dashboard/W_SQL/parseSqlResultCols.ts +96 -0
- package/client/src/dashboard/W_SQL/runSQL/getQueryTotalRowCount.ts +38 -0
- package/client/src/dashboard/W_SQL/runSQL/runSQL.ts +432 -0
- package/client/src/dashboard/W_SQL/runSQLErrorHints.ts +150 -0
- package/client/src/dashboard/W_Table/CardView/CardItem/CardItemBody.tsx +151 -0
- package/client/src/dashboard/W_Table/CardView/CardItem/CardItemHeader.tsx +150 -0
- package/client/src/dashboard/W_Table/CardView/CardItem/CardViewRow.tsx +160 -0
- package/client/src/dashboard/W_Table/CardView/CardView.tsx +87 -0
- package/client/src/dashboard/W_Table/CardView/CardViewColumn.tsx +82 -0
- package/client/src/dashboard/W_Table/CardView/CardViewKanban.tsx +87 -0
- package/client/src/dashboard/W_Table/CardView/DragHeader.tsx +46 -0
- package/client/src/dashboard/W_Table/CardView/constants.ts +1 -0
- package/client/src/dashboard/W_Table/CardView/useCardViewState.ts +50 -0
- package/client/src/dashboard/W_Table/CardView/useDragHeader.ts +280 -0
- package/client/src/dashboard/W_Table/ColumnMenu/AddColumnMenu.tsx +193 -0
- package/client/src/dashboard/W_Table/ColumnMenu/AddComputedColumn/AddComputedColMenu.tsx +650 -0
- package/client/src/dashboard/W_Table/ColumnMenu/AddComputedColumn/FunctionColumnList.tsx +75 -0
- package/client/src/dashboard/W_Table/ColumnMenu/AddComputedColumn/QuickAddComputedColumn.tsx +129 -0
- package/client/src/dashboard/W_Table/ColumnMenu/AddComputedColumn/useAddComputedColumn.ts +175 -0
- package/client/src/dashboard/W_Table/ColumnMenu/AlterColumn/AlterColumn.tsx +421 -0
- package/client/src/dashboard/W_Table/ColumnMenu/AlterColumn/AlterColumnFileOptions.tsx +84 -0
- package/client/src/dashboard/W_Table/ColumnMenu/AlterColumn/ColumnEditor.tsx +229 -0
- package/client/src/dashboard/W_Table/ColumnMenu/AlterColumn/CreateColumn.tsx +150 -0
- package/client/src/dashboard/W_Table/ColumnMenu/AlterColumn/ReferenceEditor.tsx +243 -0
- package/client/src/dashboard/W_Table/ColumnMenu/AlterColumn/alterColumnUtilts.ts +53 -0
- package/client/src/dashboard/W_Table/ColumnMenu/ColorPicker.tsx +251 -0
- package/client/src/dashboard/W_Table/ColumnMenu/ColumnDisplayFormat/ChipStylePalette.tsx +127 -0
- package/client/src/dashboard/W_Table/ColumnMenu/ColumnDisplayFormat/ColumnDisplayFormat.tsx +116 -0
- package/client/src/dashboard/W_Table/ColumnMenu/ColumnDisplayFormat/ConditionalCellIconStyleControls.tsx +140 -0
- package/client/src/dashboard/W_Table/ColumnMenu/ColumnDisplayFormat/ConditionalCellStyleControls.tsx +235 -0
- package/client/src/dashboard/W_Table/ColumnMenu/ColumnDisplayFormat/NestedColumnRender.tsx +172 -0
- package/client/src/dashboard/W_Table/ColumnMenu/ColumnDisplayFormat/columnFormatUtils.tsx +330 -0
- package/client/src/dashboard/W_Table/ColumnMenu/ColumnList.tsx +291 -0
- package/client/src/dashboard/W_Table/ColumnMenu/ColumnMenu.tsx +537 -0
- package/client/src/dashboard/W_Table/ColumnMenu/ColumnQuickStats/ColumnQuickStats.tsx +176 -0
- package/client/src/dashboard/W_Table/ColumnMenu/ColumnQuickStats/useColumnQuickStats.ts +169 -0
- package/client/src/dashboard/W_Table/ColumnMenu/ColumnSelect/ColumnSelect.tsx +54 -0
- package/client/src/dashboard/W_Table/ColumnMenu/ColumnSelect/getColumnListItem.tsx +97 -0
- package/client/src/dashboard/W_Table/ColumnMenu/ColumnSortMenu.tsx +146 -0
- package/client/src/dashboard/W_Table/ColumnMenu/ColumnStyleControls/ColumnStyleControls.tsx +258 -0
- package/client/src/dashboard/W_Table/ColumnMenu/ColumnStyleControls/getValueColors.ts +101 -0
- package/client/src/dashboard/W_Table/ColumnMenu/ColumnsMenu.tsx +178 -0
- package/client/src/dashboard/W_Table/ColumnMenu/FunctionSelector/FunctionExtraArguments.tsx +140 -0
- package/client/src/dashboard/W_Table/ColumnMenu/FunctionSelector/FunctionSelector.tsx +89 -0
- package/client/src/dashboard/W_Table/ColumnMenu/FunctionSelector/functions.ts +438 -0
- package/client/src/dashboard/W_Table/ColumnMenu/JoinPathSelectorV2.tsx +212 -0
- package/client/src/dashboard/W_Table/ColumnMenu/LinkedColumn/LinkedColumn.tsx +295 -0
- package/client/src/dashboard/W_Table/ColumnMenu/LinkedColumn/LinkedColumnFooter.tsx +94 -0
- package/client/src/dashboard/W_Table/ColumnMenu/LinkedColumn/LinkedColumnSelect.tsx +160 -0
- package/client/src/dashboard/W_Table/ColumnMenu/NestedTimechartControls.tsx +167 -0
- package/client/src/dashboard/W_Table/ColumnMenu/SummariseColumns.tsx +126 -0
- package/client/src/dashboard/W_Table/ColumnMenu/UpdateColumnGlobalConfig.tsx +69 -0
- package/client/src/dashboard/W_Table/ColumnMenu/getNestedColumnTable.ts +83 -0
- package/client/src/dashboard/W_Table/ColumnMenu/rgba2hex.ts +36 -0
- package/client/src/dashboard/W_Table/JoinPathSelector/JoinPathItem.tsx +133 -0
- package/client/src/dashboard/W_Table/JoinPathSelector/JoinPathSelector.tsx +100 -0
- package/client/src/dashboard/W_Table/JoinPathSelector/getJoinTree.ts +79 -0
- package/client/src/dashboard/W_Table/NodeCountChecker.tsx +58 -0
- package/client/src/dashboard/W_Table/ProstglesTable.css +64 -0
- package/client/src/dashboard/W_Table/QuickFilterGroupsControl.tsx +86 -0
- package/client/src/dashboard/W_Table/RowCard.tsx +102 -0
- package/client/src/dashboard/W_Table/TableMenu/AddChartMenu.tsx +288 -0
- package/client/src/dashboard/W_Table/TableMenu/AutoRefreshMenu.tsx +118 -0
- package/client/src/dashboard/W_Table/TableMenu/TableDisplayOptionsJSON.tsx +71 -0
- package/client/src/dashboard/W_Table/TableMenu/W_TableMenu.tsx +365 -0
- package/client/src/dashboard/W_Table/TableMenu/W_TableMenu_AccessRules.tsx +127 -0
- package/client/src/dashboard/W_Table/TableMenu/W_TableMenu_Constraints.tsx +140 -0
- package/client/src/dashboard/W_Table/TableMenu/W_TableMenu_CurrentQuery.tsx +82 -0
- package/client/src/dashboard/W_Table/TableMenu/W_TableMenu_DisplayOptions.tsx +266 -0
- package/client/src/dashboard/W_Table/TableMenu/W_TableMenu_Indexes.tsx +179 -0
- package/client/src/dashboard/W_Table/TableMenu/W_TableMenu_Policies.tsx +197 -0
- package/client/src/dashboard/W_Table/TableMenu/W_TableMenu_TableInfo.tsx +184 -0
- package/client/src/dashboard/W_Table/TableMenu/W_TableMenu_Triggers.tsx +199 -0
- package/client/src/dashboard/W_Table/TableMenu/getAndFixWColumnsConfig.tsx +116 -0
- package/client/src/dashboard/W_Table/TableMenu/getChartCols.ts +153 -0
- package/client/src/dashboard/W_Table/TableMenu/getTableMeta.ts +205 -0
- package/client/src/dashboard/W_Table/TooManyColumnsWarning.tsx +72 -0
- package/client/src/dashboard/W_Table/W_Table.tsx +772 -0
- package/client/src/dashboard/W_Table/W_Table_Content.tsx +51 -0
- package/client/src/dashboard/W_Table/colorBlend.ts +75 -0
- package/client/src/dashboard/W_Table/getTableData/getTableData.ts +291 -0
- package/client/src/dashboard/W_Table/getTableData/getTableFilter.ts +66 -0
- package/client/src/dashboard/W_Table/tableUtils/StyledTableColumn.tsx +322 -0
- package/client/src/dashboard/W_Table/tableUtils/getColWInfo.ts +48 -0
- package/client/src/dashboard/W_Table/tableUtils/getColWidth.ts +160 -0
- package/client/src/dashboard/W_Table/tableUtils/getEditColumn.tsx +143 -0
- package/client/src/dashboard/W_Table/tableUtils/getFullColumnConfig.ts +43 -0
- package/client/src/dashboard/W_Table/tableUtils/getJoinPaths.ts +89 -0
- package/client/src/dashboard/W_Table/tableUtils/getRowFilter.ts +114 -0
- package/client/src/dashboard/W_Table/tableUtils/getTableCols.tsx +258 -0
- package/client/src/dashboard/W_Table/tableUtils/getTableDataRequestSignature.ts +32 -0
- package/client/src/dashboard/W_Table/tableUtils/getTableSelect.ts +235 -0
- package/client/src/dashboard/W_Table/tableUtils/kFormatter.ts +12 -0
- package/client/src/dashboard/W_Table/tableUtils/onRenderColumn.tsx +107 -0
- package/client/src/dashboard/W_Table/tableUtils/prepareColsForRender.ts +69 -0
- package/client/src/dashboard/W_Table/tableUtils/tableUtils.ts +298 -0
- package/client/src/dashboard/W_TimeChart/AddTimeChartFilter.tsx +347 -0
- package/client/src/dashboard/W_TimeChart/W_TimeChart.tsx +405 -0
- package/client/src/dashboard/W_TimeChart/W_TimeChartHeaderControls.tsx +140 -0
- package/client/src/dashboard/W_TimeChart/W_TimeChartLayerLegend.tsx +99 -0
- package/client/src/dashboard/W_TimeChart/W_TimeChartMenu.tsx +228 -0
- package/client/src/dashboard/W_TimeChart/fetchData/constants.ts +5 -0
- package/client/src/dashboard/W_TimeChart/fetchData/fetchAndSetTimechartLayerData.ts +141 -0
- package/client/src/dashboard/W_TimeChart/fetchData/fetchTimechartLayer.ts +291 -0
- package/client/src/dashboard/W_TimeChart/fetchData/getTimeChartData.ts +163 -0
- package/client/src/dashboard/W_TimeChart/fetchData/getTimeChartLayers.ts +137 -0
- package/client/src/dashboard/W_TimeChart/fetchData/getTimeChartLayersWithBins.ts +296 -0
- package/client/src/dashboard/W_TimeChart/fetchData/getTimeChartSelectParams.ts +41 -0
- package/client/src/dashboard/W_TimeChart/fetchData/getTimeLayerDataSignature.ts +22 -0
- package/client/src/dashboard/W_TimeChart/fetchData/getTimechartExtentFilter.ts +48 -0
- package/client/src/dashboard/Window/ChildWindowLayout.tsx +149 -0
- package/client/src/dashboard/Window/Window.tsx +322 -0
- package/client/src/dashboard/WindowControls/AddChartLayer.tsx +142 -0
- package/client/src/dashboard/WindowControls/ColorByLegend/ColorByLegend.tsx +256 -0
- package/client/src/dashboard/WindowControls/ColorByLegend/getGroupByValueColor.ts +50 -0
- package/client/src/dashboard/WindowControls/DataLayerManager/DataLayer.tsx +182 -0
- package/client/src/dashboard/WindowControls/DataLayerManager/DataLayerDataSource.tsx +243 -0
- package/client/src/dashboard/WindowControls/DataLayerManager/DataLayerManager.tsx +157 -0
- package/client/src/dashboard/WindowControls/DataLayerManager/LayerColorPicker.tsx +56 -0
- package/client/src/dashboard/WindowControls/DataLayerManager/MapLayerStyling.tsx +192 -0
- package/client/src/dashboard/WindowControls/DataLayerManager/useSortedLayerQueries.ts +34 -0
- package/client/src/dashboard/WindowControls/OSMLayerOptions.tsx +62 -0
- package/client/src/dashboard/WindowControls/SQLChartLayerEditor.tsx +38 -0
- package/client/src/dashboard/WindowControls/TimeChartLayerOptions.tsx +336 -0
- package/client/src/dashboard/WorkspaceMenu/WorkspaceAddBtn.tsx +104 -0
- package/client/src/dashboard/WorkspaceMenu/WorkspaceDeleteBtn.tsx +87 -0
- package/client/src/dashboard/WorkspaceMenu/WorkspaceMenu.css +13 -0
- package/client/src/dashboard/WorkspaceMenu/WorkspaceMenu.tsx +124 -0
- package/client/src/dashboard/WorkspaceMenu/WorkspaceMenuDropDown.tsx +178 -0
- package/client/src/dashboard/WorkspaceMenu/WorkspaceSettings.tsx +99 -0
- package/client/src/dashboard/WorkspaceMenu/useWorkspaces.ts +78 -0
- package/client/src/dashboard/getCrossFilters.ts +251 -0
- package/client/src/dashboard/localSettings.ts +94 -0
- package/client/src/dashboard/setPan.ts +358 -0
- package/client/src/dashboard/shortestPath.ts +137 -0
- package/client/src/demo/AppVideoDemo.tsx +132 -0
- package/client/src/demo/MousePointer.tsx +39 -0
- package/client/src/demo/demoUtils.ts +214 -0
- package/client/src/demo/recordDemoUtils.ts +87 -0
- package/client/src/demo/scripts/AIAssistantDemo.ts +60 -0
- package/client/src/demo/scripts/accessControlDemo.ts +44 -0
- package/client/src/demo/scripts/backupDemo.ts +50 -0
- package/client/src/demo/scripts/dashboardDemo.ts +215 -0
- package/client/src/demo/scripts/fileDemo.ts +24 -0
- package/client/src/demo/scripts/schemaDiagramDemo.ts +13 -0
- package/client/src/demo/scripts/sqlVideoDemo.ts +539 -0
- package/client/src/demo/scripts/videoDemoAccessControlScripts.ts +245 -0
- package/client/src/exports.ts +15 -0
- package/client/src/hooks/createStore.ts +24 -0
- package/client/src/hooks/useDebouncedCallback.ts +27 -0
- package/client/src/hooks/useThrottledCallback.ts +41 -0
- package/client/src/hooks/useTypedSearchParams.ts +81 -0
- package/client/src/i18n/LanguageSelector.tsx +33 -0
- package/client/src/i18n/i18nUtils.ts +187 -0
- package/client/src/i18n/translations/de.json +453 -0
- package/client/src/i18n/translations/es.json +425 -0
- package/client/src/i18n/translations/fr.json +425 -0
- package/client/src/i18n/translations/hi.json +431 -0
- package/client/src/i18n/translations/ru.json +431 -0
- package/client/src/i18n/translations/translations.ts +477 -0
- package/client/src/i18n/translations/zh.json +423 -0
- package/client/src/index.css +57 -0
- package/client/src/index.html.ejs +37 -0
- package/client/src/index.tsx +17 -0
- package/client/src/pages/Account/Account.tsx +150 -0
- package/client/src/pages/Account/ChangePassword.tsx +96 -0
- package/client/src/pages/Account/Sessions.tsx +248 -0
- package/client/src/pages/Account/Setup2FA.tsx +244 -0
- package/client/src/pages/AccountMenu.tsx +146 -0
- package/client/src/pages/Alerts.tsx +182 -0
- package/client/src/pages/AppContextProvider.tsx +26 -0
- package/client/src/pages/ComponentList.tsx +108 -0
- package/client/src/pages/ElectronSetup/ElectronSetup.tsx +122 -0
- package/client/src/pages/ElectronSetup/ElectronSetupStateDB.tsx +141 -0
- package/client/src/pages/ElectronSetup/useElectronSetup.ts +147 -0
- package/client/src/pages/Login/AuthNotifPopup.tsx +37 -0
- package/client/src/pages/Login/Login.tsx +133 -0
- package/client/src/pages/Login/LoginTotpForm.tsx +72 -0
- package/client/src/pages/Login/LoginWithProviders.tsx +62 -0
- package/client/src/pages/Login/SocialIcons.css +4 -0
- package/client/src/pages/Login/SocialIcons.tsx +85 -0
- package/client/src/pages/NewConnection/NewConnectionForm.tsx +572 -0
- package/client/src/pages/NewConnection/NewConnectionFormFields.tsx +314 -0
- package/client/src/pages/NewConnection/NewConnectionFormOptions.tsx +194 -0
- package/client/src/pages/NewConnection/SchemaFilter.tsx +87 -0
- package/client/src/pages/NewConnection/newConnectionUtils.ts +50 -0
- package/client/src/pages/NonHTTPSWarning.tsx +51 -0
- package/client/src/pages/NotFound.tsx +22 -0
- package/client/src/pages/ProjectConnection/PrglContextProvider.tsx +47 -0
- package/client/src/pages/ProjectConnection/ProjectConnection.tsx +110 -0
- package/client/src/pages/ProjectConnection/ProjectConnectionError.tsx +76 -0
- package/client/src/pages/ProjectConnection/useProjectDb.ts +253 -0
- package/client/src/pages/ProjectLogs.tsx +227 -0
- package/client/src/pages/ServerSettings/AuthProvidersSetup/AuthProvidersSetup.tsx +199 -0
- package/client/src/pages/ServerSettings/AuthProvidersSetup/useProviderProps.ts +39 -0
- package/client/src/pages/ServerSettings/EmailAuthSetup.tsx +209 -0
- package/client/src/pages/ServerSettings/EmailAuthSetupIngredients/EmailSMTPAndTemplateSetup.tsx +158 -0
- package/client/src/pages/ServerSettings/EmailAuthSetupIngredients/EmailSMTPSetup.tsx +128 -0
- package/client/src/pages/ServerSettings/EmailAuthSetupIngredients/EmailTemplateSetup.tsx +111 -0
- package/client/src/pages/ServerSettings/MCPServers/MCPServerConfig/CustomConfigComponents/McpServerOAuthConfig.tsx +41 -0
- package/client/src/pages/ServerSettings/MCPServers/MCPServerConfig/CustomConfigComponents/McpServerOAuthConfigActions.tsx +187 -0
- package/client/src/pages/ServerSettings/MCPServers/MCPServerConfig/CustomConfigComponents/McpServerOAuthConfigAuthorizeUrlBtn.tsx +55 -0
- package/client/src/pages/ServerSettings/MCPServers/MCPServerConfig/CustomConfigComponents/McpServerOAuthConfigCredentials.tsx +81 -0
- package/client/src/pages/ServerSettings/MCPServers/MCPServerConfig/CustomConfigComponents/McpServerOAuthConfigTopControls.tsx +120 -0
- package/client/src/pages/ServerSettings/MCPServers/MCPServerConfig/CustomConfigComponents/WebMcpConfig.tsx +162 -0
- package/client/src/pages/ServerSettings/MCPServers/MCPServerConfig/CustomConfigComponents/useMcpServerOAuthConfigState.ts +132 -0
- package/client/src/pages/ServerSettings/MCPServers/MCPServerConfig/MCPServerConfigButton.tsx +121 -0
- package/client/src/pages/ServerSettings/MCPServers/MCPServerConfig/MCPServerConfigEditor.tsx +206 -0
- package/client/src/pages/ServerSettings/MCPServers/MCPServerConfig/MCPServerConfigProvider.tsx +67 -0
- package/client/src/pages/ServerSettings/MCPServers/MCPServerConfig/useMCPServerConfigState.tsx +107 -0
- package/client/src/pages/ServerSettings/MCPServers/MCPServerConfig/useMCPServerEnable.ts +131 -0
- package/client/src/pages/ServerSettings/MCPServers/MCPServerFooterActions/MCPServerFooterActions.tsx +108 -0
- package/client/src/pages/ServerSettings/MCPServers/MCPServerFooterActions/MCPServerLogs.tsx +46 -0
- package/client/src/pages/ServerSettings/MCPServers/MCPServerFooterActions/MCPServersInstall.tsx +81 -0
- package/client/src/pages/ServerSettings/MCPServers/MCPServerHeaderCheckbox.tsx +120 -0
- package/client/src/pages/ServerSettings/MCPServers/MCPServerTools/MCPServerTools.tsx +95 -0
- package/client/src/pages/ServerSettings/MCPServers/MCPServerTools/MCPServerToolsGroupToggle.tsx +96 -0
- package/client/src/pages/ServerSettings/MCPServers/MCPServerTools/useMcpServerIcons.ts +87 -0
- package/client/src/pages/ServerSettings/MCPServers/MCPServerTools/useMcpToolsSelectOptions.tsx +33 -0
- package/client/src/pages/ServerSettings/MCPServers/MCPServers.tsx +140 -0
- package/client/src/pages/ServerSettings/MCPServers/MCPServersHeader.tsx +47 -0
- package/client/src/pages/ServerSettings/MCPServers/MCPServersToolbar/AddMCPServer.tsx +196 -0
- package/client/src/pages/ServerSettings/MCPServers/MCPServersToolbar/MCPServersToolbar.tsx +77 -0
- package/client/src/pages/ServerSettings/MCPServers/MCPServersToolbar/useAddMCPServer.ts +253 -0
- package/client/src/pages/ServerSettings/MCPServers/useMCPChatAllowedTools.ts +25 -0
- package/client/src/pages/ServerSettings/MCPServers/useMCPServersListProps.tsx +118 -0
- package/client/src/pages/ServerSettings/OAuthProviderSetup.tsx +258 -0
- package/client/src/pages/ServerSettings/SecuritySettings.tsx +154 -0
- package/client/src/pages/ServerSettings/ServerSettings.tsx +151 -0
- package/client/src/pages/ServerSettings/Services.tsx +231 -0
- package/client/src/pages/ServerSettings/useEditableData.ts +55 -0
- package/client/src/pages/TopControls.tsx +182 -0
- package/client/src/pages/projectUtils.ts +0 -0
- package/client/src/theme/ThemeSelector.tsx +36 -0
- package/client/src/theme/useAppTheme.ts +47 -0
- package/client/src/theme/useSystemTheme.ts +23 -0
- package/client/src/useAppState/PrglCoreContextProvider.tsx +76 -0
- package/client/src/useAppState/useAppState.ts +92 -0
- package/client/src/useAppState/useDBSClient.ts +104 -0
- package/client/src/useAppState/useServerState.ts +62 -0
- package/client/src/useAppState/useUserData.ts +1 -0
- package/client/src/utils/colorUtils.ts +48 -0
- package/client/src/utils/hashCode.ts +52 -0
- package/client/src/utils/utils.ts +207 -0
- package/client/static/favicon-32x32.png +0 -0
- package/client/static/logos/anthropic.svg +3 -0
- package/client/static/logos/google.svg +25 -0
- package/client/static/logos/ollama.svg +7 -0
- package/client/static/logos/openai.svg +2 -0
- package/client/static/logos/openrouter.svg +1 -0
- package/client/static/mcp-oauth-close.js +5 -0
- package/client/static/prostgles-logo.svg +39 -0
- package/client/static/util.css +2024 -0
- package/client/static/v2.svg +25 -0
- package/client/tsconfig.eslint.json +5 -0
- package/client/tsconfig.json +40 -0
- package/client/tslint.json +5 -0
- package/common/DBGeneratedSchema.ts +953 -0
- package/common/DashboardTypes.ts +533 -0
- package/common/KeyObjMap.ts +100 -0
- package/common/OAuthUtils.ts +285 -0
- package/common/authTypesAndConstants.ts +1 -0
- package/common/columnDisplayFormat.schema.ts +211 -0
- package/common/electronInitTypes.ts +56 -0
- package/common/filterUtils.ts +491 -0
- package/common/getJsonSchemaAsTs.ts +335 -0
- package/common/llmUtils.ts +133 -0
- package/common/managedTableSchema.ts +38 -0
- package/common/mcp/databaseAccessSchema.ts +70 -0
- package/common/mcp/db.mcp.schema.ts +280 -0
- package/common/mcp/documents.mcp.schema.ts +45 -0
- package/common/mcp/documentsServiceInputSchema.ts +129 -0
- package/common/mcp/runCodeInSandboxSchema.ts +85 -0
- package/common/mcp/startAgenticWorkflowSchema.ts +180 -0
- package/common/mcp/tableOptionsJsonbSchema.ts +151 -0
- package/common/mcp/tablePermissionsSchema.ts +101 -0
- package/common/mcp/ui.mcp.schema.ts +496 -0
- package/common/mcp/userInputSchema.ts +87 -0
- package/common/mcp/web.mcp.schema.ts +245 -0
- package/common/mcp/webdev.mcp.schema.ts +138 -0
- package/common/mcpUtils.ts +75 -0
- package/common/prostglesApiTypes.ts +551 -0
- package/common/prostglesMcp.ts +35 -0
- package/common/psql_queries.json +657 -0
- package/common/publishUtils.ts +600 -0
- package/common/tsconfig.json +22 -0
- package/common/utils.ts +525 -0
- package/docker-compose.yml +99 -0
- package/docs/01_Overview.md +25 -0
- package/docs/02_Installation_(Docker).md +37 -0
- package/docs/03_Installation_(Desktop_Version).md +27 -0
- package/docs/04_Navigation_bar.md +37 -0
- package/docs/05_Connections.md +108 -0
- package/docs/06_Connection_dashboard.md +58 -0
- package/docs/07_Import_file.md +15 -0
- package/docs/08_Agentic_workflows.md +27 -0
- package/docs/09_Schema_diagram.md +63 -0
- package/docs/10_SQL_editor.md +69 -0
- package/docs/11_Table_view.md +188 -0
- package/docs/12_Map_view.md +56 -0
- package/docs/13_Timechart_view.md +49 -0
- package/docs/14_AI_Assistant.md +64 -0
- package/docs/15_Connection_configuration.md +20 -0
- package/docs/16_Access_control.md +12 -0
- package/docs/17_File_storage.md +8 -0
- package/docs/18_Backup_and_Restore.md +22 -0
- package/docs/19_API.md +20 -0
- package/docs/20_Server_Settings.md +28 -0
- package/docs/21_Account.md +21 -0
- package/docs/22_Command_Palette.md +10 -0
- package/docs/screenshots/table_timechart.dark.svgif.svg +375 -0
- package/docs/screenshots/table_timechart.svgif.svg +1102 -0
- package/docs/screenshots/timechart.dark.svgif.svg +221 -0
- package/docs/screenshots/timechart.svgif.svg +846 -0
- package/e2e/icon512.png +0 -0
- package/e2e/package-lock.json +401 -0
- package/e2e/package.json +31 -0
- package/e2e/playwright.config.js +65 -0
- package/e2e/playwright.config.ts +32 -0
- package/e2e/test-local.sh +5 -0
- package/e2e/tests/Testing.ts +724 -0
- package/e2e/tests/command_palette.spec.ts +114 -0
- package/e2e/tests/configTest/.env.example +10 -0
- package/e2e/tests/configTest/constants.ts +13 -0
- package/e2e/tests/configTest/functions.ts +14 -0
- package/e2e/tests/configTest/index.ts +84 -0
- package/e2e/tests/configTest/package.json +17 -0
- package/e2e/tests/configTest/tsconfig.json +13 -0
- package/e2e/tests/config_deploy.spec.ts +386 -0
- package/e2e/tests/create_docs.spec.ts +231 -0
- package/e2e/tests/create_load_test_users.spec.ts +47 -0
- package/e2e/tests/demo_video.spec.ts +139 -0
- package/e2e/tests/demo_video_setup.spec.ts +118 -0
- package/e2e/tests/fileBrowserGoToPath.ts +53 -0
- package/e2e/tests/load_test.spec.ts +53 -0
- package/e2e/tests/main.spec.ts +3820 -0
- package/e2e/tests/mockSMTPServer.ts +81 -0
- package/e2e/tests/saveDocs.ts +55 -0
- package/e2e/tests/svgScreenshots/SVG_SCREENSHOT_DETAILS.ts +132 -0
- package/e2e/tests/svgScreenshots/account.svgif.ts +14 -0
- package/e2e/tests/svgScreenshots/aiAssistant.svgif.ts +235 -0
- package/e2e/tests/svgScreenshots/aiAssistantAgenticWorkflow.svgif.ts +339 -0
- package/e2e/tests/svgScreenshots/aiAssistantAgenticWorkflowGovApi.svgif.ts +116 -0
- package/e2e/tests/svgScreenshots/backupAndRestore.svgif.ts +143 -0
- package/e2e/tests/svgScreenshots/commandPalette.svgif.ts +69 -0
- package/e2e/tests/svgScreenshots/dashboard.svgif.ts +271 -0
- package/e2e/tests/svgScreenshots/electronSetup.svgif.ts +32 -0
- package/e2e/tests/svgScreenshots/fileImporter.svgif.ts +39 -0
- package/e2e/tests/svgScreenshots/getOverviewSvgifSpecs.svgif.ts +288 -0
- package/e2e/tests/svgScreenshots/map.svgif.ts +50 -0
- package/e2e/tests/svgScreenshots/navbar.svgif.ts +22 -0
- package/e2e/tests/svgScreenshots/newConnection.svgif.ts +26 -0
- package/e2e/tests/svgScreenshots/schemaDiagram.svgif.ts +82 -0
- package/e2e/tests/svgScreenshots/sqlEditor.svgif.ts +348 -0
- package/e2e/tests/svgScreenshots/table.svgif.ts +167 -0
- package/e2e/tests/svgScreenshots/tableTimechart.svgif.ts +507 -0
- package/e2e/tests/svgScreenshots/timechart.svgif.ts +138 -0
- package/e2e/tests/svgScreenshots/utils/constants.ts +23 -0
- package/e2e/tests/svgScreenshots/utils/dedent.ts +9 -0
- package/e2e/tests/svgScreenshots/utils/getFilesFromDir.ts +30 -0
- package/e2e/tests/svgScreenshots/utils/getSceneUtils.ts +200 -0
- package/e2e/tests/svgScreenshots/utils/removeOtherElements.ts +26 -0
- package/e2e/tests/svgScreenshots/utils/saveSVGScreenshot.ts +67 -0
- package/e2e/tests/svgScreenshots/utils/saveSVGifs.ts +74 -0
- package/e2e/tests/svgScreenshots/utils/saveSVGs.ts +61 -0
- package/e2e/tests/svgScreenshots/utils/startScreencast.ts +118 -0
- package/e2e/tests/svgScreenshots/utils/svgScreenshotsCompleteReferenced.ts +98 -0
- package/e2e/tests/svgScreenshots/utils/svgifToWebm.ts +196 -0
- package/e2e/tests/svgScreenshots/utils/typeSendAddScenes.ts +86 -0
- package/e2e/tests/testAskLLM/agenticWorkflowToolUses.ts +294 -0
- package/e2e/tests/testAskLLM/createComponentToolUse.ts +49 -0
- package/e2e/tests/testAskLLM/createReceipts.ts +183 -0
- package/e2e/tests/testAskLLM/getAskUserToolUse.ts +36 -0
- package/e2e/tests/testAskLLM/hello.mp3 +0 -0
- package/e2e/tests/testAskLLM/mcpSandboxToolUse.ts +64 -0
- package/e2e/tests/testAskLLM/mockRemoteMcp/Dockerfile +32 -0
- package/e2e/tests/testAskLLM/mockRemoteMcp/package-lock.json +2120 -0
- package/e2e/tests/testAskLLM/mockRemoteMcp/package.json +20 -0
- package/e2e/tests/testAskLLM/mockRemoteMcp/server.ts +144 -0
- package/e2e/tests/testAskLLM/mockRemoteMcp/start-mock-mcp.sh +93 -0
- package/e2e/tests/testAskLLM/sample.pdf +35 -0
- package/e2e/tests/testAskLLM/sampleToolUseData.ts +1413 -0
- package/e2e/tests/testAskLLM/scenarios/geoQuestion.scenario.ts +110 -0
- package/e2e/tests/testAskLLM/scenarios/hygieneRatingsApi.scenario.ts +62 -0
- package/e2e/tests/testAskLLM/scenarios/receiptImport/receiptImport.scenario.ts +53 -0
- package/e2e/tests/testAskLLM/speechToTextTest.ts +101 -0
- package/e2e/tests/testAskLLM/stringify.ts +1 -0
- package/e2e/tests/testAskLLM/testAskLLM.ts +558 -0
- package/e2e/tests/testAskLLM/utils.ts +34 -0
- package/e2e/tests/tsconfig.json +16 -0
- package/e2e/tests/utils/constants.ts +22 -0
- package/e2e/tests/utils/goTo.ts +87 -0
- package/e2e/tests/utils/isPortFree.ts +19 -0
- package/e2e/tests/utils/utils.ts +1319 -0
- package/e2e/tsconfig.json +5 -0
- package/electron/README.md +34 -0
- package/electron/build.sh +74 -0
- package/electron/e2e-electron/electron.spec.tsx +214 -0
- package/electron/e2e-electron/tsconfig.json +10 -0
- package/electron/forge.config.js +26 -0
- package/electron/getProtocolHandler.ts +41 -0
- package/electron/handleErrors.ts +25 -0
- package/electron/icon512.png +0 -0
- package/electron/image.ico +0 -0
- package/electron/images/generate_from_svg.sh +13 -0
- package/electron/images/icon.ico +0 -0
- package/electron/images/icon512.png +0 -0
- package/electron/images/icon512notpadded.png +0 -0
- package/electron/images/loading-effect.css +43 -0
- package/electron/images/prostgles-logo-rounded.svg +46 -0
- package/electron/images/prostgles-logo.svg +39 -0
- package/electron/images/rounded/256x256.png +0 -0
- package/electron/images/rounded/512.png +0 -0
- package/electron/images/rounded/512x512.png +0 -0
- package/electron/images/rounded/64x64.png +0 -0
- package/electron/images/rounded/icon512.png +0 -0
- package/electron/loadingHTML.ts +70 -0
- package/electron/main.ts +125 -0
- package/electron/mainWindow.ts +155 -0
- package/electron/package-lock.json +3916 -0
- package/electron/package.json +111 -0
- package/electron/playwright.config.ts +17 -0
- package/electron/screenCapture.bat +275 -0
- package/electron/scripts/patch-builder.mjs +25 -0
- package/electron/setContextMenu.ts +56 -0
- package/electron/start.sh +10 -0
- package/electron/test-linux-macos.sh +1 -0
- package/electron/test-linux.sh +2 -0
- package/electron/test-setup.js +8 -0
- package/electron/test-w-debug.sh +1 -0
- package/electron/test.sh +1 -0
- package/electron/tsconfig.json +22 -0
- package/electron/win-inno-setup.ts +100 -0
- package/electron/win.js +3 -0
- package/package.json +33 -0
- package/releases/v1.0.0.md +5 -0
- package/releases/v2.0.0.md +25 -0
- package/releases/v2.2.2.md +13 -0
- package/releases/v2.2.3.md +1 -0
- package/releases/v2.2.4.md +1 -0
- package/releases/v2.2.5.md +1 -0
- package/releases/v2.3.1.md +5 -0
- package/releases/v2.3.5.md +7 -0
- package/scripts/check_release_ready.sh +53 -0
- package/scripts/demo/record-local.sh +13 -0
- package/scripts/demo/split-video.sh +6 -0
- package/scripts/get_version.sh +11 -0
- package/scripts/npm_publish_dev.sh +6 -0
- package/scripts/release.sh +35 -0
- package/scripts/start-dev-electron.sh +14 -0
- package/scripts/start-dev.sh +18 -0
- package/scripts/start-prod.sh +5 -0
- package/scripts/test.sh +62 -0
- package/scripts/update_docker_image_versions.sh +28 -0
- package/server/.vscode/settings.json +3 -0
- package/server/eslint.config.mjs +83 -0
- package/server/licenses.json +3821 -0
- package/server/package-lock.json +7252 -0
- package/server/package.json +84 -0
- package/server/sample_schemas/_crypto.sql +95 -0
- package/server/sample_schemas/cleaning.sql +49 -0
- package/server/sample_schemas/cloud_computing.sql +63 -0
- package/server/sample_schemas/countries.sql +29 -0
- package/server/sample_schemas/crypto/index.ts +3 -0
- package/server/sample_schemas/crypto/onMount.ts +802 -0
- package/server/sample_schemas/crypto/package.json +7 -0
- package/server/sample_schemas/crypto/tableConfig.ts +80 -0
- package/server/sample_schemas/crypto/tsconfig.json +12 -0
- package/server/sample_schemas/crypto/workspaceConfig.ts +261 -0
- package/server/sample_schemas/financial.sql +49 -0
- package/server/sample_schemas/food_delivery/connection.ts +1007 -0
- package/server/sample_schemas/food_delivery/databaseConfig.ts +116 -0
- package/server/sample_schemas/food_delivery/index.ts +8 -0
- package/server/sample_schemas/food_delivery/onInit.sql +1507 -0
- package/server/sample_schemas/food_delivery/onMount.ts +149 -0
- package/server/sample_schemas/food_delivery/package.json +4 -0
- package/server/sample_schemas/food_delivery/tsconfig.json +16 -0
- package/server/sample_schemas/food_delivery/workspaceConfig.ts +53 -0
- package/server/sample_schemas/lodging.sql +48 -0
- package/server/sample_schemas/maps.sql +73 -0
- package/server/sample_schemas/property_management/index.ts +2 -0
- package/server/sample_schemas/property_management/onMount.ts +55 -0
- package/server/sample_schemas/property_management/package.json +4 -0
- package/server/sample_schemas/property_management/tsconfig.json +16 -0
- package/server/sample_schemas/property_management/workspaceConfig.ts +92 -0
- package/server/sample_schemas/sales.sql +51 -0
- package/server/sample_schemas/sample.sql +72 -0
- package/server/sample_schemas/testschema.ts +21 -0
- package/server/sample_schemas/weather/index.ts +1 -0
- package/server/sample_schemas/weather/onMount.ts +284 -0
- package/server/sample_schemas/weather/package.json +4 -0
- package/server/sample_schemas/weather/tsconfig.json +16 -0
- package/server/scripts/preparePackage.mjs +18 -0
- package/server/src/BackupManager/BackupManager.ts +297 -0
- package/server/src/BackupManager/checkAutomaticBackup.ts +143 -0
- package/server/src/BackupManager/getInstalledPrograms.ts +203 -0
- package/server/src/BackupManager/pgDump.ts +242 -0
- package/server/src/BackupManager/pgRestore.ts +238 -0
- package/server/src/BackupManager/pipeFromCommand.ts +94 -0
- package/server/src/BackupManager/pipeToCommand.ts +66 -0
- package/server/src/BackupManager/utils.ts +124 -0
- package/server/src/ConnectionManager/ConnectionManager.ts +613 -0
- package/server/src/ConnectionManager/applyStartupSchemaConfig.ts +95 -0
- package/server/src/ConnectionManager/connectionManagerUtils.ts +164 -0
- package/server/src/ConnectionManager/connectionOnReady.ts +76 -0
- package/server/src/ConnectionManager/dbsConnectionOptions.ts +109 -0
- package/server/src/ConnectionManager/getConnectionAuth.ts +37 -0
- package/server/src/ConnectionManager/getConnectionHttpServer.ts +112 -0
- package/server/src/ConnectionManager/getConnectionPublish.ts +119 -0
- package/server/src/ConnectionManager/getConnectionServerFunctions.ts +108 -0
- package/server/src/ConnectionManager/getConnectionSocketPath.ts +12 -0
- package/server/src/ConnectionManager/getHotReloadConfigs.ts +161 -0
- package/server/src/ConnectionManager/getInitiatedPostgresqlPIDs.ts +84 -0
- package/server/src/ConnectionManager/getSchemaConfig.ts +84 -0
- package/server/src/ConnectionManager/initConnectionManager.ts +147 -0
- package/server/src/ConnectionManager/modifyClientSchema.ts +146 -0
- package/server/src/ConnectionManager/parseTableConfig.ts +231 -0
- package/server/src/ConnectionManager/saveCertificates.ts +68 -0
- package/server/src/ConnectionManager/startConnection.ts +353 -0
- package/server/src/ConnectionManager/startConnectionOnRequestHandler.ts +63 -0
- package/server/src/ConnectionManager/syncSchemaConfig.ts +98 -0
- package/server/src/Logger.ts +150 -0
- package/server/src/McpHub/AnthropicMcpHub/McpHub.ts +144 -0
- package/server/src/McpHub/AnthropicMcpHub/McpOAuth/authenticateMcpServer.ts +98 -0
- package/server/src/McpHub/AnthropicMcpHub/McpOAuth/connectToRemoteMCPServer.ts +176 -0
- package/server/src/McpHub/AnthropicMcpHub/McpOAuth/createMcpOAuthProvider.ts +257 -0
- package/server/src/McpHub/AnthropicMcpHub/McpOAuth/getMcpOAuthMetadata.ts +112 -0
- package/server/src/McpHub/AnthropicMcpHub/McpOAuth/getRemoteMcpServerParameters.ts +82 -0
- package/server/src/McpHub/AnthropicMcpHub/McpOAuth/saveServerInfo.ts +76 -0
- package/server/src/McpHub/AnthropicMcpHub/McpOAuth/updateRemoteMcpAuthorizationCode.ts +100 -0
- package/server/src/McpHub/AnthropicMcpHub/McpTypes.ts +189 -0
- package/server/src/McpHub/AnthropicMcpHub/connectToMCPServer.ts +132 -0
- package/server/src/McpHub/AnthropicMcpHub/createMcpServerHandlers.ts +116 -0
- package/server/src/McpHub/AnthropicMcpHub/installMCPServer.ts +195 -0
- package/server/src/McpHub/AnthropicMcpHub/runShellCommand.ts +53 -0
- package/server/src/McpHub/AnthropicMcpHub/startMcpHub.ts +111 -0
- package/server/src/McpHub/DefaultMCPServers/DefaultMCPServers.ts +153 -0
- package/server/src/McpHub/DefaultMCPServers/mcpGithub.ts +968 -0
- package/server/src/McpHub/DockerSandbox/createBridgeInternalDockerNetwork.ts +35 -0
- package/server/src/McpHub/DockerSandbox/createContainer.spec.ts +195 -0
- package/server/src/McpHub/DockerSandbox/createContainer.ts +125 -0
- package/server/src/McpHub/DockerSandbox/dockerMCPServerProxy/dockerContainerAuthRegistry.ts +150 -0
- package/server/src/McpHub/DockerSandbox/dockerMCPServerProxy/dockerMCPServerProxy.ts +395 -0
- package/server/src/McpHub/DockerSandbox/dockerMCPServerProxy/getDockerGatewayIP.ts +27 -0
- package/server/src/McpHub/DockerSandbox/executeDockerCommand.ts +152 -0
- package/server/src/McpHub/DockerSandbox/getContainerLogs.ts +17 -0
- package/server/src/McpHub/DockerSandbox/getDockerRunArgs.ts +114 -0
- package/server/src/McpHub/DockerSandbox/runContainerWithProxyAccess.ts +99 -0
- package/server/src/McpHub/ProstglesMcpHub/ProstglesMCPServerTypes.ts +143 -0
- package/server/src/McpHub/ProstglesMcpHub/ProstglesMCPServers/Db.mcp.ts +281 -0
- package/server/src/McpHub/ProstglesMcpHub/ProstglesMCPServers/Documents.mcp.ts +89 -0
- package/server/src/McpHub/ProstglesMcpHub/ProstglesMCPServers/Prostgles/agenticWorkflow/createAgenticWorkflow.ts +247 -0
- package/server/src/McpHub/ProstglesMcpHub/ProstglesMCPServers/Prostgles/agenticWorkflow/definitionValidation/assertTablesExistInFutureSchema.ts +14 -0
- package/server/src/McpHub/ProstglesMcpHub/ProstglesMCPServers/Prostgles/agenticWorkflow/definitionValidation/getValidatedMcpServerToolsAllowed.ts +155 -0
- package/server/src/McpHub/ProstglesMcpHub/ProstglesMCPServers/Prostgles/agenticWorkflow/definitionValidation/parseDDLStatements.ts +84 -0
- package/server/src/McpHub/ProstglesMcpHub/ProstglesMCPServers/Prostgles/agenticWorkflow/definitionValidation/quoteIdent.ts +139 -0
- package/server/src/McpHub/ProstglesMcpHub/ProstglesMCPServers/Prostgles/agenticWorkflow/definitionValidation/validateAgenticWorkflowDefinitions.ts +102 -0
- package/server/src/McpHub/ProstglesMcpHub/ProstglesMCPServers/Prostgles/agenticWorkflow/definitionValidation/validateDatabaseAccessDefinitions.ts +212 -0
- package/server/src/McpHub/ProstglesMcpHub/ProstglesMCPServers/Prostgles/agenticWorkflow/definitionValidation/validateUserInput.ts +159 -0
- package/server/src/McpHub/ProstglesMcpHub/ProstglesMCPServers/Prostgles/agenticWorkflow/definitionValidation/validateUserInputDefinitions.ts +36 -0
- package/server/src/McpHub/ProstglesMcpHub/ProstglesMCPServers/Prostgles/agenticWorkflow/execution/getVolumesFromUserInput.ts +134 -0
- package/server/src/McpHub/ProstglesMcpHub/ProstglesMCPServers/Prostgles/agenticWorkflow/execution/startAgenticWorkflowContainer.ts +341 -0
- package/server/src/McpHub/ProstglesMcpHub/ProstglesMCPServers/Prostgles/agenticWorkflow/proxyHandlers/createWorkflowExecutionHandlers.ts +155 -0
- package/server/src/McpHub/ProstglesMcpHub/ProstglesMCPServers/Prostgles/agenticWorkflow/proxyHandlers/getAgentConfigWithDefaults.ts +96 -0
- package/server/src/McpHub/ProstglesMcpHub/ProstglesMCPServers/Prostgles/agenticWorkflow/proxyHandlers/setupOrchestrationToolPermissions.ts +64 -0
- package/server/src/McpHub/ProstglesMcpHub/ProstglesMCPServers/Prostgles/agenticWorkflow/runtimeSdk/addInstrumentationToTsLogic.ts +350 -0
- package/server/src/McpHub/ProstglesMcpHub/ProstglesMCPServers/Prostgles/agenticWorkflow/runtimeSdk/callWorkflowProxy.ts +99 -0
- package/server/src/McpHub/ProstglesMcpHub/ProstglesMCPServers/Prostgles/agenticWorkflow/runtimeSdk/defineAgenticWorkflow.spec.ts +110 -0
- package/server/src/McpHub/ProstglesMcpHub/ProstglesMCPServers/Prostgles/agenticWorkflow/runtimeSdk/defineAgenticWorkflow.ts +576 -0
- package/server/src/McpHub/ProstglesMcpHub/ProstglesMCPServers/Prostgles/agenticWorkflow/runtimeSdk/defineAgenticWorkflowHandlers.ts +127 -0
- package/server/src/McpHub/ProstglesMcpHub/ProstglesMCPServers/Prostgles/agenticWorkflow/runtimeSdk/defineAgenticWorkflowHandlers.types.ts +72 -0
- package/server/src/McpHub/ProstglesMcpHub/ProstglesMCPServers/Prostgles/agenticWorkflow/runtimeSdk/definitionHandler.ts +104 -0
- package/server/src/McpHub/ProstglesMcpHub/ProstglesMCPServers/Prostgles/agenticWorkflow/runtimeSdk/ensureWorkflowIsExecuted.ts +53 -0
- package/server/src/McpHub/ProstglesMcpHub/ProstglesMCPServers/Prostgles/agenticWorkflow/runtimeSdk/getTsLogicSummary.ts +639 -0
- package/server/src/McpHub/ProstglesMcpHub/ProstglesMCPServers/Prostgles/agenticWorkflow/runtimeSdk/orchestrationToolHandlers.ts +55 -0
- package/server/src/McpHub/ProstglesMcpHub/ProstglesMCPServers/Prostgles/agenticWorkflow/runtimeSdk/tableHandlers.ts +108 -0
- package/server/src/McpHub/ProstglesMcpHub/ProstglesMCPServers/Prostgles/agenticWorkflow/runtimeSetup/getAgenticWorkflowDockerCoreFiles.spec.ts +26 -0
- package/server/src/McpHub/ProstglesMcpHub/ProstglesMCPServers/Prostgles/agenticWorkflow/runtimeSetup/getAgenticWorkflowDockerCoreFiles.ts +225 -0
- package/server/src/McpHub/ProstglesMcpHub/ProstglesMCPServers/Prostgles/agenticWorkflow/runtimeSetup/getDefineAgenticWorkflowTsWithDbAndMcpTypes.ts +187 -0
- package/server/src/McpHub/ProstglesMcpHub/ProstglesMCPServers/Prostgles/agenticWorkflow/runtimeSetup/getOrchestrationContainerFiles.ts +31 -0
- package/server/src/McpHub/ProstglesMcpHub/ProstglesMCPServers/Prostgles/agenticWorkflow/runtimeSetup/getToolTypescriptSchemas.ts +84 -0
- package/server/src/McpHub/ProstglesMcpHub/ProstglesMCPServers/Prostgles/agenticWorkflow/startAgenticWorkflow.ts +181 -0
- package/server/src/McpHub/ProstglesMcpHub/ProstglesMCPServers/Prostgles/fetchTools.ts +48 -0
- package/server/src/McpHub/ProstglesMcpHub/ProstglesMCPServers/Prostgles/runCodeInSandboxContainer.ts +133 -0
- package/server/src/McpHub/ProstglesMcpHub/ProstglesMCPServers/Prostgles/schemas/getAgenticToolSchemas.ts +55 -0
- package/server/src/McpHub/ProstglesMcpHub/ProstglesMCPServers/Prostgles/schemas/getContainerToolProxyAccessInstructions.ts +22 -0
- package/server/src/McpHub/ProstglesMcpHub/ProstglesMCPServers/Prostgles/schemas/getContainerToolSchemas.ts +46 -0
- package/server/src/McpHub/ProstglesMcpHub/ProstglesMCPServers/Prostgles/schemas/prostglesUiToolSchemas.ts +23 -0
- package/server/src/McpHub/ProstglesMcpHub/ProstglesMCPServers/Prostgles/schemas/suggestDashboardsToolSchema.ts +26 -0
- package/server/src/McpHub/ProstglesMcpHub/ProstglesMCPServers/Prostgles/startAgent.ts +166 -0
- package/server/src/McpHub/ProstglesMcpHub/ProstglesMCPServers/Prostgles/validateCreateDashboards.ts +249 -0
- package/server/src/McpHub/ProstglesMcpHub/ProstglesMCPServers/Ui.mcp.ts +343 -0
- package/server/src/McpHub/ProstglesMcpHub/ProstglesMCPServers/Web/Web.mcp.ts +265 -0
- package/server/src/McpHub/ProstglesMcpHub/ProstglesMCPServers/Web/checkConfigAccess.spec.ts +112 -0
- package/server/src/McpHub/ProstglesMcpHub/ProstglesMCPServers/Web/checkConfigAccess.ts +263 -0
- package/server/src/McpHub/ProstglesMcpHub/ProstglesMCPServers/Web/getDocumentText.ts +34 -0
- package/server/src/McpHub/ProstglesMcpHub/ProstglesMCPServers/WebDev/WebDev.mcp.ts +114 -0
- package/server/src/McpHub/ProstglesMcpHub/ProstglesMCPServers/WebDev/tools/createComponent.ts +94 -0
- package/server/src/McpHub/ProstglesMcpHub/ProstglesMCPServers/WebDev/tools/createComponentQuickFeedbackPreview.ts +53 -0
- package/server/src/McpHub/ProstglesMcpHub/ProstglesMCPServers/WebDev/tools/getWebDevChatAndConnection.ts +12 -0
- package/server/src/McpHub/ProstglesMcpHub/ProstglesMCPServers/WebDev/tools/searchWebDevFiles.spec.ts +82 -0
- package/server/src/McpHub/ProstglesMcpHub/ProstglesMCPServers/WebDev/tools/searchWebDevFiles.ts +118 -0
- package/server/src/McpHub/ProstglesMcpHub/ProstglesMCPServers/WebDev/tools/utils.ts +30 -0
- package/server/src/McpHub/ProstglesMcpHub/ProstglesMCPServers/getClientDBHandlersForChat.ts +46 -0
- package/server/src/McpHub/ProstglesMcpHub/ProstglesMCPServers/getExistingTablesSchema.ts +230 -0
- package/server/src/McpHub/ProstglesMcpHub/ProstglesMCPServers.ts +30 -0
- package/server/src/McpHub/ProstglesMcpHub/ProstglesMcpHub.ts +244 -0
- package/server/src/McpHub/callMCPServerTool.ts +148 -0
- package/server/src/McpHub/getMcpServerParameters.ts +204 -0
- package/server/src/McpHub/insertMcpServerList.ts +49 -0
- package/server/src/McpHub/reloadMcpServerTools.ts +123 -0
- package/server/src/McpHub/testMCPServerConfig.ts +29 -0
- package/server/src/McpHub/utils.ts +1 -0
- package/server/src/ServiceManager/ServiceManager.spec.ts +27 -0
- package/server/src/ServiceManager/ServiceManager.ts +162 -0
- package/server/src/ServiceManager/ServiceManagerTypes.ts +136 -0
- package/server/src/ServiceManager/buildService.ts +138 -0
- package/server/src/ServiceManager/dockerInspect.ts +33 -0
- package/server/src/ServiceManager/enableService.ts +41 -0
- package/server/src/ServiceManager/getDockerBuildHash.ts +57 -0
- package/server/src/ServiceManager/getSelectedConfigEnvs.ts +47 -0
- package/server/src/ServiceManager/getServiceEndpoints.ts +122 -0
- package/server/src/ServiceManager/initialiseServices.ts +56 -0
- package/server/src/ServiceManager/resolveBinary.ts +41 -0
- package/server/src/ServiceManager/services/documents/documents.service.ts +178 -0
- package/server/src/ServiceManager/services/documents/documents.service.types.ts +43 -0
- package/server/src/ServiceManager/services/documents/src/Dockerfile +29 -0
- package/server/src/ServiceManager/services/documents/src/layout_postprocessor.py +707 -0
- package/server/src/ServiceManager/services/documents/src/requirements.txt +3 -0
- package/server/src/ServiceManager/services/frontendDev/frontendDev.service.ts +19 -0
- package/server/src/ServiceManager/services/frontendDev/src/.prettierrc +3 -0
- package/server/src/ServiceManager/services/frontendDev/src/client/.env.development +1 -0
- package/server/src/ServiceManager/services/frontendDev/src/client/Dockerfile +5 -0
- package/server/src/ServiceManager/services/frontendDev/src/client/README.md +6 -0
- package/server/src/ServiceManager/services/frontendDev/src/client/eslint.config.js +27 -0
- package/server/src/ServiceManager/services/frontendDev/src/client/index.html +13 -0
- package/server/src/ServiceManager/services/frontendDev/src/client/package.json +32 -0
- package/server/src/ServiceManager/services/frontendDev/src/client/public/vite.svg +1 -0
- package/server/src/ServiceManager/services/frontendDev/src/client/src/App.css +42 -0
- package/server/src/ServiceManager/services/frontendDev/src/client/src/App.tsx +19 -0
- package/server/src/ServiceManager/services/frontendDev/src/client/src/api/DBGeneratedSchema.d.ts +33 -0
- package/server/src/ServiceManager/services/frontendDev/src/client/src/api/ProstglesProvider.tsx +61 -0
- package/server/src/ServiceManager/services/frontendDev/src/client/src/assets/react.svg +1 -0
- package/server/src/ServiceManager/services/frontendDev/src/client/src/components/SampleComponent/SampleComponent.tsx +11 -0
- package/server/src/ServiceManager/services/frontendDev/src/client/src/index.css +68 -0
- package/server/src/ServiceManager/services/frontendDev/src/client/src/main.tsx +23 -0
- package/server/src/ServiceManager/services/frontendDev/src/client/src/pages/ComponentPreview.tsx +31 -0
- package/server/src/ServiceManager/services/frontendDev/src/client/src/pages/Home.tsx +36 -0
- package/server/src/ServiceManager/services/frontendDev/src/client/tsconfig.app.json +28 -0
- package/server/src/ServiceManager/services/frontendDev/src/client/tsconfig.json +7 -0
- package/server/src/ServiceManager/services/frontendDev/src/client/tsconfig.node.json +26 -0
- package/server/src/ServiceManager/services/frontendDev/src/client/vite.config.ts +17 -0
- package/server/src/ServiceManager/services/frontendDev/src/e2e/package.json +24 -0
- package/server/src/ServiceManager/services/frontendDev/src/e2e/playwright.config.ts +36 -0
- package/server/src/ServiceManager/services/frontendDev/src/e2e/tests/coverage.ts +67 -0
- package/server/src/ServiceManager/services/frontendDev/src/e2e/tests/main.spec.ts +21 -0
- package/server/src/ServiceManager/services/frontendDev/src/e2e/tests/tsconfig.json +13 -0
- package/server/src/ServiceManager/services/frontendDev/src/e2e/tsconfig.json +13 -0
- package/server/src/ServiceManager/services/frontendDev/src/package.json +15 -0
- package/server/src/ServiceManager/services/frontendDev/src/tsconfig.base.json +32 -0
- package/server/src/ServiceManager/services/speechToText/TRANSCRIBE_OUTPUT_SCHEMA.ts +53 -0
- package/server/src/ServiceManager/services/speechToText/speechToText.service.ts +125 -0
- package/server/src/ServiceManager/services/speechToText/src/Dockerfile +31 -0
- package/server/src/ServiceManager/services/speechToText/src/app.py +115 -0
- package/server/src/ServiceManager/services/speechToText/src/requirements.txt +3 -0
- package/server/src/ServiceManager/services/webSearchSearxng/src/Dockerfile +12 -0
- package/server/src/ServiceManager/services/webSearchSearxng/src/limiter.toml +0 -0
- package/server/src/ServiceManager/services/webSearchSearxng/src/settings.yml +11 -0
- package/server/src/ServiceManager/services/webSearchSearxng/webSearchSearxng.service.ts +36 -0
- package/server/src/ServiceManager/startService.ts +196 -0
- package/server/src/ServiceManager/stopService.ts +23 -0
- package/server/src/ServiceManager/withRetries.ts +19 -0
- package/server/src/authConfig/OAuthProviders/getOAuthLoginProviders.ts +67 -0
- package/server/src/authConfig/OAuthProviders/loginWithProvider.ts +94 -0
- package/server/src/authConfig/authUtils.ts +19 -0
- package/server/src/authConfig/createPasswordlessAdminSessionIfNeeded.ts +86 -0
- package/server/src/authConfig/createPublicUserSessionIfAllowed.ts +48 -0
- package/server/src/authConfig/emailProvider/getEmailAuthProvider.ts +44 -0
- package/server/src/authConfig/emailProvider/getEmailSenderWithMockTest.ts +96 -0
- package/server/src/authConfig/emailProvider/onEmailRegistration.ts +116 -0
- package/server/src/authConfig/getActiveSession.ts +76 -0
- package/server/src/authConfig/getAuth.ts +171 -0
- package/server/src/authConfig/getLogin.ts +206 -0
- package/server/src/authConfig/getUser.ts +108 -0
- package/server/src/authConfig/onMagicLinkOrOTP.ts +171 -0
- package/server/src/authConfig/onUseOrSocketConnected.ts +43 -0
- package/server/src/authConfig/sessionUtils.ts +120 -0
- package/server/src/authConfig/startRateLimitedLoginAttempt.ts +201 -0
- package/server/src/authConfig/subscribeToAuthSetupChanges.ts +144 -0
- package/server/src/authConfig/upsertSession.ts +48 -0
- package/server/src/cli/cli.ts +217 -0
- package/server/src/cli/cliUtils.ts +50 -0
- package/server/src/cloudClients/cloudClients.ts +116 -0
- package/server/src/connectionUtils/getConnectionDetails.ts +76 -0
- package/server/src/connectionUtils/testDBConnection.ts +167 -0
- package/server/src/connectionUtils/validateConnection.ts +114 -0
- package/server/src/createHttpAndIOServers/createHttpServer.ts +147 -0
- package/server/src/createHttpAndIOServers/createIOWebsocketServer.ts +31 -0
- package/server/src/createHttpAndIOServers/getCorsOptions.ts +58 -0
- package/server/src/createHttpAndIOServers/setHttpAppSecurity.ts +124 -0
- package/server/src/electronConfig.ts +223 -0
- package/server/src/envVars.ts +45 -0
- package/server/src/getPSQLQueries.ts +123 -0
- package/server/src/index.ts +273 -0
- package/server/src/init/CSP_DEFAULTS.ts +41 -0
- package/server/src/init/addDevImageProxyRoute.ts +74 -0
- package/server/src/init/cleanupTestDatabases.ts +51 -0
- package/server/src/init/initExpressAndIOServers.ts +127 -0
- package/server/src/init/initUsers.ts +113 -0
- package/server/src/init/insertStateDatabase.ts +72 -0
- package/server/src/init/isRetryableError.ts +50 -0
- package/server/src/init/logOutgoingHttpRequests.ts +15 -0
- package/server/src/init/prostglesOnReady.ts +147 -0
- package/server/src/init/saveTypescriptFilesForProduction.ts +113 -0
- package/server/src/init/setDBSRoutesForElectron.ts +206 -0
- package/server/src/init/startDevHotReloadNotifier.ts +39 -0
- package/server/src/init/startProstgles.ts +220 -0
- package/server/src/init/tryStartProstgles.ts +177 -0
- package/server/src/init/utils.ts +44 -0
- package/server/src/init.sql +1 -0
- package/server/src/methods/getPidStats.ts +336 -0
- package/server/src/methods/getPidStatsFromProc.ts +125 -0
- package/server/src/methods/statusMonitorUtils.ts +148 -0
- package/server/src/publish/getPublishLLM.ts +246 -0
- package/server/src/publish/getPublishLlmChats.ts +73 -0
- package/server/src/publish/publish.ts +398 -0
- package/server/src/schemaConfig.ts +97 -0
- package/server/src/serverFunctions/adminServerFunctions/getAdminServerFunctions.ts +477 -0
- package/server/src/serverFunctions/adminServerFunctions/getAgenticWorkflowFunctions.ts +186 -0
- package/server/src/serverFunctions/adminServerFunctions/getBackupServerFunctions.ts +178 -0
- package/server/src/serverFunctions/adminServerFunctions/getDefineAdminFunction.ts +11 -0
- package/server/src/serverFunctions/adminServerFunctions/getMcpServerFunctions.ts +283 -0
- package/server/src/serverFunctions/adminServerFunctions/getWebAppServerFunctions.ts +228 -0
- package/server/src/serverFunctions/adminServerFunctions/webApp/buildWebApp.ts +38 -0
- package/server/src/serverFunctions/adminServerFunctions/webApp/getReactComponents copy.ts +188 -0
- package/server/src/serverFunctions/adminServerFunctions/webApp/getReactComponents.ts +287 -0
- package/server/src/serverFunctions/adminServerFunctions/webApp/getReactRenderTree.ts +180 -0
- package/server/src/serverFunctions/adminServerFunctions/webApp/getTemplatedWebAppConnection.ts +23 -0
- package/server/src/serverFunctions/adminServerFunctions/webApp/getValidatedWebAppPath.spec.ts +77 -0
- package/server/src/serverFunctions/adminServerFunctions/webApp/getValidatedWebAppPath.ts +22 -0
- package/server/src/serverFunctions/adminServerFunctions/webApp/readWebAppFiles.ts +45 -0
- package/server/src/serverFunctions/adminServerFunctions/webApp/runDockerForWebApp.ts +56 -0
- package/server/src/serverFunctions/adminServerFunctions/webApp/testWebApp.ts +30 -0
- package/server/src/serverFunctions/adminServerFunctions/webApp/writeWebAppFiles.ts +91 -0
- package/server/src/serverFunctions/applySampleSchema.ts +96 -0
- package/server/src/serverFunctions/askLLM/LLMResponseTypes.ts +315 -0
- package/server/src/serverFunctions/askLLM/agentConstants.ts +42 -0
- package/server/src/serverFunctions/askLLM/askLLM.ts +540 -0
- package/server/src/serverFunctions/askLLM/checkLLMLimit.ts +59 -0
- package/server/src/serverFunctions/askLLM/checkMaxCostLimitForChat.ts +51 -0
- package/server/src/serverFunctions/askLLM/defaultPrompts/base.prompt.ts +26 -0
- package/server/src/serverFunctions/askLLM/defaultPrompts/createAgenticWorkflow.prompt.ts +53 -0
- package/server/src/serverFunctions/askLLM/defaultPrompts/createDashboards.prompt.ts +15 -0
- package/server/src/serverFunctions/askLLM/fetchLLMResponse.ts +105 -0
- package/server/src/serverFunctions/askLLM/getCompactedMessages.ts +101 -0
- package/server/src/serverFunctions/askLLM/getFullPrompt.ts +86 -0
- package/server/src/serverFunctions/askLLM/getLLMRequestBody.ts +368 -0
- package/server/src/serverFunctions/askLLM/getLLMToolsAllowedInThisChat.ts +179 -0
- package/server/src/serverFunctions/askLLM/getLLMUsageCost.ts +91 -0
- package/server/src/serverFunctions/askLLM/getPastMessages.ts +9 -0
- package/server/src/serverFunctions/askLLM/getUserMessageCost.ts +21 -0
- package/server/src/serverFunctions/askLLM/getValidatedAskLLMChatOptions.ts +59 -0
- package/server/src/serverFunctions/askLLM/handleToolUseResultConfirmation.ts +87 -0
- package/server/src/serverFunctions/askLLM/parseLLMResponseObject.ts +206 -0
- package/server/src/serverFunctions/askLLM/prostglesLLMTools/getDbConnectionWithPermissions.ts +94 -0
- package/server/src/serverFunctions/askLLM/prostglesLLMTools/getMCPServerTools.ts +28 -0
- package/server/src/serverFunctions/askLLM/prostglesLLMTools/getMcpToolsWithDynamicDescription.ts +77 -0
- package/server/src/serverFunctions/askLLM/prostglesLLMTools/getTemplateUserConnection.ts +182 -0
- package/server/src/serverFunctions/askLLM/readFetchStream.ts +69 -0
- package/server/src/serverFunctions/askLLM/refreshModels.ts +223 -0
- package/server/src/serverFunctions/askLLM/runApprovedTools/getMostSimilar.ts +55 -0
- package/server/src/serverFunctions/askLLM/runApprovedTools/runAgentGoalTool.ts +116 -0
- package/server/src/serverFunctions/askLLM/runApprovedTools/runApprovedTools.ts +348 -0
- package/server/src/serverFunctions/askLLM/runApprovedTools/validateLastMessageToolUseRequests.ts +33 -0
- package/server/src/serverFunctions/askLLM/setupLLM.ts +176 -0
- package/server/src/serverFunctions/askLLM/setupLLMProviders.ts +186 -0
- package/server/src/serverFunctions/deleteConnection.ts +111 -0
- package/server/src/serverFunctions/getConnectionAndDatabaseConfig.ts +27 -0
- package/server/src/serverFunctions/getNodeTypes.spec.ts +80 -0
- package/server/src/serverFunctions/getNodeTypes.ts +306 -0
- package/server/src/serverFunctions/getServerFunctions.ts +163 -0
- package/server/src/serverFunctions/getServerFunctionsContext.ts +29 -0
- package/server/src/serverFunctions/prostglesSignup.ts +28 -0
- package/server/src/serverFunctions/setFileStorage.ts +107 -0
- package/server/src/serverFunctions/userServerFunctions/approveToolUse.ts +146 -0
- package/server/src/serverFunctions/userServerFunctions/getLLMAccessParams.ts +21 -0
- package/server/src/serverFunctions/userServerFunctions/getUserServerFunctions.ts +260 -0
- package/server/src/tableConfig/tableConfig.ts +374 -0
- package/server/src/tableConfig/tableConfigAccessControl.ts +212 -0
- package/server/src/tableConfig/tableConfigAgenticWorkflow.ts +174 -0
- package/server/src/tableConfig/tableConfigBackups.ts +160 -0
- package/server/src/tableConfig/tableConfigConnections.ts +182 -0
- package/server/src/tableConfig/tableConfigDatabaseConfig.ts +714 -0
- package/server/src/tableConfig/tableConfigGlobalSettings.ts +40 -0
- package/server/src/tableConfig/tableConfigLinks.ts +273 -0
- package/server/src/tableConfig/tableConfigLlm/tableConfigLlm.ts +347 -0
- package/server/src/tableConfig/tableConfigLlm/tableConfigLlmChats.ts +361 -0
- package/server/src/tableConfig/tableConfigLlm/tableConfigLlmExtraRequestData.ts +50 -0
- package/server/src/tableConfig/tableConfigMCPServers.ts +676 -0
- package/server/src/tableConfig/tableConfigMigrations.ts +26 -0
- package/server/src/tableConfig/tableConfigPublishedMethods.ts +120 -0
- package/server/src/tableConfig/tableConfigServices.ts +61 -0
- package/server/src/tableConfig/tableConfigUsers.ts +227 -0
- package/server/src/tableConfig/tableConfigWebApp.ts +17 -0
- package/server/src/tableConfig/tableConfigWindows.ts +164 -0
- package/server/src/tableConfig/tableConfigWorkspaces.ts +100 -0
- package/server/src/tableConfig/tablePermissionsSchema.ts +66 -0
- package/server/src/testElectron.ts +33 -0
- package/server/src/upsertConnection.ts +73 -0
- package/server/src/utils/assertIconExists.ts +24 -0
- package/server/src/utils/isPortFree.ts +40 -0
- package/server/src/utils/tout.ts +7 -0
- package/server/test-runner.mjs +28 -0
- package/server/tsconfig.json +45 -0
- package/server/tslint.json +8 -0
|
@@ -0,0 +1,639 @@
|
|
|
1
|
+
import * as ts from "typescript";
|
|
2
|
+
|
|
3
|
+
// ─── Position ─────────────────────────────────────────────────────────────────
|
|
4
|
+
|
|
5
|
+
export type Position = {
|
|
6
|
+
/** 1-indexed line number */
|
|
7
|
+
line: number;
|
|
8
|
+
/** 1-indexed column number */
|
|
9
|
+
col: number;
|
|
10
|
+
};
|
|
11
|
+
|
|
12
|
+
// ─── Function registry ────────────────────────────────────────────────────────
|
|
13
|
+
|
|
14
|
+
export type FunctionRisk = "safe" | "warn" | "danger";
|
|
15
|
+
|
|
16
|
+
export type FunctionInfo = {
|
|
17
|
+
/** Stable key — also used as `fnId` on call/await nodes */
|
|
18
|
+
id: string;
|
|
19
|
+
/** Human-readable callee label, e.g. `fetch`, `db.query` */
|
|
20
|
+
label: string;
|
|
21
|
+
risk: FunctionRisk;
|
|
22
|
+
/** Short human-readable explanation of *why* this is risky */
|
|
23
|
+
riskReason?: string;
|
|
24
|
+
/** How many times this function is called in the summarised scope */
|
|
25
|
+
callCount: number;
|
|
26
|
+
};
|
|
27
|
+
|
|
28
|
+
/** All functions encountered during traversal, keyed by their `id`. */
|
|
29
|
+
export type FunctionRegistry = Record<string, FunctionInfo>;
|
|
30
|
+
|
|
31
|
+
// ─── Risk classification ──────────────────────────────────────────────────────
|
|
32
|
+
|
|
33
|
+
type RiskRule = {
|
|
34
|
+
pattern: RegExp;
|
|
35
|
+
risk: FunctionRisk;
|
|
36
|
+
reason: string;
|
|
37
|
+
};
|
|
38
|
+
|
|
39
|
+
/**
|
|
40
|
+
* Ordered list of rules — first match wins.
|
|
41
|
+
* Rules are matched against the full callee label (e.g. `"fs.writeFile"`).
|
|
42
|
+
*/
|
|
43
|
+
const RISK_RULES: RiskRule[] = [
|
|
44
|
+
// ── Danger ───────────────────────────────────────────────────────────────
|
|
45
|
+
{
|
|
46
|
+
pattern: /\beval\b/,
|
|
47
|
+
risk: "danger",
|
|
48
|
+
reason: "eval() executes arbitrary code and is a common injection vector",
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
pattern: /\b(execSync|spawnSync|exec|spawn|fork)\b/,
|
|
52
|
+
risk: "danger",
|
|
53
|
+
reason:
|
|
54
|
+
"Spawns child processes; command-injection risk if inputs are unsanitised",
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
pattern: /\b(unlink|rmdir|rm)\b/,
|
|
58
|
+
risk: "danger",
|
|
59
|
+
reason: "Permanently deletes files or directories",
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
pattern: /\bwriteFile(Sync)?\b/,
|
|
63
|
+
risk: "danger",
|
|
64
|
+
reason: "Writes arbitrary data to the filesystem",
|
|
65
|
+
},
|
|
66
|
+
// ── Warn ─────────────────────────────────────────────────────────────────
|
|
67
|
+
{
|
|
68
|
+
pattern: /\bfetch\b/,
|
|
69
|
+
risk: "warn",
|
|
70
|
+
reason:
|
|
71
|
+
"Makes an outbound HTTP request; review URL and credential handling",
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
pattern: /\b(axios|got|request|http\.get|https\.get)\b/,
|
|
75
|
+
risk: "warn",
|
|
76
|
+
reason: "Outbound HTTP call; review URL source and authentication",
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
pattern: /\breadFile(Sync)?\b/,
|
|
80
|
+
risk: "warn",
|
|
81
|
+
reason: "Reads from the filesystem; verify path is not user-controlled",
|
|
82
|
+
},
|
|
83
|
+
{
|
|
84
|
+
pattern: /\b(readdir|glob|stat)\b/,
|
|
85
|
+
risk: "warn",
|
|
86
|
+
reason: "Filesystem enumeration; may expose directory structure",
|
|
87
|
+
},
|
|
88
|
+
{
|
|
89
|
+
pattern: /\b(db|sql|pg|mysql|mongo|redis|prisma)\./i,
|
|
90
|
+
risk: "warn",
|
|
91
|
+
reason: "Database operation; verify inputs are sanitised / parameterised",
|
|
92
|
+
},
|
|
93
|
+
{
|
|
94
|
+
pattern: /\brequire\b/,
|
|
95
|
+
risk: "warn",
|
|
96
|
+
reason:
|
|
97
|
+
"Dynamic module load; ensure the module path is not user-controlled",
|
|
98
|
+
},
|
|
99
|
+
];
|
|
100
|
+
|
|
101
|
+
const classifyRisk = (
|
|
102
|
+
label: string,
|
|
103
|
+
): Pick<FunctionInfo, "risk" | "riskReason"> => {
|
|
104
|
+
for (const rule of RISK_RULES) {
|
|
105
|
+
if (rule.pattern.test(label)) {
|
|
106
|
+
return { risk: rule.risk, reason: rule.reason } as Pick<
|
|
107
|
+
FunctionInfo,
|
|
108
|
+
"risk" | "riskReason"
|
|
109
|
+
>;
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
return { risk: "safe" };
|
|
113
|
+
};
|
|
114
|
+
|
|
115
|
+
// ─── Visitor context ──────────────────────────────────────────────────────────
|
|
116
|
+
|
|
117
|
+
type VisitorContext = {
|
|
118
|
+
sf: ts.SourceFile;
|
|
119
|
+
registry: FunctionRegistry;
|
|
120
|
+
};
|
|
121
|
+
|
|
122
|
+
// ─── Types ────────────────────────────────────────────────────────────────────
|
|
123
|
+
|
|
124
|
+
export type SummaryNode =
|
|
125
|
+
| {
|
|
126
|
+
kind: "await";
|
|
127
|
+
label: string;
|
|
128
|
+
/** Key into `SummaryResult.functions` */
|
|
129
|
+
fnId: string;
|
|
130
|
+
pos: Position;
|
|
131
|
+
children?: SummaryNode[];
|
|
132
|
+
}
|
|
133
|
+
| {
|
|
134
|
+
kind: "call";
|
|
135
|
+
label: string;
|
|
136
|
+
/** Key into `SummaryResult.functions` */
|
|
137
|
+
fnId: string;
|
|
138
|
+
pos: Position;
|
|
139
|
+
children?: SummaryNode[];
|
|
140
|
+
}
|
|
141
|
+
| { kind: "assign"; name: string; value: SummaryNode; pos: Position }
|
|
142
|
+
| { kind: "fn-def"; name: string; body: SummaryNode[]; pos: Position }
|
|
143
|
+
| {
|
|
144
|
+
kind: "if";
|
|
145
|
+
condition: string;
|
|
146
|
+
then: SummaryNode[];
|
|
147
|
+
else?: SummaryNode[];
|
|
148
|
+
pos: Position;
|
|
149
|
+
}
|
|
150
|
+
| { kind: "loop"; over: string; body: SummaryNode[]; pos: Position }
|
|
151
|
+
| { kind: "return"; value?: string; pos: Position }
|
|
152
|
+
| { kind: "block"; nodes: SummaryNode[]; pos: Position };
|
|
153
|
+
|
|
154
|
+
// ─── Public result type ───────────────────────────────────────────────────────
|
|
155
|
+
|
|
156
|
+
export type SummaryResult = {
|
|
157
|
+
nodes: SummaryNode[];
|
|
158
|
+
/** All functions encountered, keyed by their stable `fnId` */
|
|
159
|
+
functions: FunctionRegistry;
|
|
160
|
+
};
|
|
161
|
+
|
|
162
|
+
// ─── Expression helpers ───────────────────────────────────────────────────────
|
|
163
|
+
|
|
164
|
+
const truncate = (s: string, max = 60): string =>
|
|
165
|
+
s.length > max ? s.slice(0, max - 1) + "…" : s;
|
|
166
|
+
|
|
167
|
+
const shortExpr = (node: ts.Node): string => {
|
|
168
|
+
if (ts.isStringLiteral(node)) return JSON.stringify(node.text);
|
|
169
|
+
if (ts.isNumericLiteral(node)) return node.text;
|
|
170
|
+
if (ts.isIdentifier(node)) return node.text;
|
|
171
|
+
if (ts.isPropertyAccessExpression(node))
|
|
172
|
+
return `${shortExpr(node.expression)}.${node.name.text}`;
|
|
173
|
+
if (ts.isCallExpression(node)) return `${shortExpr(node.expression)}(…)`;
|
|
174
|
+
if (ts.isAwaitExpression(node)) return `await ${shortExpr(node.expression)}`;
|
|
175
|
+
if (ts.isObjectLiteralExpression(node)) {
|
|
176
|
+
const keys = node.properties
|
|
177
|
+
.slice(0, 3)
|
|
178
|
+
.map((p) => (ts.isPropertyAssignment(p) ? shortExpr(p.name) : "…"))
|
|
179
|
+
.join(", ");
|
|
180
|
+
return `{ ${keys}${node.properties.length > 3 ? ", …" : ""} }`;
|
|
181
|
+
}
|
|
182
|
+
if (ts.isArrayLiteralExpression(node))
|
|
183
|
+
return `[${node.elements.length} item${node.elements.length !== 1 ? "s" : ""}]`;
|
|
184
|
+
if (ts.isTemplateExpression(node) || ts.isNoSubstitutionTemplateLiteral(node))
|
|
185
|
+
return "`…`";
|
|
186
|
+
if (ts.isBinaryExpression(node))
|
|
187
|
+
return `${shortExpr(node.left)} ${ts.tokenToString(node.operatorToken.kind)} ${shortExpr(node.right)}`;
|
|
188
|
+
if (ts.isPrefixUnaryExpression(node))
|
|
189
|
+
return (ts.tokenToString(node.operator) ?? "") + shortExpr(node.operand);
|
|
190
|
+
return "…";
|
|
191
|
+
};
|
|
192
|
+
|
|
193
|
+
const callLabel = (node: ts.CallExpression): string => {
|
|
194
|
+
const callee = shortExpr(node.expression);
|
|
195
|
+
const args = node.arguments
|
|
196
|
+
.slice(0, 3)
|
|
197
|
+
.map((a) =>
|
|
198
|
+
ts.isArrowFunction(a) || ts.isFunctionExpression(a) ? "…" : shortExpr(a),
|
|
199
|
+
)
|
|
200
|
+
.join(", ");
|
|
201
|
+
return truncate(`${callee}(${args})`);
|
|
202
|
+
};
|
|
203
|
+
|
|
204
|
+
// ─── Position helpers ─────────────────────────────────────────────────────────
|
|
205
|
+
|
|
206
|
+
const getPos = (node: ts.Node, sf: ts.SourceFile): Position => {
|
|
207
|
+
const { line, character } = sf.getLineAndCharacterOfPosition(
|
|
208
|
+
node.getStart(sf),
|
|
209
|
+
);
|
|
210
|
+
return { line: line + 1, col: character + 1 };
|
|
211
|
+
};
|
|
212
|
+
|
|
213
|
+
// ─── Function registry helpers ────────────────────────────────────────────────
|
|
214
|
+
|
|
215
|
+
/**
|
|
216
|
+
* Derives a stable, normalised key from a callee label.
|
|
217
|
+
* Strips argument lists so `fetch(url)` and `fetch(other)` share one entry.
|
|
218
|
+
*/
|
|
219
|
+
const toFnId = (label: string): string =>
|
|
220
|
+
label
|
|
221
|
+
.replace(/\(.*$/, "") // strip args
|
|
222
|
+
.replace(/\s+/g, "") // strip whitespace
|
|
223
|
+
.toLowerCase();
|
|
224
|
+
|
|
225
|
+
const registerCall = (label: string, registry: FunctionRegistry): string => {
|
|
226
|
+
const id = toFnId(label);
|
|
227
|
+
if (registry[id]) {
|
|
228
|
+
registry[id].callCount += 1;
|
|
229
|
+
} else {
|
|
230
|
+
const { risk, riskReason } = classifyRisk(label);
|
|
231
|
+
registry[id] = {
|
|
232
|
+
id,
|
|
233
|
+
label: label.replace(/\(.*$/, ""),
|
|
234
|
+
risk,
|
|
235
|
+
riskReason,
|
|
236
|
+
callCount: 1,
|
|
237
|
+
};
|
|
238
|
+
}
|
|
239
|
+
return id;
|
|
240
|
+
};
|
|
241
|
+
|
|
242
|
+
// ─── AST Visitor ──────────────────────────────────────────────────────────────
|
|
243
|
+
|
|
244
|
+
const extractCallbackChildren = (
|
|
245
|
+
call: ts.CallExpression,
|
|
246
|
+
ctx: VisitorContext,
|
|
247
|
+
): SummaryNode[] | undefined => {
|
|
248
|
+
const children: SummaryNode[] = [];
|
|
249
|
+
for (const arg of call.arguments) {
|
|
250
|
+
if (
|
|
251
|
+
(ts.isArrowFunction(arg) || ts.isFunctionExpression(arg)) &&
|
|
252
|
+
ts.isBlock(arg.body)
|
|
253
|
+
) {
|
|
254
|
+
const paramName =
|
|
255
|
+
arg.parameters[0] && ts.isIdentifier(arg.parameters[0].name) ?
|
|
256
|
+
arg.parameters[0].name.text
|
|
257
|
+
: "…";
|
|
258
|
+
children.push({
|
|
259
|
+
kind: "fn-def",
|
|
260
|
+
name: `(${paramName}) =>`,
|
|
261
|
+
body: visitBlock(arg.body, ctx),
|
|
262
|
+
pos: getPos(arg, ctx.sf),
|
|
263
|
+
});
|
|
264
|
+
}
|
|
265
|
+
}
|
|
266
|
+
return children.length > 0 ? children : undefined;
|
|
267
|
+
};
|
|
268
|
+
|
|
269
|
+
const extractValue = (
|
|
270
|
+
expr: ts.Expression,
|
|
271
|
+
ctx: VisitorContext,
|
|
272
|
+
): SummaryNode => {
|
|
273
|
+
if (ts.isAwaitExpression(expr)) {
|
|
274
|
+
const inner = expr.expression;
|
|
275
|
+
if (ts.isCallExpression(inner)) {
|
|
276
|
+
const label = callLabel(inner);
|
|
277
|
+
const fnId = registerCall(label, ctx.registry);
|
|
278
|
+
return {
|
|
279
|
+
kind: "await",
|
|
280
|
+
label,
|
|
281
|
+
fnId,
|
|
282
|
+
pos: getPos(expr, ctx.sf),
|
|
283
|
+
children: extractCallbackChildren(inner, ctx),
|
|
284
|
+
};
|
|
285
|
+
}
|
|
286
|
+
const label = truncate(shortExpr(inner));
|
|
287
|
+
const fnId = registerCall(label, ctx.registry);
|
|
288
|
+
return { kind: "await", label, fnId, pos: getPos(expr, ctx.sf) };
|
|
289
|
+
}
|
|
290
|
+
if (ts.isCallExpression(expr)) {
|
|
291
|
+
const label = callLabel(expr);
|
|
292
|
+
const fnId = registerCall(label, ctx.registry);
|
|
293
|
+
return {
|
|
294
|
+
kind: "call",
|
|
295
|
+
label,
|
|
296
|
+
fnId,
|
|
297
|
+
pos: getPos(expr, ctx.sf),
|
|
298
|
+
children: extractCallbackChildren(expr, ctx),
|
|
299
|
+
};
|
|
300
|
+
}
|
|
301
|
+
// Non-call expression wrapped as a call node (e.g. bare identifier)
|
|
302
|
+
const label = truncate(shortExpr(expr));
|
|
303
|
+
const fnId = registerCall(label, ctx.registry);
|
|
304
|
+
return { kind: "call", label, fnId, pos: getPos(expr, ctx.sf) };
|
|
305
|
+
};
|
|
306
|
+
|
|
307
|
+
const visitStatement = (
|
|
308
|
+
stmt: ts.Statement,
|
|
309
|
+
ctx: VisitorContext,
|
|
310
|
+
): SummaryNode | null => {
|
|
311
|
+
if (ts.isVariableStatement(stmt)) {
|
|
312
|
+
const decls = stmt.declarationList.declarations;
|
|
313
|
+
if (decls.length !== 1) return null;
|
|
314
|
+
const decl = decls[0]!;
|
|
315
|
+
if (!decl.initializer) return null;
|
|
316
|
+
const name = ts.isIdentifier(decl.name) ? decl.name.text : "…";
|
|
317
|
+
|
|
318
|
+
if (
|
|
319
|
+
(ts.isArrowFunction(decl.initializer) ||
|
|
320
|
+
ts.isFunctionExpression(decl.initializer)) &&
|
|
321
|
+
ts.isBlock(decl.initializer.body)
|
|
322
|
+
) {
|
|
323
|
+
return {
|
|
324
|
+
kind: "fn-def",
|
|
325
|
+
name,
|
|
326
|
+
body: visitBlock(decl.initializer.body, ctx),
|
|
327
|
+
pos: getPos(stmt, ctx.sf),
|
|
328
|
+
};
|
|
329
|
+
}
|
|
330
|
+
|
|
331
|
+
return {
|
|
332
|
+
kind: "assign",
|
|
333
|
+
name,
|
|
334
|
+
value: extractValue(decl.initializer, ctx),
|
|
335
|
+
pos: getPos(stmt, ctx.sf),
|
|
336
|
+
};
|
|
337
|
+
}
|
|
338
|
+
|
|
339
|
+
if (ts.isExpressionStatement(stmt)) return extractValue(stmt.expression, ctx);
|
|
340
|
+
|
|
341
|
+
if (ts.isIfStatement(stmt)) {
|
|
342
|
+
const condition = truncate(shortExpr(stmt.expression));
|
|
343
|
+
const thenBlock =
|
|
344
|
+
ts.isBlock(stmt.thenStatement) ?
|
|
345
|
+
visitBlock(stmt.thenStatement, ctx)
|
|
346
|
+
: ([visitStatement(stmt.thenStatement, ctx)].filter(
|
|
347
|
+
Boolean,
|
|
348
|
+
) as SummaryNode[]);
|
|
349
|
+
const elseBlock =
|
|
350
|
+
stmt.elseStatement ?
|
|
351
|
+
ts.isBlock(stmt.elseStatement) ?
|
|
352
|
+
visitBlock(stmt.elseStatement, ctx)
|
|
353
|
+
: ([visitStatement(stmt.elseStatement, ctx)].filter(
|
|
354
|
+
Boolean,
|
|
355
|
+
) as SummaryNode[])
|
|
356
|
+
: undefined;
|
|
357
|
+
return {
|
|
358
|
+
kind: "if",
|
|
359
|
+
condition,
|
|
360
|
+
then: thenBlock,
|
|
361
|
+
else: elseBlock,
|
|
362
|
+
pos: getPos(stmt, ctx.sf),
|
|
363
|
+
};
|
|
364
|
+
}
|
|
365
|
+
|
|
366
|
+
if (ts.isReturnStatement(stmt)) {
|
|
367
|
+
return {
|
|
368
|
+
kind: "return",
|
|
369
|
+
value: stmt.expression ? truncate(shortExpr(stmt.expression)) : undefined,
|
|
370
|
+
pos: getPos(stmt, ctx.sf),
|
|
371
|
+
};
|
|
372
|
+
}
|
|
373
|
+
|
|
374
|
+
if (ts.isForOfStatement(stmt) || ts.isForInStatement(stmt)) {
|
|
375
|
+
const over = truncate(shortExpr(stmt.expression));
|
|
376
|
+
const body =
|
|
377
|
+
ts.isBlock(stmt.statement) ? visitBlock(stmt.statement, ctx) : [];
|
|
378
|
+
return { kind: "loop", over, body, pos: getPos(stmt, ctx.sf) };
|
|
379
|
+
}
|
|
380
|
+
|
|
381
|
+
return null;
|
|
382
|
+
};
|
|
383
|
+
|
|
384
|
+
const visitBlock = (block: ts.Block, ctx: VisitorContext): SummaryNode[] =>
|
|
385
|
+
block.statements
|
|
386
|
+
.map((s) => visitStatement(s, ctx))
|
|
387
|
+
.filter((n): n is SummaryNode => n !== null);
|
|
388
|
+
|
|
389
|
+
// ─── Source-file factory ──────────────────────────────────────────────────────
|
|
390
|
+
|
|
391
|
+
const makeSourceFile = (
|
|
392
|
+
source: string,
|
|
393
|
+
fileName = "workflow.ts",
|
|
394
|
+
): ts.SourceFile =>
|
|
395
|
+
ts.createSourceFile(
|
|
396
|
+
fileName,
|
|
397
|
+
source,
|
|
398
|
+
ts.ScriptTarget.Latest,
|
|
399
|
+
true,
|
|
400
|
+
ts.ScriptKind.TS,
|
|
401
|
+
);
|
|
402
|
+
|
|
403
|
+
const makeCtx = (sf: ts.SourceFile): VisitorContext => ({ sf, registry: {} });
|
|
404
|
+
|
|
405
|
+
// ─── Public API ───────────────────────────────────────────────────────────────
|
|
406
|
+
|
|
407
|
+
/**
|
|
408
|
+
* Parse and summarise the body of an async arrow/function expression.
|
|
409
|
+
*
|
|
410
|
+
* @example
|
|
411
|
+
* const result = summariseWorkflowSource(`async ({ researcher }, db) => { ... }`);
|
|
412
|
+
* console.log(result.nodes, result.functions);
|
|
413
|
+
*/
|
|
414
|
+
export const summariseWorkflowSource = (source: string): SummaryResult => {
|
|
415
|
+
const wrapped = `const __fn = ${source};`;
|
|
416
|
+
const sf = makeSourceFile(wrapped);
|
|
417
|
+
const ctx = makeCtx(sf);
|
|
418
|
+
|
|
419
|
+
const stmt = sf.statements[0];
|
|
420
|
+
if (!stmt || !ts.isVariableStatement(stmt))
|
|
421
|
+
return { nodes: [], functions: {} };
|
|
422
|
+
const decl = stmt.declarationList.declarations[0];
|
|
423
|
+
if (!decl?.initializer) return { nodes: [], functions: {} };
|
|
424
|
+
const fn = decl.initializer;
|
|
425
|
+
if (!ts.isArrowFunction(fn) && !ts.isFunctionExpression(fn))
|
|
426
|
+
return { nodes: [], functions: {} };
|
|
427
|
+
if (!ts.isBlock(fn.body)) return { nodes: [], functions: {} };
|
|
428
|
+
|
|
429
|
+
const nodes = visitBlock(fn.body, ctx);
|
|
430
|
+
return { nodes, functions: ctx.registry };
|
|
431
|
+
};
|
|
432
|
+
|
|
433
|
+
/**
|
|
434
|
+
* Parse and summarise a block of TypeScript statements not wrapped in a function.
|
|
435
|
+
*/
|
|
436
|
+
export const summariseStatements = (source: string): SummaryResult => {
|
|
437
|
+
const sf = makeSourceFile(source);
|
|
438
|
+
const ctx = makeCtx(sf);
|
|
439
|
+
const nodes = sf.statements
|
|
440
|
+
.map((s) => visitStatement(s, ctx))
|
|
441
|
+
.filter((n): n is SummaryNode => n !== null);
|
|
442
|
+
return { nodes, functions: ctx.registry };
|
|
443
|
+
};
|
|
444
|
+
|
|
445
|
+
/**
|
|
446
|
+
* Parses a full TypeScript file, finds `defineAgenticWorkflow(config, workflowFn)`,
|
|
447
|
+
* and summarises the body of the workflow function (second argument).
|
|
448
|
+
*
|
|
449
|
+
* @example
|
|
450
|
+
* const source = fs.readFileSync("my-workflow.ts", "utf8");
|
|
451
|
+
* const { nodes, functions } = summariseWorkflowFile(source);
|
|
452
|
+
* console.log(renderSummary(nodes));
|
|
453
|
+
*/
|
|
454
|
+
export const summariseWorkflowFile = (fileSource: string): SummaryResult => {
|
|
455
|
+
const sf = makeSourceFile(fileSource);
|
|
456
|
+
const ctx = makeCtx(sf);
|
|
457
|
+
|
|
458
|
+
let workflowFn = null as ts.ArrowFunction | ts.FunctionExpression | null;
|
|
459
|
+
|
|
460
|
+
const find = (node: ts.Node): void => {
|
|
461
|
+
if (
|
|
462
|
+
ts.isCallExpression(node) &&
|
|
463
|
+
ts.isIdentifier(node.expression) &&
|
|
464
|
+
node.expression.text === "defineAgenticWorkflow" &&
|
|
465
|
+
node.arguments.length >= 2
|
|
466
|
+
) {
|
|
467
|
+
const second = node.arguments[1]!;
|
|
468
|
+
if (
|
|
469
|
+
(ts.isArrowFunction(second) || ts.isFunctionExpression(second)) &&
|
|
470
|
+
ts.isBlock(second.body)
|
|
471
|
+
) {
|
|
472
|
+
workflowFn = second;
|
|
473
|
+
}
|
|
474
|
+
}
|
|
475
|
+
ts.forEachChild(node, find);
|
|
476
|
+
};
|
|
477
|
+
|
|
478
|
+
find(sf);
|
|
479
|
+
|
|
480
|
+
if (!workflowFn) return { nodes: [], functions: {} };
|
|
481
|
+
const nodes = visitBlock(
|
|
482
|
+
(workflowFn as ts.ArrowFunction).body as ts.Block,
|
|
483
|
+
ctx,
|
|
484
|
+
);
|
|
485
|
+
return { nodes, functions: ctx.registry };
|
|
486
|
+
};
|
|
487
|
+
|
|
488
|
+
// ─── Structured text renderer ─────────────────────────────────────────────────
|
|
489
|
+
|
|
490
|
+
const INDENT = " ";
|
|
491
|
+
|
|
492
|
+
const riskBadge = (risk: FunctionRisk): string => {
|
|
493
|
+
switch (risk) {
|
|
494
|
+
case "danger":
|
|
495
|
+
return " ⛔";
|
|
496
|
+
case "warn":
|
|
497
|
+
return " ⚠️";
|
|
498
|
+
case "safe":
|
|
499
|
+
return "";
|
|
500
|
+
}
|
|
501
|
+
};
|
|
502
|
+
|
|
503
|
+
export const renderSummaryNode = (
|
|
504
|
+
node: SummaryNode,
|
|
505
|
+
functions: FunctionRegistry,
|
|
506
|
+
depth = 0,
|
|
507
|
+
): string => {
|
|
508
|
+
const pad = INDENT.repeat(depth);
|
|
509
|
+
const posHint = ` [${node.pos.line}:${node.pos.col}]`;
|
|
510
|
+
|
|
511
|
+
switch (node.kind) {
|
|
512
|
+
case "await": {
|
|
513
|
+
const badge = riskBadge(functions[node.fnId]?.risk ?? "safe");
|
|
514
|
+
return (
|
|
515
|
+
`${pad}⏳ await ${node.label}${badge}${posHint}` +
|
|
516
|
+
(node.children ?
|
|
517
|
+
"\n" +
|
|
518
|
+
node.children
|
|
519
|
+
.map((c) => renderSummaryNode(c, functions, depth + 1))
|
|
520
|
+
.join("\n")
|
|
521
|
+
: "")
|
|
522
|
+
);
|
|
523
|
+
}
|
|
524
|
+
case "call": {
|
|
525
|
+
const badge = riskBadge(functions[node.fnId]?.risk ?? "safe");
|
|
526
|
+
return (
|
|
527
|
+
`${pad}▶ ${node.label}${badge}${posHint}` +
|
|
528
|
+
(node.children ?
|
|
529
|
+
"\n" +
|
|
530
|
+
node.children
|
|
531
|
+
.map((c) => renderSummaryNode(c, functions, depth + 1))
|
|
532
|
+
.join("\n")
|
|
533
|
+
: "")
|
|
534
|
+
);
|
|
535
|
+
}
|
|
536
|
+
case "assign":
|
|
537
|
+
return `${pad}📦 ${node.name}${posHint} = ${renderSummaryNode(node.value, functions, 0).trimStart()}`;
|
|
538
|
+
case "fn-def":
|
|
539
|
+
return (
|
|
540
|
+
`${pad}🔧 define ${node.name}${posHint}:\n` +
|
|
541
|
+
node.body
|
|
542
|
+
.map((c) => renderSummaryNode(c, functions, depth + 1))
|
|
543
|
+
.join("\n")
|
|
544
|
+
);
|
|
545
|
+
case "if":
|
|
546
|
+
return (
|
|
547
|
+
`${pad}🔀 if (${node.condition})${posHint}:\n` +
|
|
548
|
+
node.then
|
|
549
|
+
.map((c) => renderSummaryNode(c, functions, depth + 1))
|
|
550
|
+
.join("\n") +
|
|
551
|
+
(node.else ?
|
|
552
|
+
`\n${pad} else:\n` +
|
|
553
|
+
node.else
|
|
554
|
+
.map((c) => renderSummaryNode(c, functions, depth + 1))
|
|
555
|
+
.join("\n")
|
|
556
|
+
: "")
|
|
557
|
+
);
|
|
558
|
+
case "loop":
|
|
559
|
+
return (
|
|
560
|
+
`${pad}🔁 forEach ${node.over}${posHint}:\n` +
|
|
561
|
+
node.body
|
|
562
|
+
.map((c) => renderSummaryNode(c, functions, depth + 1))
|
|
563
|
+
.join("\n")
|
|
564
|
+
);
|
|
565
|
+
case "return":
|
|
566
|
+
return `${pad}↩ return${node.value ? ` ${node.value}` : ""}${posHint}`;
|
|
567
|
+
case "block":
|
|
568
|
+
return node.nodes
|
|
569
|
+
.map((c) => renderSummaryNode(c, functions, depth))
|
|
570
|
+
.join("\n");
|
|
571
|
+
}
|
|
572
|
+
};
|
|
573
|
+
|
|
574
|
+
export const renderSummary = (result: SummaryResult, depth = 0): string =>
|
|
575
|
+
result.nodes
|
|
576
|
+
.map((n) => renderSummaryNode(n, result.functions, depth))
|
|
577
|
+
.join("\n");
|
|
578
|
+
|
|
579
|
+
// ─── Compact one-liner renderer ───────────────────────────────────────────────
|
|
580
|
+
|
|
581
|
+
const walkCompact = (
|
|
582
|
+
node: SummaryNode,
|
|
583
|
+
functions: FunctionRegistry,
|
|
584
|
+
): string => {
|
|
585
|
+
switch (node.kind) {
|
|
586
|
+
case "await":
|
|
587
|
+
case "call": {
|
|
588
|
+
const badge = riskBadge(functions[node.fnId]?.risk ?? "safe");
|
|
589
|
+
const inner =
|
|
590
|
+
node.children?.length ?
|
|
591
|
+
` → [${node.children.map((c) => walkCompact(c, functions)).join(", ")}]`
|
|
592
|
+
: "";
|
|
593
|
+
return `${node.label}${badge}${inner}`;
|
|
594
|
+
}
|
|
595
|
+
case "assign":
|
|
596
|
+
return `${node.name} = ${walkCompact(node.value, functions)}`;
|
|
597
|
+
case "fn-def":
|
|
598
|
+
return `${node.name} { ${node.body.map((c) => walkCompact(c, functions)).join("; ")} }`;
|
|
599
|
+
case "if":
|
|
600
|
+
return `if (${node.condition}) { ${node.then.map((c) => walkCompact(c, functions)).join("; ")} }`;
|
|
601
|
+
case "loop":
|
|
602
|
+
return `forEach(${node.over}) { ${node.body.map((c) => walkCompact(c, functions)).join("; ")} }`;
|
|
603
|
+
case "return":
|
|
604
|
+
return `return${node.value ? ` ${node.value}` : ""}`;
|
|
605
|
+
case "block":
|
|
606
|
+
return node.nodes.map((c) => walkCompact(c, functions)).join(" → ");
|
|
607
|
+
}
|
|
608
|
+
};
|
|
609
|
+
|
|
610
|
+
/**
|
|
611
|
+
* Render nodes as a single chained line:
|
|
612
|
+
* `doResearch() → fetch(url) ⚠️ → if (x < 10) { … } → …`
|
|
613
|
+
*/
|
|
614
|
+
export const renderCompact = (result: SummaryResult): string =>
|
|
615
|
+
result.nodes.map((n) => walkCompact(n, result.functions)).join(" → ");
|
|
616
|
+
|
|
617
|
+
// ─── Registry helpers (useful for React UIs) ──────────────────────────────────
|
|
618
|
+
|
|
619
|
+
/** Returns all functions with risk ≥ the given threshold, sorted by risk then label. */
|
|
620
|
+
export const filterByRisk = (
|
|
621
|
+
registry: FunctionRegistry,
|
|
622
|
+
minRisk: FunctionRisk = "warn",
|
|
623
|
+
): FunctionInfo[] => {
|
|
624
|
+
const order: Record<FunctionRisk, number> = { danger: 2, warn: 1, safe: 0 };
|
|
625
|
+
const threshold = order[minRisk];
|
|
626
|
+
return Object.values(registry)
|
|
627
|
+
.filter((f) => order[f.risk] >= threshold)
|
|
628
|
+
.sort(
|
|
629
|
+
(a, b) => order[b.risk] - order[a.risk] || a.label.localeCompare(b.label),
|
|
630
|
+
);
|
|
631
|
+
};
|
|
632
|
+
|
|
633
|
+
/** Returns a deduplicated list of all risks present in a registry. */
|
|
634
|
+
export const highestRisk = (registry: FunctionRegistry): FunctionRisk => {
|
|
635
|
+
const values = Object.values(registry);
|
|
636
|
+
if (values.some((f) => f.risk === "danger")) return "danger";
|
|
637
|
+
if (values.some((f) => f.risk === "warn")) return "warn";
|
|
638
|
+
return "safe";
|
|
639
|
+
};
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import { callWorkflowProxy } from "./callWorkflowProxy";
|
|
2
|
+
import type { DefineAgenticWorkflow } from "./defineAgenticWorkflow";
|
|
3
|
+
|
|
4
|
+
export const getOrchestrationToolHandlers = (
|
|
5
|
+
definitions: Parameters<DefineAgenticWorkflow>[0],
|
|
6
|
+
) => {
|
|
7
|
+
return new Proxy(
|
|
8
|
+
{},
|
|
9
|
+
{
|
|
10
|
+
get(_target, mcpServerName: string) {
|
|
11
|
+
if (typeof mcpServerName !== "string") return undefined;
|
|
12
|
+
|
|
13
|
+
if (!definitions.orchestrationTools) {
|
|
14
|
+
throw new Error(
|
|
15
|
+
`No tools are allowed for this workflow, but tried to access tool server "${mcpServerName}"`,
|
|
16
|
+
);
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
// eslint-disable-next-line @typescript-eslint/no-unnecessary-type-assertion
|
|
20
|
+
const serverTools = definitions.orchestrationTools[
|
|
21
|
+
// eslint-disable-next-line @typescript-eslint/no-unnecessary-type-assertion
|
|
22
|
+
mcpServerName as keyof typeof definitions.orchestrationTools
|
|
23
|
+
] as Record<string, 1> | undefined;
|
|
24
|
+
if (!serverTools) {
|
|
25
|
+
throw new Error(
|
|
26
|
+
`MCP server "${mcpServerName}" is not defined in orchestrationTools`,
|
|
27
|
+
);
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
return new Proxy(
|
|
31
|
+
{},
|
|
32
|
+
{
|
|
33
|
+
get(_serverTarget, toolName: string) {
|
|
34
|
+
if (typeof toolName !== "string") return undefined;
|
|
35
|
+
|
|
36
|
+
if (!(toolName in serverTools) || serverTools[toolName] !== 1) {
|
|
37
|
+
throw new Error(
|
|
38
|
+
`Tool "${toolName}" is not allowed on MCP server "${mcpServerName}"`,
|
|
39
|
+
);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
return (input?: Record<string, unknown>) =>
|
|
43
|
+
callWorkflowProxy({
|
|
44
|
+
type: "tool",
|
|
45
|
+
serverName: mcpServerName,
|
|
46
|
+
toolName,
|
|
47
|
+
input,
|
|
48
|
+
});
|
|
49
|
+
},
|
|
50
|
+
},
|
|
51
|
+
);
|
|
52
|
+
},
|
|
53
|
+
},
|
|
54
|
+
);
|
|
55
|
+
};
|