donobu 1.0.0
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/dist/apis/AgentsApi.d.ts +12 -0
- package/dist/apis/AgentsApi.js +36 -0
- package/dist/apis/AgentsApi.js.map +1 -0
- package/dist/apis/AskAiApi.d.ts +17 -0
- package/dist/apis/AskAiApi.js +58 -0
- package/dist/apis/AskAiApi.js.map +1 -0
- package/dist/apis/DefaultApiAuthApi.d.ts +17 -0
- package/dist/apis/DefaultApiAuthApi.js +33 -0
- package/dist/apis/DefaultApiAuthApi.js.map +1 -0
- package/dist/apis/FlowsApi.d.ts +40 -0
- package/dist/apis/FlowsApi.js +129 -0
- package/dist/apis/FlowsApi.js.map +1 -0
- package/dist/apis/FlowsFilesApi.d.ts +8 -0
- package/dist/apis/FlowsFilesApi.js +87 -0
- package/dist/apis/FlowsFilesApi.js.map +1 -0
- package/dist/apis/FlowsToolCallsApi.d.ts +18 -0
- package/dist/apis/FlowsToolCallsApi.js +43 -0
- package/dist/apis/FlowsToolCallsApi.js.map +1 -0
- package/dist/apis/GptConfigsApi.d.ts +22 -0
- package/dist/apis/GptConfigsApi.js +77 -0
- package/dist/apis/GptConfigsApi.js.map +1 -0
- package/dist/apis/GptResourcesApi.d.ts +20 -0
- package/dist/apis/GptResourcesApi.js +53 -0
- package/dist/apis/GptResourcesApi.js.map +1 -0
- package/dist/apis/KeysApi.d.ts +25 -0
- package/dist/apis/KeysApi.js +64 -0
- package/dist/apis/KeysApi.js.map +1 -0
- package/dist/apis/PingApi.d.ts +13 -0
- package/dist/apis/PingApi.js +19 -0
- package/dist/apis/PingApi.js.map +1 -0
- package/dist/apis/SpecialFlowsApi.d.ts +17 -0
- package/dist/apis/SpecialFlowsApi.js +430 -0
- package/dist/apis/SpecialFlowsApi.js.map +1 -0
- package/dist/apis/ToolsApi.d.ts +20 -0
- package/dist/apis/ToolsApi.js +26 -0
- package/dist/apis/ToolsApi.js.map +1 -0
- package/dist/apis/VersionApi.d.ts +13 -0
- package/dist/apis/VersionApi.js +20 -0
- package/dist/apis/VersionApi.js.map +1 -0
- package/dist/assets/Donobu.entitlements.plist +28 -0
- package/dist/assets/axe.js +47397 -0
- package/dist/assets/clickable-elements-tracker.js +62 -0
- package/dist/assets/control-panel.js +447 -0
- package/dist/assets/devices.json +1403 -0
- package/dist/assets/dialog-prompt-tracker.js +20 -0
- package/dist/assets/generated/parameter-schemas.json +1518 -0
- package/dist/assets/generated/version +1 -0
- package/dist/assets/icon.png +0 -0
- package/dist/assets/page-interactions-tracker.js +222 -0
- package/dist/assets/smart-selector-generator.js +268 -0
- package/dist/assets/zaru-eyes.html +141 -0
- package/dist/bindings/FocusPage.d.ts +17 -0
- package/dist/bindings/FocusPage.js +27 -0
- package/dist/bindings/FocusPage.js.map +1 -0
- package/dist/bindings/NamedBindingCallback.d.ts +23 -0
- package/dist/bindings/NamedBindingCallback.js +3 -0
- package/dist/bindings/NamedBindingCallback.js.map +1 -0
- package/dist/bindings/PageInteractionTracker.d.ts +28 -0
- package/dist/bindings/PageInteractionTracker.js +102 -0
- package/dist/bindings/PageInteractionTracker.js.map +1 -0
- package/dist/clients/AnthropicAwsBedrockGptClient.d.ts +36 -0
- package/dist/clients/AnthropicAwsBedrockGptClient.js +357 -0
- package/dist/clients/AnthropicAwsBedrockGptClient.js.map +1 -0
- package/dist/clients/AnthropicGptClient.d.ts +36 -0
- package/dist/clients/AnthropicGptClient.js +309 -0
- package/dist/clients/AnthropicGptClient.js.map +1 -0
- package/dist/clients/GoogleGptClient.d.ts +49 -0
- package/dist/clients/GoogleGptClient.js +380 -0
- package/dist/clients/GoogleGptClient.js.map +1 -0
- package/dist/clients/GoogleGptClient2.d.ts +18 -0
- package/dist/clients/GoogleGptClient2.js +237 -0
- package/dist/clients/GoogleGptClient2.js.map +1 -0
- package/dist/clients/GptClient.d.ts +36 -0
- package/dist/clients/GptClient.js +12 -0
- package/dist/clients/GptClient.js.map +1 -0
- package/dist/clients/GptClientFactory.d.ts +5 -0
- package/dist/clients/GptClientFactory.js +39 -0
- package/dist/clients/GptClientFactory.js.map +1 -0
- package/dist/clients/OpenAiGptClient.d.ts +35 -0
- package/dist/clients/OpenAiGptClient.js +269 -0
- package/dist/clients/OpenAiGptClient.js.map +1 -0
- package/dist/clients/SupabaseClient.d.ts +16 -0
- package/dist/clients/SupabaseClient.js +200 -0
- package/dist/clients/SupabaseClient.js.map +1 -0
- package/dist/donobu.fixtures.d.ts +57 -0
- package/dist/donobu.fixtures.js +167 -0
- package/dist/donobu.fixtures.js.map +1 -0
- package/dist/esm/apis/AgentsApi.d.ts +12 -0
- package/dist/esm/apis/AgentsApi.js +36 -0
- package/dist/esm/apis/AgentsApi.js.map +1 -0
- package/dist/esm/apis/AskAiApi.d.ts +17 -0
- package/dist/esm/apis/AskAiApi.js +58 -0
- package/dist/esm/apis/AskAiApi.js.map +1 -0
- package/dist/esm/apis/DefaultApiAuthApi.d.ts +17 -0
- package/dist/esm/apis/DefaultApiAuthApi.js +33 -0
- package/dist/esm/apis/DefaultApiAuthApi.js.map +1 -0
- package/dist/esm/apis/FlowsApi.d.ts +40 -0
- package/dist/esm/apis/FlowsApi.js +129 -0
- package/dist/esm/apis/FlowsApi.js.map +1 -0
- package/dist/esm/apis/FlowsFilesApi.d.ts +8 -0
- package/dist/esm/apis/FlowsFilesApi.js +87 -0
- package/dist/esm/apis/FlowsFilesApi.js.map +1 -0
- package/dist/esm/apis/FlowsToolCallsApi.d.ts +18 -0
- package/dist/esm/apis/FlowsToolCallsApi.js +43 -0
- package/dist/esm/apis/FlowsToolCallsApi.js.map +1 -0
- package/dist/esm/apis/GptConfigsApi.d.ts +22 -0
- package/dist/esm/apis/GptConfigsApi.js +77 -0
- package/dist/esm/apis/GptConfigsApi.js.map +1 -0
- package/dist/esm/apis/GptResourcesApi.d.ts +20 -0
- package/dist/esm/apis/GptResourcesApi.js +53 -0
- package/dist/esm/apis/GptResourcesApi.js.map +1 -0
- package/dist/esm/apis/KeysApi.d.ts +25 -0
- package/dist/esm/apis/KeysApi.js +64 -0
- package/dist/esm/apis/KeysApi.js.map +1 -0
- package/dist/esm/apis/PingApi.d.ts +13 -0
- package/dist/esm/apis/PingApi.js +19 -0
- package/dist/esm/apis/PingApi.js.map +1 -0
- package/dist/esm/apis/SpecialFlowsApi.d.ts +17 -0
- package/dist/esm/apis/SpecialFlowsApi.js +430 -0
- package/dist/esm/apis/SpecialFlowsApi.js.map +1 -0
- package/dist/esm/apis/ToolsApi.d.ts +20 -0
- package/dist/esm/apis/ToolsApi.js +26 -0
- package/dist/esm/apis/ToolsApi.js.map +1 -0
- package/dist/esm/apis/VersionApi.d.ts +13 -0
- package/dist/esm/apis/VersionApi.js +20 -0
- package/dist/esm/apis/VersionApi.js.map +1 -0
- package/dist/esm/assets/Donobu.entitlements.plist +28 -0
- package/dist/esm/assets/axe.js +47397 -0
- package/dist/esm/assets/clickable-elements-tracker.js +62 -0
- package/dist/esm/assets/control-panel.js +447 -0
- package/dist/esm/assets/devices.json +1403 -0
- package/dist/esm/assets/dialog-prompt-tracker.js +20 -0
- package/dist/esm/assets/generated/parameter-schemas.json +1518 -0
- package/dist/esm/assets/generated/version +1 -0
- package/dist/esm/assets/icon.png +0 -0
- package/dist/esm/assets/page-interactions-tracker.js +222 -0
- package/dist/esm/assets/smart-selector-generator.js +268 -0
- package/dist/esm/assets/zaru-eyes.html +141 -0
- package/dist/esm/bindings/FocusPage.d.ts +17 -0
- package/dist/esm/bindings/FocusPage.js +27 -0
- package/dist/esm/bindings/FocusPage.js.map +1 -0
- package/dist/esm/bindings/NamedBindingCallback.d.ts +23 -0
- package/dist/esm/bindings/NamedBindingCallback.js +3 -0
- package/dist/esm/bindings/NamedBindingCallback.js.map +1 -0
- package/dist/esm/bindings/PageInteractionTracker.d.ts +28 -0
- package/dist/esm/bindings/PageInteractionTracker.js +102 -0
- package/dist/esm/bindings/PageInteractionTracker.js.map +1 -0
- package/dist/esm/clients/AnthropicAwsBedrockGptClient.d.ts +36 -0
- package/dist/esm/clients/AnthropicAwsBedrockGptClient.js +357 -0
- package/dist/esm/clients/AnthropicAwsBedrockGptClient.js.map +1 -0
- package/dist/esm/clients/AnthropicGptClient.d.ts +36 -0
- package/dist/esm/clients/AnthropicGptClient.js +309 -0
- package/dist/esm/clients/AnthropicGptClient.js.map +1 -0
- package/dist/esm/clients/GoogleGptClient.d.ts +49 -0
- package/dist/esm/clients/GoogleGptClient.js +380 -0
- package/dist/esm/clients/GoogleGptClient.js.map +1 -0
- package/dist/esm/clients/GptClient.d.ts +36 -0
- package/dist/esm/clients/GptClient.js +12 -0
- package/dist/esm/clients/GptClient.js.map +1 -0
- package/dist/esm/clients/GptClientFactory.d.ts +5 -0
- package/dist/esm/clients/GptClientFactory.js +39 -0
- package/dist/esm/clients/GptClientFactory.js.map +1 -0
- package/dist/esm/clients/OpenAiGptClient.d.ts +35 -0
- package/dist/esm/clients/OpenAiGptClient.js +269 -0
- package/dist/esm/clients/OpenAiGptClient.js.map +1 -0
- package/dist/esm/clients/SupabaseClient.d.ts +16 -0
- package/dist/esm/clients/SupabaseClient.js +200 -0
- package/dist/esm/clients/SupabaseClient.js.map +1 -0
- package/dist/esm/donobu.fixtures.d.ts +57 -0
- package/dist/esm/donobu.fixtures.js +167 -0
- package/dist/esm/donobu.fixtures.js.map +1 -0
- package/dist/esm/exceptions/ActiveFlowNotFoundException.d.ts +10 -0
- package/dist/esm/exceptions/ActiveFlowNotFoundException.js +19 -0
- package/dist/esm/exceptions/ActiveFlowNotFoundException.js.map +1 -0
- package/dist/esm/exceptions/ApiKeyNotSetUpException.d.ts +14 -0
- package/dist/esm/exceptions/ApiKeyNotSetUpException.js +21 -0
- package/dist/esm/exceptions/ApiKeyNotSetUpException.js.map +1 -0
- package/dist/esm/exceptions/BrowserStateNotFoundException.d.ts +8 -0
- package/dist/esm/exceptions/BrowserStateNotFoundException.js +15 -0
- package/dist/esm/exceptions/BrowserStateNotFoundException.js.map +1 -0
- package/dist/esm/exceptions/CannotDeleteRunningFlowException.d.ts +9 -0
- package/dist/esm/exceptions/CannotDeleteRunningFlowException.js +18 -0
- package/dist/esm/exceptions/CannotDeleteRunningFlowException.js.map +1 -0
- package/dist/esm/exceptions/DonobuException.d.ts +12 -0
- package/dist/esm/exceptions/DonobuException.js +39 -0
- package/dist/esm/exceptions/DonobuException.js.map +1 -0
- package/dist/esm/exceptions/FlowNotFoundException.d.ts +6 -0
- package/dist/esm/exceptions/FlowNotFoundException.js +17 -0
- package/dist/esm/exceptions/FlowNotFoundException.js.map +1 -0
- package/dist/esm/exceptions/GptApiKeysNotSetupException.d.ts +4 -0
- package/dist/esm/exceptions/GptApiKeysNotSetupException.js +11 -0
- package/dist/esm/exceptions/GptApiKeysNotSetupException.js.map +1 -0
- package/dist/esm/exceptions/GptConfigNotFoundException.d.ts +8 -0
- package/dist/esm/exceptions/GptConfigNotFoundException.js +16 -0
- package/dist/esm/exceptions/GptConfigNotFoundException.js.map +1 -0
- package/dist/esm/exceptions/GptModelNotFoundException.d.ts +9 -0
- package/dist/esm/exceptions/GptModelNotFoundException.js +18 -0
- package/dist/esm/exceptions/GptModelNotFoundException.js.map +1 -0
- package/dist/esm/exceptions/GptPlatformAuthenticationFailedException.d.ts +6 -0
- package/dist/esm/exceptions/GptPlatformAuthenticationFailedException.js +14 -0
- package/dist/esm/exceptions/GptPlatformAuthenticationFailedException.js.map +1 -0
- package/dist/esm/exceptions/GptPlatformInsufficientQuotaException.d.ts +5 -0
- package/dist/esm/exceptions/GptPlatformInsufficientQuotaException.js +13 -0
- package/dist/esm/exceptions/GptPlatformInsufficientQuotaException.js.map +1 -0
- package/dist/esm/exceptions/GptPlatformInternalErrorException.d.ts +5 -0
- package/dist/esm/exceptions/GptPlatformInternalErrorException.js +12 -0
- package/dist/esm/exceptions/GptPlatformInternalErrorException.js.map +1 -0
- package/dist/esm/exceptions/GptPlatformNotReachableException.d.ts +5 -0
- package/dist/esm/exceptions/GptPlatformNotReachableException.js +13 -0
- package/dist/esm/exceptions/GptPlatformNotReachableException.js.map +1 -0
- package/dist/esm/exceptions/GptPlatformRateLimitedException.d.ts +5 -0
- package/dist/esm/exceptions/GptPlatformRateLimitedException.js +13 -0
- package/dist/esm/exceptions/GptPlatformRateLimitedException.js.map +1 -0
- package/dist/esm/exceptions/GptResourceNotFoundException.d.ts +8 -0
- package/dist/esm/exceptions/GptResourceNotFoundException.js +16 -0
- package/dist/esm/exceptions/GptResourceNotFoundException.js.map +1 -0
- package/dist/esm/exceptions/InvalidParamValueException.d.ts +13 -0
- package/dist/esm/exceptions/InvalidParamValueException.js +25 -0
- package/dist/esm/exceptions/InvalidParamValueException.js.map +1 -0
- package/dist/esm/exceptions/NoApiAccessTokenPresentException.d.ts +8 -0
- package/dist/esm/exceptions/NoApiAccessTokenPresentException.js +15 -0
- package/dist/esm/exceptions/NoApiAccessTokenPresentException.js.map +1 -0
- package/dist/esm/exceptions/PageClosedException.d.ts +6 -0
- package/dist/esm/exceptions/PageClosedException.js +13 -0
- package/dist/esm/exceptions/PageClosedException.js.map +1 -0
- package/dist/esm/exceptions/TooManyRequestsException.d.ts +5 -0
- package/dist/esm/exceptions/TooManyRequestsException.js +13 -0
- package/dist/esm/exceptions/TooManyRequestsException.js.map +1 -0
- package/dist/esm/exceptions/ToolCallNotFoundException.d.ts +6 -0
- package/dist/esm/exceptions/ToolCallNotFoundException.js +14 -0
- package/dist/esm/exceptions/ToolCallNotFoundException.js.map +1 -0
- package/dist/esm/exceptions/ToolRequiresGptException.d.ts +5 -0
- package/dist/esm/exceptions/ToolRequiresGptException.js +13 -0
- package/dist/esm/exceptions/ToolRequiresGptException.js.map +1 -0
- package/dist/esm/exceptions/UnknownToolException.d.ts +5 -0
- package/dist/esm/exceptions/UnknownToolException.js +13 -0
- package/dist/esm/exceptions/UnknownToolException.js.map +1 -0
- package/dist/esm/exceptions/UnparseableJsonBodyException.d.ts +4 -0
- package/dist/esm/exceptions/UnparseableJsonBodyException.js +12 -0
- package/dist/esm/exceptions/UnparseableJsonBodyException.js.map +1 -0
- package/dist/esm/main.d.ts +21 -0
- package/dist/esm/main.js +143 -0
- package/dist/esm/main.js.map +1 -0
- package/dist/esm/managers/AdminApiController.d.ts +32 -0
- package/dist/esm/managers/AdminApiController.js +251 -0
- package/dist/esm/managers/AdminApiController.js.map +1 -0
- package/dist/esm/managers/AgentsManager.d.ts +28 -0
- package/dist/esm/managers/AgentsManager.js +75 -0
- package/dist/esm/managers/AgentsManager.js.map +1 -0
- package/dist/esm/managers/DonobuFlow.d.ts +115 -0
- package/dist/esm/managers/DonobuFlow.js +1070 -0
- package/dist/esm/managers/DonobuFlow.js.map +1 -0
- package/dist/esm/managers/DonobuFlowsManager.d.ts +130 -0
- package/dist/esm/managers/DonobuFlowsManager.js +830 -0
- package/dist/esm/managers/DonobuFlowsManager.js.map +1 -0
- package/dist/esm/managers/FlowsPersistence.d.ts +79 -0
- package/dist/esm/managers/FlowsPersistence.js +3 -0
- package/dist/esm/managers/FlowsPersistence.js.map +1 -0
- package/dist/esm/managers/FlowsPersistenceAwsS3.d.ts +48 -0
- package/dist/esm/managers/FlowsPersistenceAwsS3.js +284 -0
- package/dist/esm/managers/FlowsPersistenceAwsS3.js.map +1 -0
- package/dist/esm/managers/FlowsPersistenceFactory.d.ts +9 -0
- package/dist/esm/managers/FlowsPersistenceFactory.js +3 -0
- package/dist/esm/managers/FlowsPersistenceFactory.js.map +1 -0
- package/dist/esm/managers/FlowsPersistenceFactoryImpl.d.ts +57 -0
- package/dist/esm/managers/FlowsPersistenceFactoryImpl.js +119 -0
- package/dist/esm/managers/FlowsPersistenceFactoryImpl.js.map +1 -0
- package/dist/esm/managers/FlowsPersistenceFactoryPreset.d.ts +12 -0
- package/dist/esm/managers/FlowsPersistenceFactoryPreset.js +25 -0
- package/dist/esm/managers/FlowsPersistenceFactoryPreset.js.map +1 -0
- package/dist/esm/managers/FlowsPersistenceFilesystem.d.ts +33 -0
- package/dist/esm/managers/FlowsPersistenceFilesystem.js +180 -0
- package/dist/esm/managers/FlowsPersistenceFilesystem.js.map +1 -0
- package/dist/esm/managers/FlowsPersistenceGoogleCloudStorage.d.ts +40 -0
- package/dist/esm/managers/FlowsPersistenceGoogleCloudStorage.js +209 -0
- package/dist/esm/managers/FlowsPersistenceGoogleCloudStorage.js.map +1 -0
- package/dist/esm/managers/FlowsPersistenceSupabase.d.ts +33 -0
- package/dist/esm/managers/FlowsPersistenceSupabase.js +152 -0
- package/dist/esm/managers/FlowsPersistenceSupabase.js.map +1 -0
- package/dist/esm/managers/FlowsPersistenceVolatile.d.ts +30 -0
- package/dist/esm/managers/FlowsPersistenceVolatile.js +103 -0
- package/dist/esm/managers/FlowsPersistenceVolatile.js.map +1 -0
- package/dist/esm/managers/GptConfigsManager.d.ts +38 -0
- package/dist/esm/managers/GptConfigsManager.js +159 -0
- package/dist/esm/managers/GptConfigsManager.js.map +1 -0
- package/dist/esm/managers/GptPlatformApiKeysManager.d.ts +36 -0
- package/dist/esm/managers/GptPlatformApiKeysManager.js +3 -0
- package/dist/esm/managers/GptPlatformApiKeysManager.js.map +1 -0
- package/dist/esm/managers/GptPlatformApiKeysManagerFilesystem.d.ts +29 -0
- package/dist/esm/managers/GptPlatformApiKeysManagerFilesystem.js +136 -0
- package/dist/esm/managers/GptPlatformApiKeysManagerFilesystem.js.map +1 -0
- package/dist/esm/managers/GptPlatformApiKeysManagerVolatile.d.ts +35 -0
- package/dist/esm/managers/GptPlatformApiKeysManagerVolatile.js +51 -0
- package/dist/esm/managers/GptPlatformApiKeysManagerVolatile.js.map +1 -0
- package/dist/esm/managers/GptResourcesManager.d.ts +39 -0
- package/dist/esm/managers/GptResourcesManager.js +130 -0
- package/dist/esm/managers/GptResourcesManager.js.map +1 -0
- package/dist/esm/managers/RequestContextHolder.d.ts +24 -0
- package/dist/esm/managers/RequestContextHolder.js +43 -0
- package/dist/esm/managers/RequestContextHolder.js.map +1 -0
- package/dist/esm/managers/SelectorGenerator.d.ts +8 -0
- package/dist/esm/managers/SelectorGenerator.js +15 -0
- package/dist/esm/managers/SelectorGenerator.js.map +1 -0
- package/dist/esm/managers/ToolManager.d.ts +21 -0
- package/dist/esm/managers/ToolManager.js +264 -0
- package/dist/esm/managers/ToolManager.js.map +1 -0
- package/dist/esm/managers/ToolTipper.d.ts +35 -0
- package/dist/esm/managers/ToolTipper.js +201 -0
- package/dist/esm/managers/ToolTipper.js.map +1 -0
- package/dist/esm/models/AskAiRequest.d.ts +14 -0
- package/dist/esm/models/AskAiRequest.js +3 -0
- package/dist/esm/models/AskAiRequest.js.map +1 -0
- package/dist/esm/models/BaseToolGptParameters.d.ts +9 -0
- package/dist/esm/models/BaseToolGptParameters.js +3 -0
- package/dist/esm/models/BaseToolGptParameters.js.map +1 -0
- package/dist/esm/models/BrowserDevice.d.ts +18 -0
- package/dist/esm/models/BrowserDevice.js +3 -0
- package/dist/esm/models/BrowserDevice.js.map +1 -0
- package/dist/esm/models/BrowserFramework.d.ts +36 -0
- package/dist/esm/models/BrowserFramework.js +164 -0
- package/dist/esm/models/BrowserFramework.js.map +1 -0
- package/dist/esm/models/BrowserState.d.ts +25 -0
- package/dist/esm/models/BrowserState.js +3 -0
- package/dist/esm/models/BrowserState.js.map +1 -0
- package/dist/esm/models/BrowserStateFlowReference.d.ts +10 -0
- package/dist/esm/models/BrowserStateFlowReference.js +3 -0
- package/dist/esm/models/BrowserStateFlowReference.js.map +1 -0
- package/dist/esm/models/CreateDonobuFlow.d.ts +88 -0
- package/dist/esm/models/CreateDonobuFlow.js +3 -0
- package/dist/esm/models/CreateDonobuFlow.js.map +1 -0
- package/dist/esm/models/CreateGoogleSteetviewExtractionFlow.d.ts +21 -0
- package/dist/esm/models/CreateGoogleSteetviewExtractionFlow.js +3 -0
- package/dist/esm/models/CreateGoogleSteetviewExtractionFlow.js.map +1 -0
- package/dist/esm/models/CustomTool.d.ts +9 -0
- package/dist/esm/models/CustomTool.js +3 -0
- package/dist/esm/models/CustomTool.js.map +1 -0
- package/dist/esm/models/DonobuAgentType.d.ts +2 -0
- package/dist/esm/models/DonobuAgentType.js +5 -0
- package/dist/esm/models/DonobuAgentType.js.map +1 -0
- package/dist/esm/models/DonobuDeploymentEnvironment.d.ts +5 -0
- package/dist/esm/models/DonobuDeploymentEnvironment.js +10 -0
- package/dist/esm/models/DonobuDeploymentEnvironment.js.map +1 -0
- package/dist/esm/models/DonobuErrorResponse.d.ts +13 -0
- package/dist/esm/models/DonobuErrorResponse.js +3 -0
- package/dist/esm/models/DonobuErrorResponse.js.map +1 -0
- package/dist/esm/models/ElementSelector.d.ts +14 -0
- package/dist/esm/models/ElementSelector.js +3 -0
- package/dist/esm/models/ElementSelector.js.map +1 -0
- package/dist/esm/models/ElementSelectorForReplay.d.ts +14 -0
- package/dist/esm/models/ElementSelectorForReplay.js +3 -0
- package/dist/esm/models/ElementSelectorForReplay.js.map +1 -0
- package/dist/esm/models/FlowMetadata.d.ts +123 -0
- package/dist/esm/models/FlowMetadata.js +50 -0
- package/dist/esm/models/FlowMetadata.js.map +1 -0
- package/dist/esm/models/FlowsQuery.d.ts +11 -0
- package/dist/esm/models/FlowsQuery.js +3 -0
- package/dist/esm/models/FlowsQuery.js.map +1 -0
- package/dist/esm/models/FocusedPage.d.ts +4 -0
- package/dist/esm/models/FocusedPage.js +3 -0
- package/dist/esm/models/FocusedPage.js.map +1 -0
- package/dist/esm/models/GptConfig.d.ts +38 -0
- package/dist/esm/models/GptConfig.js +3 -0
- package/dist/esm/models/GptConfig.js.map +1 -0
- package/dist/esm/models/GptMessage.d.ts +43 -0
- package/dist/esm/models/GptMessage.js +3 -0
- package/dist/esm/models/GptMessage.js.map +1 -0
- package/dist/esm/models/GptResource.d.ts +33 -0
- package/dist/esm/models/GptResource.js +3 -0
- package/dist/esm/models/GptResource.js.map +1 -0
- package/dist/esm/models/InteractableElement.d.ts +13 -0
- package/dist/esm/models/InteractableElement.js +3 -0
- package/dist/esm/models/InteractableElement.js.map +1 -0
- package/dist/esm/models/ProposedToolCall.d.ts +19 -0
- package/dist/esm/models/ProposedToolCall.js +3 -0
- package/dist/esm/models/ProposedToolCall.js.map +1 -0
- package/dist/esm/models/RequestContext.d.ts +21 -0
- package/dist/esm/models/RequestContext.js +24 -0
- package/dist/esm/models/RequestContext.js.map +1 -0
- package/dist/esm/models/ToolCall.d.ts +38 -0
- package/dist/esm/models/ToolCall.js +3 -0
- package/dist/esm/models/ToolCall.js.map +1 -0
- package/dist/esm/models/ToolCallContext.d.ts +22 -0
- package/dist/esm/models/ToolCallContext.js +3 -0
- package/dist/esm/models/ToolCallContext.js.map +1 -0
- package/dist/esm/models/ToolCallResult.d.ts +20 -0
- package/dist/esm/models/ToolCallResult.js +19 -0
- package/dist/esm/models/ToolCallResult.js.map +1 -0
- package/dist/esm/models/VideoSegment.d.ts +20 -0
- package/dist/esm/models/VideoSegment.js +3 -0
- package/dist/esm/models/VideoSegment.js.map +1 -0
- package/dist/esm/persistence/AgentsPersistence.d.ts +11 -0
- package/dist/esm/persistence/AgentsPersistence.js +3 -0
- package/dist/esm/persistence/AgentsPersistence.js.map +1 -0
- package/dist/esm/persistence/AgentsPersistenceFilesystem.d.ts +15 -0
- package/dist/esm/persistence/AgentsPersistenceFilesystem.js +48 -0
- package/dist/esm/persistence/AgentsPersistenceFilesystem.js.map +1 -0
- package/dist/esm/persistence/AgentsPersistenceSqlite.d.ts +14 -0
- package/dist/esm/persistence/AgentsPersistenceSqlite.js +51 -0
- package/dist/esm/persistence/AgentsPersistenceSqlite.js.map +1 -0
- package/dist/esm/persistence/AgentsPersistenceVolatile.d.ts +13 -0
- package/dist/esm/persistence/AgentsPersistenceVolatile.js +27 -0
- package/dist/esm/persistence/AgentsPersistenceVolatile.js.map +1 -0
- package/dist/esm/persistence/DonobuSqliteDb.d.ts +11 -0
- package/dist/esm/persistence/DonobuSqliteDb.js +178 -0
- package/dist/esm/persistence/DonobuSqliteDb.js.map +1 -0
- package/dist/esm/persistence/FlowsPersistence.d.ts +94 -0
- package/dist/esm/persistence/FlowsPersistence.js +3 -0
- package/dist/esm/persistence/FlowsPersistence.js.map +1 -0
- package/dist/esm/persistence/FlowsPersistenceAwsS3.d.ts +70 -0
- package/dist/esm/persistence/FlowsPersistenceAwsS3.js +447 -0
- package/dist/esm/persistence/FlowsPersistenceAwsS3.js.map +1 -0
- package/dist/esm/persistence/FlowsPersistenceFactory.d.ts +9 -0
- package/dist/esm/persistence/FlowsPersistenceFactory.js +3 -0
- package/dist/esm/persistence/FlowsPersistenceFactory.js.map +1 -0
- package/dist/esm/persistence/FlowsPersistenceFactoryImpl.d.ts +60 -0
- package/dist/esm/persistence/FlowsPersistenceFactoryImpl.js +244 -0
- package/dist/esm/persistence/FlowsPersistenceFactoryImpl.js.map +1 -0
- package/dist/esm/persistence/FlowsPersistenceFactoryPreset.d.ts +12 -0
- package/dist/esm/persistence/FlowsPersistenceFactoryPreset.js +25 -0
- package/dist/esm/persistence/FlowsPersistenceFactoryPreset.js.map +1 -0
- package/dist/esm/persistence/FlowsPersistenceFilesystem.d.ts +42 -0
- package/dist/esm/persistence/FlowsPersistenceFilesystem.js +271 -0
- package/dist/esm/persistence/FlowsPersistenceFilesystem.js.map +1 -0
- package/dist/esm/persistence/FlowsPersistenceGoogleCloudStorage.d.ts +62 -0
- package/dist/esm/persistence/FlowsPersistenceGoogleCloudStorage.js +406 -0
- package/dist/esm/persistence/FlowsPersistenceGoogleCloudStorage.js.map +1 -0
- package/dist/esm/persistence/FlowsPersistenceSqlite.d.ts +37 -0
- package/dist/esm/persistence/FlowsPersistenceSqlite.js +229 -0
- package/dist/esm/persistence/FlowsPersistenceSqlite.js.map +1 -0
- package/dist/esm/persistence/FlowsPersistenceSupabase.d.ts +38 -0
- package/dist/esm/persistence/FlowsPersistenceSupabase.js +216 -0
- package/dist/esm/persistence/FlowsPersistenceSupabase.js.map +1 -0
- package/dist/esm/persistence/FlowsPersistenceVolatile.d.ts +35 -0
- package/dist/esm/persistence/FlowsPersistenceVolatile.js +147 -0
- package/dist/esm/persistence/FlowsPersistenceVolatile.js.map +1 -0
- package/dist/esm/persistence/GptConfigsPersistence.d.ts +11 -0
- package/dist/esm/persistence/GptConfigsPersistence.js +3 -0
- package/dist/esm/persistence/GptConfigsPersistence.js.map +1 -0
- package/dist/esm/persistence/GptConfigsPersistenceFilesystem.d.ts +16 -0
- package/dist/esm/persistence/GptConfigsPersistenceFilesystem.js +54 -0
- package/dist/esm/persistence/GptConfigsPersistenceFilesystem.js.map +1 -0
- package/dist/esm/persistence/GptConfigsPersistenceSqlite.d.ts +12 -0
- package/dist/esm/persistence/GptConfigsPersistenceSqlite.js +36 -0
- package/dist/esm/persistence/GptConfigsPersistenceSqlite.js.map +1 -0
- package/dist/esm/persistence/GptConfigsPersistenceVolatile.d.ts +14 -0
- package/dist/esm/persistence/GptConfigsPersistenceVolatile.js +32 -0
- package/dist/esm/persistence/GptConfigsPersistenceVolatile.js.map +1 -0
- package/dist/esm/persistence/GptResourcesPersistence.d.ts +11 -0
- package/dist/esm/persistence/GptResourcesPersistence.js +3 -0
- package/dist/esm/persistence/GptResourcesPersistence.js.map +1 -0
- package/dist/esm/persistence/GptResourcesPersistenceFilesystem.d.ts +20 -0
- package/dist/esm/persistence/GptResourcesPersistenceFilesystem.js +79 -0
- package/dist/esm/persistence/GptResourcesPersistenceFilesystem.js.map +1 -0
- package/dist/esm/persistence/GptResourcesPersistenceVolatile.d.ts +14 -0
- package/dist/esm/persistence/GptResourcesPersistenceVolatile.js +32 -0
- package/dist/esm/persistence/GptResourcesPersistenceVolatile.js.map +1 -0
- package/dist/esm/test.d.ts +66 -0
- package/dist/esm/test.js +288 -0
- package/dist/esm/test.js.map +1 -0
- package/dist/esm/testfixtures.d.ts +66 -0
- package/dist/esm/testfixtures.js +288 -0
- package/dist/esm/testfixtures.js.map +1 -0
- package/dist/esm/tools/AggregateExtractedStreetviewDataTool.d.ts +24 -0
- package/dist/esm/tools/AggregateExtractedStreetviewDataTool.js +61 -0
- package/dist/esm/tools/AggregateExtractedStreetviewDataTool.js.map +1 -0
- package/dist/esm/tools/AnalyzePageTextTool.d.ts +22 -0
- package/dist/esm/tools/AnalyzePageTextTool.js +59 -0
- package/dist/esm/tools/AnalyzePageTextTool.js.map +1 -0
- package/dist/esm/tools/AssertTool.d.ts +24 -0
- package/dist/esm/tools/AssertTool.js +56 -0
- package/dist/esm/tools/AssertTool.js.map +1 -0
- package/dist/esm/tools/ChangeWebBrowserTabTool.d.ts +18 -0
- package/dist/esm/tools/ChangeWebBrowserTabTool.js +36 -0
- package/dist/esm/tools/ChangeWebBrowserTabTool.js.map +1 -0
- package/dist/esm/tools/ChooseSelectOptionTool.d.ts +18 -0
- package/dist/esm/tools/ChooseSelectOptionTool.js +18 -0
- package/dist/esm/tools/ChooseSelectOptionTool.js.map +1 -0
- package/dist/esm/tools/ClickButtonTool.d.ts +14 -0
- package/dist/esm/tools/ClickButtonTool.js +36 -0
- package/dist/esm/tools/ClickButtonTool.js.map +1 -0
- package/dist/esm/tools/ClickTool.d.ts +14 -0
- package/dist/esm/tools/ClickTool.js +36 -0
- package/dist/esm/tools/ClickTool.js.map +1 -0
- package/dist/esm/tools/CreateBrowserCookieReportTool.d.ts +15 -0
- package/dist/esm/tools/CreateBrowserCookieReportTool.js +98 -0
- package/dist/esm/tools/CreateBrowserCookieReportTool.js.map +1 -0
- package/dist/esm/tools/CustomToolRunnerTool.d.ts +14 -0
- package/dist/esm/tools/CustomToolRunnerTool.js +35 -0
- package/dist/esm/tools/CustomToolRunnerTool.js.map +1 -0
- package/dist/esm/tools/DetectBrokenLinksTool.d.ts +38 -0
- package/dist/esm/tools/DetectBrokenLinksTool.js +264 -0
- package/dist/esm/tools/DetectBrokenLinksTool.js.map +1 -0
- package/dist/esm/tools/DownloadPdfTool.d.ts +19 -0
- package/dist/esm/tools/DownloadPdfTool.js +48 -0
- package/dist/esm/tools/DownloadPdfTool.js.map +1 -0
- package/dist/esm/tools/ExtractGoogleStreetviewEntityDataTool.d.ts +50 -0
- package/dist/esm/tools/ExtractGoogleStreetviewEntityDataTool.js +176 -0
- package/dist/esm/tools/ExtractGoogleStreetviewEntityDataTool.js.map +1 -0
- package/dist/esm/tools/ExtractPaymentProviderKeyTool.d.ts +16 -0
- package/dist/esm/tools/ExtractPaymentProviderKeyTool.js +80 -0
- package/dist/esm/tools/ExtractPaymentProviderKeyTool.js.map +1 -0
- package/dist/esm/tools/ExtractPublicFacebookEntityDataTool.d.ts +27 -0
- package/dist/esm/tools/ExtractPublicFacebookEntityDataTool.js +232 -0
- package/dist/esm/tools/ExtractPublicFacebookEntityDataTool.js.map +1 -0
- package/dist/esm/tools/GetEntityDataFromGoogleMapResult.d.ts +27 -0
- package/dist/esm/tools/GetEntityDataFromGoogleMapResult.js +36 -0
- package/dist/esm/tools/GetEntityDataFromGoogleMapResult.js.map +1 -0
- package/dist/esm/tools/GoForwardOrBackTool.d.ts +22 -0
- package/dist/esm/tools/GoForwardOrBackTool.js +37 -0
- package/dist/esm/tools/GoForwardOrBackTool.js.map +1 -0
- package/dist/esm/tools/GoToGoogleMapsStreetViewTool.d.ts +37 -0
- package/dist/esm/tools/GoToGoogleMapsStreetViewTool.js +119 -0
- package/dist/esm/tools/GoToGoogleMapsStreetViewTool.js.map +1 -0
- package/dist/esm/tools/GoToWebpageTool.d.ts +20 -0
- package/dist/esm/tools/GoToWebpageTool.js +40 -0
- package/dist/esm/tools/GoToWebpageTool.js.map +1 -0
- package/dist/esm/tools/HandleBrowserDialogTool.d.ts +26 -0
- package/dist/esm/tools/HandleBrowserDialogTool.js +22 -0
- package/dist/esm/tools/HandleBrowserDialogTool.js.map +1 -0
- package/dist/esm/tools/HoverOverElementTool.d.ts +15 -0
- package/dist/esm/tools/HoverOverElementTool.js +18 -0
- package/dist/esm/tools/HoverOverElementTool.js.map +1 -0
- package/dist/esm/tools/InputRandomizedEmailAddressTool.d.ts +27 -0
- package/dist/esm/tools/InputRandomizedEmailAddressTool.js +74 -0
- package/dist/esm/tools/InputRandomizedEmailAddressTool.js.map +1 -0
- package/dist/esm/tools/InputTextTool.d.ts +24 -0
- package/dist/esm/tools/InputTextTool.js +48 -0
- package/dist/esm/tools/InputTextTool.js.map +1 -0
- package/dist/esm/tools/MakeCommentTool.d.ts +21 -0
- package/dist/esm/tools/MakeCommentTool.js +31 -0
- package/dist/esm/tools/MakeCommentTool.js.map +1 -0
- package/dist/esm/tools/MarkObjectiveCompleteTool.d.ts +27 -0
- package/dist/esm/tools/MarkObjectiveCompleteTool.js +39 -0
- package/dist/esm/tools/MarkObjectiveCompleteTool.js.map +1 -0
- package/dist/esm/tools/MarkObjectiveNotCompletableTool.d.ts +14 -0
- package/dist/esm/tools/MarkObjectiveNotCompletableTool.js +35 -0
- package/dist/esm/tools/MarkObjectiveNotCompletableTool.js.map +1 -0
- package/dist/esm/tools/NavigateToWebpageTool.d.ts +20 -0
- package/dist/esm/tools/NavigateToWebpageTool.js +40 -0
- package/dist/esm/tools/NavigateToWebpageTool.js.map +1 -0
- package/dist/esm/tools/NavigateWithinStreetView.d.ts +38 -0
- package/dist/esm/tools/NavigateWithinStreetView.js +107 -0
- package/dist/esm/tools/NavigateWithinStreetView.js.map +1 -0
- package/dist/esm/tools/PauseForUserInteractionTool.d.ts +18 -0
- package/dist/esm/tools/PauseForUserInteractionTool.js +24 -0
- package/dist/esm/tools/PauseForUserInteractionTool.js.map +1 -0
- package/dist/esm/tools/PressKeyTool.d.ts +18 -0
- package/dist/esm/tools/PressKeyTool.js +43 -0
- package/dist/esm/tools/PressKeyTool.js.map +1 -0
- package/dist/esm/tools/ReloadPageTool.d.ts +14 -0
- package/dist/esm/tools/ReloadPageTool.js +20 -0
- package/dist/esm/tools/ReloadPageTool.js.map +1 -0
- package/dist/esm/tools/ReplayableInteraction.d.ts +62 -0
- package/dist/esm/tools/ReplayableInteraction.js +170 -0
- package/dist/esm/tools/ReplayableInteraction.js.map +1 -0
- package/dist/esm/tools/RunAccessibilityTestTool.d.ts +14 -0
- package/dist/esm/tools/RunAccessibilityTestTool.js +49 -0
- package/dist/esm/tools/RunAccessibilityTestTool.js.map +1 -0
- package/dist/esm/tools/RunInlineJavaScriptCodeTool.d.ts +17 -0
- package/dist/esm/tools/RunInlineJavaScriptCodeTool.js +30 -0
- package/dist/esm/tools/RunInlineJavaScriptCodeTool.js.map +1 -0
- package/dist/esm/tools/RunSandboxedJavaScriptCodeTool.d.ts +18 -0
- package/dist/esm/tools/RunSandboxedJavaScriptCodeTool.js +43 -0
- package/dist/esm/tools/RunSandboxedJavaScriptCodeTool.js.map +1 -0
- package/dist/esm/tools/SaveWebpageAsPdfTool.d.ts +15 -0
- package/dist/esm/tools/SaveWebpageAsPdfTool.js +27 -0
- package/dist/esm/tools/SaveWebpageAsPdfTool.js.map +1 -0
- package/dist/esm/tools/ScrollPageTool.d.ts +18 -0
- package/dist/esm/tools/ScrollPageTool.js +21 -0
- package/dist/esm/tools/ScrollPageTool.js.map +1 -0
- package/dist/esm/tools/SetRunModeTool.d.ts +20 -0
- package/dist/esm/tools/SetRunModeTool.js +22 -0
- package/dist/esm/tools/SetRunModeTool.js.map +1 -0
- package/dist/esm/tools/SummarizeLearningsTool.d.ts +21 -0
- package/dist/esm/tools/SummarizeLearningsTool.js +31 -0
- package/dist/esm/tools/SummarizeLearningsTool.js.map +1 -0
- package/dist/esm/tools/Tool.d.ts +35 -0
- package/dist/esm/tools/Tool.js +38 -0
- package/dist/esm/tools/Tool.js.map +1 -0
- package/dist/esm/tools/TriggerDonobuFlowTool.d.ts +19 -0
- package/dist/esm/tools/TriggerDonobuFlowTool.js +26 -0
- package/dist/esm/tools/TriggerDonobuFlowTool.js.map +1 -0
- package/dist/esm/tools/WaitTool.d.ts +18 -0
- package/dist/esm/tools/WaitTool.js +20 -0
- package/dist/esm/tools/WaitTool.js.map +1 -0
- package/dist/esm/utils/DirectoryUtils.d.ts +11 -0
- package/dist/esm/utils/DirectoryUtils.js +37 -0
- package/dist/esm/utils/DirectoryUtils.js.map +1 -0
- package/dist/esm/utils/JsonUtils.d.ts +19 -0
- package/dist/esm/utils/JsonUtils.js +124 -0
- package/dist/esm/utils/JsonUtils.js.map +1 -0
- package/dist/esm/utils/Logger.d.ts +17 -0
- package/dist/esm/utils/Logger.js +95 -0
- package/dist/esm/utils/Logger.js.map +1 -0
- package/dist/esm/utils/MiscUtils.d.ts +62 -0
- package/dist/esm/utils/MiscUtils.js +164 -0
- package/dist/esm/utils/MiscUtils.js.map +1 -0
- package/dist/esm/utils/PlaywrightUtils.d.ts +180 -0
- package/dist/esm/utils/PlaywrightUtils.js +1086 -0
- package/dist/esm/utils/PlaywrightUtils.js.map +1 -0
- package/dist/esm/utils/VerbConverter.d.ts +14 -0
- package/dist/esm/utils/VerbConverter.js +96 -0
- package/dist/esm/utils/VerbConverter.js.map +1 -0
- package/dist/exceptions/ActiveFlowNotFoundException.d.ts +10 -0
- package/dist/exceptions/ActiveFlowNotFoundException.js +19 -0
- package/dist/exceptions/ActiveFlowNotFoundException.js.map +1 -0
- package/dist/exceptions/ApiKeyNotSetUpException.d.ts +14 -0
- package/dist/exceptions/ApiKeyNotSetUpException.js +21 -0
- package/dist/exceptions/ApiKeyNotSetUpException.js.map +1 -0
- package/dist/exceptions/BrowserStateNotFoundException.d.ts +8 -0
- package/dist/exceptions/BrowserStateNotFoundException.js +15 -0
- package/dist/exceptions/BrowserStateNotFoundException.js.map +1 -0
- package/dist/exceptions/CannotDeleteRunningFlowException.d.ts +9 -0
- package/dist/exceptions/CannotDeleteRunningFlowException.js +18 -0
- package/dist/exceptions/CannotDeleteRunningFlowException.js.map +1 -0
- package/dist/exceptions/DonobuException.d.ts +12 -0
- package/dist/exceptions/DonobuException.js +39 -0
- package/dist/exceptions/DonobuException.js.map +1 -0
- package/dist/exceptions/FlowNotFoundException.d.ts +6 -0
- package/dist/exceptions/FlowNotFoundException.js +17 -0
- package/dist/exceptions/FlowNotFoundException.js.map +1 -0
- package/dist/exceptions/GptApiKeysNotSetupException.d.ts +4 -0
- package/dist/exceptions/GptApiKeysNotSetupException.js +11 -0
- package/dist/exceptions/GptApiKeysNotSetupException.js.map +1 -0
- package/dist/exceptions/GptConfigNotFoundException.d.ts +8 -0
- package/dist/exceptions/GptConfigNotFoundException.js +16 -0
- package/dist/exceptions/GptConfigNotFoundException.js.map +1 -0
- package/dist/exceptions/GptModelNotFoundException.d.ts +9 -0
- package/dist/exceptions/GptModelNotFoundException.js +18 -0
- package/dist/exceptions/GptModelNotFoundException.js.map +1 -0
- package/dist/exceptions/GptPlatformAuthenticationFailedException.d.ts +6 -0
- package/dist/exceptions/GptPlatformAuthenticationFailedException.js +14 -0
- package/dist/exceptions/GptPlatformAuthenticationFailedException.js.map +1 -0
- package/dist/exceptions/GptPlatformInsufficientQuotaException.d.ts +5 -0
- package/dist/exceptions/GptPlatformInsufficientQuotaException.js +13 -0
- package/dist/exceptions/GptPlatformInsufficientQuotaException.js.map +1 -0
- package/dist/exceptions/GptPlatformInternalErrorException.d.ts +5 -0
- package/dist/exceptions/GptPlatformInternalErrorException.js +12 -0
- package/dist/exceptions/GptPlatformInternalErrorException.js.map +1 -0
- package/dist/exceptions/GptPlatformNotReachableException.d.ts +5 -0
- package/dist/exceptions/GptPlatformNotReachableException.js +13 -0
- package/dist/exceptions/GptPlatformNotReachableException.js.map +1 -0
- package/dist/exceptions/GptPlatformRateLimitedException.d.ts +5 -0
- package/dist/exceptions/GptPlatformRateLimitedException.js +13 -0
- package/dist/exceptions/GptPlatformRateLimitedException.js.map +1 -0
- package/dist/exceptions/GptResourceNotFoundException.d.ts +8 -0
- package/dist/exceptions/GptResourceNotFoundException.js +16 -0
- package/dist/exceptions/GptResourceNotFoundException.js.map +1 -0
- package/dist/exceptions/InvalidParamValueException.d.ts +13 -0
- package/dist/exceptions/InvalidParamValueException.js +25 -0
- package/dist/exceptions/InvalidParamValueException.js.map +1 -0
- package/dist/exceptions/NoApiAccessTokenPresentException.d.ts +8 -0
- package/dist/exceptions/NoApiAccessTokenPresentException.js +15 -0
- package/dist/exceptions/NoApiAccessTokenPresentException.js.map +1 -0
- package/dist/exceptions/PageClosedException.d.ts +6 -0
- package/dist/exceptions/PageClosedException.js +13 -0
- package/dist/exceptions/PageClosedException.js.map +1 -0
- package/dist/exceptions/TooManyRequestsException.d.ts +5 -0
- package/dist/exceptions/TooManyRequestsException.js +13 -0
- package/dist/exceptions/TooManyRequestsException.js.map +1 -0
- package/dist/exceptions/ToolCallNotFoundException.d.ts +6 -0
- package/dist/exceptions/ToolCallNotFoundException.js +14 -0
- package/dist/exceptions/ToolCallNotFoundException.js.map +1 -0
- package/dist/exceptions/ToolRequiresGptException.d.ts +5 -0
- package/dist/exceptions/ToolRequiresGptException.js +13 -0
- package/dist/exceptions/ToolRequiresGptException.js.map +1 -0
- package/dist/exceptions/UnknownToolException.d.ts +5 -0
- package/dist/exceptions/UnknownToolException.js +13 -0
- package/dist/exceptions/UnknownToolException.js.map +1 -0
- package/dist/exceptions/UnparseableJsonBodyException.d.ts +4 -0
- package/dist/exceptions/UnparseableJsonBodyException.js +12 -0
- package/dist/exceptions/UnparseableJsonBodyException.js.map +1 -0
- package/dist/main.d.ts +21 -0
- package/dist/main.js +143 -0
- package/dist/main.js.map +1 -0
- package/dist/managers/AdminApiController.d.ts +32 -0
- package/dist/managers/AdminApiController.js +251 -0
- package/dist/managers/AdminApiController.js.map +1 -0
- package/dist/managers/AgentsManager.d.ts +28 -0
- package/dist/managers/AgentsManager.js +75 -0
- package/dist/managers/AgentsManager.js.map +1 -0
- package/dist/managers/DonobuFlow.d.ts +115 -0
- package/dist/managers/DonobuFlow.js +1070 -0
- package/dist/managers/DonobuFlow.js.map +1 -0
- package/dist/managers/DonobuFlowsManager.d.ts +130 -0
- package/dist/managers/DonobuFlowsManager.js +830 -0
- package/dist/managers/DonobuFlowsManager.js.map +1 -0
- package/dist/managers/FlowsPersistence.d.ts +79 -0
- package/dist/managers/FlowsPersistence.js +3 -0
- package/dist/managers/FlowsPersistence.js.map +1 -0
- package/dist/managers/FlowsPersistenceAwsS3.d.ts +48 -0
- package/dist/managers/FlowsPersistenceAwsS3.js +284 -0
- package/dist/managers/FlowsPersistenceAwsS3.js.map +1 -0
- package/dist/managers/FlowsPersistenceFactory.d.ts +9 -0
- package/dist/managers/FlowsPersistenceFactory.js +3 -0
- package/dist/managers/FlowsPersistenceFactory.js.map +1 -0
- package/dist/managers/FlowsPersistenceFactoryImpl.d.ts +57 -0
- package/dist/managers/FlowsPersistenceFactoryImpl.js +119 -0
- package/dist/managers/FlowsPersistenceFactoryImpl.js.map +1 -0
- package/dist/managers/FlowsPersistenceFactoryPreset.d.ts +12 -0
- package/dist/managers/FlowsPersistenceFactoryPreset.js +25 -0
- package/dist/managers/FlowsPersistenceFactoryPreset.js.map +1 -0
- package/dist/managers/FlowsPersistenceFilesystem.d.ts +33 -0
- package/dist/managers/FlowsPersistenceFilesystem.js +180 -0
- package/dist/managers/FlowsPersistenceFilesystem.js.map +1 -0
- package/dist/managers/FlowsPersistenceGoogleCloudStorage.d.ts +40 -0
- package/dist/managers/FlowsPersistenceGoogleCloudStorage.js +209 -0
- package/dist/managers/FlowsPersistenceGoogleCloudStorage.js.map +1 -0
- package/dist/managers/FlowsPersistenceSupabase.d.ts +33 -0
- package/dist/managers/FlowsPersistenceSupabase.js +152 -0
- package/dist/managers/FlowsPersistenceSupabase.js.map +1 -0
- package/dist/managers/FlowsPersistenceVolatile.d.ts +30 -0
- package/dist/managers/FlowsPersistenceVolatile.js +103 -0
- package/dist/managers/FlowsPersistenceVolatile.js.map +1 -0
- package/dist/managers/GptConfigsManager.d.ts +38 -0
- package/dist/managers/GptConfigsManager.js +159 -0
- package/dist/managers/GptConfigsManager.js.map +1 -0
- package/dist/managers/GptPlatformApiKeysManager.d.ts +36 -0
- package/dist/managers/GptPlatformApiKeysManager.js +3 -0
- package/dist/managers/GptPlatformApiKeysManager.js.map +1 -0
- package/dist/managers/GptPlatformApiKeysManagerFilesystem.d.ts +29 -0
- package/dist/managers/GptPlatformApiKeysManagerFilesystem.js +136 -0
- package/dist/managers/GptPlatformApiKeysManagerFilesystem.js.map +1 -0
- package/dist/managers/GptPlatformApiKeysManagerVolatile.d.ts +35 -0
- package/dist/managers/GptPlatformApiKeysManagerVolatile.js +51 -0
- package/dist/managers/GptPlatformApiKeysManagerVolatile.js.map +1 -0
- package/dist/managers/GptResourcesManager.d.ts +44 -0
- package/dist/managers/GptResourcesManager.js +180 -0
- package/dist/managers/GptResourcesManager.js.map +1 -0
- package/dist/managers/RequestContextHolder.d.ts +24 -0
- package/dist/managers/RequestContextHolder.js +43 -0
- package/dist/managers/RequestContextHolder.js.map +1 -0
- package/dist/managers/SelectorGenerator.d.ts +8 -0
- package/dist/managers/SelectorGenerator.js +15 -0
- package/dist/managers/SelectorGenerator.js.map +1 -0
- package/dist/managers/ToolManager.d.ts +21 -0
- package/dist/managers/ToolManager.js +264 -0
- package/dist/managers/ToolManager.js.map +1 -0
- package/dist/managers/ToolTipper.d.ts +35 -0
- package/dist/managers/ToolTipper.js +201 -0
- package/dist/managers/ToolTipper.js.map +1 -0
- package/dist/models/AskAiRequest.d.ts +14 -0
- package/dist/models/AskAiRequest.js +3 -0
- package/dist/models/AskAiRequest.js.map +1 -0
- package/dist/models/BaseToolGptParameters.d.ts +9 -0
- package/dist/models/BaseToolGptParameters.js +3 -0
- package/dist/models/BaseToolGptParameters.js.map +1 -0
- package/dist/models/BaseToolParam.d.ts +9 -0
- package/dist/models/BaseToolParam.js +3 -0
- package/dist/models/BaseToolParam.js.map +1 -0
- package/dist/models/BaseToolParameters.d.ts +9 -0
- package/dist/models/BaseToolParameters.js +3 -0
- package/dist/models/BaseToolParameters.js.map +1 -0
- package/dist/models/BrowserDevice.d.ts +18 -0
- package/dist/models/BrowserDevice.js +3 -0
- package/dist/models/BrowserDevice.js.map +1 -0
- package/dist/models/BrowserFramework.d.ts +36 -0
- package/dist/models/BrowserFramework.js +164 -0
- package/dist/models/BrowserFramework.js.map +1 -0
- package/dist/models/BrowserState.d.ts +25 -0
- package/dist/models/BrowserState.js +3 -0
- package/dist/models/BrowserState.js.map +1 -0
- package/dist/models/BrowserStateFlowReference.d.ts +10 -0
- package/dist/models/BrowserStateFlowReference.js +3 -0
- package/dist/models/BrowserStateFlowReference.js.map +1 -0
- package/dist/models/CreateDonobuFlow.d.ts +88 -0
- package/dist/models/CreateDonobuFlow.js +3 -0
- package/dist/models/CreateDonobuFlow.js.map +1 -0
- package/dist/models/CreateGoogleSteetviewExtractionFlow.d.ts +21 -0
- package/dist/models/CreateGoogleSteetviewExtractionFlow.js +3 -0
- package/dist/models/CreateGoogleSteetviewExtractionFlow.js.map +1 -0
- package/dist/models/CustomTool.d.ts +9 -0
- package/dist/models/CustomTool.js +3 -0
- package/dist/models/CustomTool.js.map +1 -0
- package/dist/models/DonobuAgentType.d.ts +2 -0
- package/dist/models/DonobuAgentType.js +5 -0
- package/dist/models/DonobuAgentType.js.map +1 -0
- package/dist/models/DonobuAnnotated.d.ts +23 -0
- package/dist/models/DonobuAnnotated.js +12 -0
- package/dist/models/DonobuAnnotated.js.map +1 -0
- package/dist/models/DonobuDeploymentEnvironment.d.ts +5 -0
- package/dist/models/DonobuDeploymentEnvironment.js +10 -0
- package/dist/models/DonobuDeploymentEnvironment.js.map +1 -0
- package/dist/models/DonobuErrorResponse.d.ts +13 -0
- package/dist/models/DonobuErrorResponse.js +3 -0
- package/dist/models/DonobuErrorResponse.js.map +1 -0
- package/dist/models/ElementSelector.d.ts +14 -0
- package/dist/models/ElementSelector.js +3 -0
- package/dist/models/ElementSelector.js.map +1 -0
- package/dist/models/ElementSelectorForReplay.d.ts +14 -0
- package/dist/models/ElementSelectorForReplay.js +3 -0
- package/dist/models/ElementSelectorForReplay.js.map +1 -0
- package/dist/models/FlowMetadata.d.ts +123 -0
- package/dist/models/FlowMetadata.js +50 -0
- package/dist/models/FlowMetadata.js.map +1 -0
- package/dist/models/FlowsQuery.d.ts +11 -0
- package/dist/models/FlowsQuery.js +3 -0
- package/dist/models/FlowsQuery.js.map +1 -0
- package/dist/models/FocusedPage.d.ts +4 -0
- package/dist/models/FocusedPage.js +3 -0
- package/dist/models/FocusedPage.js.map +1 -0
- package/dist/models/GptConfig.d.ts +38 -0
- package/dist/models/GptConfig.js +3 -0
- package/dist/models/GptConfig.js.map +1 -0
- package/dist/models/GptMessage.d.ts +43 -0
- package/dist/models/GptMessage.js +3 -0
- package/dist/models/GptMessage.js.map +1 -0
- package/dist/models/GptResource.d.ts +33 -0
- package/dist/models/GptResource.js +3 -0
- package/dist/models/GptResource.js.map +1 -0
- package/dist/models/InteractableElement.d.ts +13 -0
- package/dist/models/InteractableElement.js +3 -0
- package/dist/models/InteractableElement.js.map +1 -0
- package/dist/models/ProposedToolCall.d.ts +19 -0
- package/dist/models/ProposedToolCall.js +3 -0
- package/dist/models/ProposedToolCall.js.map +1 -0
- package/dist/models/RequestContext.d.ts +21 -0
- package/dist/models/RequestContext.js +24 -0
- package/dist/models/RequestContext.js.map +1 -0
- package/dist/models/ToolCall.d.ts +38 -0
- package/dist/models/ToolCall.js +3 -0
- package/dist/models/ToolCall.js.map +1 -0
- package/dist/models/ToolCallContext.d.ts +22 -0
- package/dist/models/ToolCallContext.js +3 -0
- package/dist/models/ToolCallContext.js.map +1 -0
- package/dist/models/ToolCallResult.d.ts +20 -0
- package/dist/models/ToolCallResult.js +19 -0
- package/dist/models/ToolCallResult.js.map +1 -0
- package/dist/models/VideoSegment.d.ts +20 -0
- package/dist/models/VideoSegment.js +3 -0
- package/dist/models/VideoSegment.js.map +1 -0
- package/dist/persistence/AgentsPersistence.d.ts +11 -0
- package/dist/persistence/AgentsPersistence.js +3 -0
- package/dist/persistence/AgentsPersistence.js.map +1 -0
- package/dist/persistence/AgentsPersistenceFilesystem.d.ts +15 -0
- package/dist/persistence/AgentsPersistenceFilesystem.js +48 -0
- package/dist/persistence/AgentsPersistenceFilesystem.js.map +1 -0
- package/dist/persistence/AgentsPersistenceSqlite.d.ts +14 -0
- package/dist/persistence/AgentsPersistenceSqlite.js +51 -0
- package/dist/persistence/AgentsPersistenceSqlite.js.map +1 -0
- package/dist/persistence/AgentsPersistenceVolatile.d.ts +13 -0
- package/dist/persistence/AgentsPersistenceVolatile.js +27 -0
- package/dist/persistence/AgentsPersistenceVolatile.js.map +1 -0
- package/dist/persistence/DonobuSqliteDb.d.ts +11 -0
- package/dist/persistence/DonobuSqliteDb.js +178 -0
- package/dist/persistence/DonobuSqliteDb.js.map +1 -0
- package/dist/persistence/FlowsPersistence.d.ts +94 -0
- package/dist/persistence/FlowsPersistence.js +3 -0
- package/dist/persistence/FlowsPersistence.js.map +1 -0
- package/dist/persistence/FlowsPersistenceAwsS3.d.ts +70 -0
- package/dist/persistence/FlowsPersistenceAwsS3.js +447 -0
- package/dist/persistence/FlowsPersistenceAwsS3.js.map +1 -0
- package/dist/persistence/FlowsPersistenceFactory.d.ts +9 -0
- package/dist/persistence/FlowsPersistenceFactory.js +3 -0
- package/dist/persistence/FlowsPersistenceFactory.js.map +1 -0
- package/dist/persistence/FlowsPersistenceFactoryImpl.d.ts +60 -0
- package/dist/persistence/FlowsPersistenceFactoryImpl.js +244 -0
- package/dist/persistence/FlowsPersistenceFactoryImpl.js.map +1 -0
- package/dist/persistence/FlowsPersistenceFactoryPreset.d.ts +12 -0
- package/dist/persistence/FlowsPersistenceFactoryPreset.js +25 -0
- package/dist/persistence/FlowsPersistenceFactoryPreset.js.map +1 -0
- package/dist/persistence/FlowsPersistenceFilesystem.d.ts +42 -0
- package/dist/persistence/FlowsPersistenceFilesystem.js +271 -0
- package/dist/persistence/FlowsPersistenceFilesystem.js.map +1 -0
- package/dist/persistence/FlowsPersistenceGoogleCloudStorage.d.ts +62 -0
- package/dist/persistence/FlowsPersistenceGoogleCloudStorage.js +406 -0
- package/dist/persistence/FlowsPersistenceGoogleCloudStorage.js.map +1 -0
- package/dist/persistence/FlowsPersistenceSqlite.d.ts +37 -0
- package/dist/persistence/FlowsPersistenceSqlite.js +229 -0
- package/dist/persistence/FlowsPersistenceSqlite.js.map +1 -0
- package/dist/persistence/FlowsPersistenceSupabase.d.ts +38 -0
- package/dist/persistence/FlowsPersistenceSupabase.js +216 -0
- package/dist/persistence/FlowsPersistenceSupabase.js.map +1 -0
- package/dist/persistence/FlowsPersistenceVolatile.d.ts +35 -0
- package/dist/persistence/FlowsPersistenceVolatile.js +147 -0
- package/dist/persistence/FlowsPersistenceVolatile.js.map +1 -0
- package/dist/persistence/GptConfigsPersistence.d.ts +11 -0
- package/dist/persistence/GptConfigsPersistence.js +3 -0
- package/dist/persistence/GptConfigsPersistence.js.map +1 -0
- package/dist/persistence/GptConfigsPersistenceFilesystem.d.ts +16 -0
- package/dist/persistence/GptConfigsPersistenceFilesystem.js +54 -0
- package/dist/persistence/GptConfigsPersistenceFilesystem.js.map +1 -0
- package/dist/persistence/GptConfigsPersistenceSqlite.d.ts +12 -0
- package/dist/persistence/GptConfigsPersistenceSqlite.js +36 -0
- package/dist/persistence/GptConfigsPersistenceSqlite.js.map +1 -0
- package/dist/persistence/GptConfigsPersistenceVolatile.d.ts +14 -0
- package/dist/persistence/GptConfigsPersistenceVolatile.js +32 -0
- package/dist/persistence/GptConfigsPersistenceVolatile.js.map +1 -0
- package/dist/persistence/GptResourcesPersistence.d.ts +11 -0
- package/dist/persistence/GptResourcesPersistence.js +3 -0
- package/dist/persistence/GptResourcesPersistence.js.map +1 -0
- package/dist/persistence/GptResourcesPersistenceFilesystem.d.ts +20 -0
- package/dist/persistence/GptResourcesPersistenceFilesystem.js +79 -0
- package/dist/persistence/GptResourcesPersistenceFilesystem.js.map +1 -0
- package/dist/persistence/GptResourcesPersistenceVolatile.d.ts +14 -0
- package/dist/persistence/GptResourcesPersistenceVolatile.js +32 -0
- package/dist/persistence/GptResourcesPersistenceVolatile.js.map +1 -0
- package/dist/test.d.ts +66 -0
- package/dist/test.js +288 -0
- package/dist/test.js.map +1 -0
- package/dist/testfixtures.d.ts +66 -0
- package/dist/testfixtures.js +288 -0
- package/dist/testfixtures.js.map +1 -0
- package/dist/tools/AggregateExtractedStreetviewDataTool.d.ts +24 -0
- package/dist/tools/AggregateExtractedStreetviewDataTool.js +61 -0
- package/dist/tools/AggregateExtractedStreetviewDataTool.js.map +1 -0
- package/dist/tools/AnalyzePageTextTool.d.ts +22 -0
- package/dist/tools/AnalyzePageTextTool.js +59 -0
- package/dist/tools/AnalyzePageTextTool.js.map +1 -0
- package/dist/tools/AssertTool.d.ts +24 -0
- package/dist/tools/AssertTool.js +56 -0
- package/dist/tools/AssertTool.js.map +1 -0
- package/dist/tools/ChangeWebBrowserTabTool.d.ts +18 -0
- package/dist/tools/ChangeWebBrowserTabTool.js +36 -0
- package/dist/tools/ChangeWebBrowserTabTool.js.map +1 -0
- package/dist/tools/ChooseSelectOptionTool.d.ts +18 -0
- package/dist/tools/ChooseSelectOptionTool.js +18 -0
- package/dist/tools/ChooseSelectOptionTool.js.map +1 -0
- package/dist/tools/ClickButtonTool.d.ts +14 -0
- package/dist/tools/ClickButtonTool.js +36 -0
- package/dist/tools/ClickButtonTool.js.map +1 -0
- package/dist/tools/ClickTool.d.ts +14 -0
- package/dist/tools/ClickTool.js +36 -0
- package/dist/tools/ClickTool.js.map +1 -0
- package/dist/tools/CreateBrowserCookieReportTool.d.ts +15 -0
- package/dist/tools/CreateBrowserCookieReportTool.js +98 -0
- package/dist/tools/CreateBrowserCookieReportTool.js.map +1 -0
- package/dist/tools/CustomToolRunnerTool.d.ts +14 -0
- package/dist/tools/CustomToolRunnerTool.js +35 -0
- package/dist/tools/CustomToolRunnerTool.js.map +1 -0
- package/dist/tools/DetectBrokenLinksTool.d.ts +38 -0
- package/dist/tools/DetectBrokenLinksTool.js +264 -0
- package/dist/tools/DetectBrokenLinksTool.js.map +1 -0
- package/dist/tools/DownloadPdfTool.d.ts +19 -0
- package/dist/tools/DownloadPdfTool.js +48 -0
- package/dist/tools/DownloadPdfTool.js.map +1 -0
- package/dist/tools/ExtractGoogleStreetviewEntityDataTool.d.ts +50 -0
- package/dist/tools/ExtractGoogleStreetviewEntityDataTool.js +176 -0
- package/dist/tools/ExtractGoogleStreetviewEntityDataTool.js.map +1 -0
- package/dist/tools/ExtractPaymentProviderKeyTool.d.ts +16 -0
- package/dist/tools/ExtractPaymentProviderKeyTool.js +80 -0
- package/dist/tools/ExtractPaymentProviderKeyTool.js.map +1 -0
- package/dist/tools/ExtractPublicFacebookEntityDataTool.d.ts +27 -0
- package/dist/tools/ExtractPublicFacebookEntityDataTool.js +232 -0
- package/dist/tools/ExtractPublicFacebookEntityDataTool.js.map +1 -0
- package/dist/tools/GetEntityDataFromGoogleMapResult.d.ts +27 -0
- package/dist/tools/GetEntityDataFromGoogleMapResult.js +36 -0
- package/dist/tools/GetEntityDataFromGoogleMapResult.js.map +1 -0
- package/dist/tools/GoForwardOrBackTool.d.ts +22 -0
- package/dist/tools/GoForwardOrBackTool.js +37 -0
- package/dist/tools/GoForwardOrBackTool.js.map +1 -0
- package/dist/tools/GoToGoogleMapsStreetViewTool.d.ts +37 -0
- package/dist/tools/GoToGoogleMapsStreetViewTool.js +119 -0
- package/dist/tools/GoToGoogleMapsStreetViewTool.js.map +1 -0
- package/dist/tools/GoToWebpageTool.d.ts +20 -0
- package/dist/tools/GoToWebpageTool.js +40 -0
- package/dist/tools/GoToWebpageTool.js.map +1 -0
- package/dist/tools/HandleBrowserDialogTool.d.ts +26 -0
- package/dist/tools/HandleBrowserDialogTool.js +22 -0
- package/dist/tools/HandleBrowserDialogTool.js.map +1 -0
- package/dist/tools/HoverOverElementTool.d.ts +15 -0
- package/dist/tools/HoverOverElementTool.js +18 -0
- package/dist/tools/HoverOverElementTool.js.map +1 -0
- package/dist/tools/InputRandomizedEmailAddressTool.d.ts +27 -0
- package/dist/tools/InputRandomizedEmailAddressTool.js +74 -0
- package/dist/tools/InputRandomizedEmailAddressTool.js.map +1 -0
- package/dist/tools/InputTextTool.d.ts +24 -0
- package/dist/tools/InputTextTool.js +48 -0
- package/dist/tools/InputTextTool.js.map +1 -0
- package/dist/tools/MakeCommentTool.d.ts +21 -0
- package/dist/tools/MakeCommentTool.js +31 -0
- package/dist/tools/MakeCommentTool.js.map +1 -0
- package/dist/tools/MarkObjectiveCompleteTool.d.ts +27 -0
- package/dist/tools/MarkObjectiveCompleteTool.js +39 -0
- package/dist/tools/MarkObjectiveCompleteTool.js.map +1 -0
- package/dist/tools/MarkObjectiveNotCompletableTool.d.ts +14 -0
- package/dist/tools/MarkObjectiveNotCompletableTool.js +35 -0
- package/dist/tools/MarkObjectiveNotCompletableTool.js.map +1 -0
- package/dist/tools/NavigateToWebpage.d.ts +19 -0
- package/dist/tools/NavigateToWebpage.js +25 -0
- package/dist/tools/NavigateToWebpage.js.map +1 -0
- package/dist/tools/NavigateToWebpageTool.d.ts +20 -0
- package/dist/tools/NavigateToWebpageTool.js +40 -0
- package/dist/tools/NavigateToWebpageTool.js.map +1 -0
- package/dist/tools/NavigateWithinStreetView.d.ts +38 -0
- package/dist/tools/NavigateWithinStreetView.js +107 -0
- package/dist/tools/NavigateWithinStreetView.js.map +1 -0
- package/dist/tools/PauseForUserInteractionTool.d.ts +18 -0
- package/dist/tools/PauseForUserInteractionTool.js +24 -0
- package/dist/tools/PauseForUserInteractionTool.js.map +1 -0
- package/dist/tools/PressKeyTool.d.ts +18 -0
- package/dist/tools/PressKeyTool.js +43 -0
- package/dist/tools/PressKeyTool.js.map +1 -0
- package/dist/tools/ReloadPageTool.d.ts +14 -0
- package/dist/tools/ReloadPageTool.js +20 -0
- package/dist/tools/ReloadPageTool.js.map +1 -0
- package/dist/tools/ReplayableInteraction.d.ts +62 -0
- package/dist/tools/ReplayableInteraction.js +170 -0
- package/dist/tools/ReplayableInteraction.js.map +1 -0
- package/dist/tools/RunAccessibilityTestTool.d.ts +14 -0
- package/dist/tools/RunAccessibilityTestTool.js +49 -0
- package/dist/tools/RunAccessibilityTestTool.js.map +1 -0
- package/dist/tools/RunInlineJavaScriptCodeTool.d.ts +17 -0
- package/dist/tools/RunInlineJavaScriptCodeTool.js +30 -0
- package/dist/tools/RunInlineJavaScriptCodeTool.js.map +1 -0
- package/dist/tools/RunSandboxedJavaScriptCodeTool.d.ts +18 -0
- package/dist/tools/RunSandboxedJavaScriptCodeTool.js +43 -0
- package/dist/tools/RunSandboxedJavaScriptCodeTool.js.map +1 -0
- package/dist/tools/SaveWebpageAsPdfTool.d.ts +15 -0
- package/dist/tools/SaveWebpageAsPdfTool.js +27 -0
- package/dist/tools/SaveWebpageAsPdfTool.js.map +1 -0
- package/dist/tools/ScrollPageTool.d.ts +18 -0
- package/dist/tools/ScrollPageTool.js +21 -0
- package/dist/tools/ScrollPageTool.js.map +1 -0
- package/dist/tools/SetRunModeTool.d.ts +20 -0
- package/dist/tools/SetRunModeTool.js +22 -0
- package/dist/tools/SetRunModeTool.js.map +1 -0
- package/dist/tools/SummarizeLearningsTool.d.ts +21 -0
- package/dist/tools/SummarizeLearningsTool.js +31 -0
- package/dist/tools/SummarizeLearningsTool.js.map +1 -0
- package/dist/tools/Tool.d.ts +35 -0
- package/dist/tools/Tool.js +38 -0
- package/dist/tools/Tool.js.map +1 -0
- package/dist/tools/TriggerDonobuFlowTool.d.ts +19 -0
- package/dist/tools/TriggerDonobuFlowTool.js +26 -0
- package/dist/tools/TriggerDonobuFlowTool.js.map +1 -0
- package/dist/tools/WaitTool.d.ts +18 -0
- package/dist/tools/WaitTool.js +20 -0
- package/dist/tools/WaitTool.js.map +1 -0
- package/dist/utils/DirectoryUtils.d.ts +11 -0
- package/dist/utils/DirectoryUtils.js +37 -0
- package/dist/utils/DirectoryUtils.js.map +1 -0
- package/dist/utils/JsonUtils.d.ts +19 -0
- package/dist/utils/JsonUtils.js +124 -0
- package/dist/utils/JsonUtils.js.map +1 -0
- package/dist/utils/Logger.d.ts +17 -0
- package/dist/utils/Logger.js +95 -0
- package/dist/utils/Logger.js.map +1 -0
- package/dist/utils/MiscUtils.d.ts +62 -0
- package/dist/utils/MiscUtils.js +164 -0
- package/dist/utils/MiscUtils.js.map +1 -0
- package/dist/utils/PlaywrightUtils.d.ts +180 -0
- package/dist/utils/PlaywrightUtils.js +1086 -0
- package/dist/utils/PlaywrightUtils.js.map +1 -0
- package/dist/utils/VerbConverter.d.ts +14 -0
- package/dist/utils/VerbConverter.js +96 -0
- package/dist/utils/VerbConverter.js.map +1 -0
- package/package.json +83 -0
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { Request, Response } from 'express';
|
|
2
|
+
import { GptResourcesManager } from '../managers/GptResourcesManager';
|
|
3
|
+
import { GptResource } from '../models/GptResource';
|
|
4
|
+
/**
|
|
5
|
+
* This API manages the GPT resources available to the Donobu runtime.
|
|
6
|
+
*/
|
|
7
|
+
export declare class GptResourcesApi {
|
|
8
|
+
private readonly gptResourcesManager;
|
|
9
|
+
private static readonly REDACTED_FIELD_NAME;
|
|
10
|
+
constructor(gptResourcesManager: GptResourcesManager);
|
|
11
|
+
set(req: Request, res: Response): Promise<void>;
|
|
12
|
+
get(req: Request, res: Response): Promise<void>;
|
|
13
|
+
getAll(_req: Request, res: Response): Promise<void>;
|
|
14
|
+
delete(req: Request, res: Response): Promise<void>;
|
|
15
|
+
/**
|
|
16
|
+
* Redacts sensative data from the given GPT resource so that the record can
|
|
17
|
+
* be safely returned through the API.
|
|
18
|
+
*/
|
|
19
|
+
static redactSensativeData(gptResource: GptResource): GptResource;
|
|
20
|
+
}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.GptResourcesApi = void 0;
|
|
4
|
+
const GptResourceNotFoundException_1 = require("../exceptions/GptResourceNotFoundException");
|
|
5
|
+
/**
|
|
6
|
+
* This API manages the GPT resources available to the Donobu runtime.
|
|
7
|
+
*/
|
|
8
|
+
class GptResourcesApi {
|
|
9
|
+
gptResourcesManager;
|
|
10
|
+
static REDACTED_FIELD_NAME = 'apiKey';
|
|
11
|
+
constructor(gptResourcesManager) {
|
|
12
|
+
this.gptResourcesManager = gptResourcesManager;
|
|
13
|
+
}
|
|
14
|
+
async set(req, res) {
|
|
15
|
+
const gptResource = req.body;
|
|
16
|
+
const gptResourceName = req.params.name;
|
|
17
|
+
if (!gptResourceName) {
|
|
18
|
+
throw new GptResourceNotFoundException_1.GptResourceNotFoundException(gptResourceName);
|
|
19
|
+
}
|
|
20
|
+
await this.gptResourcesManager.set(gptResourceName, gptResource);
|
|
21
|
+
res.status(200);
|
|
22
|
+
}
|
|
23
|
+
async get(req, res) {
|
|
24
|
+
const gptResourceName = req.params.name;
|
|
25
|
+
const gptResource = GptResourcesApi.redactSensativeData(await this.gptResourcesManager.get(gptResourceName));
|
|
26
|
+
res.json(gptResource);
|
|
27
|
+
}
|
|
28
|
+
async getAll(_req, res) {
|
|
29
|
+
const gptResources = await this.gptResourcesManager.getAll();
|
|
30
|
+
const redactedGptResources = new Map(Array.from(gptResources.entries()).map(([key, value]) => [
|
|
31
|
+
key,
|
|
32
|
+
GptResourcesApi.redactSensativeData(value),
|
|
33
|
+
]));
|
|
34
|
+
res.json(Object.fromEntries(redactedGptResources));
|
|
35
|
+
}
|
|
36
|
+
async delete(req, res) {
|
|
37
|
+
const gptResourceName = req.params.name;
|
|
38
|
+
await this.gptResourcesManager.delete(gptResourceName);
|
|
39
|
+
res.status(200);
|
|
40
|
+
}
|
|
41
|
+
/**
|
|
42
|
+
* Redacts sensative data from the given GPT resource so that the record can
|
|
43
|
+
* be safely returned through the API.
|
|
44
|
+
*/
|
|
45
|
+
static redactSensativeData(gptResource) {
|
|
46
|
+
if (GptResourcesApi.REDACTED_FIELD_NAME in gptResource) {
|
|
47
|
+
gptResource[GptResourcesApi.REDACTED_FIELD_NAME] = '****************';
|
|
48
|
+
}
|
|
49
|
+
return gptResource;
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
exports.GptResourcesApi = GptResourcesApi;
|
|
53
|
+
//# sourceMappingURL=GptResourcesApi.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GptResourcesApi.js","sourceRoot":"","sources":["../../src/apis/GptResourcesApi.ts"],"names":[],"mappings":";;;AAEA,6FAA0F;AAG1F;;GAEG;AACH,MAAa,eAAe;IAIP;IAHX,MAAM,CAAU,mBAAmB,GAAG,QAAQ,CAAC;IAEvD,YACmB,mBAAwC;QAAxC,wBAAmB,GAAnB,mBAAmB,CAAqB;IACxD,CAAC;IAEG,KAAK,CAAC,GAAG,CAAC,GAAY,EAAE,GAAa;QAC1C,MAAM,WAAW,GAAG,GAAG,CAAC,IAAmB,CAAC;QAC5C,MAAM,eAAe,GAAG,GAAG,CAAC,MAAM,CAAC,IAAI,CAAC;QAExC,IAAI,CAAC,eAAe,EAAE,CAAC;YACrB,MAAM,IAAI,2DAA4B,CAAC,eAAe,CAAC,CAAC;QAC1D,CAAC;QAED,MAAM,IAAI,CAAC,mBAAmB,CAAC,GAAG,CAAC,eAAe,EAAE,WAAW,CAAC,CAAC;QACjE,GAAG,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC;IAClB,CAAC;IAEM,KAAK,CAAC,GAAG,CAAC,GAAY,EAAE,GAAa;QAC1C,MAAM,eAAe,GAAG,GAAG,CAAC,MAAM,CAAC,IAAI,CAAC;QACxC,MAAM,WAAW,GAAG,eAAe,CAAC,mBAAmB,CACrD,MAAM,IAAI,CAAC,mBAAmB,CAAC,GAAG,CAAC,eAAe,CAAC,CACpD,CAAC;QACF,GAAG,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC;IACxB,CAAC;IAEM,KAAK,CAAC,MAAM,CAAC,IAAa,EAAE,GAAa;QAC9C,MAAM,YAAY,GAAG,MAAM,IAAI,CAAC,mBAAmB,CAAC,MAAM,EAAE,CAAC;QAC7D,MAAM,oBAAoB,GAAG,IAAI,GAAG,CAClC,KAAK,CAAC,IAAI,CAAC,YAAY,CAAC,OAAO,EAAE,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,GAAG,EAAE,KAAK,CAAC,EAAE,EAAE,CAAC;YACvD,GAAG;YACH,eAAe,CAAC,mBAAmB,CAAC,KAAK,CAAC;SAC3C,CAAC,CACH,CAAC;QACF,GAAG,CAAC,IAAI,CAAC,MAAM,CAAC,WAAW,CAAC,oBAAoB,CAAC,CAAC,CAAC;IACrD,CAAC;IAEM,KAAK,CAAC,MAAM,CAAC,GAAY,EAAE,GAAa;QAC7C,MAAM,eAAe,GAAG,GAAG,CAAC,MAAM,CAAC,IAAI,CAAC;QACxC,MAAM,IAAI,CAAC,mBAAmB,CAAC,MAAM,CAAC,eAAe,CAAC,CAAC;QACvD,GAAG,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC;IAClB,CAAC;IAED;;;OAGG;IACH,MAAM,CAAC,mBAAmB,CAAC,WAAwB;QACjD,IAAI,eAAe,CAAC,mBAAmB,IAAI,WAAW,EAAE,CAAC;YACvD,WAAW,CAAC,eAAe,CAAC,mBAAmB,CAAC,GAAG,kBAAkB,CAAC;QACxE,CAAC;QAED,OAAO,WAAW,CAAC;IACrB,CAAC;;AAtDH,0CAuDC"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { Request, Response } from 'express';
|
|
2
|
+
import { GptPlatformApiKeysManager } from '../managers/GptPlatformApiKeysManager';
|
|
3
|
+
export declare class KeysApi {
|
|
4
|
+
private readonly gptPlatformApiKeysManager;
|
|
5
|
+
constructor(gptPlatformApiKeysManager: GptPlatformApiKeysManager);
|
|
6
|
+
/**
|
|
7
|
+
* NOTE: This does not actually return the API key itself, but rather, flags if it exists or not.
|
|
8
|
+
*/
|
|
9
|
+
getApiKey(req: Request, res: Response): Promise<void>;
|
|
10
|
+
/**
|
|
11
|
+
* NOTE: This does not actually return the API keys themselves, but rather, the map of Platforms
|
|
12
|
+
* that have API keys available. Example response:
|
|
13
|
+
*
|
|
14
|
+
* <pre>
|
|
15
|
+
* {
|
|
16
|
+
* "OPENAI": true,
|
|
17
|
+
* "ANTHROPIC": false,
|
|
18
|
+
* "GOOGLE": false
|
|
19
|
+
* }
|
|
20
|
+
* </pre>
|
|
21
|
+
*/
|
|
22
|
+
getApiKeys(_req: Request, res: Response): Promise<void>;
|
|
23
|
+
setApiKey(req: Request, res: Response): Promise<void>;
|
|
24
|
+
deleteApiKey(req: Request, res: Response): Promise<void>;
|
|
25
|
+
}
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.KeysApi = void 0;
|
|
4
|
+
const FlowMetadata_1 = require("../models/FlowMetadata");
|
|
5
|
+
const InvalidParamValueException_1 = require("../exceptions/InvalidParamValueException");
|
|
6
|
+
class KeysApi {
|
|
7
|
+
gptPlatformApiKeysManager;
|
|
8
|
+
constructor(gptPlatformApiKeysManager) {
|
|
9
|
+
this.gptPlatformApiKeysManager = gptPlatformApiKeysManager;
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* NOTE: This does not actually return the API key itself, but rather, flags if it exists or not.
|
|
13
|
+
*/
|
|
14
|
+
async getApiKey(req, res) {
|
|
15
|
+
const platformName = req.params.platform.toUpperCase();
|
|
16
|
+
const platform = FlowMetadata_1.Platform[platformName];
|
|
17
|
+
if (!platform) {
|
|
18
|
+
throw new InvalidParamValueException_1.InvalidParamValueException('/api-keys/{platform}', platformName);
|
|
19
|
+
}
|
|
20
|
+
await this.gptPlatformApiKeysManager.getKey(platform);
|
|
21
|
+
res.sendStatus(200);
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* NOTE: This does not actually return the API keys themselves, but rather, the map of Platforms
|
|
25
|
+
* that have API keys available. Example response:
|
|
26
|
+
*
|
|
27
|
+
* <pre>
|
|
28
|
+
* {
|
|
29
|
+
* "OPENAI": true,
|
|
30
|
+
* "ANTHROPIC": false,
|
|
31
|
+
* "GOOGLE": false
|
|
32
|
+
* }
|
|
33
|
+
* </pre>
|
|
34
|
+
*/
|
|
35
|
+
async getApiKeys(_req, res) {
|
|
36
|
+
const platformsWithKeys = await this.gptPlatformApiKeysManager.getGptPlatformsWithKeys();
|
|
37
|
+
const response = {};
|
|
38
|
+
for (const platform of Object.values(FlowMetadata_1.Platform)) {
|
|
39
|
+
response[platform] = platformsWithKeys.includes(platform);
|
|
40
|
+
}
|
|
41
|
+
res.json(response);
|
|
42
|
+
}
|
|
43
|
+
async setApiKey(req, res) {
|
|
44
|
+
const body = req.body;
|
|
45
|
+
const platformName = req.params.platform.toUpperCase();
|
|
46
|
+
const platform = FlowMetadata_1.Platform[platformName];
|
|
47
|
+
if (!platform) {
|
|
48
|
+
throw new InvalidParamValueException_1.InvalidParamValueException('/api-keys/{platform}', platformName);
|
|
49
|
+
}
|
|
50
|
+
await this.gptPlatformApiKeysManager.setKey(platform, body.key);
|
|
51
|
+
res.sendStatus(200);
|
|
52
|
+
}
|
|
53
|
+
async deleteApiKey(req, res) {
|
|
54
|
+
const platformName = req.params.platform.toUpperCase();
|
|
55
|
+
const platform = FlowMetadata_1.Platform[platformName];
|
|
56
|
+
if (!platform) {
|
|
57
|
+
throw new InvalidParamValueException_1.InvalidParamValueException('/api-keys/{platform}', platformName);
|
|
58
|
+
}
|
|
59
|
+
await this.gptPlatformApiKeysManager.deleteKey(platform);
|
|
60
|
+
res.sendStatus(200);
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
exports.KeysApi = KeysApi;
|
|
64
|
+
//# sourceMappingURL=KeysApi.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"KeysApi.js","sourceRoot":"","sources":["../../src/apis/KeysApi.ts"],"names":[],"mappings":";;;AACA,yDAAkD;AAElD,yFAAsF;AAEtF,MAAa,OAAO;IAEC;IADnB,YACmB,yBAAoD;QAApD,8BAAyB,GAAzB,yBAAyB,CAA2B;IACpE,CAAC;IAEJ;;OAEG;IACI,KAAK,CAAC,SAAS,CAAC,GAAY,EAAE,GAAa;QAChD,MAAM,YAAY,GAAG,GAAG,CAAC,MAAM,CAAC,QAAQ,CAAC,WAAW,EAAE,CAAC;QACvD,MAAM,QAAQ,GAAG,uBAAQ,CAAC,YAAqC,CAAC,CAAC;QAEjE,IAAI,CAAC,QAAQ,EAAE,CAAC;YACd,MAAM,IAAI,uDAA0B,CAClC,sBAAsB,EACtB,YAAY,CACb,CAAC;QACJ,CAAC;QAED,MAAM,IAAI,CAAC,yBAAyB,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC;QACtD,GAAG,CAAC,UAAU,CAAC,GAAG,CAAC,CAAC;IACtB,CAAC;IAED;;;;;;;;;;;OAWG;IACI,KAAK,CAAC,UAAU,CAAC,IAAa,EAAE,GAAa;QAClD,MAAM,iBAAiB,GACrB,MAAM,IAAI,CAAC,yBAAyB,CAAC,uBAAuB,EAAE,CAAC;QACjE,MAAM,QAAQ,GAA4B,EAAE,CAAC;QAE7C,KAAK,MAAM,QAAQ,IAAI,MAAM,CAAC,MAAM,CAAC,uBAAQ,CAAC,EAAE,CAAC;YAC/C,QAAQ,CAAC,QAAQ,CAAC,GAAG,iBAAiB,CAAC,QAAQ,CAAC,QAAQ,CAAC,CAAC;QAC5D,CAAC;QAED,GAAG,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;IACrB,CAAC;IAEM,KAAK,CAAC,SAAS,CAAC,GAAY,EAAE,GAAa;QAChD,MAAM,IAAI,GAAG,GAAG,CAAC,IAEhB,CAAC;QACF,MAAM,YAAY,GAAG,GAAG,CAAC,MAAM,CAAC,QAAQ,CAAC,WAAW,EAAE,CAAC;QACvD,MAAM,QAAQ,GAAG,uBAAQ,CAAC,YAAqC,CAAC,CAAC;QAEjE,IAAI,CAAC,QAAQ,EAAE,CAAC;YACd,MAAM,IAAI,uDAA0B,CAClC,sBAAsB,EACtB,YAAY,CACb,CAAC;QACJ,CAAC;QAED,MAAM,IAAI,CAAC,yBAAyB,CAAC,MAAM,CAAC,QAAQ,EAAE,IAAI,CAAC,GAAG,CAAC,CAAC;QAChE,GAAG,CAAC,UAAU,CAAC,GAAG,CAAC,CAAC;IACtB,CAAC;IAEM,KAAK,CAAC,YAAY,CAAC,GAAY,EAAE,GAAa;QACnD,MAAM,YAAY,GAAG,GAAG,CAAC,MAAM,CAAC,QAAQ,CAAC,WAAW,EAAE,CAAC;QACvD,MAAM,QAAQ,GAAG,uBAAQ,CAAC,YAAqC,CAAC,CAAC;QAEjE,IAAI,CAAC,QAAQ,EAAE,CAAC;YACd,MAAM,IAAI,uDAA0B,CAClC,sBAAsB,EACtB,YAAY,CACb,CAAC;QACJ,CAAC;QAED,MAAM,IAAI,CAAC,yBAAyB,CAAC,SAAS,CAAC,QAAQ,CAAC,CAAC;QACzD,GAAG,CAAC,UAAU,CAAC,GAAG,CAAC,CAAC;IACtB,CAAC;CACF;AA/ED,0BA+EC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { Request, Response } from 'express';
|
|
2
|
+
/**
|
|
3
|
+
* API endpoints for basic health/connectivity checks.
|
|
4
|
+
*/
|
|
5
|
+
export declare class PingApi {
|
|
6
|
+
/**
|
|
7
|
+
* No-op endpoint that just returns HTTP 200.
|
|
8
|
+
*
|
|
9
|
+
* @param _req - Express request object (unused)
|
|
10
|
+
* @param res - Express response object
|
|
11
|
+
*/
|
|
12
|
+
ping(_req: Request, res: Response): Promise<void>;
|
|
13
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PingApi = void 0;
|
|
4
|
+
/**
|
|
5
|
+
* API endpoints for basic health/connectivity checks.
|
|
6
|
+
*/
|
|
7
|
+
class PingApi {
|
|
8
|
+
/**
|
|
9
|
+
* No-op endpoint that just returns HTTP 200.
|
|
10
|
+
*
|
|
11
|
+
* @param _req - Express request object (unused)
|
|
12
|
+
* @param res - Express response object
|
|
13
|
+
*/
|
|
14
|
+
async ping(_req, res) {
|
|
15
|
+
res.sendStatus(200);
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
exports.PingApi = PingApi;
|
|
19
|
+
//# sourceMappingURL=PingApi.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PingApi.js","sourceRoot":"","sources":["../../src/apis/PingApi.ts"],"names":[],"mappings":";;;AAEA;;GAEG;AACH,MAAa,OAAO;IAClB;;;;;OAKG;IACI,KAAK,CAAC,IAAI,CAAC,IAAa,EAAE,GAAa;QAC5C,GAAG,CAAC,UAAU,CAAC,GAAG,CAAC,CAAC;IACtB,CAAC;CACF;AAVD,0BAUC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { Request, Response } from 'express';
|
|
2
|
+
import { DonobuFlowsManager } from '../managers/DonobuFlowsManager';
|
|
3
|
+
export declare class SpecialFlowsApi {
|
|
4
|
+
private readonly donobuFlowsManager;
|
|
5
|
+
private static readonly BROWSERBASE_API_KEY_ENV;
|
|
6
|
+
constructor(donobuFlowsManager: DonobuFlowsManager);
|
|
7
|
+
analyzeCookieConsent(req: Request, res: Response): Promise<void>;
|
|
8
|
+
detectBrokenLinks(req: Request, res: Response): Promise<void>;
|
|
9
|
+
extractPublicFacebookEntityData(req: Request, res: Response): Promise<void>;
|
|
10
|
+
extractPaymentProviderData(req: Request, res: Response): Promise<void>;
|
|
11
|
+
extractGoogleStreetviewEntityData(req: Request, res: Response): Promise<void>;
|
|
12
|
+
private divineTargetEntityDataFromGoogleMapUrl;
|
|
13
|
+
private wrapUp;
|
|
14
|
+
private wrapUpWithStreetDataRecovery;
|
|
15
|
+
private parseUrl;
|
|
16
|
+
private browserType;
|
|
17
|
+
}
|
|
@@ -0,0 +1,430 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SpecialFlowsApi = void 0;
|
|
4
|
+
const FlowMetadata_1 = require("../models/FlowMetadata");
|
|
5
|
+
const FlowMetadata_2 = require("../models/FlowMetadata");
|
|
6
|
+
const JsonUtils_1 = require("../utils/JsonUtils");
|
|
7
|
+
const Logger_1 = require("../utils/Logger");
|
|
8
|
+
const CreateBrowserCookieReportTool_1 = require("../tools/CreateBrowserCookieReportTool");
|
|
9
|
+
const GoToWebpageTool_1 = require("../tools/GoToWebpageTool");
|
|
10
|
+
const ClickTool_1 = require("../tools/ClickTool");
|
|
11
|
+
const MarkObjectiveNotCompletableTool_1 = require("../tools/MarkObjectiveNotCompletableTool");
|
|
12
|
+
const MarkObjectiveCompleteTool_1 = require("../tools/MarkObjectiveCompleteTool");
|
|
13
|
+
const WaitTool_1 = require("../tools/WaitTool");
|
|
14
|
+
const ExtractPublicFacebookEntityDataTool_1 = require("../tools/ExtractPublicFacebookEntityDataTool");
|
|
15
|
+
const ChooseSelectOptionTool_1 = require("../tools/ChooseSelectOptionTool");
|
|
16
|
+
const ExtractPaymentProviderKeyTool_1 = require("../tools/ExtractPaymentProviderKeyTool");
|
|
17
|
+
const GoForwardOrBackTool_1 = require("../tools/GoForwardOrBackTool");
|
|
18
|
+
const InputRandomizedEmailAddressTool_1 = require("../tools/InputRandomizedEmailAddressTool");
|
|
19
|
+
const InputTextTool_1 = require("../tools/InputTextTool");
|
|
20
|
+
const PressKeyTool_1 = require("../tools/PressKeyTool");
|
|
21
|
+
const ScrollPageTool_1 = require("../tools/ScrollPageTool");
|
|
22
|
+
const ExtractGoogleStreetviewEntityDataTool_1 = require("../tools/ExtractGoogleStreetviewEntityDataTool");
|
|
23
|
+
const AggregateExtractedStreetviewDataTool_1 = require("../tools/AggregateExtractedStreetviewDataTool");
|
|
24
|
+
const GoToGoogleMapsStreetViewTool_1 = require("../tools/GoToGoogleMapsStreetViewTool");
|
|
25
|
+
const NavigateWithinStreetView_1 = require("../tools/NavigateWithinStreetView");
|
|
26
|
+
const GetEntityDataFromGoogleMapResult_1 = require("../tools/GetEntityDataFromGoogleMapResult");
|
|
27
|
+
const DetectBrokenLinksTool_1 = require("../tools/DetectBrokenLinksTool");
|
|
28
|
+
class SpecialFlowsApi {
|
|
29
|
+
donobuFlowsManager;
|
|
30
|
+
static BROWSERBASE_API_KEY_ENV = 'BROWSERBASE_API_KEY';
|
|
31
|
+
constructor(donobuFlowsManager) {
|
|
32
|
+
this.donobuFlowsManager = donobuFlowsManager;
|
|
33
|
+
}
|
|
34
|
+
async analyzeCookieConsent(req, res) {
|
|
35
|
+
const httpBodyParams = req.body;
|
|
36
|
+
const url = httpBodyParams.url;
|
|
37
|
+
const overallObjective = `
|
|
38
|
+
You are a web-browsing QA agent verifying a website's cookie banner behavior and compliance. Follow the steps below carefully.
|
|
39
|
+
If any step (such as rejecting cookies) is not possible due to the absence of a cookie banner or a lack of “Reject”/“Customize” options,
|
|
40
|
+
document your observations but do not conclude “objective not completable.” Instead, continue with the process and produce a final report.
|
|
41
|
+
|
|
42
|
+
1. Initial Cookie Report:
|
|
43
|
+
- After the webpage initially loads, but before interacting with any cookie banner, generate a comprehensive cookie report.
|
|
44
|
+
- This report should capture all cookies present in the browser at this moment.
|
|
45
|
+
|
|
46
|
+
2. Check for Cookie Banner:
|
|
47
|
+
- If a cookie banner is present:
|
|
48
|
+
- Look for a “Reject” option.
|
|
49
|
+
- If found, select “Reject” (reject all non-essential cookies).
|
|
50
|
+
- If there is no explicit “Reject” option, select the most restrictive choice (e.g., “Customize” and deselect all possible categories).
|
|
51
|
+
- Document the absence of a direct “Reject” button as a potential compliance concern.
|
|
52
|
+
- Proceed to Step 3.
|
|
53
|
+
- If no cookie banner is present:
|
|
54
|
+
- Document the absence of a banner as a potential compliance concern.
|
|
55
|
+
- For the relevant schema fields, set:
|
|
56
|
+
- cookieBannerDisplayed = false
|
|
57
|
+
- rejectOptionAvailable = false
|
|
58
|
+
- retainedCookies = [] (empty list, assuming no cookies are added after rejecting).
|
|
59
|
+
- Skip Step 3 and proceed directly to Step 4.
|
|
60
|
+
|
|
61
|
+
3. Post-Rejection Cookie Report:
|
|
62
|
+
- Generate a second cookie report after you have selected “Reject” or the most restrictive settings in the cookie banner.
|
|
63
|
+
- This second report helps determine if any non-essential cookies remain.
|
|
64
|
+
|
|
65
|
+
4. Analysis & Summary:
|
|
66
|
+
- Compare the two cookie reports (initial vs. post-rejection).
|
|
67
|
+
- If a second report was generated (i.e., a cookie banner existed):
|
|
68
|
+
- Verify whether only strictly necessary cookies remain post-rejection.
|
|
69
|
+
- Identify any non-essential cookies that were retained and flag them as potential compliance issues.
|
|
70
|
+
- Document whether a “Reject” option was available and whether the site appears to respect the user’s preferences.
|
|
71
|
+
- If no banner was present:
|
|
72
|
+
- Note that no second report was generated.
|
|
73
|
+
- Document the absence of a cookie banner as a compliance concern, since users could not explicitly reject non-essential cookies.
|
|
74
|
+
|
|
75
|
+
5. End the Flow Gracefully:
|
|
76
|
+
- Regardless of whether a cookie banner was found, finalize your findings in a clear, structured format.
|
|
77
|
+
- Do not mark the objective as “not completable” or abruptly end the flow just because the banner was missing.
|
|
78
|
+
- Instead, complete all the documentation steps and conclude with a summary of potential compliance issues and overall observations.`;
|
|
79
|
+
const resultJsonSchema = {
|
|
80
|
+
type: 'object',
|
|
81
|
+
required: [
|
|
82
|
+
'cookieBannerDisplayed',
|
|
83
|
+
'potentialCookieIssues',
|
|
84
|
+
'rejectOptionAvailable',
|
|
85
|
+
'initialCookies',
|
|
86
|
+
'retainedCookies',
|
|
87
|
+
],
|
|
88
|
+
additionalProperties: false,
|
|
89
|
+
properties: {
|
|
90
|
+
cookieBannerDisplayed: {
|
|
91
|
+
type: 'boolean',
|
|
92
|
+
description: 'Whether a cookie banner was displayed on the page.',
|
|
93
|
+
},
|
|
94
|
+
potentialCookieIssues: {
|
|
95
|
+
type: 'array',
|
|
96
|
+
items: {
|
|
97
|
+
type: 'string',
|
|
98
|
+
},
|
|
99
|
+
description: 'The list of potential cookie issues (if any).\nExamples:\n- A marketing/advertising cookies being retained.\n- Lack of a "Reject" option in the cookie banner.\n- No cookie banner present (if expected).\n- Other indications of non-compliance with regional cookie laws.',
|
|
100
|
+
},
|
|
101
|
+
rejectOptionAvailable: {
|
|
102
|
+
type: 'boolean',
|
|
103
|
+
description: 'Indicates whether the cookie banner had a "Reject" option.\n- true: Banner provided a "Reject" option.\n- false: Banner lacked a "Reject" option.',
|
|
104
|
+
},
|
|
105
|
+
initialCookies: {
|
|
106
|
+
type: 'array',
|
|
107
|
+
items: {
|
|
108
|
+
type: 'string',
|
|
109
|
+
},
|
|
110
|
+
description: 'Cookies discovered immediately after page load, before any user interaction.',
|
|
111
|
+
},
|
|
112
|
+
retainedCookies: {
|
|
113
|
+
type: 'array',
|
|
114
|
+
items: {
|
|
115
|
+
type: 'string',
|
|
116
|
+
},
|
|
117
|
+
description: 'Cookies that remain after attempting to reject or minimize non-essential cookies.',
|
|
118
|
+
},
|
|
119
|
+
},
|
|
120
|
+
};
|
|
121
|
+
const flowParams = {
|
|
122
|
+
targetWebsite: url,
|
|
123
|
+
overallObjective: overallObjective,
|
|
124
|
+
deviceName: 'Desktop Chromium',
|
|
125
|
+
headless: false,
|
|
126
|
+
maxIterations: 10,
|
|
127
|
+
defaultToolTipDurationMilliseconds: 0,
|
|
128
|
+
initialRunMode: FlowMetadata_1.RunMode.AUTONOMOUS,
|
|
129
|
+
isControlPanelEnabled: false,
|
|
130
|
+
allowedTools: [
|
|
131
|
+
CreateBrowserCookieReportTool_1.CreateBrowserCookieReportTool.NAME,
|
|
132
|
+
GoToWebpageTool_1.GoToWebpageTool.NAME,
|
|
133
|
+
ClickTool_1.ClickTool.NAME,
|
|
134
|
+
MarkObjectiveNotCompletableTool_1.MarkObjectiveNotCompletableTool.NAME,
|
|
135
|
+
MarkObjectiveCompleteTool_1.MarkObjectiveCompleteTool.NAME,
|
|
136
|
+
WaitTool_1.WaitTool.NAME,
|
|
137
|
+
],
|
|
138
|
+
toolCallsOnStart: [
|
|
139
|
+
{
|
|
140
|
+
name: GoToWebpageTool_1.GoToWebpageTool.NAME,
|
|
141
|
+
parameters: {
|
|
142
|
+
url: url.toString(),
|
|
143
|
+
},
|
|
144
|
+
},
|
|
145
|
+
{
|
|
146
|
+
name: WaitTool_1.WaitTool.NAME,
|
|
147
|
+
parameters: {
|
|
148
|
+
seconds: 3,
|
|
149
|
+
},
|
|
150
|
+
},
|
|
151
|
+
{
|
|
152
|
+
name: CreateBrowserCookieReportTool_1.CreateBrowserCookieReportTool.NAME,
|
|
153
|
+
parameters: {},
|
|
154
|
+
},
|
|
155
|
+
],
|
|
156
|
+
resultJsonSchema: resultJsonSchema,
|
|
157
|
+
};
|
|
158
|
+
const flowHandle = await this.donobuFlowsManager.createFlow(flowParams);
|
|
159
|
+
const isAsync = req.query.async === 'true';
|
|
160
|
+
if (isAsync) {
|
|
161
|
+
res.json({ id: flowHandle.donobuFlow.metadata.id });
|
|
162
|
+
}
|
|
163
|
+
else {
|
|
164
|
+
await this.wrapUp(res, flowHandle);
|
|
165
|
+
}
|
|
166
|
+
}
|
|
167
|
+
async detectBrokenLinks(req, res) {
|
|
168
|
+
const httpBodyParams = req.body;
|
|
169
|
+
const flowParams = {
|
|
170
|
+
targetWebsite: httpBodyParams.url,
|
|
171
|
+
deviceName: 'Desktop Chromium',
|
|
172
|
+
headless: false,
|
|
173
|
+
defaultToolTipDurationMilliseconds: 0,
|
|
174
|
+
initialRunMode: FlowMetadata_1.RunMode.DETERMINISTIC,
|
|
175
|
+
isControlPanelEnabled: false,
|
|
176
|
+
toolCallsOnStart: [
|
|
177
|
+
{
|
|
178
|
+
name: GoToWebpageTool_1.GoToWebpageTool.NAME,
|
|
179
|
+
parameters: {
|
|
180
|
+
url: httpBodyParams.url,
|
|
181
|
+
},
|
|
182
|
+
},
|
|
183
|
+
{
|
|
184
|
+
name: DetectBrokenLinksTool_1.DetectBrokenLinksTool.NAME,
|
|
185
|
+
parameters: {},
|
|
186
|
+
},
|
|
187
|
+
],
|
|
188
|
+
};
|
|
189
|
+
const flowHandle = await this.donobuFlowsManager.createFlow(flowParams);
|
|
190
|
+
res.json({ id: flowHandle.donobuFlow.metadata.id });
|
|
191
|
+
}
|
|
192
|
+
async extractPublicFacebookEntityData(req, res) {
|
|
193
|
+
const httpBodyParams = req.body;
|
|
194
|
+
const overallObjective = `Source Facebook transparency data for ${httpBodyParams.facebookEntityName || httpBodyParams.facebookEntityUrl}`;
|
|
195
|
+
const browserType = this.browserType('Desktop Firefox');
|
|
196
|
+
const flowParams = {
|
|
197
|
+
targetWebsite: 'https://www.facebook.com',
|
|
198
|
+
overallObjective: overallObjective,
|
|
199
|
+
deviceName: browserType.deviceName ?? undefined,
|
|
200
|
+
remoteBrowserInstanceUrl: browserType.remoteBrowserInstanceUrl ?? undefined,
|
|
201
|
+
headless: true,
|
|
202
|
+
maxIterations: 0,
|
|
203
|
+
gptConfigNameOverride: 'claude-3-5-sonnet-latest',
|
|
204
|
+
defaultToolTipDurationMilliseconds: 0,
|
|
205
|
+
initialRunMode: FlowMetadata_1.RunMode.AUTONOMOUS,
|
|
206
|
+
isControlPanelEnabled: false,
|
|
207
|
+
allowedTools: [ExtractPublicFacebookEntityDataTool_1.ExtractPublicFacebookEntityDataTool.NAME],
|
|
208
|
+
toolCallsOnStart: [
|
|
209
|
+
{
|
|
210
|
+
name: ExtractPublicFacebookEntityDataTool_1.ExtractPublicFacebookEntityDataTool.NAME,
|
|
211
|
+
parameters: httpBodyParams,
|
|
212
|
+
},
|
|
213
|
+
],
|
|
214
|
+
};
|
|
215
|
+
const flowHandle = await this.donobuFlowsManager.createFlow(flowParams);
|
|
216
|
+
await this.wrapUp(res, flowHandle);
|
|
217
|
+
}
|
|
218
|
+
async extractPaymentProviderData(req, res) {
|
|
219
|
+
const httpBodyParams = req.body;
|
|
220
|
+
const url = this.parseUrl(httpBodyParams.website);
|
|
221
|
+
if (!url) {
|
|
222
|
+
throw new Error(`Invalid website parameter: ${httpBodyParams.website}`);
|
|
223
|
+
}
|
|
224
|
+
const overallObjective = `
|
|
225
|
+
Find the payments provider for ${url}
|
|
226
|
+
|
|
227
|
+
Try to checkout some product. Make up real sounding data if needed.
|
|
228
|
+
Add a paid product to cart. Sometimes you might need to scroll to see the option to add product to cart.
|
|
229
|
+
Once a product is in cart, continue to checkout.
|
|
230
|
+
Fill out the shopping cart page with made up shipping and other info and go to payments details page.
|
|
231
|
+
Continue through the flow until you see an option to input credit card number on the page.
|
|
232
|
+
Do not actually submit credit card details. At the final checkout page extract payment provider information.
|
|
233
|
+
`;
|
|
234
|
+
const flowParams = {
|
|
235
|
+
targetWebsite: url,
|
|
236
|
+
overallObjective: overallObjective,
|
|
237
|
+
deviceName: 'High Resolution Chromium Skinny Long',
|
|
238
|
+
headless: true,
|
|
239
|
+
maxIterations: 30,
|
|
240
|
+
defaultToolTipDurationMilliseconds: 0,
|
|
241
|
+
initialRunMode: FlowMetadata_1.RunMode.AUTONOMOUS,
|
|
242
|
+
isControlPanelEnabled: false,
|
|
243
|
+
allowedTools: [
|
|
244
|
+
ChooseSelectOptionTool_1.ChooseSelectOptionTool.NAME,
|
|
245
|
+
ClickTool_1.ClickTool.NAME,
|
|
246
|
+
ExtractPaymentProviderKeyTool_1.ExtractPaymentProviderKeyTool.NAME,
|
|
247
|
+
GoForwardOrBackTool_1.GoForwardOrBackTool.NAME,
|
|
248
|
+
InputRandomizedEmailAddressTool_1.InputRandomizedEmailAddressTool.NAME,
|
|
249
|
+
InputTextTool_1.InputTextTool.NAME,
|
|
250
|
+
GoToWebpageTool_1.GoToWebpageTool.NAME,
|
|
251
|
+
MarkObjectiveNotCompletableTool_1.MarkObjectiveNotCompletableTool.NAME,
|
|
252
|
+
PressKeyTool_1.PressKeyTool.NAME,
|
|
253
|
+
ScrollPageTool_1.ScrollPageTool.NAME,
|
|
254
|
+
],
|
|
255
|
+
};
|
|
256
|
+
const flowHandle = await this.donobuFlowsManager.createFlow(flowParams);
|
|
257
|
+
await this.wrapUp(res, flowHandle);
|
|
258
|
+
}
|
|
259
|
+
async extractGoogleStreetviewEntityData(req, res) {
|
|
260
|
+
const httpBodyParams = req.body;
|
|
261
|
+
if (!httpBodyParams.entityName && !httpBodyParams.googleMapsUrl) {
|
|
262
|
+
throw new Error('entityName and googleMapsUrl cannot both be null.');
|
|
263
|
+
}
|
|
264
|
+
else if (httpBodyParams.entityName && !httpBodyParams.entityLocation) {
|
|
265
|
+
throw new Error('entityLocation cannot be null if entityName is non-null.');
|
|
266
|
+
}
|
|
267
|
+
let entityName;
|
|
268
|
+
let entityLocation;
|
|
269
|
+
let inputTokensForTmpFlow;
|
|
270
|
+
let completionTokensForTmpFlow;
|
|
271
|
+
if (httpBodyParams.entityName) {
|
|
272
|
+
entityName = httpBodyParams.entityName;
|
|
273
|
+
entityLocation = httpBodyParams.entityLocation;
|
|
274
|
+
inputTokensForTmpFlow = 0;
|
|
275
|
+
completionTokensForTmpFlow = 0;
|
|
276
|
+
}
|
|
277
|
+
else {
|
|
278
|
+
const tmpFlow = await this.divineTargetEntityDataFromGoogleMapUrl(httpBodyParams.googleMapsUrl);
|
|
279
|
+
const entityData = JsonUtils_1.JsonUtils.objectToJson(tmpFlow.metadata.result);
|
|
280
|
+
entityName = entityData.entityName;
|
|
281
|
+
entityLocation = entityData.entityAddress;
|
|
282
|
+
inputTokensForTmpFlow = tmpFlow.metadata.inputTokensUsed;
|
|
283
|
+
completionTokensForTmpFlow = tmpFlow.metadata.completionTokensUsed;
|
|
284
|
+
}
|
|
285
|
+
const browserType = this.browserType('High Resolution Chromium');
|
|
286
|
+
const mainExtractionTool = new ExtractGoogleStreetviewEntityDataTool_1.ExtractGoogleStreetviewEntityDataTool();
|
|
287
|
+
const aggregationTool = new AggregateExtractedStreetviewDataTool_1.AggregateExtractedStreetviewDataTool();
|
|
288
|
+
const overallObjective = `
|
|
289
|
+
Attempt to locate the business/entity, ${entityName}, at (or around!) the location ${entityLocation}, using Google Maps street view.
|
|
290
|
+
Note that the initial street view will likely already been oriented towards the business/entity, so if
|
|
291
|
+
business/entity signage is initially blurry, first try zooming in the view before rotating the view.
|
|
292
|
+
|
|
293
|
+
Business/entity data can be extracted using the '${mainExtractionTool.name}' tool.
|
|
294
|
+
|
|
295
|
+
If the target business/entity is not found, DO NOT instantly give up! Here is what to do for various conditions:
|
|
296
|
+
- If building is visible but business/entity signage wasn't a match, prefer zooming in first.
|
|
297
|
+
- Business/entity signage is illegible/blurry/etc -> Try zooming in.
|
|
298
|
+
- Business/entity is not present -> Try rotating, or, moving the current position of the street view.
|
|
299
|
+
|
|
300
|
+
If the street view has been adjusted, be sure to follow that up with a call to the '${mainExtractionTool.name}' tool.
|
|
301
|
+
|
|
302
|
+
Once confident about the existence or non-existence of the target business/entity at the given location,
|
|
303
|
+
using (perhaps multiple times) the '${mainExtractionTool.name}' tool, call the '${aggregationTool.name}' tool.
|
|
304
|
+
`;
|
|
305
|
+
const flowParams = {
|
|
306
|
+
targetWebsite: 'https://maps.google.com',
|
|
307
|
+
overallObjective: overallObjective,
|
|
308
|
+
deviceName: browserType.deviceName ?? undefined,
|
|
309
|
+
remoteBrowserInstanceUrl: browserType.remoteBrowserInstanceUrl ?? undefined,
|
|
310
|
+
headless: false,
|
|
311
|
+
maxIterations: 10,
|
|
312
|
+
defaultToolTipDurationMilliseconds: 0,
|
|
313
|
+
initialRunMode: FlowMetadata_1.RunMode.AUTONOMOUS,
|
|
314
|
+
isControlPanelEnabled: false,
|
|
315
|
+
allowedTools: [
|
|
316
|
+
ClickTool_1.ClickTool.NAME,
|
|
317
|
+
GoToGoogleMapsStreetViewTool_1.GoToGoogleMapsStreetViewTool.NAME,
|
|
318
|
+
NavigateWithinStreetView_1.NavigateWithinStreetViewTool.NAME,
|
|
319
|
+
mainExtractionTool.name,
|
|
320
|
+
aggregationTool.name,
|
|
321
|
+
],
|
|
322
|
+
toolCallsOnStart: [
|
|
323
|
+
{
|
|
324
|
+
name: GoToGoogleMapsStreetViewTool_1.GoToGoogleMapsStreetViewTool.NAME,
|
|
325
|
+
parameters: {
|
|
326
|
+
entityName,
|
|
327
|
+
entityLocation,
|
|
328
|
+
},
|
|
329
|
+
},
|
|
330
|
+
{
|
|
331
|
+
name: ExtractGoogleStreetviewEntityDataTool_1.ExtractGoogleStreetviewEntityDataTool.NAME,
|
|
332
|
+
parameters: {
|
|
333
|
+
entityName,
|
|
334
|
+
},
|
|
335
|
+
},
|
|
336
|
+
],
|
|
337
|
+
};
|
|
338
|
+
const flowHandle = await this.donobuFlowsManager.createFlow(flowParams);
|
|
339
|
+
flowHandle.donobuFlow.metadata.inputTokensUsed += inputTokensForTmpFlow;
|
|
340
|
+
flowHandle.donobuFlow.metadata.completionTokensUsed +=
|
|
341
|
+
completionTokensForTmpFlow;
|
|
342
|
+
await this.wrapUpWithStreetDataRecovery(res, flowHandle);
|
|
343
|
+
}
|
|
344
|
+
async divineTargetEntityDataFromGoogleMapUrl(googleMapUrl) {
|
|
345
|
+
const browserType = this.browserType('High Resolution Chromium');
|
|
346
|
+
const flowParams = {
|
|
347
|
+
targetWebsite: googleMapUrl,
|
|
348
|
+
overallObjective: 'Extract the business/entity data from the current Google Maps page.',
|
|
349
|
+
deviceName: browserType.deviceName ?? undefined,
|
|
350
|
+
remoteBrowserInstanceUrl: browserType.remoteBrowserInstanceUrl ?? undefined,
|
|
351
|
+
headless: false,
|
|
352
|
+
maxIterations: 1,
|
|
353
|
+
defaultToolTipDurationMilliseconds: 0,
|
|
354
|
+
initialRunMode: FlowMetadata_1.RunMode.AUTONOMOUS,
|
|
355
|
+
isControlPanelEnabled: false,
|
|
356
|
+
allowedTools: [
|
|
357
|
+
GetEntityDataFromGoogleMapResult_1.GetEntityDataFromGoogleMapResultTool.NAME,
|
|
358
|
+
GoToWebpageTool_1.GoToWebpageTool.NAME,
|
|
359
|
+
],
|
|
360
|
+
toolCallsOnStart: [],
|
|
361
|
+
};
|
|
362
|
+
const flowHandle = await this.donobuFlowsManager.createFlow(flowParams);
|
|
363
|
+
await flowHandle.job;
|
|
364
|
+
return flowHandle.donobuFlow;
|
|
365
|
+
}
|
|
366
|
+
// Helper methods
|
|
367
|
+
async wrapUp(res, flowHandle) {
|
|
368
|
+
const flowId = flowHandle.donobuFlow.metadata.id;
|
|
369
|
+
const flow = flowHandle.donobuFlow;
|
|
370
|
+
await flowHandle.job;
|
|
371
|
+
if (!flow.metadata.result) {
|
|
372
|
+
res.status(500);
|
|
373
|
+
}
|
|
374
|
+
else if (typeof flow.metadata.result.failed === 'string' &&
|
|
375
|
+
flow.metadata.result.failed.toLowerCase().includes('internal error')) {
|
|
376
|
+
res.status(500);
|
|
377
|
+
}
|
|
378
|
+
else if (flow.metadata.state !== FlowMetadata_2.State.SUCCESS) {
|
|
379
|
+
res.status(400);
|
|
380
|
+
}
|
|
381
|
+
res.header('x-input-tokens-used', flow.metadata.inputTokensUsed.toString());
|
|
382
|
+
res.header('x-completion-tokens-used', flow.metadata.completionTokensUsed.toString());
|
|
383
|
+
res.header('x-gpt-config-name', flow.metadata.gptConfigName ?? '');
|
|
384
|
+
res.header('x-flow-id', flow.metadata.id);
|
|
385
|
+
res.json(flow.metadata.result ?? {
|
|
386
|
+
error: `Unexpected null result for flow ${flowId}.`,
|
|
387
|
+
});
|
|
388
|
+
}
|
|
389
|
+
async wrapUpWithStreetDataRecovery(res, flowHandle) {
|
|
390
|
+
const flowId = flowHandle.donobuFlow.metadata.id;
|
|
391
|
+
const flow = flowHandle.donobuFlow;
|
|
392
|
+
await flowHandle.job;
|
|
393
|
+
let flowResult = flow.metadata.result;
|
|
394
|
+
if (!flowResult) {
|
|
395
|
+
Logger_1.Logger.appLogger.error(`Unexpected null result for flow ${flowId}.`);
|
|
396
|
+
res.status(500);
|
|
397
|
+
}
|
|
398
|
+
else if (flow.metadata.state !== FlowMetadata_2.State.SUCCESS) {
|
|
399
|
+
flowResult = AggregateExtractedStreetviewDataTool_1.AggregateExtractedStreetviewDataTool.aggregateStreetviewData(flow.invokedToolCalls, flow.metadata);
|
|
400
|
+
}
|
|
401
|
+
else {
|
|
402
|
+
res.status(200);
|
|
403
|
+
}
|
|
404
|
+
res.header('x-input-tokens-used', flow.metadata.inputTokensUsed.toString());
|
|
405
|
+
res.header('x-completion-tokens-used', flow.metadata.completionTokensUsed.toString());
|
|
406
|
+
res.header('x-gpt-config-name', flow.metadata.gptConfigName ?? '');
|
|
407
|
+
res.header('x-flow-id', flowHandle.donobuFlow.metadata.id);
|
|
408
|
+
res.json(flowResult || {});
|
|
409
|
+
}
|
|
410
|
+
parseUrl(url) {
|
|
411
|
+
if (!url) {
|
|
412
|
+
return null;
|
|
413
|
+
}
|
|
414
|
+
if (!url.startsWith('http')) {
|
|
415
|
+
url = `https://${url}`;
|
|
416
|
+
}
|
|
417
|
+
return url;
|
|
418
|
+
}
|
|
419
|
+
browserType(defaultDeviceName) {
|
|
420
|
+
const deviceName = !process.env[SpecialFlowsApi.BROWSERBASE_API_KEY_ENV]
|
|
421
|
+
? defaultDeviceName
|
|
422
|
+
: null;
|
|
423
|
+
const remoteBrowserUrl = process.env[SpecialFlowsApi.BROWSERBASE_API_KEY_ENV]
|
|
424
|
+
? `wss://connect.browserbase.com?apiKey=\${env.${SpecialFlowsApi.BROWSERBASE_API_KEY_ENV}}`
|
|
425
|
+
: null;
|
|
426
|
+
return { deviceName, remoteBrowserInstanceUrl: remoteBrowserUrl };
|
|
427
|
+
}
|
|
428
|
+
}
|
|
429
|
+
exports.SpecialFlowsApi = SpecialFlowsApi;
|
|
430
|
+
//# sourceMappingURL=SpecialFlowsApi.js.map
|