@qontinui/shared-types 0.2.1
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/README.md +128 -0
- package/dist/Region.d-BbpFAWF4.d.cts +88 -0
- package/dist/Region.d-BbpFAWF4.d.ts +88 -0
- package/dist/accessibility.cjs +19 -0
- package/dist/accessibility.cjs.map +1 -0
- package/dist/accessibility.d.cts +396 -0
- package/dist/accessibility.d.ts +396 -0
- package/dist/accessibility.js +1 -0
- package/dist/accessibility.js.map +1 -0
- package/dist/chat.cjs +19 -0
- package/dist/chat.cjs.map +1 -0
- package/dist/chat.d.cts +13 -0
- package/dist/chat.d.ts +13 -0
- package/dist/chat.js +1 -0
- package/dist/chat.js.map +1 -0
- package/dist/chunk-YXD4WCYQ.js +95 -0
- package/dist/chunk-YXD4WCYQ.js.map +1 -0
- package/dist/chunk-ZK5MJEGT.js +153 -0
- package/dist/chunk-ZK5MJEGT.js.map +1 -0
- package/dist/config.cjs +19 -0
- package/dist/config.cjs.map +1 -0
- package/dist/config.d.cts +112 -0
- package/dist/config.d.ts +112 -0
- package/dist/config.js +1 -0
- package/dist/config.js.map +1 -0
- package/dist/constraints.cjs +19 -0
- package/dist/constraints.cjs.map +1 -0
- package/dist/constraints.d.cts +401 -0
- package/dist/constraints.d.ts +401 -0
- package/dist/constraints.js +1 -0
- package/dist/constraints.js.map +1 -0
- package/dist/execution.cjs +127 -0
- package/dist/execution.cjs.map +1 -0
- package/dist/execution.d.cts +1269 -0
- package/dist/execution.d.ts +1269 -0
- package/dist/execution.js +19 -0
- package/dist/execution.js.map +1 -0
- package/dist/geometry.cjs +19 -0
- package/dist/geometry.cjs.map +1 -0
- package/dist/geometry.d.cts +89 -0
- package/dist/geometry.d.ts +89 -0
- package/dist/geometry.js +1 -0
- package/dist/geometry.js.map +1 -0
- package/dist/index.cjs +443 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.cts +1325 -0
- package/dist/index.d.ts +1325 -0
- package/dist/index.js +178 -0
- package/dist/index.js.map +1 -0
- package/dist/library.cjs +19 -0
- package/dist/library.cjs.map +1 -0
- package/dist/library.d.cts +205 -0
- package/dist/library.d.ts +205 -0
- package/dist/library.js +1 -0
- package/dist/library.js.map +1 -0
- package/dist/rag.cjs +19 -0
- package/dist/rag.cjs.map +1 -0
- package/dist/rag.d.cts +630 -0
- package/dist/rag.d.ts +630 -0
- package/dist/rag.js +1 -0
- package/dist/rag.js.map +1 -0
- package/dist/runner.cjs +19 -0
- package/dist/runner.cjs.map +1 -0
- package/dist/runner.d.cts +156 -0
- package/dist/runner.d.ts +156 -0
- package/dist/runner.js +1 -0
- package/dist/runner.js.map +1 -0
- package/dist/scheduler.cjs +19 -0
- package/dist/scheduler.cjs.map +1 -0
- package/dist/scheduler.d.cts +729 -0
- package/dist/scheduler.d.ts +729 -0
- package/dist/scheduler.js +1 -0
- package/dist/scheduler.js.map +1 -0
- package/dist/state-machine.cjs +19 -0
- package/dist/state-machine.cjs.map +1 -0
- package/dist/state-machine.d.cts +1240 -0
- package/dist/state-machine.d.ts +1240 -0
- package/dist/state-machine.js +1 -0
- package/dist/state-machine.js.map +1 -0
- package/dist/targets.cjs +19 -0
- package/dist/targets.cjs.map +1 -0
- package/dist/targets.d.cts +352 -0
- package/dist/targets.d.ts +352 -0
- package/dist/targets.js +1 -0
- package/dist/targets.js.map +1 -0
- package/dist/task-run.cjs +19 -0
- package/dist/task-run.cjs.map +1 -0
- package/dist/task-run.d.cts +1566 -0
- package/dist/task-run.d.ts +1566 -0
- package/dist/task-run.js +1 -0
- package/dist/task-run.js.map +1 -0
- package/dist/tree-events.cjs +19 -0
- package/dist/tree-events.cjs.map +1 -0
- package/dist/tree-events.d.cts +522 -0
- package/dist/tree-events.d.ts +522 -0
- package/dist/tree-events.js +1 -0
- package/dist/tree-events.js.map +1 -0
- package/dist/ui-bridge-ir.cjs +376 -0
- package/dist/ui-bridge-ir.cjs.map +1 -0
- package/dist/ui-bridge-ir.d.cts +820 -0
- package/dist/ui-bridge-ir.d.ts +820 -0
- package/dist/ui-bridge-ir.js +343 -0
- package/dist/ui-bridge-ir.js.map +1 -0
- package/dist/workflow.cjs +181 -0
- package/dist/workflow.cjs.map +1 -0
- package/dist/workflow.d.cts +2092 -0
- package/dist/workflow.d.ts +2092 -0
- package/dist/workflow.js +11 -0
- package/dist/workflow.js.map +1 -0
- package/package.json +136 -0
- package/src/accessibility/_api.ts +17 -0
- package/src/accessibility/index.ts +1 -0
- package/src/canvas/index.ts +319 -0
- package/src/chat/_api.ts +23 -0
- package/src/chat/index.ts +1 -0
- package/src/config/_api.ts +13 -0
- package/src/config/index.ts +1 -0
- package/src/constraints/_api.ts +17 -0
- package/src/constraints/index.ts +1 -0
- package/src/discovery.ts +188 -0
- package/src/execution/_api.ts +483 -0
- package/src/execution/index.ts +1 -0
- package/src/generated/A11yAction.d.ts +11 -0
- package/src/generated/AccessibilityBackend.d.ts +12 -0
- package/src/generated/AccessibilityBounds.d.ts +17 -0
- package/src/generated/AccessibilityNode.d.ts +73 -0
- package/src/generated/AccessibilityRole.d.ts +93 -0
- package/src/generated/AccessibilityRoleCriterion.d.ts +13 -0
- package/src/generated/AccessibilitySelector.d.ts +76 -0
- package/src/generated/AccessibilitySnapshot.d.ts +43 -0
- package/src/generated/AccessibilityState.d.ts +67 -0
- package/src/generated/ActionExecutionBatch.d.ts +23 -0
- package/src/generated/ActionExecutionBatchResponse.d.ts +24 -0
- package/src/generated/ActionExecutionCreate.d.ts +124 -0
- package/src/generated/ActionExecutionListResponse.d.ts +20 -0
- package/src/generated/ActionExecutionResponse.d.ts +24 -0
- package/src/generated/ActionReliabilityStats.d.ts +54 -0
- package/src/generated/ActionResponse.d.ts +45 -0
- package/src/generated/ActionStatus.d.ts +11 -0
- package/src/generated/ActionType.d.ts +41 -0
- package/src/generated/ActiveStatesResult.d.ts +32 -0
- package/src/generated/AgenticPhaseOutput.d.ts +50 -0
- package/src/generated/AgenticStatus.d.ts +11 -0
- package/src/generated/AiWorkflow.d.ts +76 -0
- package/src/generated/ApiAssertion.d.ts +35 -0
- package/src/generated/ApiAssertionOperator.d.ts +11 -0
- package/src/generated/ApiAssertionType.d.ts +11 -0
- package/src/generated/ApiContentType.d.ts +11 -0
- package/src/generated/ApiVariableExtraction.d.ts +24 -0
- package/src/generated/AppEvent.d.ts +586 -0
- package/src/generated/AvailableTransitionsResult.d.ts +34 -0
- package/src/generated/BaseStepFields.d.ts +72 -0
- package/src/generated/BatchComputeEmbeddingRequest.d.ts +27 -0
- package/src/generated/BatchComputeEmbeddingResponse.d.ts +23 -0
- package/src/generated/BatchEmbeddingResult.d.ts +23 -0
- package/src/generated/BetweenIterations.d.ts +35 -0
- package/src/generated/BoundingBox.d.ts +18 -0
- package/src/generated/BuildPhaseConfig.d.ts +24 -0
- package/src/generated/BuiltinOverrideProposal.d.ts +27 -0
- package/src/generated/CanonicalStep.d.ts +60 -0
- package/src/generated/CatchUpPolicy.d.ts +12 -0
- package/src/generated/Category.d.ts +24 -0
- package/src/generated/CheckIssueDetail.d.ts +40 -0
- package/src/generated/CheckType.d.ts +21 -0
- package/src/generated/CodeExecutionStep.d.ts +88 -0
- package/src/generated/CommandMode.d.ts +11 -0
- package/src/generated/CommandStep.d.ts +183 -0
- package/src/generated/CommandStepPhase.d.ts +11 -0
- package/src/generated/ComponentActionInfo.d.ts +24 -0
- package/src/generated/ComponentActionRequest.d.ts +22 -0
- package/src/generated/ComputeEmbeddingRequest.d.ts +24 -0
- package/src/generated/ComputeEmbeddingResponse.d.ts +38 -0
- package/src/generated/ComputeTextEmbeddingRequest.d.ts +20 -0
- package/src/generated/ComputeTextEmbeddingResponse.d.ts +32 -0
- package/src/generated/ConditionScheduleConfig.d.ts +17 -0
- package/src/generated/ConditionStatus.d.ts +29 -0
- package/src/generated/Confidence.d.ts +11 -0
- package/src/generated/ConfidenceLevel.d.ts +11 -0
- package/src/generated/Constraint.d.ts +33 -0
- package/src/generated/ConstraintCheck.d.ts +64 -0
- package/src/generated/ConstraintProposal.d.ts +37 -0
- package/src/generated/ConstraintResult.d.ts +32 -0
- package/src/generated/ConstraintSeverity.d.ts +16 -0
- package/src/generated/ConstraintViolation.d.ts +24 -0
- package/src/generated/Context.d.ts +50 -0
- package/src/generated/ContextAutoInclude.d.ts +34 -0
- package/src/generated/CoordinateSystem.d.ts +12 -0
- package/src/generated/Coordinates.d.ts +33 -0
- package/src/generated/CostTrendDataPoint.d.ts +36 -0
- package/src/generated/CostTrendResponse.d.ts +41 -0
- package/src/generated/CoverageData.d.ts +52 -0
- package/src/generated/CreateMcpCallInput.d.ts +59 -0
- package/src/generated/CreateMcpServerInput.d.ts +48 -0
- package/src/generated/CreateOlConfigRequest.d.ts +27 -0
- package/src/generated/CreateScheduledTaskRequest.d.ts +63 -0
- package/src/generated/CreateTaskRunRequest.d.ts +51 -0
- package/src/generated/CriterionOverride.d.ts +39 -0
- package/src/generated/CriterionType.d.ts +11 -0
- package/src/generated/DagApprovalStep.d.ts +80 -0
- package/src/generated/DagCancelStep.d.ts +76 -0
- package/src/generated/DagLoopStep.d.ts +80 -0
- package/src/generated/DecomposerConfig.d.ts +31 -0
- package/src/generated/DiagnosePhaseConfig.d.ts +34 -0
- package/src/generated/DiagnosticResult.d.ts +40 -0
- package/src/generated/DiscoveredElement.d.ts +48 -0
- package/src/generated/DiscoveredState.d.ts +49 -0
- package/src/generated/DiscoveredStateImage.d.ts +56 -0
- package/src/generated/DiscoveredTransition.d.ts +44 -0
- package/src/generated/DiscoveryBoundingBox.d.ts +32 -0
- package/src/generated/DiscoveryRequest.d.ts +40 -0
- package/src/generated/DiscoveryResponse.d.ts +32 -0
- package/src/generated/DiscoverySourceType.d.ts +14 -0
- package/src/generated/DiscoveryStrategy.d.ts +13 -0
- package/src/generated/DiscoveryTransitionTrigger.d.ts +38 -0
- package/src/generated/DisplayNode.d.ts +45 -0
- package/src/generated/DomainAssignment.d.ts +50 -0
- package/src/generated/DomainKnowledge.d.ts +29 -0
- package/src/generated/DomainVerificationResult.d.ts +36 -0
- package/src/generated/ElementActionRequest.d.ts +28 -0
- package/src/generated/ElementBbox.d.ts +36 -0
- package/src/generated/ElementIdentifier.d.ts +40 -0
- package/src/generated/ElementRect.d.ts +48 -0
- package/src/generated/ElementState.d.ts +47 -0
- package/src/generated/ElementType.d.ts +45 -0
- package/src/generated/EmbeddedElement.d.ts +36 -0
- package/src/generated/EmbeddingItem.d.ts +49 -0
- package/src/generated/EmbeddingListResponse.d.ts +22 -0
- package/src/generated/EmbeddingResultItem.d.ts +29 -0
- package/src/generated/EmbeddingResultsRequest.d.ts +19 -0
- package/src/generated/EmbeddingResultsResponse.d.ts +17 -0
- package/src/generated/ErrorType.d.ts +18 -0
- package/src/generated/ExecutePlaybookStep.d.ts +84 -0
- package/src/generated/ExecutionActionType.d.ts +40 -0
- package/src/generated/ExecutionIssueBatch.d.ts +19 -0
- package/src/generated/ExecutionIssueBatchResponse.d.ts +24 -0
- package/src/generated/ExecutionIssueCreate.d.ts +57 -0
- package/src/generated/ExecutionIssueDetail.d.ts +89 -0
- package/src/generated/ExecutionIssueListResponse.d.ts +26 -0
- package/src/generated/ExecutionIssueResponse.d.ts +24 -0
- package/src/generated/ExecutionIssueUpdate.d.ts +31 -0
- package/src/generated/ExecutionMatchLocation.d.ts +31 -0
- package/src/generated/ExecutionRunComplete.d.ts +34 -0
- package/src/generated/ExecutionRunCompleteResponse.d.ts +38 -0
- package/src/generated/ExecutionRunCreate.d.ts +40 -0
- package/src/generated/ExecutionRunDetail.d.ts +76 -0
- package/src/generated/ExecutionRunListResponse.d.ts +22 -0
- package/src/generated/ExecutionRunResponse.d.ts +41 -0
- package/src/generated/ExecutionScreenshotCreate.d.ts +59 -0
- package/src/generated/ExecutionScreenshotResponse.d.ts +36 -0
- package/src/generated/ExecutionStats.d.ts +56 -0
- package/src/generated/ExecutionStep.d.ts +78 -0
- package/src/generated/ExecutionTreeResponse.d.ts +42 -0
- package/src/generated/ExecutionTrendDataPoint.d.ts +36 -0
- package/src/generated/ExecutionTrendResponse.d.ts +46 -0
- package/src/generated/ExitCheckResult.d.ts +20 -0
- package/src/generated/ExitStrategy.d.ts +27 -0
- package/src/generated/ExportResult.d.ts +30 -0
- package/src/generated/ExtendIterationsRequest.d.ts +20 -0
- package/src/generated/FileChange.d.ts +20 -0
- package/src/generated/Finding.d.ts +40 -0
- package/src/generated/FindingActionType.d.ts +13 -0
- package/src/generated/FindingBatchCreate.d.ts +27 -0
- package/src/generated/FindingCategory.d.ts +25 -0
- package/src/generated/FindingCodeContext.d.ts +31 -0
- package/src/generated/FindingCreate.d.ts +52 -0
- package/src/generated/FindingDetail.d.ts +78 -0
- package/src/generated/FindingListResponse.d.ts +40 -0
- package/src/generated/FindingOutput.d.ts +36 -0
- package/src/generated/FindingSeverity.d.ts +14 -0
- package/src/generated/FindingStatus.d.ts +15 -0
- package/src/generated/FindingSummary.d.ts +53 -0
- package/src/generated/FindingUpdate.d.ts +33 -0
- package/src/generated/FindingUserInput.d.ts +27 -0
- package/src/generated/FindingsSummary.d.ts +47 -0
- package/src/generated/FlowEvent.d.ts +66 -0
- package/src/generated/FullRunnerStep.d.ts +144 -0
- package/src/generated/GUIElementChunk.d.ts +151 -0
- package/src/generated/GateEvaluationResult.d.ts +36 -0
- package/src/generated/HealthCheckUrl.d.ts +35 -0
- package/src/generated/HistoricalActionQuery.d.ts +42 -0
- package/src/generated/HistoricalActionResult.d.ts +57 -0
- package/src/generated/HttpConfig.d.ts +27 -0
- package/src/generated/HttpMethod.d.ts +13 -0
- package/src/generated/IdleCondition.d.ts +17 -0
- package/src/generated/ImplementFixesConfig.d.ts +25 -0
- package/src/generated/IndividualCheckResult.d.ts +50 -0
- package/src/generated/InitialStateRef.d.ts +23 -0
- package/src/generated/InitialStatesSource.d.ts +18 -0
- package/src/generated/IssueSeverity.d.ts +11 -0
- package/src/generated/IssueSource.d.ts +11 -0
- package/src/generated/IssueStatus.d.ts +11 -0
- package/src/generated/IssueType.d.ts +21 -0
- package/src/generated/IterationResult.d.ts +65 -0
- package/src/generated/IterationVerificationResults.d.ts +53 -0
- package/src/generated/JobItem.d.ts +31 -0
- package/src/generated/JobListResponse.d.ts +20 -0
- package/src/generated/JobStatus.d.ts +11 -0
- package/src/generated/JobSummary.d.ts +30 -0
- package/src/generated/LLMCostSummary.d.ts +38 -0
- package/src/generated/LLMMetrics.d.ts +42 -0
- package/src/generated/LogSourceSelection.d.ts +25 -0
- package/src/generated/LoopInstanceStatus.d.ts +28 -0
- package/src/generated/LoopPhase.d.ts +26 -0
- package/src/generated/MatchAdjustment.d.ts +23 -0
- package/src/generated/MatchLocation.d.ts +22 -0
- package/src/generated/MatchMethod.d.ts +11 -0
- package/src/generated/McpCallRecord.d.ts +35 -0
- package/src/generated/McpCallsResult.d.ts +44 -0
- package/src/generated/McpConnectionRef.d.ts +25 -0
- package/src/generated/McpServerConfig.d.ts +77 -0
- package/src/generated/McpServerStatus.d.ts +42 -0
- package/src/generated/McpToolCallResult.d.ts +38 -0
- package/src/generated/McpToolInfo.d.ts +23 -0
- package/src/generated/McpToolInputSchema.d.ts +34 -0
- package/src/generated/McpTransport.d.ts +15 -0
- package/src/generated/ModelCostBreakdown.d.ts +36 -0
- package/src/generated/ModelOverrideConfig.d.ts +47 -0
- package/src/generated/Monitor.d.ts +48 -0
- package/src/generated/MonitorPosition.d.ts +13 -0
- package/src/generated/MouseButton.d.ts +13 -0
- package/src/generated/MultiLoopConfig.d.ts +32 -0
- package/src/generated/MultiLoopEntry.d.ts +32 -0
- package/src/generated/MultiLoopStatus.d.ts +37 -0
- package/src/generated/NativeAccessibilityStep.d.ts +121 -0
- package/src/generated/NavigationResult.d.ts +40 -0
- package/src/generated/NewConstraintProposal.d.ts +20 -0
- package/src/generated/NextTaskInfo.d.ts +24 -0
- package/src/generated/NodeMetadata.d.ts +47 -0
- package/src/generated/NodeStatus.d.ts +11 -0
- package/src/generated/NodeType.d.ts +11 -0
- package/src/generated/OcrEngine.d.ts +11 -0
- package/src/generated/OlConfig.d.ts +48 -0
- package/src/generated/OrchestrationLoopConfig.d.ts +87 -0
- package/src/generated/OrchestrationLoopStatus.d.ts +59 -0
- package/src/generated/Outcome.d.ts +15 -0
- package/src/generated/OutputLine.d.ts +23 -0
- package/src/generated/OutputStream.d.ts +11 -0
- package/src/generated/OverrideCollection.d.ts +18 -0
- package/src/generated/Pagination.d.ts +28 -0
- package/src/generated/ParserType.d.ts +17 -0
- package/src/generated/PathElement.d.ts +17 -0
- package/src/generated/PathfindingRequest.d.ts +24 -0
- package/src/generated/PathfindingResult.d.ts +30 -0
- package/src/generated/PathfindingStep.d.ts +36 -0
- package/src/generated/PatternOptions.d.ts +32 -0
- package/src/generated/PipelineConfig.d.ts +31 -0
- package/src/generated/PlaybackFrameRequest.d.ts +21 -0
- package/src/generated/PlaywrightExecutionMode.d.ts +11 -0
- package/src/generated/Point.d.ts +20 -0
- package/src/generated/PollingConfig.d.ts +14 -0
- package/src/generated/ProcessConfig.d.ts +96 -0
- package/src/generated/ProcessState.d.ts +15 -0
- package/src/generated/ProcessStatus.d.ts +41 -0
- package/src/generated/PromptStep.d.ts +92 -0
- package/src/generated/PromptStepPhase.d.ts +13 -0
- package/src/generated/RAGDashboardStats.d.ts +26 -0
- package/src/generated/RagCompletionEvent.d.ts +25 -0
- package/src/generated/RagProcessingStatus.d.ts +11 -0
- package/src/generated/RagProgressEvent.d.ts +27 -0
- package/src/generated/ReadConfigResponse.d.ts +20 -0
- package/src/generated/ReflectionFixOutput.d.ts +20 -0
- package/src/generated/Region.d.ts +39 -0
- package/src/generated/RepositoryInactiveCondition.d.ts +24 -0
- package/src/generated/RepositoryWatch.d.ts +20 -0
- package/src/generated/ResolvedInitialStates.d.ts +29 -0
- package/src/generated/ResolvedInitialStatesResult.d.ts +40 -0
- package/src/generated/ResourceLimits.d.ts +33 -0
- package/src/generated/RestartProcessStep.d.ts +88 -0
- package/src/generated/RetryPolicy.d.ts +24 -0
- package/src/generated/RetrySpec.d.ts +24 -0
- package/src/generated/RoleCriterion.d.ts +14 -0
- package/src/generated/RootCauseCategory.d.ts +18 -0
- package/src/generated/RoutingRule.d.ts +38 -0
- package/src/generated/RunPromptRequest.d.ts +56 -0
- package/src/generated/RunPromptResponse.d.ts +50 -0
- package/src/generated/RunPromptResponseData.d.ts +20 -0
- package/src/generated/RunStatus.d.ts +11 -0
- package/src/generated/RunType.d.ts +11 -0
- package/src/generated/Runner.d.ts +81 -0
- package/src/generated/RunnerCrash.d.ts +32 -0
- package/src/generated/RunnerMetadata.d.ts +42 -0
- package/src/generated/RunnerStatus.d.ts +12 -0
- package/src/generated/RunnerUiError.d.ts +28 -0
- package/src/generated/RuntimeData.d.ts +40 -0
- package/src/generated/SaveWorkflowArtifactStep.d.ts +80 -0
- package/src/generated/ScheduleConditions.d.ts +29 -0
- package/src/generated/ScheduleExpression.d.ts +39 -0
- package/src/generated/ScheduledTask.d.ts +104 -0
- package/src/generated/ScheduledTaskStatus.d.ts +19 -0
- package/src/generated/ScheduledTaskType.d.ts +126 -0
- package/src/generated/SchedulerSettings.d.ts +28 -0
- package/src/generated/SchedulerStatus.d.ts +31 -0
- package/src/generated/ScreenshotAnnotation.d.ts +39 -0
- package/src/generated/ScreenshotAnnotationShape.d.ts +11 -0
- package/src/generated/ScreenshotType.d.ts +11 -0
- package/src/generated/ScrollDirection.d.ts +13 -0
- package/src/generated/SearchOptions.d.ts +33 -0
- package/src/generated/SearchResultItem.d.ts +19 -0
- package/src/generated/SearchStrategy.d.ts +14 -0
- package/src/generated/SemanticSearchRequest.d.ts +26 -0
- package/src/generated/SemanticSearchResponse.d.ts +21 -0
- package/src/generated/StageCondition.d.ts +37 -0
- package/src/generated/StageInput.d.ts +27 -0
- package/src/generated/StageOutput.d.ts +20 -0
- package/src/generated/StageTransition.d.ts +30 -0
- package/src/generated/StallDetectorConfig.d.ts +31 -0
- package/src/generated/StandardActionType.d.ts +40 -0
- package/src/generated/StateContext.d.ts +17 -0
- package/src/generated/StateDiscoveryResult.d.ts +104 -0
- package/src/generated/StateDiscoveryResultCreate.d.ts +65 -0
- package/src/generated/StateDiscoveryResultListResponse.d.ts +23 -0
- package/src/generated/StateDiscoveryResultSummary.d.ts +57 -0
- package/src/generated/StateDiscoveryResultUpdate.d.ts +47 -0
- package/src/generated/StateFilterItem.d.ts +18 -0
- package/src/generated/StateMachineConfig.d.ts +45 -0
- package/src/generated/StateMachineConfigCreate.d.ts +20 -0
- package/src/generated/StateMachineConfigFull.d.ts +67 -0
- package/src/generated/StateMachineConfigUpdate.d.ts +20 -0
- package/src/generated/StateMachineExport.d.ts +64 -0
- package/src/generated/StateMachineExportFormat.d.ts +39 -0
- package/src/generated/StateMachineImport.d.ts +25 -0
- package/src/generated/StateMachineState.d.ts +71 -0
- package/src/generated/StateMachineStateCreate.d.ts +52 -0
- package/src/generated/StateMachineStateUpdate.d.ts +48 -0
- package/src/generated/StateMachineTransition.d.ts +75 -0
- package/src/generated/StateMachineTransitionCreate.d.ts +53 -0
- package/src/generated/StateMachineTransitionUpdate.d.ts +53 -0
- package/src/generated/StateNodeData.d.ts +71 -0
- package/src/generated/StatesResponse.d.ts +19 -0
- package/src/generated/StdioConfig.d.ts +34 -0
- package/src/generated/StepExecutionConfig.d.ts +37 -0
- package/src/generated/StructuredFinding.d.ts +32 -0
- package/src/generated/StructuredOverride.d.ts +24 -0
- package/src/generated/StructuredSignal.d.ts +20 -0
- package/src/generated/SuccessCriterion.d.ts +57 -0
- package/src/generated/SummarizationConfig.d.ts +35 -0
- package/src/generated/TargetConfig.d.ts +108 -0
- package/src/generated/TaskCompletionResult.d.ts +90 -0
- package/src/generated/TaskExecutionRecord.d.ts +61 -0
- package/src/generated/TaskRun.d.ts +88 -0
- package/src/generated/TaskRunBackend.d.ts +86 -0
- package/src/generated/TaskRunBackendDetail.d.ts +99 -0
- package/src/generated/TaskRunCreate.d.ts +62 -0
- package/src/generated/TaskRunFilters.d.ts +38 -0
- package/src/generated/TaskRunFinding.d.ts +100 -0
- package/src/generated/TaskRunFindingActionType.d.ts +11 -0
- package/src/generated/TaskRunFindingCategory.d.ts +24 -0
- package/src/generated/TaskRunFindingCreate.d.ts +79 -0
- package/src/generated/TaskRunFindingFilters.d.ts +28 -0
- package/src/generated/TaskRunFindingSeverity.d.ts +11 -0
- package/src/generated/TaskRunFindingStatus.d.ts +11 -0
- package/src/generated/TaskRunFindingSummary.d.ts +34 -0
- package/src/generated/TaskRunFindingUpdate.d.ts +34 -0
- package/src/generated/TaskRunFindingsListResponse.d.ts +24 -0
- package/src/generated/TaskRunListResponse.d.ts +21 -0
- package/src/generated/TaskRunSession.d.ts +40 -0
- package/src/generated/TaskRunStatus.d.ts +11 -0
- package/src/generated/TaskRunUpdate.d.ts +47 -0
- package/src/generated/TaskType.d.ts +11 -0
- package/src/generated/TerminalExitEvent.d.ts +26 -0
- package/src/generated/TerminalInfo.d.ts +69 -0
- package/src/generated/TerminalOutputEvent.d.ts +29 -0
- package/src/generated/TestType.d.ts +11 -0
- package/src/generated/TextMatchType.d.ts +11 -0
- package/src/generated/TextSearchOptions.d.ts +30 -0
- package/src/generated/Ticket.d.ts +53 -0
- package/src/generated/TicketComment.d.ts +28 -0
- package/src/generated/TicketProviderConfig.d.ts +55 -0
- package/src/generated/TicketSource.d.ts +17 -0
- package/src/generated/TicketState.d.ts +15 -0
- package/src/generated/TimingInfo.d.ts +23 -0
- package/src/generated/TopMatch.d.ts +17 -0
- package/src/generated/TransitionAction.d.ts +93 -0
- package/src/generated/TransitionActionValue.d.ts +14 -0
- package/src/generated/TransitionEdgeData.d.ts +46 -0
- package/src/generated/TransitionExecutionResult.d.ts +30 -0
- package/src/generated/TransitionInfo.d.ts +29 -0
- package/src/generated/TransitionTriggerType.d.ts +13 -0
- package/src/generated/TreeEvent.d.ts +47 -0
- package/src/generated/TreeEventCreate.d.ts +30 -0
- package/src/generated/TreeEventListResponse.d.ts +30 -0
- package/src/generated/TreeEventResponse.d.ts +47 -0
- package/src/generated/TreeEventType.d.ts +20 -0
- package/src/generated/TreeNode.d.ts +54 -0
- package/src/generated/UIBridgeCapturedToast.d.ts +22 -0
- package/src/generated/UIBridgeComponent.d.ts +45 -0
- package/src/generated/UIBridgeElement.d.ts +62 -0
- package/src/generated/UIBridgeModalInfo.d.ts +40 -0
- package/src/generated/UIBridgeModalStack.d.ts +19 -0
- package/src/generated/UIBridgeSnapshot.d.ts +67 -0
- package/src/generated/UIBridgeToastContext.d.ts +17 -0
- package/src/generated/UIBridgeUndoContext.d.ts +19 -0
- package/src/generated/UiBridgeAction.d.ts +18 -0
- package/src/generated/UiBridgeAssertType.d.ts +11 -0
- package/src/generated/UiBridgeComparisonMode.d.ts +11 -0
- package/src/generated/UiBridgeDesignAuditStep.d.ts +76 -0
- package/src/generated/UiBridgeSeverity.d.ts +11 -0
- package/src/generated/UiBridgeStep.d.ts +127 -0
- package/src/generated/UiBridgeStepPhase.d.ts +14 -0
- package/src/generated/UiBridgeVisualAssertionStep.d.ts +97 -0
- package/src/generated/UnifiedStep.d.ts +57 -0
- package/src/generated/UnifiedWorkflow.d.ts +411 -0
- package/src/generated/UpdateMcpServerInput.d.ts +28 -0
- package/src/generated/UpdateOlConfigRequest.d.ts +32 -0
- package/src/generated/UpdateScheduledTaskRequest.d.ts +71 -0
- package/src/generated/ValidateConfigRequest.d.ts +16 -0
- package/src/generated/ValidateConfigResponse.d.ts +28 -0
- package/src/generated/VectorSearchResult.d.ts +48 -0
- package/src/generated/VerificationAgentContext.d.ts +25 -0
- package/src/generated/VerificationCategoryKind.d.ts +19 -0
- package/src/generated/VerificationMethod.d.ts +20 -0
- package/src/generated/VerificationPhaseResult.d.ts +63 -0
- package/src/generated/VerificationPlan.d.ts +43 -0
- package/src/generated/VerificationResult.d.ts +44 -0
- package/src/generated/VerificationResultResponse.d.ts +65 -0
- package/src/generated/VerificationResultsListResponse.d.ts +41 -0
- package/src/generated/VerificationStepDetails.d.ts +55 -0
- package/src/generated/VerificationStepResult.d.ts +68 -0
- package/src/generated/VgaAction.d.ts +61 -0
- package/src/generated/VgaActionKind.d.ts +14 -0
- package/src/generated/VgaAutomateStep.d.ts +110 -0
- package/src/generated/VirtualDesktop.d.ts +23 -0
- package/src/generated/VisualAssertionType.d.ts +11 -0
- package/src/generated/VisualComparisonResult.d.ts +40 -0
- package/src/generated/WaitOptions.d.ts +35 -0
- package/src/generated/WorkerCoordinationMessage.d.ts +93 -0
- package/src/generated/WorkerDomain.d.ts +29 -0
- package/src/generated/WorkerInstance.d.ts +62 -0
- package/src/generated/WorkerOutput.d.ts +53 -0
- package/src/generated/WorkerSignal.d.ts +48 -0
- package/src/generated/WorkerStatus.d.ts +11 -0
- package/src/generated/WorkflowArchitecture.d.ts +16 -0
- package/src/generated/WorkflowFixupMode.d.ts +11 -0
- package/src/generated/WorkflowFixupStep.d.ts +85 -0
- package/src/generated/WorkflowInfo.d.ts +28 -0
- package/src/generated/WorkflowMetadata.d.ts +44 -0
- package/src/generated/WorkflowRefStep.d.ts +94 -0
- package/src/generated/WorkflowStage.d.ts +126 -0
- package/src/generated/WorkflowStep.d.ts +80 -0
- package/src/generated/WorkflowStepPhase.d.ts +11 -0
- package/src/generated/WriteConfigRequest.d.ts +20 -0
- package/src/generated/WriteConfigResponse.d.ts +24 -0
- package/src/generated/index.ts +421 -0
- package/src/geometry/_api.ts +16 -0
- package/src/geometry/index.ts +1 -0
- package/src/index.ts +73 -0
- package/src/known-issues/index.ts +179 -0
- package/src/library/_api.ts +326 -0
- package/src/library/index.ts +1 -0
- package/src/rag/_api.ts +47 -0
- package/src/rag/index.ts +1 -0
- package/src/render-log.ts +371 -0
- package/src/runner/_api.ts +14 -0
- package/src/runner/index.ts +1 -0
- package/src/scheduler/_api.ts +21 -0
- package/src/scheduler/index.ts +1 -0
- package/src/state-machine/_api.ts +145 -0
- package/src/state-machine/index.ts +1 -0
- package/src/targets/_api.ts +47 -0
- package/src/targets/index.ts +1 -0
- package/src/task-run/_api.ts +108 -0
- package/src/task-run/index.ts +1 -0
- package/src/tree-events/_api.ts +42 -0
- package/src/tree-events/index.ts +1 -0
- package/src/ui-bridge-ir/__tests__/legacy-roster.test.ts +182 -0
- package/src/ui-bridge-ir/__tests__/projection.test.ts +1029 -0
- package/src/ui-bridge-ir/adapter.ts +220 -0
- package/src/ui-bridge-ir/document.ts +43 -0
- package/src/ui-bridge-ir/element-criteria.ts +48 -0
- package/src/ui-bridge-ir/index.ts +23 -0
- package/src/ui-bridge-ir/ir.schema.json +210 -0
- package/src/ui-bridge-ir/primitives.ts +102 -0
- package/src/ui-bridge-ir/projection.ts +863 -0
- package/src/ui-bridge-ir/state.ts +90 -0
- package/src/ui-bridge-ir/transition.ts +92 -0
- package/src/workflow/_api.ts +474 -0
- package/src/workflow/action-plan.ts +208 -0
- package/src/workflow/index.ts +1 -0
- package/src/workflow/skill.ts +152 -0
|
@@ -0,0 +1,371 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Shared Render Log Types
|
|
3
|
+
*
|
|
4
|
+
* These types define the render logging schema used across:
|
|
5
|
+
* - qontinui-runner (Tauri desktop app) - Component-level logging
|
|
6
|
+
* - qontinui-web (Next.js web app) - Full DOM snapshot logging
|
|
7
|
+
*
|
|
8
|
+
* The runner reads both its own logs and web's logs for verification
|
|
9
|
+
* in AI feedback loops.
|
|
10
|
+
*
|
|
11
|
+
* NOTE: Field names use snake_case to match Rust/Python JSON serialization.
|
|
12
|
+
* This ensures compatibility across all services.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
// =============================================================================
|
|
16
|
+
// Common Types
|
|
17
|
+
// =============================================================================
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
* Trigger types for render log capture.
|
|
21
|
+
* What caused the render log to be captured.
|
|
22
|
+
*/
|
|
23
|
+
export type RenderLogTrigger =
|
|
24
|
+
| "mount" // Component/page mounted
|
|
25
|
+
| "navigation" // Page navigation occurred
|
|
26
|
+
| "mutation" // DOM mutation detected (web only)
|
|
27
|
+
| "data_update" // Data changed (runner components)
|
|
28
|
+
| "prop_change" // Props changed (runner components)
|
|
29
|
+
| "manual" // Explicitly triggered capture
|
|
30
|
+
| "interval"; // Periodic capture
|
|
31
|
+
|
|
32
|
+
/**
|
|
33
|
+
* DOM mutation types (for web's MutationObserver).
|
|
34
|
+
*/
|
|
35
|
+
export type DomMutationType = "childList" | "attributes" | "characterData";
|
|
36
|
+
|
|
37
|
+
// =============================================================================
|
|
38
|
+
// Base Render Log Entry
|
|
39
|
+
// =============================================================================
|
|
40
|
+
|
|
41
|
+
/**
|
|
42
|
+
* Base render log entry with common fields.
|
|
43
|
+
* Extended by component logs and DOM snapshot logs.
|
|
44
|
+
*/
|
|
45
|
+
export interface RenderLogEntryBase {
|
|
46
|
+
/** Unique identifier for this log entry */
|
|
47
|
+
id: string;
|
|
48
|
+
|
|
49
|
+
/** Unix timestamp in milliseconds when the capture occurred */
|
|
50
|
+
timestamp: number;
|
|
51
|
+
|
|
52
|
+
/** What triggered this capture */
|
|
53
|
+
trigger: RenderLogTrigger;
|
|
54
|
+
|
|
55
|
+
/** Session ID for grouping related captures */
|
|
56
|
+
session_id?: string;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
// =============================================================================
|
|
60
|
+
// Runner Component Render Log (Lightweight)
|
|
61
|
+
// =============================================================================
|
|
62
|
+
|
|
63
|
+
/**
|
|
64
|
+
* Component-level render log entry.
|
|
65
|
+
* Used by qontinui-runner to log what data components render.
|
|
66
|
+
*
|
|
67
|
+
* Components explicitly call logRender() with their rendered data.
|
|
68
|
+
* This is lightweight and focused on verifying data display.
|
|
69
|
+
*/
|
|
70
|
+
export interface ComponentRenderLogEntry extends RenderLogEntryBase {
|
|
71
|
+
/** Type discriminator */
|
|
72
|
+
type: "component";
|
|
73
|
+
|
|
74
|
+
/** Component name (e.g., "RunRecapTab", "StatusBanner") */
|
|
75
|
+
component: string;
|
|
76
|
+
|
|
77
|
+
/** The data that was rendered (component-specific structure) */
|
|
78
|
+
data: Record<string, unknown>;
|
|
79
|
+
|
|
80
|
+
/** Sections that are visible/expanded in the component */
|
|
81
|
+
visible_sections?: string[];
|
|
82
|
+
|
|
83
|
+
/** Associated task run ID if applicable */
|
|
84
|
+
task_run_id?: number;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
// =============================================================================
|
|
88
|
+
// Web DOM Snapshot Render Log (Comprehensive)
|
|
89
|
+
// =============================================================================
|
|
90
|
+
|
|
91
|
+
/**
|
|
92
|
+
* Bounding rectangle for an element.
|
|
93
|
+
*/
|
|
94
|
+
export interface ElementRect {
|
|
95
|
+
x: number;
|
|
96
|
+
y: number;
|
|
97
|
+
width: number;
|
|
98
|
+
height: number;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
/**
|
|
102
|
+
* Single DOM element in a snapshot.
|
|
103
|
+
* Recursive structure representing the DOM tree.
|
|
104
|
+
*/
|
|
105
|
+
export interface DomElementSnapshot {
|
|
106
|
+
/** HTML tag name (lowercase) */
|
|
107
|
+
tag: string;
|
|
108
|
+
|
|
109
|
+
/** Element ID if present */
|
|
110
|
+
id?: string;
|
|
111
|
+
|
|
112
|
+
/** CSS class list */
|
|
113
|
+
class_list: string[];
|
|
114
|
+
|
|
115
|
+
/** Direct text content (not from children) */
|
|
116
|
+
text_content?: string;
|
|
117
|
+
|
|
118
|
+
/** Length of innerHTML (for size estimation) */
|
|
119
|
+
inner_html_length?: number;
|
|
120
|
+
|
|
121
|
+
/** Bounding rectangle relative to viewport */
|
|
122
|
+
rect?: ElementRect;
|
|
123
|
+
|
|
124
|
+
/** Whether the element is visible */
|
|
125
|
+
is_visible: boolean;
|
|
126
|
+
|
|
127
|
+
/** Computed opacity */
|
|
128
|
+
opacity?: number;
|
|
129
|
+
|
|
130
|
+
/** Computed display value */
|
|
131
|
+
display?: string;
|
|
132
|
+
|
|
133
|
+
/** Key HTML attributes */
|
|
134
|
+
attributes: Record<string, string>;
|
|
135
|
+
|
|
136
|
+
/** Selected computed styles */
|
|
137
|
+
computed_styles?: Record<string, string>;
|
|
138
|
+
|
|
139
|
+
/** Child elements (recursive) */
|
|
140
|
+
children: DomElementSnapshot[];
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
/**
|
|
144
|
+
* Form data extracted from the page.
|
|
145
|
+
*/
|
|
146
|
+
export interface FormSnapshot {
|
|
147
|
+
id?: string;
|
|
148
|
+
action?: string;
|
|
149
|
+
method?: string;
|
|
150
|
+
inputs: Array<{
|
|
151
|
+
type: string;
|
|
152
|
+
name: string;
|
|
153
|
+
value: string;
|
|
154
|
+
}>;
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
/**
|
|
158
|
+
* Link data extracted from the page.
|
|
159
|
+
*/
|
|
160
|
+
export interface LinkSnapshot {
|
|
161
|
+
href: string;
|
|
162
|
+
text: string;
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
/**
|
|
166
|
+
* Image data extracted from the page.
|
|
167
|
+
*/
|
|
168
|
+
export interface ImageSnapshot {
|
|
169
|
+
src: string;
|
|
170
|
+
alt?: string;
|
|
171
|
+
width?: number;
|
|
172
|
+
height?: number;
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
/**
|
|
176
|
+
* Full DOM snapshot data.
|
|
177
|
+
* Contains the entire page state for debugging.
|
|
178
|
+
*
|
|
179
|
+
* NOTE: The snapshot is stored as JSONB in the database, so field names
|
|
180
|
+
* in the nested structure (root, forms, links, images) may vary by
|
|
181
|
+
* implementation. The web frontend uses camelCase internally but that's
|
|
182
|
+
* stored as-is in the JSONB field.
|
|
183
|
+
*/
|
|
184
|
+
export interface DomSnapshot {
|
|
185
|
+
/** Root element tree (document.body) */
|
|
186
|
+
root: DomElementSnapshot | null;
|
|
187
|
+
|
|
188
|
+
/** Total number of elements in the tree */
|
|
189
|
+
total_elements: number;
|
|
190
|
+
|
|
191
|
+
/** Concatenated visible text (truncated) */
|
|
192
|
+
visible_text?: string;
|
|
193
|
+
|
|
194
|
+
/** Forms on the page */
|
|
195
|
+
forms: FormSnapshot[];
|
|
196
|
+
|
|
197
|
+
/** Links on the page */
|
|
198
|
+
links: LinkSnapshot[];
|
|
199
|
+
|
|
200
|
+
/** Images on the page */
|
|
201
|
+
images: ImageSnapshot[];
|
|
202
|
+
|
|
203
|
+
/** JavaScript console errors captured */
|
|
204
|
+
errors: string[];
|
|
205
|
+
|
|
206
|
+
/** JavaScript console warnings captured */
|
|
207
|
+
warnings: string[];
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
/**
|
|
211
|
+
* Full DOM snapshot render log entry.
|
|
212
|
+
* Used by qontinui-web to capture entire page state.
|
|
213
|
+
*
|
|
214
|
+
* Automatically captured via MutationObserver on DOM changes.
|
|
215
|
+
* Provides comprehensive debugging data.
|
|
216
|
+
*/
|
|
217
|
+
export interface DomSnapshotRenderLogEntry extends RenderLogEntryBase {
|
|
218
|
+
/** Type discriminator */
|
|
219
|
+
type: "dom_snapshot";
|
|
220
|
+
|
|
221
|
+
/** Current page URL */
|
|
222
|
+
page_url: string;
|
|
223
|
+
|
|
224
|
+
/** Page title */
|
|
225
|
+
page_title?: string;
|
|
226
|
+
|
|
227
|
+
/** Type of DOM mutation that triggered capture (if mutation trigger) */
|
|
228
|
+
mutation_type?: DomMutationType;
|
|
229
|
+
|
|
230
|
+
/** CSS selector of the element that was mutated */
|
|
231
|
+
target_selector?: string;
|
|
232
|
+
|
|
233
|
+
/** The full DOM snapshot */
|
|
234
|
+
snapshot: DomSnapshot;
|
|
235
|
+
|
|
236
|
+
/** Viewport dimensions */
|
|
237
|
+
viewport_width?: number;
|
|
238
|
+
viewport_height?: number;
|
|
239
|
+
|
|
240
|
+
/** Scroll position */
|
|
241
|
+
scroll_x?: number;
|
|
242
|
+
scroll_y?: number;
|
|
243
|
+
|
|
244
|
+
/** Time taken to capture the snapshot in milliseconds */
|
|
245
|
+
capture_duration_ms?: number;
|
|
246
|
+
|
|
247
|
+
/** Number of elements captured */
|
|
248
|
+
element_count?: number;
|
|
249
|
+
|
|
250
|
+
/** User ID if authenticated (web only) */
|
|
251
|
+
user_id?: string;
|
|
252
|
+
}
|
|
253
|
+
|
|
254
|
+
// =============================================================================
|
|
255
|
+
// Union Type
|
|
256
|
+
// =============================================================================
|
|
257
|
+
|
|
258
|
+
/**
|
|
259
|
+
* Any render log entry.
|
|
260
|
+
* Use the `type` field to discriminate.
|
|
261
|
+
*/
|
|
262
|
+
export type RenderLogEntry =
|
|
263
|
+
| ComponentRenderLogEntry
|
|
264
|
+
| DomSnapshotRenderLogEntry;
|
|
265
|
+
|
|
266
|
+
// =============================================================================
|
|
267
|
+
// API Types (for REST endpoints)
|
|
268
|
+
// =============================================================================
|
|
269
|
+
|
|
270
|
+
/**
|
|
271
|
+
* Request to create a render log entry (web API).
|
|
272
|
+
*/
|
|
273
|
+
export interface CreateRenderLogRequest {
|
|
274
|
+
session_id: string;
|
|
275
|
+
page_url: string;
|
|
276
|
+
page_title?: string;
|
|
277
|
+
trigger: RenderLogTrigger;
|
|
278
|
+
mutation_type?: DomMutationType;
|
|
279
|
+
target_selector?: string;
|
|
280
|
+
snapshot: DomSnapshot;
|
|
281
|
+
viewport_width?: number;
|
|
282
|
+
viewport_height?: number;
|
|
283
|
+
scroll_x?: number;
|
|
284
|
+
scroll_y?: number;
|
|
285
|
+
capture_duration_ms?: number;
|
|
286
|
+
element_count?: number;
|
|
287
|
+
}
|
|
288
|
+
|
|
289
|
+
/**
|
|
290
|
+
* Render log response from web API.
|
|
291
|
+
* Includes database-generated fields.
|
|
292
|
+
*/
|
|
293
|
+
export interface RenderLogResponse {
|
|
294
|
+
id: number;
|
|
295
|
+
session_id: string;
|
|
296
|
+
timestamp: string; // ISO 8601 datetime
|
|
297
|
+
page_url: string;
|
|
298
|
+
page_title?: string;
|
|
299
|
+
trigger: RenderLogTrigger;
|
|
300
|
+
mutation_type?: DomMutationType;
|
|
301
|
+
target_selector?: string;
|
|
302
|
+
snapshot: DomSnapshot;
|
|
303
|
+
viewport_width?: number;
|
|
304
|
+
viewport_height?: number;
|
|
305
|
+
scroll_x?: number;
|
|
306
|
+
scroll_y?: number;
|
|
307
|
+
capture_duration_ms?: number;
|
|
308
|
+
element_count?: number;
|
|
309
|
+
user_id?: string;
|
|
310
|
+
}
|
|
311
|
+
|
|
312
|
+
/**
|
|
313
|
+
* Summary of a render log (without full snapshot).
|
|
314
|
+
*/
|
|
315
|
+
export interface RenderLogSummary {
|
|
316
|
+
id: number;
|
|
317
|
+
session_id: string;
|
|
318
|
+
timestamp: string;
|
|
319
|
+
page_url: string;
|
|
320
|
+
page_title?: string;
|
|
321
|
+
trigger: RenderLogTrigger;
|
|
322
|
+
mutation_type?: DomMutationType;
|
|
323
|
+
element_count?: number;
|
|
324
|
+
capture_duration_ms?: number;
|
|
325
|
+
}
|
|
326
|
+
|
|
327
|
+
/**
|
|
328
|
+
* Paginated list of render logs.
|
|
329
|
+
*/
|
|
330
|
+
export interface RenderLogList {
|
|
331
|
+
items: RenderLogSummary[];
|
|
332
|
+
total: number;
|
|
333
|
+
page: number;
|
|
334
|
+
page_size: number;
|
|
335
|
+
has_more: boolean;
|
|
336
|
+
}
|
|
337
|
+
|
|
338
|
+
/**
|
|
339
|
+
* Render logging statistics.
|
|
340
|
+
*/
|
|
341
|
+
export interface RenderLogStats {
|
|
342
|
+
enabled: boolean;
|
|
343
|
+
total_snapshots: number;
|
|
344
|
+
total_sessions: number;
|
|
345
|
+
oldest_snapshot?: string;
|
|
346
|
+
newest_snapshot?: string;
|
|
347
|
+
storage_used_bytes: number;
|
|
348
|
+
image_count: number;
|
|
349
|
+
}
|
|
350
|
+
|
|
351
|
+
// =============================================================================
|
|
352
|
+
// Type Guards
|
|
353
|
+
// =============================================================================
|
|
354
|
+
|
|
355
|
+
/**
|
|
356
|
+
* Check if a render log entry is a component log.
|
|
357
|
+
*/
|
|
358
|
+
export function isComponentRenderLog(
|
|
359
|
+
entry: RenderLogEntry,
|
|
360
|
+
): entry is ComponentRenderLogEntry {
|
|
361
|
+
return entry.type === "component";
|
|
362
|
+
}
|
|
363
|
+
|
|
364
|
+
/**
|
|
365
|
+
* Check if a render log entry is a DOM snapshot log.
|
|
366
|
+
*/
|
|
367
|
+
export function isDomSnapshotRenderLog(
|
|
368
|
+
entry: RenderLogEntry,
|
|
369
|
+
): entry is DomSnapshotRenderLogEntry {
|
|
370
|
+
return entry.type === "dom_snapshot";
|
|
371
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Runner Types
|
|
3
|
+
*
|
|
4
|
+
* Canonical wire-format types for a registered runner. One row per registered
|
|
5
|
+
* runner; the same shape is served to every consumer (mobile, web, runner UI).
|
|
6
|
+
*
|
|
7
|
+
* Types generated from Rust (source of truth:
|
|
8
|
+
* `qontinui-schemas/rust/src/runner.rs`). Do not edit by hand — regenerate via
|
|
9
|
+
* `qontinui-runner/src-tauri/scripts/generate_types.sh`.
|
|
10
|
+
*/
|
|
11
|
+
export type { Runner } from "../generated/Runner";
|
|
12
|
+
export type { RunnerStatus } from "../generated/RunnerStatus";
|
|
13
|
+
export type { RunnerUiError } from "../generated/RunnerUiError";
|
|
14
|
+
export type { RunnerCrash } from "../generated/RunnerCrash";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./_api";
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
// Types generated from Rust (source of truth: qontinui-schemas/rust/src/scheduler.rs).
|
|
2
|
+
// Do not edit by hand — regenerate via `just generate-types` (or
|
|
3
|
+
// `qontinui-runner/src-tauri/scripts/generate_types.sh`).
|
|
4
|
+
export type { ScheduleExpression } from "../generated/ScheduleExpression";
|
|
5
|
+
export type { ConditionScheduleConfig } from "../generated/ConditionScheduleConfig";
|
|
6
|
+
export type { ScheduleConditions } from "../generated/ScheduleConditions";
|
|
7
|
+
export type { IdleCondition } from "../generated/IdleCondition";
|
|
8
|
+
export type { RepositoryInactiveCondition } from "../generated/RepositoryInactiveCondition";
|
|
9
|
+
export type { RepositoryWatch } from "../generated/RepositoryWatch";
|
|
10
|
+
export type { ConditionStatus } from "../generated/ConditionStatus";
|
|
11
|
+
export type { ScheduledTask } from "../generated/ScheduledTask";
|
|
12
|
+
export type { ScheduledTaskType } from "../generated/ScheduledTaskType";
|
|
13
|
+
export type { ScheduledTaskStatus } from "../generated/ScheduledTaskStatus";
|
|
14
|
+
export type { TaskExecutionRecord } from "../generated/TaskExecutionRecord";
|
|
15
|
+
export type { SchedulerSettings } from "../generated/SchedulerSettings";
|
|
16
|
+
export type { SchedulerStatus } from "../generated/SchedulerStatus";
|
|
17
|
+
export type { NextTaskInfo } from "../generated/NextTaskInfo";
|
|
18
|
+
export type { CreateScheduledTaskRequest } from "../generated/CreateScheduledTaskRequest";
|
|
19
|
+
export type { UpdateScheduledTaskRequest } from "../generated/UpdateScheduledTaskRequest";
|
|
20
|
+
export type { CatchUpPolicy } from "../generated/CatchUpPolicy";
|
|
21
|
+
export type { McpConnectionRef } from "../generated/McpConnectionRef";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./_api";
|
|
@@ -0,0 +1,145 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Unified State Machine types for the Qontinui ecosystem.
|
|
3
|
+
*
|
|
4
|
+
* These types are the single source of truth for state machine data structures
|
|
5
|
+
* used by both qontinui-web and qontinui-runner. They use snake_case to match
|
|
6
|
+
* the API/database layer.
|
|
7
|
+
*
|
|
8
|
+
* Architecture:
|
|
9
|
+
* - Config: A named state machine configuration (collection of states + transitions)
|
|
10
|
+
* - State: A UI state defined by which elements are present
|
|
11
|
+
* - Transition: A named action sequence that moves between states
|
|
12
|
+
* - Action: A single UI interaction (click, type, navigate, etc.)
|
|
13
|
+
*
|
|
14
|
+
* Runtime navigation (pathfinding through states) is handled by the qontinui
|
|
15
|
+
* Python library using multistate. The TypeScript pathfinding types here are
|
|
16
|
+
* for the graph editor's path preview only.
|
|
17
|
+
*
|
|
18
|
+
* Most wire types in this module are generated from Rust (source of truth:
|
|
19
|
+
* qontinui-schemas/rust/src/state_machine.rs). Do not edit those by hand —
|
|
20
|
+
* regenerate via `just generate-types` (or the runner's generate_types.sh).
|
|
21
|
+
* A small number of UI-only sugar types remain hand-authored below.
|
|
22
|
+
*/
|
|
23
|
+
|
|
24
|
+
// =============================================================================
|
|
25
|
+
// Action Types
|
|
26
|
+
// =============================================================================
|
|
27
|
+
|
|
28
|
+
export type { StandardActionType } from "../generated/StandardActionType";
|
|
29
|
+
export type { Point } from "../generated/Point";
|
|
30
|
+
export type { ScrollDirection } from "../generated/ScrollDirection";
|
|
31
|
+
export type { MouseButton } from "../generated/MouseButton";
|
|
32
|
+
export type { TransitionActionValue } from "../generated/TransitionActionValue";
|
|
33
|
+
export type { TransitionAction } from "../generated/TransitionAction";
|
|
34
|
+
|
|
35
|
+
// =============================================================================
|
|
36
|
+
// Domain Knowledge
|
|
37
|
+
// =============================================================================
|
|
38
|
+
|
|
39
|
+
export type { DomainKnowledge } from "../generated/DomainKnowledge";
|
|
40
|
+
|
|
41
|
+
// =============================================================================
|
|
42
|
+
// State Machine Config
|
|
43
|
+
// =============================================================================
|
|
44
|
+
|
|
45
|
+
export type { StateMachineConfig } from "../generated/StateMachineConfig";
|
|
46
|
+
export type { StateMachineConfigCreate } from "../generated/StateMachineConfigCreate";
|
|
47
|
+
export type { StateMachineConfigUpdate } from "../generated/StateMachineConfigUpdate";
|
|
48
|
+
export type { StateMachineConfigFull } from "../generated/StateMachineConfigFull";
|
|
49
|
+
|
|
50
|
+
// =============================================================================
|
|
51
|
+
// State
|
|
52
|
+
// =============================================================================
|
|
53
|
+
|
|
54
|
+
export type { StateMachineState } from "../generated/StateMachineState";
|
|
55
|
+
export type { StateMachineStateCreate } from "../generated/StateMachineStateCreate";
|
|
56
|
+
export type { StateMachineStateUpdate } from "../generated/StateMachineStateUpdate";
|
|
57
|
+
|
|
58
|
+
// =============================================================================
|
|
59
|
+
// Transition
|
|
60
|
+
// =============================================================================
|
|
61
|
+
|
|
62
|
+
export type { StateMachineTransition } from "../generated/StateMachineTransition";
|
|
63
|
+
export type { StateMachineTransitionCreate } from "../generated/StateMachineTransitionCreate";
|
|
64
|
+
export type { StateMachineTransitionUpdate } from "../generated/StateMachineTransitionUpdate";
|
|
65
|
+
|
|
66
|
+
// =============================================================================
|
|
67
|
+
// Pathfinding (Graph Editor Visualization)
|
|
68
|
+
// =============================================================================
|
|
69
|
+
|
|
70
|
+
/**
|
|
71
|
+
* These pathfinding types are for the graph editor's path preview feature.
|
|
72
|
+
* Runtime navigation uses the qontinui Python library (multistate) directly.
|
|
73
|
+
*/
|
|
74
|
+
|
|
75
|
+
export type { PathfindingRequest } from "../generated/PathfindingRequest";
|
|
76
|
+
export type { PathfindingStep } from "../generated/PathfindingStep";
|
|
77
|
+
export type { PathfindingResult } from "../generated/PathfindingResult";
|
|
78
|
+
|
|
79
|
+
// =============================================================================
|
|
80
|
+
// Execution Results (Runtime)
|
|
81
|
+
// =============================================================================
|
|
82
|
+
|
|
83
|
+
export type { TransitionExecutionResult } from "../generated/TransitionExecutionResult";
|
|
84
|
+
export type { NavigationResult } from "../generated/NavigationResult";
|
|
85
|
+
export type { ActiveStatesResult } from "../generated/ActiveStatesResult";
|
|
86
|
+
|
|
87
|
+
export type { TransitionInfo } from "../generated/TransitionInfo";
|
|
88
|
+
export type { AvailableTransitionsResult } from "../generated/AvailableTransitionsResult";
|
|
89
|
+
|
|
90
|
+
// =============================================================================
|
|
91
|
+
// Initial States
|
|
92
|
+
// =============================================================================
|
|
93
|
+
|
|
94
|
+
export type { InitialStatesSource } from "../generated/InitialStatesSource";
|
|
95
|
+
export type { InitialStateRef } from "../generated/InitialStateRef";
|
|
96
|
+
export type { ResolvedInitialStates } from "../generated/ResolvedInitialStates";
|
|
97
|
+
export type { ResolvedInitialStatesResult } from "../generated/ResolvedInitialStatesResult";
|
|
98
|
+
|
|
99
|
+
// =============================================================================
|
|
100
|
+
// Discovery
|
|
101
|
+
// =============================================================================
|
|
102
|
+
|
|
103
|
+
export type { DiscoveryStrategy } from "../generated/DiscoveryStrategy";
|
|
104
|
+
|
|
105
|
+
// =============================================================================
|
|
106
|
+
// Graph Display Types (ReactFlow)
|
|
107
|
+
// =============================================================================
|
|
108
|
+
|
|
109
|
+
// NOTE: `StateNodeData` is kept hand-authored because the generated DTO
|
|
110
|
+
// intentionally omits the `onStartElementDrag` callback (a UI-layer concern
|
|
111
|
+
// with no Rust analogue). Downstream ReactFlow nodes need the callback, so we
|
|
112
|
+
// can't silently substitute the generated shape. The rest of the fields match
|
|
113
|
+
// the generated `StateNodeData` one-for-one.
|
|
114
|
+
|
|
115
|
+
/**
|
|
116
|
+
* Data passed to a state node in the ReactFlow graph editor.
|
|
117
|
+
*
|
|
118
|
+
* UI-only sugar: mirrors the generated `StateNodeData` but adds the
|
|
119
|
+
* `onStartElementDrag` callback that the graph editor wires up at render time.
|
|
120
|
+
*/
|
|
121
|
+
export interface StateNodeData {
|
|
122
|
+
stateId: string;
|
|
123
|
+
name: string;
|
|
124
|
+
elementCount: number;
|
|
125
|
+
confidence: number;
|
|
126
|
+
elementIds: string[];
|
|
127
|
+
description: string | null;
|
|
128
|
+
isBlocking: boolean;
|
|
129
|
+
isSelected: boolean;
|
|
130
|
+
isInitial: boolean;
|
|
131
|
+
outgoingCount?: number;
|
|
132
|
+
incomingCount?: number;
|
|
133
|
+
isDropTarget?: boolean;
|
|
134
|
+
onStartElementDrag?: (stateId: string, elementId: string) => void;
|
|
135
|
+
/** Optional map of element ID → base64 thumbnail image (data URL or raw base64 PNG). */
|
|
136
|
+
elementThumbnails?: Record<string, string>;
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
export type { TransitionEdgeData } from "../generated/TransitionEdgeData";
|
|
140
|
+
|
|
141
|
+
// =============================================================================
|
|
142
|
+
// Export/Import
|
|
143
|
+
// =============================================================================
|
|
144
|
+
|
|
145
|
+
export type { StateMachineExportFormat } from "../generated/StateMachineExportFormat";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./_api";
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Target Configuration Types
|
|
3
|
+
*
|
|
4
|
+
* Discriminated union of 14 action-target variants (image, region, text,
|
|
5
|
+
* coordinates, stateImage, stateRegion, stateLocation, stateString,
|
|
6
|
+
* currentPosition, lastFindResult, resultIndex, allResults, resultByImage,
|
|
7
|
+
* accessibility) + supporting search/pattern/OCR options.
|
|
8
|
+
*
|
|
9
|
+
* Source of truth: qontinui-schemas/rust/src/targets.rs.
|
|
10
|
+
*
|
|
11
|
+
* Wire format: `type` discriminator uses camelCase ("stateImage",
|
|
12
|
+
* "currentPosition", "resultByImage", etc.).
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import type { TargetConfig } from "../generated/TargetConfig";
|
|
16
|
+
|
|
17
|
+
export type { TargetConfig } from "../generated/TargetConfig";
|
|
18
|
+
export type { SearchStrategy } from "../generated/SearchStrategy";
|
|
19
|
+
export type { MatchMethod } from "../generated/MatchMethod";
|
|
20
|
+
export type { PollingConfig } from "../generated/PollingConfig";
|
|
21
|
+
export type { PatternOptions } from "../generated/PatternOptions";
|
|
22
|
+
export type { MatchAdjustment } from "../generated/MatchAdjustment";
|
|
23
|
+
export type { SearchOptions } from "../generated/SearchOptions";
|
|
24
|
+
export type { OcrEngine } from "../generated/OcrEngine";
|
|
25
|
+
export type { TextMatchType } from "../generated/TextMatchType";
|
|
26
|
+
export type { TextSearchOptions } from "../generated/TextSearchOptions";
|
|
27
|
+
|
|
28
|
+
// Per-variant narrowed aliases for consumers that want to Omit/Extend a
|
|
29
|
+
// single target shape. `TargetConfig` itself is the discriminated union;
|
|
30
|
+
// each alias is `TargetConfig` narrowed on the `type` discriminator.
|
|
31
|
+
export type ImageTarget = Extract<TargetConfig, { type: "image" }>;
|
|
32
|
+
export type RegionTarget = Extract<TargetConfig, { type: "region" }>;
|
|
33
|
+
export type TextTarget = Extract<TargetConfig, { type: "text" }>;
|
|
34
|
+
export type CoordinatesTarget = Extract<TargetConfig, { type: "coordinates" }>;
|
|
35
|
+
export type StateStringTarget = Extract<TargetConfig, { type: "stateString" }>;
|
|
36
|
+
export type StateRegionTarget = Extract<TargetConfig, { type: "stateRegion" }>;
|
|
37
|
+
export type StateLocationTarget = Extract<TargetConfig, { type: "stateLocation" }>;
|
|
38
|
+
export type StateImageTarget = Extract<TargetConfig, { type: "stateImage" }>;
|
|
39
|
+
export type CurrentPositionTarget = Extract<TargetConfig, { type: "currentPosition" }>;
|
|
40
|
+
export type LastFindResultTarget = Extract<TargetConfig, { type: "lastFindResult" }>;
|
|
41
|
+
export type ResultIndexTarget = Extract<TargetConfig, { type: "resultIndex" }>;
|
|
42
|
+
export type AllResultsTarget = Extract<TargetConfig, { type: "allResults" }>;
|
|
43
|
+
export type ResultByImageTarget = Extract<TargetConfig, { type: "resultByImage" }>;
|
|
44
|
+
export type AccessibilityTarget = Extract<TargetConfig, { type: "accessibility" }>;
|
|
45
|
+
|
|
46
|
+
/** Wire-format type discriminator string for `TargetConfig`. */
|
|
47
|
+
export type TargetType = TargetConfig["type"];
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./_api";
|